testutil

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTestAccounts

func GenerateTestAccounts(count int) (
	privKeys []secp256k1.PrivKey,
	pubKeyHexStr []string,
	addrs []sdk.AccAddress,
	addrsStr []string,
)

func GenerateTestStakes added in v0.12.2

func GenerateTestStakes(count int) []cosmosMath.Int

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 MustRandomBytes(n int) []byte

func MustRandomString

func MustRandomString(n int) string

func RandomValueOfType

func RandomValueOfType[T any](t *testing.T) T

func SetRegretsFromPreviousEpoch

func SetRegretsFromPreviousEpoch(
	ctx sdk.Context,
	k keeper.Keeper,
	topicId uint64,
	blockHeight int64,
	inferers []string,
	forecasters []string,
	epochPrevGet func(header string) alloraMath.Dec,
) error

Types

type MockAccountKeeper added in v0.12.2

type MockAccountKeeper struct {
	// contains filtered or unexported fields
}

MockAccountKeeper is a mock of AccountKeeper interface.

func NewMockAccountKeeper added in v0.12.2

func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper

NewMockAccountKeeper creates a new mock instance.

func (*MockAccountKeeper) AddressCodec added in v0.12.2

func (m *MockAccountKeeper) AddressCodec() address.Codec

AddressCodec mocks base method.

func (*MockAccountKeeper) EXPECT added in v0.12.2

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAccountKeeper) GetAccount added in v0.12.2

GetAccount mocks base method.

func (*MockAccountKeeper) GetAllAccounts added in v0.12.2

func (m *MockAccountKeeper) GetAllAccounts(ctx context.Context) []types0.AccountI

GetAllAccounts mocks base method.

func (*MockAccountKeeper) GetModuleAccount added in v0.12.2

func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types0.ModuleAccountI

GetModuleAccount mocks base method.

func (*MockAccountKeeper) GetModuleAccountAndPermissions added in v0.12.2

func (m *MockAccountKeeper) GetModuleAccountAndPermissions(ctx context.Context, moduleName string) (types0.ModuleAccountI, []string)

GetModuleAccountAndPermissions mocks base method.

func (*MockAccountKeeper) GetModuleAddress added in v0.12.2

func (m *MockAccountKeeper) GetModuleAddress(moduleName string) types0.AccAddress

GetModuleAddress mocks base method.

func (*MockAccountKeeper) GetModuleAddressAndPermissions added in v0.12.2

func (m *MockAccountKeeper) GetModuleAddressAndPermissions(moduleName string) (types0.AccAddress, []string)

GetModuleAddressAndPermissions mocks base method.

func (*MockAccountKeeper) GetModulePermissions added in v0.12.2

func (m *MockAccountKeeper) GetModulePermissions() map[string]types.PermissionsForAddress

GetModulePermissions mocks base method.

func (*MockAccountKeeper) HasAccount added in v0.12.2

func (m *MockAccountKeeper) HasAccount(ctx context.Context, addr types0.AccAddress) bool

HasAccount mocks base method.

func (*MockAccountKeeper) IterateAccounts added in v0.12.2

func (m *MockAccountKeeper) IterateAccounts(ctx context.Context, process func(types0.AccountI) bool)

IterateAccounts mocks base method.

func (*MockAccountKeeper) NewAccount added in v0.12.2

func (m *MockAccountKeeper) NewAccount(arg0 context.Context, arg1 types0.AccountI) types0.AccountI

NewAccount mocks base method.

func (*MockAccountKeeper) NewAccountWithAddress added in v0.12.2

func (m *MockAccountKeeper) NewAccountWithAddress(ctx context.Context, addr types0.AccAddress) types0.AccountI

NewAccountWithAddress mocks base method.

func (*MockAccountKeeper) SetAccount added in v0.12.2

func (m *MockAccountKeeper) SetAccount(ctx context.Context, acc types0.AccountI)

SetAccount mocks base method.

func (*MockAccountKeeper) SetModuleAccount added in v0.12.2

func (m *MockAccountKeeper) SetModuleAccount(ctx context.Context, macc types0.ModuleAccountI)

SetModuleAccount mocks base method.

func (*MockAccountKeeper) ValidatePermissions added in v0.12.2

