Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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
type Wasm ¶
type Wasm struct {
// wasm instance
Instance wasmer.Instance
// contains filtered or unexported fields
}
Wasm represents the wasm vm in BitXHub
func (*Wasm) Run ¶
Run let the wasm vm excute or deploy the smart contract which depends on whether the callee is empty
Click to show internal directories.
Click to hide internal directories.