test_utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyConfig

func CopyConfig(config *seth.Config) (*seth.Config, error)

CopyConfig creates a deep copy of Seth config

func NewClientWithAddresses

func NewClientWithAddresses(t *testing.T, addressCount int, funding *big.Int) *seth.Client

NewClientWithAddresses creates a new Seth client with the given number of addresses. Each address is funded with the given amount of native tokens.

func NewClientWithEphemeralAddresses

func NewClientWithEphemeralAddresses(t *testing.T, addressCount int) *seth.Client

NewClientWithEphemeralAddresses creates a new Seth client with the given number of addresses. Each address is funded with the calculated with the amount of ETH calculated by dividing the total balance of root key by the number of addresses (minus root key buffer amount).

func NewPrivateKeyWithFunds

func NewPrivateKeyWithFunds(t *testing.T, c *seth.Client, funds *big.Int) string

NewPrivateKeyWithFunds generates a new private key and funds it with the given amount of native tokens.

func TransferAllFundsBetweenKeyAndAddress

func TransferAllFundsBetweenKeyAndAddress(client *seth.Client, keyNum int, toAddress common.Address) error

TransferAllFundsBetweenKeyAndAddress transfers all funds key at specified index has to the given address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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