2019-06-05 16:26:17 -07:00
|
|
|
package types
|
|
|
|
|
2019-06-28 13:11:27 -07:00
|
|
|
import (
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
)
|
2019-06-05 16:26:17 -07:00
|
|
|
|
|
|
|
const (
|
|
|
|
// module name
|
|
|
|
ModuleName = "auth"
|
|
|
|
|
|
|
|
// StoreKey is string representation of the store key for auth
|
|
|
|
StoreKey = "acc"
|
|
|
|
|
2019-06-28 13:11:27 -07:00
|
|
|
// FeeCollectorName the root string for the fee collector account address
|
2019-07-18 05:43:56 -07:00
|
|
|
FeeCollectorName = "fee_collector"
|
2019-06-05 16:26:17 -07:00
|
|
|
|
2020-02-26 07:33:56 -08:00
|
|
|
// QuerierRoute is the querier route for auth
|
|
|
|
QuerierRoute = ModuleName
|
2019-06-05 16:26:17 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// AddressStoreKeyPrefix prefix for account-by-address store
|
|
|
|
AddressStoreKeyPrefix = []byte{0x01}
|
|
|
|
|
|
|
|
// param key for global account number
|
|
|
|
GlobalAccountNumberKey = []byte("globalAccountNumber")
|
|
|
|
)
|
|
|
|
|
|
|
|
// AddressStoreKey turn an address to key used to get it from the account store
|
|
|
|
func AddressStoreKey(addr sdk.AccAddress) []byte {
|
|
|
|
return append(AddressStoreKeyPrefix, addr.Bytes()...)
|
|
|
|
}
|