interfaces

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PackageID  = "8f919735d2daa1abb780808ad1fed686fc9229a039dc659ccb04e5fd5d071c90"
	SDKVersion = "3.3.0-snapshot.20250507.0"
)

Variables

This section is empty.

Functions

func ITransferableInterfaceID

func ITransferableInterfaceID(packageID *string) string

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

func (t Asset) GetTemplateID() string

GetTemplateID returns the template ID for this template

func (Asset) MarshalJSON

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

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

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

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

func (t Token) GetTemplateID() string

GetTemplateID returns the template ID for this template

func (Token) MarshalJSON

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

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

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

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

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

MarshalJSON implements custom JSON marshaling for Transfer using JsonCodec

func (*Transfer) UnmarshalJSON

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

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

Jump to

Keyboard shortcuts

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