Skip to content

Commit

Permalink
succesful deployment to goerli
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobHomanics committed Feb 1, 2024
1 parent 5efd597 commit 1172e85
Show file tree
Hide file tree
Showing 5 changed files with 3,159 additions and 7 deletions.
3 changes: 3 additions & 0 deletions packages/foundry/deployments/11155111.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"networkName": "Sepolia"
}
3 changes: 3 additions & 0 deletions packages/foundry/deployments/5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"networkName": "Goerli"
}
48 changes: 43 additions & 5 deletions packages/foundry/script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ contract DeployScript is ScaffoldETHDeploy {
}

vm.startBroadcast(deployerPrivateKey);
address[] memory admins = new address[](2);
address[] memory admins = new address[](3);
admins[0] = 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266;
admins[1] = 0x62286D694F89a1B12c0214bfcD567bb6c2951491;
admins[2] = 0x2643658817324C6536E3A027a15Cd11576Fa5884;

ReputationTokensStandalone instance = new ReputationTokensStandalone(
0x62286D694F89a1B12c0214bfcD567bb6c2951491,
0x2643658817324C6536E3A027a15Cd11576Fa5884,
admins
);

Expand Down Expand Up @@ -85,8 +86,30 @@ contract DeployScript is ScaffoldETHDeploy {
0x62286D694F89a1B12c0214bfcD567bb6c2951491
);

instance.setTokenURI(0, string.concat(BASE_URI, "0"));
instance.setTokenURI(1, string.concat(BASE_URI, "1"));
instance.grantRole(
instance.TOKEN_CREATOR_ROLE(),
0x2643658817324C6536E3A027a15Cd11576Fa5884
);

instance.grantRole(
instance.TOKEN_UPDATER_ROLE(),
0x2643658817324C6536E3A027a15Cd11576Fa5884
);

instance.grantRole(
instance.TOKEN_URI_SETTER_ROLE(),
0x2643658817324C6536E3A027a15Cd11576Fa5884
);

instance.grantRole(
instance.MINTER_ROLE(),
0x2643658817324C6536E3A027a15Cd11576Fa5884
);

instance.grantRole(
instance.DISTRIBUTOR_ROLE(),
0x2643658817324C6536E3A027a15Cd11576Fa5884
);

TokensPropertiesStorage.TokenProperties
memory tokenProperties = TokensPropertiesStorage.TokenProperties(
Expand All @@ -95,7 +118,11 @@ contract DeployScript is ScaffoldETHDeploy {
);

instance.createToken(tokenProperties);
instance.createToken(tokenProperties);
// instance.createToken(tokenProperties);

instance.setTokenURI(0, string.concat(BASE_URI, "0"));
// instance.setTokenURI(1, string.concat(BASE_URI, "1"));

IReputationTokensInternal.TokensOperations memory mintOperations;
mintOperations.to = 0x62286D694F89a1B12c0214bfcD567bb6c2951491;

Expand All @@ -111,6 +138,17 @@ contract DeployScript is ScaffoldETHDeploy {
);
instance.mint(mintOperations);

IReputationTokensInternal.TokensOperations memory mintOperations2;
mintOperations2.to = 0x2643658817324C6536E3A027a15Cd11576Fa5884;

mintOperations2
.operations = new IReputationTokensInternal.TokenOperation[](2);
mintOperations2.operations[0] = IReputationTokensInternal
.TokenOperation(0, 90);
mintOperations2.operations[1] = IReputationTokensInternal
.TokenOperation(1, 45);
instance.mint(mintOperations2);

// Hats hatsInstance = new Hats("Hats", "ipfs");

// uint256 topHatId = hatsInstance.mintTopHat(
Expand Down
Loading

0 comments on commit 1172e85

Please sign in to comment.