Documentation ¶
Index ¶
- Constants
- Variables
- func ClawbackVestingFunds(ctx sdk.Context, address sdk.AccAddress, keepers *keepers.AppKeepers) error
- func CreateUpgradeHandler(mm *module.Manager, configurator module.Configurator, ...) upgradetypes.UpgradeHandler
- func SetMinInitialDepositRatio(ctx sdk.Context, gk govkeeper.Keeper) error
- func UpgradeEscrowAccounts(ctx sdk.Context, bankKeeper bankkeeper.Keeper, ...)
- func UpgradeMinCommissionRate(ctx sdk.Context, sk stakingkeeper.Keeper) error
- func UpgradeSigningInfos(ctx sdk.Context, sk slashingkeeper.Keeper)
- type UpdateCoins
Constants ¶
const (
// UpgradeName defines the on-chain upgrade name.
UpgradeName = "v15"
)
Variables ¶
var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, CreateUpgradeHandler: CreateUpgradeHandler, StoreUpgrades: store.StoreUpgrades{ Added: []string{ crisistypes.ModuleName, consensustypes.ModuleName, }, }, }
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 Gaia v15 which executes the following migrations:
- adhere to prop 826 which sets the minimum commission rate to 5% for all validators, see https://www.mintscan.io/cosmos/proposals/826
- update the slashing module SigningInfos for which the consensus address is empty, see https://github.com/cosmos/gaia/issues/1734.
- adhere to signal prop 860 which claws back vesting funds see https://www.mintscan.io/cosmos/proposals/860
- update the transfer module's escrow accounts for which there is a discrepancy with the counterparty chain supply.
func SetMinInitialDepositRatio ¶
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 ¶
func GetEscrowUpdates ¶
func GetEscrowUpdates(ctx sdk.Context) []UpdateCoins