Documentation ¶
Index ¶
- Constants
- func BuildNativeInvokeCode(contractAddress common.Address, version byte, method string, ...) ([]byte, error)
- func BuildNativeTransaction(addr common.Address, initMethod string, args []byte) *types.MutableTransaction
- func BuildNeoVMInvokeCode(smartContractAddress common.Address, params []interface{}) ([]byte, error)
- func BuildNeoVMParam(builder *vm.ParamsBuilder, smartContractParams []interface{}) error
- func BuildWasmContractParam(params []interface{}) ([]byte, error)
- func BuildWasmVMInvokeCode(contractAddress common.Address, params []interface{}) ([]byte, error)
- func NewDeployTransaction(code []byte, name, version, author, email, desp string, vmType payload.VmType) *types.MutableTransaction
- func NewInvokeTransaction(code []byte) *types.MutableTransaction
- func NewWasmSmartContractTransaction(gasPrice, gasLimit uint64, invokeCode []byte) (*types.MutableTransaction, error)
- func NewWasmVMInvokeTransaction(gasPrice, gasLimit uint64, contractAddress common.Address, ...) (*types.MutableTransaction, error)
Constants ¶
View Source
const NATIVE_INVOKE_NAME = "Ontology.Native.Invoke" // copy from smartcontract/service/neovm/config.go to avoid cycle dependences
Variables ¶
This section is empty.
Functions ¶
func BuildNativeInvokeCode ¶ added in v1.6.0
func BuildNativeTransaction ¶
func BuildNeoVMInvokeCode ¶ added in v1.8.0
func BuildNeoVMInvokeCode(smartContractAddress common.Address, params []interface{}) ([]byte, error)
BuildNeoVMInvokeCode build NeoVM Invoke code for params
func BuildNeoVMParam ¶ added in v1.6.0
func BuildNeoVMParam(builder *vm.ParamsBuilder, smartContractParams []interface{}) error
buildNeoVMParamInter build neovm invoke param code
func BuildWasmContractParam ¶ added in v1.8.0
build param bytes for wasm contract
func BuildWasmVMInvokeCode ¶ added in v1.8.0
build param bytes for wasm contract
func NewDeployTransaction ¶
func NewDeployTransaction(code []byte, name, version, author, email, desp string, vmType payload.VmType) *types.MutableTransaction
NewDeployTransaction returns a deploy Transaction
func NewInvokeTransaction ¶
func NewInvokeTransaction(code []byte) *types.MutableTransaction
NewInvokeTransaction returns an invoke Transaction
func NewWasmSmartContractTransaction ¶ added in v1.8.0
func NewWasmSmartContractTransaction(gasPrice, gasLimit uint64, invokeCode []byte) (*types.MutableTransaction, error)
func NewWasmVMInvokeTransaction ¶ added in v1.8.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.