Documentation ¶
Index ¶
Constants ¶
View Source
const GasXVMDeploy = 21000 * 10
Variables ¶
This section is empty.
Functions ¶
func EmptyImports ¶
func EmptyImports() (wasmlib.WasmImport, error)
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context represents the context of wasm
func NewContext ¶
func NewContext(tx pb.Transaction, data *pb.TransactionData, ledger *ledger.Ledger, logger logrus.FieldLogger) *Context
NewContext creates a context of wasm instance
func (*Context) Logger ¶
func (ctx *Context) Logger() logrus.FieldLogger
Logger returns the log instance
Click to show internal directories.
Click to hide internal directories.