genesis

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: BSD-3-Clause Imports: 3 Imported by: 4

Documentation

Index

Constants

View Source
const CodecVersion = block.CodecVersion

Variables

Functions

This section is empty.

Types

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 Parse

func Parse(genesisBytes []byte) (*Genesis, error)

type UTXO

type UTXO struct {
	avax.UTXO `serialize:"true"`
	Message   []byte `serialize:"true" json:"message"`
}

UTXO adds messages to UTXOs

Jump to

Keyboard shortcuts

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