Documentation ¶
Index ¶
- type ChainType
- type Genesis
- func (gen *Genesis) Accounts() map[crypto.Address]*account.Account
- func (gen *Genesis) ChainType() ChainType
- func (gen *Genesis) GenesisTime() time.Time
- func (gen *Genesis) Hash() hash.Hash
- func (gen *Genesis) MarshalJSON() ([]byte, error)
- func (gen *Genesis) Params() *param.Params
- func (gen *Genesis) SaveToFile(file string) error
- func (gen *Genesis) TotalSupply() int64
- func (gen *Genesis) UnmarshalJSON(bs []byte) error
- func (gen *Genesis) Validators() []*validator.Validator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Genesis ¶
type Genesis struct {
// contains filtered or unexported fields
}
Genesis is stored in the state database.
func LoadFromFile ¶
LoadFromFile loads genesis object from a JSON file.
func MainnetGenesis ¶ added in v1.0.0
func MainnetGenesis() *Genesis
func MakeGenesis ¶
func TestnetGenesis ¶ added in v0.11.0
func TestnetGenesis() *Genesis
func (*Genesis) GenesisTime ¶
func (*Genesis) MarshalJSON ¶
func (*Genesis) SaveToFile ¶
SaveToFile saves the genesis into a JSON file.
func (*Genesis) TotalSupply ¶ added in v0.15.0
func (*Genesis) UnmarshalJSON ¶
func (*Genesis) Validators ¶
Click to show internal directories.
Click to hide internal directories.