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

[DPA-1365]: fix(deployment/mcms): new BuildProposalFromBatch #16221

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

graham-chainlink
Copy link
Collaborator

@graham-chainlink graham-chainlink commented Feb 5, 2025

Implement BuildProposalFromBatchV2 which uses the new MCMS library. New changesets can now use this function to build proposals

JIRA: https://smartcontract-it.atlassian.net/browse/DPA-1365
JIRA: https://smartcontract-it.atlassian.net/browse/DPA-1520

Copy link
Contributor

github-actions bot commented Feb 5, 2025

AER Report: CI Core ran successfully ✅

aer_workflow , commit

AER Report: Operator UI CI ran successfully ✅

aer_workflow , commit

@graham-chainlink graham-chainlink force-pushed the ggoh/DPA-1356/BuildProposalFromBatch branch from 8099c0d to 853b7b1 Compare February 5, 2025 03:26
Copy link
Contributor

@ecPablo ecPablo left a comment

Choose a reason for hiding this comment

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

Looking good! Just left one comment for a small change we can add for the op count fetching

return nil, fmt.Errorf("missing proposer mcm for chain %d", selector)
}
chainID := types.ChainSelector(selector)
opCount, err := proposerMcms.GetOpCount(nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can use this https://github.com/smartcontractkit/mcms/blob/d22deb1026094bda5e41126aabd53a0189e96936/sdk/inspector.go#L14 to get the op count. Will also help us by paving a bit the path for when we add support for solana on this one.

Copy link
Collaborator Author

@graham-chainlink graham-chainlink Feb 6, 2025

Choose a reason for hiding this comment

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

i see, but that would change the api, BuildProposalFromBatchesV2 would have to accept more arguments to build the inspector. Wouldn that make migration harder, i guess we have to do it now or later haha

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

alright, i updated the code, didn look too bad, i just needed to accept context and inspector.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also i just realized after the update to getOpCount, the BuildProposalFromBatchesV2 also works with solana, so it covers https://smartcontract-it.atlassian.net/browse/DPA-1520 as well @ecPablo

Implement BuildProposalFromBatchV2 which uses the new MCMS library.
New changesets can now use this function to build proposals

JIRA: https://smartcontract-it.atlassian.net/browse/DPA-1365
@graham-chainlink graham-chainlink force-pushed the ggoh/DPA-1356/BuildProposalFromBatch branch from 853b7b1 to 3087f49 Compare February 6, 2025 01:05
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