/
keys.go
44 lines (37 loc) · 1.25 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
41
42
43
44
package types
const (
// ModuleName defines the module name
ModuleName = "maker"
// StoreKey defines the primary module store key
StoreKey = ModuleName
// RouterKey is the message route for slashing
RouterKey = ModuleName
// QuerierRoute defines the module's query routing key
QuerierRoute = ModuleName
// MemStoreKey defines the in-memory store key
MemStoreKey = "mem_maker"
)
const (
prefixBackingRatio = iota + 1
prefixBackingRatioLastBlock
prefixBackingParams
prefixCollateralParams
prefixBackingTotal
prefixCollateralTotal
prefixBackingPool
prefixCollateralPool
prefixBackingAccount
prefixCollateralAccount
)
var (
KeyPrefixBackingRatio = []byte{prefixBackingRatio}
KeyPrefixBackingRatioLastBlock = []byte{prefixBackingRatioLastBlock}
KeyPrefixBackingParams = []byte{prefixBackingParams}
KeyPrefixCollateralParams = []byte{prefixCollateralParams}
KeyPrefixBackingTotal = []byte{prefixBackingTotal}
KeyPrefixCollateralTotal = []byte{prefixCollateralTotal}
KeyPrefixBackingPool = []byte{prefixBackingPool}
KeyPrefixCollateralPool = []byte{prefixCollateralPool}
KeyPrefixBackingAccount = []byte{prefixBackingAccount}
KeyPrefixCollateralAccount = []byte{prefixCollateralAccount}
)