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

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