executor

package
v0.0.0-...-346157b Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageName = "ccip-executor"
	PackageID   = "8c9a68cc9b555a9a18dd94df9a8edcf7af4e3838ca5590ce9907cec5bea73bc3"
	SDKVersion  = "3.4.11"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyAllowedCCVUpdates

type ApplyAllowedCCVUpdates struct {
	CcvsToRemove        []chainlinkapi.RawInstanceAddress `json:"ccvsToRemove"`
	CcvsToAdd           []chainlinkapi.RawInstanceAddress `json:"ccvsToAdd"`
	CcvAllowlistEnabled types.BOOL                        `json:"ccvAllowlistEnabled"`
}

ApplyAllowedCCVUpdates is a Record type

func (ApplyAllowedCCVUpdates) MarshalHex

func (t ApplyAllowedCCVUpdates) MarshalHex() (string, error)

MarshalHex encodes ApplyAllowedCCVUpdates to hex string (Canton MCMS format)

func (ApplyAllowedCCVUpdates) MarshalJSON

func (t ApplyAllowedCCVUpdates) MarshalJSON() ([]byte, error)

func (ApplyAllowedCCVUpdates) ToMap

func (t ApplyAllowedCCVUpdates) ToMap() map[string]any

ToMap converts ApplyAllowedCCVUpdates to a map for DAML arguments

func (*ApplyAllowedCCVUpdates) UnmarshalHex

func (t *ApplyAllowedCCVUpdates) UnmarshalHex(data string) error

UnmarshalHex decodes ApplyAllowedCCVUpdates from hex string (Canton MCMS format)

func (*ApplyAllowedCCVUpdates) UnmarshalJSON

func (t *ApplyAllowedCCVUpdates) UnmarshalJSON(data []byte) error

type ApplyAllowedCCVUpdatesParams

type ApplyAllowedCCVUpdatesParams struct {
	CcvsToRemove        []chainlinkapi.RawInstanceAddress `json:"ccvsToRemove"`
	CcvsToAdd           []chainlinkapi.RawInstanceAddress `json:"ccvsToAdd"`
	CcvAllowlistEnabled types.BOOL                        `json:"ccvAllowlistEnabled"`
}

ApplyAllowedCCVUpdatesParams is a Record type

func (ApplyAllowedCCVUpdatesParams) MarshalHex

func (t ApplyAllowedCCVUpdatesParams) MarshalHex() (string, error)

MarshalHex encodes ApplyAllowedCCVUpdatesParams to hex string (Canton MCMS format)

func (ApplyAllowedCCVUpdatesParams) MarshalJSON

func (t ApplyAllowedCCVUpdatesParams) MarshalJSON() ([]byte, error)

func (ApplyAllowedCCVUpdatesParams) ToMap

func (t ApplyAllowedCCVUpdatesParams) ToMap() map[string]any

ToMap converts ApplyAllowedCCVUpdatesParams to a map for DAML arguments

func (*ApplyAllowedCCVUpdatesParams) UnmarshalHex

func (t *ApplyAllowedCCVUpdatesParams) UnmarshalHex(data string) error

UnmarshalHex decodes ApplyAllowedCCVUpdatesParams from hex string (Canton MCMS format)

func (*ApplyAllowedCCVUpdatesParams) UnmarshalJSON

func (t *ApplyAllowedCCVUpdatesParams) UnmarshalJSON(data []byte) error

type ApplyDestChainUpdates

type ApplyDestChainUpdates struct {
	DestChainSelectorsToRemove []types.NUMERIC         `json:"destChainSelectorsToRemove"`
	DestChainSelectorsToAdd    []RemoteChainConfigArgs `json:"destChainSelectorsToAdd"`
}

ApplyDestChainUpdates is a Record type

func (ApplyDestChainUpdates) MarshalHex

func (t ApplyDestChainUpdates) MarshalHex() (string, error)

MarshalHex encodes ApplyDestChainUpdates to hex string (Canton MCMS format)

func (ApplyDestChainUpdates) MarshalJSON

func (t ApplyDestChainUpdates) MarshalJSON() ([]byte, error)

func (ApplyDestChainUpdates) ToMap

func (t ApplyDestChainUpdates) ToMap() map[string]any

ToMap converts ApplyDestChainUpdates to a map for DAML arguments

func (*ApplyDestChainUpdates) UnmarshalHex

func (t *ApplyDestChainUpdates) UnmarshalHex(data string) error

UnmarshalHex decodes ApplyDestChainUpdates from hex string (Canton MCMS format)

func (*ApplyDestChainUpdates) UnmarshalJSON

func (t *ApplyDestChainUpdates) UnmarshalJSON(data []byte) error

type ApplyDestChainUpdatesParams

