genesis

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const TestnetPrefundedPK = "8dfb8083da6275ae3e4f41e3e8a8c19d028d32c9247e24530933782f2a05035b" // The genesis main account private key.

Variables

View Source
var (
	GasBridgingKeys, _   = crypto.GenerateKey() // todo - make static
	GasWithdrawalKeys, _ = crypto.GenerateKey() // todo - make static
)
View Source
var TestnetGenesis = Genesis{
	Accounts: []Account{
		{
			Address: gethcommon.HexToAddress("0xA58C60cc047592DE97BF1E8d2f225Fc5D959De77"),
			Amount:  parseHugeNumber("7500000000000000000000000000000"),
		},

		{
			Address: gethcommon.HexToAddress("0x987E0a0692475bCc5F13D97E700bb43c1913EFfe"),
			Amount:  parseHugeNumber("7500000000000000000000000000000"),
		},
		{
			Address: gethcommon.HexToAddress("0xDEe530E22045939e6f6a0A593F829e35A140D3F1"),
			Amount:  parseHugeNumber("7500000000000000000000000000000"),
		},
	},
}

Functions

This section is empty.

Types

type Account

type Account struct {
	Address gethcommon.Address
	Amount  *big.Int
}

Account specifies the address that's prefunded and the amount it's funded with

type Genesis

type Genesis struct {
	Accounts []Account
}

Genesis holds a range of prefunded accounts

func New

func New(genesisJSON string) (*Genesis, error)

New creates a new Genesis given a json string if the string is empty it defaults to the testnet genesis

func (Genesis) CommitGenesisState

func (g Genesis) CommitGenesisState(storage storage.Storage) error

func (Genesis) GetGenesisRoot

func (g Genesis) GetGenesisRoot(storage storage.Storage) (*common.StateRoot, error)

Jump to

Keyboard shortcuts

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