@crypticdot/defituna-api 1.1.30 → 1.1.31
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 +22 -19
- package/dist/index.d.ts +22 -19
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,6 +4,9 @@ declare const NotificationEntity: {
|
|
|
4
4
|
readonly POOL_SWAP: "pool_swap";
|
|
5
5
|
readonly POOL_PRICE: "pool_price";
|
|
6
6
|
readonly ORDER_BOOK: "order_book";
|
|
7
|
+
readonly TUNA_POSITION: "tuna_position";
|
|
8
|
+
readonly LENDING_POSITION: "lending_position";
|
|
9
|
+
readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
|
|
7
10
|
};
|
|
8
11
|
declare const NotificationAction: {
|
|
9
12
|
readonly CREATE: "create";
|
|
@@ -36,7 +39,7 @@ declare const WalletSubscriptionTopic: {
|
|
|
36
39
|
readonly LENDING_POSITIONS: "lending_positions";
|
|
37
40
|
readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
|
|
38
41
|
};
|
|
39
|
-
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
42
|
+
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
40
43
|
declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
41
44
|
declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
42
45
|
declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
|
|
@@ -1187,7 +1190,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
|
|
|
1187
1190
|
}>;
|
|
1188
1191
|
declare const PoolSwapNotification: z.ZodObject<{
|
|
1189
1192
|
meta: z.ZodTypeAny;
|
|
1190
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1193
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1191
1194
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1192
1195
|
data: z.ZodObject<{
|
|
1193
1196
|
id: z.ZodString;
|
|
@@ -1215,7 +1218,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1215
1218
|
authority: z.ZodNullable<z.ZodString>;
|
|
1216
1219
|
} | {
|
|
1217
1220
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1218
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1221
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1219
1222
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1220
1223
|
data: z.ZodObject<{
|
|
1221
1224
|
id: z.ZodString;
|
|
@@ -1244,7 +1247,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1244
1247
|
}, "strip", z.ZodTypeAny, {
|
|
1245
1248
|
authority: string | null;
|
|
1246
1249
|
id: string;
|
|
1247
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1250
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1248
1251
|
action: "create" | "update";
|
|
1249
1252
|
data: {
|
|
1250
1253
|
time: Date;
|
|
@@ -1258,7 +1261,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1258
1261
|
} | {
|
|
1259
1262
|
authority: string | null;
|
|
1260
1263
|
id: string;
|
|
1261
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1264
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1262
1265
|
action: "create" | "update";
|
|
1263
1266
|
data: {
|
|
1264
1267
|
time: Date;
|
|
@@ -1272,7 +1275,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1272
1275
|
}, {
|
|
1273
1276
|
authority: string | null;
|
|
1274
1277
|
id: string;
|
|
1275
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1278
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1276
1279
|
action: "create" | "update";
|
|
1277
1280
|
data: {
|
|
1278
1281
|
time: Date;
|
|
@@ -1286,7 +1289,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1286
1289
|
} | {
|
|
1287
1290
|
authority: string | null;
|
|
1288
1291
|
id: string;
|
|
1289
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1292
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1290
1293
|
action: "create" | "update";
|
|
1291
1294
|
data: {
|
|
1292
1295
|
time: Date;
|
|
@@ -1300,7 +1303,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1300
1303
|
}>;
|
|
1301
1304
|
declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
1302
1305
|
meta: z.ZodTypeAny;
|
|
1303
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1306
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1304
1307
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1305
1308
|
data: z.ZodObject<{
|
|
1306
1309
|
pool: z.ZodString;
|
|
@@ -1322,7 +1325,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1322
1325
|
authority: z.ZodNullable<z.ZodString>;
|
|
1323
1326
|
} | {
|
|
1324
1327
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1325
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1328
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1326
1329
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1327
1330
|
data: z.ZodObject<{
|
|
1328
1331
|
pool: z.ZodString;
|
|
@@ -1345,7 +1348,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1345
1348
|
}, "strip", z.ZodTypeAny, {
|
|
1346
1349
|
authority: string | null;
|
|
1347
1350
|
id: string;
|
|
1348
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1351
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1349
1352
|
action: "create" | "update";
|
|
1350
1353
|
data: {
|
|
1351
1354
|
price: number;
|
|
@@ -1357,7 +1360,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1357
1360
|
} | {
|
|
1358
1361
|
authority: string | null;
|
|
1359
1362
|
id: string;
|
|
1360
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1363
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1361
1364
|
action: "create" | "update";
|
|
1362
1365
|
data: {
|
|
1363
1366
|
price: number;
|
|
@@ -1369,7 +1372,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1369
1372
|
}, {
|
|
1370
1373
|
authority: string | null;
|
|
1371
1374
|
id: string;
|
|
1372
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1375
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1373
1376
|
action: "create" | "update";
|
|
1374
1377
|
data: {
|
|
1375
1378
|
price: number;
|
|
@@ -1381,7 +1384,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1381
1384
|
} | {
|
|
1382
1385
|
authority: string | null;
|
|
1383
1386
|
id: string;
|
|
1384
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1387
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1385
1388
|
action: "create" | "update";
|
|
1386
1389
|
data: {
|
|
1387
1390
|
price: number;
|
|
@@ -1405,7 +1408,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1405
1408
|
priceStep: number;
|
|
1406
1409
|
inverted: boolean;
|
|
1407
1410
|
}>;
|
|
1408
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1411
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1409
1412
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1410
1413
|
data: z.ZodObject<{
|
|
1411
1414
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1476,7 +1479,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1476
1479
|
authority: z.ZodNullable<z.ZodString>;
|
|
1477
1480
|
} | {
|
|
1478
1481
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1479
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1482
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1480
1483
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1481
1484
|
data: z.ZodObject<{
|
|
1482
1485
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1548,7 +1551,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1548
1551
|
}, "strip", z.ZodTypeAny, {
|
|
1549
1552
|
authority: string | null;
|
|
1550
1553
|
id: string;
|
|
1551
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1554
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1552
1555
|
action: "create" | "update";
|
|
1553
1556
|
data: {
|
|
1554
1557
|
entries: {
|
|
@@ -1573,7 +1576,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1573
1576
|
} | {
|
|
1574
1577
|
authority: string | null;
|
|
1575
1578
|
id: string;
|
|
1576
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1579
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1577
1580
|
action: "create" | "update";
|
|
1578
1581
|
data: {
|
|
1579
1582
|
entries: {
|
|
@@ -1598,7 +1601,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1598
1601
|
}, {
|
|
1599
1602
|
authority: string | null;
|
|
1600
1603
|
id: string;
|
|
1601
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1604
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1602
1605
|
action: "create" | "update";
|
|
1603
1606
|
data: {
|
|
1604
1607
|
entries: {
|
|
@@ -1623,7 +1626,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1623
1626
|
} | {
|
|
1624
1627
|
authority: string | null;
|
|
1625
1628
|
id: string;
|
|
1626
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1629
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1627
1630
|
action: "create" | "update";
|
|
1628
1631
|
data: {
|
|
1629
1632
|
entries: {
|
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,9 @@ declare const NotificationEntity: {
|
|
|
4
4
|
readonly POOL_SWAP: "pool_swap";
|
|
5
5
|
readonly POOL_PRICE: "pool_price";
|
|
6
6
|
readonly ORDER_BOOK: "order_book";
|
|
7
|
+
readonly TUNA_POSITION: "tuna_position";
|
|
8
|
+
readonly LENDING_POSITION: "lending_position";
|
|
9
|
+
readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
|
|
7
10
|
};
|
|
8
11
|
declare const NotificationAction: {
|
|
9
12
|
readonly CREATE: "create";
|
|
@@ -36,7 +39,7 @@ declare const WalletSubscriptionTopic: {
|
|
|
36
39
|
readonly LENDING_POSITIONS: "lending_positions";
|
|
37
40
|
readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
|
|
38
41
|
};
|
|
39
|
-
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
42
|
+
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
40
43
|
declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
41
44
|
declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
42
45
|
declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
|
|
@@ -1187,7 +1190,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
|
|
|
1187
1190
|
}>;
|
|
1188
1191
|
declare const PoolSwapNotification: z.ZodObject<{
|
|
1189
1192
|
meta: z.ZodTypeAny;
|
|
1190
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1193
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1191
1194
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1192
1195
|
data: z.ZodObject<{
|
|
1193
1196
|
id: z.ZodString;
|
|
@@ -1215,7 +1218,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1215
1218
|
authority: z.ZodNullable<z.ZodString>;
|
|
1216
1219
|
} | {
|
|
1217
1220
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1218
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1221
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1219
1222
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1220
1223
|
data: z.ZodObject<{
|
|
1221
1224
|
id: z.ZodString;
|
|
@@ -1244,7 +1247,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1244
1247
|
}, "strip", z.ZodTypeAny, {
|
|
1245
1248
|
authority: string | null;
|
|
1246
1249
|
id: string;
|
|
1247
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1250
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1248
1251
|
action: "create" | "update";
|
|
1249
1252
|
data: {
|
|
1250
1253
|
time: Date;
|
|
@@ -1258,7 +1261,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1258
1261
|
} | {
|
|
1259
1262
|
authority: string | null;
|
|
1260
1263
|
id: string;
|
|
1261
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1264
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1262
1265
|
action: "create" | "update";
|
|
1263
1266
|
data: {
|
|
1264
1267
|
time: Date;
|
|
@@ -1272,7 +1275,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1272
1275
|
}, {
|
|
1273
1276
|
authority: string | null;
|
|
1274
1277
|
id: string;
|
|
1275
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1278
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1276
1279
|
action: "create" | "update";
|
|
1277
1280
|
data: {
|
|
1278
1281
|
time: Date;
|
|
@@ -1286,7 +1289,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1286
1289
|
} | {
|
|
1287
1290
|
authority: string | null;
|
|
1288
1291
|
id: string;
|
|
1289
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1292
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1290
1293
|
action: "create" | "update";
|
|
1291
1294
|
data: {
|
|
1292
1295
|
time: Date;
|
|
@@ -1300,7 +1303,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1300
1303
|
}>;
|
|
1301
1304
|
declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
1302
1305
|
meta: z.ZodTypeAny;
|
|
1303
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1306
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1304
1307
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1305
1308
|
data: z.ZodObject<{
|
|
1306
1309
|
pool: z.ZodString;
|
|
@@ -1322,7 +1325,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1322
1325
|
authority: z.ZodNullable<z.ZodString>;
|
|
1323
1326
|
} | {
|
|
1324
1327
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1325
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1328
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1326
1329
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1327
1330
|
data: z.ZodObject<{
|
|
1328
1331
|
pool: z.ZodString;
|
|
@@ -1345,7 +1348,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1345
1348
|
}, "strip", z.ZodTypeAny, {
|
|
1346
1349
|
authority: string | null;
|
|
1347
1350
|
id: string;
|
|
1348
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1351
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1349
1352
|
action: "create" | "update";
|
|
1350
1353
|
data: {
|
|
1351
1354
|
price: number;
|
|
@@ -1357,7 +1360,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1357
1360
|
} | {
|
|
1358
1361
|
authority: string | null;
|
|
1359
1362
|
id: string;
|
|
1360
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1363
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1361
1364
|
action: "create" | "update";
|
|
1362
1365
|
data: {
|
|
1363
1366
|
price: number;
|
|
@@ -1369,7 +1372,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1369
1372
|
}, {
|
|
1370
1373
|
authority: string | null;
|
|
1371
1374
|
id: string;
|
|
1372
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1375
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1373
1376
|
action: "create" | "update";
|
|
1374
1377
|
data: {
|
|
1375
1378
|
price: number;
|
|
@@ -1381,7 +1384,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1381
1384
|
} | {
|
|
1382
1385
|
authority: string | null;
|
|
1383
1386
|
id: string;
|
|
1384
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1387
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1385
1388
|
action: "create" | "update";
|
|
1386
1389
|
data: {
|
|
1387
1390
|
price: number;
|
|
@@ -1405,7 +1408,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1405
1408
|
priceStep: number;
|
|
1406
1409
|
inverted: boolean;
|
|
1407
1410
|
}>;
|
|
1408
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1411
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1409
1412
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1410
1413
|
data: z.ZodObject<{
|
|
1411
1414
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1476,7 +1479,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1476
1479
|
authority: z.ZodNullable<z.ZodString>;
|
|
1477
1480
|
} | {
|
|
1478
1481
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1479
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book")[]]>;
|
|
1482
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1480
1483
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1481
1484
|
data: z.ZodObject<{
|
|
1482
1485
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1548,7 +1551,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1548
1551
|
}, "strip", z.ZodTypeAny, {
|
|
1549
1552
|
authority: string | null;
|
|
1550
1553
|
id: string;
|
|
1551
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1554
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1552
1555
|
action: "create" | "update";
|
|
1553
1556
|
data: {
|
|
1554
1557
|
entries: {
|
|
@@ -1573,7 +1576,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1573
1576
|
} | {
|
|
1574
1577
|
authority: string | null;
|
|
1575
1578
|
id: string;
|
|
1576
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1579
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1577
1580
|
action: "create" | "update";
|
|
1578
1581
|
data: {
|
|
1579
1582
|
entries: {
|
|
@@ -1598,7 +1601,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1598
1601
|
}, {
|
|
1599
1602
|
authority: string | null;
|
|
1600
1603
|
id: string;
|
|
1601
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1604
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1602
1605
|
action: "create" | "update";
|
|
1603
1606
|
data: {
|
|
1604
1607
|
entries: {
|
|
@@ -1623,7 +1626,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1623
1626
|
} | {
|
|
1624
1627
|
authority: string | null;
|
|
1625
1628
|
id: string;
|
|
1626
|
-
entity: "pool_swap" | "pool_price" | "order_book";
|
|
1629
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1627
1630
|
action: "create" | "update";
|
|
1628
1631
|
data: {
|
|
1629
1632
|
entries: {
|
package/dist/index.js
CHANGED
|
@@ -100,7 +100,10 @@ var usdPnl = import_zod.z.object({
|
|
|
100
100
|
var NotificationEntity = {
|
|
101
101
|
POOL_SWAP: "pool_swap",
|
|
102
102
|
POOL_PRICE: "pool_price",
|
|
103
|
-
ORDER_BOOK: "order_book"
|
|
103
|
+
ORDER_BOOK: "order_book",
|
|
104
|
+
TUNA_POSITION: "tuna_position",
|
|
105
|
+
LENDING_POSITION: "lending_position",
|
|
106
|
+
FUSION_LIMIT_ORDER: "fusion_limit_order"
|
|
104
107
|
};
|
|
105
108
|
var NotificationAction = {
|
|
106
109
|
CREATE: "create",
|
package/dist/index.mjs
CHANGED
|
@@ -65,7 +65,10 @@ var usdPnl = z.object({
|
|
|
65
65
|
var NotificationEntity = {
|
|
66
66
|
POOL_SWAP: "pool_swap",
|
|
67
67
|
POOL_PRICE: "pool_price",
|
|
68
|
-
ORDER_BOOK: "order_book"
|
|
68
|
+
ORDER_BOOK: "order_book",
|
|
69
|
+
TUNA_POSITION: "tuna_position",
|
|
70
|
+
LENDING_POSITION: "lending_position",
|
|
71
|
+
FUSION_LIMIT_ORDER: "fusion_limit_order"
|
|
69
72
|
};
|
|
70
73
|
var NotificationAction = {
|
|
71
74
|
CREATE: "create",
|