Documentation ¶
Index ¶
- type Service
- func (_m *Service) DBTransaction(ctx context.Context, f db.TransactionFunc) error
- func (_m *Service) GetAllTXAttemptByStatus(ctx context.Context, fromAddress common.Address, chainID *big.Int, ...) ([]db.TX, error)
- func (_m *Service) GetChainIDsByStatus(ctx context.Context, fromAddress common.Address, matchStatuses ...db.Status) ([]*big.Int, error)
- func (_m *Service) GetNonceAttemptsByStatus(ctx context.Context, fromAddress common.Address, chainID *big.Int, ...) ([]db.TX, error)
- func (_m *Service) GetNonceForChainID(ctx context.Context, fromAddress common.Address, chainID *big.Int) (uint64, error)
- func (_m *Service) GetNonceStatus(ctx context.Context, fromAddress common.Address, chainID *big.Int, ...) (db.Status, error)
- func (_m *Service) GetTXS(ctx context.Context, fromAddress common.Address, chainID *big.Int, ...) ([]db.TX, error)
- func (_m *Service) MarkAllBeforeNonceReplacedOrConfirmed(ctx context.Context, signer common.Address, chainID *big.Int, nonce uint64) error
- func (_m *Service) PutTXS(ctx context.Context, txs ...db.TX) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
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 ¶
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