@crypticdot/defituna-api 1.1.33 → 1.1.35
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.mts +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -943,6 +943,7 @@ declare const PoolSwap$1: z.ZodObject<{
|
|
|
943
943
|
id: z.ZodString;
|
|
944
944
|
amountIn: z.ZodBigInt;
|
|
945
945
|
amountOut: z.ZodBigInt;
|
|
946
|
+
amountUsd: z.ZodNumber;
|
|
946
947
|
aToB: z.ZodBoolean;
|
|
947
948
|
pool: z.ZodString;
|
|
948
949
|
time: z.ZodDate;
|
|
@@ -952,6 +953,7 @@ declare const PoolSwap$1: z.ZodObject<{
|
|
|
952
953
|
id: string;
|
|
953
954
|
amountIn: bigint;
|
|
954
955
|
amountOut: bigint;
|
|
956
|
+
amountUsd: number;
|
|
955
957
|
aToB: boolean;
|
|
956
958
|
}, {
|
|
957
959
|
time: Date;
|
|
@@ -959,6 +961,7 @@ declare const PoolSwap$1: z.ZodObject<{
|
|
|
959
961
|
id: string;
|
|
960
962
|
amountIn: bigint;
|
|
961
963
|
amountOut: bigint;
|
|
964
|
+
amountUsd: number;
|
|
962
965
|
aToB: boolean;
|
|
963
966
|
}>;
|
|
964
967
|
declare const OrderBookEntry$1: z.ZodObject<{
|
|
@@ -1199,6 +1202,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1199
1202
|
id: z.ZodString;
|
|
1200
1203
|
amountIn: z.ZodBigInt;
|
|
1201
1204
|
amountOut: z.ZodBigInt;
|
|
1205
|
+
amountUsd: z.ZodNumber;
|
|
1202
1206
|
aToB: z.ZodBoolean;
|
|
1203
1207
|
pool: z.ZodString;
|
|
1204
1208
|
time: z.ZodDate;
|
|
@@ -1208,6 +1212,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1208
1212
|
id: string;
|
|
1209
1213
|
amountIn: bigint;
|
|
1210
1214
|
amountOut: bigint;
|
|
1215
|
+
amountUsd: number;
|
|
1211
1216
|
aToB: boolean;
|
|
1212
1217
|
}, {
|
|
1213
1218
|
time: Date;
|
|
@@ -1215,6 +1220,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1215
1220
|
id: string;
|
|
1216
1221
|
amountIn: bigint;
|
|
1217
1222
|
amountOut: bigint;
|
|
1223
|
+
amountUsd: number;
|
|
1218
1224
|
aToB: boolean;
|
|
1219
1225
|
}>;
|
|
1220
1226
|
id: z.ZodString;
|
|
@@ -1227,6 +1233,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1227
1233
|
id: z.ZodString;
|
|
1228
1234
|
amountIn: z.ZodBigInt;
|
|
1229
1235
|
amountOut: z.ZodBigInt;
|
|
1236
|
+
amountUsd: z.ZodNumber;
|
|
1230
1237
|
aToB: z.ZodBoolean;
|
|
1231
1238
|
pool: z.ZodString;
|
|
1232
1239
|
time: z.ZodDate;
|
|
@@ -1236,6 +1243,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1236
1243
|
id: string;
|
|
1237
1244
|
amountIn: bigint;
|
|
1238
1245
|
amountOut: bigint;
|
|
1246
|
+
amountUsd: number;
|
|
1239
1247
|
aToB: boolean;
|
|
1240
1248
|
}, {
|
|
1241
1249
|
time: Date;
|
|
@@ -1243,6 +1251,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1243
1251
|
id: string;
|
|
1244
1252
|
amountIn: bigint;
|
|
1245
1253
|
amountOut: bigint;
|
|
1254
|
+
amountUsd: number;
|
|
1246
1255
|
aToB: boolean;
|
|
1247
1256
|
}>;
|
|
1248
1257
|
id: z.ZodString;
|
|
@@ -1258,6 +1267,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1258
1267
|
id: string;
|
|
1259
1268
|
amountIn: bigint;
|
|
1260
1269
|
amountOut: bigint;
|
|
1270
|
+
amountUsd: number;
|
|
1261
1271
|
aToB: boolean;
|
|
1262
1272
|
};
|
|
1263
1273
|
meta?: any;
|
|
@@ -1272,6 +1282,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1272
1282
|
id: string;
|
|
1273
1283
|
amountIn: bigint;
|
|
1274
1284
|
amountOut: bigint;
|
|
1285
|
+
amountUsd: number;
|
|
1275
1286
|
aToB: boolean;
|
|
1276
1287
|
};
|
|
1277
1288
|
meta?: any;
|
|
@@ -1286,6 +1297,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1286
1297
|
id: string;
|
|
1287
1298
|
amountIn: bigint;
|
|
1288
1299
|
amountOut: bigint;
|
|
1300
|
+
amountUsd: number;
|
|
1289
1301
|
aToB: boolean;
|
|
1290
1302
|
};
|
|
1291
1303
|
meta?: any;
|
|
@@ -1300,6 +1312,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1300
1312
|
id: string;
|
|
1301
1313
|
amountIn: bigint;
|
|
1302
1314
|
amountOut: bigint;
|
|
1315
|
+
amountUsd: number;
|
|
1303
1316
|
aToB: boolean;
|
|
1304
1317
|
};
|
|
1305
1318
|
meta?: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -943,6 +943,7 @@ declare const PoolSwap$1: z.ZodObject<{
|
|
|
943
943
|
id: z.ZodString;
|
|
944
944
|
amountIn: z.ZodBigInt;
|
|
945
945
|
amountOut: z.ZodBigInt;
|
|
946
|
+
amountUsd: z.ZodNumber;
|
|
946
947
|
aToB: z.ZodBoolean;
|
|
947
948
|
pool: z.ZodString;
|
|
948
949
|
time: z.ZodDate;
|
|
@@ -952,6 +953,7 @@ declare const PoolSwap$1: z.ZodObject<{
|
|
|
952
953
|
id: string;
|
|
953
954
|
amountIn: bigint;
|
|
954
955
|
amountOut: bigint;
|
|
956
|
+
amountUsd: number;
|
|
955
957
|
aToB: boolean;
|
|
956
958
|
}, {
|
|
957
959
|
time: Date;
|
|
@@ -959,6 +961,7 @@ declare const PoolSwap$1: z.ZodObject<{
|
|
|
959
961
|
id: string;
|
|
960
962
|
amountIn: bigint;
|
|
961
963
|
amountOut: bigint;
|
|
964
|
+
amountUsd: number;
|
|
962
965
|
aToB: boolean;
|
|
963
966
|
}>;
|
|
964
967
|
declare const OrderBookEntry$1: z.ZodObject<{
|
|
@@ -1199,6 +1202,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1199
1202
|
id: z.ZodString;
|
|
1200
1203
|
amountIn: z.ZodBigInt;
|
|
1201
1204
|
amountOut: z.ZodBigInt;
|
|
1205
|
+
amountUsd: z.ZodNumber;
|
|
1202
1206
|
aToB: z.ZodBoolean;
|
|
1203
1207
|
pool: z.ZodString;
|
|
1204
1208
|
time: z.ZodDate;
|
|
@@ -1208,6 +1212,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1208
1212
|
id: string;
|
|
1209
1213
|
amountIn: bigint;
|
|
1210
1214
|
amountOut: bigint;
|
|
1215
|
+
amountUsd: number;
|
|
1211
1216
|
aToB: boolean;
|
|
1212
1217
|
}, {
|
|
1213
1218
|
time: Date;
|
|
@@ -1215,6 +1220,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1215
1220
|
id: string;
|
|
1216
1221
|
amountIn: bigint;
|
|
1217
1222
|
amountOut: bigint;
|
|
1223
|
+
amountUsd: number;
|
|
1218
1224
|
aToB: boolean;
|
|
1219
1225
|
}>;
|
|
1220
1226
|
id: z.ZodString;
|
|
@@ -1227,6 +1233,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1227
1233
|
id: z.ZodString;
|
|
1228
1234
|
amountIn: z.ZodBigInt;
|
|
1229
1235
|
amountOut: z.ZodBigInt;
|
|
1236
|
+
amountUsd: z.ZodNumber;
|
|
1230
1237
|
aToB: z.ZodBoolean;
|
|
1231
1238
|
pool: z.ZodString;
|
|
1232
1239
|
time: z.ZodDate;
|
|
@@ -1236,6 +1243,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1236
1243
|
id: string;
|
|
1237
1244
|
amountIn: bigint;
|
|
1238
1245
|
amountOut: bigint;
|
|
1246
|
+
amountUsd: number;
|
|
1239
1247
|
aToB: boolean;
|
|
1240
1248
|
}, {
|
|
1241
1249
|
time: Date;
|
|
@@ -1243,6 +1251,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1243
1251
|
id: string;
|
|
1244
1252
|
amountIn: bigint;
|
|
1245
1253
|
amountOut: bigint;
|
|
1254
|
+
amountUsd: number;
|
|
1246
1255
|
aToB: boolean;
|
|
1247
1256
|
}>;
|
|
1248
1257
|
id: z.ZodString;
|
|
@@ -1258,6 +1267,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1258
1267
|
id: string;
|
|
1259
1268
|
amountIn: bigint;
|
|
1260
1269
|
amountOut: bigint;
|
|
1270
|
+
amountUsd: number;
|
|
1261
1271
|
aToB: boolean;
|
|
1262
1272
|
};
|
|
1263
1273
|
meta?: any;
|
|
@@ -1272,6 +1282,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1272
1282
|
id: string;
|
|
1273
1283
|
amountIn: bigint;
|
|
1274
1284
|
amountOut: bigint;
|
|
1285
|
+
amountUsd: number;
|
|
1275
1286
|
aToB: boolean;
|
|
1276
1287
|
};
|
|
1277
1288
|
meta?: any;
|
|
@@ -1286,6 +1297,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1286
1297
|
id: string;
|
|
1287
1298
|
amountIn: bigint;
|
|
1288
1299
|
amountOut: bigint;
|
|
1300
|
+
amountUsd: number;
|
|
1289
1301
|
aToB: boolean;
|
|
1290
1302
|
};
|
|
1291
1303
|
meta?: any;
|
|
@@ -1300,6 +1312,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1300
1312
|
id: string;
|
|
1301
1313
|
amountIn: bigint;
|
|
1302
1314
|
amountOut: bigint;
|
|
1315
|
+
amountUsd: number;
|
|
1303
1316
|
aToB: boolean;
|
|
1304
1317
|
};
|
|
1305
1318
|
meta?: any;
|
package/dist/index.js
CHANGED
|
@@ -294,6 +294,7 @@ var PoolSwap = import_zod.z.object({
|
|
|
294
294
|
id: import_zod.z.string(),
|
|
295
295
|
amountIn: import_zod.z.coerce.bigint(),
|
|
296
296
|
amountOut: import_zod.z.coerce.bigint(),
|
|
297
|
+
amountUsd: import_zod.z.number(),
|
|
297
298
|
aToB: import_zod.z.boolean(),
|
|
298
299
|
pool: import_zod.z.string(),
|
|
299
300
|
time: import_zod.z.coerce.date()
|
|
@@ -540,6 +541,7 @@ var TunaApiClient = class {
|
|
|
540
541
|
if (inverted) {
|
|
541
542
|
this.appendUrlSearchParams(url, { inverted: inverted.toString() });
|
|
542
543
|
}
|
|
544
|
+
this.appendUrlSearchParams(url, { ts: Date.now().toString() });
|
|
543
545
|
return new EventSource(url.toString());
|
|
544
546
|
}
|
|
545
547
|
async getUpdatesStream() {
|
package/dist/index.mjs
CHANGED
|
@@ -259,6 +259,7 @@ var PoolSwap = z.object({
|
|
|
259
259
|
id: z.string(),
|
|
260
260
|
amountIn: z.coerce.bigint(),
|
|
261
261
|
amountOut: z.coerce.bigint(),
|
|
262
|
+
amountUsd: z.number(),
|
|
262
263
|
aToB: z.boolean(),
|
|
263
264
|
pool: z.string(),
|
|
264
265
|
time: z.coerce.date()
|
|
@@ -505,6 +506,7 @@ var TunaApiClient = class {
|
|
|
505
506
|
if (inverted) {
|
|
506
507
|
this.appendUrlSearchParams(url, { inverted: inverted.toString() });
|
|
507
508
|
}
|
|
509
|
+
this.appendUrlSearchParams(url, { ts: Date.now().toString() });
|
|
508
510
|
return new EventSource(url.toString());
|
|
509
511
|
}
|
|
510
512
|
async getUpdatesStream() {
|