-
Notifications
You must be signed in to change notification settings - Fork 142
/
keys.go
34 lines (26 loc) · 1.21 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
package types
const (
// ModuleName defines the module name
ModuleName = "zoneconcierge"
// StoreKey defines the primary module store key
StoreKey = ModuleName
// RouterKey defines the module's message routing key
RouterKey = ModuleName
// MemStoreKey defines the in-memory store key
MemStoreKey = "mem_zoneconcierge"
// Version defines the current version the IBC module supports
Version = "zoneconcierge-1"
// PortID is the default port id that module binds to
PortID = "zoneconcierge"
)
var (
PortKey = []byte{0x11} // PortKey defines the key to store the port ID in store
ChainInfoKey = []byte{0x12} // ChainInfoKey defines the key to store the chain info for each CZ in store
CanonicalChainKey = []byte{0x13} // CanonicalChainKey defines the key to store the canonical chain for each CZ in store
ForkKey = []byte{0x14} // ForkKey defines the key to store the forks for each CZ in store
EpochChainInfoKey = []byte{0x15} // EpochChainInfoKey defines the key to store each epoch's latests chain info for each CZ in store
FinalizedEpochKey = []byte{0x16} // FinalizedEpochKey defines the key to store the last finalised epoch
)
func KeyPrefix(p string) []byte {
return []byte(p)
}