mocks

package
v2.15.0-beta0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Eth

type Eth struct {
	mock.Mock
}

Eth is an autogenerated mock type for the Eth type

func NewEth

func NewEth(t interface {
	mock.TestingT
	Cleanup(func())
}) *Eth

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

func (_m *Eth) CheckEnabled(ctx context.Context, address common.Address, chainID *big.Int) error

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

func (_m *Eth) SubscribeToKeyChanges(ctx context.Context) (chan struct{}, func())

SubscribeToKeyChanges provides a mock function with given fields: ctx

type Eth_CheckEnabled_Call added in v2.15.0

type Eth_CheckEnabled_Call struct {
	*mock.Call
}

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 (*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

type Eth_EnabledAddressesForChain_Call added in v2.15.0

type Eth_EnabledAddressesForChain_Call struct {
	*mock.Call
}

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 (*Eth_EnabledAddressesForChain_Call) Run added in v2.15.0

func (*Eth_EnabledAddressesForChain_Call) RunAndReturn added in v2.15.0

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

type Eth_SignTx_Call struct {
	*mock.Call
}

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

type Eth_SubscribeToKeyChanges_Call added in v2.15.0

type Eth_SubscribeToKeyChanges_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL