Versions in this module Expand all Collapse all v0 v0.47.5 Sep 22, 2023 Changes in this version + var AppConfig = appconfig.Compose(&appv1alpha1.Config{ ... }) + func GetTmConsPubKey(v types.Validator) (tmcrypto.PubKey, error) + func NewValidator(t testing.TB, operator sdk.ValAddress, pubKey cryptotypes.PubKey) types.Validator + func ToTmValidator(v types.Validator, r math.Int) (*tmtypes.Validator, error) + func ToTmValidators(v types.Validators, r math.Int) ([]*tmtypes.Validator, error) + func ZeroCommission() stakingtypes.CommissionRates + type Helper struct + Commission stakingtypes.CommissionRates + Ctx sdk.Context + Denom string + func NewHelper(t *testing.T, ctx sdk.Context, k *keeper.Keeper) *Helper + func (sh *Helper) CheckDelegator(delegator sdk.AccAddress, val sdk.ValAddress, found bool) + func (sh *Helper) CheckValidator(addr sdk.ValAddress, status stakingtypes.BondStatus, jailed bool) stakingtypes.Validator + func (sh *Helper) CreateValidator(addr sdk.ValAddress, pk cryptotypes.PubKey, stakeAmount math.Int, ok bool) + func (sh *Helper) CreateValidatorMsg(addr sdk.ValAddress, pk cryptotypes.PubKey, stakeAmount math.Int) *stakingtypes.MsgCreateValidator + func (sh *Helper) CreateValidatorWithMsg(ctx context.Context, msg *stakingtypes.MsgCreateValidator) (*stakingtypes.MsgCreateValidatorResponse, error) + func (sh *Helper) CreateValidatorWithValPower(addr sdk.ValAddress, pk cryptotypes.PubKey, valPower int64, ok bool) math.Int + func (sh *Helper) Delegate(delegator sdk.AccAddress, val sdk.ValAddress, amount math.Int) + func (sh *Helper) DelegateWithPower(delegator sdk.AccAddress, val sdk.ValAddress, power int64) + func (sh *Helper) TurnBlock(newTime time.Time) sdk.Context + func (sh *Helper) TurnBlockTimeDiff(diff time.Duration) sdk.Context + func (sh *Helper) Undelegate(delegator sdk.AccAddress, val sdk.ValAddress, amount math.Int, ok bool) + type MockAccountKeeper struct + func NewMockAccountKeeper(ctrl *gomock.Controller) *MockAccountKeeper + func (m *MockAccountKeeper) EXPECT() *MockAccountKeeperMockRecorder + func (m *MockAccountKeeper) GetAccount(ctx types.Context, addr types.AccAddress) types0.AccountI + func (m *MockAccountKeeper) GetModuleAccount(ctx types.Context, moduleName string) types0.ModuleAccountI + func (m *MockAccountKeeper) GetModuleAddress(name string) types.AccAddress + func (m *MockAccountKeeper) IterateAccounts(ctx types.Context, process func(types0.AccountI) bool) + func (m *MockAccountKeeper) SetModuleAccount(arg0 types.Context, arg1 types0.ModuleAccountI) + type MockAccountKeeperMockRecorder struct + func (mr *MockAccountKeeperMockRecorder) GetAccount(ctx, addr interface{}) *gomock.Call + func (mr *MockAccountKeeperMockRecorder) GetModuleAccount(ctx, moduleName interface{}) *gomock.Call + func (mr *MockAccountKeeperMockRecorder) GetModuleAddress(name interface{}) *gomock.Call + func (mr *MockAccountKeeperMockRecorder) IterateAccounts(ctx, process interface{}) *gomock.Call + func (mr *MockAccountKeeperMockRecorder) SetModuleAccount(arg0, arg1 interface{}) *gomock.Call + type MockBankKeeper struct + func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper + func (m *MockBankKeeper) BurnCoins(ctx types.Context, name string, amt types.Coins) error + func (m *MockBankKeeper) DelegateCoinsFromAccountToModule(ctx types.Context, senderAddr types.AccAddress, recipientModule string, ...) error + func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder + func (m *MockBankKeeper) GetAllBalances(ctx types.Context, addr types.AccAddress) types.Coins + func (m *MockBankKeeper) GetBalance(ctx types.Context, addr types.AccAddress, denom string) types.Coin + func (m *MockBankKeeper) GetSupply(ctx types.Context, denom string) types.Coin + func (m *MockBankKeeper) LockedCoins(ctx types.Context, addr types.AccAddress) types.Coins + func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx types.Context, senderPool, recipientPool string, amt types.Coins) error + func (m *MockBankKeeper) SpendableCoins(ctx types.Context, addr types.AccAddress) types.Coins + func (m *MockBankKeeper) UndelegateCoinsFromModuleToAccount(ctx types.Context, senderModule string, recipientAddr types.AccAddress, ...) error + type MockBankKeeperMockRecorder struct + func (mr *MockBankKeeperMockRecorder) BurnCoins(ctx, name, amt 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) 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 MockDelegationSet struct + func NewMockDelegationSet(ctrl *gomock.Controller) *MockDelegationSet + func (m *MockDelegationSet) EXPECT() *MockDelegationSetMockRecorder + func (m *MockDelegationSet) GetValidatorSet() types1.ValidatorSet + func (m *MockDelegationSet) IterateDelegations(ctx types.Context, delegator types.AccAddress, ...) + type MockDelegationSetMockRecorder struct + func (mr *MockDelegationSetMockRecorder) GetValidatorSet() *gomock.Call + func (mr *MockDelegationSetMockRecorder) IterateDelegations(ctx, delegator, fn interface{}) *gomock.Call + type MockDistributionKeeper struct + func NewMockDistributionKeeper(ctrl *gomock.Controller) *MockDistributionKeeper + func (m *MockDistributionKeeper) EXPECT() *MockDistributionKeeperMockRecorder + func (m *MockDistributionKeeper) GetFeePoolCommunityCoins(ctx types.Context) types.DecCoins + func (m *MockDistributionKeeper) GetValidatorOutstandingRewardsCoins(ctx types.Context, val types.ValAddress) types.DecCoins + type MockDistributionKeeperMockRecorder struct + func (mr *MockDistributionKeeperMockRecorder) GetFeePoolCommunityCoins(ctx interface{}) *gomock.Call + func (mr *MockDistributionKeeperMockRecorder) GetValidatorOutstandingRewardsCoins(ctx, val interface{}) *gomock.Call + type MockStakingHooks struct + func NewMockStakingHooks(ctrl *gomock.Controller) *MockStakingHooks + func (m *MockStakingHooks) AfterDelegationModified(ctx types.Context, delAddr types.AccAddress, valAddr types.ValAddress) error + func (m *MockStakingHooks) AfterUnbondingInitiated(ctx types.Context, id uint64) error + func (m *MockStakingHooks) AfterValidatorBeginUnbonding(ctx types.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error + func (m *MockStakingHooks) AfterValidatorBonded(ctx types.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error + func (m *MockStakingHooks) AfterValidatorCreated(ctx types.Context, valAddr types.ValAddress) error + func (m *MockStakingHooks) AfterValidatorRemoved(ctx types.Context, consAddr types.ConsAddress, valAddr types.ValAddress) error + func (m *MockStakingHooks) BeforeDelegationCreated(ctx types.Context, delAddr types.AccAddress, valAddr types.ValAddress) error + func (m *MockStakingHooks) BeforeDelegationRemoved(ctx types.Context, delAddr types.AccAddress, valAddr types.ValAddress) error + func (m *MockStakingHooks) BeforeDelegationSharesModified(ctx types.Context, delAddr types.AccAddress, valAddr types.ValAddress) error + func (m *MockStakingHooks) BeforeValidatorModified(ctx types.Context, valAddr types.ValAddress) error + func (m *MockStakingHooks) BeforeValidatorSlashed(ctx types.Context, valAddr types.ValAddress, fraction types.Dec) error + func (m *MockStakingHooks) EXPECT() *MockStakingHooksMockRecorder + type MockStakingHooksMockRecorder struct + func (mr *MockStakingHooksMockRecorder) AfterDelegationModified(ctx, delAddr, valAddr interface{}) *gomock.Call + func (mr *MockStakingHooksMockRecorder) AfterUnbondingInitiated(ctx, id interface{}) *gomock.Call + func (mr *MockStakingHooksMockRecorder) AfterValidatorBeginUnbonding(ctx, consAddr, valAddr interface{}) *gomock.Call + func (mr *MockStakingHooksMockRecorder) AfterValidatorBonded(ctx, consAddr, valAddr interface{}) *gomock.Call + func (mr *MockStakingHooksMockRecorder) AfterValidatorCreated(ctx, valAddr interface{}) *gomock.Call + func (mr *MockStakingHooksMockRecorder) AfterValidatorRemoved(ctx, consAddr, valAddr interface{}) *gomock.Call + func (mr *MockStakingHooksMockRecorder) BeforeDelegationCreated(ctx, delAddr, valAddr interface{}) *gomock.Call + func (mr *MockStakingHooksMockRecorder) BeforeDelegationRemoved(ctx, delAddr, valAddr interface{}) *gomock.Call + func (mr *MockStakingHooksMockRecorder) BeforeDelegationSharesModified(ctx, delAddr, valAddr interface{}) *gomock.Call + func (mr *MockStakingHooksMockRecorder) BeforeValidatorModified(ctx, valAddr interface{}) *gomock.Call + func (mr *MockStakingHooksMockRecorder) BeforeValidatorSlashed(ctx, valAddr, fraction interface{}) *gomock.Call + type MockValidatorSet struct + func NewMockValidatorSet(ctrl *gomock.Controller) *MockValidatorSet + func (m *MockValidatorSet) Delegation(arg0 types.Context, arg1 types.AccAddress, arg2 types.ValAddress) types1.DelegationI + func (m *MockValidatorSet) EXPECT() *MockValidatorSetMockRecorder + func (m *MockValidatorSet) IterateBondedValidatorsByPower(arg0 types.Context, arg1 func(int64, types1.ValidatorI) bool) + func (m *MockValidatorSet) IterateLastValidators(arg0 types.Context, arg1 func(int64, types1.ValidatorI) bool) + func (m *MockValidatorSet) IterateValidators(arg0 types.Context, arg1 func(int64, types1.ValidatorI) bool) + func (m *MockValidatorSet) Jail(arg0 types.Context, arg1 types.ConsAddress) + func (m *MockValidatorSet) MaxValidators(arg0 types.Context) uint32 + func (m *MockValidatorSet) Slash(arg0 types.Context, arg1 types.ConsAddress, arg2, arg3 int64, arg4 types.Dec) math.Int + func (m *MockValidatorSet) SlashWithInfractionReason(arg0 types.Context, arg1 types.ConsAddress, arg2, arg3 int64, arg4 types.Dec, ...) math.Int + func (m *MockValidatorSet) StakingTokenSupply(arg0 types.Context) math.Int + func (m *MockValidatorSet) TotalBondedTokens(arg0 types.Context) math.Int + func (m *MockValidatorSet) Unjail(arg0 types.Context, arg1 types.ConsAddress) + func (m *MockValidatorSet) Validator(arg0 types.Context, arg1 types.ValAddress) types1.ValidatorI + func (m *MockValidatorSet) ValidatorByConsAddr(arg0 types.Context, arg1 types.ConsAddress) types1.ValidatorI + type MockValidatorSetMockRecorder struct + func (mr *MockValidatorSetMockRecorder) Delegation(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) IterateBondedValidatorsByPower(arg0, arg1 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) IterateLastValidators(arg0, arg1 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) IterateValidators(arg0, arg1 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) Jail(arg0, arg1 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) MaxValidators(arg0 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) Slash(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) SlashWithInfractionReason(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) StakingTokenSupply(arg0 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) TotalBondedTokens(arg0 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) Unjail(arg0, arg1 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) Validator(arg0, arg1 interface{}) *gomock.Call + func (mr *MockValidatorSetMockRecorder) ValidatorByConsAddr(arg0, arg1 interface{}) *gomock.Call