Documentation ¶
Index ¶
- Variables
- func ClearPendingQueries(ctx sdk.Context, k icqkeeper.Keeper)
- func CreateUpgradeHandler(mm *module.Manager, configurator module.Configurator, cdc codec.Codec, ...) upgradetypes.UpgradeHandler
- func EnableLSMForGaia(ctx sdk.Context, k stakeibckeeper.Keeper) error
- func FundVestingAccount(ctx sdk.Context, k evmosvestingkeeper.Keeper, ...) error
- func InitAirdrops(ctx sdk.Context, claimKeeper claimkeeper.Keeper) error
- func MigrateAccount1(ctx sdk.Context, evk evmosvestingkeeper.Keeper, sk stakingkeeper.Keeper, ...) error
- func MigrateAccount2(ctx sdk.Context, ak authkeeper.AccountKeeper) error
- func MigrateStakeibcParams(ctx sdk.Context, k stakeibckeeper.Keeper)
- func SendConsumerFeePoolToFeeDistribution(ctx sdk.Context, ck *ccvconsumerkeeper.Keeper, bk bankkeeper.Keeper, ...) error
- func SetConsumerParams(ctx sdk.Context, ck *ccvconsumerkeeper.Keeper, sibc stakeibckeeper.Keeper) error
Constants ¶
This section is empty.
Variables ¶
var ( UpgradeName = "v14" GaiaChainId = "cosmoshub-4" // Vesting VestingStartTimeAccount1 = int64(1662350400) // Sept 4, 2022 VestingEndTimeAccount1 = int64(1788512452) VestingStartTimeAccount2 = int64(1662350400) // Sept 4, 2022 VestingEndTimeAccount2 = int64(1820016452) Account1 = "stride12z83xmrkr7stjk4q2vn95c02n7jryj55gd3aq3" Account1VestingUstrd = int64(187_500_000_000) Account2 = "stride1nwyvkxm89yg8e3fyxgruyct4zp90mg4nlk87lg" Account2VestingUstrd = int64(375_000_000_000) FunderAddress = "stride1avdulp2p7jjv37valeyt4c6fn6qtfhevr2ej3r" // ICS DistributionTransmissionChannel = "channel-0" // Module account address for consumer_rewards_pool (see: https://github.com/cosmos/interchain-security/blob/main/x/ccv/provider/types/keys.go#L33C25-L33C46) ProviderFeePoolAddrStr = "cosmos1ap0mh6xzfn8943urr84q6ae7zfnar48am2erhd" ConsumerRedistributionFraction = "0.85" Enabled = true RefundFraction = "0.4" // strided q auth module-account cons_to_send_to_provider ConsToSendToProvider = "stride1ywtansy6ss0jtq8ckrcv6jzkps8yh8mfmvxqvv" FeeCollector = "stride17xpfvakm2amg962yls6f84z3kell8c5lnjrul3" // Airdrop params AirdropDuration = time.Hour * 24 * 30 * 12 * 3 // 3 years AirdropStartTime = time.Date(2023, 9, 4, 16, 0, 0, 0, time.UTC) // Sept 4, 2023 @ 16:00 UTC (12:00 EST) InjectiveAirdropDistributor = "stride1gxy4qnm7pg2wzfpc3j7rk7ggvyq2ls944f0wus" InjectiveAirdropIdentifier = "injective" InjectiveChainId = "injective-1" ComdexAirdropDistributor = "stride1quag8me3n7h7qw2z0fm7khdemwummep6lnn3ja" ComdexAirdropIdentifier = "comdex" ComdexChainId = "comdex-1" SommAirdropDistributor = "stride13xxegkegnezayceeqdy98v2k8xyat5ah4umdwk" SommAirdropIdentifier = "sommelier" SommChainId = "sommelier-3" UmeeAirdropDistributor = "stride1qkj9hh08zk44zrw2krv5vn34qn8cwt7h2ppfxu" UmeeAirdropIdentifier = "umee" UmeeChainId = "umee-1" )
Functions ¶
func ClearPendingQueries ¶
Since the Query struct was updated, it's easier to just clear out any pending queries rather than attempt to migrate them
func CreateUpgradeHandler ¶
func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, cdc codec.Codec, accountKeeper authkeeper.AccountKeeper, bankKeeper bankkeeper.Keeper, claimKeeper claimkeeper.Keeper, consumerKeeper *ccvconsumerkeeper.Keeper, icqKeeper icqkeeper.Keeper, stakeibcKeeper stakeibckeeper.Keeper, stakingKeeper stakingkeeper.Keeper, evmosvestingKeeper evmosvestingkeeper.Keeper, stakeibcStoreKey storetypes.StoreKey, ) upgradetypes.UpgradeHandler
CreateUpgradeHandler creates an SDK upgrade handler for v14
func EnableLSMForGaia ¶
func EnableLSMForGaia(ctx sdk.Context, k stakeibckeeper.Keeper) error
Enable LSM liquid stakes for Gaia
func FundVestingAccount ¶
func FundVestingAccount(ctx sdk.Context, k evmosvestingkeeper.Keeper, stakingKeeper stakingkeeper.Keeper, accountKeeper authkeeper.AccountKeeper, bankKeeper bankkeeper.Keeper, msg *types.MsgFundVestingAccount) error
FundVestingAccount funds a ClawbackVestingAccount with the provided amount. This can only be executed by the funder of the vesting account.
Checks performed on the ValidateBasic include:
- funder and vesting addresses are correct bech32 format
- vesting address is not the zero address
- both vesting and lockup periods are non-empty
- both lockup and vesting periods contain valid amounts and lengths
- both vesting and lockup periods describe the same total amount
func InitAirdrops ¶
func InitAirdrops(ctx sdk.Context, claimKeeper claimkeeper.Keeper) error
func MigrateAccount1 ¶
func MigrateAccount1(ctx sdk.Context, evk evmosvestingkeeper.Keeper, sk stakingkeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) error
func MigrateAccount2 ¶
func MigrateAccount2(ctx sdk.Context, ak authkeeper.AccountKeeper) error
func MigrateStakeibcParams ¶
func MigrateStakeibcParams(ctx sdk.Context, k stakeibckeeper.Keeper)
Migrate the stakeibc params, specifically:
- Remove SafetyNumValidators
- Remove SafetyMaxSlashPercentage
- Add ValidatorSlashQueryThreshold
NOTE: If a parameter is added, the old params cannot be unmarshalled to the new schema. To get around this, we have to set each parameter explicitly Considering all mainnet stakeibc params are set to the default, we can just use that
func SendConsumerFeePoolToFeeDistribution ¶
func SendConsumerFeePoolToFeeDistribution(ctx sdk.Context, ck *ccvconsumerkeeper.Keeper, bk bankkeeper.Keeper, ak authkeeper.AccountKeeper, sk stakingkeeper.Keeper) error
func SetConsumerParams ¶
func SetConsumerParams(ctx sdk.Context, ck *ccvconsumerkeeper.Keeper, sibc stakeibckeeper.Keeper) error
Types ¶
This section is empty.