mock

package
v1.4.1-rc5 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) crypto.Signer

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is the option passed to the mock Chequebook service

func WithEthereumAddressFunc added in v0.5.1

func WithEthereumAddressFunc(f func() (common.Address, error)) Option

func WithSignFunc added in v0.6.0

func WithSignFunc(f func(data []byte) ([]byte, error)) Option

func WithSignTxFunc

func WithSignTxFunc(f func(transaction *types.Transaction, chainID *big.Int) (*types.Transaction, error)) Option

func WithSignTypedDataFunc

func WithSignTypedDataFunc(f func(*eip712.TypedData) ([]byte, error)) Option

Jump to

Keyboard shortcuts

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