bind

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

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

type TemplateInformation struct {
	PackageID    string
	ModuleName   string
	TemplateName string
}

TemplateInformation holds the components of a Daml template identifier.

Jump to

Keyboard shortcuts

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