Documentation ¶
Index ¶
- Variables
- func AddUpgradePoint(version uint32, height uint64) error
- func CleanupUpgradeBox()
- func InitUpgradeBox(box UpgradeBox) error
- func IsDexFeeUpgrade(sHeight uint64) bool
- func IsDexMiningUpgrade(sHeight uint64) bool
- func IsDexRobotUpgrade(sHeight uint64) bool
- func IsDexStableMarketUpgrade(sHeight uint64) bool
- func IsDexUpgrade(sHeight uint64) bool
- func IsEarthUpgrade(sHeight uint64) bool
- func IsLeafUpgrade(sHeight uint64) bool
- func IsSeedUpgrade(sHeight uint64) bool
- func IsStemUpgrade(sHeight uint64) bool
- func IsUpgradePoint(sHeight uint64) bool
- func IsVersion10Upgrade(sHeight uint64) bool
- func IsVersion11Upgrade(sHeight uint64) bool
- func IsVersionXUpgrade(sHeight uint64) bool
- func NewCustomUpgradeBox(points map[string]*UpgradePoint) *upgradeBox
- func NewEmptyUpgradeBox() *upgradeBox
- func NewLatestUpgradeBox() *upgradeBox
- func NewMainnetUpgradeBox() *upgradeBox
- type UpgradeBox
- type UpgradePoint
Constants ¶
This section is empty.
Variables ¶
var EndlessHeight = uint64(1000000000)
Functions ¶
func AddUpgradePoint ¶ added in v2.11.3
func CleanupUpgradeBox ¶
func CleanupUpgradeBox()
func InitUpgradeBox ¶
func InitUpgradeBox(box UpgradeBox) error
func IsDexFeeUpgrade ¶
IsDexFeeUpgrade checks whether current snapshot block height is over dex fee hard fork. Vite pre-mainnet hard forks at snapshot block height 8013367. Dex fee hard fork is an emergency hard fork to solve one wrongly placed order which has caused ViteX failed to display user balances.
func IsDexMiningUpgrade ¶
func IsDexRobotUpgrade ¶
func IsDexUpgrade ¶
IsDexUpgrade checks whether current snapshot block height is over sprout hard fork. Vite pre-mainnet hard forks at snapshot block height 5442723. Features:
- Dynamic quota acquisition. Quota acquisition from staking will reduce when network traffic rate is too high.
- Adjustment of quota consumption for some built-in contract transactions and VM instructions.
- ViteX decentralized exchange support.
func IsEarthUpgrade ¶
func IsLeafUpgrade ¶
func IsSeedUpgrade ¶
IsSeedUpgrade checks whether current snapshot block height is over seed hard fork. Vite pre-mainnet hard forks at snapshot block height 3488471. Contents:
- Vm log list hash add account address and prevHash since seed fork.
- Create contract params add seed count since seed fork.
- Verifier verifies seed count since seed fork.
- Vm interpreters add SEED opcode since seed fork.
func IsStemUpgrade ¶
IsStemUpgrade checks whether current snapshot block height is over stem hard fork. Vite pre-mainnet hard forks at snapshot block height 8403110. Features:
- Capability of placing/cancelling orders via delegation.
- Super VIP membership. Stake and then enjoy zero trading fee! (Additional operator fee cannot be exempted)
func IsUpgradePoint ¶
func IsVersion10Upgrade ¶
func IsVersion11Upgrade ¶ added in v2.11.3
func IsVersionXUpgrade ¶
func NewCustomUpgradeBox ¶
func NewCustomUpgradeBox(points map[string]*UpgradePoint) *upgradeBox
func NewEmptyUpgradeBox ¶
func NewEmptyUpgradeBox() *upgradeBox
func NewMainnetUpgradeBox ¶
func NewMainnetUpgradeBox() *upgradeBox
Types ¶
type UpgradeBox ¶
type UpgradeBox interface { UpgradePoints() []*UpgradePoint AddPoint(version uint32, height uint64) UpgradeBox // contains filtered or unexported methods }
type UpgradePoint ¶
func GetActivePoints ¶
func GetActivePoints(sHeight uint64) []*UpgradePoint
func GetAllPoints ¶
func GetAllPoints() []*UpgradePoint
func GetCurPoint ¶
func GetCurPoint(sHeight uint64) *UpgradePoint
func GetLatestPoint ¶
func GetLatestPoint() *UpgradePoint
func GetLeafUpgradePoint ¶
func GetLeafUpgradePoint() UpgradePoint