|
| 1 | +package config |
| 2 | + |
| 3 | +import ( |
| 4 | + "github.com/Factom-Asset-Tokens/factom" |
| 5 | + "github.com/pegnet/pegnetd/fat/fat2" |
| 6 | +) |
| 7 | + |
| 8 | +var ( |
| 9 | + OPRChain = factom.NewBytes32("a642a8674f46696cc47fdb6b65f9c87b2a19c5ea8123b3d2f0c13b6f33a9d5ef") |
| 10 | + SPRChain = factom.NewBytes32("d5e395125335a21cef0ceca528168e87fe929fdac1f156870c1b1be6502448b4") |
| 11 | + TransactionChain = factom.NewBytes32("cffce0f409ebba4ed236d49d89c70e4bd1f1367d86402a3363366683265a242d") |
| 12 | + |
| 13 | + // Acivation Heights |
| 14 | + |
| 15 | + PegnetActivation uint32 = 206421 |
| 16 | + GradingV2Activation uint32 = 210330 |
| 17 | + |
| 18 | + // TransactionConversionActivation indicates when tx/conversions go live on mainnet. |
| 19 | + // Target Activation Height is Oct 7, 2019 15 UTC |
| 20 | + TransactionConversionActivation uint32 = 213237 |
| 21 | + |
| 22 | + // This is when PEG is priced by the market cap equation |
| 23 | + // Estimated to be Oct 14 2019, 15:00:00 UTC |
| 24 | + PEGPricingActivation uint32 = 214287 |
| 25 | + |
| 26 | + // OneWaypFCTConversions makes pFCT a 1 way conversion. This means pFCT->pXXX, |
| 27 | + // but no asset can go into pFCT. AKA pXXX -/> pFCT. |
| 28 | + // The only way to aquire pFCT is to burn FCT. The burn command will remain. |
| 29 | + // Estimated to be Nov 25, 2019 17:47:00 UTC |
| 30 | + OneWaypFCTConversions uint32 = 220346 |
| 31 | + |
| 32 | + // Once this is activated, a maximum amount of PEG of 5,000 can be |
| 33 | + // converted per block. At a future height, a dynamic bank should be used. |
| 34 | + // Estimated to be Dec 9, 2019, 17:00 UTC |
| 35 | + PegnetConversionLimitActivation uint32 = 222270 |
| 36 | + |
| 37 | + // This is when PEG price is determined by the exchange price |
| 38 | + // Estimated to be Dec 9, 2019, 17:00 UTC |
| 39 | + PEGFreeFloatingPriceActivation uint32 = 222270 |
| 40 | + |
| 41 | + // V4OPRUpdate indicates the activation of additional currencies and ecdsa keys. |
| 42 | + // Estimated to be Feb 12, 2020, 18:00 UTC |
| 43 | + V4OPRUpdate uint32 = 231620 |
| 44 | + |
| 45 | + // V20HeightActivation indicates the activation of PegNet 2.0. |
| 46 | + // Estimated to be Aug 19th 2020 14:00 UTC |
| 47 | + V20HeightActivation uint32 = 258796 |
| 48 | + |
| 49 | + // Activation height for developer rewards |
| 50 | + V20DevRewardsHeightActivation uint32 = 260118 |
| 51 | + |
| 52 | + // SprSignatureActivation indicates the activation of SPR Signature. |
| 53 | + // Estimated to be Aug 28th 2020 |
| 54 | + SprSignatureActivation uint32 = 260118 |
| 55 | + |
| 56 | + // OneWaypAssetsConversions makes some pAssets a 1 way conversion. |
| 57 | + // pDCR, pDGB, pDOGE, pHBAR, pONT, pRVN, pBAT, pALGO, pBIF, pETB, pKES, pNGN, pRWF, pTZS, pUGX |
| 58 | + // These pAssets have got small marketcap, and these will be disabled for conversion. |
| 59 | + // Estimated to be Dec 3th 2020 |
| 60 | + OneWaySmallAssetsConversions uint32 = 274036 |
| 61 | + |
| 62 | + // V202EnhanceActivation indicates the activation of PegNet 2.0.2. |
| 63 | + // Estimated to be Dec 3th 2020 |
| 64 | + V202EnhanceActivation uint32 = 274036 |
| 65 | + |
| 66 | + // V204EnhanceActivation indicates the activation of PegNet 2.0.4. |
| 67 | + // Estimated to be Mar 16th 2021 |
| 68 | + V204EnhanceActivation uint32 = 288878 |
| 69 | + |
| 70 | + // V204EnhanceActivation indicates the activation that burns remaining airdrop amount. |
| 71 | + // Estimated to be April 16th 2021 |
| 72 | + V204BurnMintedTokenActivation uint32 = 294206 |
| 73 | + |
| 74 | + // PIP10AveragingActivation changes conversions to use the lesser of a rolling average and market price |
| 75 | + // for the source of a conversion, and the higher of the rolling average and the market price for the |
| 76 | + // target of a conversion |
| 77 | + // |
| 78 | + // Activation of 2.0.5 |
| 79 | + PIP10AverageActivation uint32 = 295190 |
| 80 | +) |
| 81 | + |
| 82 | +func SetAllActivations(act uint32) { |
| 83 | + PegnetActivation = act |
| 84 | + GradingV2Activation = act |
| 85 | + TransactionConversionActivation = act |
| 86 | + PEGPricingActivation = act |
| 87 | + OneWaypFCTConversions = act |
| 88 | + PegnetConversionLimitActivation = act |
| 89 | + PEGFreeFloatingPriceActivation = act |
| 90 | + fat2.Fat2RCDEActivation = act |
| 91 | + V4OPRUpdate = act |
| 92 | + V20HeightActivation = act |
| 93 | + V20DevRewardsHeightActivation = act |
| 94 | + OneWaySmallAssetsConversions = act |
| 95 | + SprSignatureActivation = act |
| 96 | + V202EnhanceActivation = act |
| 97 | + V204EnhanceActivation = act |
| 98 | + V204BurnMintedTokenActivation = act |
| 99 | + PIP10AverageActivation = act |
| 100 | +} |
0 commit comments