upgrade

package
v1.11.12-ubuntu-noble.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: BSD-3-Clause Imports: 5 Imported by: 22

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:            time.Date(2021, time.March, 31, 14, 0, 0, 0, time.UTC),
		ApricotPhase2Time:            time.Date(2021, time.May, 10, 11, 0, 0, 0, time.UTC),
		ApricotPhase3Time:            time.Date(2021, time.August, 24, 14, 0, 0, 0, time.UTC),
		ApricotPhase4Time:            time.Date(2021, time.September, 22, 21, 0, 0, 0, time.UTC),
		ApricotPhase4MinPChainHeight: 793005,
		ApricotPhase5Time:            time.Date(2021, time.December, 2, 18, 0, 0, 0, time.UTC),
		ApricotPhasePre6Time:         time.Date(2022, time.September, 5, 1, 30, 0, 0, time.UTC),
		ApricotPhase6Time:            time.Date(2022, time.September, 6, 20, 0, 0, 0, time.UTC),
		ApricotPhasePost6Time:        time.Date(2022, time.September, 7, 3, 0, 0, 0, time.UTC),
		BanffTime:                    time.Date(2022, time.October, 18, 16, 0, 0, 0, time.UTC),
		CortinaTime:                  time.Date(2023, time.April, 25, 15, 0, 0, 0, time.UTC),

		CortinaXChainStopVertexID: ids.FromStringOrPanic("jrGWDh5Po9FMj54depyunNixpia5PN4aAYxfmNzU8n752Rjga"),
		DurangoTime:               time.Date(2024, time.March, 6, 16, 0, 0, 0, time.UTC),
		EtnaTime:                  UnscheduledActivationTime,
	}
	Fuji = Config{
		ApricotPhase1Time:            time.Date(2021, time.March, 26, 14, 0, 0, 0, time.UTC),
		ApricotPhase2Time:            time.Date(2021, time.May, 5, 14, 0, 0, 0, time.UTC),
		ApricotPhase3Time:            time.Date(2021, time.August, 16, 19, 0, 0, 0, time.UTC),
		ApricotPhase4Time:            time.Date(2021, time.September, 16, 21, 0, 0, 0, time.UTC),
		ApricotPhase4MinPChainHeight: 47437,
		ApricotPhase5Time:            time.Date(2021, time.November, 24, 15, 0, 0, 0, time.UTC),
		ApricotPhasePre6Time:         time.Date(2022, time.September, 6, 20, 0, 0, 0, time.UTC),
		ApricotPhase6Time:            time.Date(2022, time.September, 6, 20, 0, 0, 0, time.UTC),
		ApricotPhasePost6Time:        time.Date(2022, time.September, 7, 6, 0, 0, 0, time.UTC),
		BanffTime:                    time.Date(2022, time.October, 3, 14, 0, 0, 0, time.UTC),
		CortinaTime:                  time.Date(2023, time.April, 6, 15, 0, 0, 0, time.UTC),

		CortinaXChainStopVertexID: ids.FromStringOrPanic("2D1cmbiG36BqQMRyHt4kFhWarmatA1ighSpND3FeFgz3vFVtCZ"),
		DurangoTime:               time.Date(2024, time.February, 13, 16, 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