modules

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceStorageHandler

type BalanceStorageHandler struct {
	mock.Mock
}

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

type BalanceStorageHelper struct {
	mock.Mock
}

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

type BlockWorker struct {
	mock.Mock
}

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

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

type BroadcastStorageHandler struct {
	mock.Mock
}

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

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

TransactionStale provides a mock function with given fields: _a0, _a1, _a2, _a3

type BroadcastStorageHelper

type BroadcastStorageHelper struct {
	mock.Mock
}

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

func (_m *BroadcastStorageHelper) AtTip(_a0 context.Context, _a1 int64) (bool, error)

AtTip provides a mock function with given fields: _a0, _a1

func (*BroadcastStorageHelper) BroadcastTransaction

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

FindTransaction provides a mock function with given fields: _a0, _a1, _a2

type CoinStorageHelper

type CoinStorageHelper struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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