type ApplyDestChainUpdatesParams struct {
	DestChainSelectorsToRemove []types.NUMERIC         `json:"destChainSelectorsToRemove"`
	DestChainSelectorsToAdd    []RemoteChainConfigArgs `json:"destChainSelectorsToAdd"`
}

ApplyDestChainUpdatesParams is a Record type

func (ApplyDestChainUpdatesParams) MarshalHex

func (t ApplyDestChainUpdatesParams) MarshalHex() (string, error)

MarshalHex encodes ApplyDestChainUpdatesParams to hex string (Canton MCMS format)

func (ApplyDestChainUpdatesParams) MarshalJSON

func (t ApplyDestChainUpdatesParams) MarshalJSON() ([]byte, error)

func (ApplyDestChainUpdatesParams) ToMap

func (t ApplyDestChainUpdatesParams) ToMap() map[string]any

ToMap converts ApplyDestChainUpdatesParams to a map for DAML arguments

func (*ApplyDestChainUpdatesParams) UnmarshalHex

func (t *ApplyDestChainUpdatesParams) UnmarshalHex(data string) error

UnmarshalHex decodes ApplyDestChainUpdatesParams from hex string (Canton MCMS format)

func (*ApplyDestChainUpdatesParams) UnmarshalJSON

func (t *ApplyDestChainUpdatesParams) UnmarshalJSON(data []byte) error

type CalculateFee

type CalculateFee struct {
	ExpectedExecutor  chainlinkapi.RawInstanceAddress            `json:"expectedExecutor"`
	SendingMessageCid types.CONTRACT_ID                          `json:"sendingMessageCid"`
	ExecutorArgs      types.TEXT                                 `json:"executorArgs"`
	ExtraContext      splice_api_token_metadata_v1.ChoiceContext `json:"extraContext"`
	Caller            types.PARTY                                `json:"caller"`
}

CalculateFee is a Record type

func (CalculateFee) MarshalHex

func (t CalculateFee) MarshalHex() (string, error)

MarshalHex encodes CalculateFee to hex string (Canton MCMS format)

func (CalculateFee) MarshalJSON

func (t CalculateFee) MarshalJSON() ([]byte, error)

func (CalculateFee) ToMap

func (t CalculateFee) ToMap() map[string]any

ToMap converts CalculateFee to a map for DAML arguments

func (*CalculateFee) UnmarshalHex

func (t *CalculateFee) UnmarshalHex(data string) error

UnmarshalHex decodes CalculateFee from hex string (Canton MCMS format)

func (*CalculateFee) UnmarshalJSON

func (t *CalculateFee) UnmarshalJSON(data []byte) error

type CalculateFeeMCMSParams

type CalculateFeeMCMSParams struct {
	ExpectedExecutor  chainlinkapi.RawInstanceAddress            `json:"expectedExecutor"`
	SendingMessageCid types.CONTRACT_ID                          `json:"sendingMessageCid"`
	ExecutorArgs      types.TEXT                                 `json:"executorArgs"`
	ExtraContext      splice_api_token_metadata_v1.ChoiceContext `json:"extraContext"`
}

CalculateFeeMCMSParams is CalculateFee without the Caller field for MCMS operationData encoding. Use this when encoding choice arguments for MCMS timelock operations.

func (CalculateFeeMCMSParams) MarshalHex

func (t CalculateFeeMCMSParams) MarshalHex() (string, error)

MarshalHex encodes CalculateFeeMCMSParams to hex string for MCMS operationData.

func (*CalculateFeeMCMSParams) UnmarshalHex

func (t *CalculateFeeMCMSParams) UnmarshalHex(data string) error

UnmarshalHex decodes CalculateFeeMCMSParams from hex string.

type Contract

type Contract struct {
	// contains filtered or unexported fields
}

Contract wraps template operations with Sui-style API access. Use NewContract to create instances, then call Encoder() for encoding methods.

func NewContract

func NewContract(packageID, moduleName, templateName string) *Contract

NewContract creates a Contract with encoder for the given template. This provides Sui-style API: contract.Encoder().Method(args)

func (*Contract) Encoder

func (c *Contract) Encoder() MCMSEncoder

Encoder returns the encoder for Sui-style contract.Encoder().Method() usage.

type DynamicConfig

type DynamicConfig struct {
	FeeAggregator         *types.PARTY        `json:"feeAggregator" hex:"optional"`
	AllowedFinalityConfig core.FinalityConfig `json:"allowedFinalityConfig"`
	CcvAllowlistEnabled   types.BOOL          `json:"ccvAllowlistEnabled"`
}

DynamicConfig is a Record type

func (DynamicConfig) MarshalHex

func (t DynamicConfig) MarshalHex() (string, error)

MarshalHex encodes DynamicConfig to hex string (Canton MCMS format)

func (DynamicConfig) MarshalJSON

func (t DynamicConfig) MarshalJSON() ([]byte, error)

func (DynamicConfig) ToMap

func (t DynamicConfig) ToMap() map[string]any

ToMap converts DynamicConfig to a map for DAML arguments

func (*DynamicConfig) UnmarshalHex

func (t *DynamicConfig) UnmarshalHex(data string) error

UnmarshalHex decodes DynamicConfig from hex string (Canton MCMS format)

func (*DynamicConfig) UnmarshalJSON

func (t *DynamicConfig) UnmarshalJSON(data []byte) error

type Executor

type Executor struct {
	InstanceId         types.TEXT                          `json:"instanceId"`
	Owner              types.PARTY                         `json:"owner"`
	MaxCCVsPerMsg      types.INT64                         `json:"maxCCVsPerMsg"`
	DynamicConfig      DynamicConfig                       `json:"dynamicConfig"`
	AllowedCCVs        []chainlinkapi.RawInstanceAddress   `json:"allowedCCVs"`
	RemoteChainConfigs map[types.NUMERIC]RemoteChainConfig `json:"remoteChainConfigs"`
}

Executor is a Template type

func (Executor) ApplyAllowedCCVUpdates

func (t Executor) ApplyAllowedCCVUpdates(contractID string, args ApplyAllowedCCVUpdates) *model.ExerciseCommand

ApplyAllowedCCVUpdates exercises the ApplyAllowedCCVUpdates choice on this Executor contract This method uses the package name in the template ID

func (Executor) ApplyAllowedCCVUpdatesWithPackageID

func (t Executor) ApplyAllowedCCVUpdatesWithPackageID(contractID string, packageID string, args ApplyAllowedCCVUpdates) *model.ExerciseCommand

ApplyAllowedCCVUpdatesWithPackageID exercises the ApplyAllowedCCVUpdates choice using the provided package ID instead of package name

func (Executor) ApplyDestChainUpdates

func (t Executor) ApplyDestChainUpdates(contractID string, args ApplyDestChainUpdates) *model.ExerciseCommand

ApplyDestChainUpdates exercises the ApplyDestChainUpdates choice on this Executor contract This method uses the package name in the template ID

func (Executor) ApplyDestChainUpdatesWithPackageID

func (t Executor) ApplyDestChainUpdatesWithPackageID(contractID string, packageID string, args ApplyDestChainUpdates) *model.ExerciseCommand

ApplyDestChainUpdatesWithPackageID exercises the ApplyDestChainUpdates choice using the provided package ID instead of package name

func (Executor) Archive

func (t Executor) Archive(contractID string) *model.ExerciseCommand

Archive exercises the Archive choice on this Executor contract via the IIExecutor interface This method uses the package name in the template ID

func (Executor) ArchiveWithPackageID

func (t Executor) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand

ArchiveWithPackageID exercises the Archive choice using the provided package ID instead of package name

func (Executor) CalculateFee

func (t Executor) CalculateFee(contractID string, args CalculateFee) *model.ExerciseCommand

CalculateFee exercises the CalculateFee choice on this Executor contract This method uses the package name in the template ID

func (Executor) CalculateFeeWithPackageID

func (t Executor) CalculateFeeWithPackageID(contractID string, packageID string, args CalculateFee) *model.ExerciseCommand

CalculateFeeWithPackageID exercises the CalculateFee choice using the provided package ID instead of package name

func (Executor) CreateCommand

func (t Executor) CreateCommand() *model.CreateCommand

CreateCommand returns a CreateCommand for this template using the package name

func (Executor) CreateCommandWithPackageID

func (t Executor) CreateCommandWithPackageID(packageID string) *model.CreateCommand

CreateCommandWithPackageID returns a CreateCommand using the provided package ID instead of package name

func (Executor) ExecutorCalculateFee

func (t Executor) ExecutorCalculateFee(contractID string, args extensionapi.ExecutorCalculateFee) *model.ExerciseCommand

ExecutorCalculateFee exercises the Executor_CalculateFee choice on this Executor contract via the IIExecutor interface This method uses the package name in the template ID

func (Executor) ExecutorCalculateFeeWithPackageID

func (t Executor) ExecutorCalculateFeeWithPackageID(contractID string, packageID string, args extensionapi.ExecutorCalculateFee) *model.ExerciseCommand

ExecutorCalculateFeeWithPackageID exercises the Executor_CalculateFee choice using the provided package ID instead of package name

func (Executor) ExecutorGetFee

func (t Executor) ExecutorGetFee(contractID string, args extensionapi.ExecutorGetFee) *model.ExerciseCommand

ExecutorGetFee exercises the Executor_GetFee choice on this Executor contract via the IIExecutor interface This method uses the package name in the template ID

func (Executor) ExecutorGetFeeWithPackageID

func (t Executor) ExecutorGetFeeWithPackageID(contractID string, packageID string, args extensionapi.ExecutorGetFee) *model.ExerciseCommand

ExecutorGetFeeWithPackageID exercises the Executor_GetFee choice using the provided package ID instead of package name

func (Executor) GetAllowedCCVs

func (t Executor) GetAllowedCCVs(contractID string, args GetAllowedCCVs) *model.ExerciseCommand

GetAllowedCCVs exercises the GetAllowedCCVs choice on this Executor contract This method uses the package name in the template ID

func (Executor) GetAllowedCCVsWithPackageID

func (t Executor) GetAllowedCCVsWithPackageID(contractID string, packageID string, args GetAllowedCCVs) *model.ExerciseCommand

GetAllowedCCVsWithPackageID exercises the GetAllowedCCVs choice using the provided package ID instead of package name

func (Executor) GetAllowedFinalityConfig

func (t Executor) GetAllowedFinalityConfig(contractID string, args GetAllowedFinalityConfig) *model.ExerciseCommand

GetAllowedFinalityConfig exercises the GetAllowedFinalityConfig choice on this Executor contract This method uses the package name in the template ID

func (Executor) GetAllowedFinalityConfigWithPackageID

func (t Executor) GetAllowedFinalityConfigWithPackageID(contractID string, packageID string, args GetAllowedFinalityConfig) *model.ExerciseCommand

GetAllowedFinalityConfigWithPackageID exercises the GetAllowedFinalityConfig choice using the provided package ID instead of package name

func (Executor) GetDestChains

func (t Executor) GetDestChains(contractID string, args GetDestChains) *model.ExerciseCommand

GetDestChains exercises the GetDestChains choice on this Executor contract This method uses the package name in the template ID

func (Executor) GetDestChainsWithPackageID

func (t Executor) GetDestChainsWithPackageID(contractID string, packageID string, args GetDestChains) *model.ExerciseCommand

GetDestChainsWithPackageID exercises the GetDestChains choice using the provided package ID instead of package name

func (Executor) GetDynamicConfig

func (t Executor) GetDynamicConfig(contractID string, args GetDynamicConfig) *model.ExerciseCommand

GetDynamicConfig exercises the GetDynamicConfig choice on this Executor contract This method uses the package name in the template ID

func (Executor) GetDynamicConfigWithPackageID

func (t Executor) GetDynamicConfigWithPackageID(contractID string, packageID string, args GetDynamicConfig) *model.ExerciseCommand

GetDynamicConfigWithPackageID exercises the GetDynamicConfig choice using the provided package ID instead of package name

func (Executor) GetFee

func (t Executor) GetFee(contractID string, args GetFee) *model.ExerciseCommand

GetFee exercises the GetFee choice on this Executor contract This method uses the package name in the template ID

func (Executor) GetFeeWithPackageID

func (t Executor) GetFeeWithPackageID(contractID string, packageID string, args GetFee) *model.ExerciseCommand

GetFeeWithPackageID exercises the GetFee choice using the provided package ID instead of package name

func (Executor) GetMaxCCVsPerMessage

func (t Executor) GetMaxCCVsPerMessage(contractID string, args GetMaxCCVsPerMessage) *model.ExerciseCommand

GetMaxCCVsPerMessage exercises the GetMaxCCVsPerMessage choice on this Executor contract This method uses the package name in the template ID

func (Executor) GetMaxCCVsPerMessageWithPackageID

func (t Executor) GetMaxCCVsPerMessageWithPackageID(contractID string, packageID string, args GetMaxCCVsPerMessage) *model.ExerciseCommand

GetMaxCCVsPerMessageWithPackageID exercises the GetMaxCCVsPerMessage choice using the provided package ID instead of package name

func (Executor) GetTemplateID

func (t Executor) GetTemplateID() string

GetTemplateID returns the template ID for this template using the package name

func (Executor) GetTemplateIDWithPackageID

func (t Executor) GetTemplateIDWithPackageID(packageID string) string

GetTemplateIDWithPackageID returns the template ID using the provided package ID instead of package name

func (Executor) MCMSReceiverEntrypoint

func (t Executor) MCMSReceiverEntrypoint(contractID string, args api.MCMSReceiverEntrypoint) *model.ExerciseCommand

MCMSReceiverEntrypoint exercises the MCMSReceiver_Entrypoint choice on this Executor contract via the IMCMSReceiver interface This method uses the package name in the template ID

func (Executor) MCMSReceiverEntrypointWithPackageID

func (t Executor) MCMSReceiverEntrypointWithPackageID(contractID string, packageID string, args api.MCMSReceiverEntrypoint) *model.ExerciseCommand

MCMSReceiverEntrypointWithPackageID exercises the MCMSReceiver_Entrypoint choice using the provided package ID instead of package name

func (Executor) MarshalHex

func (t Executor) MarshalHex() (string, error)

MarshalHex encodes Executor to hex string (Canton MCMS format)

func (Executor) MarshalJSON

func (t Executor) MarshalJSON() ([]byte, error)

func (Executor) SetDynamicConfig

func (t Executor) SetDynamicConfig(contractID string, args SetDynamicConfig) *model.ExerciseCommand

SetDynamicConfig exercises the SetDynamicConfig choice on this Executor contract This method uses the package name in the template ID

func (Executor) SetDynamicConfigWithPackageID

func (t Executor) SetDynamicConfigWithPackageID(contractID string, packageID string, args SetDynamicConfig) *model.ExerciseCommand

SetDynamicConfigWithPackageID exercises the SetDynamicConfig choice using the provided package ID instead of package name

func (*Executor) UnmarshalHex

func (t *Executor) UnmarshalHex(data string) error

UnmarshalHex decodes Executor from hex string (Canton MCMS format)

func (*Executor) UnmarshalJSON

func (t *Executor) UnmarshalJSON(data []byte) error

type GetAllowedCCVs

type GetAllowedCCVs struct {
	Caller types.PARTY `json:"caller"`
}

GetAllowedCCVs is a Record type

func (GetAllowedCCVs) MarshalHex

func (t GetAllowedCCVs) MarshalHex() (string, error)

MarshalHex encodes GetAllowedCCVs to hex string (Canton MCMS format)

func (GetAllowedCCVs) MarshalJSON

func (t GetAllowedCCVs) MarshalJSON() ([]byte, error)

func (GetAllowedCCVs) ToMap

func (t GetAllowedCCVs) ToMap() map[string]any

ToMap converts GetAllowedCCVs to a map for DAML arguments

func (*GetAllowedCCVs) UnmarshalHex

func (t *GetAllowedCCVs) UnmarshalHex(data string) error

UnmarshalHex decodes GetAllowedCCVs from hex string (Canton MCMS format)

func (*GetAllowedCCVs) UnmarshalJSON

func (t *GetAllowedCCVs) UnmarshalJSON(data []byte) error

type GetAllowedCCVsMCMSParams

type GetAllowedCCVsMCMSParams struct {
}

GetAllowedCCVsMCMSParams is GetAllowedCCVs without the Caller field for MCMS operationData encoding. Use this when encoding choice arguments for MCMS timelock operations.

func (GetAllowedCCVsMCMSParams) MarshalHex

func (t GetAllowedCCVsMCMSParams) MarshalHex() (string, error)

MarshalHex encodes GetAllowedCCVsMCMSParams to hex string for MCMS operationData.

func (*GetAllowedCCVsMCMSParams) UnmarshalHex

func (t *GetAllowedCCVsMCMSParams) UnmarshalHex(data string) error

UnmarshalHex decodes GetAllowedCCVsMCMSParams from hex string.

type GetAllowedFinalityConfig

type GetAllowedFinalityConfig struct {
	Caller types.PARTY `json:"caller"`
}

GetAllowedFinalityConfig is a Record type

func (GetAllowedFinalityConfig) MarshalHex

func (t GetAllowedFinalityConfig) MarshalHex() (string, error)

MarshalHex encodes GetAllowedFinalityConfig to hex string (Canton MCMS format)

func (GetAllowedFinalityConfig) MarshalJSON

func (t GetAllowedFinalityConfig) MarshalJSON() ([]byte, error)

func (GetAllowedFinalityConfig) ToMap

func (t GetAllowedFinalityConfig) ToMap() map[string]any

ToMap converts GetAllowedFinalityConfig to a map for DAML arguments

func (*GetAllowedFinalityConfig) UnmarshalHex

func (t *GetAllowedFinalityConfig) UnmarshalHex(data string) error

UnmarshalHex decodes GetAllowedFinalityConfig from hex string (Canton MCMS format)

func (*GetAllowedFinalityConfig) UnmarshalJSON

func (t *GetAllowedFinalityConfig) UnmarshalJSON(data []byte) error

type GetAllowedFinalityConfigMCMSParams

type GetAllowedFinalityConfigMCMSParams struct {
}

GetAllowedFinalityConfigMCMSParams is GetAllowedFinalityConfig without the Caller field for MCMS operationData encoding. Use this when encoding choice arguments for MCMS timelock operations.

func (GetAllowedFinalityConfigMCMSParams) MarshalHex

MarshalHex encodes GetAllowedFinalityConfigMCMSParams to hex string for MCMS operationData.

func (*GetAllowedFinalityConfigMCMSParams) UnmarshalHex

func (t *GetAllowedFinalityConfigMCMSParams) UnmarshalHex(data string) error

UnmarshalHex decodes GetAllowedFinalityConfigMCMSParams from hex string.

type GetDestChains

type GetDestChains struct {
	Caller types.PARTY `json:"caller"`
}

GetDestChains is a Record type

func (GetDestChains) MarshalHex

func (t GetDestChains) MarshalHex() (string, error)

MarshalHex encodes GetDestChains to hex string (Canton MCMS format)

func (GetDestChains) MarshalJSON

func (t GetDestChains) MarshalJSON() ([]byte, error)

func (GetDestChains) ToMap

func (t GetDestChains) ToMap() map[string]any

ToMap converts GetDestChains to a map for DAML arguments

func (*GetDestChains) UnmarshalHex

func (t *GetDestChains) UnmarshalHex(data string) error

UnmarshalHex decodes GetDestChains from hex string (Canton MCMS format)

func (*GetDestChains) UnmarshalJSON

func (t *GetDestChains) UnmarshalJSON(data []byte) error

type GetDestChainsMCMSParams

type GetDestChainsMCMSParams struct {
}

GetDestChainsMCMSParams is GetDestChains without the Caller field for MCMS operationData encoding. Use this when encoding choice arguments for MCMS timelock operations.

func (GetDestChainsMCMSParams) MarshalHex

func (t GetDestChainsMCMSParams) MarshalHex() (string, error)

MarshalHex encodes GetDestChainsMCMSParams to hex string for MCMS operationData.

func (*GetDestChainsMCMSParams) UnmarshalHex

func (t *GetDestChainsMCMSParams) UnmarshalHex(data string) error

UnmarshalHex decodes GetDestChainsMCMSParams from hex string.

type GetDynamicConfig

type GetDynamicConfig struct {
	Caller types.PARTY `json:"caller"`
}

GetDynamicConfig is a Record type

func (GetDynamicConfig) MarshalHex

func (t GetDynamicConfig) MarshalHex() (string, error)

MarshalHex encodes GetDynamicConfig to hex string (Canton MCMS format)

func (GetDynamicConfig) MarshalJSON

func (t GetDynamicConfig) MarshalJSON() ([]byte, error)

func (GetDynamicConfig) ToMap

func (t GetDynamicConfig) ToMap() map[string]any

ToMap converts GetDynamicConfig to a map for DAML arguments

func (*GetDynamicConfig) UnmarshalHex

func (t *GetDynamicConfig) UnmarshalHex(data string) error

UnmarshalHex decodes GetDynamicConfig from hex string (Canton MCMS format)

func (*GetDynamicConfig) UnmarshalJSON

func (t *GetDynamicConfig) UnmarshalJSON(data []byte) error

type GetDynamicConfigMCMSParams

type GetDynamicConfigMCMSParams struct {
}

GetDynamicConfigMCMSParams is GetDynamicConfig without the Caller field for MCMS operationData encoding. Use this when encoding choice arguments for MCMS timelock operations.

func (GetDynamicConfigMCMSParams) MarshalHex

func (t GetDynamicConfigMCMSParams) MarshalHex() (string, error)

MarshalHex encodes GetDynamicConfigMCMSParams to hex string for MCMS operationData.

func (*GetDynamicConfigMCMSParams) UnmarshalHex

func (t *GetDynamicConfigMCMSParams) UnmarshalHex(data string) error

UnmarshalHex decodes GetDynamicConfigMCMSParams from hex string.

type GetFee

type GetFee struct {
	ExpectedExecutor  chainlinkapi.RawInstanceAddress   `json:"expectedExecutor"`
	DestChainSelector types.NUMERIC                     `json:"destChainSelector"`
	RequiredCCVs      []chainlinkapi.RawInstanceAddress `json:"requiredCCVs"`
	Caller            types.PARTY                       `json:"caller"`
}

GetFee is a Record type

func (GetFee) MarshalHex

func (t GetFee) MarshalHex() (string, error)

MarshalHex encodes GetFee to hex string (Canton MCMS format)

func (GetFee) MarshalJSON

func (t GetFee) MarshalJSON() ([]byte, error)

func (GetFee) ToMap

func (t GetFee) ToMap() map[string]any

ToMap converts GetFee to a map for DAML arguments

func (*GetFee) UnmarshalHex

func (t *GetFee) UnmarshalHex(data string) error

UnmarshalHex decodes GetFee from hex string (Canton MCMS format)

func (*GetFee) UnmarshalJSON

func (t *GetFee) UnmarshalJSON(data []byte) error

type GetFeeMCMSParams

type GetFeeMCMSParams struct {
	ExpectedExecutor  chainlinkapi.RawInstanceAddress   `json:"expectedExecutor"`
	DestChainSelector types.NUMERIC                     `json:"destChainSelector"`
	RequiredCCVs      []chainlinkapi.RawInstanceAddress `json:"requiredCCVs"`
}

