Documentation ¶
Index ¶
- type IndexerDb
- func (_m *IndexerDb) AddBlock(block *types.ValidatedBlock) error
- func (_m *IndexerDb) AppLocalState(ctx context.Context, filter idb.ApplicationQuery) (<-chan idb.AppLocalStateRow, uint64)
- func (_m *IndexerDb) ApplicationBoxes(ctx context.Context, filter idb.ApplicationBoxQuery) (<-chan idb.ApplicationBoxRow, uint64)
- func (_m *IndexerDb) Applications(ctx context.Context, filter idb.ApplicationQuery) (<-chan idb.ApplicationRow, uint64)
- func (_m *IndexerDb) AssetBalances(ctx context.Context, abq idb.AssetBalanceQuery) (<-chan idb.AssetBalanceRow, uint64)
- func (_m *IndexerDb) Assets(ctx context.Context, filter idb.AssetsQuery) (<-chan idb.AssetRow, uint64)
- func (_m *IndexerDb) Close()
- func (_m *IndexerDb) DeleteTransactions(ctx context.Context, keep uint64) error
- func (_m *IndexerDb) GetAccounts(ctx context.Context, opts idb.AccountQueryOptions) (<-chan idb.AccountRow, uint64)
- func (_m *IndexerDb) GetBlock(ctx context.Context, round uint64, options idb.GetBlockOptions) (v2types.BlockHeader, []idb.TxnRow, error)
- func (_m *IndexerDb) GetNetworkState() (idb.NetworkState, error)
- func (_m *IndexerDb) GetNextRoundToAccount() (uint64, error)
- func (_m *IndexerDb) GetSpecialAccounts(ctx context.Context) (types.SpecialAddresses, error)
- func (_m *IndexerDb) Health(ctx context.Context) (idb.Health, error)
- func (_m *IndexerDb) LoadGenesis(genesis v2types.Genesis) error
- func (_m *IndexerDb) SetNetworkState(genesis v2types.Digest) error
- func (_m *IndexerDb) Transactions(ctx context.Context, tf idb.TransactionFilter) (<-chan idb.TxnRow, uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IndexerDb ¶
IndexerDb is an autogenerated mock type for the IndexerDb type
func NewIndexerDb ¶
func NewIndexerDb(t mockConstructorTestingTNewIndexerDb) *IndexerDb
NewIndexerDb creates a new instance of IndexerDb. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*IndexerDb) AddBlock ¶
func (_m *IndexerDb) AddBlock(block *types.ValidatedBlock) error
AddBlock provides a mock function with given fields: block
func (*IndexerDb) AppLocalState ¶
func (_m *IndexerDb) AppLocalState(ctx context.Context, filter idb.ApplicationQuery) (<-chan idb.AppLocalStateRow, uint64)
AppLocalState provides a mock function with given fields: ctx, filter
func (*IndexerDb) ApplicationBoxes ¶
func (_m *IndexerDb) ApplicationBoxes(ctx context.Context, filter idb.ApplicationBoxQuery) (<-chan idb.ApplicationBoxRow, uint64)
ApplicationBoxes provides a mock function with given fields: ctx, filter
func (*IndexerDb) Applications ¶
func (_m *IndexerDb) Applications(ctx context.Context, filter idb.ApplicationQuery) (<-chan idb.ApplicationRow, uint64)
Applications provides a mock function with given fields: ctx, filter
func (*IndexerDb) AssetBalances ¶
func (_m *IndexerDb) AssetBalances(ctx context.Context, abq idb.AssetBalanceQuery) (<-chan idb.AssetBalanceRow, uint64)
AssetBalances provides a mock function with given fields: ctx, abq
func (*IndexerDb) Assets ¶
func (_m *IndexerDb) Assets(ctx context.Context, filter idb.AssetsQuery) (<-chan idb.AssetRow, uint64)
Assets provides a mock function with given fields: ctx, filter
func (*IndexerDb) Close ¶
func (_m *IndexerDb) Close()
Close provides a mock function with given fields:
func (*IndexerDb) DeleteTransactions ¶
DeleteTransactions provides a mock function with given fields: ctx, keep
func (*IndexerDb) GetAccounts ¶
func (_m *IndexerDb) GetAccounts(ctx context.Context, opts idb.AccountQueryOptions) (<-chan idb.AccountRow, uint64)
GetAccounts provides a mock function with given fields: ctx, opts
func (*IndexerDb) GetBlock ¶
func (_m *IndexerDb) GetBlock(ctx context.Context, round uint64, options idb.GetBlockOptions) (v2types.BlockHeader, []idb.TxnRow, error)
GetBlock provides a mock function with given fields: ctx, round, options
func (*IndexerDb) GetNetworkState ¶
func (_m *IndexerDb) GetNetworkState() (idb.NetworkState, error)
GetNetworkState provides a mock function with given fields:
func (*IndexerDb) GetNextRoundToAccount ¶
GetNextRoundToAccount provides a mock function with given fields:
func (*IndexerDb) GetSpecialAccounts ¶
GetSpecialAccounts provides a mock function with given fields: ctx
func (*IndexerDb) LoadGenesis ¶
LoadGenesis provides a mock function with given fields: genesis
func (*IndexerDb) SetNetworkState ¶
SetNetworkState provides a mock function with given fields: genesis
func (*IndexerDb) Transactions ¶
func (_m *IndexerDb) Transactions(ctx context.Context, tf idb.TransactionFilter) (<-chan idb.TxnRow, uint64)
Transactions provides a mock function with given fields: ctx, tf