genesis

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmissionBalancer

type EmissionBalancer struct {
	MaxSupply       uint64 `json:"maxSupply"`       // Max supply of NAI
	EmissionAddress string `json:"emissionAddress"` // Emission address
}

type Genesis

type Genesis struct {
	*genesis.DefaultGenesis
	EmissionBalancer *EmissionBalancer `json:"emissionBalancer"`
}

func NewGenesis added in v0.1.3

func NewGenesis(customAllocations []*genesis.CustomAllocation, emissionBalancer EmissionBalancer) *Genesis

func (*Genesis) GetStateBranchFactor

func (g *Genesis) GetStateBranchFactor() merkledb.BranchFactor

func (*Genesis) InitializeState added in v0.1.3

func (g *Genesis) InitializeState(ctx context.Context, tracer trace.Tracer, mu state.Mutable, balanceHandler chain.BalanceHandler) error

type GenesisFactory added in v0.1.3

type GenesisFactory struct {
	*genesis.DefaultGenesisFactory
}

func (GenesisFactory) Load added in v0.1.3

func (GenesisFactory) Load(genesisBytes []byte, _ []byte, networkID uint32, chainID ids.ID) (genesis.Genesis, genesis.RuleFactory, error)

Update the Load function to return the proper type

Jump to

Keyboard shortcuts

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