Skip to content

Commit

Permalink
feat(Token/Validator): Changing validator address to public
Browse files Browse the repository at this point in the history
  • Loading branch information
KristenPire committed Jun 18, 2024
1 parent 8f0ad4d commit 4384de0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion script/deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ contract All is Script {
address(blacklistValidator),
abi.encodeWithSelector(BlacklistValidatorUpgradeable.initialize.selector)
);

console.log("Deployed BlacklistValidatorUpgradeable at ", address(validatorProxy));
// Deploy only one implementation of the Token contract for all currencies.
Token implementation = new Token();

Expand Down Expand Up @@ -86,6 +86,7 @@ contract AllControllerGnosis is Script {
// Deploy only one implementation of the Token contract for all currencies.
GnosisControllerToken implementation = new GnosisControllerToken();

console.log("Deployed BlacklistValidatorUpgradeable at ", address(validatorProxy));
deployTokenProxy(implementation, "Monerium EURe", "EURe", bytes3("EUR"), address(validatorProxy));
deployTokenProxy(implementation, "Monerium GBPe", "GBPe", bytes3("GBP"), address(validatorProxy));
deployTokenProxy(implementation, "Monerium ISKe", "ISKe", bytes3("ISK") ,address(validatorProxy));
Expand Down Expand Up @@ -132,6 +133,7 @@ contract AllControllerPolygon is Script {
// Deploy only one implementation of the Token contract for all currencies.
PolygonControllerToken implementation = new PolygonControllerToken();

console.log("Deployed BlacklistValidatorUpgradeable at ", address(validatorProxy));
deployTokenProxy(implementation, "Monerium EURe", "EURe", bytes3("EUR"), address(validatorProxy));
deployTokenProxy(implementation, "Monerium GBPe", "GBPe", bytes3("GBP"), address(validatorProxy));
deployTokenProxy(implementation, "Monerium ISKe", "ISKe", bytes3("ISK") ,address(validatorProxy));
Expand Down Expand Up @@ -177,6 +179,7 @@ contract AllControllerEthereum is Script {
// Deploy only one implementation of the Token contract for all currencies.
EthereumControllerToken implementation = new EthereumControllerToken();

console.log("Deployed BlacklistValidatorUpgradeable at ", address(validatorProxy));
deployTokenProxy(implementation, "Monerium EURe", "EURe", bytes3("EUR"), address(validatorProxy));
deployTokenProxy(implementation, "Monerium GBPe", "GBPe", bytes3("GBP"), address(validatorProxy));
deployTokenProxy(implementation, "Monerium ISKe", "ISKe", bytes3("ISK") ,address(validatorProxy));
Expand Down
2 changes: 1 addition & 1 deletion src/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ contract Token is
SystemRoleUpgradeable
{
// Subsequent contract versions must retain this variable to avoid storage conflicts with the proxy.
IValidator internal validator;
IValidator public validator;
using SignatureChecker for address;

/**
Expand Down

0 comments on commit 4384de0

Please sign in to comment.