executors

package
v0.19.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 ptypes.PermFlag, logger *logging.Logger) bool

Get permission on an account or fall back to global value

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) Execute

func (ctx *CallContext) Execute(txEnv *txs.Envelope) 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
}

func (*NameContext) Execute

func (ctx *NameContext) Execute(txEnv *txs.Envelope) error

type PermissionsContext

type PermissionsContext struct {
	Tip            blockchain.TipInfo
	StateWriter    state.ReaderWriter
	EventPublisher event.Publisher
	Logger         *logging.Logger
	// contains filtered or unexported fields
}

func (*PermissionsContext) Execute

func (ctx *PermissionsContext) Execute(txEnv *txs.Envelope) error

type SendContext

type SendContext struct {
	Tip            blockchain.TipInfo
	StateWriter    state.ReaderWriter
	EventPublisher event.Publisher
	Logger         *logging.Logger
	// contains filtered or unexported fields
}

func (*SendContext) Execute

func (ctx *SendContext) Execute(txEnv *txs.Envelope) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL