Documentation ¶
Overview ¶
Package contract provides functions to work with contracts.
Index ¶
Constants ¶
const ( ReadStates CallFlag = 1 << iota WriteStates AllowCall AllowNotify States = ReadStates | WriteStates ReadOnly = ReadStates | AllowCall All = States | AllowCall | AllowNotify NoneFlag CallFlag = 0 )
Using `smartcontract` package from compiled contract requires moderate compiler refactoring, thus all flags are mirrored here.
Variables ¶
This section is empty.
Functions ¶
func Call ¶ added in v0.92.0
Call executes previously deployed blockchain contract with specified hash (20 bytes in BE form) using provided arguments and call flags. It returns whatever this contract returns. This function uses `System.Contract.Call` syscall.
func CreateMultisigAccount ¶ added in v0.94.0
CreateMultisigAccount calculates script hash of an m out of n multisignature script using given m and a set of public keys bytes. This function uses `System.Contract.CreateMultisigAccount` syscall.
func CreateStandardAccount ¶ added in v0.90.0
CreateStandardAccount calculates script hash of a given public key. This function uses `System.Contract.CreateStandardAccount` syscall.