@proton/wrap-constants 0.2.18 → 0.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.18",
8
+ "version": "0.2.21",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",
11
11
  "typings": "dist/index.d.ts",
@@ -44,5 +44,5 @@
44
44
  "resolutions": {
45
45
  "typescript": "4.5"
46
46
  },
47
- "gitHead": "3ef039a204e629dc82ffa2ba71007a4983220bb1"
47
+ "gitHead": "e83ff95ca31f59e1d70b8bf831e55fb4ccb36c53"
48
48
  }
package/src/coins.ts CHANGED
@@ -696,7 +696,7 @@ export const initializeCoins = (protonChain: string): {
696
696
  coingeckoId: 'bitcoin-cash'
697
697
  },
698
698
  {
699
- allowSwap: false,
699
+ allowSwap: true,
700
700
  allowBridge: true,
701
701
  allowLend: false,
702
702
  allowBorrow: false,
package/src/constants.ts CHANGED
@@ -11,7 +11,7 @@ export const initializeConstants = (chain: string) => {
11
11
  SWAP_CONTRACT: 'proton.swaps',
12
12
  DEX_CONTRACT: chain === 'proton'
13
13
  ? 'dex'
14
- : 'dextest21',
14
+ : 'dextest22',
15
15
  FEE_FACTOR,
16
16
  GOOGLE_MAPS_KEY: 'AIzaSyDb2_CrK032kSIqBXbkdwmaLKWELl0SxVs',
17
17
  SWAP_URL: chain === 'proton'
@@ -75,6 +75,11 @@ export const initializeConstants = (chain: string) => {
75
75
  ? '384da888112027f0321850a169f737c33e53b388aad48b5adace4bab97f437e0'
76
76
  : '71ee83bcf52142d61019d95f9cc5427ba6a0d7ff8accd9e2088ae2abeaf3d3dd',
77
77
 
78
+ DEX_PROCESS_SIZE: 30,
79
+ DEX_SLTPPROCESS_SIZE: 10,
80
+ MAX_PRICE: "9223372036854775806",
81
+ MIN_PRICE: 1,
82
+
78
83
  CHAIN: chain,
79
84
 
80
85
  SWAP_COINS: swapCoins,
@@ -36,6 +36,8 @@ export const orderHistoryParser = z.object({
36
36
  account_name: z.string(),
37
37
  order_side: z.number(),
38
38
  order_type: z.number(),
39
+ trigger_price: z.number(),
40
+ fill_type: z.number(),
39
41
  status: z.string(),
40
42
  quantity_change: z.number(),
41
43
  trx_id: z.string(),
@@ -111,10 +113,12 @@ export const syncParser = z.object({
111
113
  })
112
114
  export type Sync = z.infer<typeof syncParser>
113
115
 
114
- export enum orderType { INVALID = 0, MARKET = 1, LIMIT = 2, STOPLOSS = 3, TAKEPROFIT = 4 }
116
+ export enum orderType { ORDERBOOK = 0, LIMIT = 1, STOPLOSS = 2, TAKEPROFIT = 3 }
115
117
 
116
118
  export enum orderSide { INVALID = 0, BUY = 1, SELL = 2 }
117
119
 
120
+ export enum fillType { GTC = 0, IOC = 1, POST_ONLY = 2 }
121
+
118
122
  export enum logStatus {
119
123
  CREATE = "create",
120
124
  UPDATE = "update",