@@ -12,37 +12,28 @@ import (
12
12
sdk "github.com/cosmos/cosmos-sdk/types"
13
13
)
14
14
15
- type (
16
- // StakingKeeper defines the staking module interface contract needed by the
17
- // evidence module.
18
- StakingKeeper interface {
19
- ConsensusAddressCodec () address.Codec
20
- ValidatorByConsAddr (context.Context , sdk.ConsAddress ) (sdk.ValidatorI , error )
21
- }
15
+ // StakingKeeper defines the staking module interface contract needed by the
16
+ // evidence module.
17
+ type StakingKeeper interface {
18
+ ConsensusAddressCodec () address.Codec
19
+ ValidatorByConsAddr (context.Context , sdk.ConsAddress ) (sdk.ValidatorI , error )
20
+ }
22
21
23
- // SlashingKeeper defines the slashing module interface contract needed by the
24
- // evidence module.
25
- SlashingKeeper interface {
26
- GetPubkey (context.Context , cryptotypes.Address ) (cryptotypes.PubKey , error )
27
- IsTombstoned (context.Context , sdk.ConsAddress ) bool
28
- HasValidatorSigningInfo (context.Context , sdk.ConsAddress ) bool
29
- Tombstone (context.Context , sdk.ConsAddress ) error
30
- Slash (context.Context , sdk.ConsAddress , math.LegacyDec , int64 , int64 ) error
31
- SlashWithInfractionReason (context.Context , sdk.ConsAddress , math.LegacyDec , int64 , int64 , st.Infraction ) error
32
- SlashFractionDoubleSign (context.Context ) (math.LegacyDec , error )
33
- Jail (context.Context , sdk.ConsAddress ) error
34
- JailUntil (context.Context , sdk.ConsAddress , time.Time ) error
35
- }
22
+ // SlashingKeeper defines the slashing module interface contract needed by the
23
+ // evidence module.
24
+ type SlashingKeeper interface {
25
+ GetPubkey (context.Context , cryptotypes.Address ) (cryptotypes.PubKey , error )
26
+ IsTombstoned (context.Context , sdk.ConsAddress ) bool
27
+ HasValidatorSigningInfo (context.Context , sdk.ConsAddress ) bool
28
+ Tombstone (context.Context , sdk.ConsAddress ) error
29
+ Slash (context.Context , sdk.ConsAddress , math.LegacyDec , int64 , int64 ) error
30
+ SlashWithInfractionReason (context.Context , sdk.ConsAddress , math.LegacyDec , int64 , int64 , st.Infraction ) error
31
+ SlashFractionDoubleSign (context.Context ) (math.LegacyDec , error )
32
+ Jail (context.Context , sdk.ConsAddress ) error
33
+ JailUntil (context.Context , sdk.ConsAddress , time.Time ) error
34
+ }
36
35
37
- // AccountKeeper define the account keeper interface contracted needed by the evidence module
38
- AccountKeeper interface {
39
- SetAccount (ctx context.Context , acc sdk.AccountI )
40
- }
41
-
42
- // BankKeeper define the account keeper interface contracted needed by the evidence module
43
- BankKeeper interface {
44
- MintCoins (ctx sdk.Context , moduleName string , amt sdk.Coins ) error
45
- SendCoinsFromModuleToAccount (ctx sdk.Context , senderModule string , recipientAddr sdk.AccAddress , amt sdk.Coins ) error
46
- GetAllBalances (ctx sdk.Context , addr sdk.AccAddress ) sdk.Coins
47
- }
48
- )
36
+ // AccountKeeper define the account keeper interface contracted needed by the evidence module
37
+ type AccountKeeper interface {
38
+ SetAccount (ctx context.Context , acc sdk.AccountI )
39
+ }
0 commit comments