changesets

package
v0.0.0-...-0125272 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 34 Imported by: 1

Documentation

Index

Constants

View Source
const CCIPBnMSymbol = "CCIP BnM"

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptMCMSOwnership

type AcceptMCMSOwnership struct{}

func (AcceptMCMSOwnership) Apply

Apply implements deployment.ChangeSetV2.

func (AcceptMCMSOwnership) VerifyPreconditions

VerifyPreconditions implements deployment.ChangeSetV2.

type AcceptOwnershipCCIP

type AcceptOwnershipCCIP struct{}

AcceptOwnershipCCIP deploys Sui chain packages and modules

func (AcceptOwnershipCCIP) Apply

Apply implements deployment.ChangeSetV2.

func (AcceptOwnershipCCIP) VerifyPreconditions

func (d AcceptOwnershipCCIP) VerifyPreconditions(e cldf.Environment, config AcceptOwnershipCCIPConfig) error

TODO VerifyPreconditions imsplements deployment.ChangeSetV2.

type AcceptOwnershipCCIPConfig

type AcceptOwnershipCCIPConfig struct {
	SuiChainSelector uint64
}

type AddRemoteTP

type AddRemoteTP struct{}

DeployAptosChain deploys Sui chain packages and modules

func (AddRemoteTP) Apply

Apply implements deployment.ChangeSetV2.

func (AddRemoteTP) VerifyPreconditions

