Documentation
¶
Index ¶
- type L1Oracle
- func (_m *L1Oracle) Close() error
- func (_m *L1Oracle) EXPECT() *L1Oracle_Expecter
- func (_m *L1Oracle) GasPrice(ctx context.Context) (*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
- type L1OracleClient_BatchCallContext_Call
- func (_c *L1OracleClient_BatchCallContext_Call) Return(_a0 error) *L1OracleClient_BatchCallContext_Call
- func (_c *L1OracleClient_BatchCallContext_Call) Run(run func(ctx context.Context, b []rpc.BatchElem)) *L1OracleClient_BatchCallContext_Call
- func (_c *L1OracleClient_BatchCallContext_Call) RunAndReturn(run func(context.Context, []rpc.BatchElem) error) *L1OracleClient_BatchCallContext_Call
- type L1OracleClient_CallContract_Call
- func (_c *L1OracleClient_CallContract_Call) Return(_a0 []byte, _a1 error) *L1OracleClient_CallContract_Call
- func (_c *L1OracleClient_CallContract_Call) Run(run func(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int)) *L1OracleClient_CallContract_Call
- func (_c *L1OracleClient_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *L1OracleClient_CallContract_Call
- type L1OracleClient_Expecter
- type L1Oracle_Close_Call
- type L1Oracle_Expecter
- func (_e *L1Oracle_Expecter) Close() *L1Oracle_Close_Call
- func (_e *L1Oracle_Expecter) GasPrice(ctx interface{}) *L1Oracle_GasPrice_Call
- func (_e *L1Oracle_Expecter) HealthReport() *L1Oracle_HealthReport_Call
- func (_e *L1Oracle_Expecter) Name() *L1Oracle_Name_Call
- func (_e *L1Oracle_Expecter) Ready() *L1Oracle_Ready_Call
- func (_e *L1Oracle_Expecter) Start(_a0 interface{}) *L1Oracle_Start_Call
- type L1Oracle_GasPrice_Call
- func (_c *L1Oracle_GasPrice_Call) Return(_a0 *assets.Wei, _a1 error) *L1Oracle_GasPrice_Call
- func (_c *L1Oracle_GasPrice_Call) Run(run func(ctx context.Context)) *L1Oracle_GasPrice_Call
- func (_c *L1Oracle_GasPrice_Call) RunAndReturn(run func(context.Context) (*assets.Wei, error)) *L1Oracle_GasPrice_Call
- type L1Oracle_HealthReport_Call
- type L1Oracle_Name_Call
- type L1Oracle_Ready_Call
- type L1Oracle_Start_Call
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) EXPECT ¶
func (_m *L1Oracle) EXPECT() *L1Oracle_Expecter
func (*L1Oracle) HealthReport ¶
HealthReport provides a mock function with no fields
type L1OracleClient ¶
L1OracleClient is an autogenerated mock type for the l1OracleClient type
func NewL1OracleClient ¶
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 ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*L1OracleClient) CallContract ¶
func (_m *L1OracleClient) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, msg, blockNumber
func (*L1OracleClient) EXPECT ¶
func (_m *L1OracleClient) EXPECT() *L1OracleClient_Expecter
type L1OracleClient_BatchCallContext_Call ¶
L1OracleClient_BatchCallContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchCallContext'
func (*L1OracleClient_BatchCallContext_Call) Return ¶
func (_c *L1OracleClient_BatchCallContext_Call) Return(_a0 error) *L1OracleClient_BatchCallContext_Call
func (*L1OracleClient_BatchCallContext_Call) Run ¶
func (_c *L1OracleClient_BatchCallContext_Call) Run(run func(ctx context.Context, b []rpc.BatchElem)) *L1OracleClient_BatchCallContext_Call
func (*L1OracleClient_BatchCallContext_Call) RunAndReturn ¶
func (_c *L1OracleClient_BatchCallContext_Call) RunAndReturn(run func(context.Context, []rpc.BatchElem) error) *L1OracleClient_BatchCallContext_Call
type L1OracleClient_CallContract_Call ¶
L1OracleClient_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'
func (*L1OracleClient_CallContract_Call) Return ¶
func (_c *L1OracleClient_CallContract_Call) Return(_a0 []byte, _a1 error) *L1OracleClient_CallContract_Call
func (*L1OracleClient_CallContract_Call) Run ¶
func (_c *L1OracleClient_CallContract_Call) Run(run func(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int)) *L1OracleClient_CallContract_Call
func (*L1OracleClient_CallContract_Call) RunAndReturn ¶
func (_c *L1OracleClient_CallContract_Call) RunAndReturn(run func(context.Context, ethereum.CallMsg, *big.Int) ([]byte, error)) *L1OracleClient_CallContract_Call
type L1OracleClient_Expecter ¶
type L1OracleClient_Expecter struct {
// contains filtered or unexported fields
}
func (*L1OracleClient_Expecter) BatchCallContext ¶
func (_e *L1OracleClient_Expecter) BatchCallContext(ctx interface{}, b interface{}) *L1OracleClient_BatchCallContext_Call
BatchCallContext is a helper method to define mock.On call
- ctx context.Context
- b []rpc.BatchElem
func (*L1OracleClient_Expecter) CallContract ¶
func (_e *L1OracleClient_Expecter) CallContract(ctx interface{}, msg interface{}, blockNumber interface{}) *L1OracleClient_CallContract_Call
CallContract is a helper method to define mock.On call
- ctx context.Context
- msg ethereum.CallMsg
- blockNumber *big.Int
type L1Oracle_Close_Call ¶
L1Oracle_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*L1Oracle_Close_Call) Return ¶
func (_c *L1Oracle_Close_Call) Return(_a0 error) *L1Oracle_Close_Call
func (*L1Oracle_Close_Call) Run ¶
func (_c *L1Oracle_Close_Call) Run(run func()) *L1Oracle_Close_Call
func (*L1Oracle_Close_Call) RunAndReturn ¶
func (_c *L1Oracle_Close_Call) RunAndReturn(run func() error) *L1Oracle_Close_Call
type L1Oracle_Expecter ¶
type L1Oracle_Expecter struct {
// contains filtered or unexported fields
}
func (*L1Oracle_Expecter) Close ¶
func (_e *L1Oracle_Expecter) Close() *L1Oracle_Close_Call
Close is a helper method to define mock.On call
func (*L1Oracle_Expecter) GasPrice ¶
func (_e *L1Oracle_Expecter) GasPrice(ctx interface{}) *L1Oracle_GasPrice_Call
GasPrice is a helper method to define mock.On call
- ctx context.Context
func (*L1Oracle_Expecter) HealthReport ¶
func (_e *L1Oracle_Expecter) HealthReport() *L1Oracle_HealthReport_Call
HealthReport is a helper method to define mock.On call
func (*L1Oracle_Expecter) Name ¶
func (_e *L1Oracle_Expecter) Name() *L1Oracle_Name_Call
Name is a helper method to define mock.On call
func (*L1Oracle_Expecter) Ready ¶
func (_e *L1Oracle_Expecter) Ready() *L1Oracle_Ready_Call
Ready is a helper method to define mock.On call
func (*L1Oracle_Expecter) Start ¶
func (_e *L1Oracle_Expecter) Start(_a0 interface{}) *L1Oracle_Start_Call
Start is a helper method to define mock.On call
- _a0 context.Context
type L1Oracle_GasPrice_Call ¶
L1Oracle_GasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GasPrice'
func (*L1Oracle_GasPrice_Call) Return ¶
func (_c *L1Oracle_GasPrice_Call) Return(_a0 *assets.Wei, _a1 error) *L1Oracle_GasPrice_Call
func (*L1Oracle_GasPrice_Call) Run ¶
func (_c *L1Oracle_GasPrice_Call) Run(run func(ctx context.Context)) *L1Oracle_GasPrice_Call
func (*L1Oracle_GasPrice_Call) RunAndReturn ¶
func (_c *L1Oracle_GasPrice_Call) RunAndReturn(run func(context.Context) (*assets.Wei, error)) *L1Oracle_GasPrice_Call
type L1Oracle_HealthReport_Call ¶
L1Oracle_HealthReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HealthReport'
func (*L1Oracle_HealthReport_Call) Return ¶
func (_c *L1Oracle_HealthReport_Call) Return(_a0 map[string]error) *L1Oracle_HealthReport_Call
func (*L1Oracle_HealthReport_Call) Run ¶
func (_c *L1Oracle_HealthReport_Call) Run(run func()) *L1Oracle_HealthReport_Call
func (*L1Oracle_HealthReport_Call) RunAndReturn ¶
func (_c *L1Oracle_HealthReport_Call) RunAndReturn(run func() map[string]error) *L1Oracle_HealthReport_Call
type L1Oracle_Name_Call ¶
L1Oracle_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*L1Oracle_Name_Call) Return ¶
func (_c *L1Oracle_Name_Call) Return(_a0 string) *L1Oracle_Name_Call
func (*L1Oracle_Name_Call) Run ¶
func (_c *L1Oracle_Name_Call) Run(run func()) *L1Oracle_Name_Call
func (*L1Oracle_Name_Call) RunAndReturn ¶
func (_c *L1Oracle_Name_Call) RunAndReturn(run func() string) *L1Oracle_Name_Call
type L1Oracle_Ready_Call ¶
L1Oracle_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*L1Oracle_Ready_Call) Return ¶
func (_c *L1Oracle_Ready_Call) Return(_a0 error) *L1Oracle_Ready_Call
func (*L1Oracle_Ready_Call) Run ¶
func (_c *L1Oracle_Ready_Call) Run(run func()) *L1Oracle_Ready_Call
func (*L1Oracle_Ready_Call) RunAndReturn ¶
func (_c *L1Oracle_Ready_Call) RunAndReturn(run func() error) *L1Oracle_Ready_Call
type L1Oracle_Start_Call ¶
L1Oracle_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*L1Oracle_Start_Call) Return ¶
func (_c *L1Oracle_Start_Call) Return(_a0 error) *L1Oracle_Start_Call
func (*L1Oracle_Start_Call) Run ¶
func (_c *L1Oracle_Start_Call) Run(run func(_a0 context.Context)) *L1Oracle_Start_Call
func (*L1Oracle_Start_Call) RunAndReturn ¶
func (_c *L1Oracle_Start_Call) RunAndReturn(run func(context.Context) error) *L1Oracle_Start_Call