Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Language types.LangType Caller common.Uint160 StateMachine *service.StateMachine DBCache storage.DBCache Code []byte Input []byte CodeHash common.Uint160 Time *big.Int BlockNumber *big.Int CacheCodeTable interfaces.ICodeTable SignableData sig.SignableData Gas common.Fixed64 ReturnType contract.ContractParameterType ParameterTypes []contract.ContractParameterType }
type SmartContract ¶
type SmartContract struct { Engine Engine Code []byte Input []byte ParameterTypes []contract.ContractParameterType Caller common.Uint160 CodeHash common.Uint160 VMType types.VmType ReturnType contract.ContractParameterType }
func NewSmartContract ¶
func NewSmartContract(context *Context) (*SmartContract, error)
func (*SmartContract) DeployContract ¶
func (sc *SmartContract) DeployContract() ([]byte, error)
func (*SmartContract) InvokeContract ¶
func (sc *SmartContract) InvokeContract() (interface{}, error)
func (*SmartContract) InvokeParamsTransform ¶
func (sc *SmartContract) InvokeParamsTransform() ([]byte, error)
func (*SmartContract) InvokeResult ¶
func (sc *SmartContract) InvokeResult() (interface{}, error)
Click to show internal directories.
Click to hide internal directories.