Documentation ¶
Index ¶
- func GenerateTestAccounts(count int) (privKeys []secp256k1.PrivKey, pubKeyHexStr []string, addrs []sdk.AccAddress, ...)
- func GetForecastsFromCsv(topicId uint64, blockHeight int64, inferers []string, forecasters []string, ...) (emissionstypes.Forecasts, error)
- func GetInferencesFromCsv(topicId uint64, blockHeight int64, inferers []string, ...) (emissionstypes.Inferences, error)
- func GetNetworkLossFromCsv(topicId uint64, blockHeight int64, inferers []string, forecasters []string, ...) (emissionstypes.ValueBundle, error)
- func GetReputersDataFromCsv(topicId uint64, blockHeight int64, inferers []string, forecasters []string, ...) (emissionstypes.ReputerValueBundles, error)
- func GetSimulatedValuesGetterForEpoch(epoch string, headers string) func(header string) alloraMath.Dec
- func GetSimulatedValuesGetterForEpochs() map[int]func(header string) alloraMath.Dec
- func GetSortitionSimulatorValuesGetterForEpochs() map[int]func(header string) alloraMath.Dec
- func GetTokenomicsSimulatorValuesGetterForEpochs() map[int]func(header string) alloraMath.Dec
- func GetTotalForecasterRewardForTopicInEpoch(epochGet func(header string) alloraMath.Dec) (alloraMath.Dec, error)
- func GetTotalInfererRewardForTopicInEpoch(epochGet func(header string) alloraMath.Dec) (alloraMath.Dec, error)
- func GetTotalReputerRewardForTopicInEpoch(epochGet func(header string) alloraMath.Dec) (alloraMath.Dec, error)
- func GetTotalRewardForTopicInEpoch(epochGet func(header string) alloraMath.Dec) (alloraMath.Dec, error)
- func InEpsilon(t *testing.T, value alloraMath.Dec, target alloraMath.Dec, ...)
- func InEpsilon2(t *testing.T, value alloraMath.Dec, target string)
- func InEpsilon3(t *testing.T, value alloraMath.Dec, target string)
- func InEpsilon5(t *testing.T, value alloraMath.Dec, target string)
- func InEpsilon5Dec(t *testing.T, value alloraMath.Dec, target alloraMath.Dec)
- func MustRandomBytes(n int) []byte
- func MustRandomString(n int) string
- func RandomValueOfType[T any](t *testing.T) T
- func SetRegretsFromPreviousEpoch(ctx sdk.Context, k keeper.Keeper, topicId uint64, blockHeight int64, ...) error
- type ReputerKey
- type TestDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTestAccounts ¶
func GetForecastsFromCsv ¶
func GetForecastsFromCsv( topicId uint64, blockHeight int64, inferers []string, forecasters []string, epochGet func(header string) alloraMath.Dec, ) (emissionstypes.Forecasts, error)
func GetInferencesFromCsv ¶
func GetInferencesFromCsv( topicId uint64, blockHeight int64, inferers []string, epochGet func(header string) alloraMath.Dec, ) (emissionstypes.Inferences, error)
func GetNetworkLossFromCsv ¶
func GetNetworkLossFromCsv( topicId uint64, blockHeight int64, inferers []string, forecasters []string, reputer string, epochGet func(header string) alloraMath.Dec, ) (emissionstypes.ValueBundle, error)
func GetReputersDataFromCsv ¶
func GetReputersDataFromCsv( topicId uint64, blockHeight int64, inferers []string, forecasters []string, reputers []ReputerKey, epochGet func(header string) alloraMath.Dec, ) (emissionstypes.ReputerValueBundles, error)
func GetSimulatedValuesGetterForEpoch ¶
func GetSimulatedValuesGetterForEpoch( epoch string, headers string, ) func(header string) alloraMath.Dec
func GetSimulatedValuesGetterForEpochs ¶
func GetSimulatedValuesGetterForEpochs() map[int]func(header string) alloraMath.Dec
func GetSortitionSimulatorValuesGetterForEpochs ¶
func GetSortitionSimulatorValuesGetterForEpochs() map[int]func(header string) alloraMath.Dec
func GetTokenomicsSimulatorValuesGetterForEpochs ¶
func GetTokenomicsSimulatorValuesGetterForEpochs() map[int]func(header string) alloraMath.Dec
func GetTotalForecasterRewardForTopicInEpoch ¶
func GetTotalForecasterRewardForTopicInEpoch( epochGet func(header string) alloraMath.Dec, ) (alloraMath.Dec, error)
func GetTotalInfererRewardForTopicInEpoch ¶
func GetTotalInfererRewardForTopicInEpoch( epochGet func(header string) alloraMath.Dec, ) (alloraMath.Dec, error)
func GetTotalReputerRewardForTopicInEpoch ¶
func GetTotalReputerRewardForTopicInEpoch( epochGet func(header string) alloraMath.Dec, ) (alloraMath.Dec, error)
func GetTotalRewardForTopicInEpoch ¶
func GetTotalRewardForTopicInEpoch( epochGet func(header string) alloraMath.Dec, ) (alloraMath.Dec, error)
func InEpsilon ¶
func InEpsilon(t *testing.T, value alloraMath.Dec, target alloraMath.Dec, epsilon alloraMath.Dec)
func InEpsilon2 ¶
func InEpsilon2(t *testing.T, value alloraMath.Dec, target string)
func InEpsilon3 ¶
func InEpsilon3(t *testing.T, value alloraMath.Dec, target string)
func InEpsilon5 ¶
func InEpsilon5(t *testing.T, value alloraMath.Dec, target string)
func InEpsilon5Dec ¶
func InEpsilon5Dec(t *testing.T, value alloraMath.Dec, target alloraMath.Dec)
func MustRandomBytes ¶
func MustRandomString ¶
func RandomValueOfType ¶
Types ¶
type ReputerKey ¶
helper struct for GetReputersDataFromCsv
type TestDB ¶
type TestDB struct { StoreKeyStr string StoreKey *storetypes.KVStoreKey KeyStr string Key *storetypes.TransientStoreKey StoreService store.KVStoreService TestCtx cosmostestutil.TestContext Store storetypes.KVStore SB *collections.SchemaBuilder }
Click to show internal directories.
Click to hide internal directories.