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 ¶
Call executes the previously deployed blockchain contract with the specified hash (20 bytes in BE form) using the provided arguments and call flags. It returns whatever this contract returns. This function uses `System.Contract.Call` syscall.
func CreateMultisigAccount ¶
CreateMultisigAccount calculates a script hash of an m out of n multisignature script using the given m and a set of public keys bytes. This function uses `System.Contract.CreateMultisigAccount` syscall.
func CreateStandardAccount ¶
CreateStandardAccount calculates a script hash of the given public key. This function uses `System.Contract.CreateStandardAccount` syscall.