-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathkeys.go
47 lines (32 loc) · 1.06 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
45
46
47
package tiablob
import (
"cosmossdk.io/collections"
)
var (
// ValidatorsKey saves the current validators.
ValidatorsKey = collections.NewPrefix(0)
// ClientIDKey saves the current clientID.
ClientIDKey = collections.NewPrefix(1)
// ProvenHeightKey saves the current proven height.
ProvenHeightKey = collections.NewPrefix(2)
// PendingBlocksToTimeouts maps pending blocks to their timeout
PendingBlocksToTimeouts = collections.NewPrefix(3)
// TimeoutsToPendingBlocks maps timeouts to a set of pending blocks
TimeoutsToPendingBlocks = collections.NewPrefix(4)
// light client store key
ClientStoreKey = []byte("client_store/")
)
const (
// ModuleName is the name of the module
ModuleName = "tiablob"
// 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
Bech32Celestia = "celestia"
AddrLen = 20
)