@proton/wrap-constants 0.2.53 → 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 +56 -2
- package/dist/wrap-constants.cjs.development.js +22 -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 +19 -2
- package/dist/wrap-constants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/parsers/dex.ts +23 -2
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
|
@@ -236,10 +236,10 @@ export const refferalParser = z.object({
|
|
|
236
236
|
})
|
|
237
237
|
export type Referral = z.infer<typeof refferalParser>
|
|
238
238
|
|
|
239
|
-
export const
|
|
239
|
+
export const getReferralsParser = z.object({
|
|
240
240
|
referrer: z.string()
|
|
241
241
|
})
|
|
242
|
-
export type GetReferrals = z.infer<typeof
|
|
242
|
+
export type GetReferrals = z.infer<typeof getReferralsParser>
|
|
243
243
|
|
|
244
244
|
export const getReferralsResponseParser = z.object({
|
|
245
245
|
sync: z.number(),
|
|
@@ -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
|