@proton/wrap-constants 0.2.43 → 0.2.44
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 +2 -43
- package/dist/wrap-constants.cjs.development.js +1 -16
- 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 +2 -16
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/parsers/dex.ts +2 -18
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.44",
|
|
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": "ab27288121e2453ac76dfb6409540007a3d9f6da"
|
|
48
48
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -127,27 +127,11 @@ export const marketParser = z.object({
|
|
|
127
127
|
})
|
|
128
128
|
export type Market = z.infer<typeof marketParser>
|
|
129
129
|
|
|
130
|
-
export const
|
|
130
|
+
export const getMarketsResponseParser = z.object({
|
|
131
131
|
sync: z.number(),
|
|
132
132
|
data: z.array(marketParser)
|
|
133
133
|
})
|
|
134
|
-
export type GetMarketsResponse = z.infer<typeof
|
|
135
|
-
|
|
136
|
-
export const getMarketsResponseParser = z.array(z.object({
|
|
137
|
-
market_id: z.number(),
|
|
138
|
-
symbol: z.string(),
|
|
139
|
-
status_code: z.number(),
|
|
140
|
-
base_id: z.string(),
|
|
141
|
-
quote_id: z.string(),
|
|
142
|
-
type: z.string(),
|
|
143
|
-
maker_fee: z.number(),
|
|
144
|
-
taker_fee: z.number(),
|
|
145
|
-
base_precision: z.number(),
|
|
146
|
-
quote_precision: z.number(),
|
|
147
|
-
base_contract: z.string(),
|
|
148
|
-
quote_contract: z.string(),
|
|
149
|
-
}))
|
|
150
|
-
export type GetMarketsResponseParser = z.infer<typeof getMarketsResponseParser>
|
|
134
|
+
export type GetMarketsResponse = z.infer<typeof getMarketsResponseParser>
|
|
151
135
|
|
|
152
136
|
export const tradeParser = z.object({
|
|
153
137
|
block_num: z.number(),
|