func (m *MockAccountKeeper) ValidatePermissions(macc types0.ModuleAccountI) error

ValidatePermissions mocks base method.

type MockAccountKeeperMockRecorder added in v0.12.2

type MockAccountKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.

func (*MockAccountKeeperMockRecorder) AddressCodec added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call

AddressCodec indicates an expected call of AddressCodec.

func (*MockAccountKeeperMockRecorder) GetAccount added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call

GetAccount indicates an expected call of GetAccount.

func (*MockAccountKeeperMockRecorder) GetAllAccounts added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) GetAllAccounts(ctx interface{}) *gomock.Call

GetAllAccounts indicates an expected call of GetAllAccounts.

func (*MockAccountKeeperMockRecorder) GetModuleAccount added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call

GetModuleAccount indicates an expected call of GetModuleAccount.

func (*MockAccountKeeperMockRecorder) GetModuleAccountAndPermissions added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) GetModuleAccountAndPermissions(ctx, moduleName interface{}) *gomock.Call

GetModuleAccountAndPermissions indicates an expected call of GetModuleAccountAndPermissions.

func (*MockAccountKeeperMockRecorder) GetModuleAddress added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(moduleName interface{}) *gomock.Call

GetModuleAddress indicates an expected call of GetModuleAddress.

func (*MockAccountKeeperMockRecorder) GetModuleAddressAndPermissions added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) GetModuleAddressAndPermissions(moduleName interface{}) *gomock.Call

GetModuleAddressAndPermissions indicates an expected call of GetModuleAddressAndPermissions.

func (*MockAccountKeeperMockRecorder) GetModulePermissions added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) GetModulePermissions() *gomock.Call

GetModulePermissions indicates an expected call of GetModulePermissions.

func (*MockAccountKeeperMockRecorder) HasAccount added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) HasAccount(ctx, addr interface{}) *gomock.Call

HasAccount indicates an expected call of HasAccount.

func (*MockAccountKeeperMockRecorder) IterateAccounts added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, process interface{}) *gomock.Call

IterateAccounts indicates an expected call of IterateAccounts.

func (*MockAccountKeeperMockRecorder) NewAccount added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) NewAccount(arg0, arg1 interface{}) *gomock.Call

NewAccount indicates an expected call of NewAccount.

func (*MockAccountKeeperMockRecorder) NewAccountWithAddress added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) NewAccountWithAddress(ctx, addr interface{}) *gomock.Call

NewAccountWithAddress indicates an expected call of NewAccountWithAddress.

func (*MockAccountKeeperMockRecorder) SetAccount added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc interface{}) *gomock.Call

SetAccount indicates an expected call of SetAccount.

func (*MockAccountKeeperMockRecorder) SetModuleAccount added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(ctx, macc interface{}) *gomock.Call

SetModuleAccount indicates an expected call of SetModuleAccount.

func (*MockAccountKeeperMockRecorder) ValidatePermissions added in v0.12.2

func (mr *MockAccountKeeperMockRecorder) ValidatePermissions(macc interface{}) *gomock.Call

ValidatePermissions indicates an expected call of ValidatePermissions.

type MockBankKeeper added in v0.12.2

type MockBankKeeper struct {
	// contains filtered or unexported fields
}

func NewMockBankKeeper added in v0.12.2

func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper

func (*MockBankKeeper) BlockedAddr added in v0.12.2

func (m *MockBankKeeper) BlockedAddr(addr types0.AccAddress) bool

BlockedAddr mocks base method.

func (*MockBankKeeper) BurnCoins added in v0.12.2

func (m *MockBankKeeper) BurnCoins(arg0 context.Context, arg1 []byte, arg2 types0.Coins) error

BurnCoins mocks base method.

func (*MockBankKeeper) DelegateCoinsFromAccountToModule added in v0.12.2

func (m *MockBankKeeper) DelegateCoinsFromAccountToModule(ctx context.Context, senderAddr types0.AccAddress, recipientModule string, amt types0.Coins) error

DelegateCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) EXPECT added in v0.12.2

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockBankKeeper) GetAllBalances added in v0.12.2

func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types0.AccAddress) types0.Coins

GetAllBalances mocks base method.

func (*MockBankKeeper) GetBalance added in v0.12.2

