v15

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UpgradeName defines the on-chain upgrade name.
	UpgradeName = "v15"
)

Variables

Functions

func ClawbackVestingFunds

func ClawbackVestingFunds(ctx sdk.Context, address sdk.AccAddress, keepers *keepers.AppKeepers) error

ClawbackVestingFunds transfers the vesting tokens from the given vesting account to the community pool

func CreateUpgradeHandler

func CreateUpgradeHandler(
	mm *module.Manager,
	configurator module.Configurator,
	keepers *keepers.AppKeepers,
) upgradetypes.UpgradeHandler

CreateUpgradeHandler returns a upgrade handler for Onomy v15 which executes the following migrations:

func SetMinInitialDepositRatio

func SetMinInitialDepositRatio(ctx sdk.Context, gk govkeeper.Keeper) error

SetMinInitialDepositRatio sets the MinInitialDepositRatio param of the gov module to 10% - this is the proportion of the deposit value that must be paid at proposal submission.

func UpgradeEscrowAccounts

func UpgradeEscrowAccounts(ctx sdk.Context, bankKeeper bankkeeper.Keeper, transferKeeper ibctransferkeeper.Keeper)

UpgradeEscrowAccounts mints the necessary assets to reach parity between the escrow account and the counterparty total supply, and then, send them from the transfer module to the escrow account.

func UpgradeMinCommissionRate

func UpgradeMinCommissionRate(ctx sdk.Context, sk stakingkeeper.Keeper) error

UpgradeMinCommissionRate sets the minimum commission rate staking parameter to 5% and updates the commission rate for all validators that have a commission rate less than 5% adhere to prop 826 which sets the minimum commission rate to 5% for all validators https://www.mintscan.io/cosmos/proposals/826

func UpgradeSigningInfos

func UpgradeSigningInfos(ctx sdk.Context, sk slashingkeeper.Keeper)

UpgradeSigningInfos updates the signing infos of validators for which the consensus address is missing

Types

type UpdateCoins

type UpdateCoins struct {
	Address string
	Coins   sdk.Coins
}

func GetEscrowUpdates

func GetEscrowUpdates(ctx sdk.Context) []UpdateCoins

Jump to

Keyboard shortcuts

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