Documentation
¶
Index ¶
- Constants
- func ITransferableInterfaceID(packageID *string) string
- type Asset
- func (t Asset) Archive(contractID string) *model.ExerciseCommand
- func (t Asset) AssetTransfer(contractID string, args AssetTransfer) *model.ExerciseCommand
- func (t Asset) CreateCommand() *model.CreateCommand
- func (t Asset) GetTemplateID() string
- func (t Asset) MarshalJSON() ([]byte, error)
- func (t Asset) Transfer(contractID string, args Transfer) *model.ExerciseCommand
- func (t *Asset) UnmarshalJSON(data []byte) error
- type AssetTransfer
- type ITransferable
- type Template
- type Token
- func (t Token) Archive(contractID string) *model.ExerciseCommand
- func (t Token) CreateCommand() *model.CreateCommand
- func (t Token) GetTemplateID() string
- func (t Token) MarshalJSON() ([]byte, error)
- func (t Token) Transfer(contractID string, args Transfer) *model.ExerciseCommand
- func (t *Token) UnmarshalJSON(data []byte) error
- type Transfer
- type TransferableView
Constants ¶
const ( PackageID = "8f919735d2daa1abb780808ad1fed686fc9229a039dc659ccb04e5fd5d071c90" SDKVersion = "3.3.0-snapshot.20250507.0" )
Variables ¶
This section is empty.
Functions ¶
func ITransferableInterfaceID ¶
ITransferableInterfaceID returns the interface ID for the ITransferable interface
Types ¶
type Asset ¶
type Asset struct {
Owner PARTY `json:"owner"`
Name TEXT `json:"name"`
Value INT64 `json:"value"`
}
Asset is a Template type
func (Asset) Archive ¶
func (t Asset) Archive(contractID string) *model.ExerciseCommand
Archive exercises the Archive choice on this Asset contract
func (Asset) AssetTransfer ¶
func (t Asset) AssetTransfer(contractID string, args AssetTransfer) *model.ExerciseCommand
AssetTransfer exercises the AssetTransfer choice on this Asset contract
func (Asset) CreateCommand ¶
func (t Asset) CreateCommand() *model.CreateCommand
CreateCommand returns a CreateCommand for this template
func (Asset) GetTemplateID ¶
GetTemplateID returns the template ID for this template
func (Asset) MarshalJSON ¶
MarshalJSON implements custom JSON marshaling for Asset using JsonCodec
func (Asset) Transfer ¶
func (t Asset) Transfer(contractID string, args Transfer) *model.ExerciseCommand
Transfer exercises the Transfer choice on this Asset contract via the ITransferable interface
func (*Asset) UnmarshalJSON ¶
UnmarshalJSON implements custom JSON unmarshaling for Asset using JsonCodec
type AssetTransfer ¶
type AssetTransfer struct {
NewOwner PARTY `json:"newOwner"`
}
AssetTransfer is a Record type
func (AssetTransfer) MarshalJSON ¶
func (t AssetTransfer) MarshalJSON() ([]byte, error)
MarshalJSON implements custom JSON marshaling for AssetTransfer using JsonCodec
func (*AssetTransfer) UnmarshalJSON ¶
func (t *AssetTransfer) UnmarshalJSON(data []byte) error
UnmarshalJSON implements custom JSON unmarshaling for AssetTransfer using JsonCodec
type ITransferable ¶
type ITransferable interface {
// Archive executes the Archive choice
Archive(contractID string) *model.ExerciseCommand
// Transfer executes the Transfer choice
Transfer(contractID string, args Transfer) *model.ExerciseCommand
}
ITransferable is a DAML interface
type Template ¶
type Template interface {
CreateCommand() *model.CreateCommand
GetTemplateID() string
}
type Token ¶
type Token struct {
Issuer PARTY `json:"issuer"`
Owner PARTY `json:"owner"`
Amount NUMERIC `json:"amount"`
}
Token is a Template type
func (Token) Archive ¶
func (t Token) Archive(contractID string) *model.ExerciseCommand
Archive exercises the Archive choice on this Token contract
func (Token) CreateCommand ¶
func (t Token) CreateCommand() *model.CreateCommand
CreateCommand returns a CreateCommand for this template
func (Token) GetTemplateID ¶
GetTemplateID returns the template ID for this template
func (Token) MarshalJSON ¶
MarshalJSON implements custom JSON marshaling for Token using JsonCodec
func (Token) Transfer ¶
func (t Token) Transfer(contractID string, args Transfer) *model.ExerciseCommand
Transfer exercises the Transfer choice on this Token contract via the ITransferable interface
func (*Token) UnmarshalJSON ¶
UnmarshalJSON implements custom JSON unmarshaling for Token using JsonCodec
type Transfer ¶
type Transfer struct {
NewOwner PARTY `json:"newOwner"`
}
Transfer is a Record type
func (Transfer) MarshalJSON ¶
MarshalJSON implements custom JSON marshaling for Transfer using JsonCodec
func (*Transfer) UnmarshalJSON ¶
UnmarshalJSON implements custom JSON unmarshaling for Transfer using JsonCodec
type TransferableView ¶
type TransferableView struct {
Owner PARTY `json:"owner"`
}
TransferableView is a Record type
func (TransferableView) MarshalJSON ¶
func (t TransferableView) MarshalJSON() ([]byte, error)
MarshalJSON implements custom JSON marshaling for TransferableView using JsonCodec
func (*TransferableView) UnmarshalJSON ¶
func (t *TransferableView) UnmarshalJSON(data []byte) error
UnmarshalJSON implements custom JSON unmarshaling for TransferableView using JsonCodec