Documentation ¶
Index ¶
- func RequireProcessorUpdated(t *testing.T, processor Processorer, targetBlock uint64)
- type ClientRenamed
- type EthTxManagerMock
- func (_m *EthTxManagerMock) Add(ctx context.Context, to *common.Address, value *big.Int, data []byte, ...) (common.Hash, error)
- func (_m *EthTxManagerMock) Remove(ctx context.Context, id common.Hash) error
- func (_m *EthTxManagerMock) Result(ctx context.Context, id common.Hash) (ethtxtypes.MonitoredTxResult, error)
- func (_m *EthTxManagerMock) ResultsByStatus(ctx context.Context, statuses []ethtxtypes.MonitoredTxStatus) ([]ethtxtypes.MonitoredTxResult, error)
- type Processorer
- type SimulatedBackendSetup
- type TestClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireProcessorUpdated ¶
func RequireProcessorUpdated(t *testing.T, processor Processorer, targetBlock uint64)
Types ¶
type ClientRenamed ¶
type EthTxManagerMock ¶
EthTxManagerMock is an autogenerated mock type for the EthTxManager type
func NewEthTxManMock ¶
func NewEthTxManMock( t *testing.T, client *simulated.Backend, auth *bind.TransactOpts, ) *EthTxManagerMock
func NewEthTxManagerMock ¶
func NewEthTxManagerMock(t interface { mock.TestingT Cleanup(func()) }) *EthTxManagerMock
NewEthTxManagerMock creates a new instance of EthTxManagerMock. 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 (*EthTxManagerMock) Add ¶
func (_m *EthTxManagerMock) Add(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar) (common.Hash, error)
Add provides a mock function with given fields: ctx, to, value, data, gasOffset, sidecar
func (*EthTxManagerMock) Result ¶
func (_m *EthTxManagerMock) Result(ctx context.Context, id common.Hash) (ethtxtypes.MonitoredTxResult, error)
Result provides a mock function with given fields: ctx, id
func (*EthTxManagerMock) ResultsByStatus ¶
func (_m *EthTxManagerMock) ResultsByStatus(ctx context.Context, statuses []ethtxtypes.MonitoredTxStatus) ([]ethtxtypes.MonitoredTxResult, error)
ResultsByStatus provides a mock function with given fields: ctx, statuses
type Processorer ¶
type SimulatedBackendSetup ¶ added in v0.3.0
type SimulatedBackendSetup struct { UserAuth *bind.TransactOpts DeployerAuth *bind.TransactOpts EBZkevmBridgeAddr common.Address EBZkevmBridgeContract *polygonzkevmbridgev2.Polygonzkevmbridgev2 EBZkevmBridgeProxyAddr common.Address EBZkevmBridgeProxyContract *polygonzkevmbridgev2.Polygonzkevmbridgev2 }
SimulatedBackendSetup defines the setup for a simulated backend.
type TestClient ¶
type TestClient struct {
ClientRenamed
}
func (TestClient) Client ¶
func (tc TestClient) Client() *rpc.Client
Click to show internal directories.
Click to hide internal directories.