Documentation ¶
Index ¶
- type Eth
- func (_m *Eth) CheckEnabled(ctx context.Context, address common.Address, chainID *big.Int) error
- func (_m *Eth) EXPECT() *Eth_Expecter
- func (_m *Eth) EnabledAddressesForChain(ctx context.Context, chainID *big.Int) ([]common.Address, error)
- func (_m *Eth) SignTx(ctx context.Context, fromAddress common.Address, tx *types.Transaction, ...) (*types.Transaction, error)
- func (_m *Eth) SubscribeToKeyChanges(ctx context.Context) (chan struct{}, func())
- type Eth_CheckEnabled_Call
- func (_c *Eth_CheckEnabled_Call) Return(_a0 error) *Eth_CheckEnabled_Call
- func (_c *Eth_CheckEnabled_Call) Run(run func(ctx context.Context, address common.Address, chainID *big.Int)) *Eth_CheckEnabled_Call
- func (_c *Eth_CheckEnabled_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) error) *Eth_CheckEnabled_Call
- type Eth_EnabledAddressesForChain_Call
- func (_c *Eth_EnabledAddressesForChain_Call) Return(addresses []common.Address, err error) *Eth_EnabledAddressesForChain_Call
- func (_c *Eth_EnabledAddressesForChain_Call) Run(run func(ctx context.Context, chainID *big.Int)) *Eth_EnabledAddressesForChain_Call
- func (_c *Eth_EnabledAddressesForChain_Call) RunAndReturn(run func(context.Context, *big.Int) ([]common.Address, error)) *Eth_EnabledAddressesForChain_Call
- type Eth_Expecter
- func (_e *Eth_Expecter) CheckEnabled(ctx interface{}, address interface{}, chainID interface{}) *Eth_CheckEnabled_Call
- func (_e *Eth_Expecter) EnabledAddressesForChain(ctx interface{}, chainID interface{}) *Eth_EnabledAddressesForChain_Call
- func (_e *Eth_Expecter) SignTx(ctx interface{}, fromAddress interface{}, tx interface{}, chainID interface{}) *Eth_SignTx_Call
- func (_e *Eth_Expecter) SubscribeToKeyChanges(ctx interface{}) *Eth_SubscribeToKeyChanges_Call
- type Eth_SignTx_Call
- type Eth_SubscribeToKeyChanges_Call
- func (_c *Eth_SubscribeToKeyChanges_Call) Return(ch chan struct{}, unsub func()) *Eth_SubscribeToKeyChanges_Call
- func (_c *Eth_SubscribeToKeyChanges_Call) Run(run func(ctx context.Context)) *Eth_SubscribeToKeyChanges_Call
- func (_c *Eth_SubscribeToKeyChanges_Call) RunAndReturn(run func(context.Context) (chan struct{}, func())) *Eth_SubscribeToKeyChanges_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Eth ¶
Eth is an autogenerated mock type for the Eth type
func NewEth ¶
NewEth creates a new instance of Eth. 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 (*Eth) CheckEnabled ¶
CheckEnabled provides a mock function with given fields: ctx, address, chainID
func (*Eth) EXPECT ¶ added in v2.15.0
func (_m *Eth) EXPECT() *Eth_Expecter
func (*Eth) EnabledAddressesForChain ¶
func (_m *Eth) EnabledAddressesForChain(ctx context.Context, chainID *big.Int) ([]common.Address, error)
EnabledAddressesForChain provides a mock function with given fields: ctx, chainID
func (*Eth) SignTx ¶
func (_m *Eth) SignTx(ctx context.Context, fromAddress common.Address, tx *types.Transaction, chainID *big.Int) (*types.Transaction, error)
SignTx provides a mock function with given fields: ctx, fromAddress, tx, chainID
func (*Eth) SubscribeToKeyChanges ¶
SubscribeToKeyChanges provides a mock function with given fields: ctx
type Eth_CheckEnabled_Call ¶ added in v2.15.0
Eth_CheckEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckEnabled'
func (*Eth_CheckEnabled_Call) Return ¶ added in v2.15.0
func (_c *Eth_CheckEnabled_Call) Return(_a0 error) *Eth_CheckEnabled_Call
func (*Eth_CheckEnabled_Call) Run ¶ added in v2.15.0
func (_c *Eth_CheckEnabled_Call) Run(run func(ctx context.Context, address common.Address, chainID *big.Int)) *Eth_CheckEnabled_Call
func (*Eth_CheckEnabled_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Eth_CheckEnabled_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) error) *Eth_CheckEnabled_Call
type Eth_EnabledAddressesForChain_Call ¶ added in v2.15.0
Eth_EnabledAddressesForChain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnabledAddressesForChain'
func (*Eth_EnabledAddressesForChain_Call) Return ¶ added in v2.15.0
func (_c *Eth_EnabledAddressesForChain_Call) Return(addresses []common.Address, err error) *Eth_EnabledAddressesForChain_Call
func (*Eth_EnabledAddressesForChain_Call) Run ¶ added in v2.15.0
func (_c *Eth_EnabledAddressesForChain_Call) Run(run func(ctx context.Context, chainID *big.Int)) *Eth_EnabledAddressesForChain_Call
func (*Eth_EnabledAddressesForChain_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Eth_EnabledAddressesForChain_Call) RunAndReturn(run func(context.Context, *big.Int) ([]common.Address, error)) *Eth_EnabledAddressesForChain_Call
type Eth_Expecter ¶ added in v2.15.0
type Eth_Expecter struct {
// contains filtered or unexported fields
}
func (*Eth_Expecter) CheckEnabled ¶ added in v2.15.0
func (_e *Eth_Expecter) CheckEnabled(ctx interface{}, address interface{}, chainID interface{}) *Eth_CheckEnabled_Call
CheckEnabled is a helper method to define mock.On call
- ctx context.Context
- address common.Address
- chainID *big.Int
func (*Eth_Expecter) EnabledAddressesForChain ¶ added in v2.15.0
func (_e *Eth_Expecter) EnabledAddressesForChain(ctx interface{}, chainID interface{}) *Eth_EnabledAddressesForChain_Call
EnabledAddressesForChain is a helper method to define mock.On call
- ctx context.Context
- chainID *big.Int
func (*Eth_Expecter) SignTx ¶ added in v2.15.0
func (_e *Eth_Expecter) SignTx(ctx interface{}, fromAddress interface{}, tx interface{}, chainID interface{}) *Eth_SignTx_Call
SignTx is a helper method to define mock.On call
- ctx context.Context
- fromAddress common.Address
- tx *types.Transaction
- chainID *big.Int
func (*Eth_Expecter) SubscribeToKeyChanges ¶ added in v2.15.0
func (_e *Eth_Expecter) SubscribeToKeyChanges(ctx interface{}) *Eth_SubscribeToKeyChanges_Call
SubscribeToKeyChanges is a helper method to define mock.On call
- ctx context.Context
type Eth_SignTx_Call ¶ added in v2.15.0
Eth_SignTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignTx'
func (*Eth_SignTx_Call) Return ¶ added in v2.15.0
func (_c *Eth_SignTx_Call) Return(_a0 *types.Transaction, _a1 error) *Eth_SignTx_Call
func (*Eth_SignTx_Call) Run ¶ added in v2.15.0
func (_c *Eth_SignTx_Call) Run(run func(ctx context.Context, fromAddress common.Address, tx *types.Transaction, chainID *big.Int)) *Eth_SignTx_Call
func (*Eth_SignTx_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Eth_SignTx_Call) RunAndReturn(run func(context.Context, common.Address, *types.Transaction, *big.Int) (*types.Transaction, error)) *Eth_SignTx_Call
type Eth_SubscribeToKeyChanges_Call ¶ added in v2.15.0
Eth_SubscribeToKeyChanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeToKeyChanges'
func (*Eth_SubscribeToKeyChanges_Call) Return ¶ added in v2.15.0
func (_c *Eth_SubscribeToKeyChanges_Call) Return(ch chan struct{}, unsub func()) *Eth_SubscribeToKeyChanges_Call
func (*Eth_SubscribeToKeyChanges_Call) Run ¶ added in v2.15.0
func (_c *Eth_SubscribeToKeyChanges_Call) Run(run func(ctx context.Context)) *Eth_SubscribeToKeyChanges_Call
func (*Eth_SubscribeToKeyChanges_Call) RunAndReturn ¶ added in v2.15.0
func (_c *Eth_SubscribeToKeyChanges_Call) RunAndReturn(run func(context.Context) (chan struct{}, func())) *Eth_SubscribeToKeyChanges_Call