Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMultiSigRedeemScript ¶
func CreateMultiSigRedeemScript(m int, publicKeys keys.PublicKeys) ([]byte, error)
CreateMultiSigRedeemScript creates a script runnable by the VM.
Types ¶
type ContextItem ¶
ContextItem represents a transaction context item.
type ParamType ¶
type ParamType byte
ParamType represents the Type of the contract parameter.
const ( SignatureType ParamType = iota BoolType IntegerType Hash160Type Hash256Type ByteArrayType PublicKeyType StringType ArrayType )
A list of supported smart contract parameter types.
func (ParamType) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
type Parameter ¶
type Parameter struct { // Type of the parameter. Type ParamType `json:"type"` // The actual value of the parameter. Value interface{} `json:"value"` }
Parameter represents a smart contract parameter.
func NewParameter ¶
NewParameter returns a Parameter with proper initialized Value of the given ParamType.
type ParameterContext ¶
type ParameterContext struct{}
ParameterContext holds the parameter context.
type PropertyState ¶ added in v0.51.0
type PropertyState byte
PropertyState represents contract properties (flags).
const ( HasStorage PropertyState = 1 << iota HasDynamicInvoke IsPayable NoProperties = 0 )
List of supported properties.
Click to show internal directories.
Click to hide internal directories.