gpu-compute-chain/x/colinearcore/types/keys.go

65 lines
1.4 KiB
Go
Raw Permalink Normal View History

2022-08-25 16:51:14 -07:00
package types
const (
// ModuleName defines the module name
2022-09-06 15:18:48 -07:00
ModuleName = "colinearcore"
2022-08-25 16:51:14 -07:00
// 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_colinear"
2022-08-25 16:51:14 -07:00
)
func KeyPrefix(p string) []byte {
return []byte(p)
}
const (
NextAuctionKey = "NextAuction-value-"
)
2022-09-07 13:25:57 -07:00
const (
LockedUsersKey = "LockedUsers-value-"
)
// Module Events
const (
AuctionCreatedEventType = "auction-created"
AuctionCreatedEventCreator = "creator"
AuctionCreatedIndex = "auction-id"
AuctionCreatedCeiling = "ceiling"
// hardware
AuctionCreatedGpus = "gpus"
AuctionCreatedCpuArch = "cpu-arch"
AuctionCreatedCpuCores = "cpu-cores"
AuctionCreatedMemMb = "mem-mb"
AuctionCreatedStorage = "storage-gb"
)
const (
BidCreatedEventType = "bid-created"
BidCreatedEventCreator = "creator"
BidCreatedAuctionIndex = "auction-id"
BidCreatedAmount = "amount"
)
const (
AuctionFinalizedEventType = "auction-finalized"
AuctionFinalizedIndex = "auction-id"
)
const (
LeaseFundsClaimedEventType = "lease-claimed"
LeaseFundsClaimedEventCreator = "claimer"
LeaseFundsClaimedAmountClaimed = "amount-claimed"
LeaseFundsClaimedAmountRemaining = "amount-remaining"
)