mock

package
v0.0.0-...-c0cc0bc Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0, MIT Imports: 7 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 WithPublicKeyFunc

func WithPublicKeyFunc(f func() (*ecdsa.PublicKey, 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