-
Notifications
You must be signed in to change notification settings - Fork 83
/
keys.go
34 lines (25 loc) · 907 Bytes
/
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
package types
// Module name and store keys
const (
// ModuleName defines the module name
ModuleName = "stats"
// TransientStoreKey defines the primary module transient store key
TransientStoreKey = "tmp_" + ModuleName
// StoreKey defines the primary module store key
StoreKey = ModuleName
)
// State
const (
// EpochStatsKeyPrefix is the prefix to retrieve the EpochStats for a given epoch
EpochStatsKeyPrefix = "Epoch:"
// UserStatsKeyPrefix is the prefix to retrieve the UserStats for a given user
UserStatsKeyPrefix = "User:"
// StatsMetadataKey is the key to get the StatsMetadata for the module
StatsMetadataKey = "Metadata"
// GlobalStatsKey is the key to get the GlobalStats for the module
GlobalStatsKey = "Global"
// BlockStatsKey is the key to get the BlockStats for the module
BlockStatsKey = "Block"
// ParamsKey defines the key for the params
ParamsKey = "Params"
)