eras

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllegraEraDesc = EraDesc{
	Id:                      allegra.EraIdAllegra,
	Name:                    allegra.EraNameAllegra,
	DecodePParamsFunc:       DecodePParamsAllegra,
	DecodePParamsUpdateFunc: DecodePParamsUpdateAllegra,
	PParamsUpdateFunc:       PParamsUpdateAllegra,
	HardForkFunc:            HardForkAllegra,
	EpochLengthFunc:         EpochLengthShelley,
}
View Source
var AlonzoEraDesc = EraDesc{
	Id:                      alonzo.EraIdAlonzo,
	Name:                    alonzo.EraNameAlonzo,
	DecodePParamsFunc:       DecodePParamsAlonzo,
	DecodePParamsUpdateFunc: DecodePParamsUpdateAlonzo,
	PParamsUpdateFunc:       PParamsUpdateAlonzo,
	HardForkFunc:            HardForkAlonzo,
	EpochLengthFunc:         EpochLengthShelley,
}
View Source
var BabbageEraDesc = EraDesc{
	Id:                      babbage.EraIdBabbage,
	Name:                    babbage.EraNameBabbage,
	DecodePParamsFunc:       DecodePParamsBabbage,
	DecodePParamsUpdateFunc: DecodePParamsUpdateBabbage,
	PParamsUpdateFunc:       PParamsUpdateBabbage,
	HardForkFunc:            HardForkBabbage,
	EpochLengthFunc:         EpochLengthShelley,
}
View Source
var ByronEraDesc = EraDesc{
	Id:              byron.EraIdByron,
	Name:            byron.EraNameByron,
	EpochLengthFunc: EpochLengthByron,
}
View Source
var ConwayEraDesc = EraDesc{
	Id:                      conway.EraIdConway,
	Name:                    conway.EraNameConway,
	DecodePParamsFunc:       DecodePParamsConway,
	DecodePParamsUpdateFunc: DecodePParamsUpdateConway,
	PParamsUpdateFunc:       PParamsUpdateConway,
	HardForkFunc:            HardForkConway,
	EpochLengthFunc:         EpochLengthShelley,
}
View Source
var MaryEraDesc = EraDesc{
	Id:                      mary.EraIdMary,
	Name:                    mary.EraNameMary,
	DecodePParamsFunc:       DecodePParamsMary,
	DecodePParamsUpdateFunc: DecodePParamsUpdateMary,
	PParamsUpdateFunc:       PParamsUpdateMary,
	HardForkFunc:            HardForkMary,
	EpochLengthFunc:         EpochLengthShelley,
}
View Source
var ShelleyEraDesc = EraDesc{
	Id:                      shelley.EraIdShelley,
	Name:                    shelley.EraNameShelley,
	DecodePParamsFunc:       DecodePParamsShelley,
	DecodePParamsUpdateFunc: DecodePParamsUpdateShelley,
	PParamsUpdateFunc:       PParamsUpdateShelley,
	HardForkFunc:            HardForkShelley,
	EpochLengthFunc:         EpochLengthShelley,
}

Functions

func DecodePParamsAllegra

func DecodePParamsAllegra(data []byte) (any, error)

func DecodePParamsAlonzo

func DecodePParamsAlonzo(data []byte) (any, error)

func DecodePParamsBabbage

func DecodePParamsBabbage(data []byte) (any, error)

func DecodePParamsConway

func DecodePParamsConway(data []byte) (any, error)

func DecodePParamsMary

func DecodePParamsMary(data []byte) (any, error)

func DecodePParamsShelley

func DecodePParamsShelley(data []byte) (any, error)

func DecodePParamsUpdateAllegra

func DecodePParamsUpdateAllegra(data []byte) (any, error)

func DecodePParamsUpdateAlonzo

func DecodePParamsUpdateAlonzo(data []byte) (any, error)

func DecodePParamsUpdateBabbage

func DecodePParamsUpdateBabbage(data []byte) (any, error)

func DecodePParamsUpdateConway

func DecodePParamsUpdateConway(data []byte) (any, error)

func DecodePParamsUpdateMary

func DecodePParamsUpdateMary(data []byte) (any, error)

func DecodePParamsUpdateShelley

func DecodePParamsUpdateShelley(data []byte) (any, error)

func EpochLengthByron

func EpochLengthByron(
	nodeConfig *cardano.CardanoNodeConfig,
) (uint, uint, error)

func EpochLengthShelley

func EpochLengthShelley(
	nodeConfig *cardano.CardanoNodeConfig,
) (uint, uint, error)

func HardForkAllegra

func HardForkAllegra(
	nodeConfig *cardano.CardanoNodeConfig,
	prevPParams any,
) (any, error)

func HardForkAlonzo

func HardForkAlonzo(
	nodeConfig *cardano.CardanoNodeConfig,
	prevPParams any,
) (any, error)

func HardForkBabbage

func HardForkBabbage(
	nodeConfig *cardano.CardanoNodeConfig,
	prevPParams any,
) (any, error)

func HardForkConway

func HardForkConway(
	nodeConfig *cardano.CardanoNodeConfig,
	prevPParams any,
) (any, error)

func HardForkMary

func HardForkMary(
	nodeConfig *cardano.CardanoNodeConfig,
	prevPParams any,
) (any, error)

func HardForkShelley

func HardForkShelley(
	nodeConfig *cardano.CardanoNodeConfig,
	prevPParams any,
) (any, error)

func PParamsUpdateAllegra

func PParamsUpdateAllegra(currentPParams any, pparamsUpdate any) (any, error)

func PParamsUpdateAlonzo

func PParamsUpdateAlonzo(currentPParams any, pparamsUpdate any) (any, error)

func PParamsUpdateBabbage

func PParamsUpdateBabbage(currentPParams any, pparamsUpdate any) (any, error)

func PParamsUpdateConway

func PParamsUpdateConway(currentPParams any, pparamsUpdate any) (any, error)

func PParamsUpdateMary

func PParamsUpdateMary(currentPParams any, pparamsUpdate any) (any, error)

func PParamsUpdateShelley

func PParamsUpdateShelley(currentPParams any, pparamsUpdate any) (any, error)

Types

type EraDesc

type EraDesc struct {
	Id                      uint
	Name                    string
	DecodePParamsFunc       func([]byte) (any, error)
	DecodePParamsUpdateFunc func([]byte) (any, error)
	PParamsUpdateFunc       func(any, any) (any, error)
	HardForkFunc            func(*cardano.CardanoNodeConfig, any) (any, error)
	EpochLengthFunc         func(*cardano.CardanoNodeConfig) (uint, uint, error)
}

Jump to

Keyboard shortcuts

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