contract

package
v0.92.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNativeCall = errors.New("error during call from native")

ErrNativeCall is returned for failed calls from native.

Functions

func Call

func Call(ic *interop.Context) error

Call calls a contract.

func CallEx

func CallEx(ic *interop.Context) error

CallEx calls a contract with flags.

func CallExInternal

func CallExInternal(ic *interop.Context, cs *state.Contract,
	name string, args []stackitem.Item, f smartcontract.CallFlag, checkReturn vm.CheckReturnState) error

CallExInternal calls a contract with flags and can't be invoked directly by user.

func CallFromNative

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

CallFromNative performs synchronous call from native contract.

Types

This section is empty.

Jump to

Keyboard shortcuts

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