Documentation
¶
Index ¶
- type EthermanI
- type EthermanI_CompressClaimCall_Call
- func (_c *EthermanI_CompressClaimCall_Call) Return(_a0 []byte, _a1 error) *EthermanI_CompressClaimCall_Call
- func (_c *EthermanI_CompressClaimCall_Call) Run(run func(mainnetExitRoot common.Hash, rollupExitRoot common.Hash, ...)) *EthermanI_CompressClaimCall_Call
- func (_c *EthermanI_CompressClaimCall_Call) RunAndReturn(run func(common.Hash, common.Hash, ...) ([]byte, error)) *EthermanI_CompressClaimCall_Call
- type EthermanI_Expecter
- type EthermanI_SendCompressedClaims_Call
- func (_c *EthermanI_SendCompressedClaims_Call) Return(_a0 *types.Transaction, _a1 error) *EthermanI_SendCompressedClaims_Call
- func (_c *EthermanI_SendCompressedClaims_Call) Run(run func(auth *bind.TransactOpts, compressedTxData []byte)) *EthermanI_SendCompressedClaims_Call
- func (_c *EthermanI_SendCompressedClaims_Call) RunAndReturn(run func(*bind.TransactOpts, []byte) (*types.Transaction, error)) *EthermanI_SendCompressedClaims_Call
- type StorageCompressedInterface
- func (_m *StorageCompressedInterface) AddMonitoredTxsGroup(ctx context.Context, mTxGroup *types.MonitoredTxGroupDBEntry, dbTx pgx.Tx) error
- func (_m *StorageCompressedInterface) BeginDBTransaction(ctx context.Context) (pgx.Tx, error)
- func (_m *StorageCompressedInterface) Commit(ctx context.Context, dbTx pgx.Tx) error
- func (_m *StorageCompressedInterface) EXPECT() *StorageCompressedInterface_Expecter
- func (_m *StorageCompressedInterface) GetClaimTxsByStatus(ctx context.Context, statuses []types.MonitoredTxStatus, rollupID uint, ...) ([]types.MonitoredTx, error)
- func (_m *StorageCompressedInterface) GetLatestMonitoredTxGroupID(ctx context.Context, dbTx pgx.Tx) (uint64, error)
- func (_m *StorageCompressedInterface) GetMonitoredTxsGroups(ctx context.Context, groupIds []uint64, dbTx pgx.Tx) (map[uint64]types.MonitoredTxGroupDBEntry, error)
- func (_m *StorageCompressedInterface) Rollback(ctx context.Context, dbTx pgx.Tx) error
- func (_m *StorageCompressedInterface) UpdateClaimTx(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx) error
- func (_m *StorageCompressedInterface) UpdateMonitoredTxsGroup(ctx context.Context, mTxGroup *types.MonitoredTxGroupDBEntry, dbTx pgx.Tx) error
- type StorageCompressedInterface_AddMonitoredTxsGroup_Call
- func (_c *StorageCompressedInterface_AddMonitoredTxsGroup_Call) Return(_a0 error) *StorageCompressedInterface_AddMonitoredTxsGroup_Call
- func (_c *StorageCompressedInterface_AddMonitoredTxsGroup_Call) Run(...) *StorageCompressedInterface_AddMonitoredTxsGroup_Call
- func (_c *StorageCompressedInterface_AddMonitoredTxsGroup_Call) RunAndReturn(run func(context.Context, *types.MonitoredTxGroupDBEntry, pgx.Tx) error) *StorageCompressedInterface_AddMonitoredTxsGroup_Call
- type StorageCompressedInterface_BeginDBTransaction_Call
- func (_c *StorageCompressedInterface_BeginDBTransaction_Call) Return(_a0 pgx.Tx, _a1 error) *StorageCompressedInterface_BeginDBTransaction_Call
- func (_c *StorageCompressedInterface_BeginDBTransaction_Call) Run(run func(ctx context.Context)) *StorageCompressedInterface_BeginDBTransaction_Call
- func (_c *StorageCompressedInterface_BeginDBTransaction_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *StorageCompressedInterface_BeginDBTransaction_Call
- type StorageCompressedInterface_Commit_Call
- func (_c *StorageCompressedInterface_Commit_Call) Return(_a0 error) *StorageCompressedInterface_Commit_Call
- func (_c *StorageCompressedInterface_Commit_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StorageCompressedInterface_Commit_Call
- func (_c *StorageCompressedInterface_Commit_Call) RunAndReturn(run func(context.Context, pgx.Tx) error) *StorageCompressedInterface_Commit_Call
- type StorageCompressedInterface_Expecter
- func (_e *StorageCompressedInterface_Expecter) AddMonitoredTxsGroup(ctx interface{}, mTxGroup interface{}, dbTx interface{}) *StorageCompressedInterface_AddMonitoredTxsGroup_Call
- func (_e *StorageCompressedInterface_Expecter) BeginDBTransaction(ctx interface{}) *StorageCompressedInterface_BeginDBTransaction_Call
- func (_e *StorageCompressedInterface_Expecter) Commit(ctx interface{}, dbTx interface{}) *StorageCompressedInterface_Commit_Call
- func (_e *StorageCompressedInterface_Expecter) GetClaimTxsByStatus(ctx interface{}, statuses interface{}, rollupID interface{}, dbTx interface{}) *StorageCompressedInterface_GetClaimTxsByStatus_Call
- func (_e *StorageCompressedInterface_Expecter) GetLatestMonitoredTxGroupID(ctx interface{}, dbTx interface{}) *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call
- func (_e *StorageCompressedInterface_Expecter) GetMonitoredTxsGroups(ctx interface{}, groupIds interface{}, dbTx interface{}) *StorageCompressedInterface_GetMonitoredTxsGroups_Call
- func (_e *StorageCompressedInterface_Expecter) Rollback(ctx interface{}, dbTx interface{}) *StorageCompressedInterface_Rollback_Call
- func (_e *StorageCompressedInterface_Expecter) UpdateClaimTx(ctx interface{}, mTx interface{}, dbTx interface{}) *StorageCompressedInterface_UpdateClaimTx_Call
- func (_e *StorageCompressedInterface_Expecter) UpdateMonitoredTxsGroup(ctx interface{}, mTxGroup interface{}, dbTx interface{}) *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call
- type StorageCompressedInterface_GetClaimTxsByStatus_Call
- func (_c *StorageCompressedInterface_GetClaimTxsByStatus_Call) Return(_a0 []types.MonitoredTx, _a1 error) *StorageCompressedInterface_GetClaimTxsByStatus_Call
- func (_c *StorageCompressedInterface_GetClaimTxsByStatus_Call) Run(...) *StorageCompressedInterface_GetClaimTxsByStatus_Call
- func (_c *StorageCompressedInterface_GetClaimTxsByStatus_Call) RunAndReturn(...) *StorageCompressedInterface_GetClaimTxsByStatus_Call
- type StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call
- func (_c *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call) Return(_a0 uint64, _a1 error) *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call
- func (_c *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call
- func (_c *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call) RunAndReturn(run func(context.Context, pgx.Tx) (uint64, error)) *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call
- type StorageCompressedInterface_GetMonitoredTxsGroups_Call
- func (_c *StorageCompressedInterface_GetMonitoredTxsGroups_Call) Return(_a0 map[uint64]types.MonitoredTxGroupDBEntry, _a1 error) *StorageCompressedInterface_GetMonitoredTxsGroups_Call
- func (_c *StorageCompressedInterface_GetMonitoredTxsGroups_Call) Run(run func(ctx context.Context, groupIds []uint64, dbTx pgx.Tx)) *StorageCompressedInterface_GetMonitoredTxsGroups_Call
- func (_c *StorageCompressedInterface_GetMonitoredTxsGroups_Call) RunAndReturn(...) *StorageCompressedInterface_GetMonitoredTxsGroups_Call
- type StorageCompressedInterface_Rollback_Call
- func (_c *StorageCompressedInterface_Rollback_Call) Return(_a0 error) *StorageCompressedInterface_Rollback_Call
- func (_c *StorageCompressedInterface_Rollback_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StorageCompressedInterface_Rollback_Call
- func (_c *StorageCompressedInterface_Rollback_Call) RunAndReturn(run func(context.Context, pgx.Tx) error) *StorageCompressedInterface_Rollback_Call
- type StorageCompressedInterface_UpdateClaimTx_Call
- func (_c *StorageCompressedInterface_UpdateClaimTx_Call) Return(_a0 error) *StorageCompressedInterface_UpdateClaimTx_Call
- func (_c *StorageCompressedInterface_UpdateClaimTx_Call) Run(run func(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx)) *StorageCompressedInterface_UpdateClaimTx_Call
- func (_c *StorageCompressedInterface_UpdateClaimTx_Call) RunAndReturn(run func(context.Context, types.MonitoredTx, pgx.Tx) error) *StorageCompressedInterface_UpdateClaimTx_Call
- type StorageCompressedInterface_UpdateMonitoredTxsGroup_Call
- func (_c *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call) Return(_a0 error) *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call
- func (_c *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call) Run(...) *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call
- func (_c *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call) RunAndReturn(run func(context.Context, *types.MonitoredTxGroupDBEntry, pgx.Tx) error) *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call
- type StorageInterface
- func (_m *StorageInterface) AddBlock(ctx context.Context, block *etherman.Block, dbTx pgx.Tx) (uint64, error)
- func (_m *StorageInterface) AddClaimTx(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx) error
- func (_m *StorageInterface) BeginDBTransaction(ctx context.Context) (pgx.Tx, error)
- func (_m *StorageInterface) Commit(ctx context.Context, dbTx pgx.Tx) error
- func (_m *StorageInterface) EXPECT() *StorageInterface_Expecter
- func (_m *StorageInterface) GetClaimTxsByStatus(ctx context.Context, statuses []types.MonitoredTxStatus, rollupID uint, ...) ([]types.MonitoredTx, error)
- func (_m *StorageInterface) Rollback(ctx context.Context, dbTx pgx.Tx) error
- func (_m *StorageInterface) UpdateClaimTx(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx) error
- func (_m *StorageInterface) UpdateL1DepositsStatus(ctx context.Context, exitRoot []byte, destinationNetwork uint, dbTx pgx.Tx) ([]*etherman.Deposit, error)
- func (_m *StorageInterface) UpdateL2DepositsStatus(ctx context.Context, exitRoot []byte, rollupID uint, networkID uint, ...) error
- type StorageInterface_AddBlock_Call
- func (_c *StorageInterface_AddBlock_Call) Return(_a0 uint64, _a1 error) *StorageInterface_AddBlock_Call
- func (_c *StorageInterface_AddBlock_Call) Run(run func(ctx context.Context, block *etherman.Block, dbTx pgx.Tx)) *StorageInterface_AddBlock_Call
- func (_c *StorageInterface_AddBlock_Call) RunAndReturn(run func(context.Context, *etherman.Block, pgx.Tx) (uint64, error)) *StorageInterface_AddBlock_Call
- type StorageInterface_AddClaimTx_Call
- func (_c *StorageInterface_AddClaimTx_Call) Return(_a0 error) *StorageInterface_AddClaimTx_Call
- func (_c *StorageInterface_AddClaimTx_Call) Run(run func(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx)) *StorageInterface_AddClaimTx_Call
- func (_c *StorageInterface_AddClaimTx_Call) RunAndReturn(run func(context.Context, types.MonitoredTx, pgx.Tx) error) *StorageInterface_AddClaimTx_Call
- type StorageInterface_BeginDBTransaction_Call
- func (_c *StorageInterface_BeginDBTransaction_Call) Return(_a0 pgx.Tx, _a1 error) *StorageInterface_BeginDBTransaction_Call
- func (_c *StorageInterface_BeginDBTransaction_Call) Run(run func(ctx context.Context)) *StorageInterface_BeginDBTransaction_Call
- func (_c *StorageInterface_BeginDBTransaction_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *StorageInterface_BeginDBTransaction_Call
- type StorageInterface_Commit_Call
- func (_c *StorageInterface_Commit_Call) Return(_a0 error) *StorageInterface_Commit_Call
- func (_c *StorageInterface_Commit_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StorageInterface_Commit_Call
- func (_c *StorageInterface_Commit_Call) RunAndReturn(run func(context.Context, pgx.Tx) error) *StorageInterface_Commit_Call
- type StorageInterface_Expecter
- func (_e *StorageInterface_Expecter) AddBlock(ctx interface{}, block interface{}, dbTx interface{}) *StorageInterface_AddBlock_Call
- func (_e *StorageInterface_Expecter) AddClaimTx(ctx interface{}, mTx interface{}, dbTx interface{}) *StorageInterface_AddClaimTx_Call
- func (_e *StorageInterface_Expecter) BeginDBTransaction(ctx interface{}) *StorageInterface_BeginDBTransaction_Call
- func (_e *StorageInterface_Expecter) Commit(ctx interface{}, dbTx interface{}) *StorageInterface_Commit_Call
- func (_e *StorageInterface_Expecter) GetClaimTxsByStatus(ctx interface{}, statuses interface{}, rollupID interface{}, dbTx interface{}) *StorageInterface_GetClaimTxsByStatus_Call
- func (_e *StorageInterface_Expecter) Rollback(ctx interface{}, dbTx interface{}) *StorageInterface_Rollback_Call
- func (_e *StorageInterface_Expecter) UpdateClaimTx(ctx interface{}, mTx interface{}, dbTx interface{}) *StorageInterface_UpdateClaimTx_Call
- func (_e *StorageInterface_Expecter) UpdateL1DepositsStatus(ctx interface{}, exitRoot interface{}, destinationNetwork interface{}, ...) *StorageInterface_UpdateL1DepositsStatus_Call
- func (_e *StorageInterface_Expecter) UpdateL2DepositsStatus(ctx interface{}, exitRoot interface{}, rollupID interface{}, ...) *StorageInterface_UpdateL2DepositsStatus_Call
- type StorageInterface_GetClaimTxsByStatus_Call
- func (_c *StorageInterface_GetClaimTxsByStatus_Call) Return(_a0 []types.MonitoredTx, _a1 error) *StorageInterface_GetClaimTxsByStatus_Call
- func (_c *StorageInterface_GetClaimTxsByStatus_Call) Run(...) *StorageInterface_GetClaimTxsByStatus_Call
- func (_c *StorageInterface_GetClaimTxsByStatus_Call) RunAndReturn(...) *StorageInterface_GetClaimTxsByStatus_Call
- type StorageInterface_Rollback_Call
- func (_c *StorageInterface_Rollback_Call) Return(_a0 error) *StorageInterface_Rollback_Call
- func (_c *StorageInterface_Rollback_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StorageInterface_Rollback_Call
- func (_c *StorageInterface_Rollback_Call) RunAndReturn(run func(context.Context, pgx.Tx) error) *StorageInterface_Rollback_Call
- type StorageInterface_UpdateClaimTx_Call
- func (_c *StorageInterface_UpdateClaimTx_Call) Return(_a0 error) *StorageInterface_UpdateClaimTx_Call
- func (_c *StorageInterface_UpdateClaimTx_Call) Run(run func(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx)) *StorageInterface_UpdateClaimTx_Call
- func (_c *StorageInterface_UpdateClaimTx_Call) RunAndReturn(run func(context.Context, types.MonitoredTx, pgx.Tx) error) *StorageInterface_UpdateClaimTx_Call
- type StorageInterface_UpdateL1DepositsStatus_Call
- func (_c *StorageInterface_UpdateL1DepositsStatus_Call) Return(_a0 []*etherman.Deposit, _a1 error) *StorageInterface_UpdateL1DepositsStatus_Call
- func (_c *StorageInterface_UpdateL1DepositsStatus_Call) Run(...) *StorageInterface_UpdateL1DepositsStatus_Call
- func (_c *StorageInterface_UpdateL1DepositsStatus_Call) RunAndReturn(run func(context.Context, []byte, uint, pgx.Tx) ([]*etherman.Deposit, error)) *StorageInterface_UpdateL1DepositsStatus_Call
- type StorageInterface_UpdateL2DepositsStatus_Call
- func (_c *StorageInterface_UpdateL2DepositsStatus_Call) Return(_a0 error) *StorageInterface_UpdateL2DepositsStatus_Call
- func (_c *StorageInterface_UpdateL2DepositsStatus_Call) Run(...) *StorageInterface_UpdateL2DepositsStatus_Call
- func (_c *StorageInterface_UpdateL2DepositsStatus_Call) RunAndReturn(run func(context.Context, []byte, uint, uint, pgx.Tx) error) *StorageInterface_UpdateL2DepositsStatus_Call
- type TxMonitorer
- type TxMonitorer_Expecter
- type TxMonitorer_MonitorTxs_Call
- func (_c *TxMonitorer_MonitorTxs_Call) Return(_a0 error) *TxMonitorer_MonitorTxs_Call
- func (_c *TxMonitorer_MonitorTxs_Call) Run(run func(ctx context.Context)) *TxMonitorer_MonitorTxs_Call
- func (_c *TxMonitorer_MonitorTxs_Call) RunAndReturn(run func(context.Context) error) *TxMonitorer_MonitorTxs_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthermanI ¶
EthermanI is an autogenerated mock type for the EthermanI type
func NewEthermanI ¶
NewEthermanI creates a new instance of EthermanI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*EthermanI) CompressClaimCall ¶
func (_m *EthermanI) CompressClaimCall(mainnetExitRoot common.Hash, rollupExitRoot common.Hash, claimData []claimcompressor.ClaimCompressorCompressClaimCallData) ([]byte, error)
CompressClaimCall provides a mock function with given fields: mainnetExitRoot, rollupExitRoot, claimData
func (*EthermanI) EXPECT ¶
func (_m *EthermanI) EXPECT() *EthermanI_Expecter
func (*EthermanI) SendCompressedClaims ¶
func (_m *EthermanI) SendCompressedClaims(auth *bind.TransactOpts, compressedTxData []byte) (*types.Transaction, error)
SendCompressedClaims provides a mock function with given fields: auth, compressedTxData
type EthermanI_CompressClaimCall_Call ¶
EthermanI_CompressClaimCall_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompressClaimCall'
func (*EthermanI_CompressClaimCall_Call) Return ¶
func (_c *EthermanI_CompressClaimCall_Call) Return(_a0 []byte, _a1 error) *EthermanI_CompressClaimCall_Call
func (*EthermanI_CompressClaimCall_Call) Run ¶
func (_c *EthermanI_CompressClaimCall_Call) Run(run func(mainnetExitRoot common.Hash, rollupExitRoot common.Hash, claimData []claimcompressor.ClaimCompressorCompressClaimCallData)) *EthermanI_CompressClaimCall_Call
func (*EthermanI_CompressClaimCall_Call) RunAndReturn ¶
func (_c *EthermanI_CompressClaimCall_Call) RunAndReturn(run func(common.Hash, common.Hash, []claimcompressor.ClaimCompressorCompressClaimCallData) ([]byte, error)) *EthermanI_CompressClaimCall_Call
type EthermanI_Expecter ¶
type EthermanI_Expecter struct {
// contains filtered or unexported fields
}
func (*EthermanI_Expecter) CompressClaimCall ¶
func (_e *EthermanI_Expecter) CompressClaimCall(mainnetExitRoot interface{}, rollupExitRoot interface{}, claimData interface{}) *EthermanI_CompressClaimCall_Call
CompressClaimCall is a helper method to define mock.On call
- mainnetExitRoot common.Hash
- rollupExitRoot common.Hash
- claimData []claimcompressor.ClaimCompressorCompressClaimCallData
func (*EthermanI_Expecter) SendCompressedClaims ¶
func (_e *EthermanI_Expecter) SendCompressedClaims(auth interface{}, compressedTxData interface{}) *EthermanI_SendCompressedClaims_Call
SendCompressedClaims is a helper method to define mock.On call
- auth *bind.TransactOpts
- compressedTxData []byte
type EthermanI_SendCompressedClaims_Call ¶
EthermanI_SendCompressedClaims_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendCompressedClaims'
func (*EthermanI_SendCompressedClaims_Call) Return ¶
func (_c *EthermanI_SendCompressedClaims_Call) Return(_a0 *types.Transaction, _a1 error) *EthermanI_SendCompressedClaims_Call
func (*EthermanI_SendCompressedClaims_Call) Run ¶
func (_c *EthermanI_SendCompressedClaims_Call) Run(run func(auth *bind.TransactOpts, compressedTxData []byte)) *EthermanI_SendCompressedClaims_Call
func (*EthermanI_SendCompressedClaims_Call) RunAndReturn ¶
func (_c *EthermanI_SendCompressedClaims_Call) RunAndReturn(run func(*bind.TransactOpts, []byte) (*types.Transaction, error)) *EthermanI_SendCompressedClaims_Call
type StorageCompressedInterface ¶
StorageCompressedInterface is an autogenerated mock type for the StorageCompressedInterface type
func NewStorageCompressedInterface ¶
func NewStorageCompressedInterface(t interface { mock.TestingT Cleanup(func()) }) *StorageCompressedInterface
NewStorageCompressedInterface creates a new instance of StorageCompressedInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StorageCompressedInterface) AddMonitoredTxsGroup ¶
func (_m *StorageCompressedInterface) AddMonitoredTxsGroup(ctx context.Context, mTxGroup *types.MonitoredTxGroupDBEntry, dbTx pgx.Tx) error
AddMonitoredTxsGroup provides a mock function with given fields: ctx, mTxGroup, dbTx
func (*StorageCompressedInterface) BeginDBTransaction ¶
BeginDBTransaction provides a mock function with given fields: ctx
func (*StorageCompressedInterface) Commit ¶
Commit provides a mock function with given fields: ctx, dbTx
func (*StorageCompressedInterface) EXPECT ¶
func (_m *StorageCompressedInterface) EXPECT() *StorageCompressedInterface_Expecter
func (*StorageCompressedInterface) GetClaimTxsByStatus ¶
func (_m *StorageCompressedInterface) GetClaimTxsByStatus(ctx context.Context, statuses []types.MonitoredTxStatus, rollupID uint, dbTx pgx.Tx) ([]types.MonitoredTx, error)
GetClaimTxsByStatus provides a mock function with given fields: ctx, statuses, rollupID, dbTx
func (*StorageCompressedInterface) GetLatestMonitoredTxGroupID ¶
func (_m *StorageCompressedInterface) GetLatestMonitoredTxGroupID(ctx context.Context, dbTx pgx.Tx) (uint64, error)
GetLatestMonitoredTxGroupID provides a mock function with given fields: ctx, dbTx
func (*StorageCompressedInterface) GetMonitoredTxsGroups ¶
func (_m *StorageCompressedInterface) GetMonitoredTxsGroups(ctx context.Context, groupIds []uint64, dbTx pgx.Tx) (map[uint64]types.MonitoredTxGroupDBEntry, error)
GetMonitoredTxsGroups provides a mock function with given fields: ctx, groupIds, dbTx
func (*StorageCompressedInterface) Rollback ¶
Rollback provides a mock function with given fields: ctx, dbTx
func (*StorageCompressedInterface) UpdateClaimTx ¶
func (_m *StorageCompressedInterface) UpdateClaimTx(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx) error
UpdateClaimTx provides a mock function with given fields: ctx, mTx, dbTx
func (*StorageCompressedInterface) UpdateMonitoredTxsGroup ¶
func (_m *StorageCompressedInterface) UpdateMonitoredTxsGroup(ctx context.Context, mTxGroup *types.MonitoredTxGroupDBEntry, dbTx pgx.Tx) error
UpdateMonitoredTxsGroup provides a mock function with given fields: ctx, mTxGroup, dbTx
type StorageCompressedInterface_AddMonitoredTxsGroup_Call ¶
StorageCompressedInterface_AddMonitoredTxsGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMonitoredTxsGroup'
func (*StorageCompressedInterface_AddMonitoredTxsGroup_Call) Run ¶
func (_c *StorageCompressedInterface_AddMonitoredTxsGroup_Call) Run(run func(ctx context.Context, mTxGroup *types.MonitoredTxGroupDBEntry, dbTx pgx.Tx)) *StorageCompressedInterface_AddMonitoredTxsGroup_Call
func (*StorageCompressedInterface_AddMonitoredTxsGroup_Call) RunAndReturn ¶
func (_c *StorageCompressedInterface_AddMonitoredTxsGroup_Call) RunAndReturn(run func(context.Context, *types.MonitoredTxGroupDBEntry, pgx.Tx) error) *StorageCompressedInterface_AddMonitoredTxsGroup_Call
type StorageCompressedInterface_BeginDBTransaction_Call ¶
StorageCompressedInterface_BeginDBTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginDBTransaction'
func (*StorageCompressedInterface_BeginDBTransaction_Call) Return ¶
func (_c *StorageCompressedInterface_BeginDBTransaction_Call) Return(_a0 pgx.Tx, _a1 error) *StorageCompressedInterface_BeginDBTransaction_Call
func (*StorageCompressedInterface_BeginDBTransaction_Call) Run ¶
func (_c *StorageCompressedInterface_BeginDBTransaction_Call) Run(run func(ctx context.Context)) *StorageCompressedInterface_BeginDBTransaction_Call
func (*StorageCompressedInterface_BeginDBTransaction_Call) RunAndReturn ¶
func (_c *StorageCompressedInterface_BeginDBTransaction_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *StorageCompressedInterface_BeginDBTransaction_Call
type StorageCompressedInterface_Commit_Call ¶
StorageCompressedInterface_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*StorageCompressedInterface_Commit_Call) Return ¶
func (_c *StorageCompressedInterface_Commit_Call) Return(_a0 error) *StorageCompressedInterface_Commit_Call
func (*StorageCompressedInterface_Commit_Call) Run ¶
func (_c *StorageCompressedInterface_Commit_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StorageCompressedInterface_Commit_Call
func (*StorageCompressedInterface_Commit_Call) RunAndReturn ¶
func (_c *StorageCompressedInterface_Commit_Call) RunAndReturn(run func(context.Context, pgx.Tx) error) *StorageCompressedInterface_Commit_Call
type StorageCompressedInterface_Expecter ¶
type StorageCompressedInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*StorageCompressedInterface_Expecter) AddMonitoredTxsGroup ¶
func (_e *StorageCompressedInterface_Expecter) AddMonitoredTxsGroup(ctx interface{}, mTxGroup interface{}, dbTx interface{}) *StorageCompressedInterface_AddMonitoredTxsGroup_Call
AddMonitoredTxsGroup is a helper method to define mock.On call
- ctx context.Context
- mTxGroup *types.MonitoredTxGroupDBEntry
- dbTx pgx.Tx
func (*StorageCompressedInterface_Expecter) BeginDBTransaction ¶
func (_e *StorageCompressedInterface_Expecter) BeginDBTransaction(ctx interface{}) *StorageCompressedInterface_BeginDBTransaction_Call
BeginDBTransaction is a helper method to define mock.On call
- ctx context.Context
func (*StorageCompressedInterface_Expecter) Commit ¶
func (_e *StorageCompressedInterface_Expecter) Commit(ctx interface{}, dbTx interface{}) *StorageCompressedInterface_Commit_Call
Commit is a helper method to define mock.On call
- ctx context.Context
- dbTx pgx.Tx
func (*StorageCompressedInterface_Expecter) GetClaimTxsByStatus ¶
func (_e *StorageCompressedInterface_Expecter) GetClaimTxsByStatus(ctx interface{}, statuses interface{}, rollupID interface{}, dbTx interface{}) *StorageCompressedInterface_GetClaimTxsByStatus_Call
GetClaimTxsByStatus is a helper method to define mock.On call
- ctx context.Context
- statuses []types.MonitoredTxStatus
- rollupID uint
- dbTx pgx.Tx
func (*StorageCompressedInterface_Expecter) GetLatestMonitoredTxGroupID ¶
func (_e *StorageCompressedInterface_Expecter) GetLatestMonitoredTxGroupID(ctx interface{}, dbTx interface{}) *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call
GetLatestMonitoredTxGroupID is a helper method to define mock.On call
- ctx context.Context
- dbTx pgx.Tx
func (*StorageCompressedInterface_Expecter) GetMonitoredTxsGroups ¶
func (_e *StorageCompressedInterface_Expecter) GetMonitoredTxsGroups(ctx interface{}, groupIds interface{}, dbTx interface{}) *StorageCompressedInterface_GetMonitoredTxsGroups_Call
GetMonitoredTxsGroups is a helper method to define mock.On call
- ctx context.Context
- groupIds []uint64
- dbTx pgx.Tx
func (*StorageCompressedInterface_Expecter) Rollback ¶
func (_e *StorageCompressedInterface_Expecter) Rollback(ctx interface{}, dbTx interface{}) *StorageCompressedInterface_Rollback_Call
Rollback is a helper method to define mock.On call
- ctx context.Context
- dbTx pgx.Tx
func (*StorageCompressedInterface_Expecter) UpdateClaimTx ¶
func (_e *StorageCompressedInterface_Expecter) UpdateClaimTx(ctx interface{}, mTx interface{}, dbTx interface{}) *StorageCompressedInterface_UpdateClaimTx_Call
UpdateClaimTx is a helper method to define mock.On call
- ctx context.Context
- mTx types.MonitoredTx
- dbTx pgx.Tx
func (*StorageCompressedInterface_Expecter) UpdateMonitoredTxsGroup ¶
func (_e *StorageCompressedInterface_Expecter) UpdateMonitoredTxsGroup(ctx interface{}, mTxGroup interface{}, dbTx interface{}) *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call
UpdateMonitoredTxsGroup is a helper method to define mock.On call
- ctx context.Context
- mTxGroup *types.MonitoredTxGroupDBEntry
- dbTx pgx.Tx
type StorageCompressedInterface_GetClaimTxsByStatus_Call ¶
StorageCompressedInterface_GetClaimTxsByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClaimTxsByStatus'
func (*StorageCompressedInterface_GetClaimTxsByStatus_Call) Return ¶
func (_c *StorageCompressedInterface_GetClaimTxsByStatus_Call) Return(_a0 []types.MonitoredTx, _a1 error) *StorageCompressedInterface_GetClaimTxsByStatus_Call
func (*StorageCompressedInterface_GetClaimTxsByStatus_Call) Run ¶
func (_c *StorageCompressedInterface_GetClaimTxsByStatus_Call) Run(run func(ctx context.Context, statuses []types.MonitoredTxStatus, rollupID uint, dbTx pgx.Tx)) *StorageCompressedInterface_GetClaimTxsByStatus_Call
func (*StorageCompressedInterface_GetClaimTxsByStatus_Call) RunAndReturn ¶
func (_c *StorageCompressedInterface_GetClaimTxsByStatus_Call) RunAndReturn(run func(context.Context, []types.MonitoredTxStatus, uint, pgx.Tx) ([]types.MonitoredTx, error)) *StorageCompressedInterface_GetClaimTxsByStatus_Call
type StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call ¶
StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestMonitoredTxGroupID'
func (*StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call) Run ¶
func (_c *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call
func (*StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call) RunAndReturn ¶
func (_c *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call) RunAndReturn(run func(context.Context, pgx.Tx) (uint64, error)) *StorageCompressedInterface_GetLatestMonitoredTxGroupID_Call
type StorageCompressedInterface_GetMonitoredTxsGroups_Call ¶
StorageCompressedInterface_GetMonitoredTxsGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMonitoredTxsGroups'
func (*StorageCompressedInterface_GetMonitoredTxsGroups_Call) Return ¶
func (_c *StorageCompressedInterface_GetMonitoredTxsGroups_Call) Return(_a0 map[uint64]types.MonitoredTxGroupDBEntry, _a1 error) *StorageCompressedInterface_GetMonitoredTxsGroups_Call
func (*StorageCompressedInterface_GetMonitoredTxsGroups_Call) Run ¶
func (_c *StorageCompressedInterface_GetMonitoredTxsGroups_Call) Run(run func(ctx context.Context, groupIds []uint64, dbTx pgx.Tx)) *StorageCompressedInterface_GetMonitoredTxsGroups_Call
func (*StorageCompressedInterface_GetMonitoredTxsGroups_Call) RunAndReturn ¶
func (_c *StorageCompressedInterface_GetMonitoredTxsGroups_Call) RunAndReturn(run func(context.Context, []uint64, pgx.Tx) (map[uint64]types.MonitoredTxGroupDBEntry, error)) *StorageCompressedInterface_GetMonitoredTxsGroups_Call
type StorageCompressedInterface_Rollback_Call ¶
StorageCompressedInterface_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*StorageCompressedInterface_Rollback_Call) Return ¶
func (_c *StorageCompressedInterface_Rollback_Call) Return(_a0 error) *StorageCompressedInterface_Rollback_Call
func (*StorageCompressedInterface_Rollback_Call) Run ¶
func (_c *StorageCompressedInterface_Rollback_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StorageCompressedInterface_Rollback_Call
func (*StorageCompressedInterface_Rollback_Call) RunAndReturn ¶
func (_c *StorageCompressedInterface_Rollback_Call) RunAndReturn(run func(context.Context, pgx.Tx) error) *StorageCompressedInterface_Rollback_Call
type StorageCompressedInterface_UpdateClaimTx_Call ¶
StorageCompressedInterface_UpdateClaimTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClaimTx'
func (*StorageCompressedInterface_UpdateClaimTx_Call) Return ¶
func (_c *StorageCompressedInterface_UpdateClaimTx_Call) Return(_a0 error) *StorageCompressedInterface_UpdateClaimTx_Call
func (*StorageCompressedInterface_UpdateClaimTx_Call) Run ¶
func (_c *StorageCompressedInterface_UpdateClaimTx_Call) Run(run func(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx)) *StorageCompressedInterface_UpdateClaimTx_Call
func (*StorageCompressedInterface_UpdateClaimTx_Call) RunAndReturn ¶
func (_c *StorageCompressedInterface_UpdateClaimTx_Call) RunAndReturn(run func(context.Context, types.MonitoredTx, pgx.Tx) error) *StorageCompressedInterface_UpdateClaimTx_Call
type StorageCompressedInterface_UpdateMonitoredTxsGroup_Call ¶
StorageCompressedInterface_UpdateMonitoredTxsGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateMonitoredTxsGroup'
func (*StorageCompressedInterface_UpdateMonitoredTxsGroup_Call) Run ¶
func (_c *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call) Run(run func(ctx context.Context, mTxGroup *types.MonitoredTxGroupDBEntry, dbTx pgx.Tx)) *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call
func (*StorageCompressedInterface_UpdateMonitoredTxsGroup_Call) RunAndReturn ¶
func (_c *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call) RunAndReturn(run func(context.Context, *types.MonitoredTxGroupDBEntry, pgx.Tx) error) *StorageCompressedInterface_UpdateMonitoredTxsGroup_Call
type StorageInterface ¶
StorageInterface is an autogenerated mock type for the StorageInterface type
func NewStorageInterface ¶
func NewStorageInterface(t interface { mock.TestingT Cleanup(func()) }) *StorageInterface
NewStorageInterface creates a new instance of StorageInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StorageInterface) AddBlock ¶
func (_m *StorageInterface) AddBlock(ctx context.Context, block *etherman.Block, dbTx pgx.Tx) (uint64, error)
AddBlock provides a mock function with given fields: ctx, block, dbTx
func (*StorageInterface) AddClaimTx ¶
func (_m *StorageInterface) AddClaimTx(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx) error
AddClaimTx provides a mock function with given fields: ctx, mTx, dbTx
func (*StorageInterface) BeginDBTransaction ¶
BeginDBTransaction provides a mock function with given fields: ctx
func (*StorageInterface) EXPECT ¶
func (_m *StorageInterface) EXPECT() *StorageInterface_Expecter
func (*StorageInterface) GetClaimTxsByStatus ¶
func (_m *StorageInterface) GetClaimTxsByStatus(ctx context.Context, statuses []types.MonitoredTxStatus, rollupID uint, dbTx pgx.Tx) ([]types.MonitoredTx, error)
GetClaimTxsByStatus provides a mock function with given fields: ctx, statuses, rollupID, dbTx
func (*StorageInterface) UpdateClaimTx ¶
func (_m *StorageInterface) UpdateClaimTx(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx) error
UpdateClaimTx provides a mock function with given fields: ctx, mTx, dbTx
func (*StorageInterface) UpdateL1DepositsStatus ¶
func (_m *StorageInterface) UpdateL1DepositsStatus(ctx context.Context, exitRoot []byte, destinationNetwork uint, dbTx pgx.Tx) ([]*etherman.Deposit, error)
UpdateL1DepositsStatus provides a mock function with given fields: ctx, exitRoot, destinationNetwork, dbTx
type StorageInterface_AddBlock_Call ¶
StorageInterface_AddBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddBlock'
func (*StorageInterface_AddBlock_Call) Return ¶
func (_c *StorageInterface_AddBlock_Call) Return(_a0 uint64, _a1 error) *StorageInterface_AddBlock_Call
func (*StorageInterface_AddBlock_Call) Run ¶
func (_c *StorageInterface_AddBlock_Call) Run(run func(ctx context.Context, block *etherman.Block, dbTx pgx.Tx)) *StorageInterface_AddBlock_Call
func (*StorageInterface_AddBlock_Call) RunAndReturn ¶
func (_c *StorageInterface_AddBlock_Call) RunAndReturn(run func(context.Context, *etherman.Block, pgx.Tx) (uint64, error)) *StorageInterface_AddBlock_Call
type StorageInterface_AddClaimTx_Call ¶
StorageInterface_AddClaimTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddClaimTx'
func (*StorageInterface_AddClaimTx_Call) Return ¶
func (_c *StorageInterface_AddClaimTx_Call) Return(_a0 error) *StorageInterface_AddClaimTx_Call
func (*StorageInterface_AddClaimTx_Call) Run ¶
func (_c *StorageInterface_AddClaimTx_Call) Run(run func(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx)) *StorageInterface_AddClaimTx_Call
func (*StorageInterface_AddClaimTx_Call) RunAndReturn ¶
func (_c *StorageInterface_AddClaimTx_Call) RunAndReturn(run func(context.Context, types.MonitoredTx, pgx.Tx) error) *StorageInterface_AddClaimTx_Call
type StorageInterface_BeginDBTransaction_Call ¶
StorageInterface_BeginDBTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BeginDBTransaction'
func (*StorageInterface_BeginDBTransaction_Call) Return ¶
func (_c *StorageInterface_BeginDBTransaction_Call) Return(_a0 pgx.Tx, _a1 error) *StorageInterface_BeginDBTransaction_Call
func (*StorageInterface_BeginDBTransaction_Call) Run ¶
func (_c *StorageInterface_BeginDBTransaction_Call) Run(run func(ctx context.Context)) *StorageInterface_BeginDBTransaction_Call
func (*StorageInterface_BeginDBTransaction_Call) RunAndReturn ¶
func (_c *StorageInterface_BeginDBTransaction_Call) RunAndReturn(run func(context.Context) (pgx.Tx, error)) *StorageInterface_BeginDBTransaction_Call
type StorageInterface_Commit_Call ¶
StorageInterface_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'
func (*StorageInterface_Commit_Call) Return ¶
func (_c *StorageInterface_Commit_Call) Return(_a0 error) *StorageInterface_Commit_Call
func (*StorageInterface_Commit_Call) Run ¶
func (_c *StorageInterface_Commit_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StorageInterface_Commit_Call
func (*StorageInterface_Commit_Call) RunAndReturn ¶
func (_c *StorageInterface_Commit_Call) RunAndReturn(run func(context.Context, pgx.Tx) error) *StorageInterface_Commit_Call
type StorageInterface_Expecter ¶
type StorageInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*StorageInterface_Expecter) AddBlock ¶
func (_e *StorageInterface_Expecter) AddBlock(ctx interface{}, block interface{}, dbTx interface{}) *StorageInterface_AddBlock_Call
AddBlock is a helper method to define mock.On call
- ctx context.Context
- block *etherman.Block
- dbTx pgx.Tx
func (*StorageInterface_Expecter) AddClaimTx ¶
func (_e *StorageInterface_Expecter) AddClaimTx(ctx interface{}, mTx interface{}, dbTx interface{}) *StorageInterface_AddClaimTx_Call
AddClaimTx is a helper method to define mock.On call
- ctx context.Context
- mTx types.MonitoredTx
- dbTx pgx.Tx
func (*StorageInterface_Expecter) BeginDBTransaction ¶
func (_e *StorageInterface_Expecter) BeginDBTransaction(ctx interface{}) *StorageInterface_BeginDBTransaction_Call
BeginDBTransaction is a helper method to define mock.On call
- ctx context.Context
func (*StorageInterface_Expecter) Commit ¶
func (_e *StorageInterface_Expecter) Commit(ctx interface{}, dbTx interface{}) *StorageInterface_Commit_Call
Commit is a helper method to define mock.On call
- ctx context.Context
- dbTx pgx.Tx
func (*StorageInterface_Expecter) GetClaimTxsByStatus ¶
func (_e *StorageInterface_Expecter) GetClaimTxsByStatus(ctx interface{}, statuses interface{}, rollupID interface{}, dbTx interface{}) *StorageInterface_GetClaimTxsByStatus_Call
GetClaimTxsByStatus is a helper method to define mock.On call
- ctx context.Context
- statuses []types.MonitoredTxStatus
- rollupID uint
- dbTx pgx.Tx
func (*StorageInterface_Expecter) Rollback ¶
func (_e *StorageInterface_Expecter) Rollback(ctx interface{}, dbTx interface{}) *StorageInterface_Rollback_Call
Rollback is a helper method to define mock.On call
- ctx context.Context
- dbTx pgx.Tx
func (*StorageInterface_Expecter) UpdateClaimTx ¶
func (_e *StorageInterface_Expecter) UpdateClaimTx(ctx interface{}, mTx interface{}, dbTx interface{}) *StorageInterface_UpdateClaimTx_Call
UpdateClaimTx is a helper method to define mock.On call
- ctx context.Context
- mTx types.MonitoredTx
- dbTx pgx.Tx
func (*StorageInterface_Expecter) UpdateL1DepositsStatus ¶
func (_e *StorageInterface_Expecter) UpdateL1DepositsStatus(ctx interface{}, exitRoot interface{}, destinationNetwork interface{}, dbTx interface{}) *StorageInterface_UpdateL1DepositsStatus_Call
UpdateL1DepositsStatus is a helper method to define mock.On call
- ctx context.Context
- exitRoot []byte
- destinationNetwork uint
- dbTx pgx.Tx
func (*StorageInterface_Expecter) UpdateL2DepositsStatus ¶
func (_e *StorageInterface_Expecter) UpdateL2DepositsStatus(ctx interface{}, exitRoot interface{}, rollupID interface{}, networkID interface{}, dbTx interface{}) *StorageInterface_UpdateL2DepositsStatus_Call
UpdateL2DepositsStatus is a helper method to define mock.On call
- ctx context.Context
- exitRoot []byte
- rollupID uint
- networkID uint
- dbTx pgx.Tx
type StorageInterface_GetClaimTxsByStatus_Call ¶
StorageInterface_GetClaimTxsByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClaimTxsByStatus'
func (*StorageInterface_GetClaimTxsByStatus_Call) Return ¶
func (_c *StorageInterface_GetClaimTxsByStatus_Call) Return(_a0 []types.MonitoredTx, _a1 error) *StorageInterface_GetClaimTxsByStatus_Call
func (*StorageInterface_GetClaimTxsByStatus_Call) Run ¶
func (_c *StorageInterface_GetClaimTxsByStatus_Call) Run(run func(ctx context.Context, statuses []types.MonitoredTxStatus, rollupID uint, dbTx pgx.Tx)) *StorageInterface_GetClaimTxsByStatus_Call
func (*StorageInterface_GetClaimTxsByStatus_Call) RunAndReturn ¶
func (_c *StorageInterface_GetClaimTxsByStatus_Call) RunAndReturn(run func(context.Context, []types.MonitoredTxStatus, uint, pgx.Tx) ([]types.MonitoredTx, error)) *StorageInterface_GetClaimTxsByStatus_Call
type StorageInterface_Rollback_Call ¶
StorageInterface_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'
func (*StorageInterface_Rollback_Call) Return ¶
func (_c *StorageInterface_Rollback_Call) Return(_a0 error) *StorageInterface_Rollback_Call
func (*StorageInterface_Rollback_Call) Run ¶
func (_c *StorageInterface_Rollback_Call) Run(run func(ctx context.Context, dbTx pgx.Tx)) *StorageInterface_Rollback_Call
func (*StorageInterface_Rollback_Call) RunAndReturn ¶
func (_c *StorageInterface_Rollback_Call) RunAndReturn(run func(context.Context, pgx.Tx) error) *StorageInterface_Rollback_Call
type StorageInterface_UpdateClaimTx_Call ¶
StorageInterface_UpdateClaimTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateClaimTx'
func (*StorageInterface_UpdateClaimTx_Call) Return ¶
func (_c *StorageInterface_UpdateClaimTx_Call) Return(_a0 error) *StorageInterface_UpdateClaimTx_Call
func (*StorageInterface_UpdateClaimTx_Call) Run ¶
func (_c *StorageInterface_UpdateClaimTx_Call) Run(run func(ctx context.Context, mTx types.MonitoredTx, dbTx pgx.Tx)) *StorageInterface_UpdateClaimTx_Call
func (*StorageInterface_UpdateClaimTx_Call) RunAndReturn ¶
func (_c *StorageInterface_UpdateClaimTx_Call) RunAndReturn(run func(context.Context, types.MonitoredTx, pgx.Tx) error) *StorageInterface_UpdateClaimTx_Call
type StorageInterface_UpdateL1DepositsStatus_Call ¶
StorageInterface_UpdateL1DepositsStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateL1DepositsStatus'
func (*StorageInterface_UpdateL1DepositsStatus_Call) Return ¶
func (_c *StorageInterface_UpdateL1DepositsStatus_Call) Return(_a0 []*etherman.Deposit, _a1 error) *StorageInterface_UpdateL1DepositsStatus_Call
func (*StorageInterface_UpdateL1DepositsStatus_Call) Run ¶
func (_c *StorageInterface_UpdateL1DepositsStatus_Call) Run(run func(ctx context.Context, exitRoot []byte, destinationNetwork uint, dbTx pgx.Tx)) *StorageInterface_UpdateL1DepositsStatus_Call
func (*StorageInterface_UpdateL1DepositsStatus_Call) RunAndReturn ¶
type StorageInterface_UpdateL2DepositsStatus_Call ¶
StorageInterface_UpdateL2DepositsStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateL2DepositsStatus'
func (*StorageInterface_UpdateL2DepositsStatus_Call) Return ¶
func (_c *StorageInterface_UpdateL2DepositsStatus_Call) Return(_a0 error) *StorageInterface_UpdateL2DepositsStatus_Call
func (*StorageInterface_UpdateL2DepositsStatus_Call) Run ¶
func (_c *StorageInterface_UpdateL2DepositsStatus_Call) Run(run func(ctx context.Context, exitRoot []byte, rollupID uint, networkID uint, dbTx pgx.Tx)) *StorageInterface_UpdateL2DepositsStatus_Call
func (*StorageInterface_UpdateL2DepositsStatus_Call) RunAndReturn ¶
func (_c *StorageInterface_UpdateL2DepositsStatus_Call) RunAndReturn(run func(context.Context, []byte, uint, uint, pgx.Tx) error) *StorageInterface_UpdateL2DepositsStatus_Call
type TxMonitorer ¶
TxMonitorer is an autogenerated mock type for the TxMonitorer type
func NewTxMonitorer ¶
func NewTxMonitorer(t interface { mock.TestingT Cleanup(func()) }) *TxMonitorer
NewTxMonitorer creates a new instance of TxMonitorer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TxMonitorer) EXPECT ¶
func (_m *TxMonitorer) EXPECT() *TxMonitorer_Expecter
func (*TxMonitorer) MonitorTxs ¶
func (_m *TxMonitorer) MonitorTxs(ctx context.Context) error
MonitorTxs provides a mock function with given fields: ctx
type TxMonitorer_Expecter ¶
type TxMonitorer_Expecter struct {
// contains filtered or unexported fields
}
func (*TxMonitorer_Expecter) MonitorTxs ¶
func (_e *TxMonitorer_Expecter) MonitorTxs(ctx interface{}) *TxMonitorer_MonitorTxs_Call
MonitorTxs is a helper method to define mock.On call
- ctx context.Context
type TxMonitorer_MonitorTxs_Call ¶
TxMonitorer_MonitorTxs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MonitorTxs'
func (*TxMonitorer_MonitorTxs_Call) Return ¶
func (_c *TxMonitorer_MonitorTxs_Call) Return(_a0 error) *TxMonitorer_MonitorTxs_Call
func (*TxMonitorer_MonitorTxs_Call) Run ¶
func (_c *TxMonitorer_MonitorTxs_Call) Run(run func(ctx context.Context)) *TxMonitorer_MonitorTxs_Call
func (*TxMonitorer_MonitorTxs_Call) RunAndReturn ¶
func (_c *TxMonitorer_MonitorTxs_Call) RunAndReturn(run func(context.Context) error) *TxMonitorer_MonitorTxs_Call