2024-02-15 07:08:32 +00:00
|
|
|
package registry
|
|
|
|
|
|
|
|
import "cosmossdk.io/collections"
|
|
|
|
|
|
|
|
const (
|
|
|
|
// ModuleName is the name of the registry module
|
|
|
|
ModuleName = "registry"
|
|
|
|
|
2024-02-29 11:54:35 +00:00
|
|
|
// StoreKey defines the primary module store key
|
|
|
|
StoreKey = ModuleName
|
|
|
|
|
2024-02-15 07:08:32 +00:00
|
|
|
// RecordRentModuleAccountName is the name of the module account that keeps track of record rents paid.
|
|
|
|
RecordRentModuleAccountName = "record_rent"
|
|
|
|
|
|
|
|
// AuthorityRentModuleAccountName is the name of the module account that keeps track of authority rents paid.
|
|
|
|
AuthorityRentModuleAccountName = "authority_rent"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Store prefixes
|
|
|
|
var (
|
|
|
|
// ParamsKey is the prefix for params key
|
|
|
|
ParamsPrefix = collections.NewPrefix(0)
|
2024-02-16 06:40:42 +00:00
|
|
|
|
2024-02-26 05:42:36 +00:00
|
|
|
RecordsPrefix = collections.NewPrefix(1)
|
|
|
|
RecordsByBondIdIndexPrefix = collections.NewPrefix(2)
|
|
|
|
|
|
|
|
AuthoritiesPrefix = collections.NewPrefix(3)
|
|
|
|
AuthoritiesByAuctionIdIndexPrefix = collections.NewPrefix(4)
|
|
|
|
AuthoritiesByBondIdIndexPrefix = collections.NewPrefix(5)
|
|
|
|
|
|
|
|
NameRecordsPrefix = collections.NewPrefix(6)
|
|
|
|
NameRecordsByCidIndexPrefix = collections.NewPrefix(7)
|
2024-02-26 06:16:09 +00:00
|
|
|
|
|
|
|
RecordExpiryQueuePrefix = collections.NewPrefix(8)
|
|
|
|
AuthorityExpiryQueuePrefix = collections.NewPrefix(9)
|
2024-02-29 11:54:35 +00:00
|
|
|
|
|
|
|
AttributesMapPrefix = collections.NewPrefix(10)
|
2024-02-15 07:08:32 +00:00
|
|
|
)
|