mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 5 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) GetAllTXAttemptByStatus

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

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

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) 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, statuses ...db.Status) ([]db.TX, error)

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

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