cardano

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CardanoNodeConfig

type CardanoNodeConfig struct {
	AlonzoGenesisFile string `yaml:"AlonzoGenesisFile"`
	AlonzoGenesisHash string `yaml:"AlonzoGenesisHash"`

	ByronGenesisFile string `yaml:"ByronGenesisFile"`
	ByronGenesisHash string `yaml:"ByronGenesisHash"`

	ConwayGenesisFile string `yaml:"ConwayGenesisFile"`
	ConwayGenesisHash string `yaml:"ConwayGenesisHash"`

	ShelleyGenesisFile string `yaml:"ShelleyGenesisFile"`
	ShelleyGenesisHash string `yaml:"ShelleyGenesisHash"`
	// contains filtered or unexported fields
}

CardanoNodeConfig represents the config.json/yaml file used by cardano-node

func NewCardanoNodeConfigFromFile

func NewCardanoNodeConfigFromFile(file string) (*CardanoNodeConfig, error)

func NewCardanoNodeConfigFromReader

func NewCardanoNodeConfigFromReader(r io.Reader) (*CardanoNodeConfig, error)

func (*CardanoNodeConfig) AlonzoGenesis

func (c *CardanoNodeConfig) AlonzoGenesis() *alonzo.AlonzoGenesis

AlonzoGenesis returns the Alonzo genesis config specified in the cardano-node config

func (*CardanoNodeConfig) ByronGenesis

func (c *CardanoNodeConfig) ByronGenesis() *byron.ByronGenesis

ByronGenesis returns the Byron genesis config specified in the cardano-node config

func (*CardanoNodeConfig) ConwayGenesis

func (c *CardanoNodeConfig) ConwayGenesis() *conway.ConwayGenesis

ConwayGenesis returns the Conway genesis config specified in the cardano-node config

func (*CardanoNodeConfig) ShelleyGenesis

func (c *CardanoNodeConfig) ShelleyGenesis() *shelley.ShelleyGenesis

ShelleyGenesis returns the Shelley genesis config specified in the cardano-node config

Jump to

Keyboard shortcuts

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