Skip to content

Access Control Script #578

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

Merged
merged 9 commits into from
Jan 6, 2025
Merged

Access Control Script #578

merged 9 commits into from
Jan 6, 2025

Conversation

craigbranscom
Copy link
Contributor

@craigbranscom craigbranscom commented Jan 2, 2025

Ticket

  • Added updateRoleOwners.mjs script that will iterate over a configured list of contracts and update Access Control roles accordingly.
  • Added transferOwnership.mjs script that will update ownership of the beacon proxy contract.

@craigbranscom craigbranscom self-assigned this Jan 2, 2025
Copy link
Collaborator

@CryptITAustria CryptITAustria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the tiny key airdrop contract address.

contract: config.poolFactoryAddress,
role: STAKE_KEYS_ADMIN_ROLE,
func: REVOKE_ROLE,
account: "0xAccountAddressHere"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be the TinyKeyAirdrop contract address

0x0209a0C0Abfe82916DF492D121667aCcA26C7eb0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Comment on lines +139 to +141
case REVOKE_STAKE_ADMIN_FUNC:
tx = await contract.revokeStakeKeysAdminRole(job.account);
break;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed this on the last review. This function on the poolfactory should not exists it just wrappes around revokeRole and we do not need to have the dedicated case here.

Change is not required, however we should be aware, that the function revokeStakeKeysAdminRole is not within the AccessControl interface and most likely will be removed from the poolFactory which would make this case unusable.

contract: config.poolFactoryAddress,
role: STAKE_KEYS_ADMIN_ROLE,
func: REVOKE_STAKE_ADMIN_FUNC,
account: "0x7C94E07bbf73518B0E25D1Be200a5b58F46F9dC7"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be the TinyKeyAirdrop contract address

0x0209a0C0Abfe82916DF492D121667aCcA26C7eb0

The deployer does not have the STAKE_ADMIN_ROLE on the PoolFactory

@craigbranscom craigbranscom merged commit 17a1e6c into develop Jan 6, 2025
8 of 16 checks passed
@craigbranscom craigbranscom deleted the feat/sc-7023 branch January 6, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants