Documentation
¶
Index ¶
- func MigrateBank(ctx sdk.Context, accountKeeper AccountKeeper, bankKeeper BankKeeper, ...) error
- func MigrateParams(ctx sdk.Context, legacyAmino *codec.LegacyAmino, paramsKey sdk.StoreKey, ...) error
- func MigratePruneKey(store sdk.KVStore, key []byte)
- func MigrateStore(cdc codec.BinaryCodec, gravityStore, ethStore sdk.KVStore)
- func MigrateValidatorToOracle(ctx sdk.Context, cdc codec.BinaryCodec, gravityStore, ethStore sdk.KVStore, ...)
- type AccountKeeper
- type BankKeeper
- type StakingKeeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateBank ¶
func MigrateBank(ctx sdk.Context, accountKeeper AccountKeeper, bankKeeper BankKeeper, toModuleName string) error
func MigrateParams ¶
func MigratePruneKey ¶
func MigrateStore ¶
func MigrateStore(cdc codec.BinaryCodec, gravityStore, ethStore sdk.KVStore)
MigrateStore performs in-place store migrations from v0.42 to v0.45. migrate data from gravity module
func MigrateValidatorToOracle ¶
func MigrateValidatorToOracle(ctx sdk.Context, cdc codec.BinaryCodec, gravityStore, ethStore sdk.KVStore, stakingKeeper StakingKeeper)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetModuleAddress(name string) sdk.AccAddress
}
type BankKeeper ¶
type BankKeeper interface { SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins }
BankKeeper defines the expected bank keeper methods
type StakingKeeper ¶
type StakingKeeper interface {
GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
}
StakingKeeper defines the expected staking keeper methods
Click to show internal directories.
Click to hide internal directories.