Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoundTemplate ¶
type BoundTemplate struct {
// contains filtered or unexported fields
}
BoundTemplate holds template metadata for encoding choice parameters.
func NewBoundTemplate ¶
func NewBoundTemplate(packageID, moduleName, templateName string) *BoundTemplate
NewBoundTemplate creates a new BoundTemplate with the given identifiers.
func (*BoundTemplate) EncodeChoiceArgs ¶
func (t *BoundTemplate) EncodeChoiceArgs(choice string, params any) (*EncodedChoice, error)
EncodeChoiceArgs encodes choice parameters to hex and returns an EncodedChoice.
func (*BoundTemplate) ModuleName ¶
func (t *BoundTemplate) ModuleName() string
ModuleName returns the module name of this template.
func (*BoundTemplate) PackageID ¶
func (t *BoundTemplate) PackageID() string
PackageID returns the package ID of this template.
func (*BoundTemplate) TemplateName ¶
func (t *BoundTemplate) TemplateName() string
TemplateName returns the template name of this template.
type EncodedChoice ¶
type EncodedChoice struct {
// TemplateID identifies the template (packageID:moduleName:templateName)
TemplateID TemplateInformation
// Choice is the name of the choice to exercise
Choice string
// OperationData is the hex-encoded choice parameters
OperationData string
}
EncodedChoice represents an encoded Daml choice invocation. It contains all the information needed to execute a choice on a contract.
type TemplateInformation ¶
TemplateInformation holds the components of a Daml template identifier.
Click to show internal directories.
Click to hide internal directories.