v7

package
v8.0.0-...-3c7b58a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UpgradeName is the shared upgrade plan name for mainnet and testnet
	UpgradeName = "v1.0.3a"
	// MainnetUpgradeHeight defines the Arcis mainnet block height on which the upgrade will take place
	MainnetUpgradeHeight = 0
	// TODO: TestnetUpgradeHeight defines the Arcis testnet block height on which the upgrade will take place
	TestnetUpgradeHeight = 0
	// UpgradeInfo defines the binaries that will be used for the upgrade
	UpgradeInfo = `` /* 557-byte string literal not displayed */

	// FaucetAddressFrom is the inaccessible secp address of the Testnet Faucet
	FaucetAddressFrom = "arcis1z4ya98ga2xnffn2mhjym7tzlsm49ec23890sze"
	// FaucetAddressTo is the new eth_secp address of the Testnet Faucet
	FaucetAddressTo = "arcis1ujm4z5v9zkdqm70xnptr027gqu90f7lxjr0fch"

	// ContributorAddrFrom is the lost address of an early contributor
	ContributorAddrFrom = "arcis1659xwt0hnu5humgek7scefhnpcm2w6hyvy4fsq"
	// ContributorAddrTo is the new address of an early contributor
	ContributorAddrTo = "arcis1pktlmqrz448cuazl98tqmsj4kjwpqpmaa0cjcf"
)

Variables

This section is empty.

Functions

func CreateUpgradeHandler

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL