Skip to content

feat: use mcms' chainwrappers instead of custom builders/factories#847

Merged
gustavogama-cll merged 1 commit intomainfrom
ggama/chore/use-mcms-chainwrappers
Mar 12, 2026
Merged

feat: use mcms' chainwrappers instead of custom builders/factories#847
gustavogama-cll merged 1 commit intomainfrom
ggama/chore/use-mcms-chainwrappers

Conversation

@gustavogama-cll
Copy link
Contributor

Replace custom logic to build mcms inspectors/converters/executors with the helpers from the "chainwrappers" package.


OPT-438

@changeset-bot
Copy link

changeset-bot bot commented Mar 11, 2026

🦋 Changeset detected

Latest commit: 5bb5251

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
chainlink-deployments-framework Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gustavogama-cll gustavogama-cll force-pushed the ggama/chore/use-mcms-chainwrappers branch 2 times, most recently from 0a8c26a to a55bd39 Compare March 11, 2026 18:32
Copy link
Contributor

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

This PR replaces locally implemented MCMS inspector/converter/executor builders in the test/runtime and CLI fork-execution paths with the upstream mcms/chainwrappers helpers (OPT-438), simplifying chain-specific wiring.

Changes:

  • Switch executor and conversion logic to chainwrappers.Build* helpers (executors, timelock executors, converters, inspector).
  • Remove custom per-chain factories/helpers and their associated unit tests.
  • Update runtime executor interface + mock to accept variadic execution options (timelock action).

Reviewed changes

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

Show a summary per file
File Description
engine/test/runtime/task_mcms.go Extends proposalExecutor.ExecuteMCMS to accept variadic execution options.
engine/test/runtime/mock_proposal_executor_test.go Updates generated mock for new ExecuteMCMS signature (variadic opts).
engine/test/internal/mcmsutils/executor.go Uses chainwrappers to build executors/timelock executors; introduces WithTimelockAction option.
engine/test/internal/mcmsutils/conversion.go Uses chainwrappers.BuildConverters instead of custom converter factory selection.
engine/test/internal/mcmsutils/conversion_test.go Updates error expectations to match new chainwrappers error paths/messages.
engine/test/internal/mcmsutils/errors.go Removes now-unused helper constructors; keeps exported sentinel error.
engine/test/internal/mcmsutils/stub_test.go Adjusts EVM stub chain to include a deployer key; removes Solana stub.
engine/test/internal/mcmsutils/{aptos,evm,solana}.go Removes chain-specific factory implementations (now superseded by chainwrappers).
engine/test/internal/mcmsutils/{aptos,evm,solana,factory}_test.go Removes tests that were validating the deleted factory implementations.
engine/cld/commands/mcms/chain_helpers.go Replaces chain-family switch logic with chainwrappers builders for inspector/executor/timelock executor.
engine/cld/commands/mcms/chain_helpers_{aptos,sui}.go Removes now-unused chain-specific helper functions.
chain/mcms/adapters/chain_access.go Adds compile-time assertion that chain.BlockChains satisfies ChainsFetcher.
.changeset/smooth-heads-jam.md Adds changeset entry for the patch release.

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

Copy link
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@gustavogama-cll gustavogama-cll marked this pull request as ready for review March 11, 2026 20:46
@gustavogama-cll gustavogama-cll requested a review from a team as a code owner March 11, 2026 20:46
@gustavogama-cll gustavogama-cll added this pull request to the merge queue Mar 12, 2026
Merged via the queue into main with commit fa1639e Mar 12, 2026
23 of 24 checks passed
@gustavogama-cll gustavogama-cll deleted the ggama/chore/use-mcms-chainwrappers branch March 12, 2026 19:05
github-merge-queue bot pushed a commit that referenced this pull request Mar 13, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## chainlink-deployments-framework@0.86.2

### Patch Changes

-
[#851](#851)
[`98b91fb`](98b91fb)
Thanks [@graham-chainlink](https://github.com/graham-chainlink)! - fix:
preserve json number accuracy on marshal and unmarshal

-
[#847](#847)
[`fa1639e`](fa1639e)
Thanks [@gustavogama-cll](https://github.com/gustavogama-cll)! - chore:
use mcms chainwrappers helpers

---------

Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
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.

3 participants