@proton/wrap-constants 0.2.59 → 0.2.61
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/dist/parsers/dex.d.ts +58 -50
- package/dist/wrap-constants.cjs.development.js +3 -2
- package/dist/wrap-constants.cjs.development.js.map +1 -1
- package/dist/wrap-constants.cjs.production.min.js +1 -1
- package/dist/wrap-constants.cjs.production.min.js.map +1 -1
- package/dist/wrap-constants.esm.js +3 -2
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/parsers/dex.ts +2 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.61",
|
|
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": "
|
|
47
|
+
"gitHead": "f369dafbf10304a1e1292df42e629a5d7c1cbc2d"
|
|
48
48
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -58,6 +58,7 @@ export const getOrderHistoryParser = z.object({
|
|
|
58
58
|
symbol: z.string().optional(),
|
|
59
59
|
offset: z.string().default("0"),
|
|
60
60
|
limit: z.string().default("100").refine(n => +n <= 250, 'Max limit is 250'),
|
|
61
|
+
transaction_id: z.string().optional(),
|
|
61
62
|
})
|
|
62
63
|
export type GetOrderHistory = z.infer<typeof getOrderHistoryParser>
|
|
63
64
|
|
|
@@ -205,7 +206,7 @@ export type GetTradeHistory = z.infer<typeof getTradeHistoryParser>
|
|
|
205
206
|
export const getTradeHistoryResponseParser = z.object({
|
|
206
207
|
sync: z.number(),
|
|
207
208
|
count: z.number(),
|
|
208
|
-
data: z.array(
|
|
209
|
+
data: z.array(tradeParser)
|
|
209
210
|
})
|
|
210
211
|
export type GetTradeHistoryResponse = z.infer<typeof getTradeHistoryResponseParser>
|
|
211
212
|
|