func (d AddRemoteTP) VerifyPreconditions(e cldf.Environment, config AddRemoteTPConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type AddRemoteTPConfig

type AddRemoteTPConfig struct {
	SuiChainSelector uint64
	TokenPoolTypes   []string

	PoolPackageId          string
	TokenpoolStateObjectId string
	TokenPoolOwnerCapId    string
	CoinObjectTypeArg      string
	RemoteChainSelectors   []uint64
	RemotePoolAddressToAdd []string
}

type BlockFunction

type BlockFunction struct{}

func (BlockFunction) Apply

Apply implements deployment.ChangeSetV2.

func (BlockFunction) VerifyPreconditions

func (d BlockFunction) VerifyPreconditions(e cldf.Environment, config BlockFunctionConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type BlockFunctionConfig

type BlockFunctionConfig struct {
	SuiChainSelector uint64
	CCIPPackageId    string
	StateObjectId    string
	OwnerCapObjectId string
	ModuleName       string
	FunctionName     string
	Version          uint8
}

type BlockVersion

type BlockVersion struct{}

func (BlockVersion) Apply

Apply implements deployment.ChangeSetV2.

func (BlockVersion) VerifyPreconditions

func (d BlockVersion) VerifyPreconditions(e cldf.Environment, config BlockVersionConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type BlockVersionConfig

type BlockVersionConfig struct {
	SuiChainSelector uint64
	CCIPPackageId    string
	StateObjectId    string
	OwnerCapObjectId string
	ModuleName       string
	Version          uint8
}

type ConfigureMCMS

type ConfigureMCMS struct{}

func (ConfigureMCMS) Apply

Apply implements deployment.ChangeSetV2.

func (ConfigureMCMS) VerifyPreconditions

func (c ConfigureMCMS) VerifyPreconditions(e cldf.Environment, config ConfigureMCMSConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type ConfigureMCMSConfig

type ConfigureMCMSConfig struct {
	mcmsops.ConfigureMCMSSeqInput
	TimelockConfig *utils.TimelockConfig // If nil, configuration will be executed directly
}

type ConfigureRouterOnRamp

type ConfigureRouterOnRamp struct{}

func (ConfigureRouterOnRamp) Apply

Apply implements deployment.ChangeSetV2.

func (ConfigureRouterOnRamp) VerifyPreconditions

func (d ConfigureRouterOnRamp) VerifyPreconditions(e cldf.Environment, config ConfigureRouterOnRampConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type ConfigureRouterOnRampConfig

type ConfigureRouterOnRampConfig struct {
	SuiChainSelector  uint64
	DestChainSelector []uint64
	OnRampPackageId   string
	McmsOwner         string
}

type ConnectSuiToEVM

type ConnectSuiToEVM struct{}

ConnectSuiToEVM connects sui chain with EVM

func (ConnectSuiToEVM) Apply

Apply implements deployment.ChangeSetV2.

func (ConnectSuiToEVM) VerifyPreconditions

func (d ConnectSuiToEVM) VerifyPreconditions(e cldf.Environment, config ConnectSuiToEVMConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type ConnectSuiToEVMConfig

type ConnectSuiToEVMConfig struct {
	SuiChainSelector                                     uint64
	FeeQuoterApplyTokenTransferFeeConfigUpdatesInput     ccip_ops.FeeQuoterApplyTokenTransferFeeConfigUpdatesInput
	FeeQuoterApplyDestChainConfigUpdatesInput            ccip_ops.FeeQuoterApplyDestChainConfigUpdatesInput
	FeeQuoterApplyPremiumMultiplierWeiPerEthUpdatesInput ccip_ops.FeeQuoterApplyPremiumMultiplierWeiPerEthUpdatesInput
	ApplyDestChainConfigureOnRampInput                   ccip_onramp_ops.ApplyDestChainConfigureOnRampInput
	ApplySourceChainConfigUpdateInput                    ccip_offramp_ops.ApplySourceChainConfigUpdateInput
	TimelockConfig                                       *utils.TimelockConfig // If nil, transactions will be executed
}

type CurseUncurseChains

type CurseUncurseChains struct{}

func (CurseUncurseChains) Apply

func (CurseUncurseChains) VerifyPreconditions

func (c CurseUncurseChains) VerifyPreconditions(e cldf.Environment, cfg CurseUncurseChainsConfig) error

type CurseUncurseChainsConfig

type CurseUncurseChainsConfig struct {
	SuiChainSelector   uint64                `yaml:"suiChainSelector"`
	OperationType      string                `yaml:"operationType"`
	IsGlobalCurse      bool                  `yaml:"isGlobalCurse"`
	DestChainSelectors []uint64              `yaml:"destChainSelectors"`
	TimelockConfig     *utils.TimelockConfig `yaml:"timelockConfig,omitempty"`
}

type CurseUncurseOperationType

type CurseUncurseOperationType string
const (
	CurseOperationType   CurseUncurseOperationType = "curse"
	UncurseOperationType CurseUncurseOperationType = "uncurse"
)

type DeployCCIPBnMToken

type DeployCCIPBnMToken struct{}

DeployCCIPBnMToken deploys Sui chain packages and modules

func (DeployCCIPBnMToken) Apply

Apply implements deployment.ChangeSetV2.

func (DeployCCIPBnMToken) VerifyPreconditions

func (d DeployCCIPBnMToken) VerifyPreconditions(e cldf.Environment, config DeployCCIPBnMTokenConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type DeployCCIPBnMTokenConfig

type DeployCCIPBnMTokenConfig struct {
	ChainSelector uint64 `yaml:"chainSelector"`
	MintAmount    uint64 `yaml:"mintAmount"`
	MintToAddress string `yaml:"mintToAddress"`
}

type DeployDummyReceiver

type DeployDummyReceiver struct{}

DeployAptosChain deploys Aptos chain packages and modules

func (DeployDummyReceiver) Apply

Apply implements deployment.ChangeSetV2.

func (DeployDummyReceiver) VerifyPreconditions

func (d DeployDummyReceiver) VerifyPreconditions(e cldf.Environment, config DeployDummyReceiverConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type DeployDummyReceiverConfig

type DeployDummyReceiverConfig struct {
	SuiChainSelector uint64
	McmsOwner        string
}

type DeployLinkToken

type DeployLinkToken struct{}

DeployLinkToken deploys Sui chain packages and modules

func (DeployLinkToken) Apply

Apply implements deployment.ChangeSetV2.

func (DeployLinkToken) VerifyPreconditions

func (d DeployLinkToken) VerifyPreconditions(e cldf.Environment, config DeployLinkTokenConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type DeployLinkTokenConfig

type DeployLinkTokenConfig struct {
	ChainSelector uint64 `yaml:"chainSelector"`
}

type DeployMCMS

type DeployMCMS struct{}

func (DeployMCMS) Apply

Apply implements deployment.ChangeSetV2.

func (DeployMCMS) VerifyPreconditions

func (d DeployMCMS) VerifyPreconditions(e cldf.Environment, config mcmsops.DeployMCMSSeqInput) error

VerifyPreconditions implements deployment.ChangeSetV2.

type DeployMCMSUser

type DeployMCMSUser struct{}

func (DeployMCMSUser) Apply

Apply implements deployment.ChangeSetV2.

func (DeployMCMSUser) VerifyPreconditions

func (d DeployMCMSUser) VerifyPreconditions(e cldf.Environment, config DeployMCMSUserConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type DeployMCMSUserConfig

type DeployMCMSUserConfig struct {
	mcmsuserops.DeployMCMSUserSeqInput
	ChainSelector uint64 `json:"chainSelector"`
}

type DeployManagedToken

type DeployManagedToken struct{}

DeployAptosChain deploys Sui chain packages and modules

func (DeployManagedToken) Apply

Apply implements deployment.ChangeSetV2.

func (DeployManagedToken) VerifyPreconditions

func (d DeployManagedToken) VerifyPreconditions(e cldf.Environment, config DeployManagedTokenConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type DeployManagedTokenConfig

type DeployManagedTokenConfig struct {
	managedtokenops.DeployAndInitManagedTokenInput
	ChainSelector uint64 `yaml:"chainSelector"`
}

type DeployManagedTokenFaucet

type DeployManagedTokenFaucet struct{}

func (DeployManagedTokenFaucet) Apply

func (DeployManagedTokenFaucet) VerifyPreconditions

type DeployManagedTokenFaucetConfig

type DeployManagedTokenFaucetConfig struct {
	ChainSelector   uint64 `yaml:"chainSelector"`
	TokenSymbol     string `yaml:"tokenSymbol"`
	CoinType        string `yaml:"coinType"`
	MintCapObjectId string `yaml:"mintCapObjectId"`
}

type DeploySuiChain

type DeploySuiChain struct{}

DeploySuiChain deploys Sui chain packages and modules

func (DeploySuiChain) Apply

Apply implements deployment.ChangeSetV2.

func (DeploySuiChain) VerifyPreconditions

func (d DeploySuiChain) VerifyPreconditions(e cldf.Environment, config DeploySuiChainConfig) error

TODO VerifyPreconditions implements deployment.ChangeSetV2.

type DeploySuiChainConfig

type DeploySuiChainConfig struct {
	SuiChainSelector              uint64
	DestChainSelector             uint64 // dest chain selector
	DestChainOnRampAddressBytes   []byte // onRamp of the destination chain we are connecting to
	LinkTokenCoinMetadataObjectId string // this defines the initial feeToken
}

type DeployTPAndConfigure

type DeployTPAndConfigure struct{}

ConnectSuiToEVM connects sui chain with EVM

func (DeployTPAndConfigure) Apply

Apply implements deployment.ChangeSetV2.

func (DeployTPAndConfigure) VerifyPreconditions

func (d DeployTPAndConfigure) VerifyPreconditions(e cldf.Environment, config DeployTPAndConfigureConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type InvokeMCMSFunctionOne

type InvokeMCMSFunctionOne struct{}

func (InvokeMCMSFunctionOne) Apply

func (InvokeMCMSFunctionOne) VerifyPreconditions

func (d InvokeMCMSFunctionOne) VerifyPreconditions(e cldf.Environment, config InvokeMCMSFunctionOneConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type InvokeMCMSFunctionOneConfig

type InvokeMCMSFunctionOneConfig struct {
	// MCMS related
	MmcsPackageID      string `json:"mcmsPackageID"`
	McmsStateObjID     string `json:"mcmsStateObjID"`
	TimelockObjID      string `json:"timelockObjID"`
	AccountObjID       string `json:"accountObjID"`
	RegistryObjID      string `json:"registryObjID"`
	DeployerStateObjID string `json:"deployerStateObjID"`

	// Proposal related
	Role  suisdk.TimelockRole `json:"role"`
	Delay time.Duration       `json:"delay"`

	// MCMS User related
	McmcsUserPackageID  string `json:"mcmsUserPackageID"`
	McmsUserObjectID    string `json:"mcmsUserObjectID"`
	McmsUserOwnerCapObj string `json:"mcmsUserOwnerCapObj"`

	// Chain related
	ChainSelector uint64 `json:"chainSelector"`
}

type MCMSExecuteTransferOwnership

type MCMSExecuteTransferOwnership struct{}

func (MCMSExecuteTransferOwnership) Apply

func (MCMSExecuteTransferOwnership) VerifyPreconditions

VerifyPreconditions implements deployment.ChangeSetV2.

type MCMSExecuteTransferOwnershipInput

type MCMSExecuteTransferOwnershipInput struct {
	ChainSelector uint64 `json:"chainSelector" yaml:"chainSelector"`

	// Type of contracts to execute the transfer on
	MCMS                            bool   `json:"mcms,omitempty" yaml:"mcms,omitempty"`
	StateObject                     bool   `json:"state_object,omitempty" yaml:"state_object,omitempty"`
	OnRamp                          bool   `json:"onramp,omitempty" yaml:"onramp,omitempty"`
	OffRamp                         bool   `json:"offramp,omitempty" yaml:"offramp,omitempty"`
	Router                          bool   `json:"router,omitempty" yaml:"router,omitempty"`
	ManagedToken                    bool   `json:"managed_token,omitempty" yaml:"managed_token,omitempty"`
	UsdcTokenPool                   bool   `json:"usdc_token_pool,omitempty" yaml:"usdc_token_pool,omitempty"`
	BurnMintTokenPoolTokenSymbol    string `json:"burn_mint_token_pool,omitempty" yaml:"burn_mint_token_pool,omitempty"`
	LockReleaseTokenPoolTokenSymbol string `json:"lock_release_token_pool,omitempty" yaml:"lock_release_token_pool,omitempty"`
	ManagedTokenPoolTokenSymbol     string `json:"managed_token_pool,omitempty" yaml:"managed_token_pool,omitempty"`
}

type MCMSProposalGenerate

type MCMSProposalGenerate struct{}

func (MCMSProposalGenerate) Apply

func (MCMSProposalGenerate) VerifyPreconditions

func (d MCMSProposalGenerate) VerifyPreconditions(e cldf.Environment, config mcmsops.ProposalGenerateInput) error

VerifyPreconditions implements deployment.ChangeSetV2.

type MCMSProposalUpgradePackage

type MCMSProposalUpgradePackage struct{}

func (MCMSProposalUpgradePackage) Apply

func (MCMSProposalUpgradePackage) VerifyPreconditions

func (d MCMSProposalUpgradePackage) VerifyPreconditions(e cldf.Environment, config mcmsops.UpgradeCCIPInput) error

VerifyPreconditions implements deployment.ChangeSetV2.

type ManagedTokenConfigureNewMinter

type ManagedTokenConfigureNewMinter struct{}

func (ManagedTokenConfigureNewMinter) Apply

Apply implements deployment.ChangeSetV2.

func (ManagedTokenConfigureNewMinter) VerifyPreconditions

VerifyPreconditions implements deployment.ChangeSetV2.

type ManagedTokenConfigureNewMinterConfig

type ManagedTokenConfigureNewMinterConfig struct {
	SuiChainSelector      uint64
	StateObjectId         string
	OwnerCapObjectId      string
	MinterAddress         string
	CoinObjectTypeArg     string
	ManagedTokenPackageId string
	Allowance             uint64
	IsUnlimited           bool
	Source                string
}

type MintLinkToken

type MintLinkToken struct{}

func (MintLinkToken) Apply

Apply implements deployment.ChangeSetV2.

func (MintLinkToken) VerifyPreconditions

func (d MintLinkToken) VerifyPreconditions(e cldf.Environment, config MintLinkTokenConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type MintLinkTokenConfig

type MintLinkTokenConfig struct {
	ChainSelector  uint64
	TokenPackageId string
	TreasuryCapId  string
	Amount         uint64
}

type NewFeeToken

type NewFeeToken struct{}

ConnectSuiToEVM connects sui chain with EVM

func (NewFeeToken) Apply

Apply implements deployment.ChangeSetV2.

func (NewFeeToken) VerifyPreconditions

func (d NewFeeToken) VerifyPreconditions(e cldf.Environment, config NewFeeTokenConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type NewFeeTokenConfig

type NewFeeTokenConfig struct {
	SuiChainSelector  uint64
	FeeTokensToRemove []string
	FeeTokensToAdd    []string // should be the objectID

	// update price
	SourceUsdPerToken []*big.Int

	// premium multiplier wei per eth
	PremiumMultiplierWeiPerEth []uint64
}

type RegisterDummyReceiver

type RegisterDummyReceiver struct{}

func (RegisterDummyReceiver) Apply

Apply implements deployment.ChangeSetV2.

func (RegisterDummyReceiver) VerifyPreconditions

func (d RegisterDummyReceiver) VerifyPreconditions(e cldf.Environment, config RegisterDummyReceiverConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type RegisterDummyReceiverConfig

type RegisterDummyReceiverConfig struct {
	SuiChainSelector       uint64
	OwnerCapObjectId       string
	CCIPObjectRefObjectId  string
	DummyReceiverPackageId string
}

type SetDynamicConfigOnRamp

type SetDynamicConfigOnRamp struct{}

func (SetDynamicConfigOnRamp) Apply

Apply implements deployment.ChangeSetV2.

func (SetDynamicConfigOnRamp) VerifyPreconditions

VerifyPreconditions implements deployment.ChangeSetV2.

type SetDynamicConfigOnRampConfig

type SetDynamicConfigOnRampConfig struct {
	ChainSelector  uint64
	FeeAggregator  string
	AllowListAdmin string
	TimelockConfig *utils.TimelockConfig // If nil, execute directly; otherwise generate proposal
}

type TPConfigure

type TPConfigure struct{}

ConnectSuiToEVM connects sui chain with EVM

func (TPConfigure) Apply

Apply implements deployment.ChangeSetV2.

func (TPConfigure) VerifyPreconditions

func (d TPConfigure) VerifyPreconditions(e cldf.Environment, config TPConfigureConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type TPConfigureConfig

type TPConfigureConfig struct {
	SuiChainSelector   uint64
	TokenPoolTypes     []string
	ManagedTPInput     managedtokenpoolops.ConfigureManagedTokenPoolInput
	LockReleaseTPInput lockreleasetokenpoolops.DeployAndInitLockReleaseTokenPoolInput
	BurnMintTpInput    burnminttokenpoolops.ConfigureBurnMintTokenPoolInput
	TimelockConfig     *utils.TimelockConfig
}

type UpgradeRegistry

type UpgradeRegistry struct{}

func (UpgradeRegistry) Apply

Apply implements deployment.ChangeSetV2.

func (UpgradeRegistry) VerifyPreconditions

func (d UpgradeRegistry) VerifyPreconditions(e cldf.Environment, config UpgradeRegistryConfig) error

VerifyPreconditions implements deployment.ChangeSetV2.

type UpgradeRegistryConfig

type UpgradeRegistryConfig struct {
	SuiChainSelector uint64
	CCIPPackageId    string
	StateObjectId    string
	OwnerCapObjectId string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL