Documentation
¶
Index ¶
- Constants
- type CoinHolding
- func (t CoinHolding) Archive(contractID string) *model.ExerciseCommand
- func (t CoinHolding) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
- func (t CoinHolding) CreateCommand() *model.CreateCommand
- func (t CoinHolding) CreateCommandWithPackageID(packageID string) *model.CreateCommand
- func (t CoinHolding) GetTemplateID() string
- func (t CoinHolding) GetTemplateIDWithPackageID(packageID string) string
- func (t CoinHolding) MarshalHex() (string, error)
- func (t CoinHolding) MarshalJSON() ([]byte, error)
- func (t CoinHolding) Transfer(contractID string, args Transfer) *model.ExerciseCommand
- func (t CoinHolding) TransferWithPackageID(contractID string, packageID string, args Transfer) *model.ExerciseCommand
- func (t *CoinHolding) UnmarshalHex(data string) error
- func (t *CoinHolding) UnmarshalJSON(data []byte) error
- type CoinRegistry
- func (t CoinRegistry) Archive(contractID string) *model.ExerciseCommand
- func (t CoinRegistry) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
- func (t CoinRegistry) BurnMintFactoryBurnMint(contractID string, args splice_api_token_burn_mint_v1.BurnMintFactoryBurnMint) *model.ExerciseCommand
- func (t CoinRegistry) BurnMintFactoryBurnMintWithPackageID(contractID string, packageID string, ...) *model.ExerciseCommand
- func (t CoinRegistry) BurnMintFactoryPublicFetch(contractID string, ...) *model.ExerciseCommand
- func (t CoinRegistry) BurnMintFactoryPublicFetchWithPackageID(contractID string, packageID string, ...) *model.ExerciseCommand
- func (t CoinRegistry) CreateCommand() *model.CreateCommand
- func (t CoinRegistry) CreateCommandWithPackageID(packageID string) *model.CreateCommand
- func (t CoinRegistry) GetTemplateID() string
- func (t CoinRegistry) GetTemplateIDWithPackageID(packageID string) string
- func (t CoinRegistry) MarshalHex() (string, error)
- func (t CoinRegistry) MarshalJSON() ([]byte, error)
- func (t CoinRegistry) TransferFactoryPublicFetch(contractID string, ...) *model.ExerciseCommand
- func (t CoinRegistry) TransferFactoryPublicFetchWithPackageID(contractID string, packageID string, ...) *model.ExerciseCommand
- func (t CoinRegistry) TransferFactoryTransfer(contractID string, ...) *model.ExerciseCommand
- func (t CoinRegistry) TransferFactoryTransferWithPackageID(contractID string, packageID string, ...) *model.ExerciseCommand
- func (t *CoinRegistry) UnmarshalHex(data string) error
- func (t *CoinRegistry) UnmarshalJSON(data []byte) error
- type CoinTransferInstruction
- func (t CoinTransferInstruction) Archive(contractID string) *model.ExerciseCommand
- func (t CoinTransferInstruction) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
- func (t CoinTransferInstruction) CreateCommand() *model.CreateCommand
- func (t CoinTransferInstruction) CreateCommandWithPackageID(packageID string) *model.CreateCommand
- func (t CoinTransferInstruction) GetTemplateID() string
- func (t CoinTransferInstruction) GetTemplateIDWithPackageID(packageID string) string
- func (t CoinTransferInstruction) MarshalHex() (string, error)
- func (t CoinTransferInstruction) MarshalJSON() ([]byte, error)
- func (t CoinTransferInstruction) TransferInstructionAccept(contractID string, ...) *model.ExerciseCommand
- func (t CoinTransferInstruction) TransferInstructionAcceptWithPackageID(contractID string, packageID string, ...) *model.ExerciseCommand
- func (t CoinTransferInstruction) TransferInstructionReject(contractID string, ...) *model.ExerciseCommand
- func (t CoinTransferInstruction) TransferInstructionRejectWithPackageID(contractID string, packageID string, ...) *model.ExerciseCommand
- func (t CoinTransferInstruction) TransferInstructionUpdate(contractID string, ...) *model.ExerciseCommand
- func (t CoinTransferInstruction) TransferInstructionUpdateWithPackageID(contractID string, packageID string, ...) *model.ExerciseCommand
- func (t CoinTransferInstruction) TransferInstructionWithdraw(contractID string, ...) *model.ExerciseCommand
- func (t CoinTransferInstruction) TransferInstructionWithdrawWithPackageID(contractID string, packageID string, ...) *model.ExerciseCommand
- func (t *CoinTransferInstruction) UnmarshalHex(data string) error
- func (t *CoinTransferInstruction) UnmarshalJSON(data []byte) error
- type Contract
- type MCMSEncoder
- type MintPreapproval
- func (t MintPreapproval) Archive(contractID string) *model.ExerciseCommand
- func (t MintPreapproval) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
- func (t MintPreapproval) CreateCommand() *model.CreateCommand
- func (t MintPreapproval) CreateCommandWithPackageID(packageID string) *model.CreateCommand
- func (t MintPreapproval) GetTemplateID() string
- func (t MintPreapproval) GetTemplateIDWithPackageID(packageID string) string
- func (t MintPreapproval) MarshalHex() (string, error)
- func (t MintPreapproval) MarshalJSON() ([]byte, error)
- func (t MintPreapproval) MintPreapprovalMint(contractID string, args MintPreapprovalMint) *model.ExerciseCommand
- func (t MintPreapproval) MintPreapprovalMintWithPackageID(contractID string, packageID string, args MintPreapprovalMint) *model.ExerciseCommand
- func (t *MintPreapproval) UnmarshalHex(data string) error
- func (t *MintPreapproval) UnmarshalJSON(data []byte) error
- type MintPreapprovalMint
- type MintRole
- func (t MintRole) Archive(contractID string) *model.ExerciseCommand
- func (t MintRole) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
- func (t MintRole) CreateCommand() *model.CreateCommand
- func (t MintRole) CreateCommandWithPackageID(packageID string) *model.CreateCommand
- func (t MintRole) GetTemplateID() string
- func (t MintRole) GetTemplateIDWithPackageID(packageID string) string
- func (t MintRole) MarshalHex() (string, error)
- func (t MintRole) MarshalJSON() ([]byte, error)
- func (t MintRole) MintRoleMint(contractID string, args MintRoleMint) *model.ExerciseCommand
- func (t MintRole) MintRoleMintWithPackageID(contractID string, packageID string, args MintRoleMint) *model.ExerciseCommand
- func (t *MintRole) UnmarshalHex(data string) error
- func (t *MintRole) UnmarshalJSON(data []byte) error
- type MintRoleMint
- type Template
- type Transfer
Constants ¶
const ( PackageName = "coin" PackageID = "017c58e5e2e6237134107be648222745ec251debbbdce3120a2aab2faeff8e49" SDKVersion = "3.4.11" )
const (
MintPreapprovalContextKey = types.TEXT("mint-preapproval")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinHolding ¶
type CoinHolding struct {
View splice_api_token_holding_v1.HoldingView `json:"view"`
Issuer types.PARTY `json:"issuer"`
}
CoinHolding is a Template type
func (CoinHolding) Archive ¶
func (t CoinHolding) Archive(contractID string) *model.ExerciseCommand
Archive exercises the Archive choice on this CoinHolding contract via the IHolding interface This method uses the package name in the template ID
func (CoinHolding) ArchiveWithPackageID ¶
func (t CoinHolding) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
ArchiveWithPackageID exercises the Archive choice using the provided package ID instead of package name
func (CoinHolding) CreateCommand ¶
func (t CoinHolding) CreateCommand() *model.CreateCommand
CreateCommand returns a CreateCommand for this template using the package name
func (CoinHolding) CreateCommandWithPackageID ¶
func (t CoinHolding) CreateCommandWithPackageID(packageID string) *model.CreateCommand
CreateCommandWithPackageID returns a CreateCommand using the provided package ID instead of package name
func (CoinHolding) GetTemplateID ¶
func (t CoinHolding) GetTemplateID() string
GetTemplateID returns the template ID for this template using the package name
func (CoinHolding) GetTemplateIDWithPackageID ¶
func (t CoinHolding) GetTemplateIDWithPackageID(packageID string) string
GetTemplateIDWithPackageID returns the template ID using the provided package ID instead of package name
func (CoinHolding) MarshalHex ¶
func (t CoinHolding) MarshalHex() (string, error)
MarshalHex encodes CoinHolding to hex string (Canton MCMS format)
func (CoinHolding) MarshalJSON ¶
func (t CoinHolding) MarshalJSON() ([]byte, error)
func (CoinHolding) Transfer ¶
func (t CoinHolding) Transfer(contractID string, args Transfer) *model.ExerciseCommand
Transfer exercises the Transfer choice on this CoinHolding contract This method uses the package name in the template ID
func (CoinHolding) TransferWithPackageID ¶
func (t CoinHolding) TransferWithPackageID(contractID string, packageID string, args Transfer) *model.ExerciseCommand
TransferWithPackageID exercises the Transfer choice using the provided package ID instead of package name
func (*CoinHolding) UnmarshalHex ¶
func (t *CoinHolding) UnmarshalHex(data string) error
UnmarshalHex decodes CoinHolding from hex string (Canton MCMS format)
func (*CoinHolding) UnmarshalJSON ¶
func (t *CoinHolding) UnmarshalJSON(data []byte) error
type CoinRegistry ¶
type CoinRegistry struct {
Issuer types.PARTY `json:"issuer"`
InstrumentId splice_api_token_holding_v1.InstrumentId `json:"instrumentId"`
InstanceId types.TEXT `json:"instanceId"`
Meta splice_api_token_metadata_v1.Metadata `json:"meta"`
}
CoinRegistry is a Template type
func (CoinRegistry) Archive ¶
func (t CoinRegistry) Archive(contractID string) *model.ExerciseCommand
Archive exercises the Archive choice on this CoinRegistry contract via the IBurnMintFactory interface This method uses the package name in the template ID
func (CoinRegistry) ArchiveWithPackageID ¶
func (t CoinRegistry) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
ArchiveWithPackageID exercises the Archive choice using the provided package ID instead of package name
func (CoinRegistry) BurnMintFactoryBurnMint ¶
func (t CoinRegistry) BurnMintFactoryBurnMint(contractID string, args splice_api_token_burn_mint_v1.BurnMintFactoryBurnMint) *model.ExerciseCommand
BurnMintFactoryBurnMint exercises the BurnMintFactory_BurnMint choice on this CoinRegistry contract via the IBurnMintFactory interface This method uses the package name in the template ID
func (CoinRegistry) BurnMintFactoryBurnMintWithPackageID ¶
func (t CoinRegistry) BurnMintFactoryBurnMintWithPackageID(contractID string, packageID string, args splice_api_token_burn_mint_v1.BurnMintFactoryBurnMint) *model.ExerciseCommand
BurnMintFactoryBurnMintWithPackageID exercises the BurnMintFactory_BurnMint choice using the provided package ID instead of package name
func (CoinRegistry) BurnMintFactoryPublicFetch ¶
func (t CoinRegistry) BurnMintFactoryPublicFetch(contractID string, args splice_api_token_burn_mint_v1.BurnMintFactoryPublicFetch) *model.ExerciseCommand
BurnMintFactoryPublicFetch exercises the BurnMintFactory_PublicFetch choice on this CoinRegistry contract via the IBurnMintFactory interface This method uses the package name in the template ID
func (CoinRegistry) BurnMintFactoryPublicFetchWithPackageID ¶
func (t CoinRegistry) BurnMintFactoryPublicFetchWithPackageID(contractID string, packageID string, args splice_api_token_burn_mint_v1.BurnMintFactoryPublicFetch) *model.ExerciseCommand
BurnMintFactoryPublicFetchWithPackageID exercises the BurnMintFactory_PublicFetch choice using the provided package ID instead of package name
func (CoinRegistry) CreateCommand ¶
func (t CoinRegistry) CreateCommand() *model.CreateCommand
CreateCommand returns a CreateCommand for this template using the package name
func (CoinRegistry) CreateCommandWithPackageID ¶
func (t CoinRegistry) CreateCommandWithPackageID(packageID string) *model.CreateCommand
CreateCommandWithPackageID returns a CreateCommand using the provided package ID instead of package name
func (CoinRegistry) GetTemplateID ¶
func (t CoinRegistry) GetTemplateID() string
GetTemplateID returns the template ID for this template using the package name
func (CoinRegistry) GetTemplateIDWithPackageID ¶
func (t CoinRegistry) GetTemplateIDWithPackageID(packageID string) string
GetTemplateIDWithPackageID returns the template ID using the provided package ID instead of package name
func (CoinRegistry) MarshalHex ¶
func (t CoinRegistry) MarshalHex() (string, error)
MarshalHex encodes CoinRegistry to hex string (Canton MCMS format)
func (CoinRegistry) MarshalJSON ¶
func (t CoinRegistry) MarshalJSON() ([]byte, error)
func (CoinRegistry) TransferFactoryPublicFetch ¶
func (t CoinRegistry) TransferFactoryPublicFetch(contractID string, args splice_api_token_transfer_instruction_v1.TransferFactoryPublicFetch) *model.ExerciseCommand
TransferFactoryPublicFetch exercises the TransferFactory_PublicFetch choice on this CoinRegistry contract via the ITransferFactory interface This method uses the package name in the template ID
func (CoinRegistry) TransferFactoryPublicFetchWithPackageID ¶
func (t CoinRegistry) TransferFactoryPublicFetchWithPackageID(contractID string, packageID string, args splice_api_token_transfer_instruction_v1.TransferFactoryPublicFetch) *model.ExerciseCommand
TransferFactoryPublicFetchWithPackageID exercises the TransferFactory_PublicFetch choice using the provided package ID instead of package name
func (CoinRegistry) TransferFactoryTransfer ¶
func (t CoinRegistry) TransferFactoryTransfer(contractID string, args splice_api_token_transfer_instruction_v1.TransferFactoryTransfer) *model.ExerciseCommand
TransferFactoryTransfer exercises the TransferFactory_Transfer choice on this CoinRegistry contract via the ITransferFactory interface This method uses the package name in the template ID
func (CoinRegistry) TransferFactoryTransferWithPackageID ¶
func (t CoinRegistry) TransferFactoryTransferWithPackageID(contractID string, packageID string, args splice_api_token_transfer_instruction_v1.TransferFactoryTransfer) *model.ExerciseCommand
TransferFactoryTransferWithPackageID exercises the TransferFactory_Transfer choice using the provided package ID instead of package name
func (*CoinRegistry) UnmarshalHex ¶
func (t *CoinRegistry) UnmarshalHex(data string) error
UnmarshalHex decodes CoinRegistry from hex string (Canton MCMS format)
func (*CoinRegistry) UnmarshalJSON ¶
func (t *CoinRegistry) UnmarshalJSON(data []byte) error
type CoinTransferInstruction ¶
type CoinTransferInstruction struct {
Holding CoinHolding `json:"holding"`
NewOwner types.PARTY `json:"newOwner"`
RequestedAt types.TIMESTAMP `json:"requestedAt"`
ExecuteBefore types.TIMESTAMP `json:"executeBefore"`
}
CoinTransferInstruction is a Template type
func (CoinTransferInstruction) Archive ¶
func (t CoinTransferInstruction) Archive(contractID string) *model.ExerciseCommand
Archive exercises the Archive choice on this CoinTransferInstruction contract via the ITransferInstruction interface This method uses the package name in the template ID
func (CoinTransferInstruction) ArchiveWithPackageID ¶
func (t CoinTransferInstruction) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
ArchiveWithPackageID exercises the Archive choice using the provided package ID instead of package name
func (CoinTransferInstruction) CreateCommand ¶
func (t CoinTransferInstruction) CreateCommand() *model.CreateCommand
CreateCommand returns a CreateCommand for this template using the package name
func (CoinTransferInstruction) CreateCommandWithPackageID ¶
func (t CoinTransferInstruction) CreateCommandWithPackageID(packageID string) *model.CreateCommand
CreateCommandWithPackageID returns a CreateCommand using the provided package ID instead of package name
func (CoinTransferInstruction) GetTemplateID ¶
func (t CoinTransferInstruction) GetTemplateID() string
GetTemplateID returns the template ID for this template using the package name
func (CoinTransferInstruction) GetTemplateIDWithPackageID ¶
func (t CoinTransferInstruction) GetTemplateIDWithPackageID(packageID string) string
GetTemplateIDWithPackageID returns the template ID using the provided package ID instead of package name
func (CoinTransferInstruction) MarshalHex ¶
func (t CoinTransferInstruction) MarshalHex() (string, error)
MarshalHex encodes CoinTransferInstruction to hex string (Canton MCMS format)
func (CoinTransferInstruction) MarshalJSON ¶
func (t CoinTransferInstruction) MarshalJSON() ([]byte, error)
func (CoinTransferInstruction) TransferInstructionAccept ¶
func (t CoinTransferInstruction) TransferInstructionAccept(contractID string, args splice_api_token_transfer_instruction_v1.TransferInstructionAccept) *model.ExerciseCommand
TransferInstructionAccept exercises the TransferInstruction_Accept choice on this CoinTransferInstruction contract via the ITransferInstruction interface This method uses the package name in the template ID
func (CoinTransferInstruction) TransferInstructionAcceptWithPackageID ¶
func (t CoinTransferInstruction) TransferInstructionAcceptWithPackageID(contractID string, packageID string, args splice_api_token_transfer_instruction_v1.TransferInstructionAccept) *model.ExerciseCommand
TransferInstructionAcceptWithPackageID exercises the TransferInstruction_Accept choice using the provided package ID instead of package name
func (CoinTransferInstruction) TransferInstructionReject ¶
func (t CoinTransferInstruction) TransferInstructionReject(contractID string, args splice_api_token_transfer_instruction_v1.TransferInstructionReject) *model.ExerciseCommand
TransferInstructionReject exercises the TransferInstruction_Reject choice on this CoinTransferInstruction contract via the ITransferInstruction interface This method uses the package name in the template ID
func (CoinTransferInstruction) TransferInstructionRejectWithPackageID ¶
func (t CoinTransferInstruction) TransferInstructionRejectWithPackageID(contractID string, packageID string, args splice_api_token_transfer_instruction_v1.TransferInstructionReject) *model.ExerciseCommand
TransferInstructionRejectWithPackageID exercises the TransferInstruction_Reject choice using the provided package ID instead of package name
func (CoinTransferInstruction) TransferInstructionUpdate ¶
func (t CoinTransferInstruction) TransferInstructionUpdate(contractID string, args splice_api_token_transfer_instruction_v1.TransferInstructionUpdate) *model.ExerciseCommand
TransferInstructionUpdate exercises the TransferInstruction_Update choice on this CoinTransferInstruction contract via the ITransferInstruction interface This method uses the package name in the template ID
func (CoinTransferInstruction) TransferInstructionUpdateWithPackageID ¶
func (t CoinTransferInstruction) TransferInstructionUpdateWithPackageID(contractID string, packageID string, args splice_api_token_transfer_instruction_v1.TransferInstructionUpdate) *model.ExerciseCommand
TransferInstructionUpdateWithPackageID exercises the TransferInstruction_Update choice using the provided package ID instead of package name
func (CoinTransferInstruction) TransferInstructionWithdraw ¶
func (t CoinTransferInstruction) TransferInstructionWithdraw(contractID string, args splice_api_token_transfer_instruction_v1.TransferInstructionWithdraw) *model.ExerciseCommand
TransferInstructionWithdraw exercises the TransferInstruction_Withdraw choice on this CoinTransferInstruction contract via the ITransferInstruction interface This method uses the package name in the template ID
func (CoinTransferInstruction) TransferInstructionWithdrawWithPackageID ¶
func (t CoinTransferInstruction) TransferInstructionWithdrawWithPackageID(contractID string, packageID string, args splice_api_token_transfer_instruction_v1.TransferInstructionWithdraw) *model.ExerciseCommand
TransferInstructionWithdrawWithPackageID exercises the TransferInstruction_Withdraw choice using the provided package ID instead of package name
func (*CoinTransferInstruction) UnmarshalHex ¶
func (t *CoinTransferInstruction) UnmarshalHex(data string) error
UnmarshalHex decodes CoinTransferInstruction from hex string (Canton MCMS format)
func (*CoinTransferInstruction) UnmarshalJSON ¶
func (t *CoinTransferInstruction) 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 MCMSEncoder ¶
type MCMSEncoder interface {
MintPreapprovalMint(args MintPreapprovalMint) (*bind.EncodedChoice, error)
MintRoleMint(args MintRoleMint) (*bind.EncodedChoice, error)
Transfer(args Transfer) (*bind.EncodedChoice, error)
}
MCMSEncoder interface for typed encoding methods. Implemented by Encoder for method-based encoding.
type MintPreapproval ¶
type MintPreapproval struct {
Receiver types.PARTY `json:"receiver"`
Sender types.PARTY `json:"sender"`
}
MintPreapproval is a Template type
func (MintPreapproval) Archive ¶
func (t MintPreapproval) Archive(contractID string) *model.ExerciseCommand
Archive exercises the Archive choice on this MintPreapproval contract This method uses the package name in the template ID
func (MintPreapproval) ArchiveWithPackageID ¶
func (t MintPreapproval) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
ArchiveWithPackageID exercises the Archive choice using the provided package ID instead of package name
func (MintPreapproval) CreateCommand ¶
func (t MintPreapproval) CreateCommand() *model.CreateCommand
CreateCommand returns a CreateCommand for this template using the package name
func (MintPreapproval) CreateCommandWithPackageID ¶
func (t MintPreapproval) CreateCommandWithPackageID(packageID string) *model.CreateCommand
CreateCommandWithPackageID returns a CreateCommand using the provided package ID instead of package name
func (MintPreapproval) GetTemplateID ¶
func (t MintPreapproval) GetTemplateID() string
GetTemplateID returns the template ID for this template using the package name
func (MintPreapproval) GetTemplateIDWithPackageID ¶
func (t MintPreapproval) GetTemplateIDWithPackageID(packageID string) string
GetTemplateIDWithPackageID returns the template ID using the provided package ID instead of package name
func (MintPreapproval) MarshalHex ¶
func (t MintPreapproval) MarshalHex() (string, error)
MarshalHex encodes MintPreapproval to hex string (Canton MCMS format)
func (MintPreapproval) MarshalJSON ¶
func (t MintPreapproval) MarshalJSON() ([]byte, error)
func (MintPreapproval) MintPreapprovalMint ¶
func (t MintPreapproval) MintPreapprovalMint(contractID string, args MintPreapprovalMint) *model.ExerciseCommand
MintPreapprovalMint exercises the MintPreapproval_Mint choice on this MintPreapproval contract This method uses the package name in the template ID
func (MintPreapproval) MintPreapprovalMintWithPackageID ¶
func (t MintPreapproval) MintPreapprovalMintWithPackageID(contractID string, packageID string, args MintPreapprovalMint) *model.ExerciseCommand
MintPreapprovalMintWithPackageID exercises the MintPreapproval_Mint choice using the provided package ID instead of package name
func (*MintPreapproval) UnmarshalHex ¶
func (t *MintPreapproval) UnmarshalHex(data string) error
UnmarshalHex decodes MintPreapproval from hex string (Canton MCMS format)
func (*MintPreapproval) UnmarshalJSON ¶
func (t *MintPreapproval) UnmarshalJSON(data []byte) error
type MintPreapprovalMint ¶
type MintPreapprovalMint struct {
Issuer types.PARTY `json:"issuer"`
View splice_api_token_holding_v1.HoldingView `json:"view"`
}
MintPreapprovalMint is a Record type
func (MintPreapprovalMint) MarshalHex ¶
func (t MintPreapprovalMint) MarshalHex() (string, error)
MarshalHex encodes MintPreapprovalMint to hex string (Canton MCMS format)
func (MintPreapprovalMint) MarshalJSON ¶
func (t MintPreapprovalMint) MarshalJSON() ([]byte, error)
func (MintPreapprovalMint) ToMap ¶
func (t MintPreapprovalMint) ToMap() map[string]any
ToMap converts MintPreapprovalMint to a map for DAML arguments
func (*MintPreapprovalMint) UnmarshalHex ¶
func (t *MintPreapprovalMint) UnmarshalHex(data string) error
UnmarshalHex decodes MintPreapprovalMint from hex string (Canton MCMS format)
func (*MintPreapprovalMint) UnmarshalJSON ¶
func (t *MintPreapprovalMint) UnmarshalJSON(data []byte) error
type MintRole ¶
type MintRole struct {
Issuer types.PARTY `json:"issuer"`
Minter types.PARTY `json:"minter"`
Registry types.CONTRACT_ID `json:"registry"`
}
MintRole is a Template type
func (MintRole) Archive ¶
func (t MintRole) Archive(contractID string) *model.ExerciseCommand
Archive exercises the Archive choice on this MintRole contract This method uses the package name in the template ID
func (MintRole) ArchiveWithPackageID ¶
func (t MintRole) ArchiveWithPackageID(contractID string, packageID string) *model.ExerciseCommand
ArchiveWithPackageID exercises the Archive choice using the provided package ID instead of package name
func (MintRole) CreateCommand ¶
func (t MintRole) CreateCommand() *model.CreateCommand
CreateCommand returns a CreateCommand for this template using the package name
func (MintRole) CreateCommandWithPackageID ¶
func (t MintRole) CreateCommandWithPackageID(packageID string) *model.CreateCommand
CreateCommandWithPackageID returns a CreateCommand using the provided package ID instead of package name
func (MintRole) GetTemplateID ¶
GetTemplateID returns the template ID for this template using the package name
func (MintRole) GetTemplateIDWithPackageID ¶
GetTemplateIDWithPackageID returns the template ID using the provided package ID instead of package name
func (MintRole) MarshalHex ¶
MarshalHex encodes MintRole to hex string (Canton MCMS format)
func (MintRole) MarshalJSON ¶
func (MintRole) MintRoleMint ¶
func (t MintRole) MintRoleMint(contractID string, args MintRoleMint) *model.ExerciseCommand
MintRoleMint exercises the MintRole_Mint choice on this MintRole contract This method uses the package name in the template ID
func (MintRole) MintRoleMintWithPackageID ¶
func (t MintRole) MintRoleMintWithPackageID(contractID string, packageID string, args MintRoleMint) *model.ExerciseCommand
MintRoleMintWithPackageID exercises the MintRole_Mint choice using the provided package ID instead of package name
func (*MintRole) UnmarshalHex ¶
UnmarshalHex decodes MintRole from hex string (Canton MCMS format)
func (*MintRole) UnmarshalJSON ¶
type MintRoleMint ¶
type MintRoleMint struct {
InstrumentId splice_api_token_holding_v1.InstrumentId `json:"instrumentId"`
Outputs []splice_api_token_burn_mint_v1.BurnMintOutput `json:"outputs"`
}
MintRoleMint is a Record type
func (MintRoleMint) MarshalHex ¶
func (t MintRoleMint) MarshalHex() (string, error)
MarshalHex encodes MintRoleMint to hex string (Canton MCMS format)
func (MintRoleMint) MarshalJSON ¶
func (t MintRoleMint) MarshalJSON() ([]byte, error)
func (MintRoleMint) ToMap ¶
func (t MintRoleMint) ToMap() map[string]any
ToMap converts MintRoleMint to a map for DAML arguments
func (*MintRoleMint) UnmarshalHex ¶
func (t *MintRoleMint) UnmarshalHex(data string) error
UnmarshalHex decodes MintRoleMint from hex string (Canton MCMS format)
func (*MintRoleMint) UnmarshalJSON ¶
func (t *MintRoleMint) UnmarshalJSON(data []byte) error
type Template ¶
type Template interface {
CreateCommand() *model.CreateCommand
GetTemplateID() string
}
type Transfer ¶
Transfer is a Record type
func (Transfer) MarshalHex ¶
MarshalHex encodes Transfer to hex string (Canton MCMS format)
func (Transfer) MarshalJSON ¶
func (*Transfer) UnmarshalHex ¶
UnmarshalHex decodes Transfer from hex string (Canton MCMS format)