 Documentation
      ¶
      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
 Click to show internal directories. 
   Click to hide internal directories.