Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Caller *types.Address Callee *types.Address CurrentCaller *types.Address Ledger *ledger.Ledger TransactionIndex uint64 TransactionData *pb.TransactionData CurrentHeight uint64 Nonce uint64 Tx pb.Transaction Logger logrus.FieldLogger }
Context represents the context of wasm
func NewContext ¶
func NewContext(tx pb.Transaction, txIndex uint64, data *pb.TransactionData, currentHeight uint64, ledger *ledger.Ledger, logger logrus.FieldLogger) *Context
NewContext creates a context of wasm instance
Click to show internal directories.
Click to hide internal directories.