GetFeeMCMSParams is GetFee without the Caller field for MCMS operationData encoding. Use this when encoding choice arguments for MCMS timelock operations.

func (GetFeeMCMSParams) MarshalHex

func (t GetFeeMCMSParams) MarshalHex() (string, error)

MarshalHex encodes GetFeeMCMSParams to hex string for MCMS operationData.

func (*GetFeeMCMSParams) UnmarshalHex

func (t *GetFeeMCMSParams) UnmarshalHex(data string) error

UnmarshalHex decodes GetFeeMCMSParams from hex string.

type GetMaxCCVsPerMessage

type GetMaxCCVsPerMessage struct {
	Caller types.PARTY `json:"caller"`
}

GetMaxCCVsPerMessage is a Record type

func (GetMaxCCVsPerMessage) MarshalHex

func (t GetMaxCCVsPerMessage) MarshalHex() (string, error)

MarshalHex encodes GetMaxCCVsPerMessage to hex string (Canton MCMS format)

func (GetMaxCCVsPerMessage) MarshalJSON

func (t GetMaxCCVsPerMessage) MarshalJSON() ([]byte, error)

func (GetMaxCCVsPerMessage) ToMap

func (t GetMaxCCVsPerMessage) ToMap() map[string]any

ToMap converts GetMaxCCVsPerMessage to a map for DAML arguments

func (*GetMaxCCVsPerMessage) UnmarshalHex

func (t *GetMaxCCVsPerMessage) UnmarshalHex(data string) error

UnmarshalHex decodes GetMaxCCVsPerMessage from hex string (Canton MCMS format)

func (*GetMaxCCVsPerMessage) UnmarshalJSON

func (t *GetMaxCCVsPerMessage) UnmarshalJSON(data []byte) error

type GetMaxCCVsPerMessageMCMSParams

type GetMaxCCVsPerMessageMCMSParams struct {
}

GetMaxCCVsPerMessageMCMSParams is GetMaxCCVsPerMessage without the Caller field for MCMS operationData encoding. Use this when encoding choice arguments for MCMS timelock operations.

func (GetMaxCCVsPerMessageMCMSParams) MarshalHex

func (t GetMaxCCVsPerMessageMCMSParams) MarshalHex() (string, error)

MarshalHex encodes GetMaxCCVsPerMessageMCMSParams to hex string for MCMS operationData.

func (*GetMaxCCVsPerMessageMCMSParams) UnmarshalHex

func (t *GetMaxCCVsPerMessageMCMSParams) UnmarshalHex(data string) error

UnmarshalHex decodes GetMaxCCVsPerMessageMCMSParams from hex string.

type MCMSEncoder

type MCMSEncoder interface {
	ApplyAllowedCCVUpdates(args ApplyAllowedCCVUpdates) (*bind.EncodedChoice, error)
	ApplyAllowedCCVUpdatesParams(args ApplyAllowedCCVUpdatesParams) (*bind.EncodedChoice, error)
	ApplyDestChainUpdates(args ApplyDestChainUpdates) (*bind.EncodedChoice, error)
	ApplyDestChainUpdatesParams(args ApplyDestChainUpdatesParams) (*bind.EncodedChoice, error)
	CalculateFee(args CalculateFee) (*bind.EncodedChoice, error)
	CalculateFeeMCMSParams(args CalculateFeeMCMSParams) (*bind.EncodedChoice, error)
	GetAllowedCCVs(args GetAllowedCCVs) (*bind.EncodedChoice, error)
	GetAllowedCCVsMCMSParams(args GetAllowedCCVsMCMSParams) (*bind.EncodedChoice, error)
	GetAllowedFinalityConfig(args GetAllowedFinalityConfig) (*bind.EncodedChoice, error)
	GetAllowedFinalityConfigMCMSParams(args GetAllowedFinalityConfigMCMSParams) (*bind.EncodedChoice, error)
	GetDestChains(args GetDestChains) (*bind.EncodedChoice, error)
	GetDestChainsMCMSParams(args GetDestChainsMCMSParams) (*bind.EncodedChoice, error)
	GetDynamicConfig(args GetDynamicConfig) (*bind.EncodedChoice, error)
	GetDynamicConfigMCMSParams(args GetDynamicConfigMCMSParams) (*bind.EncodedChoice, error)
	GetFee(args GetFee) (*bind.EncodedChoice, error)
	GetFeeMCMSParams(args GetFeeMCMSParams) (*bind.EncodedChoice, error)
	GetMaxCCVsPerMessage(args GetMaxCCVsPerMessage) (*bind.EncodedChoice, error)
	GetMaxCCVsPerMessageMCMSParams(args GetMaxCCVsPerMessageMCMSParams) (*bind.EncodedChoice, error)
	SetDynamicConfig(args SetDynamicConfig) (*bind.EncodedChoice, error)
	SetDynamicConfigParams(args SetDynamicConfigParams) (*bind.EncodedChoice, error)
}

MCMSEncoder interface for typed encoding methods. Implemented by Encoder for method-based encoding.

type RemoteChainConfig

type RemoteChainConfig struct {
	FeeUSDCents types.NUMERIC `json:"feeUSDCents"`
	Enabled     types.BOOL    `json:"enabled"`
}

RemoteChainConfig is a Record type

func (RemoteChainConfig) MarshalHex

func (t RemoteChainConfig) MarshalHex() (string, error)

MarshalHex encodes RemoteChainConfig to hex string (Canton MCMS format)

func (RemoteChainConfig) MarshalJSON

func (t RemoteChainConfig) MarshalJSON() ([]byte, error)

func (RemoteChainConfig) ToMap

func (t RemoteChainConfig) ToMap() map[string]any

ToMap converts RemoteChainConfig to a map for DAML arguments

func (*RemoteChainConfig) UnmarshalHex

func (t *RemoteChainConfig) UnmarshalHex(data string) error

UnmarshalHex decodes RemoteChainConfig from hex string (Canton MCMS format)

func (*RemoteChainConfig) UnmarshalJSON

func (t *RemoteChainConfig) UnmarshalJSON(data []byte) error

type RemoteChainConfigArgs

type RemoteChainConfigArgs struct {
	DestChainSelector types.NUMERIC     `json:"destChainSelector"`
	Config            RemoteChainConfig `json:"config"`
}

RemoteChainConfigArgs is a Record type

func (RemoteChainConfigArgs) MarshalHex

func (t RemoteChainConfigArgs) MarshalHex() (string, error)

MarshalHex encodes RemoteChainConfigArgs to hex string (Canton MCMS format)

func (RemoteChainConfigArgs) MarshalJSON

func (t RemoteChainConfigArgs) MarshalJSON() ([]byte, error)

func (RemoteChainConfigArgs) ToMap

func (t RemoteChainConfigArgs) ToMap() map[string]any

ToMap converts RemoteChainConfigArgs to a map for DAML arguments

func (*RemoteChainConfigArgs) UnmarshalHex

func (t *RemoteChainConfigArgs) UnmarshalHex(data string) error

UnmarshalHex decodes RemoteChainConfigArgs from hex string (Canton MCMS format)

func (*RemoteChainConfigArgs) UnmarshalJSON

func (t *RemoteChainConfigArgs) UnmarshalJSON(data []byte) error

type SetDynamicConfig

type SetDynamicConfig struct {
	NewDynamicConfig DynamicConfig `json:"newDynamicConfig"`
}

SetDynamicConfig is a Record type

func (SetDynamicConfig) MarshalHex

func (t SetDynamicConfig) MarshalHex() (string, error)

MarshalHex encodes SetDynamicConfig to hex string (Canton MCMS format)

func (SetDynamicConfig) MarshalJSON

func (t SetDynamicConfig) MarshalJSON() ([]byte, error)

func (SetDynamicConfig) ToMap

func (t SetDynamicConfig) ToMap() map[string]any

ToMap converts SetDynamicConfig to a map for DAML arguments

func (*SetDynamicConfig) UnmarshalHex

func (t *SetDynamicConfig) UnmarshalHex(data string) error

UnmarshalHex decodes SetDynamicConfig from hex string (Canton MCMS format)

func (*SetDynamicConfig) UnmarshalJSON

func (t *SetDynamicConfig) UnmarshalJSON(data []byte) error

type SetDynamicConfigParams

type SetDynamicConfigParams struct {
	NewDynamicConfig DynamicConfig `json:"newDynamicConfig"`
}

SetDynamicConfigParams is a Record type

func (SetDynamicConfigParams) MarshalHex

func (t SetDynamicConfigParams) MarshalHex() (string, error)

MarshalHex encodes SetDynamicConfigParams to hex string (Canton MCMS format)

func (SetDynamicConfigParams) MarshalJSON

func (t SetDynamicConfigParams) MarshalJSON() ([]byte, error)

func (SetDynamicConfigParams) ToMap

func (t SetDynamicConfigParams) ToMap() map[string]any

ToMap converts SetDynamicConfigParams to a map for DAML arguments

func (*SetDynamicConfigParams) UnmarshalHex

func (t *SetDynamicConfigParams) UnmarshalHex(data string) error

UnmarshalHex decodes SetDynamicConfigParams from hex string (Canton MCMS format)

func (*SetDynamicConfigParams) UnmarshalJSON

func (t *SetDynamicConfigParams) UnmarshalJSON(data []byte) error

type Template

type Template interface {
	CreateCommand() *model.CreateCommand
	GetTemplateID() string
}

Jump to

Keyboard shortcuts

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