-
Notifications
You must be signed in to change notification settings - Fork 201
/
keys.go
40 lines (31 loc) · 999 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
35
36
37
38
39
40
package types
const (
// ModuleName defines the module name
ModuleName = "interchainquery"
// 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
)
// prefix bytes for the interchainquery persistent store
const (
prefixData = iota + 1
prefixQuery = iota + 1
)
// keys for proof queries to various stores, note: there's an implicit assumption here that
// the stores on the counterparty chain are prefixed with the standard cosmos-sdk module names
// this might not be true for all IBC chains, and is something we should verify before onboarding a
// new chain
const (
STAKING_STORE_QUERY_WITH_PROOF = "store/staking/key"
BANK_STORE_QUERY_WITH_PROOF = "store/bank/key"
)
var (
KeyPrefixData = []byte{prefixData}
KeyPrefixQuery = []byte{prefixQuery}
)
func KeyPrefix(p string) []byte {
return []byte(p)
}