Documentation
¶
Index ¶
- Variables
- func GetAptosOperations() []*cld_ops.Operation[any, any, any]
- type AcceptTokenAdminInput
- type AcceptTokenOwnershipInput
- type AcceptTokenPoolOwnershipInput
- type AddRemotePoolsInput
- type ApplyAllowedBurnersInput
- type ApplyAllowedMintersInput
- type ApplyChainUpdatesInput
- type ApplyOnRampDestChainConfigUpdatesV1Input
- type ApplyPremiumMultiplierInput
- type ApplyTokenTransferFeeCfgInput
- type ConfigureCurseMCMSInput
- type ConfigureMCMSInput
- type CurseMCMSMinDelayInput
- type DeployCCIPInput
- type DeployCCIPOutput
- type DeployCurseMCMSInput
- type DeployModulesInput
- type DeployRegulatedTokenMCMSRegistrarInput
- type DeployTokenFaucetInput
- type DeployTokenInput
- type DeployTokenOutput
- type DeployTokenPoolModuleInput
- type DeployTokenPoolPackageOutput
- type DeployTokenRegistrarInput
- type ExecuteRegulatedTokenOwnershipTransferInput
- type ExecuteTokenOwnershipTransferInput
- type ExecuteTokenPoolOwnershipTransferInput
- type GrantRegulatedTokenMinterRoleInput
- type GrantRoleInput
- type InitializeCCIPInput
- type InitializeRegulatedTokenInput
- type InitializeTokenInput
- type MigrateOnRampDestChainConfigsToV2Input
- type MintRegulatedTokenInput
- type MintTokensInput
- type ProposeAdministratorInput
- type RevokeRegulatedTokenMinterRoleInput
- type SetChainRLConfigsInput
- type SetOcr3ConfigInput
- type SetPoolInput
- type TimelockMinDelayInput
- type TransferRegulatedTokenAdminInput
- type TransferRegulatedTokenOwnershipInput
- type TransferTokenAdminInput
- type TransferTokenOwnershipInput
- type TransferTokenPoolOwnershipInput
- type UpdateFeeQuoterDestsInput
- type UpdateFeeQuoterPricesInput
- type UpdateOffRampSourcesInput
- type UpdateOnRampDestsInput
- type UpdateRouterDestInput
Constants ¶
This section is empty.
Variables ¶
var AcceptAdminRoleOp = operations.NewOperation( "accept-admin-role-op", Version1_0_0, "Accepts a new administrator for a given token", acceptAdminRole, )
var AcceptCurseMCMSOwnershipOp = operations.NewOperation( "accept-curse-mcms-ownership-op", Version1_0_0, "Generate Accept Ownership transaction for CurseMCMS", acceptCurseMCMSOwnership, )
OP: AcceptCurseMCMSOwnershipOp encodes an AcceptOwnership transaction for the CurseMCMS contract. This must be submitted as a CurseMCMS proposal so the CurseMCMS resource account signer can call it.
var AcceptOwnershipOp = operations.NewOperation( "accept-ownership-op", Version1_0_0, "Generate Accept Ownership BatchOperations for MCMS Contract", acceptOwnership, )
OP: Accept Ownership
var AcceptTokenAdminOp = operations.NewOperation( "accept-token-admin-op", Version1_0_0, "Accepts the admin role of a regulated token", acceptTokenAdmin, )
var AcceptTokenOwnershipOp = operations.NewOperation( "accept-token-ownership-op", Version1_0_0, "Accepts ownership of a managed/regulated token", acceptTokenOwnership, )
var AcceptTokenPoolOwnershipOp = operations.NewOperation( "accept-token-pool-ownership-op", Version1_0_0, "Accepts ownership of a managed/BnM/LnR token pool", acceptTokenPoolOwnership, )
var AddRemotePoolsOp = operations.NewOperation( "add-remote-pools-op", Version1_0_0, "Adds new remote pools to an Aptos token pool", addRemotePools, )
var ApplyAllowedBurnersOp = operations.NewOperation( "apply-allowed-burners-op", Version1_0_0, "Applies the given burners remove/add to the managed token", applyAllowedBurners, )
GrantBurnerPermissionsOp operation to grant burner permissions
var ApplyAllowedMintersOp = operations.NewOperation( "apply-allowed-minters-op", Version1_0_0, "Applies the given minters remove/add to the managed token", applyAllowedMinters, )
GrantMinterPermissionsOp operation to grant minter permissions
var ApplyAllowedOfframpUpdatesOp = operations.NewOperation( "apply-allowed-offramp-updates-op", Version1_0_0, "Adds CCIP owner address to OffRamp allow list", applyAllowedOfframpUpdates, )
OP: ApplyAllowedOfframpUpdates Operation
var ApplyChainUpdatesOp = operations.NewOperation( "apply-chain-updates-op", Version1_0_0, "Apply chain updates to an Aptos token pool", applyChainUpdates, )
ApplyChainUpdatesOp ...
var ApplyOnRampDestChainConfigUpdatesV1Op = operations.NewOperation( "apply-onramp-dest-chain-config-updates-v1-op", Version1_0_0, "Applies legacy V1 OnRamp destination chain configurations", applyOnRampDestChainConfigUpdatesV1, )
ApplyOnRampDestChainConfigUpdatesV1Op applies V1 OnRamp destination chain configs.
var ApplyPremiumMultiplierOp = operations.NewOperation( "apply-premium-multiplier-op", Version1_0_0, "Applies premium multiplier wei per eth updates to FeeQuoter prices", applyPremiumMultiplier, )
ApplyPremiumMultiplierOp operation to update FeeQuoter prices
var ApplyTokenTransferFeeCfgOp = operations.NewOperation( "apply-token-transfer-fee-cfg-op", Version1_0_0, "Applies token transfer fee configuration updates to FeeQuoter prices", applyTokenTransferFeeCfg, )
ApplyTokenTransferFeeCfgOp operation to apply token transfer fee configuration updates
var CCIPOperations = []*operations.Operation[any, any, any]{ DeployRouterOp.AsUntypedRelaxed(), DeployOffRampOp.AsUntypedRelaxed(), DeployOnRampOp.AsUntypedRelaxed(), InitializeCCIPOp.AsUntypedRelaxed(), ApplyAllowedOfframpUpdatesOp.AsUntypedRelaxed(), }
var CleanupStagingAreaOp = operations.NewOperation( "cleanup-staging-area-op", Version1_0_0, "Cleans up MCMS staging area if it's not already clean", cleanupStagingArea, )
OP: CleanupStagingAreaOp generates a batch operation to clean up the staging area
var ConfigureCurseMCMSOp = operations.NewOperation( "configure-curse-mcms-op", Version1_0_0, "Configure CurseMCMS role (bypasser, canceller, or proposer)", configureCurseMCMS, )
var ConfigureMCMSOp = operations.NewOperation( "configure-mcms-op", Version1_0_0, "Configure MCMS Contract Operation for Aptos Chain", configureMCMS, )
var DeployCCIPOp = operations.NewOperation( "deploy-ccip-op", Version1_0_0, "Deploys CCIP Package for Aptos Chain", deployCCIP, )
var DeployCurseMCMSOp = operations.NewOperation( "deploy-curse-mcms-op", Version1_0_0, "Deploys CurseMCMS Contract to a resource account", deployCurseMCMS, )
var DeployMCMSOp = operations.NewOperation( "deploy-mcms-op", Version1_0_0, "Deploys MCMS Contract Operation for Aptos Chain", deployMCMS, )
OP: Deploy MCMS Contract
var DeployOffRampOp = operations.NewOperation( "deploy-offramp-op", Version1_0_0, "Generates MCMS proposals that deploys OffRamp module on CCIP package", deployOffRamp, )
OP: DeployOffRampOp generates deployment MCMS operations for the OffRamp module
var DeployOnRampOp = operations.NewOperation( "deploy-onramp-op", Version1_0_0, "Generates MCMS proposals that deploys OnRamp module on CCIP package", deployOnRamp, )
OP: DeployOnRampOp generates MCMS proposals for the OnRamp module deployment
var DeployRegulatedTokenMCMSRegistrarOp = operations.NewOperation( "deploy-regulated-token-mcms-registrar-op", Version1_0_0, "Deploy MCMS registrar on existing regulated token code object", deployRegulatedTokenMCMSRegistrar, )
DeployRegulatedTokenMCMSRegistrarOp attaches the MCMS registrar to the token code object (one tx).
var DeployRegulatedTokenObjectOp = operations.NewOperation( "deploy-regulated-token-object-op", Version1_0_0, "Deploy regulated_token package to a new object", deployRegulatedTokenObject, )
DeployRegulatedTokenObjectOp publishes the regulated_token package to a new code object (one tx).
var DeployRouterOp = operations.NewOperation( "deploy-router-op", Version1_0_0, "Generates MCMS proposals that deploys Router module on CCIP package", deployRouter, )
OP: DeployRouterOp generates deployment MCMS operations for the Router module
var DeployTokenFaucetOp = operations.NewOperation( "deploy-token-faucet-op", Version1_0_0, "Deploy the faucet package onto a managed token code object", deployTokenFaucet, )
var DeployTokenMCMSRegistrarOp = operations.NewOperation( "deploy-token-mcms-registrar-op", Version1_0_0, "Deploy token MCMS registrar onto managed token code object", deployTokenMCMSRegistrar, )
DeployTokenMCMSRegistrarOp generates proposal to deploy a MCMS registrar on a token package
var DeployTokenOp = operations.NewOperation( "deploy-token-op", Version1_0_0, "Deploy a managed token instance", deployToken, )
DeployTokenOp generates proposal to deploy a token
var DeployTokenPoolModuleOp = operations.NewOperation( "deploy-token-pool-module-op", Version1_0_0, "Deploy Aptos token pool module", deployTokenPoolModule, )
DeployTokenPoolModuleOp deploys token pool module to Token Object Address
var DeployTokenPoolPackageOp = operations.NewOperation( "deploy-token-pool-package-op", Version1_0_0, "Deploy Aptos token pool package", deployTokenPoolPackage, )
DeployTokenPoolPackageOp deploys token pool package to Token Object Address
var ExecuteRegulatedTokenOwnershipTransferOp = operations.NewOperation( "execute-regulated-token-ownership-transfer-op", Version1_0_0, "Execute regulated token ownership transfer (finalize 3-step handoff)", executeRegulatedTokenOwnershipTransfer, )
ExecuteRegulatedTokenOwnershipTransferOp finalizes the 3-step ownable handoff by calling regulated_token::execute_ownership_transfer with the original deployer (one tx). It must be called after the new owner has accepted ownership.
var ExecuteTokenOwnershipTransferOp = operations.NewOperation( "execute-token-ownership-transfer-op", Version1_0_0, "Executes the ownership transfer of a managed/regulated token, after ownership has been accepted by the receiver", executeTokenOwnershipTransfer, )
var ExecuteTokenPoolOwnershipTransferOp = operations.NewOperation( "execute-token-pool-ownership-transfer-op", Version1_0_0, "Executes the ownership transfer of a managed/BnM/LnR token pool", executeTokenPoolOwnershipTransfer, )
var FeeQuoterOperations = []*operations.Operation[any, any, any]{ UpdateFeeQuoterDestsOp.AsUntypedRelaxed(), UpdateFeeQuoterPricesOp.AsUntypedRelaxed(), ApplyPremiumMultiplierOp.AsUntypedRelaxed(), ApplyTokenTransferFeeCfgOp.AsUntypedRelaxed(), }
var GrantRegulatedTokenMinterRoleOp = operations.NewOperation( "grant-regulated-token-minter-role-op", Version1_0_0, "Grant regulated token minter role", grantRegulatedTokenMinterRole, )
GrantRegulatedTokenMinterRoleOp grants MINTER_ROLE to one account (one tx).
var GrantRoleOp = operations.NewOperation( "grant-role-op", Version1_0_0, "Grants the given role to the given account on the regulated token", grantRole, )
For regulated tokens
var InitializeCCIPOp = operations.NewOperation( "initialize-ccip-op", Version1_0_0, "Initializes CCIP components with configuration parameters", initializeCCIP, )
var InitializeRegulatedTokenOp = operations.NewOperation( "initialize-regulated-token-op", Version1_0_0, "Initialize regulated token metadata and hooks", initializeRegulatedToken, )
InitializeRegulatedTokenOp runs regulated_token::initialize (one tx).
var InitializeTokenOp = operations.NewOperation( "initialize-token-op", Version1_0_0, "initialize token", initializeToken, )
DeployTokenMCMSRegistrarOp generates proposal to deploy a MCMS registrar on a token package
var MCMSOperations = []*operations.Operation[any, any, any]{ AcceptOwnershipOp.AsUntypedRelaxed(), SetMinDelayOP.AsUntypedRelaxed(), CleanupStagingAreaOp.AsUntypedRelaxed(), }
var MigrateOnRampDestChainConfigsToV2Op = operations.NewOperation( "migrate-onramp-dest-chain-configs-to-v2-op", Version1_0_0, "Migrates OnRamp destination chain configs from V1 to V2", migrateOnRampDestChainConfigsToV2, )
var MintRegulatedTokenOp = operations.NewOperation( "mint-regulated-token-op", Version1_0_0, "Mint regulated token to an account", mintRegulatedToken, )
MintRegulatedTokenOp mints to an address (one tx).
var MintTokensOp = operations.NewOperation( "mint-tokens-op", Version1_0_0, "Mints tokens to a target account", mintTokens, )
var OffRampOperations = []*operations.Operation[any, any, any]{ UpdateOffRampSourcesOp.AsUntypedRelaxed(), SetOcr3ConfigOp.AsUntypedRelaxed(), }
var OnRampOperations = []*operations.Operation[any, any, any]{ ApplyOnRampDestChainConfigUpdatesV1Op.AsUntypedRelaxed(), UpdateOnRampDestsOp.AsUntypedRelaxed(), MigrateOnRampDestChainConfigsToV2Op.AsUntypedRelaxed(), }
var ProposeAdministratorOp = operations.NewOperation( "propose-administrator-op", Version1_0_0, "Proposes a new administrator for a given token", proposeAdministrator, )
var RevokeRegulatedTokenMinterRoleOp = operations.NewOperation( "revoke-regulated-token-minter-role-op", Version1_0_0, "Revoke regulated token minter role from an account", revokeRegulatedTokenMinterRole, )
RevokeRegulatedTokenMinterRoleOp revokes MINTER_ROLE from one account (one tx).
var RouterOperations = []*operations.Operation[any, any, any]{ UpdateRouterOp.AsUntypedRelaxed(), }
var SetChainRateLimiterConfigsOp = operations.NewOperation( "set-chain-rate-limiter-configs-op", Version1_0_0, "Set chain rate limiter configs for an Aptos token pool", setChainRateLimiterConfigs, )
var SetCurseMCMSMinDelayOp = operations.NewOperation( "set-curse-mcms-min-delay-op", Version1_0_0, "Generate set timelock min delay transaction for CurseMCMS", setCurseMCMSMinDelay, )
var SetMinDelayOP = operations.NewOperation( "set-timelock-min-delay-op", Version1_0_0, "Generate set timelock min delay MCMS BatchOperations", setMinDelay, )
var SetOcr3ConfigOp = operations.NewOperation( "set-ocr3-config-op", Version1_0_0, "Sets OCR3 configuration for OffRamp", setOcr3Config, )
SetOcr3ConfigOp operation sets commit or exec OCR3 configuration for OffRamp
var SetPoolOp = operations.NewOperation( "set-pool-op", Version1_0_0, "Sets the pool for a given token", setPool, )
var TokenAdminRegistryOperations = []*operations.Operation[any, any, any]{ ProposeAdministratorOp.AsUntypedRelaxed(), AcceptAdminRoleOp.AsUntypedRelaxed(), SetPoolOp.AsUntypedRelaxed(), }
var TokenOperations = []*operations.Operation[any, any, any]{ DeployTokenMCMSRegistrarOp.AsUntypedRelaxed(), InitializeTokenOp.AsUntypedRelaxed(), MintTokensOp.AsUntypedRelaxed(), ApplyAllowedMintersOp.AsUntypedRelaxed(), ApplyAllowedBurnersOp.AsUntypedRelaxed(), DeployTokenFaucetOp.AsUntypedRelaxed(), GrantRoleOp.AsUntypedRelaxed(), TransferTokenOwnershipOp.AsUntypedRelaxed(), AcceptTokenOwnershipOp.AsUntypedRelaxed(), ExecuteTokenOwnershipTransferOp.AsUntypedRelaxed(), TransferTokenAdminOp.AsUntypedRelaxed(), AcceptTokenAdminOp.AsUntypedRelaxed(), }
TokenOperations contains the token operations whose output is consumed by MCMS proposals.
var TokenPoolOperations = []*operations.Operation[any, any, any]{ DeployTokenPoolModuleOp.AsUntypedRelaxed(), ApplyChainUpdatesOp.AsUntypedRelaxed(), SetChainRateLimiterConfigsOp.AsUntypedRelaxed(), AddRemotePoolsOp.AsUntypedRelaxed(), TransferTokenPoolOwnershipOp.AsUntypedRelaxed(), AcceptTokenPoolOwnershipOp.AsUntypedRelaxed(), ExecuteTokenPoolOwnershipTransferOp.AsUntypedRelaxed(), }
var TransferCurseMCMSOwnershipToSelfOp = operations.NewOperation( "transfer-curse-mcms-ownership-to-self-op", Version1_0_0, "Transfer CurseMCMS ownership to self", transferCurseMCMSOwnershipToSelf, )
OP: TransferCurseMCMSOwnershipToSelfOp transfers CurseMCMS ownership to the CurseMCMS resource account itself. The deployer is still the owner at this point so the call is signed directly.
var TransferOwnershipToSelfOp = operations.NewOperation( "transfer-ownership-to-self-op", Version1_0_0, "Transfer ownership to self", transferOwnershipToSelf, )
OP: Transfer Ownership to Self
var TransferRegulatedTokenAdminOp = operations.NewOperation( "transfer-regulated-token-admin-op", Version1_0_0, "Transfer regulated token admin role to the given address", transferRegulatedTokenAdmin, )
TransferRegulatedTokenAdminOp proposes admin role transfer to the given address (one tx).
var TransferRegulatedTokenOwnershipOp = operations.NewOperation( "transfer-regulated-token-ownership-op", Version1_0_0, "Transfer regulated token ownership to the given address", transferRegulatedTokenOwnership, )
TransferRegulatedTokenOwnershipOp starts ownership transfer to the given address (one tx).
var TransferTokenAdminOp = operations.NewOperation( "transfer-token-admin-op", Version1_0_0, "Transfers the admin of a regulated token to a new account", transferAdmin, )
var TransferTokenOwnershipOp = operations.NewOperation( "transfer-token-ownership-op", Version1_0_0, "Initiates the ownership transfer of a managed/regulated token to a given address", transferTokenOwnership, )
var TransferTokenPoolOwnershipOp = operations.NewOperation( "transfer-token-pool-ownerhip-op", Version1_0_0, "Initiated the ownership transfer of a managed/BnM/LnR token pool to a given address", transferTokenPoolOwnership, )
var UpdateFeeQuoterDestsOp = operations.NewOperation( "update-fee-quoter-dests-op", Version1_0_0, "Updates FeeQuoter destination chain configurations", updateFeeQuoterDests, )
UpdateFeeQuoterDestsOp operation to update FeeQuoter destination configurations
var UpdateFeeQuoterPricesOp = operations.NewOperation( "update-fee-quoter-prices-op", Version1_0_0, "Updates FeeQuoter token and gas prices", updateFeeQuoterPrices, )
UpdateFeeQuoterPricesOp operation to update FeeQuoter prices
var UpdateOffRampSourcesOp = operations.NewOperation( "update-offramp-sources-op", Version1_0_0, "Updates OffRamp source chain configurations", updateOffRampSources, )
UpdateOffRampSourcesOp operation to update OffRamp source configurations
var UpdateOnRampDestsOp = operations.NewOperation( "update-onramp-dests-op", Version1_0_0, "Updates OnRamp destination chain configurations", updateOnRampDests, )
UpdateOnRampDestsOp operation to update OnRamp destination configurations
var UpdateRouterOp = operations.NewOperation( "update-router-op", Version1_0_0, "Updates Router destination chain configurations", updateRouter, )
UpdateRouterOp...
var Version1_0_0 = semver.MustParse("1.0.0")
Holds versions for Aptos changeset/operations
Functions ¶
Types ¶
type AcceptTokenAdminInput ¶
type AcceptTokenAdminInput struct {
// Must be of type regulated_token
TokenCodeObjectAddress aptos.AccountAddress
}
type AcceptTokenOwnershipInput ¶
type AcceptTokenOwnershipInput struct {
TokenCodeObjectAddress aptos.AccountAddress
TokenType deployment.ContractType
}
type AcceptTokenPoolOwnershipInput ¶
type AcceptTokenPoolOwnershipInput struct {
TokenPoolAddress aptos.AccountAddress
TokenPoolType cldf.ContractType
}
type AddRemotePoolsInput ¶
type AddRemotePoolsInput struct {
TokenPoolAddress aptos.AccountAddress
TokenPoolType cldf.ContractType
RemoteChainSelectors []uint64
RemotePoolAddresses [][]byte
}
type ApplyAllowedBurnersInput ¶
type ApplyAllowedBurnersInput struct {
// Must be of type managed_token
TokenCodeObjectAddress aptos.AccountAddress
BurnersToAdd []aptos.AccountAddress
BurnersToRemove []aptos.AccountAddress
}
type ApplyAllowedMintersInput ¶
type ApplyAllowedMintersInput struct {
// Must be of type managed_token
TokenCodeObjectAddress aptos.AccountAddress
MintersToAdd []aptos.AccountAddress
MintersToRemove []aptos.AccountAddress
}
type ApplyChainUpdatesInput ¶
type ApplyChainUpdatesInput struct {
TokenPoolAddress aptos.AccountAddress
TokenPoolType cldf.ContractType
RemoteChainSelectorsToRemove []uint64
RemoteChainSelectorsToAdd []uint64
RemotePoolAddresses [][][]byte
RemoteTokenAddresses [][]byte
}
type ApplyOnRampDestChainConfigUpdatesV1Input ¶
type ApplyOnRampDestChainConfigUpdatesV1Input struct {
DestChainSelectors []uint64
DestChainRouters []aptos.AccountAddress
DestChainAllowlistEnabled []bool
}
ApplyOnRampDestChainConfigUpdatesV1Input configures legacy V1 OnRamp destination chain entries.
type ApplyPremiumMultiplierInput ¶
type ApplyPremiumMultiplierInput struct {
CCIPAddress aptos.AccountAddress
MultiplierBySourceToken map[string]uint64 // source token address (aptos) -> premium wei per eth
}
ApplyPremiumMultiplierInput contains configuration for updating FeeQuoter price configs
type ApplyTokenTransferFeeCfgInput ¶
type ApplyTokenTransferFeeCfgInput struct {
DestChainSelector uint64
ConfigsByToken map[string]fee_quoter.TokenTransferFeeConfig // token address (string) -> config
RemoveTokens []aptos.AccountAddress
}
ApplyTokenTransferFeeCfgInput contains configuration for updating FeeQuoter price configs
type ConfigureCurseMCMSInput ¶
type ConfigureCurseMCMSInput struct {
CurseMCMSAddress aptos.AccountAddress
MCMSConfigs mcmstypes.Config
MCMSRole aptosmcms.TimelockRole
}
OP: ConfigureCurseMCMSOp configures a role on the CurseMCMS contract. Unlike the main MCMS configurer, this calls curse_mcms::set_config directly.
type ConfigureMCMSInput ¶
type ConfigureMCMSInput struct {
MCMSAddress aptos.AccountAddress
MCMSConfigs mcmstypes.Config
MCMSRole aptosmcms.TimelockRole
}
OP: Configure MCMS Contract
type CurseMCMSMinDelayInput ¶
type CurseMCMSMinDelayInput struct {
CurseMCMSAddress aptos.AccountAddress
TimelockMinDelay uint64
}
OP: SetCurseMCMSMinDelayOp encodes a CurseMCMS timelock transaction for timelock_update_min_delay. This must be submitted as a CurseMCMS proposal because the function requires TIMELOCK_ROLE.
type DeployCCIPInput ¶
type DeployCCIPInput struct {
MCMSAddress aptos.AccountAddress
IsUpgrade bool
}
OP: DeployCCIPOp deploys the CCIP package on Aptos chain
type DeployCCIPOutput ¶
type DeployCCIPOutput struct {
CCIPAddress aptos.AccountAddress
MCMSOperations []mcmstypes.Operation
}
type DeployCurseMCMSInput ¶
type DeployCurseMCMSInput struct {
MCMSAddress aptos.AccountAddress
CCIPAddress aptos.AccountAddress
}
OP: DeployCurseMCMSOp deploys CurseMCMS to a new resource account.
type DeployModulesInput ¶
type DeployModulesInput struct {
MCMSAddress aptos.AccountAddress
CCIPAddress aptos.AccountAddress
}
DeployModulesInput is the input for every module deployment operation
type DeployRegulatedTokenMCMSRegistrarInput ¶
type DeployRegulatedTokenMCMSRegistrarInput struct {
TokenCodeObjectAddress aptos.AccountAddress
MCMSAddress aptos.AccountAddress
RegistrarPreregister bool
}
DeployRegulatedTokenMCMSRegistrarInput is input for DeployRegulatedTokenMCMSRegistrarOp.
type DeployTokenFaucetInput ¶
type DeployTokenFaucetInput struct {
MCMSAddress aptos.AccountAddress
TokenCodeObjectAddress aptos.AccountAddress
}
type DeployTokenInput ¶
type DeployTokenInput struct {
Name string
Symbol string
MCMSAddress aptos.AccountAddress
}
type DeployTokenOutput ¶
type DeployTokenOutput struct {
TokenCodeObjectAddress aptos.AccountAddress
TokenAddress aptos.AccountAddress
TokenOwnerAddress aptos.AccountAddress
MCMSOps []types.Operation
}
type DeployTokenPoolModuleInput ¶
type DeployTokenPoolModuleInput struct {
PoolType cldf.ContractType
TokenCodeObjAddress aptos.AccountAddress
TokenAddress aptos.AccountAddress
TokenPoolObjAddress aptos.AccountAddress
}
type DeployTokenPoolPackageOutput ¶
type DeployTokenPoolPackageOutput struct {
TokenPoolObjectAddress aptos.AccountAddress
MCMSOps []types.Operation
}
type DeployTokenRegistrarInput ¶
type DeployTokenRegistrarInput struct {
TokenCodeObjectAddress aptos.AccountAddress
MCMSAddress aptos.AccountAddress
}
type ExecuteRegulatedTokenOwnershipTransferInput ¶
type ExecuteRegulatedTokenOwnershipTransferInput struct {
TokenCodeObjectAddress aptos.AccountAddress
To aptos.AccountAddress
}
ExecuteRegulatedTokenOwnershipTransferInput is input for ExecuteRegulatedTokenOwnershipTransferOp.
type ExecuteTokenOwnershipTransferInput ¶
type ExecuteTokenOwnershipTransferInput struct {
TokenCodeObjectAddress aptos.AccountAddress
To aptos.AccountAddress
TokenType deployment.ContractType
}
type ExecuteTokenPoolOwnershipTransferInput ¶
type ExecuteTokenPoolOwnershipTransferInput struct {
TokenPoolAddress aptos.AccountAddress
To aptos.AccountAddress
TokenPoolType cldf.ContractType
}
type GrantRegulatedTokenMinterRoleInput ¶
type GrantRegulatedTokenMinterRoleInput struct {
TokenCodeObjectAddress aptos.AccountAddress
Grantee aptos.AccountAddress
}
GrantRegulatedTokenMinterRoleInput is input for GrantRegulatedTokenMinterRoleOp.
type GrantRoleInput ¶
type GrantRoleInput struct {
// Must be of type regulated_token
TokenCodeObjectAddress aptos.AccountAddress
RoleNumber uint8
Account aptos.AccountAddress
}
type InitializeCCIPInput ¶
type InitializeCCIPInput struct {
MCMSAddress aptos.AccountAddress
CCIPAddress aptos.AccountAddress
LinkTokenAddress aptos.AccountAddress
CCIPConfig aptoscfg.ChainContractParams
}
OP: InitializeCCIP Operation
type InitializeRegulatedTokenInput ¶
type InitializeRegulatedTokenInput struct {
TokenCodeObjectAddress aptos.AccountAddress
TokenParams config.TokenParams
}
InitializeRegulatedTokenInput is input for InitializeRegulatedTokenOp.
type InitializeTokenInput ¶
type MigrateOnRampDestChainConfigsToV2Input ¶
type MigrateOnRampDestChainConfigsToV2Input struct {
DestChainSelectors []uint64
RouterModuleAddresses []aptos.AccountAddress
}
type MintRegulatedTokenInput ¶
type MintRegulatedTokenInput struct {
TokenCodeObjectAddress aptos.AccountAddress
To aptos.AccountAddress
Amount uint64
}
MintRegulatedTokenInput is input for MintRegulatedTokenOp.
type MintTokensInput ¶
type MintTokensInput struct {
TokenCodeObjectAddress aptos.AccountAddress
To aptos.AccountAddress
Amount uint64
}
type ProposeAdministratorInput ¶
type ProposeAdministratorInput struct {
TokenAddress aptos.AccountAddress
TokenAdministrator aptos.AccountAddress
}
type RevokeRegulatedTokenMinterRoleInput ¶
type RevokeRegulatedTokenMinterRoleInput struct {
TokenCodeObjectAddress aptos.AccountAddress
Account aptos.AccountAddress
}
RevokeRegulatedTokenMinterRoleInput is input for RevokeRegulatedTokenMinterRoleOp.
type SetChainRLConfigsInput ¶
type SetOcr3ConfigInput ¶
type SetOcr3ConfigInput struct {
OcrPluginType uint8
OCRConfigArgs internal.MultiOCR3BaseOCRConfigArgsAptos
}
SetOcr3ConfigInput contains configuration for setting the OCR3 config on the OffRamp
type SetPoolInput ¶
type SetPoolInput struct {
TokenAddress aptos.AccountAddress
TokenPoolAddress aptos.AccountAddress
}
type TimelockMinDelayInput ¶
type TimelockMinDelayInput struct {
MCMSAddress aptos.AccountAddress
TimelockMinDelay uint64
}
OP: SetMinDelay
type TransferRegulatedTokenAdminInput ¶
type TransferRegulatedTokenAdminInput struct {
TokenCodeObjectAddress aptos.AccountAddress
NewAdmin aptos.AccountAddress
}
TransferRegulatedTokenAdminInput is input for TransferRegulatedTokenAdminOp.
type TransferRegulatedTokenOwnershipInput ¶
type TransferRegulatedTokenOwnershipInput struct {
TokenCodeObjectAddress aptos.AccountAddress
To aptos.AccountAddress
}
TransferRegulatedTokenOwnershipInput is input for TransferRegulatedTokenOwnershipOp.
type TransferTokenAdminInput ¶
type TransferTokenAdminInput struct {
// Must be of type regulated_token
TokenCodeObjectAddress aptos.AccountAddress
NewAdmin aptos.AccountAddress
}
type TransferTokenOwnershipInput ¶
type TransferTokenOwnershipInput struct {
TokenCodeObjectAddress aptos.AccountAddress
TokenType deployment.ContractType
To aptos.AccountAddress
}
type TransferTokenPoolOwnershipInput ¶
type TransferTokenPoolOwnershipInput struct {
TokenPoolAddress aptos.AccountAddress
To aptos.AccountAddress
TokenPoolType cldf.ContractType
}
type UpdateFeeQuoterDestsInput ¶
type UpdateFeeQuoterDestsInput struct {
Updates map[uint64]fee_quoter.DestChainConfig
}
UpdateFeeQuoterDestsInput contains configuration for updating FeeQuoter destination configs
type UpdateFeeQuoterPricesInput ¶
type UpdateFeeQuoterPricesInput struct {
TokenPrices map[string]*big.Int // token address (string) -> price
GasPrices map[uint64]*big.Int // dest chain -> gas price
}
UpdateFeeQuoterPricesInput contains configuration for updating FeeQuoter price configs
type UpdateOffRampSourcesInput ¶
type UpdateOffRampSourcesInput struct {
Updates map[uint64]v1_6.OffRampSourceUpdate
}
UpdateOffRampSourcesInput contains configuration for updating OffRamp sources
type UpdateOnRampDestsInput ¶
type UpdateOnRampDestsInput struct {
Updates map[uint64]v1_6.OnRampDestinationUpdate
}
UpdateOnRampDestsInput contains configuration for updating OnRamp destinations
type UpdateRouterDestInput ¶
type UpdateRouterDestInput struct {
Updates []aptos_router.OnRampSet
}
UpdateRouterDestInput contains configuration for updating FeeQuoter destination configs