transactions

package
v0.18.15 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FINALIZE_KEY = "FINALIZE"
	EXPIRE_KEY   = "EXPIRE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionStore

type TransactionStore struct {
	State *storage.State
	// contains filtered or unexported fields
}

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

func (ts *TransactionStore) Exists(key storage.StoreKey) bool

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 (*TransactionStore) WithState

func (ts *TransactionStore) WithState(state *storage.State) *TransactionStore

Jump to

Keyboard shortcuts

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