Skip to content

Commit

Permalink
update plasa and deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoAcosta committed Oct 15, 2024
1 parent cb16cdd commit d99e0a1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
3 changes: 2 additions & 1 deletion script/deploy/DeployPoC.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ contract DeployPoC is Script {
args.spaceName,
args.spaceDescription,
args.spaceImageUrl,
args.pointsSymbol
args.pointsSymbol,
args.minPointsToAddOpenQuestionOption
);

vm.stopBroadcast();
Expand Down
4 changes: 3 additions & 1 deletion script/deploy/DeployPoCArgs.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ contract DeployPoCArgs is Script {
string spaceDescription;
string spaceImageUrl;
string pointsSymbol;
uint256 minPointsToAddOpenQuestionOption;
}

function getArgs() public view returns (DeploymentArgs memory) {
Expand All @@ -41,7 +42,8 @@ contract DeployPoCArgs is Script {
spaceName: "Base",
spaceDescription: "The (un)official community space for Base Onchain community",
spaceImageUrl: "https://raw.githubusercontent.com/base-org/brand-kit/refs/heads/main/logo/in-product/Base_Network_Logo.png",
pointsSymbol: "BASE"
pointsSymbol: "BASE",
minPointsToAddOpenQuestionOption: 100
});

return args;
Expand Down
30 changes: 16 additions & 14 deletions src/plasa/Plasa.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ contract Plasa is Ownable {
/// @param spaceName The name of the space
/// @param spaceDescription The description of the space
/// @param spaceImageUrl The URL of the space's image
/// @param pointsSymbol The symbol of the points
/// @param minPointsToAddOpenQuestionOption The minimum points required to add an open question option
/// @return The address of the newly created space
function createSpace(
address[] memory initialSuperAdmins,
Expand All @@ -51,21 +53,21 @@ contract Plasa is Ownable {
string memory spaceName,
string memory spaceDescription,
string memory spaceImageUrl,
string memory pointsSymbol
string memory pointsSymbol,
uint256 minPointsToAddOpenQuestionOption
) external returns (address) {
ISpace newSpace = ISpace(
new Space(
initialSuperAdmins,
initialAdmins,
initialModerators,
stampSigner,
platform,
followed,
spaceName,
spaceDescription,
spaceImageUrl,
pointsSymbol
)
ISpace newSpace = new Space(
initialSuperAdmins,
initialAdmins,
initialModerators,
stampSigner,
platform,
followed,
spaceName,
spaceDescription,
spaceImageUrl,
pointsSymbol,
minPointsToAddOpenQuestionOption
);
spaces.push(newSpace);
emit SpaceCreated(address(newSpace), msg.sender);
Expand Down

0 comments on commit d99e0a1

Please sign in to comment.