Documentation ¶
Index ¶
- type L1Oracle
- func (_m *L1Oracle) Close() error
- func (_m *L1Oracle) GasPrice(ctx context.Context) (*assets.Wei, error)
- func (_m *L1Oracle) GetGasCost(ctx context.Context, tx *types.Transaction, blockNum *big.Int) (*assets.Wei, error)
- func (_m *L1Oracle) HealthReport() map[string]error
- func (_m *L1Oracle) Name() string
- func (_m *L1Oracle) Ready() error
- func (_m *L1Oracle) Start(_a0 context.Context) error
- type L1OracleClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type L1Oracle ¶
L1Oracle is an autogenerated mock type for the L1Oracle type
func NewL1Oracle ¶
NewL1Oracle creates a new instance of L1Oracle. 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 (*L1Oracle) GetGasCost ¶ added in v2.10.0
func (_m *L1Oracle) GetGasCost(ctx context.Context, tx *types.Transaction, blockNum *big.Int) (*assets.Wei, error)
GetGasCost provides a mock function with given fields: ctx, tx, blockNum
func (*L1Oracle) HealthReport ¶
HealthReport provides a mock function with given fields:
type L1OracleClient ¶ added in v2.12.0
L1OracleClient is an autogenerated mock type for the l1OracleClient type
func NewL1OracleClient ¶ added in v2.12.0
func NewL1OracleClient(t interface { mock.TestingT Cleanup(func()) }) *L1OracleClient
NewL1OracleClient creates a new instance of L1OracleClient. 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 (*L1OracleClient) BatchCallContext ¶ added in v2.12.0
BatchCallContext provides a mock function with given fields: ctx, b