Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContractEngine ¶
type ContractEngine struct {
// contains filtered or unexported fields
}
func NewContractEngine ¶
func NewContractEngine() (*ContractEngine, error)
func (*ContractEngine) Call ¶
func (engine *ContractEngine) Call(contractID [32]byte, funcName string, args ...interface{}) (interface{}, int64, error)
Call calls a wasm contract function
func (*ContractEngine) CreateWasmContract ¶
func (engine *ContractEngine) CreateWasmContract(wasm []byte) (sum [32]byte, gas uint64, err error)
CreateWasmContract creates a new contract
Click to show internal directories.
Click to hide internal directories.