chainlinkapi

package
v0.0.0-...-346157b Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageName = "chainlink-api"
	PackageID   = "5a47b7339178469ed26257863f6756d96ce2b003ed49e0369e0430250cfbbf79"
	SDKVersion  = "3.4.11"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	// contains filtered or unexported fields
}

Contract wraps template operations with Sui-style API access. Use NewContract to create instances, then call Encoder() for encoding methods.

func NewContract

func NewContract(packageID, moduleName, templateName string) *Contract

NewContract creates a Contract with encoder for the given template. This provides Sui-style API: contract.Encoder().Method(args)

func (*Contract) Encoder

func (c *Contract) Encoder() MCMSEncoder

Encoder returns the encoder for Sui-style contract.Encoder().Method() usage.

type MCMSEncoder

type MCMSEncoder interface {
}

MCMSEncoder interface for typed encoding methods. Implemented by Encoder for method-based encoding.

type RawInstanceAddress

type RawInstanceAddress struct {
	Unpack types.TEXT `json:"unpack"`
}

RawInstanceAddress is a Record type

func (RawInstanceAddress) MarshalHex

func (t RawInstanceAddress) MarshalHex() (string, error)

MarshalHex encodes RawInstanceAddress to hex string (Canton MCMS format)

func (RawInstanceAddress) MarshalJSON

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

func (RawInstanceAddress) ToMap

func (t RawInstanceAddress) ToMap() map[string]any

ToMap converts RawInstanceAddress to a map for DAML arguments

func (*RawInstanceAddress) UnmarshalHex

func (t *RawInstanceAddress) UnmarshalHex(data string) error

UnmarshalHex decodes RawInstanceAddress from hex string (Canton MCMS format)

func (*RawInstanceAddress) UnmarshalJSON

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

type Template

type Template interface {
	CreateCommand() *model.CreateCommand
	GetTemplateID() string
}

Jump to

Keyboard shortcuts

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