-
Notifications
You must be signed in to change notification settings - Fork 0
Initial Access Manager setup #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
); | ||
|
||
calldatas[calldataIndex++] = | ||
abi.encodeCall(AccessManager.grantRole, (ORACLE_ROLE_ID, accessManagerConfiguration.admin, 0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oracle role to admin? also it is not assigned to any function. Will it be used externally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be assigned to the setValidatorsETH
but it's not part of the interface
console.log("Vault:", accessManagerConfiguration.vault); | ||
console.logBytes(customExternalCallData); | ||
|
||
// TODO: Custom external call directly to the beacon deposit contract |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove all the commented code and TODO?
May I suggest having a roles-config-files dir and having a file per institution (like matrix.json)? And passing the path to the CustomExternalCallNonRestakingValidators and InitialAccessManagerSetup scripts. If we plan on creating vaults for several institutions might be tidier |
Also a proper README file would be useful |
uint64 public constant ADMIN_ROLE_ID = type(uint64).min; // 0 | ||
uint64 public constant DEPOSITOR_ROLE_ID = 1; | ||
uint64 public constant WITHDRAWER_ROLE_ID = 2; | ||
uint64 public constant CUSTOM_EXTERNAL_CALLER_ROLE_ID = 3; | ||
uint64 public constant WITHDRAWAL_MANAGER_ROLE_ID = 4; | ||
uint64 public constant ORACLE_ROLE_ID = 5; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe move the roles to its own file to make it more manageable
No description provided.