Documentation ¶
Index ¶
- Constants
- func HasPermission(accountGetter state.AccountGetter, acc acm.Account, perm ptypes.PermFlag, ...) bool
- type CallContext
- func (ctx *CallContext) Check(inAcc acm.MutableAccount, value uint64) error
- func (ctx *CallContext) Deliver(inAcc, outAcc acm.Account, value uint64) error
- func (ctx *CallContext) Execute(txEnv *txs.Envelope) error
- func (ctx *CallContext) FireCallEvents(ret []byte, err error)
- func (ctx *CallContext) Precheck() (acm.MutableAccount, acm.Account, error)
- type NameContext
- type PermissionsContext
- type SendContext
Constants ¶
View Source
const GasLimit = uint64(1000000)
TODO: make configurable
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallContext ¶
type CallContext struct { Tip blockchain.TipInfo StateWriter state.ReaderWriter EventPublisher event.Publisher RunCall bool VMOptions []func(*evm.VM) Logger *logging.Logger // contains filtered or unexported fields }
func (*CallContext) Check ¶
func (ctx *CallContext) Check(inAcc acm.MutableAccount, value uint64) error
func (*CallContext) Deliver ¶
func (ctx *CallContext) Deliver(inAcc, outAcc acm.Account, value uint64) error
func (*CallContext) FireCallEvents ¶
func (ctx *CallContext) FireCallEvents(ret []byte, err error)
func (*CallContext) Precheck ¶
func (ctx *CallContext) Precheck() (acm.MutableAccount, acm.Account, error)
type NameContext ¶
type NameContext struct { Tip blockchain.TipInfo StateWriter state.ReaderWriter EventPublisher event.Publisher NameReg names.ReaderWriter Logger *logging.Logger // contains filtered or unexported fields }
type PermissionsContext ¶
type PermissionsContext struct { Tip blockchain.TipInfo StateWriter state.ReaderWriter EventPublisher event.Publisher Logger *logging.Logger // contains filtered or unexported fields }
type SendContext ¶
type SendContext struct { Tip blockchain.TipInfo StateWriter state.ReaderWriter EventPublisher event.Publisher Logger *logging.Logger // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.