Documentation
¶
Index ¶
- type CardanoNodeConfig
- func (c *CardanoNodeConfig) AlonzoGenesis() *alonzo.AlonzoGenesis
- func (c *CardanoNodeConfig) ByronGenesis() *byron.ByronGenesis
- func (c *CardanoNodeConfig) ConwayGenesis() *conway.ConwayGenesis
- func (c *CardanoNodeConfig) LoadAlonzoGenesisFromReader(r io.Reader) error
- func (c *CardanoNodeConfig) LoadByronGenesisFromReader(r io.Reader) error
- func (c *CardanoNodeConfig) LoadConwayGenesisFromReader(r io.Reader) error
- func (c *CardanoNodeConfig) LoadShelleyGenesisFromReader(r io.Reader) error
- func (c *CardanoNodeConfig) ShelleyGenesis() *shelley.ShelleyGenesis
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) LoadAlonzoGenesisFromReader ¶ added in v0.6.0
func (c *CardanoNodeConfig) LoadAlonzoGenesisFromReader(r io.Reader) error
LoadAlonzoGenesisFromReader loads a Alonzo genesis config from an io.Reader This is useful mostly for tests
func (*CardanoNodeConfig) LoadByronGenesisFromReader ¶ added in v0.6.0
func (c *CardanoNodeConfig) LoadByronGenesisFromReader(r io.Reader) error
LoadByronGenesisFromReader loads a Byron genesis config from an io.Reader This is useful mostly for tests
func (*CardanoNodeConfig) LoadConwayGenesisFromReader ¶ added in v0.6.0
func (c *CardanoNodeConfig) LoadConwayGenesisFromReader(r io.Reader) error
LoadConwayGenesisFromReader loads a Conway genesis config from an io.Reader This is useful mostly for tests
func (*CardanoNodeConfig) LoadShelleyGenesisFromReader ¶ added in v0.6.0
func (c *CardanoNodeConfig) LoadShelleyGenesisFromReader(r io.Reader) error
LoadShelleyGenesisFromReader loads a Shelley genesis config from an io.Reader This is useful mostly for tests
func (*CardanoNodeConfig) ShelleyGenesis ¶
func (c *CardanoNodeConfig) ShelleyGenesis() *shelley.ShelleyGenesis
ShelleyGenesis returns the Shelley genesis config specified in the cardano-node config