Skip to content

Upgrade 2026_07_15 SRV3 & CMV2#644

Draft
Amuhar wants to merge 36 commits into
feat/next-votefrom
fix/srv3-tests
Draft

Upgrade 2026_07_15 SRV3 & CMV2#644
Amuhar wants to merge 36 commits into
feat/next-votefrom
fix/srv3-tests

Conversation

@Amuhar

@Amuhar Amuhar commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

This branch contains work on tests for the upcoming SRV3 & CMV2 release.

acceptance tests passed



# ---- event validators --------------------------------------------------------
def validate_proxy_upgrade_event(

@iamnp iamnp Jul 9, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

use generic event validators from utils folder or move generic ones to it

Comment on lines +121 to +129
DG_PROPOSAL_METADATA = "Activate Staking Router v3 + Curated Module v2 + Community Staking Module v3"
DG_SUBMISSION_DESCRIPTION = "1. Submit a Dual Governance proposal to activate Staking Router v3 + Curated Module v2 + Community Staking Module v3"
IPFS_DESCRIPTION = """
1. **Activate Staking Router v3**, including protocol contract upgrades and Dual Governance execution setup. Items 1.1-1.19.
2. **Upgrade Community Staking Module to v3**, including CSM contract upgrades, role updates and identified DVT cluster setup. Items 1.20-1.56.
3. **Add and configure Curated Module v2**. Items 1.57-1.68.
4. **Finalize the protocol upgrade**. Item 1.69.
5. **Update Easy Track factories for CSM v3 and Curated Module v2 operations**. Items 2-12.
"""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@iamnp TODO

Comment on lines +132 to +137
def is_placeholder_vote_script_address(value: str) -> bool:
normalized = value.strip().lower()
return normalized in (
"",
"0x0000000000000000000000000000000000000000",
) or normalized.startswith("todo")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove

event=vote_events[5],
p=EVMScriptFactoryAdded(
factory_addr=ctx["set_merkle_gate_tree_for_csm_factory"],
permissions=csm_tree_gate_permissions,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not sure it is worth to have variable here. For # 4. Add UpdateStakingModuleShareLimits ET factory you don't have it

event=vote_events[8],
p=EVMScriptFactoryAdded(
factory_addr=ctx["set_merkle_gate_tree_for_cm_factory"],
permissions=curated_tree_gate_permissions,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The same as above. It reduces readability

emitted_by=ctx["triggerable_withdrawals_gateway"],
)

# 1.17. Set TWG exit request limits

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No revoke after setting?

Comment on lines +1252 to +1253
ctx["cs_fee_oracle_consensus_version"],
initial_cs_fee_oracle_consensus_version,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should be taken from constants? As for AO and EB oracles checks above

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.

5 participants