@proton/wrap-constants 0.2.54 → 0.2.55
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 +54 -0
- package/dist/wrap-constants.cjs.development.js +20 -0
- 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 +18 -1
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/parsers/dex.ts +21 -0
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.55",
|
|
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": "0ee45fc950a4a57c91d0cf37b72a4feb85debbd8"
|
|
48
48
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -247,6 +247,27 @@ export const getReferralsResponseParser = z.object({
|
|
|
247
247
|
})
|
|
248
248
|
export type GetReferralsResponseParser = z.infer<typeof getReferralsResponseParser>
|
|
249
249
|
|
|
250
|
+
/**
|
|
251
|
+
* Leaderboard
|
|
252
|
+
*/
|
|
253
|
+
export const leaderboardParser = z.object({
|
|
254
|
+
user: z.string(),
|
|
255
|
+
total: z.number()
|
|
256
|
+
})
|
|
257
|
+
export type Leaderboard = z.infer<typeof leaderboardParser>
|
|
258
|
+
|
|
259
|
+
export const getLeaderboardParser = z.object({
|
|
260
|
+
symbol: z.string(),
|
|
261
|
+
from: z.string(),
|
|
262
|
+
to: z.string(),
|
|
263
|
+
})
|
|
264
|
+
export type GetLeaderboard = z.infer<typeof getLeaderboardParser>
|
|
265
|
+
|
|
266
|
+
export const getLeaderboardResponseParser = z.object({
|
|
267
|
+
sync: z.number(),
|
|
268
|
+
data: z.array(leaderboardParser)
|
|
269
|
+
})
|
|
270
|
+
export type GetLeaderboardResponseParser = z.infer<typeof getLeaderboardResponseParser>
|
|
250
271
|
|
|
251
272
|
/**
|
|
252
273
|
* Basic Types
|