Versions in this module Expand all Collapse all v1 v1.0.0 Jun 19, 2022 Changes in this version + var ApricotPhase0DefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC) + var ApricotPhase0Times = map[uint32]time.Time + var ApricotPhase1DefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC) + var ApricotPhase1Times = map[uint32]time.Time + var ApricotPhase2DefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC) + var ApricotPhase2Times = map[uint32]time.Time + var ApricotPhase3DefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC) + var ApricotPhase3Times = map[uint32]time.Time + var ApricotPhase4DefaultMinPChainHeight uint64 + var ApricotPhase4DefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC) + var ApricotPhase4MinPChainHeight = map[uint32]uint64 + var ApricotPhase4Times = map[uint32]time.Time + var ApricotPhase5DefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC) + var ApricotPhase5Times = map[uint32]time.Time + var Current = NewDefaultVersion(1, 7, 5) + var CurrentApp = NewDefaultApplication(constants.PlatformName, Current.Major(), Current.Minor(), Current.Patch()) + var CurrentDatabase = DatabaseVersion1_4_5 + var DatabaseVersion1_0_0 = NewDefaultVersion(1, 0, 0) + var DatabaseVersion1_4_5 = NewDefaultVersion(1, 4, 5) + var DefaultVersion1_0_0 = NewDefaultVersion(1, 0, 0) + var GitCommit string + var MinimumCompatibleVersion = NewDefaultApplication(constants.PlatformName, 1, 7, 0) + var MinimumUnmaskedVersion = NewDefaultApplication(constants.PlatformName, 1, 1, 0) + var PrevDatabase = DatabaseVersion1_0_0 + var PrevMinimumCompatibleVersion = NewDefaultApplication(constants.PlatformName, 1, 6, 0) + var PrevMinimumUnmaskedVersion = NewDefaultApplication(constants.PlatformName, 1, 0, 0) + var String string + var VersionParser = NewDefaultApplicationParser() + func GetApricotPhase0Time(networkID uint32) time.Time + func GetApricotPhase1Time(networkID uint32) time.Time + func GetApricotPhase2Time(networkID uint32) time.Time + func GetApricotPhase3Time(networkID uint32) time.Time + func GetApricotPhase4MinPChainHeight(networkID uint32) uint64 + func GetApricotPhase4Time(networkID uint32) time.Time + func GetApricotPhase5Time(networkID uint32) time.Time + type Application interface + App func() string + Before func(Application) bool + Compatible func(Application) error + func NewApplication(app string, appSeparator string, versionSeparator string, major int, minor int, ...) Application + func NewDefaultApplication(app string, major int, minor int, patch int) Application + type ApplicationParser interface + Parse func(string) (Application, error) + func NewApplicationParser(appSeparator string, versionSeparator string) ApplicationParser + func NewDefaultApplicationParser() ApplicationParser + type Compatibility interface + Compatible func(Application) error + MaskTime func() time.Time + Unmaskable func(Application) error + Version func() Application + WontMask func(Application) error + func GetCompatibility(networkID uint32) Compatibility + func NewCompatibility(version Application, minCompatable Application, minCompatableTime time.Time, ...) Compatibility + type Parser interface + Parse func(string) (Version, error) + func NewDefaultParser() Parser + func NewParser(prefix, separator string) Parser + type Version interface + Compare func(o Version) int + Major func() int + Minor func() int + Patch func() int + func NewDefaultVersion(major, minor, patch int) Version + func NewVersion(major, minor, patch int, prefix, versionSeparator string) Version