coin

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

Documentation

Index

Constants

View Source
const (
	PackageName = "coin"
	PackageID   = "017c58e5e2e6237134107be648222745ec251debbbdce3120a2aab2faeff8e49"
	SDKVersion  = "3.4.11"
)
View Source
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

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

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

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

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

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

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

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

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 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

func (t MintRole) GetTemplateID() string

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

func (MintRole) GetTemplateIDWithPackageID

func (t MintRole) GetTemplateIDWithPackageID(packageID string) string

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

func (MintRole) MarshalHex

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

MarshalHex encodes MintRole to hex string (Canton MCMS format)

func (MintRole) MarshalJSON

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

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

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

UnmarshalHex decodes MintRole from hex string (Canton MCMS format)

func (*MintRole) UnmarshalJSON

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

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

type Transfer struct {
	To types.PARTY `json:"to"`
}

Transfer is a Record type

func (Transfer) MarshalHex

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

MarshalHex encodes Transfer to hex string (Canton MCMS format)

func (Transfer) MarshalJSON

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

func (Transfer) ToMap

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

ToMap converts Transfer to a map for DAML arguments

func (*Transfer) UnmarshalHex

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

UnmarshalHex decodes Transfer from hex string (Canton MCMS format)

func (*Transfer) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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