mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: AGPL-3.0 Imports: 3 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) Call

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

func (*Client) MultiCall

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

func (*Client) SendTransaction

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

func (*Client) Storage

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