@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/dist/parsers/dex.d.ts
CHANGED
|
@@ -1031,6 +1031,60 @@ export declare const getReferralsResponseParser: z.ZodObject<{
|
|
|
1031
1031
|
sync: number;
|
|
1032
1032
|
}>;
|
|
1033
1033
|
export declare type GetReferralsResponseParser = z.infer<typeof getReferralsResponseParser>;
|
|
1034
|
+
/**
|
|
1035
|
+
* Leaderboard
|
|
1036
|
+
*/
|
|
1037
|
+
export declare const leaderboardParser: z.ZodObject<{
|
|
1038
|
+
user: z.ZodString;
|
|
1039
|
+
total: z.ZodNumber;
|
|
1040
|
+
}, "strip", z.ZodTypeAny, {
|
|
1041
|
+
user: string;
|
|
1042
|
+
total: number;
|
|
1043
|
+
}, {
|
|
1044
|
+
user: string;
|
|
1045
|
+
total: number;
|
|
1046
|
+
}>;
|
|
1047
|
+
export declare type Leaderboard = z.infer<typeof leaderboardParser>;
|
|
1048
|
+
export declare const getLeaderboardParser: z.ZodObject<{
|
|
1049
|
+
symbol: z.ZodString;
|
|
1050
|
+
from: z.ZodString;
|
|
1051
|
+
to: z.ZodString;
|
|
1052
|
+
}, "strip", z.ZodTypeAny, {
|
|
1053
|
+
symbol: string;
|
|
1054
|
+
from: string;
|
|
1055
|
+
to: string;
|
|
1056
|
+
}, {
|
|
1057
|
+
symbol: string;
|
|
1058
|
+
from: string;
|
|
1059
|
+
to: string;
|
|
1060
|
+
}>;
|
|
1061
|
+
export declare type GetLeaderboard = z.infer<typeof getLeaderboardParser>;
|
|
1062
|
+
export declare const getLeaderboardResponseParser: z.ZodObject<{
|
|
1063
|
+
sync: z.ZodNumber;
|
|
1064
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1065
|
+
user: z.ZodString;
|
|
1066
|
+
total: z.ZodNumber;
|
|
1067
|
+
}, "strip", z.ZodTypeAny, {
|
|
1068
|
+
user: string;
|
|
1069
|
+
total: number;
|
|
1070
|
+
}, {
|
|
1071
|
+
user: string;
|
|
1072
|
+
total: number;
|
|
1073
|
+
}>, "many">;
|
|
1074
|
+
}, "strip", z.ZodTypeAny, {
|
|
1075
|
+
data: {
|
|
1076
|
+
user: string;
|
|
1077
|
+
total: number;
|
|
1078
|
+
}[];
|
|
1079
|
+
sync: number;
|
|
1080
|
+
}, {
|
|
1081
|
+
data: {
|
|
1082
|
+
user: string;
|
|
1083
|
+
total: number;
|
|
1084
|
+
}[];
|
|
1085
|
+
sync: number;
|
|
1086
|
+
}>;
|
|
1087
|
+
export declare type GetLeaderboardResponseParser = z.infer<typeof getLeaderboardResponseParser>;
|
|
1034
1088
|
/**
|
|
1035
1089
|
* Basic Types
|
|
1036
1090
|
*/
|
|
@@ -1699,6 +1699,23 @@ var getReferralsResponseParser = /*#__PURE__*/z.object({
|
|
|
1699
1699
|
sync: /*#__PURE__*/z.number(),
|
|
1700
1700
|
data: /*#__PURE__*/z.array(refferalParser)
|
|
1701
1701
|
});
|
|
1702
|
+
/**
|
|
1703
|
+
* Leaderboard
|
|
1704
|
+
*/
|
|
1705
|
+
|
|
1706
|
+
var leaderboardParser = /*#__PURE__*/z.object({
|
|
1707
|
+
user: /*#__PURE__*/z.string(),
|
|
1708
|
+
total: /*#__PURE__*/z.number()
|
|
1709
|
+
});
|
|
1710
|
+
var getLeaderboardParser = /*#__PURE__*/z.object({
|
|
1711
|
+
symbol: /*#__PURE__*/z.string(),
|
|
1712
|
+
from: /*#__PURE__*/z.string(),
|
|
1713
|
+
to: /*#__PURE__*/z.string()
|
|
1714
|
+
});
|
|
1715
|
+
var getLeaderboardResponseParser = /*#__PURE__*/z.object({
|
|
1716
|
+
sync: /*#__PURE__*/z.number(),
|
|
1717
|
+
data: /*#__PURE__*/z.array(leaderboardParser)
|
|
1718
|
+
});
|
|
1702
1719
|
|
|
1703
1720
|
(function (orderType) {
|
|
1704
1721
|
orderType[orderType["ORDERBOOK"] = 0] = "ORDERBOOK";
|
|
@@ -2071,6 +2088,8 @@ exports.generateAuthParser = generateAuthParser;
|
|
|
2071
2088
|
exports.getDailyResponseParser = getDailyResponseParser;
|
|
2072
2089
|
exports.getDepthParser = getDepthParser;
|
|
2073
2090
|
exports.getDepthResponseParser = getDepthResponseParser;
|
|
2091
|
+
exports.getLeaderboardParser = getLeaderboardParser;
|
|
2092
|
+
exports.getLeaderboardResponseParser = getLeaderboardResponseParser;
|
|
2074
2093
|
exports.getMarketsResponseParser = getMarketsResponseParser;
|
|
2075
2094
|
exports.getOhlcvParser = getOhlcvParser;
|
|
2076
2095
|
exports.getOhlcvResponseParser = getOhlcvResponseParser;
|
|
@@ -2087,6 +2106,7 @@ exports.initializeCoins = initializeCoins;
|
|
|
2087
2106
|
exports.initializeConstants = initializeConstants;
|
|
2088
2107
|
exports.isInputInvalid = isInputInvalid;
|
|
2089
2108
|
exports.isSameToken = isSameToken;
|
|
2109
|
+
exports.leaderboardParser = leaderboardParser;
|
|
2090
2110
|
exports.loginAccountParamsV3Parser = loginAccountParamsV3Parser;
|
|
2091
2111
|
exports.marketParser = marketParser;
|
|
2092
2112
|
exports.median = median;
|