Documentation ¶
Index ¶
- type BalanceStorageHandler
- func (_m *BalanceStorageHandler) AccountsReconciled(ctx context.Context, dbTx database.Transaction, count int) error
- func (_m *BalanceStorageHandler) AccountsSeen(ctx context.Context, dbTx database.Transaction, count int) error
- func (_m *BalanceStorageHandler) BlockAdded(ctx context.Context, block *types.Block, changes []*parser.BalanceChange) error
- func (_m *BalanceStorageHandler) BlockRemoved(ctx context.Context, block *types.Block, changes []*parser.BalanceChange) error
- type BalanceStorageHelper
- func (_m *BalanceStorageHelper) AccountBalance(ctx context.Context, account *types.AccountIdentifier, ...) (*types.Amount, error)
- func (_m *BalanceStorageHelper) AccountsReconciled(ctx context.Context, dbTx database.Transaction) (*big.Int, error)
- func (_m *BalanceStorageHelper) AccountsSeen(ctx context.Context, dbTx database.Transaction) (*big.Int, error)
- func (_m *BalanceStorageHelper) Asserter() *asserter.Asserter
- func (_m *BalanceStorageHelper) BalanceExemptions() []*types.BalanceExemption
- func (_m *BalanceStorageHelper) ExemptFunc() parser.ExemptOperation
- type BlockWorker
- type BroadcastStorageHandler
- func (_m *BroadcastStorageHandler) BroadcastFailed(_a0 context.Context, _a1 database.Transaction, _a2 string, ...) error
- func (_m *BroadcastStorageHandler) TransactionConfirmed(_a0 context.Context, _a1 database.Transaction, _a2 string, ...) error
- func (_m *BroadcastStorageHandler) TransactionStale(_a0 context.Context, _a1 database.Transaction, _a2 string, ...) error
- type BroadcastStorageHelper
- func (_m *BroadcastStorageHelper) AtTip(_a0 context.Context, _a1 int64) (bool, error)
- func (_m *BroadcastStorageHelper) BroadcastTransaction(_a0 context.Context, _a1 *types.NetworkIdentifier, _a2 string) (*types.TransactionIdentifier, error)
- func (_m *BroadcastStorageHelper) CurrentBlockIdentifier(_a0 context.Context) (*types.BlockIdentifier, error)
- func (_m *BroadcastStorageHelper) FindTransaction(_a0 context.Context, _a1 *types.TransactionIdentifier, ...) (*types.BlockIdentifier, *types.Transaction, error)
- type CoinStorageHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceStorageHandler ¶
BalanceStorageHandler is an autogenerated mock type for the BalanceStorageHandler type
func NewBalanceStorageHandler ¶ added in v0.7.11
func NewBalanceStorageHandler(t mockConstructorTestingTNewBalanceStorageHandler) *BalanceStorageHandler
NewBalanceStorageHandler creates a new instance of BalanceStorageHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BalanceStorageHandler) AccountsReconciled ¶
func (_m *BalanceStorageHandler) AccountsReconciled(ctx context.Context, dbTx database.Transaction, count int) error
AccountsReconciled provides a mock function with given fields: ctx, dbTx, count
func (*BalanceStorageHandler) AccountsSeen ¶
func (_m *BalanceStorageHandler) AccountsSeen(ctx context.Context, dbTx database.Transaction, count int) error
AccountsSeen provides a mock function with given fields: ctx, dbTx, count
func (*BalanceStorageHandler) BlockAdded ¶
func (_m *BalanceStorageHandler) BlockAdded(ctx context.Context, block *types.Block, changes []*parser.BalanceChange) error
BlockAdded provides a mock function with given fields: ctx, block, changes
func (*BalanceStorageHandler) BlockRemoved ¶
func (_m *BalanceStorageHandler) BlockRemoved(ctx context.Context, block *types.Block, changes []*parser.BalanceChange) error
BlockRemoved provides a mock function with given fields: ctx, block, changes
type BalanceStorageHelper ¶
BalanceStorageHelper is an autogenerated mock type for the BalanceStorageHelper type
func NewBalanceStorageHelper ¶ added in v0.7.11
func NewBalanceStorageHelper(t mockConstructorTestingTNewBalanceStorageHelper) *BalanceStorageHelper
NewBalanceStorageHelper creates a new instance of BalanceStorageHelper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BalanceStorageHelper) AccountBalance ¶
func (_m *BalanceStorageHelper) AccountBalance(ctx context.Context, account *types.AccountIdentifier, currency *types.Currency, block *types.BlockIdentifier) (*types.Amount, error)
AccountBalance provides a mock function with given fields: ctx, account, currency, block
func (*BalanceStorageHelper) AccountsReconciled ¶
func (_m *BalanceStorageHelper) AccountsReconciled(ctx context.Context, dbTx database.Transaction) (*big.Int, error)
AccountsReconciled provides a mock function with given fields: ctx, dbTx
func (*BalanceStorageHelper) AccountsSeen ¶
func (_m *BalanceStorageHelper) AccountsSeen(ctx context.Context, dbTx database.Transaction) (*big.Int, error)
AccountsSeen provides a mock function with given fields: ctx, dbTx
func (*BalanceStorageHelper) Asserter ¶
func (_m *BalanceStorageHelper) Asserter() *asserter.Asserter
Asserter provides a mock function with given fields:
func (*BalanceStorageHelper) BalanceExemptions ¶
func (_m *BalanceStorageHelper) BalanceExemptions() []*types.BalanceExemption
BalanceExemptions provides a mock function with given fields:
func (*BalanceStorageHelper) ExemptFunc ¶
func (_m *BalanceStorageHelper) ExemptFunc() parser.ExemptOperation
ExemptFunc provides a mock function with given fields:
type BlockWorker ¶
BlockWorker is an autogenerated mock type for the BlockWorker type
func NewBlockWorker ¶ added in v0.7.11
func NewBlockWorker(t mockConstructorTestingTNewBlockWorker) *BlockWorker
NewBlockWorker creates a new instance of BlockWorker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BlockWorker) AddingBlock ¶
func (_m *BlockWorker) AddingBlock(_a0 context.Context, _a1 *errgroup.Group, _a2 *types.Block, _a3 database.Transaction) (database.CommitWorker, error)
AddingBlock provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*BlockWorker) RemovingBlock ¶
func (_m *BlockWorker) RemovingBlock(_a0 context.Context, _a1 *errgroup.Group, _a2 *types.Block, _a3 database.Transaction) (database.CommitWorker, error)
RemovingBlock provides a mock function with given fields: _a0, _a1, _a2, _a3
type BroadcastStorageHandler ¶
BroadcastStorageHandler is an autogenerated mock type for the BroadcastStorageHandler type
func NewBroadcastStorageHandler ¶ added in v0.7.11
func NewBroadcastStorageHandler(t mockConstructorTestingTNewBroadcastStorageHandler) *BroadcastStorageHandler
NewBroadcastStorageHandler creates a new instance of BroadcastStorageHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BroadcastStorageHandler) BroadcastFailed ¶
func (_m *BroadcastStorageHandler) BroadcastFailed(_a0 context.Context, _a1 database.Transaction, _a2 string, _a3 *types.TransactionIdentifier, _a4 []*types.Operation) error
BroadcastFailed provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4
func (*BroadcastStorageHandler) TransactionConfirmed ¶
func (_m *BroadcastStorageHandler) TransactionConfirmed(_a0 context.Context, _a1 database.Transaction, _a2 string, _a3 *types.BlockIdentifier, _a4 *types.Transaction, _a5 []*types.Operation, _a6 map[string]interface{}) error
TransactionConfirmed provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6
func (*BroadcastStorageHandler) TransactionStale ¶
func (_m *BroadcastStorageHandler) TransactionStale(_a0 context.Context, _a1 database.Transaction, _a2 string, _a3 *types.TransactionIdentifier) error
TransactionStale provides a mock function with given fields: _a0, _a1, _a2, _a3
type BroadcastStorageHelper ¶
BroadcastStorageHelper is an autogenerated mock type for the BroadcastStorageHelper type
func NewBroadcastStorageHelper ¶ added in v0.7.11
func NewBroadcastStorageHelper(t mockConstructorTestingTNewBroadcastStorageHelper) *BroadcastStorageHelper
NewBroadcastStorageHelper creates a new instance of BroadcastStorageHelper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*BroadcastStorageHelper) BroadcastTransaction ¶
func (_m *BroadcastStorageHelper) BroadcastTransaction(_a0 context.Context, _a1 *types.NetworkIdentifier, _a2 string) (*types.TransactionIdentifier, error)
BroadcastTransaction provides a mock function with given fields: _a0, _a1, _a2
func (*BroadcastStorageHelper) CurrentBlockIdentifier ¶
func (_m *BroadcastStorageHelper) CurrentBlockIdentifier(_a0 context.Context) (*types.BlockIdentifier, error)
CurrentBlockIdentifier provides a mock function with given fields: _a0
func (*BroadcastStorageHelper) FindTransaction ¶
func (_m *BroadcastStorageHelper) FindTransaction(_a0 context.Context, _a1 *types.TransactionIdentifier, _a2 database.Transaction) (*types.BlockIdentifier, *types.Transaction, error)
FindTransaction provides a mock function with given fields: _a0, _a1, _a2
type CoinStorageHelper ¶
CoinStorageHelper is an autogenerated mock type for the CoinStorageHelper type
func NewCoinStorageHelper ¶ added in v0.7.11
func NewCoinStorageHelper(t mockConstructorTestingTNewCoinStorageHelper) *CoinStorageHelper
NewCoinStorageHelper creates a new instance of CoinStorageHelper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CoinStorageHelper) CurrentBlockIdentifier ¶
func (_m *CoinStorageHelper) CurrentBlockIdentifier(_a0 context.Context, _a1 database.Transaction) (*types.BlockIdentifier, error)
CurrentBlockIdentifier provides a mock function with given fields: _a0, _a1