mocks

package
v0.9.1-dev.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

func (*Client) Balance added in v0.9.0

func (e *Client) Balance(ctx context.Context, address ethereum.Address) (*big.Int, error)

func (*Client) Block added in v0.7.1

func (e *Client) Block(ctx context.Context) (*types.Block, error)

func (*Client) BlockNumber added in v0.5.0

func (e *Client) BlockNumber(ctx context.Context) (*big.Int, error)

func (*Client) Call

func (e *Client) Call(ctx context.Context, call ethereum.Call) ([]byte, error)

func (*Client) CallBlocks added in v0.5.0

func (e *Client) CallBlocks(ctx context.Context, call ethereum.Call, blocks []int64) ([][]byte, error)

func (*Client) FilterLogs added in v0.7.1

func (e *Client) FilterLogs(ctx context.Context, query geth.FilterQuery) ([]types.Log, error)

func (*Client) MultiCall

func (e *Client) MultiCall(ctx context.Context, calls []ethereum.Call) ([][]byte, error)

func (*Client) SendTransaction

func (e *Client) SendTransaction(ctx context.Context, transaction *ethereum.Transaction) (*ethereum.Hash, error)

func (*Client) Storage

func (e *Client) Storage(ctx context.Context, address ethereum.Address, key ethereum.Hash) ([]byte, error)

type Signer

type Signer struct {
	mock.Mock
}

func (*Signer) Address

func (s *Signer) Address() ethereum.Address

func (*Signer) Recover

func (s *Signer) Recover(signature ethereum.Signature, data []byte) (*ethereum.Address, error)

func (*Signer) SignTransaction

func (s *Signer) SignTransaction(transaction *ethereum.Transaction) error

func (*Signer) Signature

func (s *Signer) Signature(data []byte) (ethereum.Signature, error)

Jump to

Keyboard shortcuts

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