ethsignermocks

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wallet

type Wallet struct {
	mock.Mock
}

Wallet is an autogenerated mock type for the Wallet type

func NewWallet added in v1.1.5

func NewWallet(t interface {
	mock.TestingT
	Cleanup(func())
}) *Wallet

NewWallet creates a new instance of Wallet. 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 (*Wallet) Close

func (_m *Wallet) Close() error

Close provides a mock function with given fields:

func (*Wallet) GetAccounts

func (_m *Wallet) GetAccounts(ctx context.Context) ([]*ethtypes.Address0xHex, error)

GetAccounts provides a mock function with given fields: ctx

func (*Wallet) Initialize

func (_m *Wallet) Initialize(ctx context.Context) error

Initialize provides a mock function with given fields: ctx

func (*Wallet) Refresh

func (_m *Wallet) Refresh(ctx context.Context) error

Refresh provides a mock function with given fields: ctx

func (*Wallet) Sign

func (_m *Wallet) Sign(ctx context.Context, txn *ethsigner.Transaction, chainID int64) ([]byte, error)

Sign provides a mock function with given fields: ctx, txn, chainID

Jump to

Keyboard shortcuts

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