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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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