sender

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageName = "ccip-sender"
	PackageID   = "4a1ce2c6bcb644b91d9dd9598ed1286b33c3cd872bad05101e228c3dbc9e25f3"
	SDKVersion  = "3.4.11"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CCIPSender

type CCIPSender struct {
	InstanceId types.TEXT  `json:"instanceId"`
	Owner      types.PARTY `json:"owner"`
}

CCIPSender is a Template type

func (CCIPSender) Archive

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

Archive exercises the Archive choice on this CCIPSender contract This method uses the package name in the template ID

func (CCIPSender) ArchiveWithPackageID

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

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

func (CCIPSender) CreateCommand

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

CreateCommand returns a CreateCommand for this template using the package name

func (CCIPSender) CreateCommandWithPackageID

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

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

func (CCIPSender) GetFee

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

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

func (CCIPSender) GetFeeWithPackageID

func (t CCIPSender) GetFeeWithPackageID(contractID string, packageID string, args GetFee2) *model.ExerciseCommand

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

func (CCIPSender) GetRequiredCCVs

func (t CCIPSender) GetRequiredCCVs(contractID string, args GetRequiredCCVs) *model.ExerciseCommand

GetRequiredCCVs exercises the GetRequiredCCVs choice on this CCIPSender contract This method uses the package name in the template ID

func (CCIPSender) GetRequiredCCVsWithPackageID

func (t CCIPSender) GetRequiredCCVsWithPackageID(contractID string, packageID string, args GetRequiredCCVs) *model.ExerciseCommand

GetRequiredCCVsWithPackageID exercises the GetRequiredCCVs choice using the provided package ID instead of package name

func (CCIPSender) GetTemplateID

func (t CCIPSender) GetTemplateID() string

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

func (CCIPSender) GetTemplateIDWithPackageID

func (t CCIPSender) GetTemplateIDWithPackageID(packageID string) string

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

func (CCIPSender) MarshalHex

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

MarshalHex encodes CCIPSender to hex string (Canton MCMS format)

func (CCIPSender) MarshalJSON

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

func (CCIPSender) Send

func (t CCIPSender) Send(contractID string, args Send) *model.ExerciseCommand

Send exercises the Send choice on this CCIPSender contract This method uses the package name in the template ID

func (CCIPSender) SendWithPackageID

func (t CCIPSender) SendWithPackageID(contractID string, packageID string, args Send) *model.ExerciseCommand

SendWithPackageID exercises the Send choice using the provided package ID instead of package name

func (*CCIPSender) UnmarshalHex

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

UnmarshalHex decodes CCIPSender from hex string (Canton MCMS format)

func (*CCIPSender) UnmarshalJSON

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

type CCVSendInput

type CCVSendInput struct {
	CcvAddress      chainlinkapi.RawInstanceAddress            `json:"ccvAddress"`
	CcvCid          types.CONTRACT_ID                          `json:"ccvCid"`
	CcvExtraContext splice_api_token_metadata_v1.ChoiceContext `json:"ccvExtraContext"`
}

CCVSendInput is a Record type

func (CCVSendInput) MarshalHex

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

MarshalHex encodes CCVSendInput to hex string (Canton MCMS format)

func (CCVSendInput) MarshalJSON

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

func (CCVSendInput) ToMap

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

ToMap converts CCVSendInput to a map for DAML arguments

func (*CCVSendInput) UnmarshalHex

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

UnmarshalHex decodes CCVSendInput from hex string (Canton MCMS format)

func (*CCVSendInput) UnmarshalJSON

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

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 ExecutorInput

type ExecutorInput struct {
	ExecutorCid          types.CONTRACT_ID                          `json:"executorCid"`
	ExecutorExtraContext splice_api_token_metadata_v1.ChoiceContext `json:"executorExtraContext"`
}

ExecutorInput is a Record type

func (ExecutorInput) MarshalHex

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

MarshalHex encodes ExecutorInput to hex string (Canton MCMS format)

func (ExecutorInput) MarshalJSON

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

func (ExecutorInput) ToMap

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

ToMap converts ExecutorInput to a map for DAML arguments

func (*ExecutorInput) UnmarshalHex

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

UnmarshalHex decodes ExecutorInput from hex string (Canton MCMS format)

func (*ExecutorInput) UnmarshalJSON

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

type FeeTokenInput

type FeeTokenInput struct {
	SenderInputCids         []types.CONTRACT_ID                    `json:"senderInputCids"`
	FeeTokenConfigCid       types.CONTRACT_ID                      `json:"feeTokenConfigCid"`
	FeeTokenTransferFactory types.CONTRACT_ID                      `json:"feeTokenTransferFactory"`
	FeeTokenExtraArgs       splice_api_token_metadata_v1.ExtraArgs `json:"feeTokenExtraArgs"`
}

FeeTokenInput is a Record type

func (FeeTokenInput) MarshalHex

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

MarshalHex encodes FeeTokenInput to hex string (Canton MCMS format)

func (FeeTokenInput) MarshalJSON

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

func (FeeTokenInput) ToMap

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

ToMap converts FeeTokenInput to a map for DAML arguments

func (*FeeTokenInput) UnmarshalHex

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

UnmarshalHex decodes FeeTokenInput from hex string (Canton MCMS format)

func (*FeeTokenInput) UnmarshalJSON

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

type GetFee2

type GetFee2 struct {
	DestinationChainSelector types.NUMERIC                              `json:"destinationChainSelector"`
	Message                  core.Canton2AnyMessage                     `json:"message"`
	Context                  splice_api_token_metadata_v1.ChoiceContext `json:"context"`
	RouterCid                types.CONTRACT_ID                          `json:"routerCid"`
	CcvSendInputs            []CCVSendInput                             `json:"ccvSendInputs"`
	TokenTransferInput       *TokenTransferInput                        `json:"tokenTransferInput" hex:"optional"`
	ExecutorInput            *ExecutorInput                             `json:"executorInput" hex:"optional"`
}

GetFee2 is a Record type

func (GetFee2) MarshalHex

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

MarshalHex encodes GetFee2 to hex string (Canton MCMS format)

func (GetFee2) MarshalJSON

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

func (GetFee2) ToMap

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

ToMap converts GetFee2 to a map for DAML arguments

func (*GetFee2) UnmarshalHex

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

UnmarshalHex decodes GetFee2 from hex string (Canton MCMS format)

func (*GetFee2) UnmarshalJSON

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

type GetFeeResult

type GetFeeResult struct {
	FeeTokenAmount     types.NUMERIC `json:"feeTokenAmount"`
	PoolFeeTokenAmount types.NUMERIC `json:"poolFeeTokenAmount"`
}

GetFeeResult is a Record type

func (GetFeeResult) MarshalHex

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

MarshalHex encodes GetFeeResult to hex string (Canton MCMS format)

func (GetFeeResult) MarshalJSON

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

func (GetFeeResult) ToMap

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

ToMap converts GetFeeResult to a map for DAML arguments

func (*GetFeeResult) UnmarshalHex

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

UnmarshalHex decodes GetFeeResult from hex string (Canton MCMS format)

func (*GetFeeResult) UnmarshalJSON

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

type GetRequiredCCVs

type GetRequiredCCVs struct {
	DestinationChainSelector types.NUMERIC                              `json:"destinationChainSelector"`
	Message                  core.Canton2AnyMessage                     `json:"message"`
	Context                  splice_api_token_metadata_v1.ChoiceContext `json:"context"`
	RouterCid                types.CONTRACT_ID                          `json:"routerCid"`
	TokenPoolCid             *types.CONTRACT_ID                         `json:"tokenPoolCid" hex:"optional"`
}

GetRequiredCCVs is a Record type

func (GetRequiredCCVs) MarshalHex

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

MarshalHex encodes GetRequiredCCVs to hex string (Canton MCMS format)

func (GetRequiredCCVs) MarshalJSON

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

func (GetRequiredCCVs) ToMap

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

ToMap converts GetRequiredCCVs to a map for DAML arguments

func (*GetRequiredCCVs) UnmarshalHex

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

UnmarshalHex decodes GetRequiredCCVs from hex string (Canton MCMS format)

func (*GetRequiredCCVs) UnmarshalJSON

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

type MCMSEncoder

type MCMSEncoder interface {
	GetFee(args GetFee2) (*bind.EncodedChoice, error)
	GetRequiredCCVs(args GetRequiredCCVs) (*bind.EncodedChoice, error)
	Send(args Send) (*bind.EncodedChoice, error)
}

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

type Send

type Send struct {
	DestinationChainSelector types.NUMERIC                              `json:"destinationChainSelector"`
	Message                  core.Canton2AnyMessage                     `json:"message"`
	Context                  splice_api_token_metadata_v1.ChoiceContext `json:"context"`
	RouterCid                types.CONTRACT_ID                          `json:"routerCid"`
	FeeTokenInput            FeeTokenInput                              `json:"feeTokenInput"`
	CcvSendInputs            []CCVSendInput                             `json:"ccvSendInputs"`
	TokenTransferInput       *TokenTransferInput                        `json:"tokenTransferInput" hex:"optional"`
	ExecutorInput            *ExecutorInput                             `json:"executorInput" hex:"optional"`
}

Send is a Record type

func (Send) MarshalHex

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

MarshalHex encodes Send to hex string (Canton MCMS format)

func (Send) MarshalJSON

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

func (Send) ToMap

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

ToMap converts Send to a map for DAML arguments

func (*Send) UnmarshalHex

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

UnmarshalHex decodes Send from hex string (Canton MCMS format)

func (*Send) UnmarshalJSON

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

type Template

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

type TokenTransferInput

type TokenTransferInput struct {
	SenderInputCids  []types.CONTRACT_ID                        `json:"senderInputCids"`
	TokenPoolCid     types.CONTRACT_ID                          `json:"tokenPoolCid"`
	PoolExtraContext splice_api_token_metadata_v1.ChoiceContext `json:"poolExtraContext"`
}

TokenTransferInput is a Record type

func (TokenTransferInput) MarshalHex

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

MarshalHex encodes TokenTransferInput to hex string (Canton MCMS format)

func (TokenTransferInput) MarshalJSON

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

func (TokenTransferInput) ToMap

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

ToMap converts TokenTransferInput to a map for DAML arguments

func (*TokenTransferInput) UnmarshalHex

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

UnmarshalHex decodes TokenTransferInput from hex string (Canton MCMS format)

func (*TokenTransferInput) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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