mirror of
https://github.com/luxfi/upgrade.git
synced 2026-10-30 15:14:01 +00:00
Etna was the upstream-Avalanche fork name. Lux ships the same flag-day as "Quasar Edition" (per ~/work/lux/migration/LLM.md institutional memory, network activation Unix 1766708400 = 2025-12-25 16:20 PST). This renames the source-of-truth identifiers without changing activation timestamps (timestamps are policy and migrate separately): - Config.EtnaTime → Config.QuasarTime - Config.IsEtnaActivated → Config.IsQuasarActivated - json:"etnaTime" → json:"quasarTime" - upgradetest.Etna (Fork) → upgradetest.Quasar No backcompat aliases — forwards-only per project convention.
65 lines
1.1 KiB
Go
65 lines
1.1 KiB
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package upgradetest
|
|
|
|
const (
|
|
NoUpgrades Fork = iota
|
|
ApricotPhase1
|
|
ApricotPhase2
|
|
ApricotPhase3
|
|
ApricotPhase4
|
|
ApricotPhase5
|
|
ApricotPhasePre6
|
|
ApricotPhase6
|
|
ApricotPhasePost6
|
|
Banff
|
|
Cortina
|
|
Durango
|
|
Quasar
|
|
Fortuna
|
|
Granite
|
|
|
|
Latest = Granite
|
|
)
|
|
|
|
// Fork is an enum of all the major network upgrades.
|
|
type Fork int
|
|
|
|
func (f Fork) String() string {
|
|
switch f {
|
|
case Granite:
|
|
return "Granite"
|
|
case Fortuna:
|
|
return "Fortuna"
|
|
case Quasar:
|
|
return "Quasar"
|
|
case Durango:
|
|
return "Durango"
|
|
case Cortina:
|
|
return "Cortina"
|
|
case Banff:
|
|
return "Banff"
|
|
case ApricotPhasePost6:
|
|
return "ApricotPhasePost6"
|
|
case ApricotPhase6:
|
|
return "ApricotPhase6"
|
|
case ApricotPhasePre6:
|
|
return "ApricotPhasePre6"
|
|
case ApricotPhase5:
|
|
return "ApricotPhase5"
|
|
case ApricotPhase4:
|
|
return "ApricotPhase4"
|
|
case ApricotPhase3:
|
|
return "ApricotPhase3"
|
|
case ApricotPhase2:
|
|
return "ApricotPhase2"
|
|
case ApricotPhase1:
|
|
return "ApricotPhase1"
|
|
case NoUpgrades:
|
|
return "NoUpgrades"
|
|
default:
|
|
return "Unknown"
|
|
}
|
|
}
|