Documentation
¶
Overview ¶
Package prefunds deals with prefunds addresses and their balances
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrefundPath ¶
Types ¶
type Allocation ¶
type Allocation struct { Address base.Address `json:"address" csv:"address"` Balance base.Wei `json:"balance" csv:"balance"` }
Allocation is a single allocation in the genesis file
func GetLargestPrefund ¶
func GetLargestPrefund(chain, thePath string) (Allocation, error)
func LoadPrefunds ¶
func LoadPrefunds(chain string, thePath string, userCallback allocCallback) ([]Allocation, error)
LoadPrefunds loads the prefunds from the genesis file and processes each with provided callback if present
Click to show internal directories.
Click to hide internal directories.