github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/ammswap/types/keys.go (about)

     1  package types
     2  
     3  const (
     4  	// ModuleName is the name of the module
     5  	ModuleName = "ammswap"
     6  
     7  	// StoreKey to be used when creating the KVStore
     8  	StoreKey = ModuleName
     9  
    10  	// RouterKey to be used for routing msgs
    11  	RouterKey = ModuleName
    12  
    13  	// QuerierRoute to be used for querier msgs
    14  	QuerierRoute = ModuleName
    15  
    16  	// QuerySwapTokenPair query endpoints supported by the swap Querier
    17  	QuerySwapTokenPair         = "swapTokenPair"
    18  	QuerySwapTokenPairs        = "swapTokenPairs"
    19  	QueryRedeemableAssets      = "queryRedeemableAssets"
    20  	QueryParams                = "params"
    21  	QueryBuyAmount             = "buy"
    22  	QuerySwapQuoteInfo         = "swapQuoteInfo"
    23  	QuerySwapAddLiquidityQuote = "swapAddLiquidityQuote"
    24  )
    25  
    26  var (
    27  	// TokenPairPrefixKey to be used for KVStore
    28  	TokenPairPrefixKey = []byte{0x01}
    29  )
    30  
    31  // nolint
    32  func GetTokenPairKey(key string) []byte {
    33  	return append(TokenPairPrefixKey, []byte(key)...)
    34  }