-
Notifications
You must be signed in to change notification settings - Fork 7
/
alias.go
50 lines (45 loc) · 1.56 KB
/
alias.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package market
import (
"github.com/coinexchain/cet-sdk/modules/market/internal/keepers"
"github.com/coinexchain/cet-sdk/modules/market/internal/types"
dex "github.com/coinexchain/cet-sdk/types"
)
const (
StoreKey = types.StoreKey
ModuleName = types.ModuleName
)
const (
IntegrationNetSubString = types.IntegrationNetSubString
OrderIDPartsNum = types.OrderIDPartsNum
SymbolSeparator = types.SymbolSeparator
LimitOrder = types.LimitOrder
GTE = types.GTE
BID = types.BID
ASK = types.ASK
BUY = types.BUY
SELL = types.SELL
)
var (
NewBaseKeeper = keepers.NewKeeper
DefaultParams = types.DefaultParams
DecToBigEndianBytes = types.DecToBigEndianBytes
ValidateOrderID = types.ValidateOrderID
IsValidTradingPair = types.IsValidTradingPair
ModuleCdc = types.ModuleCdc
GetSymbol = dex.GetSymbol
SplitSymbol = dex.SplitSymbol
)
type (
Keeper = keepers.Keeper
Order = types.Order
MarketInfo = types.MarketInfo
Params = types.Params
MsgCreateOrder = types.MsgCreateOrder
MsgCreateTradingPair = types.MsgCreateTradingPair
MsgCancelOrder = types.MsgCancelOrder
MsgCancelTradingPair = types.MsgCancelTradingPair
MsgModifyPricePrecision = types.MsgModifyPricePrecision
CreateOrderInfo = types.CreateOrderInfo
FillOrderInfo = types.FillOrderInfo
CancelOrderInfo = types.CancelOrderInfo
)