func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types0.AccAddress, denom string) types0.Coin

GetBalance mocks base method.

func (*MockBankKeeper) GetSupply added in v0.12.2

func (m *MockBankKeeper) GetSupply(ctx context.Context, denom string) types0.Coin

GetSupply mocks base method.

func (*MockBankKeeper) LockedCoins added in v0.12.2

func (m *MockBankKeeper) LockedCoins(ctx context.Context, addr types0.AccAddress) types0.Coins

LockedCoins mocks base method.

func (*MockBankKeeper) MintCoins added in v0.12.2

func (m *MockBankKeeper) MintCoins(ctx context.Context, moduleName string, amt types0.Coins) error

MintCoins mocks base method.

func (*MockBankKeeper) SendCoinsFromAccountToModule added in v0.12.2

func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types0.AccAddress, recipientModule string, amt types0.Coins) error

SendCoinsFromAccountToModule mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToAccount added in v0.12.2

func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types0.AccAddress, amt types0.Coins) error

SendCoinsFromModuleToAccount mocks base method.

func (*MockBankKeeper) SendCoinsFromModuleToModule added in v0.12.2

func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderPool, recipientPool string, amt types0.Coins) error

SendCoinsFromModuleToModule mocks base method.

func (*MockBankKeeper) SpendableCoins added in v0.12.2

func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types0.AccAddress) types0.Coins

SpendableCoins mocks base method.

func (*MockBankKeeper) UndelegateCoinsFromModuleToAccount added in v0.12.2

func (m *MockBankKeeper) UndelegateCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types0.AccAddress, amt types0.Coins) error

UndelegateCoinsFromModuleToAccount mocks base method.

type MockBankKeeperMockRecorder added in v0.12.2

type MockBankKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.

func (*MockBankKeeperMockRecorder) BlockedAddr added in v0.12.2

func (mr *MockBankKeeperMockRecorder) BlockedAddr(addr interface{}) *gomock.Call

BlockedAddr indicates an expected call of BlockedAddr.

func (*MockBankKeeperMockRecorder) BurnCoins added in v0.12.2

func (mr *MockBankKeeperMockRecorder) BurnCoins(arg0, arg1, arg2 interface{}) *gomock.Call

BurnCoins indicates an expected call of BurnCoins.

func (*MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule added in v0.12.2

func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call

DelegateCoinsFromAccountToModule indicates an expected call of DelegateCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) GetAllBalances added in v0.12.2

func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call

GetAllBalances indicates an expected call of GetAllBalances.

func (*MockBankKeeperMockRecorder) GetBalance added in v0.12.2

func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call

GetBalance indicates an expected call of GetBalance.

func (*MockBankKeeperMockRecorder) GetSupply added in v0.12.2

func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom interface{}) *gomock.Call

GetSupply indicates an expected call of GetSupply.

func (*MockBankKeeperMockRecorder) LockedCoins added in v0.12.2

func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr interface{}) *gomock.Call

LockedCoins indicates an expected call of LockedCoins.

func (*MockBankKeeperMockRecorder) MintCoins added in v0.12.2

func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt interface{}) *gomock.Call

MintCoins indicates an expected call of MintCoins.

func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule added in v0.12.2

func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call

SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount added in v0.12.2

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.

func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule added in v0.12.2

func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderPool, recipientPool, amt interface{}) *gomock.Call

SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.

func (*MockBankKeeperMockRecorder) SpendableCoins added in v0.12.2

func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call

SpendableCoins indicates an expected call of SpendableCoins.

func (*MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount added in v0.12.2

func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call

UndelegateCoinsFromModuleToAccount indicates an expected call of UndelegateCoinsFromModuleToAccount.

type MockEmissionsKeeper added in v0.12.2

type MockEmissionsKeeper struct {
	// contains filtered or unexported fields
}

MockEmissionsKeeper is a mock of EmissionsKeeper interface.

func NewMockEmissionsKeeper added in v0.12.2

func NewMockEmissionsKeeper(ctrl *gomock.Controller) *MockEmissionsKeeper

NewMockEmissionsKeeper creates a new mock instance.

func (*MockEmissionsKeeper) EXPECT added in v0.12.2

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEmissionsKeeper) GetDelegateStakeRemovalsUpUntilBlock added in v0.12.2

