-
Notifications
You must be signed in to change notification settings - Fork 99
/
keys.go
35 lines (26 loc) · 966 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
package types
const (
// ModuleName defines the module name
ModuleName = "vest"
// 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_vest"
// VestEntryKeyPrefix is the prefix used when storing a VestEntry in the state.
VestEntryKeyPrefix = "vest_entry"
// CommunityTreasuryAccountName defines the root string for community treasury module account.
CommunityTreasuryAccountName = "community_treasury"
// CommunityVesterAccountName defines the root string for community vester module account.
CommunityVesterAccountName = "community_vester"
)
func KeyPrefix(p string) []byte {
return []byte(p)
}
// VestEntryKey returns the store key (using the vester account) to retrieve a vest entry from state.
func VestEntryKey(
vesterAccount string,
) []byte {
return []byte(vesterAccount)
}