-
Notifications
You must be signed in to change notification settings - Fork 197
/
keys.go
37 lines (26 loc) · 895 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
package types
import fmt "fmt"
const (
// ModuleName defines the module name
ModuleName = "icacallbacks"
// 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_icacallbacks"
// Version defines the current version the IBC module supports
Version = "icacallbacks-1"
// PortID is the default port id that module binds to
PortID = "icacallbacks"
)
// PortKey defines the key to store the port ID in store
var PortKey = KeyPrefix("icacallbacks-port-")
func KeyPrefix(p string) []byte {
return []byte(p)
}
func PacketID(portID string, channelID string, sequence uint64) string {
return fmt.Sprintf("%s.%s.%d", portID, channelID, sequence)
}