func (m *MockEmissionsKeeper) GetDelegateStakeRemovalsUpUntilBlock(ctx context.Context, blockHeight keeper.BlockHeight, limit uint64) ([]types.DelegateStakeRemovalInfo, bool, error)

GetDelegateStakeRemovalsUpUntilBlock mocks base method.

func (*MockEmissionsKeeper) GetStakeRemovalsUpUntilBlock added in v0.12.2

func (m *MockEmissionsKeeper) GetStakeRemovalsUpUntilBlock(ctx context.Context, blockHeight keeper.BlockHeight, limit uint64) ([]types.StakeRemovalInfo, bool, error)

GetStakeRemovalsUpUntilBlock mocks base method.

func (*MockEmissionsKeeper) RemoveDelegateStake added in v0.12.2

func (m *MockEmissionsKeeper) RemoveDelegateStake(ctx context.Context, stakeRemovalBlockHeight keeper.BlockHeight, topicId keeper.TopicId, delegator, reputer keeper.ActorId, stakeToRemove math.Int) error

RemoveDelegateStake mocks base method.

func (*MockEmissionsKeeper) RemoveReputerStake added in v0.12.2

func (m *MockEmissionsKeeper) RemoveReputerStake(ctx context.Context, blockHeight keeper.BlockHeight, topicId keeper.TopicId, reputer keeper.ActorId, stakeToRemove math.Int) error

RemoveReputerStake mocks base method.

func (*MockEmissionsKeeper) SendCoinsFromModuleToAccount added in v0.12.2

func (m *MockEmissionsKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr keeper.ActorId, amt types0.Coins) error

SendCoinsFromModuleToAccount mocks base method.

type MockEmissionsKeeperMockRecorder added in v0.12.2

type MockEmissionsKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

MockEmissionsKeeperMockRecorder is the mock recorder for MockEmissionsKeeper.

func (*MockEmissionsKeeperMockRecorder) GetDelegateStakeRemovalsUpUntilBlock added in v0.12.2

func (mr *MockEmissionsKeeperMockRecorder) GetDelegateStakeRemovalsUpUntilBlock(ctx, blockHeight, limit interface{}) *gomock.Call

GetDelegateStakeRemovalsUpUntilBlock indicates an expected call of GetDelegateStakeRemovalsUpUntilBlock.

func (*MockEmissionsKeeperMockRecorder) GetStakeRemovalsUpUntilBlock added in v0.12.2

func (mr *MockEmissionsKeeperMockRecorder) GetStakeRemovalsUpUntilBlock(ctx, blockHeight, limit interface{}) *gomock.Call

GetStakeRemovalsUpUntilBlock indicates an expected call of GetStakeRemovalsUpUntilBlock.

func (*MockEmissionsKeeperMockRecorder) RemoveDelegateStake added in v0.12.2

func (mr *MockEmissionsKeeperMockRecorder) RemoveDelegateStake(ctx, stakeRemovalBlockHeight, topicId, delegator, reputer, stakeToRemove interface{}) *gomock.Call

RemoveDelegateStake indicates an expected call of RemoveDelegateStake.

func (*MockEmissionsKeeperMockRecorder) RemoveReputerStake added in v0.12.2

func (mr *MockEmissionsKeeperMockRecorder) RemoveReputerStake(ctx, blockHeight, topicId, reputer, stakeToRemove interface{}) *gomock.Call

RemoveReputerStake indicates an expected call of RemoveReputerStake.

func (*MockEmissionsKeeperMockRecorder) SendCoinsFromModuleToAccount added in v0.12.2

