helper

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PrivateKey, _ = crypto.HexToECDSA("ac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80")
	Addr          = crypto.PubkeyToAddress(PrivateKey.PublicKey)
)

Functions

func MakeTrieDatabase

func MakeTrieDatabase(disk ethdb.Database, preimage bool, readOnly bool, isVerkle bool) *triedb.Database

MakeTrieDatabase constructs a trie database based on the configured scheme.

func NewTestClient

func NewTestClient(t *testing.T) *ethclient.Client

func NewTestEthBackend

func NewTestEthBackend(privateKey *ecdsa.PrivateKey, alloc types.GenesisAlloc, dataDir string) (*node.Node, error)

func RegisterEthService

func RegisterEthService(stack *node.Node, cfg *ethconfig.Config) *eth.Ethereum

RegisterEthService adds an Ethereum client to the stack. The second return value is the full node instance.

func SetUpClient

func SetUpClient(t *testing.T) *ethclient.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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