-
Notifications
You must be signed in to change notification settings - Fork 6
/
keys.go
40 lines (29 loc) · 1.13 KB
/
keys.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
37
38
39
40
package poa
import (
"cosmossdk.io/collections"
)
var (
// ParamsKey saves the current module params.
ParamsKey = collections.NewPrefix(0)
// PendingValidatorsKey saves the current pending validators.
PendingValidatorsKey = collections.NewPrefix(1)
// CachedPreviousBlockPowerKey saves the previous blocks total power amount.
CachedPreviousBlockPowerKey = collections.NewPrefix(2)
// AbsoluteChangedInBlockPowerKey tracks the current blocks total power amount.
// If this becomes >30% of CachedPreviousBlockPowerKey, messages will fail to limit IBC issues.
AbsoluteChangedInBlockPowerKey = collections.NewPrefix(3)
// UpdatedValidatorsCacheKey tracks recently updated validators from SetPower.
UpdatedValidatorsCacheKey = collections.NewPrefix(4)
)
const (
// ModuleName is the name of the module
ModuleName = "poa"
// StoreKey to be used when creating the KVStore
StoreKey = ModuleName
// RouterKey to be used for routing msgs
RouterKey = ModuleName
// QuerierRoute to be used for querier msgs
QuerierRoute = ModuleName
// TransientStoreKey defines the transient store key
TransientStoreKey = "transient_" + ModuleName
)