Documentation ¶
Index ¶
- func MigrateParams(store storetypes.KVStore, cdc codec.BinaryCodec) error
- func MigrateStore(ctx sdk.Context, emissionsKeeper keeper.Keeper) error
- func MigrateTopics(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec, ...) error
- func ResetMapsWithNonNumericValues(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateParams ¶
func MigrateParams(store storetypes.KVStore, cdc codec.BinaryCodec) error
migrate params for this new version the changes are the addition of InitialRegretQuantile,PNormSafeDiv
func MigrateStore ¶
MigrateStore migrates the store from version 4 to version 5 it does the following: - migrates topics to set initial regret - Deletes the contents of previous quantile score maps - Sets the sumTotalPreviousTopicWeights to the sum of previousTopicWeight
func MigrateTopics ¶
func MigrateTopics( ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec, emissionsKeeper keeper.Keeper, ) error
migrate topics for this new version iterate through all topics, keep all the old values of these topics need to initialize InitialRegret to zero as default and set allownegative as false.
func ResetMapsWithNonNumericValues ¶
func ResetMapsWithNonNumericValues(ctx sdk.Context, store storetypes.KVStore, cdc codec.BinaryCodec) error
Clear out poison NaN values on different inferences, scores etc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.