@@ -3,7 +3,6 @@ package types
3
3
import (
4
4
sdk "github.com/cosmos/cosmos-sdk/types"
5
5
"github.com/cosmos/cosmos-sdk/x/auth/types"
6
- stakingexported "github.com/cosmos/cosmos-sdk/x/staking/exported"
7
6
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
8
7
)
9
8
@@ -35,18 +34,18 @@ type BankKeeper interface {
35
34
type StakingKeeper interface {
36
35
// iterate through validators by operator address, execute func for each validator
37
36
IterateValidators (sdk.Context ,
38
- func (index int64 , validator stakingexported .ValidatorI ) (stop bool ))
37
+ func (index int64 , validator stakingtypes .ValidatorI ) (stop bool ))
39
38
40
39
// iterate through bonded validators by operator address, execute func for each validator
41
40
IterateBondedValidatorsByPower (sdk.Context ,
42
- func (index int64 , validator stakingexported .ValidatorI ) (stop bool ))
41
+ func (index int64 , validator stakingtypes .ValidatorI ) (stop bool ))
43
42
44
43
// iterate through the consensus validator set of the last block by operator address, execute func for each validator
45
44
IterateLastValidators (sdk.Context ,
46
- func (index int64 , validator stakingexported .ValidatorI ) (stop bool ))
45
+ func (index int64 , validator stakingtypes .ValidatorI ) (stop bool ))
47
46
48
- Validator (sdk.Context , sdk.ValAddress ) stakingexported .ValidatorI // get a particular validator by operator address
49
- ValidatorByConsAddr (sdk.Context , sdk.ConsAddress ) stakingexported .ValidatorI // get a particular validator by consensus address
47
+ Validator (sdk.Context , sdk.ValAddress ) stakingtypes .ValidatorI // get a particular validator by operator address
48
+ ValidatorByConsAddr (sdk.Context , sdk.ConsAddress ) stakingtypes .ValidatorI // get a particular validator by consensus address
50
49
51
50
// slash the validator and delegators of the validator, specifying offence height, offence power, and slash fraction
52
51
Slash (sdk.Context , sdk.ConsAddress , int64 , int64 , sdk.Dec )
@@ -55,13 +54,13 @@ type StakingKeeper interface {
55
54
56
55
// Delegation allows for getting a particular delegation for a given validator
57
56
// and delegator outside the scope of the staking module.
58
- Delegation (sdk.Context , sdk.AccAddress , sdk.ValAddress ) stakingexported .DelegationI
57
+ Delegation (sdk.Context , sdk.AccAddress , sdk.ValAddress ) stakingtypes .DelegationI
59
58
60
59
// MaxValidators returns the maximum amount of bonded validators
61
60
MaxValidators (sdk.Context ) uint32
62
61
63
62
IterateDelegations (ctx sdk.Context , delegator sdk.AccAddress ,
64
- fn func (index int64 , delegation stakingexported .DelegationI ) (stop bool ))
63
+ fn func (index int64 , delegation stakingtypes .DelegationI ) (stop bool ))
65
64
66
65
GetLastTotalPower (ctx sdk.Context ) sdk.Int
67
66
GetLastValidatorPower (ctx sdk.Context , valAddr sdk.ValAddress ) int64
0 commit comments