mocks

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t mockConstructorTestingTNewService) *Service

NewService creates a new instance of Service. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Service) DBTransaction

func (_m *Service) DBTransaction(ctx context.Context, f db.TransactionFunc) error

DBTransaction provides a mock function with given fields: ctx, f

func (*Service) DeleteTXS added in v0.14.9

func (_m *Service) DeleteTXS(ctx context.Context, maxAge time.Duration, matchStatuses ...db.Status) error

DeleteTXS provides a mock function with given fields: ctx, maxAge, matchStatuses

func (*Service) GetAllTXAttemptByStatus

func (_m *Service) GetAllTXAttemptByStatus(ctx context.Context, fromAddress common.Address, chainID *big.Int, options ...db.Option) ([]db.TX, error)

GetAllTXAttemptByStatus provides a mock function with given fields: ctx, fromAddress, chainID, options

func (*Service) GetChainIDsByStatus added in v0.3.0

func (_m *Service) GetChainIDsByStatus(ctx context.Context, fromAddress common.Address, matchStatuses ...db.Status) ([]*big.Int, error)

GetChainIDsByStatus provides a mock function with given fields: ctx, fromAddress, matchStatuses

func (*Service) GetDistinctChainIDs added in v0.17.5

func (_m *Service) GetDistinctChainIDs(ctx context.Context) ([]*big.Int, error)

GetDistinctChainIDs provides a mock function with given fields: ctx

func (*Service) GetNonceAttemptsByStatus added in v0.0.100

func (_m *Service) GetNonceAttemptsByStatus(ctx context.Context, fromAddress common.Address, chainID *big.Int, nonce uint64, matchStatuses ...db.Status) ([]db.TX, error)

GetNonceAttemptsByStatus provides a mock function with given fields: ctx, fromAddress, chainID, nonce, matchStatuses

func (*Service) GetNonceForChainID

func (_m *Service) GetNonceForChainID(ctx context.Context, fromAddress common.Address, chainID *big.Int) (uint64, error)

GetNonceForChainID provides a mock function with given fields: ctx, fromAddress, chainID

func (*Service) GetNonceStatus added in v0.0.100

func (_m *Service) GetNonceStatus(ctx context.Context, fromAddress common.Address, chainID *big.Int, nonce uint64) (db.Status, error)

GetNonceStatus provides a mock function with given fields: ctx, fromAddress, chainID, nonce

func (*Service) GetTXS

func (_m *Service) GetTXS(ctx context.Context, fromAddress common.Address, chainID *big.Int, options ...db.Option) ([]db.TX, error)

GetTXS provides a mock function with given fields: ctx, fromAddress, chainID, options

func (*Service) MarkAllBeforeNonceReplacedOrConfirmed added in v0.6.0

func (_m *Service) MarkAllBeforeNonceReplacedOrConfirmed(ctx context.Context, signer common.Address, chainID *big.Int, nonce uint64) error

MarkAllBeforeNonceReplacedOrConfirmed provides a mock function with given fields: ctx, signer, chainID, nonce

func (*Service) PutTXS

func (_m *Service) PutTXS(ctx context.Context, txs ...db.TX) error

PutTXS provides a mock function with given fields: ctx, txs

Jump to

Keyboard shortcuts

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