Documentation ¶
Index ¶
- Constants
- func HasPermission(accountGetter state.AccountGetter, acc acm.Account, perm permission.PermFlag, ...) bool
- type CallContext
- func (ctx *CallContext) CallEvents(err error)
- 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(txe *exec.TxExecution) error
- func (ctx *CallContext) Precheck() (*acm.MutableAccount, acm.Account, error)
- type GovernanceContext
- func (ctx *GovernanceContext) Execute(txe *exec.TxExecution) error
- func (ctx *GovernanceContext) MaybeGetPublicKey(address crypto.Address) (*crypto.PublicKey, error)
- func (ctx *GovernanceContext) UpdateAccount(account *acm.MutableAccount, update *spec.TemplateAccount) (ev *exec.GovernAccountEvent, err error)
- type NameContext
- type PermissionsContext
- type SendContext
Constants ¶
View Source
const GasLimit = uint64(1000000)
TODO: make configurable
Variables ¶
This section is empty.
Functions ¶
func HasPermission ¶
func HasPermission(accountGetter state.AccountGetter, acc acm.Account, perm permission.PermFlag, logger *logging.Logger) bool
Get permission on an account or fall back to global value
Types ¶
type CallContext ¶
type CallContext struct { Tip bcm.BlockchainInfo StateWriter state.ReaderWriter RunCall bool VMOptions []func(*evm.VM) Logger *logging.Logger // contains filtered or unexported fields }
func (*CallContext) CallEvents ¶
func (ctx *CallContext) CallEvents(err error)
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) Execute ¶
func (ctx *CallContext) Execute(txe *exec.TxExecution) error
func (*CallContext) Precheck ¶
func (ctx *CallContext) Precheck() (*acm.MutableAccount, acm.Account, error)
type GovernanceContext ¶
type GovernanceContext struct { StateWriter state.ReaderWriter ValidatorSet validator.Writer Logger *logging.Logger // contains filtered or unexported fields }
func (*GovernanceContext) Execute ¶
func (ctx *GovernanceContext) Execute(txe *exec.TxExecution) error
GovTx provides a set of TemplateAccounts and GovernanceContext tries to alter the chain state to match the specification given
func (*GovernanceContext) MaybeGetPublicKey ¶ added in v0.20.1
func (*GovernanceContext) UpdateAccount ¶ added in v0.20.1
func (ctx *GovernanceContext) UpdateAccount(account *acm.MutableAccount, update *spec.TemplateAccount) (ev *exec.GovernAccountEvent, err error)
type NameContext ¶
type NameContext struct { Tip bcm.BlockchainInfo StateWriter state.ReaderWriter NameReg names.ReaderWriter Logger *logging.Logger // contains filtered or unexported fields }
func (*NameContext) Execute ¶
func (ctx *NameContext) Execute(txe *exec.TxExecution) error
type PermissionsContext ¶
type PermissionsContext struct { Tip bcm.BlockchainInfo StateWriter state.ReaderWriter Logger *logging.Logger // contains filtered or unexported fields }
func (*PermissionsContext) Execute ¶
func (ctx *PermissionsContext) Execute(txe *exec.TxExecution) error
type SendContext ¶
type SendContext struct { Tip bcm.BlockchainInfo StateWriter state.ReaderWriter Logger *logging.Logger // contains filtered or unexported fields }
func (*SendContext) Execute ¶
func (ctx *SendContext) Execute(txe *exec.TxExecution) error
Click to show internal directories.
Click to hide internal directories.