Documentation ¶
Index ¶
- Constants
- Variables
- func AllocateNeutronAndStrideUnaccountedDenoms(ctx sdk.Context, providerKeeper providerkeeper.Keeper, ...) error
- func AllocateRewards(ctx sdk.Context, providerKeeper providerkeeper.Keeper, ...) error
- func CreateUpgradeHandler(mm *module.Manager, configurator module.Configurator, ...) upgradetypes.UpgradeHandler
- func HasExpectedChainIDSanityCheck(ctx sdk.Context, providerKeeper providerkeeper.Keeper, consumerID string, ...) bool
- func InitializeConstitutionCollection(ctx sdk.Context, govKeeper govkeeper.Keeper) error
- func InitializeGovParams(ctx sdk.Context, govKeeper govkeeper.Keeper) error
Constants ¶
const ( NeutronUusdc = "ibc/4E0D0854C0F846150FA8389D75EA5B5129B17703D7F4992D0356B4FE7C013D42" // ~$40 NeutronUtia = "ibc/7054742D02E4F28B7DB5B44D97A496CF5AD16C2AE6948028A5FD57DCE7C5E271" // ~$300 StrideStutia = "ibc/17DABEBAC71C388DA064A3D54FB7E68BAF0687965EC39DEADA1FB78C0F1447E6" // ~$18,000 StrideStadym = "ibc/3F0A41ECB6FAF27E315583DBF39B5B69A7149D23959A0E4B319F7EF5C618DCD7" // ~$800 StrideStaISLM = "ibc/61A6F21D6AFF9835F66056461F1CAE24AA3323820259856B485FE7C063CA4FA6" // ~$1650 StrideStuband = "ibc/E9401AC885592AC2023E0FB9BA7C8BC66D346CEE04CED8E9F545F3C25290708A" // ~$300 StrideStadydx = "ibc/EEFD952A6DE346F2649039E99A16430B05FFEDF628A4DE99F34BB4B5F6A9346E" // ~$21,000 StrideStusaga = "ibc/F918765AC289257B35DECC52BD92EBCDBA3C139658BD6F2670D70A6E10B97F58" // ~$300 )
Neutron and Stride denoms that were not whitelisted but the consumer rewards pool contains amounts of those denoms. Price in $ for each denom corresponds to an approximation fo the current amount stored in the consumer rewards pool as of 27.09.2024. Only denoms with amounts more than $10 are included.
const (
// UpgradeName defines the on-chain upgrade name.
UpgradeName = "v21"
)
Variables ¶
var Upgrade = upgrades.Upgrade{ UpgradeName: UpgradeName, CreateUpgradeHandler: CreateUpgradeHandler, }
Functions ¶
func AllocateNeutronAndStrideUnaccountedDenoms ¶
func AllocateNeutronAndStrideUnaccountedDenoms(ctx sdk.Context, providerKeeper providerkeeper.Keeper, bankKeeper bankkeeper.Keeper, accountKeeper authkeeper.AccountKeeper) error
AllocateNeutronAndStrideUnaccountedDenoms allocates previously unaccounted denoms to the Stride and Neutron consumer chains
func AllocateRewards ¶
func AllocateRewards(ctx sdk.Context, providerKeeper providerkeeper.Keeper, bankKeeper bankkeeper.Keeper, address sdk.AccAddress, consumerID string, denoms []string) error
AllocateRewards allocates all the `denoms` that reside in the `address` and are meant for the chain with `consumerID`
func CreateUpgradeHandler ¶
func CreateUpgradeHandler( mm *module.Manager, configurator module.Configurator, keepers *keepers.AppKeepers, ) upgradetypes.UpgradeHandler
CreateUpgradeHandler returns an upgrade handler for Gaia v21.
func HasExpectedChainIDSanityCheck ¶
func HasExpectedChainIDSanityCheck(ctx sdk.Context, providerKeeper providerkeeper.Keeper, consumerID string, expectedChainID string) bool
HasexpectedChainIDSanityCheck returns true if the chain with the provided `consumerID` is of a chain with the `expectedChainID`
func InitializeConstitutionCollection ¶
setting the default constitution for the chain this is in line with cosmos-sdk v5 gov migration: https://github.com/cosmos/cosmos-sdk/blob/v0.50.10/x/gov/migrations/v5/store.go#L57
Types ¶
This section is empty.