Skip to content

Conversation

@jhweintraub
Copy link
Contributor

@jhweintraub jhweintraub commented Dec 2, 2025

This pull request refactors several deployment changesets in the EVM chain to simplify their interfaces and remove unnecessary dependencies on the MCMSReaderRegistry. The changesets now accept input directly, rather than requiring a registry parameter, and related tests have been updated to reflect the new function signatures. Additionally, the SetDomains changeset now requires the token pool address to be specified explicitly for each chain, improving flexibility for different token pool types.

Refactoring changesets to remove MCMSReaderRegistry dependency:

  • All major changeset constructors (ApplyAuthorizedCallerUpdatesChangeset, ConfigureAllowedCallersChangeset, ERC20LockboxDeployChangeset, SiloedUSDCTokenPoolDeployChangeset, and SetDomainsChangeset) now take no parameters and do not require an MCMSReaderRegistry, simplifying their usage and signatures. [1] [2] [3] [4] [5]
  • Associated Apply, Verify, and builder functions have been updated to remove the registry parameter and use nil where appropriate. [1] [2] [3] [4] [5]

Test code updates:

  • Test files and test cases have been updated to remove references to changesets_utils.GetRegistry() and to use the new parameterless changeset constructors. [1] [2] [3] [4]

SetDomains changeset improvements:

  • The SetDomainsPerChainInput struct now requires an explicit Address field for each chain, rather than looking up the address from the datastore, supporting token pools of different types. [1] [2] [3]

Cleanup of unused imports and code:

  • Removed unused imports and code related to datastore, changesets_utils, and mcms_types from several files to streamline the codebase. [1] [2] [3] [4] [5] [6] [7]

Input validation changes:

  • Validation of the MCMS input has been removed from the Verify functions, delegating responsibility for input validation elsewhere. [1] [2] [3]

@jhweintraub jhweintraub marked this pull request as ready for review December 2, 2025 17:33
@jhweintraub jhweintraub requested review from a team as code owners December 2, 2025 17:33
Copilot AI review requested due to automatic review settings December 2, 2025 17:33
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors EVM deployment changesets to remove the MCMSReaderRegistry parameter and simplify constructors, while shifting MCMS validation responsibility elsewhere and requiring explicit addresses for SetDomains.

  • Removes MCMSReaderRegistry from all changeset constructors and uses nil in output builders.
  • Eliminates MCMS.Validate calls in verify functions (now all no-ops).
  • Adjusts SetDomains to take explicit token pool addresses per chain instead of datastore lookup.

Reviewed changes

Copilot reviewed 21 out of 21 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
usdc_token_pool_proxy_deploy_test.go Updates tests to use new parameterless constructor.
usdc_token_pool_proxy_deploy.go Removes registry parameter and MCMS validation from deploy/verify logic.
usdc_token_pool_deploy_test.go Updates tests for parameterless changeset constructors.
usdc_token_pool_deploy.go Removes registry parameter and MCMS validation in verify.
usdc_token_pool_cctp_v2_deploy_test.go Updates tests to new constructor signature.
usdc_token_pool_cctp_v2_deploy.go Removes registry parameter; minor conditional simplification; drops MCMS validation.
update_pool_addresses_test.go Updates test to use new constructor signature.
update_pool_addresses.go Removes registry parameter and MCMS validation; passes nil to output builder.
update_lock_release_pool_addresses_test.go Updates test to new constructor signature.
update_lock_release_pool_addresses.go Removes registry parameter and MCMS validation; passes nil to output builder.
update_lock_or_burn_mechanism_test.go Test updated; no MCMS input provided after validation removal.
update_lock_or_burn_mechanism.go Removes registry parameter and MCMS validation; passes nil to output builder.
siloed_usdc_token_pool_deploy_test.go Updates test for parameterless constructor.
siloed_usdc_token_pool_deploy.go Removes registry parameter and leaves verify as no-op.
set_domains_test.go Adds explicit address field usage and removes registry + MCMS fields in test.
set_domains.go Requires explicit address per chain; removes datastore lookup and MCMS validation.
erc20_lockbox_deploy.go Removes MCMS from input type; builds output with empty MCMS input.
erc20_lock_box_deploy_test.go Updates test to match removed MCMS field.
configure_allowed_callers_test.go Updates test and simplifies MCMS input (validation removed).
configure_allowed_callers.go Removes registry parameter and MCMS validation; passes nil to output builder.
apply_authorized_caller_updates.go Removes registry parameter and MCMS validation; verify now no-op.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…fier, and remove superfluous input parameters
@github-actions
Copy link

github-actions bot commented Dec 2, 2025

Metric fix/1_6_4_changesets_cleanup main
Coverage 70.3% 70.0%

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