Skip to content
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

Before Pectra voting script #329

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

Before Pectra voting script #329

wants to merge 30 commits into from

Conversation

Amuhar
Copy link
Contributor

@Amuhar Amuhar commented Dec 19, 2024

No description provided.

@Amuhar Amuhar requested a review from avsetsin December 19, 2024 19:29
@Amuhar Amuhar marked this pull request as draft December 19, 2024 19:30
@Amuhar Amuhar force-pushed the feat/pectra-devnet branch from 1c40c6c to c8501b8 Compare January 19, 2025 21:12
@Amuhar Amuhar changed the title Pectra Devnet4 voting script Pectra voting script Jan 21, 2025
@Amuhar Amuhar marked this pull request as ready for review January 21, 2025 14:22
@Amuhar Amuhar requested a review from a team as a code owner January 21, 2025 14:22
@Amuhar Amuhar changed the title Pectra voting script Before Pectra voting script Jan 23, 2025
agent_forward([encode_cs_fee_oracle_set_consensus_version()]),
),
(
"9. Revoke MANAGE_CONSENSUS_VERSION_ROLE role on Validator Exit Bus Oracle from Aragon Agent",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"9. Revoke MANAGE_CONSENSUS_VERSION_ROLE role on Validator Exit Bus Oracle from Aragon Agent",
"9. Revoke MANAGE_CONSENSUS_VERSION_ROLE role on CSFeeOracle from Aragon Agent",

"""
Release part of the update before the Pectra upgrade

1. Grant MANAGE_CONSENSUS_VERSION_ROLE role on Accounting Oracle to Aragon Agent
Copy link
Contributor

Choose a reason for hiding this comment

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

consider adding detailed description with addresses as it's done for non pectra items

def _check_role(contract: Contract, role: str, holder: str):
role_bytes = web3.keccak(text=role).hex()
assert contract.getRoleMemberCount(role_bytes) == 1, f"Role {role} on {contract} should have exactly one holder"
assert contract.getRoleMember(role_bytes, 0) == holder, f"Role {role} holder on {contract} should be {holder}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should the holder address be transformed to lowercase, as done in line 102?

)

# Grant PAUSE_ROLE on WithdrawalQueue for the new GateSeal
validate_grant_role_event(events[18], PAUSE_ROLE, NEW_GATE_SEAL, contracts.agent)
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, validate_grant_role_event() doesn't check which address emitted the event

),
# Change GateSeal on WithdrawalQueue and ValidatorsExitBusOracle
(
"19. Grant PAUSE_ROLE on WithdrawalQueue 0xc7cc160b58F8Bb0baC94b80847E2CF2800565C50 to the new GateSeal 0xAE6eCd77DCC656c5533c4209454Fd56fB46e1778",
Copy link
Contributor

Choose a reason for hiding this comment

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

Descriptions in items 19–22 contain   instead of regular spaces. Is this intentional?

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.

7 participants