upgrade

package
v1.11.12-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InitiallyActiveTime       = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC)
	UnscheduledActivationTime = time.Date(9999, time.December, 1, 0, 0, 0, 0, time.UTC)

	Mainnet = Config{
		ApricotPhase1Time:            InitiallyActiveTime,
		ApricotPhase2Time:            InitiallyActiveTime,
		ApricotPhase3Time:            InitiallyActiveTime,
		ApricotPhase4Time:            InitiallyActiveTime,
		ApricotPhase4MinPChainHeight: 0,
		ApricotPhase5Time:            InitiallyActiveTime,
		ApricotPhasePre6Time:         time.Date(2022, time.September, 8, 20, 0, 0, 0, time.UTC),
		ApricotPhase6Time:            time.Date(2022, time.September, 8, 22, 0, 0, 0, time.UTC),
		ApricotPhasePost6Time:        time.Date(2022, time.September, 9, 3, 0, 0, 0, time.UTC),
		BanffTime:                    time.Date(2022, time.December, 19, 16, 0, 0, 0, time.UTC),
		CortinaTime:                  time.Date(2023, time.August, 17, 10, 0, 0, 0, time.UTC),

		CortinaXChainStopVertexID: ids.FromStringOrPanic("ewiCzJQVJLYCzeFMcZSe9huX9h7QJPVeMdgDGcTVGTzeNJ3kY"),
		DurangoTime:               time.Date(2024, time.May, 6, 8, 0, 0, 0, time.UTC),
		EtnaTime:                  UnscheduledActivationTime,
	}
	Tahoe = Config{
		ApricotPhase1Time:            InitiallyActiveTime,
		ApricotPhase2Time:            InitiallyActiveTime,
		ApricotPhase3Time:            InitiallyActiveTime,
		ApricotPhase4Time:            InitiallyActiveTime,
		ApricotPhase4MinPChainHeight: 0,
		ApricotPhase5Time:            InitiallyActiveTime,
		ApricotPhasePre6Time:         time.Date(2022, time.September, 8, 20, 0, 0, 0, time.UTC),
		ApricotPhase6Time:            time.Date(2022, time.September, 8, 22, 0, 0, 0, time.UTC),
		ApricotPhasePost6Time:        time.Date(2022, time.September, 9, 3, 0, 0, 0, time.UTC),
		BanffTime:                    time.Date(2022, time.December, 12, 14, 0, 0, 0, time.UTC),
		CortinaTime:                  time.Date(2023, time.June, 28, 15, 0, 0, 0, time.UTC),

		CortinaXChainStopVertexID: ids.FromStringOrPanic("RdWKZYgjgU2NicKHv8mpkR6jgo41W5aNwVhsX5sJgqshDAbQk"),
		DurangoTime:               time.Date(2024, time.April, 4, 0, 0, 0, 0, time.UTC),
		EtnaTime:                  UnscheduledActivationTime,
	}
	Default = Config{
		ApricotPhase1Time:            InitiallyActiveTime,
		ApricotPhase2Time:            InitiallyActiveTime,
		ApricotPhase3Time:            InitiallyActiveTime,
		ApricotPhase4Time:            InitiallyActiveTime,
		ApricotPhase4MinPChainHeight: 0,
		ApricotPhase5Time:            InitiallyActiveTime,
		ApricotPhasePre6Time:         InitiallyActiveTime,
		ApricotPhase6Time:            InitiallyActiveTime,
		ApricotPhasePost6Time:        InitiallyActiveTime,
		BanffTime:                    InitiallyActiveTime,
		CortinaTime:                  InitiallyActiveTime,
		CortinaXChainStopVertexID:    ids.Empty,
		DurangoTime:                  InitiallyActiveTime,

		EtnaTime: UnscheduledActivationTime,
	}

	ErrInvalidUpgradeTimes = errors.New("invalid upgrade configuration")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	ApricotPhase1Time            time.Time `json:"apricotPhase1Time"`
	ApricotPhase2Time            time.Time `json:"apricotPhase2Time"`
	ApricotPhase3Time            time.Time `json:"apricotPhase3Time"`
	ApricotPhase4Time            time.Time `json:"apricotPhase4Time"`
	ApricotPhase4MinPChainHeight uint64    `json:"apricotPhase4MinPChainHeight"`
	ApricotPhase5Time            time.Time `json:"apricotPhase5Time"`
	ApricotPhasePre6Time         time.Time `json:"apricotPhasePre6Time"`
	ApricotPhase6Time            time.Time `json:"apricotPhase6Time"`
	ApricotPhasePost6Time        time.Time `json:"apricotPhasePost6Time"`
	BanffTime                    time.Time `json:"banffTime"`
	CortinaTime                  time.Time `json:"cortinaTime"`
	CortinaXChainStopVertexID    ids.ID    `json:"cortinaXChainStopVertexID"`
	DurangoTime                  time.Time `json:"durangoTime"`
	EtnaTime                     time.Time `json:"etnaTime"`
}

func GetConfig

func GetConfig(networkID uint32) Config

func (*Config) IsApricotPhase1Activated

func (c *Config) IsApricotPhase1Activated(t time.Time) bool

func (*Config) IsApricotPhase2Activated

func (c *Config) IsApricotPhase2Activated(t time.Time) bool

func (*Config) IsApricotPhase3Activated

func (c *Config) IsApricotPhase3Activated(t time.Time) bool

func (*Config) IsApricotPhase4Activated

func (c *Config) IsApricotPhase4Activated(t time.Time) bool

func (*Config) IsApricotPhase5Activated

func (c *Config) IsApricotPhase5Activated(t time.Time) bool

func (*Config) IsApricotPhase6Activated

func (c *Config) IsApricotPhase6Activated(t time.Time) bool

func (*Config) IsApricotPhasePost6Activated

func (c *Config) IsApricotPhasePost6Activated(t time.Time) bool

func (*Config) IsApricotPhasePre6Activated

func (c *Config) IsApricotPhasePre6Activated(t time.Time) bool

func (*Config) IsBanffActivated

func (c *Config) IsBanffActivated(t time.Time) bool

func (*Config) IsCortinaActivated

func (c *Config) IsCortinaActivated(t time.Time) bool

func (*Config) IsDurangoActivated

func (c *Config) IsDurangoActivated(t time.Time) bool

func (*Config) IsEtnaActivated

func (c *Config) IsEtnaActivated(t time.Time) bool

func (*Config) Validate

func (c *Config) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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