Documentation ¶
Index ¶
- Constants
- func CreateUpgradeHandler(mm *module.Manager, configurator module.Configurator, bk bankkeeper.Keeper, ...) upgradetypes.UpgradeHandler
- func MigrateContributorClaim(ctx sdk.Context, k *claimskeeper.Keeper)
- func MigrateFaucetBalances(ctx sdk.Context, bk bankkeeper.Keeper) error
- func MigrateSkippedEpochs(ctx sdk.Context, ik inflationkeeper.Keeper)
Constants ¶
const ( // UpgradeName is the shared upgrade plan name for mainnet and testnet UpgradeName = "v7.0.0" // MainnetUpgradeHeight defines the Evmos mainnet block height on which the upgrade will take place MainnetUpgradeHeight = 2_476_000 // TODO: TestnetUpgradeHeight defines the Evmos testnet block height on which the upgrade will take place TestnetUpgradeHeight = 2_176_500 // UpgradeInfo defines the binaries that will be used for the upgrade UpgradeInfo = `` /* 541-byte string literal not displayed */ // FaucetAddressFrom is the inaccessible secp address of the Testnet Faucet FaucetAddressFrom = "evmos1z4ya98ga2xnffn2mhjym7tzlsm49ec23890sze" // FaucetAddressTo is the new eth_secp address of the Testnet Faucet FaucetAddressTo = "evmos1ujm4z5v9zkdqm70xnptr027gqu90f7lxjr0fch" // ContributorAddrFrom is the lost address of an early contributor ContributorAddrFrom = "evmos1659xwt0hnu5humgek7scefhnpcm2w6hyvy4fsq" // ContributorAddrTo is the new address of an early contributor ContributorAddrTo = "evmos1pktlmqrz448cuazl98tqmsj4kjwpqpmaa0cjcf" )
Variables ¶
This section is empty.
Functions ¶
func CreateUpgradeHandler ¶
func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, bk bankkeeper.Keeper, ik inflationkeeper.Keeper, ck *claimskeeper.Keeper, ) upgradetypes.UpgradeHandler
CreateUpgradeHandler creates an SDK upgrade handler for v7
func MigrateContributorClaim ¶
func MigrateContributorClaim(ctx sdk.Context, k *claimskeeper.Keeper)
MigrateContributorClaim migrates the claims record of a specific early contributor from one address to another
func MigrateFaucetBalances ¶
func MigrateFaucetBalances(ctx sdk.Context, bk bankkeeper.Keeper) error
MigrateFaucetBalances transfers all balances of the inaccessible secp256k1 Faucet address on testnet to a eth_secp256k1 address.
func MigrateSkippedEpochs ¶
func MigrateSkippedEpochs(ctx sdk.Context, ik inflationkeeper.Keeper)
MigrateSkippedEpochs migrates the number of skipped epochs to be lower than the previous stored value, due to an overcounting of two epochs pre v6.0.0. - launch date: 2022-03-02 20:00:00 - halt date: 2022-03-06 22:11:42 (Block 58701) - relaunch date: 2022-04-27 18:00:00 - inflation turned on: 2022-06-06 6:35:30 (skippedEpochs (incorrect) = 94 at this point) - counting mechanism fixed: 2022-07-04 (v6.0.0) = current date: 2022-07-07 13:00:00 - currentEpochDay = 128 = currentEpochWeek = 19 - skippedEpochs (incorrectly calculated) = 94 - 127 epochs have fully passed since launch - Of these 127 epochs, inflation has been enabled (at the end of the epoch) for 4 (pre-halt) + 31 (post-inflation-enabled) = 35 epochs - So the number of skippedEpochs (those with inflation disabled) should be 127 - 35 = 92 epochs, not 94 epochs - Can also see this by calculating number of completed epochs between halt date and date inflation turned on: 92 epochs between 3/6/2022 22:11:42, 6/6/2022 6:35:30 Since skippedEpochs past v6.0.0 will be counted correctly (via PR #554), then we just account for the overcounting of 2 epochs
Types ¶
This section is empty.