erismint

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2017 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Overview

Accounts is part of the pipe for ErisMint and provides the implementation for the pipe to call into the ErisMint application

NameReg is part of the pipe for ErisMint and provides the implementation for the pipe to call into the ErisMint application

Transactor is part of the pipe for ErisMint and provides the implementation for the pipe to call into the ErisMint application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCompatibleConsensus

func AssertCompatibleConsensus(consensusMinorVersion string) error

func GetErisMintVersion

func GetErisMintVersion() *version.VersionIdentifier

func NewErisMintPipe

func NewErisMintPipe(moduleConfig *config.ModuleConfig,
	eventSwitch *go_events.EventSwitch) (*erisMintPipe, error)

Types

type AccountBalanceFilter

type AccountBalanceFilter struct {
	// contains filtered or unexported fields
}

Filter for account balance. Ops: All

func (*AccountBalanceFilter) Configure

func (this *AccountBalanceFilter) Configure(fd *event.FilterData) error

func (*AccountBalanceFilter) Match

func (this *AccountBalanceFilter) Match(v interface{}) bool

type AccountCodeFilter

type AccountCodeFilter struct {
	// contains filtered or unexported fields
}

Filter for account code. Ops: == or != Could be used to match against nil, to see if an account is a contract account.

func (*AccountCodeFilter) Configure

func (this *AccountCodeFilter) Configure(fd *event.FilterData) error

func (*AccountCodeFilter) Match

func (this *AccountCodeFilter) Match(v interface{}) bool

type ErisMint

type ErisMint struct {
	// contains filtered or unexported fields
}

func NewErisMint

func NewErisMint(s *sm.State, evsw *tendermint_events.EventSwitch) *ErisMint

func (*ErisMint) AppendTx

func (app *ErisMint) AppendTx(txBytes []byte) tmsp.Result

Implements manager/types.Application

func (*ErisMint) CheckTx

func (app *ErisMint) CheckTx(txBytes []byte) tmsp.Result

Implements manager/types.Application

func (*ErisMint) Commit

func (app *ErisMint) Commit() (res tmsp.Result)

Implements manager/types.Application Commit the state (called at end of block) NOTE: CheckTx/AppendTx must not run concurrently with Commit -

the mempool should run during AppendTxs, but lock for Commit and Update

func (*ErisMint) GetCheckCache

func (app *ErisMint) GetCheckCache() *sm.BlockCache

TODO: this is used for call/callcode and to get nonces during mempool. the former should work on last committed state only and the later should be handled by the client, or a separate wallet-like nonce tracker thats not part of the app

func (*ErisMint) GetState

func (app *ErisMint) GetState() *sm.State

func (*ErisMint) Info

func (app *ErisMint) Info() (info string)

Implements manager/types.Application

func (*ErisMint) Query

func (app *ErisMint) Query(query []byte) (res tmsp.Result)

func (*ErisMint) SetOption

func (app *ErisMint) SetOption(key string, value string) (log string)

Implements manager/types.Application

type NameRegDataFilter

type NameRegDataFilter struct {
	// contains filtered or unexported fields
}

Filter for namereg data. Useful for example if you store an ipfs hash and know the hash but need the key. Ops: == or !=

func (*NameRegDataFilter) Configure

func (this *NameRegDataFilter) Configure(fd *event.FilterData) error

func (*NameRegDataFilter) Match

func (this *NameRegDataFilter) Match(v interface{}) bool

type NameRegExpiresFilter

type NameRegExpiresFilter struct {
	// contains filtered or unexported fields
}

Filter for expires. Ops: All

func (*NameRegExpiresFilter) Configure

func (this *NameRegExpiresFilter) Configure(fd *event.FilterData) error

func (*NameRegExpiresFilter) Match

func (this *NameRegExpiresFilter) Match(v interface{}) bool

type NameRegNameFilter

type NameRegNameFilter struct {
	// contains filtered or unexported fields
}

Filter for namereg name. This should not be used to get individual entries by name. Ops: == or !=

func (*NameRegNameFilter) Configure

func (this *NameRegNameFilter) Configure(fd *event.FilterData) error

func (*NameRegNameFilter) Match

func (this *NameRegNameFilter) Match(v interface{}) bool

type NameRegOwnerFilter

type NameRegOwnerFilter struct {
	// contains filtered or unexported fields
}

Filter for owner. Ops: == or !=

func (*NameRegOwnerFilter) Configure

func (this *NameRegOwnerFilter) Configure(fd *event.FilterData) error

func (*NameRegOwnerFilter) Match

func (this *NameRegOwnerFilter) Match(v interface{}) bool

type ResultListNames

type ResultListNames struct {
	BlockHeight int                        `json:"block_height"`
	Names       []*core_types.NameRegEntry `json:"names"`
}

Directories

Path Synopsis
evm
sha3
Package sha3 implements the SHA3 hash algorithm (formerly called Keccak) chosen by NIST in 2012.
Package sha3 implements the SHA3 hash algorithm (formerly called Keccak) chosen by NIST in 2012.

Jump to

Keyboard shortcuts

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