Documentation
¶
Index ¶
- Constants
- type CCIPSender
- func (t CCIPSender) Archive(contractID string) *model.ExerciseCommand
- func (t CCIPSender) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
- func (t CCIPSender) CreateCommand() *model.CreateCommand
- func (t CCIPSender) CreateCommandWithPackageID(packageID string) *model.CreateCommand
- func (t CCIPSender) GetFee(contractID string, args GetFee2) *model.ExerciseCommand
- func (t CCIPSender) GetFeeWithPackageID(contractID string, packageID string, args GetFee2) *model.ExerciseCommand
- func (t CCIPSender) GetRequiredCCVs(contractID string, args GetRequiredCCVs) *model.ExerciseCommand
- func (t CCIPSender) GetRequiredCCVsWithPackageID(contractID string, packageID string, args GetRequiredCCVs) *model.ExerciseCommand
- func (t CCIPSender) GetTemplateID() string
- func (t CCIPSender) GetTemplateIDWithPackageID(packageID string) string
- func (t CCIPSender) MarshalHex() (string, error)
- func (t CCIPSender) MarshalJSON() ([]byte, error)
- func (t CCIPSender) Send(contractID string, args Send) *model.ExerciseCommand
- func (t CCIPSender) SendWithPackageID(contractID string, packageID string, args Send) *model.ExerciseCommand
- func (t *CCIPSender) UnmarshalHex(data string) error
- func (t *CCIPSender) UnmarshalJSON(data []byte) error
- type CCVSendInput
- type Contract
- type ExecutorInput
- type FeeTokenInput
- type GetFee2
- type GetFeeResult
- type GetRequiredCCVs
- type MCMSEncoder
- type Send
- type Template
- type TokenTransferInput
Constants ¶
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 ¶
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 ¶
MarshalHex encodes GetFee2 to hex string (Canton MCMS format)
func (GetFee2) MarshalJSON ¶
func (*GetFee2) UnmarshalHex ¶
UnmarshalHex decodes GetFee2 from hex string (Canton MCMS format)
func (*GetFee2) UnmarshalJSON ¶
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 ¶
MarshalHex encodes Send to hex string (Canton MCMS format)
func (Send) MarshalJSON ¶
func (*Send) UnmarshalHex ¶
UnmarshalHex decodes Send from hex string (Canton MCMS format)
func (*Send) UnmarshalJSON ¶
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