mocks

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEthClient

type MockEthClient struct {
	mock.Mock
}

func (*MockEthClient) CodeAt

func (m *MockEthClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)

func (*MockEthClient) EstimateGas

func (m *MockEthClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

func (*MockEthClient) NetworkID

func (m *MockEthClient) NetworkID(ctx context.Context) (*big.Int, error)

func (*MockEthClient) PendingNonceAt

func (m *MockEthClient) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

func (*MockEthClient) SendTransaction

func (m *MockEthClient) SendTransaction(ctx context.Context, tx *types.Transaction) error

func (*MockEthClient) SuggestGasPrice

func (m *MockEthClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)

func (*MockEthClient) TransactionReceipt

func (m *MockEthClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

type MockWebSocketConnection

type MockWebSocketConnection struct {
	mock.Mock
}

func (*MockWebSocketConnection) WriteMessage

func (m *MockWebSocketConnection) WriteMessage(messageType int, data []byte) error

Jump to

Keyboard shortcuts

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