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
Ledger ledger.Ledger
TransactionIndex uint64
TransactionHash *types.Hash
TransactionData *pb.TransactionData
Nonce uint64
Logger logrus.FieldLogger
}
Context represents the context of wasm
func NewContext ¶
func NewContext(tx *pb.Transaction, txIndex uint64, data *pb.TransactionData, ledger ledger.Ledger, logger logrus.FieldLogger) *Context
NewContext creates a context of wasm instance
Click to show internal directories.
Click to hide internal directories.