contract

package
v0.119.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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, onUnloaded ...func(v *vm.VM)) error

CallFromNative performs an asynchronous call from native contract. It creates a new context with the calling contract script and pushes this context to the invocation stack. The actual invocation happens later, once the current instruction processing is finished. onUnloaded callback will be called on the current context unloading if no exception occurs.

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