Documentation ¶
Index ¶
- type MockAccountKeeper
- func (m *MockAccountKeeper) AddressCodec() address.Codec
- func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder
- func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types0.AccAddress) types0.AccountI
- func (m *MockAccountKeeper) GetAllAccounts(ctx context.Context) []types0.AccountI
- func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types0.ModuleAccountI
- func (m *MockAccountKeeper) GetModuleAccountAndPermissions(ctx context.Context, moduleName string) (types0.ModuleAccountI, []string)
- func (m *MockAccountKeeper) GetModuleAddress(moduleName string) types0.AccAddress
- func (m *MockAccountKeeper) GetModuleAddressAndPermissions(moduleName string) (types0.AccAddress, []string)
- func (m *MockAccountKeeper) GetModulePermissions() map[string]types.PermissionsForAddress
- func (m *MockAccountKeeper) HasAccount(ctx context.Context, addr types0.AccAddress) bool
- func (m *MockAccountKeeper) IterateAccounts(ctx context.Context, process func(types0.AccountI) bool)
- func (m *MockAccountKeeper) NewAccount(arg0 context.Context, arg1 types0.AccountI) types0.AccountI
- func (m *MockAccountKeeper) NewAccountWithAddress(ctx context.Context, addr types0.AccAddress) types0.AccountI
- func (m *MockAccountKeeper) SetAccount(ctx context.Context, acc types0.AccountI)
- func (m *MockAccountKeeper) SetModuleAccount(ctx context.Context, macc types0.ModuleAccountI)
- func (m *MockAccountKeeper) ValidatePermissions(macc types0.ModuleAccountI) error
- type MockAccountKeeperMockRecorder
- func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetAllAccounts(ctx interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetModuleAccountAndPermissions(ctx, moduleName interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(moduleName interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetModuleAddressAndPermissions(moduleName interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetModulePermissions() *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) HasAccount(ctx, addr interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, process interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) NewAccount(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) NewAccountWithAddress(ctx, addr interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(ctx, macc interface{}) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) ValidatePermissions(macc interface{}) *gomock.Call
- type MockBankKeeper
- func (m *MockBankKeeper) BlockedAddr(addr types0.AccAddress) bool
- func (m *MockBankKeeper) BurnCoins(arg0 context.Context, arg1 []byte, arg2 types0.Coins) error
- func (m *MockBankKeeper) DelegateCoinsFromAccountToModule(ctx context.Context, senderAddr types0.AccAddress, recipientModule string, ...) error
- func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
- func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types0.AccAddress) types0.Coins
- func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types0.AccAddress, denom string) types0.Coin
- func (m *MockBankKeeper) GetSupply(ctx context.Context, denom string) types0.Coin
- func (m *MockBankKeeper) LockedCoins(ctx context.Context, addr types0.AccAddress) types0.Coins
- func (m *MockBankKeeper) MintCoins(ctx context.Context, moduleName string, amt types0.Coins) error
- func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types0.AccAddress, recipientModule string, ...) error
- func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types0.AccAddress, ...) error
- func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderPool, recipientPool string, amt types0.Coins) error
- func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types0.AccAddress) types0.Coins
- func (m *MockBankKeeper) UndelegateCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types0.AccAddress, ...) error
- type MockBankKeeperMockRecorder
- func (mr *MockBankKeeperMockRecorder) BlockedAddr(addr interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) BurnCoins(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderPool, recipientPool, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
- type MockTopicKeeper
- func (m *MockTopicKeeper) CalcEma(alpha, current, previous alloraMath.Dec, noPrior bool) (alloraMath.Dec, error)
- func (m *MockTopicKeeper) EXPECT() *MockTopicKeeperMockRecorder
- func (m *MockTopicKeeper) GetPreviousTopicWeight(ctx context.Context, topicId uint64) (alloraMath.Dec, bool, error)
- func (m *MockTopicKeeper) GetTargetWeight(stakeDec alloraMath.Dec, epochLength keeperTypes.BlockHeight, ...) (alloraMath.Dec, error)
- func (m *MockTopicKeeper) GetTopicFeeRevenue(ctx context.Context, topicId uint64) (cosmosMath.Int, error)
- func (m *MockTopicKeeper) GetTopicStake(ctx context.Context, topicId uint64) (cosmosMath.Int, error)
- func (m *MockTopicKeeper) NewDecFromSdkInt(i cosmosMath.Int) (alloraMath.Dec, error)
- func (m *MockTopicKeeper) NewDecFromSdkUint(u cosmosMath.Uint) (alloraMath.Dec, error)
- type MockTopicKeeperMockRecorder
- func (mr *MockTopicKeeperMockRecorder) CalcEma(alpha, current, previous, noPrior interface{}) *gomock.Call
- func (mr *MockTopicKeeperMockRecorder) GetPreviousTopicWeight(ctx, topicId interface{}) *gomock.Call
- func (mr *MockTopicKeeperMockRecorder) GetTargetWeight(stakeDec, epochLength, feeRevenue, stakeImportance, feeImportance interface{}) *gomock.Call
- func (mr *MockTopicKeeperMockRecorder) GetTopicFeeRevenue(ctx, topicId interface{}) *gomock.Call
- func (mr *MockTopicKeeperMockRecorder) GetTopicStake(ctx, topicId interface{}) *gomock.Call
- func (mr *MockTopicKeeperMockRecorder) NewDecFromSdkInt(i interface{}) *gomock.Call
- func (mr *MockTopicKeeperMockRecorder) NewDecFromSdkUint(u interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAccountKeeper ¶
type MockAccountKeeper struct {
// contains filtered or unexported fields
}
MockAccountKeeper is a mock of AccountKeeper interface.
func NewMockAccountKeeper ¶
func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper
NewMockAccountKeeper creates a new mock instance.
func (*MockAccountKeeper) AddressCodec ¶
func (m *MockAccountKeeper) AddressCodec() address.Codec
AddressCodec mocks base method.
func (*MockAccountKeeper) EXPECT ¶
func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAccountKeeper) GetAccount ¶
func (m *MockAccountKeeper) GetAccount(ctx context.Context, addr types0.AccAddress) types0.AccountI
GetAccount mocks base method.
func (*MockAccountKeeper) GetAllAccounts ¶
func (m *MockAccountKeeper) GetAllAccounts(ctx context.Context) []types0.AccountI
GetAllAccounts mocks base method.
func (*MockAccountKeeper) GetModuleAccount ¶
func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types0.ModuleAccountI
GetModuleAccount mocks base method.
func (*MockAccountKeeper) GetModuleAccountAndPermissions ¶
func (m *MockAccountKeeper) GetModuleAccountAndPermissions(ctx context.Context, moduleName string) (types0.ModuleAccountI, []string)
GetModuleAccountAndPermissions mocks base method.
func (*MockAccountKeeper) GetModuleAddress ¶
func (m *MockAccountKeeper) GetModuleAddress(moduleName string) types0.AccAddress
GetModuleAddress mocks base method.
func (*MockAccountKeeper) GetModuleAddressAndPermissions ¶
func (m *MockAccountKeeper) GetModuleAddressAndPermissions(moduleName string) (types0.AccAddress, []string)
GetModuleAddressAndPermissions mocks base method.
func (*MockAccountKeeper) GetModulePermissions ¶
func (m *MockAccountKeeper) GetModulePermissions() map[string]types.PermissionsForAddress
GetModulePermissions mocks base method.
func (*MockAccountKeeper) HasAccount ¶
func (m *MockAccountKeeper) HasAccount(ctx context.Context, addr types0.AccAddress) bool
HasAccount mocks base method.
func (*MockAccountKeeper) IterateAccounts ¶
func (m *MockAccountKeeper) IterateAccounts(ctx context.Context, process func(types0.AccountI) bool)
IterateAccounts mocks base method.
func (*MockAccountKeeper) NewAccount ¶
NewAccount mocks base method.
func (*MockAccountKeeper) NewAccountWithAddress ¶
func (m *MockAccountKeeper) NewAccountWithAddress(ctx context.Context, addr types0.AccAddress) types0.AccountI
NewAccountWithAddress mocks base method.
func (*MockAccountKeeper) SetAccount ¶
func (m *MockAccountKeeper) SetAccount(ctx context.Context, acc types0.AccountI)
SetAccount mocks base method.
func (*MockAccountKeeper) SetModuleAccount ¶
func (m *MockAccountKeeper) SetModuleAccount(ctx context.Context, macc types0.ModuleAccountI)
SetModuleAccount mocks base method.
func (*MockAccountKeeper) ValidatePermissions ¶
func (m *MockAccountKeeper) ValidatePermissions(macc types0.ModuleAccountI) error
ValidatePermissions mocks base method.
type MockAccountKeeperMockRecorder ¶
type MockAccountKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockAccountKeeperMockRecorder is the mock recorder for MockAccountKeeper.
func (*MockAccountKeeperMockRecorder) AddressCodec ¶
func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call
AddressCodec indicates an expected call of AddressCodec.
func (*MockAccountKeeperMockRecorder) GetAccount ¶
func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call
GetAccount indicates an expected call of GetAccount.
func (*MockAccountKeeperMockRecorder) GetAllAccounts ¶
func (mr *MockAccountKeeperMockRecorder) GetAllAccounts(ctx interface{}) *gomock.Call
GetAllAccounts indicates an expected call of GetAllAccounts.
func (*MockAccountKeeperMockRecorder) GetModuleAccount ¶
func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call
GetModuleAccount indicates an expected call of GetModuleAccount.
func (*MockAccountKeeperMockRecorder) GetModuleAccountAndPermissions ¶
func (mr *MockAccountKeeperMockRecorder) GetModuleAccountAndPermissions(ctx, moduleName interface{}) *gomock.Call
GetModuleAccountAndPermissions indicates an expected call of GetModuleAccountAndPermissions.
func (*MockAccountKeeperMockRecorder) GetModuleAddress ¶
func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(moduleName interface{}) *gomock.Call
GetModuleAddress indicates an expected call of GetModuleAddress.
func (*MockAccountKeeperMockRecorder) GetModuleAddressAndPermissions ¶
func (mr *MockAccountKeeperMockRecorder) GetModuleAddressAndPermissions(moduleName interface{}) *gomock.Call
GetModuleAddressAndPermissions indicates an expected call of GetModuleAddressAndPermissions.
func (*MockAccountKeeperMockRecorder) GetModulePermissions ¶
func (mr *MockAccountKeeperMockRecorder) GetModulePermissions() *gomock.Call
GetModulePermissions indicates an expected call of GetModulePermissions.
func (*MockAccountKeeperMockRecorder) HasAccount ¶
func (mr *MockAccountKeeperMockRecorder) HasAccount(ctx, addr interface{}) *gomock.Call
HasAccount indicates an expected call of HasAccount.
func (*MockAccountKeeperMockRecorder) IterateAccounts ¶
func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, process interface{}) *gomock.Call
IterateAccounts indicates an expected call of IterateAccounts.
func (*MockAccountKeeperMockRecorder) NewAccount ¶
func (mr *MockAccountKeeperMockRecorder) NewAccount(arg0, arg1 interface{}) *gomock.Call
NewAccount indicates an expected call of NewAccount.
func (*MockAccountKeeperMockRecorder) NewAccountWithAddress ¶
func (mr *MockAccountKeeperMockRecorder) NewAccountWithAddress(ctx, addr interface{}) *gomock.Call
NewAccountWithAddress indicates an expected call of NewAccountWithAddress.
func (*MockAccountKeeperMockRecorder) SetAccount ¶
func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc interface{}) *gomock.Call
SetAccount indicates an expected call of SetAccount.
func (*MockAccountKeeperMockRecorder) SetModuleAccount ¶
func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(ctx, macc interface{}) *gomock.Call
SetModuleAccount indicates an expected call of SetModuleAccount.
func (*MockAccountKeeperMockRecorder) ValidatePermissions ¶
func (mr *MockAccountKeeperMockRecorder) ValidatePermissions(macc interface{}) *gomock.Call
ValidatePermissions indicates an expected call of ValidatePermissions.
type MockBankKeeper ¶
type MockBankKeeper struct {
// contains filtered or unexported fields
}
func NewMockBankKeeper ¶
func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper
func (*MockBankKeeper) BlockedAddr ¶
func (m *MockBankKeeper) BlockedAddr(addr types0.AccAddress) bool
BlockedAddr mocks base method.
func (*MockBankKeeper) DelegateCoinsFromAccountToModule ¶
func (m *MockBankKeeper) DelegateCoinsFromAccountToModule(ctx context.Context, senderAddr types0.AccAddress, recipientModule string, amt types0.Coins) error
DelegateCoinsFromAccountToModule mocks base method.
func (*MockBankKeeper) EXPECT ¶
func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBankKeeper) GetAllBalances ¶
func (m *MockBankKeeper) GetAllBalances(ctx context.Context, addr types0.AccAddress) types0.Coins
GetAllBalances mocks base method.
func (*MockBankKeeper) GetBalance ¶
func (m *MockBankKeeper) GetBalance(ctx context.Context, addr types0.AccAddress, denom string) types0.Coin
GetBalance mocks base method.
func (*MockBankKeeper) LockedCoins ¶
func (m *MockBankKeeper) LockedCoins(ctx context.Context, addr types0.AccAddress) types0.Coins
LockedCoins mocks base method.
func (*MockBankKeeper) SendCoinsFromAccountToModule ¶
func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr types0.AccAddress, recipientModule string, amt types0.Coins) error
SendCoinsFromAccountToModule mocks base method.
func (*MockBankKeeper) SendCoinsFromModuleToAccount ¶
func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types0.AccAddress, amt types0.Coins) error
SendCoinsFromModuleToAccount mocks base method.
func (*MockBankKeeper) SendCoinsFromModuleToModule ¶
func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderPool, recipientPool string, amt types0.Coins) error
SendCoinsFromModuleToModule mocks base method.
func (*MockBankKeeper) SpendableCoins ¶
func (m *MockBankKeeper) SpendableCoins(ctx context.Context, addr types0.AccAddress) types0.Coins
SpendableCoins mocks base method.
func (*MockBankKeeper) UndelegateCoinsFromModuleToAccount ¶
func (m *MockBankKeeper) UndelegateCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr types0.AccAddress, amt types0.Coins) error
UndelegateCoinsFromModuleToAccount mocks base method.
type MockBankKeeperMockRecorder ¶
type MockBankKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockBankKeeperMockRecorder is the mock recorder for MockBankKeeper.
func (*MockBankKeeperMockRecorder) BlockedAddr ¶
func (mr *MockBankKeeperMockRecorder) BlockedAddr(addr interface{}) *gomock.Call
BlockedAddr indicates an expected call of BlockedAddr.
func (*MockBankKeeperMockRecorder) BurnCoins ¶
func (mr *MockBankKeeperMockRecorder) BurnCoins(arg0, arg1, arg2 interface{}) *gomock.Call
BurnCoins indicates an expected call of BurnCoins.
func (*MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule ¶
func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call
DelegateCoinsFromAccountToModule indicates an expected call of DelegateCoinsFromAccountToModule.
func (*MockBankKeeperMockRecorder) GetAllBalances ¶
func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr interface{}) *gomock.Call
GetAllBalances indicates an expected call of GetAllBalances.
func (*MockBankKeeperMockRecorder) GetBalance ¶
func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call
GetBalance indicates an expected call of GetBalance.
func (*MockBankKeeperMockRecorder) GetSupply ¶
func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom interface{}) *gomock.Call
GetSupply indicates an expected call of GetSupply.
func (*MockBankKeeperMockRecorder) LockedCoins ¶
func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr interface{}) *gomock.Call
LockedCoins indicates an expected call of LockedCoins.
func (*MockBankKeeperMockRecorder) MintCoins ¶
func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt interface{}) *gomock.Call
MintCoins indicates an expected call of MintCoins.
func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule ¶
func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call
SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.
func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount ¶
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.
func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule ¶
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderPool, recipientPool, amt interface{}) *gomock.Call
SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.
func (*MockBankKeeperMockRecorder) SpendableCoins ¶
func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr interface{}) *gomock.Call
SpendableCoins indicates an expected call of SpendableCoins.
func (*MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount ¶
func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
UndelegateCoinsFromModuleToAccount indicates an expected call of UndelegateCoinsFromModuleToAccount.
type MockTopicKeeper ¶ added in v0.0.1337
type MockTopicKeeper struct {
// contains filtered or unexported fields
}
func NewMockTopicKeeper ¶ added in v0.0.1337
func NewMockTopicKeeper(ctrl *gomock.Controller) *MockTopicKeeper
func (*MockTopicKeeper) CalcEma ¶ added in v0.0.1337
func (m *MockTopicKeeper) CalcEma(alpha, current, previous alloraMath.Dec, noPrior bool) (alloraMath.Dec, error)
CalcEma mocks base method
func (*MockTopicKeeper) EXPECT ¶ added in v0.0.1337
func (m *MockTopicKeeper) EXPECT() *MockTopicKeeperMockRecorder
func (*MockTopicKeeper) GetPreviousTopicWeight ¶ added in v0.0.1337
func (m *MockTopicKeeper) GetPreviousTopicWeight(ctx context.Context, topicId uint64) (alloraMath.Dec, bool, error)
GetPreviousTopicWeight mocks base method
func (*MockTopicKeeper) GetTargetWeight ¶ added in v0.0.1337
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.0.1337
func (m *MockTopicKeeper) GetTopicFeeRevenue(ctx context.Context, topicId uint64) (cosmosMath.Int, error)
GetTopicFeeRevenue mocks base method
func (*MockTopicKeeper) GetTopicStake ¶ added in v0.0.1337
func (m *MockTopicKeeper) GetTopicStake(ctx context.Context, topicId uint64) (cosmosMath.Int, error)
GetTopicStake mocks base method
func (*MockTopicKeeper) NewDecFromSdkInt ¶ added in v0.0.1337
func (m *MockTopicKeeper) NewDecFromSdkInt(i cosmosMath.Int) (alloraMath.Dec, error)
NewDecFromSdkInt mocks base method
func (*MockTopicKeeper) NewDecFromSdkUint ¶ added in v0.0.1337
func (m *MockTopicKeeper) NewDecFromSdkUint(u cosmosMath.Uint) (alloraMath.Dec, error)
NewDecFromSdkUint mocks base method
type MockTopicKeeperMockRecorder ¶ added in v0.0.1337
type MockTopicKeeperMockRecorder struct {
// contains filtered or unexported fields
}
func (*MockTopicKeeperMockRecorder) CalcEma ¶ added in v0.0.1337
func (mr *MockTopicKeeperMockRecorder) CalcEma(alpha, current, previous, noPrior interface{}) *gomock.Call
CalcEma indicates an expected call of CalcEma
func (*MockTopicKeeperMockRecorder) GetPreviousTopicWeight ¶ added in v0.0.1337
func (mr *MockTopicKeeperMockRecorder) GetPreviousTopicWeight(ctx, topicId interface{}) *gomock.Call
GetPreviousTopicWeight indicates an expected call of GetPreviousTopicWeight
func (*MockTopicKeeperMockRecorder) GetTargetWeight ¶ added in v0.0.1337
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.0.1337
func (mr *MockTopicKeeperMockRecorder) GetTopicFeeRevenue(ctx, topicId interface{}) *gomock.Call
GetTopicFeeRevenue indicates an expected call of GetTopicFeeRevenue
func (*MockTopicKeeperMockRecorder) GetTopicStake ¶ added in v0.0.1337
func (mr *MockTopicKeeperMockRecorder) GetTopicStake(ctx, topicId interface{}) *gomock.Call
GetTopicStake indicates an expected call of GetTopicStake
func (*MockTopicKeeperMockRecorder) NewDecFromSdkInt ¶ added in v0.0.1337
func (mr *MockTopicKeeperMockRecorder) NewDecFromSdkInt(i interface{}) *gomock.Call
NewDecFromSdkInt indicates an expected call of NewDecFromSdkInt
func (*MockTopicKeeperMockRecorder) NewDecFromSdkUint ¶ added in v0.0.1337
func (mr *MockTopicKeeperMockRecorder) NewDecFromSdkUint(u interface{}) *gomock.Call
NewDecFromSdkUint indicates an expected call of NewDecFromSdkUint