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 ¶
- func AssertCompatibleConsensus(consensusMinorVersion string) error
- func GetErisMintVersion() *version.VersionIdentifier
- func NewErisMintPipe(moduleConfig *config.ModuleConfig, eventSwitch *go_events.EventSwitch) (*erisMintPipe, error)
- type AccountBalanceFilter
- type AccountCodeFilter
- type ErisMint
- func (app *ErisMint) AppendTx(txBytes []byte) tmsp.Result
- func (app *ErisMint) CheckTx(txBytes []byte) tmsp.Result
- func (app *ErisMint) Commit() (res tmsp.Result)
- func (app *ErisMint) GetCheckCache() *sm.BlockCache
- func (app *ErisMint) GetState() *sm.State
- func (app *ErisMint) Info() (info string)
- func (app *ErisMint) Query(query []byte) (res tmsp.Result)
- func (app *ErisMint) SetOption(key string, value string) (log string)
- type NameRegDataFilter
- type NameRegExpiresFilter
- type NameRegNameFilter
- type NameRegOwnerFilter
- type ResultListNames
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Commit ¶
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
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"` }