contract

package
v0.101.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNativeCall = errors.New("failed native call")

ErrNativeCall is returned for failed calls from native.

Functions

func Call

func Call(ic *interop.Context) error

Call calls a contract with flags.

func CallFromNative

func CallFromNative(ic *interop.Context, caller util.Uint160, cs *state.Contract, method string, args []stackitem.Item, hasReturn bool) error

CallFromNative performs synchronous call from native contract.

func CreateMultisigAccount added in v0.99.1

func CreateMultisigAccount(ic *interop.Context) error

CreateMultisigAccount calculates multisig contract scripthash for a given m and a set of public keys.

func CreateStandardAccount added in v0.99.1

func CreateStandardAccount(ic *interop.Context) error

CreateStandardAccount calculates contract scripthash for a given public key.

func GetCallFlags added in v0.99.1

func GetCallFlags(ic *interop.Context) error

GetCallFlags returns current context calling flags.

func LoadToken added in v0.93.0

func LoadToken(ic *interop.Context, id int32) error

LoadToken calls method specified by the token id.

Types

This section is empty.

Jump to

Keyboard shortcuts

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