mocks

package
v2.11.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 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) 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

Jump to

Keyboard shortcuts

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