v11

package
v12.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: LGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UpgradeName is the shared upgrade plan name for mainnet
	UpgradeName = "v11.0.0"
	// UpgradeInfo defines the binaries that will be used for the upgrade
	UpgradeInfo = `` /* 568-byte string literal not displayed */

	// at the time of this migration, on mainnet, channels 0 to 37 were open
	// so this migration covers those channels only
	OpenChannels = 37

	// FundingAccount is the account which holds the rewards for the incentivized testnet.
	// It contains ~7.4M tokens, of which ~5.6M are to be distributed.
	FundingAccount = "sx1f7vxxvmd544dkkmyxan76t76d39k7j3gr8d45y"
)

Variables

View Source
var Allocations = [1][3]string{
	{
		"sx1az0eeqw5222en0enxz9ect3s8xy4kayz7khcn2",
		"72232472320000001048576",
		"evmosvaloper1aep37tvd5yh4ydeya2a88g2tkjz6f2lcrfjumh",
	},
}

Allocations are rewards by participant address, along with the randomized validator to stake to.

Functions

func CreateUpgradeHandler

CreateUpgradeHandler creates an SDK upgrade handler for v11

func DistributeRewards

func DistributeRewards(ctx sdk.Context, bk bankkeeper.Keeper, sk stakingkeeper.Keeper,
	dk distributionkeeper.Keeper,
) error

DistributeRewards distributes the token allocations from the Olympus Mons incentivized testnet for completing the Mars Meteor Missions

func HandleRewardDistribution

func HandleRewardDistribution(
	ctx sdk.Context,
	logger log.Logger,
	bk bankkeeper.Keeper,
	sk stakingkeeper.Keeper,
	dk distributionkeeper.Keeper,
)

HandleRewardDistribution handles the logic for the reward distribution, it only commits to the db if successful

func MigrateEscrowAccounts

func MigrateEscrowAccounts(ctx sdk.Context, logger log.Logger, ak authkeeper.AccountKeeper)

MigrateEscrowAccounts updates the IBC transfer escrow accounts type to ModuleAccount

Types

This section is empty.

Jump to

Keyboard shortcuts

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