-
Notifications
You must be signed in to change notification settings - Fork 4
/
keys.go
34 lines (27 loc) · 892 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
package types
const (
// ModuleName is the name of the module
ModuleName = "ammswap"
// StoreKey to be used when creating the KVStore
StoreKey = ModuleName
// RouterKey to be used for routing msgs
RouterKey = ModuleName
// QuerierRoute to be used for querier msgs
QuerierRoute = ModuleName
// QuerySwapTokenPair query endpoints supported by the swap Querier
QuerySwapTokenPair = "swapTokenPair"
QuerySwapTokenPairs = "swapTokenPairs"
QueryRedeemableAssets = "queryRedeemableAssets"
QueryParams = "params"
QueryBuyAmount = "buy"
QuerySwapQuoteInfo = "swapQuoteInfo"
QuerySwapAddLiquidityQuote = "swapAddLiquidityQuote"
)
var (
// TokenPairPrefixKey to be used for KVStore
TokenPairPrefixKey = []byte{0x01}
)
// nolint
func GetTokenPairKey(key string) []byte {
return append(TokenPairPrefixKey, []byte(key)...)
}