rpcbinding

package
v0.101.2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(cfg binding.Config) error

Generate writes Go file containing smartcontract bindings to the `cfg.Output`. It doesn't check manifest from Config for validity, incorrect manifest can lead to unexpected results.

func NewConfig

func NewConfig() binding.Config

NewConfig initializes and returns a new config instance.

Types

type ContractTmpl

type ContractTmpl struct {
	binding.ContractTmpl

	SafeMethods []SafeMethodTmpl
	NamedTypes  map[string]binding.ExtendedType

	IsNep11D  bool
	IsNep11ND bool
	IsNep17   bool

	HasReader   bool
	HasWriter   bool
	HasIterator bool
}

type SafeMethodTmpl added in v0.100.0

type SafeMethodTmpl struct {
	binding.MethodTmpl
	Unwrapper      string
	ItemTo         string
	ExtendedReturn binding.ExtendedType
}

Jump to

Keyboard shortcuts

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