forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeys.go
37 lines (27 loc) · 1 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
package types
import (
"cosmossdk.io/collections"
)
const (
// module name
ModuleName = "auth"
// StoreKey is string representation of the store key for auth
StoreKey = "acc"
// FeeCollectorName the root string for the fee collector account address
FeeCollectorName = "fee_collector"
)
var (
// ParamsKey is the prefix for params key
ParamsKey = collections.NewPrefix(0)
// AddressStoreKeyPrefix prefix for account-by-address store
AddressStoreKeyPrefix = collections.NewPrefix(1)
// GlobalAccountNumberKey identifies the prefix where the monotonically increasing
// account number is stored.
GlobalAccountNumberKey = collections.NewPrefix(2)
// AccountNumberStoreKeyPrefix prefix for account-by-id store
AccountNumberStoreKeyPrefix = collections.NewPrefix("accountNumber")
// UnorderedNoncesKey prefix for the unordered sequence storage.
UnorderedNoncesKey = collections.NewPrefix(90)
// legacy param key for global account number
LegacyGlobalAccountNumberKey = []byte("globalAccountNumber")
)