Documentation ¶
Index ¶
Constants ¶
View Source
const ( // UpgradeName defines the on-chain upgrade name. UpgradeName = "v16" RateLimitDenom = "uatom" RateLimitDurationHours = 24 )
Variables ¶
View Source
var RateLimits = map[string]ratelimittypes.MsgAddRateLimit{ "osmosis-1": { MaxPercentSend: sdkmath.NewInt(5), MaxPercentRecv: sdkmath.NewInt(5), ChannelId: "channel-141", }, "neutron-1": { MaxPercentSend: sdkmath.NewInt(1), MaxPercentRecv: sdkmath.NewInt(1), ChannelId: "channel-569", }, "stride-1": { MaxPercentSend: sdkmath.NewInt(1), MaxPercentRecv: sdkmath.NewInt(1), ChannelId: "channel-391", }, "kaiyo-1": { MaxPercentSend: sdkmath.NewInt(1), MaxPercentRecv: sdkmath.NewInt(1), ChannelId: "channel-343", }, "injective-1": { MaxPercentSend: sdkmath.NewInt(1), MaxPercentRecv: sdkmath.NewInt(1), ChannelId: "channel-220", }, "core-1": { MaxPercentSend: sdkmath.NewInt(1), MaxPercentRecv: sdkmath.NewInt(1), ChannelId: "channel-190", }, "secret-4": { MaxPercentSend: sdkmath.NewInt(1), MaxPercentRecv: sdkmath.NewInt(1), ChannelId: "channel-235", }, }
View Source
var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, CreateUpgradeHandler: CreateUpgradeHandler, StoreUpgrades: store.StoreUpgrades{ Added: []string{ ratelimittypes.ModuleName, icacontrollertypes.SubModuleName, ibcfeetypes.ModuleName, }, }, }
Functions ¶
func AddRateLimits ¶
func AddRateLimits(ctx sdk.Context, k ratelimitkeeper.Keeper) error
Add rate limits as per https://www.mintscan.io/cosmos/proposals/890
func CreateUpgradeHandler ¶
func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, keepers *keepers.AppKeepers, ) upgradetypes.UpgradeHandler
func InitICSEpochs ¶
func InitICSEpochs(ctx sdk.Context, pk providerkeeper.Keeper, sk stakingkeeper.Keeper) error
NOTE: This is commented out because the valset is already initialized and the function has no effect ComputeNextEpochConsumerValSet was removed and build was broken code is kept here for reference
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.