v16

package
v17.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

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",
	},
}

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.

Jump to

Keyboard shortcuts

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