@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/dist/parsers/dex.d.ts
CHANGED
|
@@ -1002,14 +1002,14 @@ export declare const refferalParser: z.ZodObject<{
|
|
|
1002
1002
|
referred_user: string;
|
|
1003
1003
|
}>;
|
|
1004
1004
|
export declare type Referral = z.infer<typeof refferalParser>;
|
|
1005
|
-
export declare const
|
|
1005
|
+
export declare const getReferralsParser: z.ZodObject<{
|
|
1006
1006
|
referrer: z.ZodString;
|
|
1007
1007
|
}, "strip", z.ZodTypeAny, {
|
|
1008
1008
|
referrer: string;
|
|
1009
1009
|
}, {
|
|
1010
1010
|
referrer: string;
|
|
1011
1011
|
}>;
|
|
1012
|
-
export declare type GetReferrals = z.infer<typeof
|
|
1012
|
+
export declare type GetReferrals = z.infer<typeof getReferralsParser>;
|
|
1013
1013
|
export declare const getReferralsResponseParser: z.ZodObject<{
|
|
1014
1014
|
sync: z.ZodNumber;
|
|
1015
1015
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -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
|
*/
|
|
@@ -1692,13 +1692,30 @@ var getReferralTotalsResponseParser = /*#__PURE__*/z.object({
|
|
|
1692
1692
|
var refferalParser = /*#__PURE__*/z.object({
|
|
1693
1693
|
referred_user: /*#__PURE__*/z.string()
|
|
1694
1694
|
});
|
|
1695
|
-
var
|
|
1695
|
+
var getReferralsParser = /*#__PURE__*/z.object({
|
|
1696
1696
|
referrer: /*#__PURE__*/z.string()
|
|
1697
1697
|
});
|
|
1698
1698
|
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,14 +2088,16 @@ 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;
|
|
2077
2096
|
exports.getOrderHistoryParser = getOrderHistoryParser;
|
|
2078
2097
|
exports.getOrderHistoryResponseParser = getOrderHistoryResponseParser;
|
|
2079
|
-
exports.getReferralParser = getReferralParser;
|
|
2080
2098
|
exports.getReferralTotalsParser = getReferralTotalsParser;
|
|
2081
2099
|
exports.getReferralTotalsResponseParser = getReferralTotalsResponseParser;
|
|
2100
|
+
exports.getReferralsParser = getReferralsParser;
|
|
2082
2101
|
exports.getReferralsResponseParser = getReferralsResponseParser;
|
|
2083
2102
|
exports.getSyncResponseParser = getSyncResponseParser;
|
|
2084
2103
|
exports.getTradesParser = getTradesParser;
|
|
@@ -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;
|