Documentation ¶
Index ¶
- Constants
- type TransactionStore
- func (ts *TransactionStore) AddCustom(customKey string, id string, tx *abci.RequestDeliverTx) error
- func (ts *TransactionStore) AddExpired(id string, tx *abci.RequestDeliverTx) error
- func (ts *TransactionStore) AddFinalized(id string, tx *abci.RequestDeliverTx) error
- func (ts *TransactionStore) Delete(key storage.StoreKey) (bool, error)
- func (ts *TransactionStore) DeleteCustom(customKey string, id string) (bool, error)
- func (ts *TransactionStore) DeleteExpired(id string) (bool, error)
- func (ts *TransactionStore) DeleteFinalized(id string) (bool, error)
- func (ts *TransactionStore) Exists(key storage.StoreKey) bool
- func (ts *TransactionStore) ExistsCustom(customKey string, id string) bool
- func (ts *TransactionStore) ExistsExpired(id string) bool
- func (ts *TransactionStore) ExistsFinalized(id string) bool
- func (ts *TransactionStore) Get(key storage.StoreKey) (tx *abci.RequestDeliverTx, err error)
- func (ts *TransactionStore) GetCustom(customKey string, id string) (*abci.RequestDeliverTx, error)
- func (ts *TransactionStore) GetExpired(id string) (*abci.RequestDeliverTx, error)
- func (ts *TransactionStore) GetFinalized(id string) (*abci.RequestDeliverTx, error)
- func (ts *TransactionStore) Iterate(fn func(key string, tx *abci.RequestDeliverTx) bool) bool
- func (ts *TransactionStore) IterateCustom(customKey string, fn func(key string, tx *abci.RequestDeliverTx) bool) bool
- func (ts *TransactionStore) IterateExpired(fn func(key string, tx *abci.RequestDeliverTx) bool) bool
- func (ts *TransactionStore) IterateFinalized(fn func(key string, tx *abci.RequestDeliverTx) bool) bool
- func (ts *TransactionStore) Set(tx *abci.RequestDeliverTx, key storage.StoreKey) error
- func (ts *TransactionStore) WithState(state *storage.State) *TransactionStore
Constants ¶
View Source
const ( FINALIZE_KEY = "FINALIZE" EXPIRE_KEY = "EXPIRE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransactionStore ¶
func NewTransactionStore ¶
func NewTransactionStore(prefix string, state *storage.State) *TransactionStore
func (*TransactionStore) AddCustom ¶ added in v0.16.1
func (ts *TransactionStore) AddCustom(customKey string, id string, tx *abci.RequestDeliverTx) error
func (*TransactionStore) AddExpired ¶
func (ts *TransactionStore) AddExpired(id string, tx *abci.RequestDeliverTx) error
func (*TransactionStore) AddFinalized ¶
func (ts *TransactionStore) AddFinalized(id string, tx *abci.RequestDeliverTx) error
func (*TransactionStore) Delete ¶
func (ts *TransactionStore) Delete(key storage.StoreKey) (bool, error)
func (*TransactionStore) DeleteCustom ¶ added in v0.16.1
func (ts *TransactionStore) DeleteCustom(customKey string, id string) (bool, error)
func (*TransactionStore) DeleteExpired ¶
func (ts *TransactionStore) DeleteExpired(id string) (bool, error)
func (*TransactionStore) DeleteFinalized ¶
func (ts *TransactionStore) DeleteFinalized(id string) (bool, error)
func (*TransactionStore) ExistsCustom ¶ added in v0.16.1
func (ts *TransactionStore) ExistsCustom(customKey string, id string) bool
func (*TransactionStore) ExistsExpired ¶
func (ts *TransactionStore) ExistsExpired(id string) bool
func (*TransactionStore) ExistsFinalized ¶
func (ts *TransactionStore) ExistsFinalized(id string) bool
func (*TransactionStore) Get ¶
func (ts *TransactionStore) Get(key storage.StoreKey) (tx *abci.RequestDeliverTx, err error)
func (*TransactionStore) GetCustom ¶ added in v0.16.1
func (ts *TransactionStore) GetCustom(customKey string, id string) (*abci.RequestDeliverTx, error)
func (*TransactionStore) GetExpired ¶
func (ts *TransactionStore) GetExpired(id string) (*abci.RequestDeliverTx, error)
func (*TransactionStore) GetFinalized ¶
func (ts *TransactionStore) GetFinalized(id string) (*abci.RequestDeliverTx, error)
func (*TransactionStore) Iterate ¶
func (ts *TransactionStore) Iterate(fn func(key string, tx *abci.RequestDeliverTx) bool) bool
Iterate through all Transactions
func (*TransactionStore) IterateCustom ¶ added in v0.16.1
func (ts *TransactionStore) IterateCustom(customKey string, fn func(key string, tx *abci.RequestDeliverTx) bool) bool
func (*TransactionStore) IterateExpired ¶
func (ts *TransactionStore) IterateExpired(fn func(key string, tx *abci.RequestDeliverTx) bool) bool
func (*TransactionStore) IterateFinalized ¶
func (ts *TransactionStore) IterateFinalized(fn func(key string, tx *abci.RequestDeliverTx) bool) bool
func (*TransactionStore) Set ¶
func (ts *TransactionStore) Set(tx *abci.RequestDeliverTx, key storage.StoreKey) error
func (*TransactionStore) WithState ¶
func (ts *TransactionStore) WithState(state *storage.State) *TransactionStore
Click to show internal directories.
Click to hide internal directories.