cardano

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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, error)

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

func (*CardanoNodeConfig) ByronGenesis

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

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

func (*CardanoNodeConfig) ConwayGenesis

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

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

func (*CardanoNodeConfig) ShelleyGenesis

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

ShelleyGenesis loads and 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