Documentation ¶
Overview ¶
Package testutil is a generated GoMock package.
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) GetModuleAccount(ctx context.Context, moduleName string) types0.ModuleAccountI
- func (m *MockAccountKeeper) GetModuleAddress(moduleName string) types0.AccAddress
- 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) 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, modAcc types0.ModuleAccountI)
- type MockAccountKeeperMockRecorder
- func (mr *MockAccountKeeperMockRecorder) AddressCodec() *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr any) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName any) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(moduleName any) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) HasAccount(ctx, addr any) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, process any) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) NewAccountWithAddress(ctx, addr any) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc any) *gomock.Call
- func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(ctx, modAcc any) *gomock.Call
- type MockBankKeeper
- func (m *MockBankKeeper) BurnCoins(ctx context.Context, moduleName string, amt 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) SpendableCoin(ctx context.Context, addr types0.AccAddress, denom string) types0.Coin
- 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) BurnCoins(ctx, moduleName, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderPool, recipientPool, amt any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SpendableCoin(ctx, addr, denom any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr any) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt any) *gomock.Call
- type MockDistributionKeeper
- func (m *MockDistributionKeeper) CalculateDelegationRewards(ctx context.Context, val types2.ValidatorI, del types2.DelegationI, ...) (types0.DecCoins, error)
- func (m *MockDistributionKeeper) EXPECT() *MockDistributionKeeperMockRecorder
- func (m *MockDistributionKeeper) GetUbiBalanceByDenom(ctx context.Context, denom string) (math.Int, error)
- func (m *MockDistributionKeeper) GetValidatorAccumulatedCommission(ctx context.Context, val types0.ValAddress) (types1.ValidatorAccumulatedCommission, error)
- func (m *MockDistributionKeeper) GetValidatorCurrentRewards(ctx context.Context, val types0.ValAddress) (types1.ValidatorCurrentRewards, error)
- func (m *MockDistributionKeeper) IncrementValidatorPeriod(ctx context.Context, val types2.ValidatorI) (uint64, error)
- func (m *MockDistributionKeeper) WithdrawDelegationRewards(ctx context.Context, delAddr types0.AccAddress, valAddr types0.ValAddress) (types0.Coins, error)
- func (m *MockDistributionKeeper) WithdrawUbiByDenomToModule(ctx context.Context, denom, recipientModule string) (types0.Coin, error)
- func (m *MockDistributionKeeper) WithdrawValidatorCommission(ctx context.Context, valAddr types0.ValAddress) (types0.Coins, error)
- type MockDistributionKeeperMockRecorder
- func (mr *MockDistributionKeeperMockRecorder) CalculateDelegationRewards(ctx, val, del, endingPeriod any) *gomock.Call
- func (mr *MockDistributionKeeperMockRecorder) GetUbiBalanceByDenom(ctx, denom any) *gomock.Call
- func (mr *MockDistributionKeeperMockRecorder) GetValidatorAccumulatedCommission(ctx, val any) *gomock.Call
- func (mr *MockDistributionKeeperMockRecorder) GetValidatorCurrentRewards(ctx, val any) *gomock.Call
- func (mr *MockDistributionKeeperMockRecorder) IncrementValidatorPeriod(ctx, val any) *gomock.Call
- func (mr *MockDistributionKeeperMockRecorder) WithdrawDelegationRewards(ctx, delAddr, valAddr any) *gomock.Call
- func (mr *MockDistributionKeeperMockRecorder) WithdrawUbiByDenomToModule(ctx, denom, recipientModule any) *gomock.Call
- func (mr *MockDistributionKeeperMockRecorder) WithdrawValidatorCommission(ctx, valAddr any) *gomock.Call
- type MockSlashingKeeper
- type MockSlashingKeeperMockRecorder
- type MockStakingKeeper
- func (m *MockStakingKeeper) BondDenom(ctx context.Context) (string, error)
- func (m *MockStakingKeeper) DeleteUnbondingIndex(ctx context.Context, id uint64) error
- func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder
- func (m *MockStakingKeeper) EndBlocker(ctx context.Context) ([]types.ValidatorUpdate, error)
- func (m *MockStakingKeeper) EndBlockerWithUnbondedEntries(ctx context.Context) ([]types.ValidatorUpdate, []types2.UnbondedEntry, error)
- func (m *MockStakingKeeper) GetAllDelegations(ctx context.Context) ([]types2.Delegation, error)
- func (m *MockStakingKeeper) GetAllValidators(ctx context.Context) ([]types2.Validator, error)
- func (m *MockStakingKeeper) GetFlexiblePeriodType(ctx context.Context) (int32, error)
- func (m *MockStakingKeeper) GetLockedTokenType(ctx context.Context) (int32, error)
- func (m *MockStakingKeeper) GetPeriodInfo(ctx context.Context, periodType int32) (types2.Period, error)
- func (m *MockStakingKeeper) GetSingularityHeight(ctx context.Context) (uint64, error)
- func (m *MockStakingKeeper) GetTokenTypeInfo(ctx context.Context, tokenType int32) (types2.TokenTypeInfo, error)
- func (m *MockStakingKeeper) GetUnbondingDelegation(ctx context.Context, delAddr types0.AccAddress, valAddr types0.ValAddress) (types2.UnbondingDelegation, error)
- func (m *MockStakingKeeper) GetUnbondingDelegations(ctx context.Context, delegator types0.AccAddress, maxRetrieve uint16) ([]types2.UnbondingDelegation, error)
- func (m *MockStakingKeeper) GetUnbondingDelegationsFromValidator(ctx context.Context, valAddr types0.ValAddress) ([]types2.UnbondingDelegation, error)
- func (m *MockStakingKeeper) GetValidator(ctx context.Context, addr types0.ValAddress) (types2.Validator, error)
- func (m *MockStakingKeeper) GetValidatorDelegations(ctx context.Context, valAddr types0.ValAddress) ([]types2.Delegation, error)
- func (m *MockStakingKeeper) MinDelegation(ctx context.Context) (math.Int, error)
- func (m *MockStakingKeeper) UBDQueueIterator(ctx context.Context, endTime time.Time) (store.Iterator, error)
- func (m *MockStakingKeeper) ValidatorAddressCodec() address.Codec
- type MockStakingKeeperMockRecorder
- func (mr *MockStakingKeeperMockRecorder) BondDenom(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) DeleteUnbondingIndex(ctx, id any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) EndBlocker(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) EndBlockerWithUnbondedEntries(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetAllDelegations(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetAllValidators(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetFlexiblePeriodType(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetLockedTokenType(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetPeriodInfo(ctx, periodType any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetSingularityHeight(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetTokenTypeInfo(ctx, tokenType any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetUnbondingDelegation(ctx, delAddr, valAddr any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetUnbondingDelegations(ctx, delegator, maxRetrieve any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetUnbondingDelegationsFromValidator(ctx, valAddr any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetValidator(ctx, addr any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) GetValidatorDelegations(ctx, valAddr any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) MinDelegation(ctx any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) UBDQueueIterator(ctx, endTime any) *gomock.Call
- func (mr *MockStakingKeeperMockRecorder) ValidatorAddressCodec() *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) GetModuleAccount ¶
func (m *MockAccountKeeper) GetModuleAccount(ctx context.Context, moduleName string) types0.ModuleAccountI
GetModuleAccount mocks base method.
func (*MockAccountKeeper) GetModuleAddress ¶
func (m *MockAccountKeeper) GetModuleAddress(moduleName string) types0.AccAddress
GetModuleAddress 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) 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, modAcc types0.ModuleAccountI)
SetModuleAccount 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 any) *gomock.Call
GetAccount indicates an expected call of GetAccount.
func (*MockAccountKeeperMockRecorder) GetModuleAccount ¶
func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName any) *gomock.Call
GetModuleAccount indicates an expected call of GetModuleAccount.
func (*MockAccountKeeperMockRecorder) GetModuleAddress ¶
func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(moduleName any) *gomock.Call
GetModuleAddress indicates an expected call of GetModuleAddress.
func (*MockAccountKeeperMockRecorder) HasAccount ¶
func (mr *MockAccountKeeperMockRecorder) HasAccount(ctx, addr any) *gomock.Call
HasAccount indicates an expected call of HasAccount.
func (*MockAccountKeeperMockRecorder) IterateAccounts ¶
func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, process any) *gomock.Call
IterateAccounts indicates an expected call of IterateAccounts.
func (*MockAccountKeeperMockRecorder) NewAccountWithAddress ¶
func (mr *MockAccountKeeperMockRecorder) NewAccountWithAddress(ctx, addr any) *gomock.Call
NewAccountWithAddress indicates an expected call of NewAccountWithAddress.
func (*MockAccountKeeperMockRecorder) SetAccount ¶
func (mr *MockAccountKeeperMockRecorder) SetAccount(ctx, acc any) *gomock.Call
SetAccount indicates an expected call of SetAccount.
func (*MockAccountKeeperMockRecorder) SetModuleAccount ¶
func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(ctx, modAcc any) *gomock.Call
SetModuleAccount indicates an expected call of SetModuleAccount.
type MockBankKeeper ¶
type MockBankKeeper struct {
// contains filtered or unexported fields
}
MockBankKeeper is a mock of BankKeeper interface.
func NewMockBankKeeper ¶
func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper
NewMockBankKeeper creates a new mock instance.
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) SpendableCoin ¶ added in v0.10.1
func (m *MockBankKeeper) SpendableCoin(ctx context.Context, addr types0.AccAddress, denom string) types0.Coin
SpendableCoin 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) BurnCoins ¶
func (mr *MockBankKeeperMockRecorder) BurnCoins(ctx, moduleName, amt any) *gomock.Call
BurnCoins indicates an expected call of BurnCoins.
func (*MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule ¶
func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt any) *gomock.Call
DelegateCoinsFromAccountToModule indicates an expected call of DelegateCoinsFromAccountToModule.
func (*MockBankKeeperMockRecorder) GetAllBalances ¶
func (mr *MockBankKeeperMockRecorder) GetAllBalances(ctx, addr any) *gomock.Call
GetAllBalances indicates an expected call of GetAllBalances.
func (*MockBankKeeperMockRecorder) GetBalance ¶
func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom any) *gomock.Call
GetBalance indicates an expected call of GetBalance.
func (*MockBankKeeperMockRecorder) GetSupply ¶
func (mr *MockBankKeeperMockRecorder) GetSupply(ctx, denom any) *gomock.Call
GetSupply indicates an expected call of GetSupply.
func (*MockBankKeeperMockRecorder) LockedCoins ¶
func (mr *MockBankKeeperMockRecorder) LockedCoins(ctx, addr any) *gomock.Call
LockedCoins indicates an expected call of LockedCoins.
func (*MockBankKeeperMockRecorder) MintCoins ¶
func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt any) *gomock.Call
MintCoins indicates an expected call of MintCoins.
func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule ¶
func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt any) *gomock.Call
SendCoinsFromAccountToModule indicates an expected call of SendCoinsFromAccountToModule.
func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount ¶
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt any) *gomock.Call
SendCoinsFromModuleToAccount indicates an expected call of SendCoinsFromModuleToAccount.
func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule ¶
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderPool, recipientPool, amt any) *gomock.Call
SendCoinsFromModuleToModule indicates an expected call of SendCoinsFromModuleToModule.
func (*MockBankKeeperMockRecorder) SpendableCoin ¶ added in v0.10.1
func (mr *MockBankKeeperMockRecorder) SpendableCoin(ctx, addr, denom any) *gomock.Call
SpendableCoin indicates an expected call of SpendableCoin.
func (*MockBankKeeperMockRecorder) SpendableCoins ¶
func (mr *MockBankKeeperMockRecorder) SpendableCoins(ctx, addr any) *gomock.Call
SpendableCoins indicates an expected call of SpendableCoins.
func (*MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount ¶
func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt any) *gomock.Call
UndelegateCoinsFromModuleToAccount indicates an expected call of UndelegateCoinsFromModuleToAccount.
type MockDistributionKeeper ¶
type MockDistributionKeeper struct {
// contains filtered or unexported fields
}
MockDistributionKeeper is a mock of DistributionKeeper interface.
func NewMockDistributionKeeper ¶
func NewMockDistributionKeeper(ctrl *gomock.Controller) *MockDistributionKeeper
NewMockDistributionKeeper creates a new mock instance.
func (*MockDistributionKeeper) CalculateDelegationRewards ¶
func (m *MockDistributionKeeper) CalculateDelegationRewards(ctx context.Context, val types2.ValidatorI, del types2.DelegationI, endingPeriod uint64) (types0.DecCoins, error)
CalculateDelegationRewards mocks base method.
func (*MockDistributionKeeper) EXPECT ¶
func (m *MockDistributionKeeper) EXPECT() *MockDistributionKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDistributionKeeper) GetUbiBalanceByDenom ¶ added in v0.12.0
func (m *MockDistributionKeeper) GetUbiBalanceByDenom(ctx context.Context, denom string) (math.Int, error)
GetUbiBalanceByDenom mocks base method.
func (*MockDistributionKeeper) GetValidatorAccumulatedCommission ¶
func (m *MockDistributionKeeper) GetValidatorAccumulatedCommission(ctx context.Context, val types0.ValAddress) (types1.ValidatorAccumulatedCommission, error)
GetValidatorAccumulatedCommission mocks base method.
func (*MockDistributionKeeper) GetValidatorCurrentRewards ¶
func (m *MockDistributionKeeper) GetValidatorCurrentRewards(ctx context.Context, val types0.ValAddress) (types1.ValidatorCurrentRewards, error)
GetValidatorCurrentRewards mocks base method.
func (*MockDistributionKeeper) IncrementValidatorPeriod ¶
func (m *MockDistributionKeeper) IncrementValidatorPeriod(ctx context.Context, val types2.ValidatorI) (uint64, error)
IncrementValidatorPeriod mocks base method.
func (*MockDistributionKeeper) WithdrawDelegationRewards ¶
func (m *MockDistributionKeeper) WithdrawDelegationRewards(ctx context.Context, delAddr types0.AccAddress, valAddr types0.ValAddress) (types0.Coins, error)
WithdrawDelegationRewards mocks base method.
func (*MockDistributionKeeper) WithdrawUbiByDenomToModule ¶ added in v0.12.0
func (m *MockDistributionKeeper) WithdrawUbiByDenomToModule(ctx context.Context, denom, recipientModule string) (types0.Coin, error)
WithdrawUbiByDenomToModule mocks base method.
func (*MockDistributionKeeper) WithdrawValidatorCommission ¶
func (m *MockDistributionKeeper) WithdrawValidatorCommission(ctx context.Context, valAddr types0.ValAddress) (types0.Coins, error)
WithdrawValidatorCommission mocks base method.
type MockDistributionKeeperMockRecorder ¶
type MockDistributionKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockDistributionKeeperMockRecorder is the mock recorder for MockDistributionKeeper.
func (*MockDistributionKeeperMockRecorder) CalculateDelegationRewards ¶
func (mr *MockDistributionKeeperMockRecorder) CalculateDelegationRewards(ctx, val, del, endingPeriod any) *gomock.Call
CalculateDelegationRewards indicates an expected call of CalculateDelegationRewards.
func (*MockDistributionKeeperMockRecorder) GetUbiBalanceByDenom ¶ added in v0.12.0
func (mr *MockDistributionKeeperMockRecorder) GetUbiBalanceByDenom(ctx, denom any) *gomock.Call
GetUbiBalanceByDenom indicates an expected call of GetUbiBalanceByDenom.
func (*MockDistributionKeeperMockRecorder) GetValidatorAccumulatedCommission ¶
func (mr *MockDistributionKeeperMockRecorder) GetValidatorAccumulatedCommission(ctx, val any) *gomock.Call
GetValidatorAccumulatedCommission indicates an expected call of GetValidatorAccumulatedCommission.
func (*MockDistributionKeeperMockRecorder) GetValidatorCurrentRewards ¶
func (mr *MockDistributionKeeperMockRecorder) GetValidatorCurrentRewards(ctx, val any) *gomock.Call
GetValidatorCurrentRewards indicates an expected call of GetValidatorCurrentRewards.
func (*MockDistributionKeeperMockRecorder) IncrementValidatorPeriod ¶
func (mr *MockDistributionKeeperMockRecorder) IncrementValidatorPeriod(ctx, val any) *gomock.Call
IncrementValidatorPeriod indicates an expected call of IncrementValidatorPeriod.
func (*MockDistributionKeeperMockRecorder) WithdrawDelegationRewards ¶
func (mr *MockDistributionKeeperMockRecorder) WithdrawDelegationRewards(ctx, delAddr, valAddr any) *gomock.Call
WithdrawDelegationRewards indicates an expected call of WithdrawDelegationRewards.
func (*MockDistributionKeeperMockRecorder) WithdrawUbiByDenomToModule ¶ added in v0.12.0
func (mr *MockDistributionKeeperMockRecorder) WithdrawUbiByDenomToModule(ctx, denom, recipientModule any) *gomock.Call
WithdrawUbiByDenomToModule indicates an expected call of WithdrawUbiByDenomToModule.
func (*MockDistributionKeeperMockRecorder) WithdrawValidatorCommission ¶
func (mr *MockDistributionKeeperMockRecorder) WithdrawValidatorCommission(ctx, valAddr any) *gomock.Call
WithdrawValidatorCommission indicates an expected call of WithdrawValidatorCommission.
type MockSlashingKeeper ¶
type MockSlashingKeeper struct {
// contains filtered or unexported fields
}
MockSlashingKeeper is a mock of SlashingKeeper interface.
func NewMockSlashingKeeper ¶
func NewMockSlashingKeeper(ctrl *gomock.Controller) *MockSlashingKeeper
NewMockSlashingKeeper creates a new mock instance.
func (*MockSlashingKeeper) EXPECT ¶
func (m *MockSlashingKeeper) EXPECT() *MockSlashingKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSlashingKeeper) Unjail ¶
func (m *MockSlashingKeeper) Unjail(ctx context.Context, validatorAddr types0.ValAddress) error
Unjail mocks base method.
type MockSlashingKeeperMockRecorder ¶
type MockSlashingKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockSlashingKeeperMockRecorder is the mock recorder for MockSlashingKeeper.
type MockStakingKeeper ¶
type MockStakingKeeper struct {
// contains filtered or unexported fields
}
MockStakingKeeper is a mock of StakingKeeper interface.
func NewMockStakingKeeper ¶
func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper
NewMockStakingKeeper creates a new mock instance.
func (*MockStakingKeeper) BondDenom ¶
func (m *MockStakingKeeper) BondDenom(ctx context.Context) (string, error)
BondDenom mocks base method.
func (*MockStakingKeeper) DeleteUnbondingIndex ¶
func (m *MockStakingKeeper) DeleteUnbondingIndex(ctx context.Context, id uint64) error
DeleteUnbondingIndex mocks base method.
func (*MockStakingKeeper) EXPECT ¶
func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStakingKeeper) EndBlocker ¶
func (m *MockStakingKeeper) EndBlocker(ctx context.Context) ([]types.ValidatorUpdate, error)
EndBlocker mocks base method.
func (*MockStakingKeeper) EndBlockerWithUnbondedEntries ¶ added in v0.12.0
func (m *MockStakingKeeper) EndBlockerWithUnbondedEntries(ctx context.Context) ([]types.ValidatorUpdate, []types2.UnbondedEntry, error)
EndBlockerWithUnbondedEntries mocks base method.
func (*MockStakingKeeper) GetAllDelegations ¶
func (m *MockStakingKeeper) GetAllDelegations(ctx context.Context) ([]types2.Delegation, error)
GetAllDelegations mocks base method.
func (*MockStakingKeeper) GetAllValidators ¶
GetAllValidators mocks base method.
func (*MockStakingKeeper) GetFlexiblePeriodType ¶ added in v0.12.0
func (m *MockStakingKeeper) GetFlexiblePeriodType(ctx context.Context) (int32, error)
GetFlexiblePeriodType mocks base method.
func (*MockStakingKeeper) GetLockedTokenType ¶ added in v0.12.0
func (m *MockStakingKeeper) GetLockedTokenType(ctx context.Context) (int32, error)
GetLockedTokenType mocks base method.
func (*MockStakingKeeper) GetPeriodInfo ¶ added in v0.12.0
func (m *MockStakingKeeper) GetPeriodInfo(ctx context.Context, periodType int32) (types2.Period, error)
GetPeriodInfo mocks base method.
func (*MockStakingKeeper) GetSingularityHeight ¶ added in v0.12.0
func (m *MockStakingKeeper) GetSingularityHeight(ctx context.Context) (uint64, error)
GetSingularityHeight mocks base method.
func (*MockStakingKeeper) GetTokenTypeInfo ¶ added in v0.12.0
func (m *MockStakingKeeper) GetTokenTypeInfo(ctx context.Context, tokenType int32) (types2.TokenTypeInfo, error)
GetTokenTypeInfo mocks base method.
func (*MockStakingKeeper) GetUnbondingDelegation ¶
func (m *MockStakingKeeper) GetUnbondingDelegation(ctx context.Context, delAddr types0.AccAddress, valAddr types0.ValAddress) (types2.UnbondingDelegation, error)
GetUnbondingDelegation mocks base method.
func (*MockStakingKeeper) GetUnbondingDelegations ¶
func (m *MockStakingKeeper) GetUnbondingDelegations(ctx context.Context, delegator types0.AccAddress, maxRetrieve uint16) ([]types2.UnbondingDelegation, error)
GetUnbondingDelegations mocks base method.
func (*MockStakingKeeper) GetUnbondingDelegationsFromValidator ¶
func (m *MockStakingKeeper) GetUnbondingDelegationsFromValidator(ctx context.Context, valAddr types0.ValAddress) ([]types2.UnbondingDelegation, error)
GetUnbondingDelegationsFromValidator mocks base method.
func (*MockStakingKeeper) GetValidator ¶
func (m *MockStakingKeeper) GetValidator(ctx context.Context, addr types0.ValAddress) (types2.Validator, error)
GetValidator mocks base method.
func (*MockStakingKeeper) GetValidatorDelegations ¶
func (m *MockStakingKeeper) GetValidatorDelegations(ctx context.Context, valAddr types0.ValAddress) ([]types2.Delegation, error)
GetValidatorDelegations mocks base method.
func (*MockStakingKeeper) MinDelegation ¶ added in v0.12.0
MinDelegation mocks base method.
func (*MockStakingKeeper) UBDQueueIterator ¶
func (m *MockStakingKeeper) UBDQueueIterator(ctx context.Context, endTime time.Time) (store.Iterator, error)
UBDQueueIterator mocks base method.
func (*MockStakingKeeper) ValidatorAddressCodec ¶
func (m *MockStakingKeeper) ValidatorAddressCodec() address.Codec
ValidatorAddressCodec mocks base method.
type MockStakingKeeperMockRecorder ¶
type MockStakingKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockStakingKeeperMockRecorder is the mock recorder for MockStakingKeeper.
func (*MockStakingKeeperMockRecorder) BondDenom ¶
func (mr *MockStakingKeeperMockRecorder) BondDenom(ctx any) *gomock.Call
BondDenom indicates an expected call of BondDenom.
func (*MockStakingKeeperMockRecorder) DeleteUnbondingIndex ¶
func (mr *MockStakingKeeperMockRecorder) DeleteUnbondingIndex(ctx, id any) *gomock.Call
DeleteUnbondingIndex indicates an expected call of DeleteUnbondingIndex.
func (*MockStakingKeeperMockRecorder) EndBlocker ¶
func (mr *MockStakingKeeperMockRecorder) EndBlocker(ctx any) *gomock.Call
EndBlocker indicates an expected call of EndBlocker.
func (*MockStakingKeeperMockRecorder) EndBlockerWithUnbondedEntries ¶ added in v0.12.0
func (mr *MockStakingKeeperMockRecorder) EndBlockerWithUnbondedEntries(ctx any) *gomock.Call
EndBlockerWithUnbondedEntries indicates an expected call of EndBlockerWithUnbondedEntries.
func (*MockStakingKeeperMockRecorder) GetAllDelegations ¶
func (mr *MockStakingKeeperMockRecorder) GetAllDelegations(ctx any) *gomock.Call
GetAllDelegations indicates an expected call of GetAllDelegations.
func (*MockStakingKeeperMockRecorder) GetAllValidators ¶
func (mr *MockStakingKeeperMockRecorder) GetAllValidators(ctx any) *gomock.Call
GetAllValidators indicates an expected call of GetAllValidators.
func (*MockStakingKeeperMockRecorder) GetFlexiblePeriodType ¶ added in v0.12.0
func (mr *MockStakingKeeperMockRecorder) GetFlexiblePeriodType(ctx any) *gomock.Call
GetFlexiblePeriodType indicates an expected call of GetFlexiblePeriodType.
func (*MockStakingKeeperMockRecorder) GetLockedTokenType ¶ added in v0.12.0
func (mr *MockStakingKeeperMockRecorder) GetLockedTokenType(ctx any) *gomock.Call
GetLockedTokenType indicates an expected call of GetLockedTokenType.
func (*MockStakingKeeperMockRecorder) GetPeriodInfo ¶ added in v0.12.0
func (mr *MockStakingKeeperMockRecorder) GetPeriodInfo(ctx, periodType any) *gomock.Call
GetPeriodInfo indicates an expected call of GetPeriodInfo.
func (*MockStakingKeeperMockRecorder) GetSingularityHeight ¶ added in v0.12.0
func (mr *MockStakingKeeperMockRecorder) GetSingularityHeight(ctx any) *gomock.Call
GetSingularityHeight indicates an expected call of GetSingularityHeight.
func (*MockStakingKeeperMockRecorder) GetTokenTypeInfo ¶ added in v0.12.0
func (mr *MockStakingKeeperMockRecorder) GetTokenTypeInfo(ctx, tokenType any) *gomock.Call
GetTokenTypeInfo indicates an expected call of GetTokenTypeInfo.
func (*MockStakingKeeperMockRecorder) GetUnbondingDelegation ¶
func (mr *MockStakingKeeperMockRecorder) GetUnbondingDelegation(ctx, delAddr, valAddr any) *gomock.Call
GetUnbondingDelegation indicates an expected call of GetUnbondingDelegation.
func (*MockStakingKeeperMockRecorder) GetUnbondingDelegations ¶
func (mr *MockStakingKeeperMockRecorder) GetUnbondingDelegations(ctx, delegator, maxRetrieve any) *gomock.Call
GetUnbondingDelegations indicates an expected call of GetUnbondingDelegations.
func (*MockStakingKeeperMockRecorder) GetUnbondingDelegationsFromValidator ¶
func (mr *MockStakingKeeperMockRecorder) GetUnbondingDelegationsFromValidator(ctx, valAddr any) *gomock.Call
GetUnbondingDelegationsFromValidator indicates an expected call of GetUnbondingDelegationsFromValidator.
func (*MockStakingKeeperMockRecorder) GetValidator ¶
func (mr *MockStakingKeeperMockRecorder) GetValidator(ctx, addr any) *gomock.Call
GetValidator indicates an expected call of GetValidator.
func (*MockStakingKeeperMockRecorder) GetValidatorDelegations ¶
func (mr *MockStakingKeeperMockRecorder) GetValidatorDelegations(ctx, valAddr any) *gomock.Call
GetValidatorDelegations indicates an expected call of GetValidatorDelegations.
func (*MockStakingKeeperMockRecorder) MinDelegation ¶ added in v0.12.0
func (mr *MockStakingKeeperMockRecorder) MinDelegation(ctx any) *gomock.Call
MinDelegation indicates an expected call of MinDelegation.
func (*MockStakingKeeperMockRecorder) UBDQueueIterator ¶
func (mr *MockStakingKeeperMockRecorder) UBDQueueIterator(ctx, endTime any) *gomock.Call
UBDQueueIterator indicates an expected call of UBDQueueIterator.
func (*MockStakingKeeperMockRecorder) ValidatorAddressCodec ¶
func (mr *MockStakingKeeperMockRecorder) ValidatorAddressCodec() *gomock.Call
ValidatorAddressCodec indicates an expected call of ValidatorAddressCodec.