@proton/wrap-constants 0.2.106 → 0.2.108
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/index.d.ts +16 -16
- package/dist/index.js +5 -5
- package/dist/index.mjs +5 -5
- package/package.json +2 -2
- package/src/parsers/dex.ts +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -7442,41 +7442,41 @@ declare const marketParser: z.ZodObject<{
|
|
|
7442
7442
|
declare type Market = z.infer<typeof marketParser>;
|
|
7443
7443
|
declare const dbMarketParser: z.ZodObject<{
|
|
7444
7444
|
market_id: z.ZodNumber;
|
|
7445
|
-
order_min: z.
|
|
7445
|
+
order_min: z.ZodString;
|
|
7446
7446
|
status_code: z.ZodNumber;
|
|
7447
7447
|
ask_oracle_index: z.ZodString;
|
|
7448
7448
|
bid_token_c: z.ZodString;
|
|
7449
7449
|
bid_token_s: z.ZodString;
|
|
7450
|
-
bid_token_m: z.
|
|
7450
|
+
bid_token_m: z.ZodString;
|
|
7451
7451
|
ask_token_c: z.ZodString;
|
|
7452
7452
|
ask_token_s: z.ZodString;
|
|
7453
|
-
ask_token_m: z.
|
|
7453
|
+
ask_token_m: z.ZodString;
|
|
7454
7454
|
created_at: z.ZodDate;
|
|
7455
7455
|
updated_at: z.ZodDate;
|
|
7456
7456
|
}, "strip", z.ZodTypeAny, {
|
|
7457
7457
|
market_id: number;
|
|
7458
7458
|
status_code: number;
|
|
7459
|
-
order_min:
|
|
7459
|
+
order_min: string;
|
|
7460
7460
|
ask_oracle_index: string;
|
|
7461
7461
|
bid_token_c: string;
|
|
7462
7462
|
bid_token_s: string;
|
|
7463
|
-
bid_token_m:
|
|
7463
|
+
bid_token_m: string;
|
|
7464
7464
|
ask_token_c: string;
|
|
7465
7465
|
ask_token_s: string;
|
|
7466
|
-
ask_token_m:
|
|
7466
|
+
ask_token_m: string;
|
|
7467
7467
|
created_at: Date;
|
|
7468
7468
|
updated_at: Date;
|
|
7469
7469
|
}, {
|
|
7470
7470
|
market_id: number;
|
|
7471
7471
|
status_code: number;
|
|
7472
|
-
order_min:
|
|
7472
|
+
order_min: string;
|
|
7473
7473
|
ask_oracle_index: string;
|
|
7474
7474
|
bid_token_c: string;
|
|
7475
7475
|
bid_token_s: string;
|
|
7476
|
-
bid_token_m:
|
|
7476
|
+
bid_token_m: string;
|
|
7477
7477
|
ask_token_c: string;
|
|
7478
7478
|
ask_token_s: string;
|
|
7479
|
-
ask_token_m:
|
|
7479
|
+
ask_token_m: string;
|
|
7480
7480
|
created_at: Date;
|
|
7481
7481
|
updated_at: Date;
|
|
7482
7482
|
}>;
|
|
@@ -8158,19 +8158,19 @@ declare const dbHistoryTransactionParser: z.ZodObject<{
|
|
|
8158
8158
|
block_num: z.ZodString;
|
|
8159
8159
|
block_time: z.ZodString;
|
|
8160
8160
|
trx_id: z.ZodString;
|
|
8161
|
-
trace: z.
|
|
8161
|
+
trace: z.ZodAny;
|
|
8162
8162
|
}, "strip", z.ZodTypeAny, {
|
|
8163
8163
|
block_num: string;
|
|
8164
8164
|
block_time: string;
|
|
8165
8165
|
seq: string;
|
|
8166
8166
|
trx_id: string;
|
|
8167
|
-
trace
|
|
8167
|
+
trace?: any;
|
|
8168
8168
|
}, {
|
|
8169
8169
|
block_num: string;
|
|
8170
8170
|
block_time: string;
|
|
8171
8171
|
seq: string;
|
|
8172
8172
|
trx_id: string;
|
|
8173
|
-
trace
|
|
8173
|
+
trace?: any;
|
|
8174
8174
|
}>;
|
|
8175
8175
|
declare type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
|
|
8176
8176
|
declare const historyPartialParser: z.ZodObject<{
|
|
@@ -9454,7 +9454,7 @@ declare const historyTransactionParser: z.ZodObject<{
|
|
|
9454
9454
|
}>;
|
|
9455
9455
|
declare type HistoryTransaction = z.infer<typeof historyTransactionParser>;
|
|
9456
9456
|
declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
9457
|
-
transaction: z.ZodObject<{
|
|
9457
|
+
transaction: z.ZodNullable<z.ZodObject<{
|
|
9458
9458
|
seq: z.ZodString;
|
|
9459
9459
|
block_num: z.ZodString;
|
|
9460
9460
|
block_time: z.ZodString;
|
|
@@ -10100,7 +10100,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
|
10100
10100
|
};
|
|
10101
10101
|
block_timestamp: string;
|
|
10102
10102
|
};
|
|
10103
|
-
}
|
|
10103
|
+
}>>;
|
|
10104
10104
|
}, "strip", z.ZodTypeAny, {
|
|
10105
10105
|
transaction: {
|
|
10106
10106
|
block_num: string;
|
|
@@ -10176,7 +10176,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
|
10176
10176
|
};
|
|
10177
10177
|
block_timestamp: string;
|
|
10178
10178
|
};
|
|
10179
|
-
};
|
|
10179
|
+
} | null;
|
|
10180
10180
|
}, {
|
|
10181
10181
|
transaction: {
|
|
10182
10182
|
block_num: string;
|
|
@@ -10252,7 +10252,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
|
10252
10252
|
};
|
|
10253
10253
|
block_timestamp: string;
|
|
10254
10254
|
};
|
|
10255
|
-
};
|
|
10255
|
+
} | null;
|
|
10256
10256
|
}>;
|
|
10257
10257
|
declare type GetHistoryTransaction = z.infer<typeof getHistoryTransactionResponseParser>;
|
|
10258
10258
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2054,15 +2054,15 @@ var marketParser = z11.object({
|
|
|
2054
2054
|
});
|
|
2055
2055
|
var dbMarketParser = z11.object({
|
|
2056
2056
|
market_id: z11.number(),
|
|
2057
|
-
order_min: z11.
|
|
2057
|
+
order_min: z11.string(),
|
|
2058
2058
|
status_code: z11.number(),
|
|
2059
2059
|
ask_oracle_index: z11.string(),
|
|
2060
2060
|
bid_token_c: z11.string(),
|
|
2061
2061
|
bid_token_s: z11.string(),
|
|
2062
|
-
bid_token_m: z11.
|
|
2062
|
+
bid_token_m: z11.string(),
|
|
2063
2063
|
ask_token_c: z11.string(),
|
|
2064
2064
|
ask_token_s: z11.string(),
|
|
2065
|
-
ask_token_m: z11.
|
|
2065
|
+
ask_token_m: z11.string(),
|
|
2066
2066
|
created_at: z11.date(),
|
|
2067
2067
|
updated_at: z11.date()
|
|
2068
2068
|
});
|
|
@@ -2168,7 +2168,7 @@ var dbHistoryTransactionParser = z11.object({
|
|
|
2168
2168
|
block_num: z11.string(),
|
|
2169
2169
|
block_time: z11.string(),
|
|
2170
2170
|
trx_id: z11.string(),
|
|
2171
|
-
trace: z11.
|
|
2171
|
+
trace: z11.any()
|
|
2172
2172
|
});
|
|
2173
2173
|
var historyPartialParser = z11.object({
|
|
2174
2174
|
expiration: z11.object({ utc_seconds: z11.string() }),
|
|
@@ -2239,7 +2239,7 @@ var historyTransactionParser = z11.object({
|
|
|
2239
2239
|
})
|
|
2240
2240
|
});
|
|
2241
2241
|
var getHistoryTransactionResponseParser = z11.object({
|
|
2242
|
-
transaction: historyTransactionParser
|
|
2242
|
+
transaction: historyTransactionParser.nullable()
|
|
2243
2243
|
});
|
|
2244
2244
|
var orderType = /* @__PURE__ */ ((orderType2) => {
|
|
2245
2245
|
orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
|
package/dist/index.mjs
CHANGED
|
@@ -1912,15 +1912,15 @@ var marketParser = z11.object({
|
|
|
1912
1912
|
});
|
|
1913
1913
|
var dbMarketParser = z11.object({
|
|
1914
1914
|
market_id: z11.number(),
|
|
1915
|
-
order_min: z11.
|
|
1915
|
+
order_min: z11.string(),
|
|
1916
1916
|
status_code: z11.number(),
|
|
1917
1917
|
ask_oracle_index: z11.string(),
|
|
1918
1918
|
bid_token_c: z11.string(),
|
|
1919
1919
|
bid_token_s: z11.string(),
|
|
1920
|
-
bid_token_m: z11.
|
|
1920
|
+
bid_token_m: z11.string(),
|
|
1921
1921
|
ask_token_c: z11.string(),
|
|
1922
1922
|
ask_token_s: z11.string(),
|
|
1923
|
-
ask_token_m: z11.
|
|
1923
|
+
ask_token_m: z11.string(),
|
|
1924
1924
|
created_at: z11.date(),
|
|
1925
1925
|
updated_at: z11.date()
|
|
1926
1926
|
});
|
|
@@ -2026,7 +2026,7 @@ var dbHistoryTransactionParser = z11.object({
|
|
|
2026
2026
|
block_num: z11.string(),
|
|
2027
2027
|
block_time: z11.string(),
|
|
2028
2028
|
trx_id: z11.string(),
|
|
2029
|
-
trace: z11.
|
|
2029
|
+
trace: z11.any()
|
|
2030
2030
|
});
|
|
2031
2031
|
var historyPartialParser = z11.object({
|
|
2032
2032
|
expiration: z11.object({ utc_seconds: z11.string() }),
|
|
@@ -2097,7 +2097,7 @@ var historyTransactionParser = z11.object({
|
|
|
2097
2097
|
})
|
|
2098
2098
|
});
|
|
2099
2099
|
var getHistoryTransactionResponseParser = z11.object({
|
|
2100
|
-
transaction: historyTransactionParser
|
|
2100
|
+
transaction: historyTransactionParser.nullable()
|
|
2101
2101
|
});
|
|
2102
2102
|
var orderType = /* @__PURE__ */ ((orderType2) => {
|
|
2103
2103
|
orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
|
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.108",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"resolutions": {
|
|
41
41
|
"typescript": "4.5"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "afa8ee52e06ee2759cfc3654e8e9b07bd579cee5"
|
|
44
44
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -251,15 +251,15 @@ export type Market = z.infer<typeof marketParser>;
|
|
|
251
251
|
|
|
252
252
|
export const dbMarketParser = z.object({
|
|
253
253
|
market_id: z.number(),
|
|
254
|
-
order_min: z.
|
|
254
|
+
order_min: z.string(),
|
|
255
255
|
status_code: z.number(),
|
|
256
256
|
ask_oracle_index: z.string(),
|
|
257
257
|
bid_token_c: z.string(),
|
|
258
258
|
bid_token_s: z.string(),
|
|
259
|
-
bid_token_m: z.
|
|
259
|
+
bid_token_m: z.string(),
|
|
260
260
|
ask_token_c: z.string(),
|
|
261
261
|
ask_token_s: z.string(),
|
|
262
|
-
ask_token_m: z.
|
|
262
|
+
ask_token_m: z.string(),
|
|
263
263
|
created_at: z.date(),
|
|
264
264
|
updated_at: z.date(),
|
|
265
265
|
});
|
|
@@ -431,7 +431,7 @@ export const dbHistoryTransactionParser = z.object({
|
|
|
431
431
|
block_num: z.string(),
|
|
432
432
|
block_time: z.string(),
|
|
433
433
|
trx_id: z.string(),
|
|
434
|
-
trace: z.
|
|
434
|
+
trace: z.any(),
|
|
435
435
|
});
|
|
436
436
|
export type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
|
|
437
437
|
|
|
@@ -516,7 +516,7 @@ export const historyTransactionParser = z.object({
|
|
|
516
516
|
export type HistoryTransaction = z.infer<typeof historyTransactionParser>;
|
|
517
517
|
|
|
518
518
|
export const getHistoryTransactionResponseParser = z.object({
|
|
519
|
-
transaction: historyTransactionParser,
|
|
519
|
+
transaction: historyTransactionParser.nullable(),
|
|
520
520
|
});
|
|
521
521
|
export type GetHistoryTransaction = z.infer<
|
|
522
522
|
typeof getHistoryTransactionResponseParser
|