forked from forbole/callisto
-
Notifications
You must be signed in to change notification settings - Fork 1
/
expected_modules.go
36 lines (28 loc) · 1006 Bytes
/
expected_modules.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package gov
import (
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
tmctypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/pylons-tech/bdjuno/types"
)
type AuthModule interface {
RefreshAccounts(height int64, addresses []string) error
}
type BankModule interface {
RefreshBalances(height int64, addresses []string) error
}
type DistrModule interface {
UpdateParams(height int64) error
}
type MintModule interface {
UpdateParams(height int64) error
}
type SlashingModule interface {
UpdateParams(height int64) error
}
type StakingModule interface {
GetStakingPool(height int64) (*types.Pool, error)
GetValidatorsWithStatus(height int64, status string) ([]stakingtypes.Validator, []types.Validator, error)
GetValidatorsVotingPowers(height int64, vals *tmctypes.ResultValidators) ([]types.ValidatorVotingPower, error)
GetValidatorsStatuses(height int64, validators []stakingtypes.Validator) ([]types.ValidatorStatus, error)
UpdateParams(height int64) error
}