contract

package
v0.0.0-...-c56c372 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2021 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gasm

func Gasm()

Gasm

func WasmTime

func WasmTime()

WasmTime test with wasmtime library

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL