Versions in this module Expand all Collapse all v0 v0.0.1 Feb 21, 2023 Changes in this version + const StateLockupField + var ErrInvalidTarget = errors.New("invalid target") + var ErrStateLockupMissing = errors.New("state lockup parameter missing") + func GetStateLockup(r chain.Rules) (uint64, error) + type CustomAllocation struct + Address string + Balance uint64 + type Genesis struct + BaseUnits uint64 + BlockCostChangeDenominator uint64 + CustomAllocation []*CustomAllocation + HRP string + MaxBlockTxs int + MaxBlockUnits uint64 + MinBlockCost uint64 + MinUnitPrice uint64 + StateLockup uint64 + UnitPriceChangeDenominator uint64 + ValidityWindow int64 + WindowTargetBlocks uint64 + WindowTargetUnits uint64 + func Default() *Genesis + func New(b []byte, _ []byte) (*Genesis, error) + func (g *Genesis) GetHRP() string + func (g *Genesis) Load(ctx context.Context, tracer trace.Tracer, db chain.Database) error + func (g *Genesis) Rules(chainID ids.ID, _ int64) *Rules + type Rules struct + func (r *Rules) FetchCustom(f string) (any, bool) + func (r *Rules) GetBaseUnits() uint64 + func (r *Rules) GetBlockCostChangeDenominator() uint64 + func (r *Rules) GetChainID() ids.ID + func (r *Rules) GetMaxBlockTxs() int + func (r *Rules) GetMaxBlockUnits() uint64 + func (r *Rules) GetMinBlockCost() uint64 + func (r *Rules) GetMinUnitPrice() uint64 + func (r *Rules) GetUnitPriceChangeDenominator() uint64 + func (r *Rules) GetValidityWindow() int64 + func (r *Rules) GetWindowTargetBlocks() uint64 + func (r *Rules) GetWindowTargetUnits() uint64