v5

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func MigrateStore(ctx sdk.Context, emissionsKeeper keeper.Keeper) error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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