genesis
Package genesis
import "github.com/luxfi/node/vms/platformvm/genesis"Types
Allocation
Allocation is a UTXO on the Platform Chain that exists at the chain's genesis
func (a Allocation) Compare(other Allocation) intChain
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 blockchain runs. [FxIDs] are the IDs of the Fxs the blockchain supports. [Name] is a human-readable, non-unique name for the blockchain. [ChainID] is the ID of the chain that validates the blockchain
Genesis
Genesis represents a genesis state of the platform chain
func New(
utxoAssetID ids.ID,
networkID uint32,
allocations []Allocation,
validators []PermissionlessValidator,
chains []Chain,
time uint64,
initialSupply uint64,
message string,
) (*Genesis, error)func Parse(genesisBytes []byte) (*Genesis, error)func (g *Genesis) Bytes() ([]byte, error)Owner
Owner is the repr. of a reward owner at genesis
PermissionlessValidator
GenesisPermissionlessValidator represents a permissionless validator at genesis
UTXO
UTXO adds messages to UTXOs
Validator
Validator represents a validator at genesis