func (mr *MockEmissionsKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call

SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.

type MockTopicKeeper added in v0.12.2

type MockTopicKeeper struct {
	// contains filtered or unexported fields
}

func NewMockTopicKeeper added in v0.12.2

func NewMockTopicKeeper(ctrl *gomock.Controller) *MockTopicKeeper

func (*MockTopicKeeper) CalcEma added in v0.12.2

func (m *MockTopicKeeper) CalcEma(alpha, current, previous alloraMath.Dec, noPrior bool) (alloraMath.Dec, error)

CalcEma mocks base method

func (*MockTopicKeeper) EXPECT added in v0.12.2

func (*MockTopicKeeper) GetPreviousTopicWeight added in v0.12.2

func (m *MockTopicKeeper) GetPreviousTopicWeight(ctx context.Context, topicId uint64) (alloraMath.Dec, bool, error)

GetPreviousTopicWeight mocks base method

func (*MockTopicKeeper) GetTargetWeight added in v0.12.2

func (m *MockTopicKeeper) GetTargetWeight(stakeDec alloraMath.Dec, epochLength keeperTypes.BlockHeight, feeRevenue alloraMath.Dec, stakeImportance alloraMath.Dec, feeImportance alloraMath.Dec) (alloraMath.Dec, error)

GetTargetWeight mocks base method

func (*MockTopicKeeper) GetTopicFeeRevenue added in v0.12.2

func (m *MockTopicKeeper) GetTopicFeeRevenue(ctx context.Context, topicId uint64) (cosmosMath.Int, error)

GetTopicFeeRevenue mocks base method

func (*MockTopicKeeper) GetTopicStake added in v0.12.2

func (m *MockTopicKeeper) GetTopicStake(ctx context.Context, topicId uint64) (cosmosMath.Int, error)

GetTopicStake mocks base method

func (*MockTopicKeeper) NewDecFromSdkInt added in v0.12.2

func (m *MockTopicKeeper) NewDecFromSdkInt(i cosmosMath.Int) (alloraMath.Dec, error)

NewDecFromSdkInt mocks base method

func (*MockTopicKeeper) NewDecFromSdkUint added in v0.12.2

func (m *MockTopicKeeper) NewDecFromSdkUint(u cosmosMath.Uint) (alloraMath.Dec, error)

NewDecFromSdkUint mocks base method

type MockTopicKeeperMockRecorder added in v0.12.2

type MockTopicKeeperMockRecorder struct {
	// contains filtered or unexported fields
}

func (*MockTopicKeeperMockRecorder) CalcEma added in v0.12.2

func (mr *MockTopicKeeperMockRecorder) CalcEma(alpha, current, previous, noPrior interface{}) *gomock.Call

CalcEma indicates an expected call of CalcEma

func (*MockTopicKeeperMockRecorder) GetPreviousTopicWeight added in v0.12.2

func (mr *MockTopicKeeperMockRecorder) GetPreviousTopicWeight(ctx, topicId interface{}) *gomock.Call

GetPreviousTopicWeight indicates an expected call of GetPreviousTopicWeight

func (*MockTopicKeeperMockRecorder) GetTargetWeight added in v0.12.2

func (mr *MockTopicKeeperMockRecorder) GetTargetWeight(stakeDec, epochLength, feeRevenue, stakeImportance, feeImportance interface{}) *gomock.Call

GetTargetWeight indicates an expected call of GetTargetWeight

func (*MockTopicKeeperMockRecorder) GetTopicFeeRevenue added in v0.12.2

func (mr *MockTopicKeeperMockRecorder) GetTopicFeeRevenue(ctx, topicId interface{}) *gomock.Call

GetTopicFeeRevenue indicates an expected call of GetTopicFeeRevenue

func (*MockTopicKeeperMockRecorder) GetTopicStake added in v0.12.2

func (mr *MockTopicKeeperMockRecorder) GetTopicStake(ctx, topicId interface{}) *gomock.Call

GetTopicStake indicates an expected call of GetTopicStake

func (*MockTopicKeeperMockRecorder) NewDecFromSdkInt added in v0.12.2

func (mr *MockTopicKeeperMockRecorder) NewDecFromSdkInt(i interface{}) *gomock.Call

NewDecFromSdkInt indicates an expected call of NewDecFromSdkInt

func (*MockTopicKeeperMockRecorder) NewDecFromSdkUint added in v0.12.2

func (mr *MockTopicKeeperMockRecorder) NewDecFromSdkUint(u interface{}) *gomock.Call

NewDecFromSdkUint indicates an expected call of NewDecFromSdkUint

type ReputerKey

type ReputerKey struct {
	Address    string
	PrivateKey secp256k1.PrivKey
	PubKeyHex  string
}

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
}

func NewTestDB

func NewTestDB(t *testing.T) TestDB

Jump to

Keyboard shortcuts

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