anvil

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevAccount0

func DevAccount0() common.Address

func DevAccount1

func DevAccount1() common.Address

func DevAccount2

func DevAccount2() common.Address

func DevAccount3

func DevAccount3() common.Address

func DevAccount4

func DevAccount4() common.Address

func DevAccount5

func DevAccount5() common.Address

func DevAccount6

func DevAccount6() common.Address

func DevAccount7

func DevAccount7() common.Address

func DevAccount8

func DevAccount8() common.Address

func DevAccount9

func DevAccount9() common.Address

func DevPrivateKey0

func DevPrivateKey0() *ecdsa.PrivateKey

func DevPrivateKey1

func DevPrivateKey1() *ecdsa.PrivateKey

func DevPrivateKey2

func DevPrivateKey2() *ecdsa.PrivateKey

func DevPrivateKey3

func DevPrivateKey3() *ecdsa.PrivateKey

func DevPrivateKey4

func DevPrivateKey4() *ecdsa.PrivateKey

func DevPrivateKey5

func DevPrivateKey5() *ecdsa.PrivateKey

func DevPrivateKey6

func DevPrivateKey6() *ecdsa.PrivateKey

func DevPrivateKey7

func DevPrivateKey7() *ecdsa.PrivateKey

func DevPrivateKey8

func DevPrivateKey8() *ecdsa.PrivateKey

func DevPrivateKey9

func DevPrivateKey9() *ecdsa.PrivateKey

func DevPrivateKeys

func DevPrivateKeys() []*ecdsa.PrivateKey

func FundAccounts

func FundAccounts(ctx context.Context, rpc string, amount *big.Int, accounts ...common.Address) error

FundAccounts funds the anvil account via the anvil_setBalance RPC method.

func IsDevAccount

func IsDevAccount(addr common.Address) bool

func Start

func Start(ctx context.Context, dir string, chainID uint64) (ethclient.Client, func(), error)

Start starts a genesis anvil node and returns an ethclient and a stop function or an error. The dir parameter is the location of the docker compose. If useLogProxy is true, all requests are routed via a reserve proxy that logs all requests, which will be printed at stop.

Types

This section is empty.

Jump to

Keyboard shortcuts

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