 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
const CodecVersion = block.CodecVersion
    Variables ¶
var Codec = block.GenesisCodec
    Functions ¶
This section is empty.
Types ¶
type Allocation ¶ added in v1.13.1
Allocation is a UTXO on the Platform Chain that exists at the chain's genesis
func (Allocation) Compare ¶ added in v1.13.1
func (a Allocation) Compare(other Allocation) int
Compare compares two allocations
type Chain ¶ added in v1.13.1
Chain defines a chain that exists at the network's genesis [GenesisData] is the initial state of the chain. [VMID] is the ID of the VM this chain runs. [FxIDs] are the IDs of the Fxs the chain supports. [Name] is a human-readable, non-unique name for the chain. [SubnetID] is the ID of the subnet that validates the chain
type Genesis ¶
type Genesis struct {
	UTXOs         []*UTXO   `serialize:"true"`
	Validators    []*txs.Tx `serialize:"true"`
	Chains        []*txs.Tx `serialize:"true"`
	Timestamp     uint64    `serialize:"true"`
	InitialSupply uint64    `serialize:"true"`
	Message       string    `serialize:"true"`
}
    Genesis represents a genesis state of the platform chain
func New ¶ added in v1.13.1
func New( avaxAssetID ids.ID, networkID uint32, allocations []Allocation, validators []PermissionlessValidator, chains []Chain, time uint64, initialSupply uint64, message string, ) (*Genesis, error)
New builds the genesis state of the P-Chain (and thereby the Avalanche network.) [avaxAssetID] is the ID of the AVAX asset [networkID] is the ID of the network [allocations] are the UTXOs on the Platform Chain that exist at genesis. [validators] are the validators of the primary network at genesis. [chains] are the chains that exist at genesis. time is the Platform Chain's time at network genesis. [initialSupply] is the initial supply of the AVAX asset. [message] is the message to be sent to the genesis UTXOs.
type PermissionlessValidator ¶ added in v1.13.1
type PermissionlessValidator struct {
	Validator
	RewardOwner        *Owner
	DelegationFee      float32
	ExactDelegationFee uint32
	Staked             []Allocation
	Signer             *signer.ProofOfPossession
}
    GenesisPermissionlessValidator represents a permissionless validator at genesis