Skip to content

add fast mcms package id to token pool deps#412

Merged
FelixFan1992 merged 1 commit into
developfrom
add-fast-mcms-package-id
Jun 17, 2026
Merged

add fast mcms package id to token pool deps#412
FelixFan1992 merged 1 commit into
developfrom
add-fast-mcms-package-id

Conversation

@FelixFan1992

Copy link
Copy Markdown
Collaborator

Describe your changes

..

Issue ticket number and link

..

Describe highly relevant files or code snippets that are critical in the review

..

Are there other PRs that should be merged first?

..

Copilot AI left a comment

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.

Pull request overview

This PR updates the Sui token-pool deployment/configuration changeset to require and propagate the fast (fastcurse) MCMS package ID into the token pool deployment inputs, ensuring token pools can be published with both the slow and fast MCMS dependencies.

Changes:

  • Load FastCurseMCMSPackageID from on-chain state and inject it into BurnMint, LockRelease, and Managed token pool inputs.
  • Fail early (in Apply) when the fast MCMS package is not present for the selected Sui chain.
  • Add a VerifyPreconditions check to ensure the fast MCMS package is deployed before running the changeset.

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

Comment on lines 217 to 229
func (d DeployTPAndConfigure) VerifyPreconditions(e cldf.Environment, config DeployTPAndConfigureConfig) error {
state, err := deployment.LoadOnchainStatesui(e)
if err != nil {
return err
}
if state[config.SuiChainSelector].FastCurseMCMSPackageID == "" {
return fmt.Errorf(
"fast MCMS package not deployed for Sui chain %d; run DeploySuiChain first",
config.SuiChainSelector,
)
}
return nil
}
@FelixFan1992 FelixFan1992 marked this pull request as ready for review June 17, 2026 15:04
@FelixFan1992 FelixFan1992 requested a review from a team as a code owner June 17, 2026 15:04
@FelixFan1992 FelixFan1992 merged commit ccc0d6b into develop Jun 17, 2026
25 of 26 checks passed
@FelixFan1992 FelixFan1992 deleted the add-fast-mcms-package-id branch June 17, 2026 15:15
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