mock

package
v2.2.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 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

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

func WithSignFunc

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