Documentation
¶
Index ¶
- func CreateTestValidator(t *testing.T, ctx sdk.Context, stakingKeeper *stakingkeeper.Keeper, ...) stakingtypes.Validator
- type EncodingConfig
- type MockBankKeeper
- func (m *MockBankKeeper) BurnCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
- func (m *MockBankKeeper) DelegateCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error
- func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
- func (m *MockBankKeeper) GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin
- func (m *MockBankKeeper) IterateAllBalances(ctx context.Context, cb func(addr sdk.AccAddress, coin sdk.Coin) bool)
- func (m *MockBankKeeper) MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
- func (m *MockBankKeeper) SendCoins(ctx context.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, ...) error
- func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, ...) error
- func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error
- func (m *MockBankKeeper) SendCoinsFromModuleToModule(ctx context.Context, senderModule, recipientModule string, amt sdk.Coins) error
- func (m *MockBankKeeper) UndelegateCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, ...) error
- type MockBankKeeperMockRecorder
- func (mr *MockBankKeeperMockRecorder) BurnCoins(ctx, moduleName, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) IterateAllBalances(ctx, cb interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) SendCoins(ctx, fromAddr, toAddr, 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, senderModule, recipientModule, amt interface{}) *gomock.Call
- func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
- type MockDistributionKeeper
- func (m *MockDistributionKeeper) AllocateTokens(ctx context.Context, totalReward int64, bondedValidators []abcitypes.VoteInfo) error
- func (m *MockDistributionKeeper) AllocateTokensToValidator(ctx context.Context, val stakingtypes.ValidatorI, tokens sdk.DecCoins) error
- func (m *MockDistributionKeeper) EXPECT() *MockDistributionKeeperRecorder
- func (m *MockDistributionKeeper) GetPreviousProposerConsAddr(ctx context.Context) (sdk.ConsAddress, error)
- func (m *MockDistributionKeeper) GetValidatorOutstandingRewards(ctx context.Context, valAddr sdk.ValAddress) (distrtypes.ValidatorOutstandingRewards, error)
- func (m *MockDistributionKeeper) WithdrawDelegationRewards(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
- type MockDistributionKeeperRecorder
- func (mr *MockDistributionKeeperRecorder) AllocateTokens(ctx, totalReward, bondedValidators any) *gomock.Call
- func (mr *MockDistributionKeeperRecorder) AllocateTokensToValidator(ctx, val, tokens any) *gomock.Call
- func (mr *MockDistributionKeeperRecorder) GetPreviousProposerConsAddr(ctx any) *gomock.Call
- func (mr *MockDistributionKeeperRecorder) GetValidatorOutstandingRewards(ctx, valAddr any) *gomock.Call
- func (mr *MockDistributionKeeperRecorder) WithdrawDelegationRewards(ctx, delAddr, valAddr any) *gomock.Call
- type MockEpochsKeeper
- type MockEpochsKeeperMockRecorder
- type MockStakingKeeper
- func (m *MockStakingKeeper) BeginRedelegation(ctx context.Context, delAddr sdk.AccAddress, ...) (completionTime time.Time, err error)
- func (m *MockStakingKeeper) BondDenom(ctx context.Context) (string, error)
- func (m *MockStakingKeeper) BondedRatio(ctx context.Context) (math.LegacyDec, error)
- func (m *MockStakingKeeper) CompleteUnbonding(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
- func (m *MockStakingKeeper) Delegate(ctx context.Context, delAddr sdk.AccAddress, bondAmt math.Int, ...) (math.LegacyDec, error)
- func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperRecorder
- func (m *MockStakingKeeper) GetAllValidators(ctx context.Context) ([]stakingtypes.Validator, error)
- func (m *MockStakingKeeper) GetDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (stakingtypes.Delegation, error)
- func (m *MockStakingKeeper) GetUnbondingDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (ubd stakingtypes.UnbondingDelegation, err error)
- func (m *MockStakingKeeper) GetValidator(ctx context.Context, addr sdk.ValAddress) (stakingtypes.Validator, error)
- func (m *MockStakingKeeper) GetValidatorByConsAddr(ctx context.Context, consAddr sdk.ConsAddress) (stakingtypes.Validator, error)
- func (m *MockStakingKeeper) GetValidatorDelegations(ctx context.Context, valAddr sdk.ValAddress) ([]stakingtypes.Delegation, error)
- func (m *MockStakingKeeper) IterateDelegations(ctx context.Context, delAddr sdk.AccAddress, ...) error
- func (m *MockStakingKeeper) IterateValidators(ctx context.Context, ...) error
- func (m *MockStakingKeeper) RemoveUnbondingDelegation(ctx context.Context, ubd stakingtypes.UnbondingDelegation) error
- func (m *MockStakingKeeper) SetUnbondingDelegation(ctx context.Context, ubd stakingtypes.UnbondingDelegation) error
- func (m *MockStakingKeeper) SetValidator(ctx context.Context, addr stakingtypes.Validator) error
- func (m *MockStakingKeeper) SetValidatorByConsAddr(ctx context.Context, addr stakingtypes.Validator) error
- func (m *MockStakingKeeper) StakingTokenSupply(ctx context.Context) (math.Int, error)
- func (m *MockStakingKeeper) TotalBondedTokens(ctx context.Context) (math.Int, error)
- func (m *MockStakingKeeper) Undelegate(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ...) (time.Time, math.Int, error)
- func (m *MockStakingKeeper) ValidateUnbondAmount(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, ...) (shares math.LegacyDec, err error)
- type MockStakingKeeperRecorder
- func (mr *MockStakingKeeperRecorder) BeginRedelegation(ctx, delAddr, valSrcAddr, valDstAddr, sharesAmount interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) BondDenom(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) BondedRatio(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) CompleteUnbonding(ctx, delAddr, valAddr interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) Delegate(ctx, delAddr, bondAmt, tokenSrc, validator, subtractAccount interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) GetAllValidators(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) GetDelegation(ctx, delAddr, valAddr interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) GetUnbondingDelegation(ctx, delAddr, valAddr interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) GetValidator(ctx, addr interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) GetValidatorByConsAddr(ctx, consAddr any) *gomock.Call
- func (mr *MockStakingKeeperRecorder) GetValidatorDelegations(ctx, valAddr interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) IterateDelegations(ctx, delAddr, fn interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) IterateValidators(ctx, fn interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) RemoveUnbondingDelegation(ctx, ubd interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) SetUnbondingDelegation(ctx, ubd interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) SetValidator(ctx, addr interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) SetValidatorByConsAddr(ctx, addr interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) StakingTokenSupply(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) TotalBondedTokens(ctx interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) Undelegate(ctx, delAddr, valAddr, sharesAmount interface{}) *gomock.Call
- func (mr *MockStakingKeeperRecorder) ValidateUnbondAmount(ctx, delAddr, valAddr, amt interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestValidator ¶ added in v0.3.0
func CreateTestValidator( t *testing.T, ctx sdk.Context, stakingKeeper *stakingkeeper.Keeper, operatorAddress sdk.ValAddress, pubKey cryptotypes.PubKey, bondAmount math.Int, ) stakingtypes.Validator
CreateTestValidator creates a validator for testing purposes.
Types ¶
type EncodingConfig ¶ added in v0.3.0
type EncodingConfig struct { InterfaceRegistry types.InterfaceRegistry Codec codec.Codec TxConfig client.TxConfig Amino *codec.LegacyAmino }
func CreateTestEncodingConfig ¶ added in v0.3.0
func CreateTestEncodingConfig() EncodingConfig
CreateTestEncodingConfig creates encoding configuration for testing purposes.
type MockBankKeeper ¶ added in v0.3.0
type MockBankKeeper struct {
// contains filtered or unexported fields
}
Mock bank keeper
func NewMockBankKeeper ¶ added in v0.3.0
func NewMockBankKeeper(ctrl *gomock.Controller) *MockBankKeeper
func (*MockBankKeeper) DelegateCoinsFromAccountToModule ¶ added in v0.3.0
func (m *MockBankKeeper) DelegateCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
func (*MockBankKeeper) EXPECT ¶ added in v0.3.0
func (m *MockBankKeeper) EXPECT() *MockBankKeeperMockRecorder
func (*MockBankKeeper) GetBalance ¶ added in v0.3.0
func (m *MockBankKeeper) GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin
func (*MockBankKeeper) IterateAllBalances ¶ added in v0.3.0
func (m *MockBankKeeper) IterateAllBalances(ctx context.Context, cb func(addr sdk.AccAddress, coin sdk.Coin) bool)
func (*MockBankKeeper) SendCoins ¶ added in v0.3.0
func (m *MockBankKeeper) SendCoins(ctx context.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
func (*MockBankKeeper) SendCoinsFromAccountToModule ¶ added in v0.3.0
func (m *MockBankKeeper) SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
func (*MockBankKeeper) SendCoinsFromModuleToAccount ¶ added in v0.3.0
func (m *MockBankKeeper) SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
func (*MockBankKeeper) SendCoinsFromModuleToModule ¶ added in v0.3.0
func (*MockBankKeeper) UndelegateCoinsFromModuleToAccount ¶ added in v0.3.0
func (m *MockBankKeeper) UndelegateCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
type MockBankKeeperMockRecorder ¶ added in v0.3.0
type MockBankKeeperMockRecorder struct {
// contains filtered or unexported fields
}
func (*MockBankKeeperMockRecorder) BurnCoins ¶ added in v0.3.0
func (mr *MockBankKeeperMockRecorder) BurnCoins(ctx, moduleName, amt interface{}) *gomock.Call
func (*MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule ¶ added in v0.3.0
func (mr *MockBankKeeperMockRecorder) DelegateCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call
func (*MockBankKeeperMockRecorder) GetBalance ¶ added in v0.3.0
func (mr *MockBankKeeperMockRecorder) GetBalance(ctx, addr, denom interface{}) *gomock.Call
func (*MockBankKeeperMockRecorder) IterateAllBalances ¶ added in v0.3.0
func (mr *MockBankKeeperMockRecorder) IterateAllBalances(ctx, cb interface{}) *gomock.Call
func (*MockBankKeeperMockRecorder) MintCoins ¶ added in v0.3.0
func (mr *MockBankKeeperMockRecorder) MintCoins(ctx, moduleName, amt interface{}) *gomock.Call
func (*MockBankKeeperMockRecorder) SendCoins ¶ added in v0.3.0
func (mr *MockBankKeeperMockRecorder) SendCoins(ctx, fromAddr, toAddr, amt interface{}) *gomock.Call
func (*MockBankKeeperMockRecorder) SendCoinsFromAccountToModule ¶ added in v0.3.0
func (mr *MockBankKeeperMockRecorder) SendCoinsFromAccountToModule(ctx, senderAddr, recipientModule, amt interface{}) *gomock.Call
func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount ¶ added in v0.3.0
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
func (*MockBankKeeperMockRecorder) SendCoinsFromModuleToModule ¶ added in v0.3.0
func (mr *MockBankKeeperMockRecorder) SendCoinsFromModuleToModule(ctx, senderModule, recipientModule, amt interface{}) *gomock.Call
func (*MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount ¶ added in v0.3.0
func (mr *MockBankKeeperMockRecorder) UndelegateCoinsFromModuleToAccount(ctx, senderModule, recipientAddr, amt interface{}) *gomock.Call
type MockDistributionKeeper ¶ added in v0.3.0
type MockDistributionKeeper struct {
// contains filtered or unexported fields
}
Mock distribution keeper
func NewMockDistributionKeeper ¶ added in v0.3.0
func NewMockDistributionKeeper(ctrl *gomock.Controller) *MockDistributionKeeper
func (*MockDistributionKeeper) AllocateTokens ¶ added in v0.3.0
func (*MockDistributionKeeper) AllocateTokensToValidator ¶ added in v0.3.0
func (m *MockDistributionKeeper) AllocateTokensToValidator(ctx context.Context, val stakingtypes.ValidatorI, tokens sdk.DecCoins) error
func (*MockDistributionKeeper) EXPECT ¶ added in v0.3.0
func (m *MockDistributionKeeper) EXPECT() *MockDistributionKeeperRecorder
func (*MockDistributionKeeper) GetPreviousProposerConsAddr ¶ added in v0.3.0
func (m *MockDistributionKeeper) GetPreviousProposerConsAddr(ctx context.Context) (sdk.ConsAddress, error)
func (*MockDistributionKeeper) GetValidatorOutstandingRewards ¶ added in v0.3.0
func (m *MockDistributionKeeper) GetValidatorOutstandingRewards(ctx context.Context, valAddr sdk.ValAddress) (distrtypes.ValidatorOutstandingRewards, error)
func (*MockDistributionKeeper) WithdrawDelegationRewards ¶ added in v0.3.0
func (m *MockDistributionKeeper) WithdrawDelegationRewards(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
type MockDistributionKeeperRecorder ¶ added in v0.3.0
type MockDistributionKeeperRecorder struct {
// contains filtered or unexported fields
}
func (*MockDistributionKeeperRecorder) AllocateTokens ¶ added in v0.3.0
func (mr *MockDistributionKeeperRecorder) AllocateTokens(ctx, totalReward, bondedValidators any) *gomock.Call
func (*MockDistributionKeeperRecorder) AllocateTokensToValidator ¶ added in v0.3.0
func (mr *MockDistributionKeeperRecorder) AllocateTokensToValidator(ctx, val, tokens any) *gomock.Call
func (*MockDistributionKeeperRecorder) GetPreviousProposerConsAddr ¶ added in v0.3.0
func (mr *MockDistributionKeeperRecorder) GetPreviousProposerConsAddr(ctx any) *gomock.Call
func (*MockDistributionKeeperRecorder) GetValidatorOutstandingRewards ¶ added in v0.3.0
func (mr *MockDistributionKeeperRecorder) GetValidatorOutstandingRewards(ctx, valAddr any) *gomock.Call
func (*MockDistributionKeeperRecorder) WithdrawDelegationRewards ¶ added in v0.3.0
func (mr *MockDistributionKeeperRecorder) WithdrawDelegationRewards(ctx, delAddr, valAddr any) *gomock.Call
type MockEpochsKeeper ¶ added in v0.3.0
type MockEpochsKeeper struct {
// contains filtered or unexported fields
}
Mock epochs keeper
func NewMockEpochsKeeper ¶ added in v0.3.0
func NewMockEpochsKeeper(ctrl *gomock.Controller) *MockEpochsKeeper
func (*MockEpochsKeeper) EXPECT ¶ added in v0.3.0
func (m *MockEpochsKeeper) EXPECT() *MockEpochsKeeperMockRecorder
func (*MockEpochsKeeper) GetEpochInfo ¶ added in v0.3.0
func (m *MockEpochsKeeper) GetEpochInfo(ctx context.Context, identifier string) epochstypes.EpochInfo
func (*MockEpochsKeeper) SetEpochInfo ¶ added in v0.3.0
func (m *MockEpochsKeeper) SetEpochInfo(ctx context.Context, info epochstypes.EpochInfo)
type MockEpochsKeeperMockRecorder ¶ added in v0.3.0
type MockEpochsKeeperMockRecorder struct {
// contains filtered or unexported fields
}
func (*MockEpochsKeeperMockRecorder) GetEpochInfo ¶ added in v0.3.0
func (mr *MockEpochsKeeperMockRecorder) GetEpochInfo(ctx, identifier interface{}) *gomock.Call
func (*MockEpochsKeeperMockRecorder) SetEpochInfo ¶ added in v0.3.0
func (mr *MockEpochsKeeperMockRecorder) SetEpochInfo(ctx, info interface{}) *gomock.Call
type MockStakingKeeper ¶ added in v0.3.0
type MockStakingKeeper struct {
// contains filtered or unexported fields
}
Mock staking keeper
func NewMockStakingKeeper ¶ added in v0.3.0
func NewMockStakingKeeper(ctrl *gomock.Controller) *MockStakingKeeper
func (*MockStakingKeeper) BeginRedelegation ¶ added in v0.3.0
func (m *MockStakingKeeper) BeginRedelegation(ctx context.Context, delAddr sdk.AccAddress, valSrcAddr, valDstAddr sdk.ValAddress, sharesAmount math.LegacyDec) (completionTime time.Time, err error)
func (*MockStakingKeeper) BondDenom ¶ added in v0.3.0
func (m *MockStakingKeeper) BondDenom(ctx context.Context) (string, error)
func (*MockStakingKeeper) BondedRatio ¶ added in v0.3.0
func (*MockStakingKeeper) CompleteUnbonding ¶ added in v0.3.0
func (m *MockStakingKeeper) CompleteUnbonding(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
func (*MockStakingKeeper) Delegate ¶ added in v0.3.0
func (m *MockStakingKeeper) Delegate(ctx context.Context, delAddr sdk.AccAddress, bondAmt math.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool) (math.LegacyDec, error)
func (*MockStakingKeeper) EXPECT ¶ added in v0.3.0
func (m *MockStakingKeeper) EXPECT() *MockStakingKeeperRecorder
func (*MockStakingKeeper) GetAllValidators ¶ added in v0.3.0
func (m *MockStakingKeeper) GetAllValidators(ctx context.Context) ([]stakingtypes.Validator, error)
func (*MockStakingKeeper) GetDelegation ¶ added in v0.3.0
func (m *MockStakingKeeper) GetDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (stakingtypes.Delegation, error)
func (*MockStakingKeeper) GetUnbondingDelegation ¶ added in v0.3.0
func (m *MockStakingKeeper) GetUnbondingDelegation(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) ( ubd stakingtypes.UnbondingDelegation, err error)
func (*MockStakingKeeper) GetValidator ¶ added in v0.3.0
func (m *MockStakingKeeper) GetValidator(ctx context.Context, addr sdk.ValAddress) (stakingtypes.Validator, error)
func (*MockStakingKeeper) GetValidatorByConsAddr ¶ added in v0.3.0
func (m *MockStakingKeeper) GetValidatorByConsAddr(ctx context.Context, consAddr sdk.ConsAddress) (stakingtypes.Validator, error)
func (*MockStakingKeeper) GetValidatorDelegations ¶ added in v0.3.0
func (m *MockStakingKeeper) GetValidatorDelegations(ctx context.Context, valAddr sdk.ValAddress) ([]stakingtypes.Delegation, error)
func (*MockStakingKeeper) IterateDelegations ¶ added in v0.3.0
func (m *MockStakingKeeper) IterateDelegations(ctx context.Context, delAddr sdk.AccAddress, fn func(index int64, delegation stakingtypes.DelegationI) (stop bool)) error
func (*MockStakingKeeper) IterateValidators ¶ added in v0.3.0
func (m *MockStakingKeeper) IterateValidators(ctx context.Context, fn func(index int64, validator stakingtypes.ValidatorI) (stop bool)) error
func (*MockStakingKeeper) RemoveUnbondingDelegation ¶ added in v0.3.0
func (m *MockStakingKeeper) RemoveUnbondingDelegation(ctx context.Context, ubd stakingtypes.UnbondingDelegation) error
func (*MockStakingKeeper) SetUnbondingDelegation ¶ added in v0.3.0
func (m *MockStakingKeeper) SetUnbondingDelegation(ctx context.Context, ubd stakingtypes.UnbondingDelegation) error
func (*MockStakingKeeper) SetValidator ¶ added in v0.3.0
func (m *MockStakingKeeper) SetValidator(ctx context.Context, addr stakingtypes.Validator) error
func (*MockStakingKeeper) SetValidatorByConsAddr ¶ added in v0.3.0
func (m *MockStakingKeeper) SetValidatorByConsAddr(ctx context.Context, addr stakingtypes.Validator) error
func (*MockStakingKeeper) StakingTokenSupply ¶ added in v0.3.0
func (*MockStakingKeeper) TotalBondedTokens ¶ added in v0.3.0
func (*MockStakingKeeper) Undelegate ¶ added in v0.3.0
func (m *MockStakingKeeper) Undelegate(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, sharesAmount math.LegacyDec) ( time.Time, math.Int, error)
func (*MockStakingKeeper) ValidateUnbondAmount ¶ added in v0.3.0
func (m *MockStakingKeeper) ValidateUnbondAmount(ctx context.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt math.Int) ( shares math.LegacyDec, err error)
type MockStakingKeeperRecorder ¶ added in v0.3.0
type MockStakingKeeperRecorder struct {
// contains filtered or unexported fields
}
func (*MockStakingKeeperRecorder) BeginRedelegation ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) BeginRedelegation(ctx, delAddr, valSrcAddr, valDstAddr, sharesAmount interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) BondDenom ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) BondDenom(ctx interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) BondedRatio ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) BondedRatio(ctx interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) CompleteUnbonding ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) CompleteUnbonding(ctx, delAddr, valAddr interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) Delegate ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) Delegate(ctx, delAddr, bondAmt, tokenSrc, validator, subtractAccount interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) GetAllValidators ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) GetAllValidators(ctx interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) GetDelegation ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) GetDelegation(ctx, delAddr, valAddr interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) GetUnbondingDelegation ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) GetUnbondingDelegation(ctx, delAddr, valAddr interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) GetValidator ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) GetValidator(ctx, addr interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) GetValidatorByConsAddr ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) GetValidatorByConsAddr(ctx, consAddr any) *gomock.Call
func (*MockStakingKeeperRecorder) GetValidatorDelegations ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) GetValidatorDelegations(ctx, valAddr interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) IterateDelegations ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) IterateDelegations(ctx, delAddr, fn interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) IterateValidators ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) IterateValidators(ctx, fn interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) RemoveUnbondingDelegation ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) RemoveUnbondingDelegation(ctx, ubd interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) SetUnbondingDelegation ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) SetUnbondingDelegation(ctx, ubd interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) SetValidator ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) SetValidator(ctx, addr interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) SetValidatorByConsAddr ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) SetValidatorByConsAddr(ctx, addr interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) StakingTokenSupply ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) StakingTokenSupply(ctx interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) TotalBondedTokens ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) TotalBondedTokens(ctx interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) Undelegate ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) Undelegate(ctx, delAddr, valAddr, sharesAmount interface{}) *gomock.Call
func (*MockStakingKeeperRecorder) ValidateUnbondAmount ¶ added in v0.3.0
func (mr *MockStakingKeeperRecorder) ValidateUnbondAmount(ctx, delAddr, valAddr, amt interface{}) *gomock.Call
Click to show internal directories.
Click to hide internal directories.