v5

package
v6.0.0-...-f74867c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// UpgradeName is the shared upgrade plan name for mainnet and testnet
	UpgradeName = "v1.0.0"
	// TestnetUpgradeHeight defines the Arcis testnet block height on which the upgrade will take place
	TestnetUpgradeHeight = 1_762_500
	// UpgradeInfo defines the binaries that will be used for the upgrade
	UpgradeInfo = `` /* 617-byte string literal not displayed */
	// ContributorAddrFrom is the lost address of an early contributor
	ContributorAddrFrom = "arcis13cf9npvns2vhh3097909mkhfxngmw6d6eppfm4"
	// ContributorAddrTo is the new address of an early contributor
	ContributorAddrTo = "arcis1hmntpkn623y3vl0nvzrazvq4rqzv3xa74l40gl"
	// AvgBlockTime defines the new expected average blocktime on mainnet and testnet
	//
	// CONTRACT: in order for AvgBlockTime to represent an accurate value on-chain, validator nodes
	// will need to update their "timeout_commit" value to "1s" on the config.toml under the
	// "Consensus Configuration Options" section
	//
	// NOTE: the value is calculated based that it takes <1s to reach consensus and 1s for
	// "timeout_commit" duration
	AvgBlockTime = 2 * time.Second
)

Variables

View Source
var (
	// MainnetMinGasPrices defines 20B aarcis (or atarcis) as the minimum gas price value on the fee market module.
	// See https://commonwealth.im/arcis/discussion/5073-global-min-gas-price-value-for-cosmos-sdk-and-evm-transaction-choosing-a-value for reference
	MainnetMinGasPrices = sdk.NewDec(20_000_000_000)
	// MainnetMinGasMultiplier defines the min gas multiplier value on the fee market module.
	// 50% of the leftover gas will be refunded
	MainnetMinGasMultiplier = sdk.NewDecWithPrec(5, 1)
)
View Source
var TestnetDenomMetadata = banktypes.Metadata{
	Description: "The native EVM, governance and staking token of the Arcis testnet",
	DenomUnits: []*banktypes.DenomUnit{
		{
			Denom:    "atarcis",
			Exponent: 0,
			Aliases:  []string{"attotarcis"},
		},
		{
			Denom:    "tarcis",
			Exponent: 18,
		},
	},
	Base:    "atarcis",
	Display: "tarcis",
	Name:    "Testnet Arcis",
	Symbol:  "tARCIS",
}

TestnetDenomMetadata defines the metadata for the tARCIS denom on testnet

Functions

func CreateUpgradeHandler

CreateUpgradeHandler creates an SDK upgrade handler for v5

func MigrateContributorClaim

func MigrateContributorClaim(ctx sdk.Context, k *claimskeeper.Keeper)

MigrateContributorClaim migrates the claims record of a specific early contributor (Blockchain at Berkeley) from one address to another. See https://medium.com/arcis/the-arcis-rektdrop-abbe931ba823 for details about Early Contributors.

func MigrateGenesis

func MigrateGenesis(appState genutiltypes.AppMap, clientCtx client.Context) genutiltypes.AppMap

MigrateGenesis migrates exported state from v4 to v5 genesis state. It performs a no-op if the migration errors.

func ResolveAirdrop

func ResolveAirdrop(ctx sdk.Context, k *claimskeeper.Keeper)

ResolveAirdrop iterates over all the available claim records and attempts to swap claimed actions and unclaimed actions. The following priority is considered, and only one swap will be performed: 1 - Unclaimed EVM <-> claimed IBC 2 - Unclaimed EVM <-> claimed Vote 3 - Unclaimed EVM <-> claimed Delegate 4 - Unclaimed Vote <-> claimed IBC 5 - Unclaimed Delegate <-> claimed IBC

Rationale: A few users tokens are still locked due to issues with the airdrop By swapping claimed actions we allow the users to migrate the records via IBC if needed or mark the Evm action as completed for the Keplr users who are not able to complete it Since no actual claiming of action is occurring, balance will remain unchanged

func UpdateConsensusParams

func UpdateConsensusParams(ctx sdk.Context, sk stakingkeeper.Keeper, pk paramskeeper.Keeper)

UpdateConsensusParams updates the Tendermint Consensus Evidence params (MaxAgeDuration and MaxAgeNumBlocks) to match the unbonding period and use the expected avg block time based on the node configuration.

func UpdateIBCDenomTraces

func UpdateIBCDenomTraces(ctx sdk.Context, transferKeeper ibctransferkeeper.Keeper)

UpdateIBCDenomTraces iterates over current traces to check if any of them are incorrectly formed and corrects the trace information. See https://github.com/cosmos/ibc-go/blob/main/docs/migrations/support-denoms-with-slashes.md for context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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