genallocs

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenesisAccount

type GenesisAccount struct {
	UnlockSchedule  int                                      `json:"unlockSchedule"`
	Address         common.Address                           `json:"address"`
	Award           *big.Int                                 `json:"award"`
	Vested          *big.Int                                 `json:"vested"`
	LumpSumMonth    uint64                                   `json:"lumpSumMonth"`
	BalanceSchedule *orderedmap.OrderedMap[uint64, *big.Int] `json:"balanceSchedule"` // Map of blockNumber->balanceUnlocked (at that block).
}

GenesisAccount is an account in the state of the genesis block.

func GenerateGenesisUnlocks

func GenerateGenesisUnlocks(filename string) ([]GenesisAccount, error)

Will return all the GenesisAccounts with their calculated unlock schedules. Ignores any existing values in BalanceSchedule and recalculates them.

func VerifyGenesisAllocs

func VerifyGenesisAllocs(filename string, expectedHash common.Hash) ([]GenesisAccount, error)

Performs verification tasks on provided unlock info.

Jump to

Keyboard shortcuts

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