@crypticdot/defituna-api 1.8.0 → 1.8.1
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 +68 -67
- package/dist/index.d.ts +68 -67
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -11,6 +11,7 @@ declare const NotificationEntity: {
|
|
|
11
11
|
readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
|
|
12
12
|
readonly TRADE_HISTORY_ENTRY: "trade_history_entry";
|
|
13
13
|
readonly ORDER_HISTORY_ENTRY: "order_history_entry";
|
|
14
|
+
readonly STATE_SNAPSHOT: "state_snapshot";
|
|
14
15
|
};
|
|
15
16
|
declare const NotificationAction: {
|
|
16
17
|
readonly CREATE: "create";
|
|
@@ -96,7 +97,7 @@ declare const WalletSubscriptionTopic: {
|
|
|
96
97
|
readonly TRADE_HISTORY: "trade_history";
|
|
97
98
|
readonly ORDER_HISTORY: "order_history";
|
|
98
99
|
};
|
|
99
|
-
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
100
|
+
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
100
101
|
declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
101
102
|
declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
102
103
|
declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
|
|
@@ -3302,7 +3303,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
|
|
|
3302
3303
|
}>;
|
|
3303
3304
|
declare const PoolSwapNotification: z.ZodObject<{
|
|
3304
3305
|
meta: z.ZodTypeAny;
|
|
3305
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3306
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3306
3307
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3307
3308
|
data: z.ZodObject<{
|
|
3308
3309
|
id: z.ZodString;
|
|
@@ -3333,7 +3334,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3333
3334
|
authority: z.ZodNullable<z.ZodString>;
|
|
3334
3335
|
} | {
|
|
3335
3336
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3336
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3337
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3337
3338
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3338
3339
|
data: z.ZodObject<{
|
|
3339
3340
|
id: z.ZodString;
|
|
@@ -3375,7 +3376,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3375
3376
|
amountUsd: number;
|
|
3376
3377
|
aToB: boolean;
|
|
3377
3378
|
};
|
|
3378
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3379
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3379
3380
|
meta?: any;
|
|
3380
3381
|
} | {
|
|
3381
3382
|
authority: string | null;
|
|
@@ -3390,7 +3391,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3390
3391
|
amountUsd: number;
|
|
3391
3392
|
aToB: boolean;
|
|
3392
3393
|
};
|
|
3393
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3394
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3394
3395
|
meta?: any;
|
|
3395
3396
|
}, {
|
|
3396
3397
|
authority: string | null;
|
|
@@ -3405,7 +3406,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3405
3406
|
amountUsd: number;
|
|
3406
3407
|
aToB: boolean;
|
|
3407
3408
|
};
|
|
3408
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3409
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3409
3410
|
meta?: any;
|
|
3410
3411
|
} | {
|
|
3411
3412
|
authority: string | null;
|
|
@@ -3420,12 +3421,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3420
3421
|
amountUsd: number;
|
|
3421
3422
|
aToB: boolean;
|
|
3422
3423
|
};
|
|
3423
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3424
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3424
3425
|
meta?: any;
|
|
3425
3426
|
}>;
|
|
3426
3427
|
declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
3427
3428
|
meta: z.ZodTypeAny;
|
|
3428
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3429
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3429
3430
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3430
3431
|
data: z.ZodObject<{
|
|
3431
3432
|
pool: z.ZodString;
|
|
@@ -3447,7 +3448,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3447
3448
|
authority: z.ZodNullable<z.ZodString>;
|
|
3448
3449
|
} | {
|
|
3449
3450
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3450
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3451
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3451
3452
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3452
3453
|
data: z.ZodObject<{
|
|
3453
3454
|
pool: z.ZodString;
|
|
@@ -3477,7 +3478,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3477
3478
|
sqrtPrice: bigint;
|
|
3478
3479
|
pool: string;
|
|
3479
3480
|
};
|
|
3480
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3481
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3481
3482
|
meta?: any;
|
|
3482
3483
|
} | {
|
|
3483
3484
|
authority: string | null;
|
|
@@ -3489,7 +3490,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3489
3490
|
sqrtPrice: bigint;
|
|
3490
3491
|
pool: string;
|
|
3491
3492
|
};
|
|
3492
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3493
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3493
3494
|
meta?: any;
|
|
3494
3495
|
}, {
|
|
3495
3496
|
authority: string | null;
|
|
@@ -3501,7 +3502,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3501
3502
|
sqrtPrice: bigint;
|
|
3502
3503
|
pool: string;
|
|
3503
3504
|
};
|
|
3504
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3505
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3505
3506
|
meta?: any;
|
|
3506
3507
|
} | {
|
|
3507
3508
|
authority: string | null;
|
|
@@ -3513,7 +3514,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3513
3514
|
sqrtPrice: bigint;
|
|
3514
3515
|
pool: string;
|
|
3515
3516
|
};
|
|
3516
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3517
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3517
3518
|
meta?: any;
|
|
3518
3519
|
}>;
|
|
3519
3520
|
declare const OrderBookNotification: z.ZodObject<{
|
|
@@ -3530,7 +3531,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3530
3531
|
priceStep: number;
|
|
3531
3532
|
inverted: boolean;
|
|
3532
3533
|
}>;
|
|
3533
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3534
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3534
3535
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3535
3536
|
data: z.ZodObject<{
|
|
3536
3537
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -3601,7 +3602,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3601
3602
|
authority: z.ZodNullable<z.ZodString>;
|
|
3602
3603
|
} | {
|
|
3603
3604
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3604
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3605
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3605
3606
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3606
3607
|
data: z.ZodObject<{
|
|
3607
3608
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -3694,7 +3695,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3694
3695
|
priceStep: number;
|
|
3695
3696
|
inverted: boolean;
|
|
3696
3697
|
} | null | undefined;
|
|
3697
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3698
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3698
3699
|
} | {
|
|
3699
3700
|
authority: string | null;
|
|
3700
3701
|
id: string;
|
|
@@ -3719,7 +3720,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3719
3720
|
priceStep: number;
|
|
3720
3721
|
inverted: boolean;
|
|
3721
3722
|
} | null | undefined;
|
|
3722
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3723
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3723
3724
|
}, {
|
|
3724
3725
|
authority: string | null;
|
|
3725
3726
|
id: string;
|
|
@@ -3744,7 +3745,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3744
3745
|
priceStep: number;
|
|
3745
3746
|
inverted: boolean;
|
|
3746
3747
|
} | null | undefined;
|
|
3747
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3748
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3748
3749
|
} | {
|
|
3749
3750
|
authority: string | null;
|
|
3750
3751
|
id: string;
|
|
@@ -3769,11 +3770,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3769
3770
|
priceStep: number;
|
|
3770
3771
|
inverted: boolean;
|
|
3771
3772
|
} | null | undefined;
|
|
3772
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3773
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3773
3774
|
}>;
|
|
3774
3775
|
declare const TunaPositionNotification: z.ZodObject<{
|
|
3775
3776
|
meta: z.ZodTypeAny;
|
|
3776
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3777
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3777
3778
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3778
3779
|
data: z.ZodObject<{
|
|
3779
3780
|
address: z.ZodString;
|
|
@@ -4143,7 +4144,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4143
4144
|
authority: z.ZodNullable<z.ZodString>;
|
|
4144
4145
|
} | {
|
|
4145
4146
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
4146
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4147
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
4147
4148
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4148
4149
|
data: z.ZodObject<{
|
|
4149
4150
|
address: z.ZodString;
|
|
@@ -4603,7 +4604,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4603
4604
|
updatedAtSlot: bigint;
|
|
4604
4605
|
closedAt: Date | null;
|
|
4605
4606
|
};
|
|
4606
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4607
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
4607
4608
|
meta?: any;
|
|
4608
4609
|
} | {
|
|
4609
4610
|
authority: string | null;
|
|
@@ -4697,7 +4698,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4697
4698
|
updatedAtSlot: bigint;
|
|
4698
4699
|
closedAt: Date | null;
|
|
4699
4700
|
};
|
|
4700
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4701
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
4701
4702
|
meta?: any;
|
|
4702
4703
|
}, {
|
|
4703
4704
|
authority: string | null;
|
|
@@ -4791,7 +4792,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4791
4792
|
updatedAtSlot: bigint;
|
|
4792
4793
|
closedAt: Date | null;
|
|
4793
4794
|
};
|
|
4794
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4795
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
4795
4796
|
meta?: any;
|
|
4796
4797
|
} | {
|
|
4797
4798
|
authority: string | null;
|
|
@@ -4885,12 +4886,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4885
4886
|
updatedAtSlot: bigint;
|
|
4886
4887
|
closedAt: Date | null;
|
|
4887
4888
|
};
|
|
4888
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4889
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
4889
4890
|
meta?: any;
|
|
4890
4891
|
}>;
|
|
4891
4892
|
declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
4892
4893
|
meta: z.ZodTypeAny;
|
|
4893
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4894
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
4894
4895
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4895
4896
|
data: z.ZodObject<{
|
|
4896
4897
|
address: z.ZodString;
|
|
@@ -5047,7 +5048,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5047
5048
|
authority: z.ZodNullable<z.ZodString>;
|
|
5048
5049
|
} | {
|
|
5049
5050
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5050
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5051
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5051
5052
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5052
5053
|
data: z.ZodObject<{
|
|
5053
5054
|
address: z.ZodString;
|
|
@@ -5247,7 +5248,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5247
5248
|
leverage: number;
|
|
5248
5249
|
openedAtSlot: bigint;
|
|
5249
5250
|
};
|
|
5250
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5251
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5251
5252
|
meta?: any;
|
|
5252
5253
|
} | {
|
|
5253
5254
|
authority: string | null;
|
|
@@ -5294,7 +5295,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5294
5295
|
leverage: number;
|
|
5295
5296
|
openedAtSlot: bigint;
|
|
5296
5297
|
};
|
|
5297
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5298
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5298
5299
|
meta?: any;
|
|
5299
5300
|
}, {
|
|
5300
5301
|
authority: string | null;
|
|
@@ -5341,7 +5342,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5341
5342
|
leverage: number;
|
|
5342
5343
|
openedAtSlot: bigint;
|
|
5343
5344
|
};
|
|
5344
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5345
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5345
5346
|
meta?: any;
|
|
5346
5347
|
} | {
|
|
5347
5348
|
authority: string | null;
|
|
@@ -5388,12 +5389,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5388
5389
|
leverage: number;
|
|
5389
5390
|
openedAtSlot: bigint;
|
|
5390
5391
|
};
|
|
5391
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5392
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5392
5393
|
meta?: any;
|
|
5393
5394
|
}>;
|
|
5394
5395
|
declare const LendingPositionNotification: z.ZodObject<{
|
|
5395
5396
|
meta: z.ZodTypeAny;
|
|
5396
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5397
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5397
5398
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5398
5399
|
data: z.ZodObject<{
|
|
5399
5400
|
address: z.ZodString;
|
|
@@ -5454,7 +5455,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5454
5455
|
authority: z.ZodNullable<z.ZodString>;
|
|
5455
5456
|
} | {
|
|
5456
5457
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5457
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5458
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5458
5459
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5459
5460
|
data: z.ZodObject<{
|
|
5460
5461
|
address: z.ZodString;
|
|
@@ -5532,7 +5533,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5532
5533
|
usd: number;
|
|
5533
5534
|
};
|
|
5534
5535
|
};
|
|
5535
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5536
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5536
5537
|
meta?: any;
|
|
5537
5538
|
} | {
|
|
5538
5539
|
authority: string | null;
|
|
@@ -5553,7 +5554,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5553
5554
|
usd: number;
|
|
5554
5555
|
};
|
|
5555
5556
|
};
|
|
5556
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5557
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5557
5558
|
meta?: any;
|
|
5558
5559
|
}, {
|
|
5559
5560
|
authority: string | null;
|
|
@@ -5574,7 +5575,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5574
5575
|
usd: number;
|
|
5575
5576
|
};
|
|
5576
5577
|
};
|
|
5577
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5578
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5578
5579
|
meta?: any;
|
|
5579
5580
|
} | {
|
|
5580
5581
|
authority: string | null;
|
|
@@ -5595,12 +5596,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5595
5596
|
usd: number;
|
|
5596
5597
|
};
|
|
5597
5598
|
};
|
|
5598
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5599
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5599
5600
|
meta?: any;
|
|
5600
5601
|
}>;
|
|
5601
5602
|
declare const LimitOrderNotification: z.ZodObject<{
|
|
5602
5603
|
meta: z.ZodTypeAny;
|
|
5603
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5604
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5604
5605
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5605
5606
|
data: z.ZodObject<{
|
|
5606
5607
|
address: z.ZodString;
|
|
@@ -5679,7 +5680,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5679
5680
|
authority: z.ZodNullable<z.ZodString>;
|
|
5680
5681
|
} | {
|
|
5681
5682
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5682
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5683
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5683
5684
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5684
5685
|
data: z.ZodObject<{
|
|
5685
5686
|
address: z.ZodString;
|
|
@@ -5781,7 +5782,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5781
5782
|
openTxSignature: string;
|
|
5782
5783
|
closeTxSignature: string | null;
|
|
5783
5784
|
};
|
|
5784
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5785
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5785
5786
|
meta?: any;
|
|
5786
5787
|
} | {
|
|
5787
5788
|
authority: string | null;
|
|
@@ -5808,7 +5809,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5808
5809
|
openTxSignature: string;
|
|
5809
5810
|
closeTxSignature: string | null;
|
|
5810
5811
|
};
|
|
5811
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5812
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5812
5813
|
meta?: any;
|
|
5813
5814
|
}, {
|
|
5814
5815
|
authority: string | null;
|
|
@@ -5835,7 +5836,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5835
5836
|
openTxSignature: string;
|
|
5836
5837
|
closeTxSignature: string | null;
|
|
5837
5838
|
};
|
|
5838
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5839
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5839
5840
|
meta?: any;
|
|
5840
5841
|
} | {
|
|
5841
5842
|
authority: string | null;
|
|
@@ -5862,12 +5863,12 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5862
5863
|
openTxSignature: string;
|
|
5863
5864
|
closeTxSignature: string | null;
|
|
5864
5865
|
};
|
|
5865
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5866
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5866
5867
|
meta?: any;
|
|
5867
5868
|
}>;
|
|
5868
5869
|
declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
5869
5870
|
meta: z.ZodTypeAny;
|
|
5870
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5871
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5871
5872
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5872
5873
|
data: z.ZodObject<{
|
|
5873
5874
|
id: z.ZodString;
|
|
@@ -5982,7 +5983,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
5982
5983
|
authority: z.ZodNullable<z.ZodString>;
|
|
5983
5984
|
} | {
|
|
5984
5985
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5985
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5986
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5986
5987
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5987
5988
|
data: z.ZodObject<{
|
|
5988
5989
|
id: z.ZodString;
|
|
@@ -6128,7 +6129,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6128
6129
|
slot: bigint;
|
|
6129
6130
|
ts: Date;
|
|
6130
6131
|
};
|
|
6131
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6132
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6132
6133
|
meta?: any;
|
|
6133
6134
|
} | {
|
|
6134
6135
|
authority: string | null;
|
|
@@ -6163,7 +6164,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6163
6164
|
slot: bigint;
|
|
6164
6165
|
ts: Date;
|
|
6165
6166
|
};
|
|
6166
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6167
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6167
6168
|
meta?: any;
|
|
6168
6169
|
}, {
|
|
6169
6170
|
authority: string | null;
|
|
@@ -6198,7 +6199,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6198
6199
|
slot: bigint;
|
|
6199
6200
|
ts: Date;
|
|
6200
6201
|
};
|
|
6201
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6202
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6202
6203
|
meta?: any;
|
|
6203
6204
|
} | {
|
|
6204
6205
|
authority: string | null;
|
|
@@ -6233,12 +6234,12 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6233
6234
|
slot: bigint;
|
|
6234
6235
|
ts: Date;
|
|
6235
6236
|
};
|
|
6236
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6237
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6237
6238
|
meta?: any;
|
|
6238
6239
|
}>;
|
|
6239
6240
|
declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
6240
6241
|
meta: z.ZodTypeAny;
|
|
6241
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6242
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6242
6243
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6243
6244
|
data: z.ZodObject<{
|
|
6244
6245
|
id: z.ZodString;
|
|
@@ -6362,7 +6363,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6362
6363
|
authority: z.ZodNullable<z.ZodString>;
|
|
6363
6364
|
} | {
|
|
6364
6365
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
6365
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6366
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6366
6367
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6367
6368
|
data: z.ZodObject<{
|
|
6368
6369
|
id: z.ZodString;
|
|
@@ -6520,7 +6521,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6520
6521
|
usd: number;
|
|
6521
6522
|
} | null;
|
|
6522
6523
|
};
|
|
6523
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6524
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6524
6525
|
meta?: any;
|
|
6525
6526
|
} | {
|
|
6526
6527
|
authority: string | null;
|
|
@@ -6558,7 +6559,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6558
6559
|
usd: number;
|
|
6559
6560
|
} | null;
|
|
6560
6561
|
};
|
|
6561
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6562
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6562
6563
|
meta?: any;
|
|
6563
6564
|
}, {
|
|
6564
6565
|
authority: string | null;
|
|
@@ -6596,7 +6597,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6596
6597
|
usd: number;
|
|
6597
6598
|
} | null;
|
|
6598
6599
|
};
|
|
6599
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6600
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6600
6601
|
meta?: any;
|
|
6601
6602
|
} | {
|
|
6602
6603
|
authority: string | null;
|
|
@@ -6634,12 +6635,12 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6634
6635
|
usd: number;
|
|
6635
6636
|
} | null;
|
|
6636
6637
|
};
|
|
6637
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6638
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6638
6639
|
meta?: any;
|
|
6639
6640
|
}>;
|
|
6640
6641
|
declare const StakingPositionNotification: z.ZodObject<{
|
|
6641
6642
|
meta: z.ZodTypeAny;
|
|
6642
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6643
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6643
6644
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6644
6645
|
data: z.ZodObject<{
|
|
6645
6646
|
address: z.ZodString;
|
|
@@ -6816,7 +6817,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
6816
6817
|
authority: z.ZodNullable<z.ZodString>;
|
|
6817
6818
|
} | {
|
|
6818
6819
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
6819
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6820
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6820
6821
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6821
6822
|
data: z.ZodObject<{
|
|
6822
6823
|
address: z.ZodString;
|
|
@@ -7032,7 +7033,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7032
7033
|
lastUnstakedAt: Date | null;
|
|
7033
7034
|
withdrawAvailableAt: Date | null;
|
|
7034
7035
|
};
|
|
7035
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
7036
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
7036
7037
|
meta?: any;
|
|
7037
7038
|
} | {
|
|
7038
7039
|
authority: string | null;
|
|
@@ -7075,7 +7076,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7075
7076
|
lastUnstakedAt: Date | null;
|
|
7076
7077
|
withdrawAvailableAt: Date | null;
|
|
7077
7078
|
};
|
|
7078
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
7079
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
7079
7080
|
meta?: any;
|
|
7080
7081
|
}, {
|
|
7081
7082
|
authority: string | null;
|
|
@@ -7118,7 +7119,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7118
7119
|
lastUnstakedAt: Date | null;
|
|
7119
7120
|
withdrawAvailableAt: Date | null;
|
|
7120
7121
|
};
|
|
7121
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
7122
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
7122
7123
|
meta?: any;
|
|
7123
7124
|
} | {
|
|
7124
7125
|
authority: string | null;
|
|
@@ -7161,12 +7162,12 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7161
7162
|
lastUnstakedAt: Date | null;
|
|
7162
7163
|
withdrawAvailableAt: Date | null;
|
|
7163
7164
|
};
|
|
7164
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
7165
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
7165
7166
|
meta?: any;
|
|
7166
7167
|
}>;
|
|
7167
7168
|
declare const StateSnapshotNotification: z.ZodObject<{
|
|
7168
7169
|
meta: z.ZodTypeAny;
|
|
7169
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
7170
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
7170
7171
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
7171
7172
|
data: z.ZodObject<{
|
|
7172
7173
|
slot: z.ZodBigInt;
|
|
@@ -8093,7 +8094,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8093
8094
|
authority: z.ZodNullable<z.ZodString>;
|
|
8094
8095
|
} | {
|
|
8095
8096
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
8096
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
8097
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
8097
8098
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
8098
8099
|
data: z.ZodObject<{
|
|
8099
8100
|
slot: z.ZodBigInt;
|
|
@@ -9181,7 +9182,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9181
9182
|
closeTxSignature: string | null;
|
|
9182
9183
|
}[] | undefined;
|
|
9183
9184
|
};
|
|
9184
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
9185
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
9185
9186
|
meta?: any;
|
|
9186
9187
|
} | {
|
|
9187
9188
|
authority: string | null;
|
|
@@ -9346,7 +9347,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9346
9347
|
closeTxSignature: string | null;
|
|
9347
9348
|
}[] | undefined;
|
|
9348
9349
|
};
|
|
9349
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
9350
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
9350
9351
|
meta?: any;
|
|
9351
9352
|
}, {
|
|
9352
9353
|
authority: string | null;
|
|
@@ -9511,7 +9512,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9511
9512
|
closeTxSignature: string | null;
|
|
9512
9513
|
}[] | undefined;
|
|
9513
9514
|
};
|
|
9514
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
9515
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
9515
9516
|
meta?: any;
|
|
9516
9517
|
} | {
|
|
9517
9518
|
authority: string | null;
|
|
@@ -9676,7 +9677,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9676
9677
|
closeTxSignature: string | null;
|
|
9677
9678
|
}[] | undefined;
|
|
9678
9679
|
};
|
|
9679
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
9680
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
9680
9681
|
meta?: any;
|
|
9681
9682
|
}>;
|
|
9682
9683
|
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare const NotificationEntity: {
|
|
|
11
11
|
readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
|
|
12
12
|
readonly TRADE_HISTORY_ENTRY: "trade_history_entry";
|
|
13
13
|
readonly ORDER_HISTORY_ENTRY: "order_history_entry";
|
|
14
|
+
readonly STATE_SNAPSHOT: "state_snapshot";
|
|
14
15
|
};
|
|
15
16
|
declare const NotificationAction: {
|
|
16
17
|
readonly CREATE: "create";
|
|
@@ -96,7 +97,7 @@ declare const WalletSubscriptionTopic: {
|
|
|
96
97
|
readonly TRADE_HISTORY: "trade_history";
|
|
97
98
|
readonly ORDER_HISTORY: "order_history";
|
|
98
99
|
};
|
|
99
|
-
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
100
|
+
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
100
101
|
declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
101
102
|
declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
102
103
|
declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
|
|
@@ -3302,7 +3303,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
|
|
|
3302
3303
|
}>;
|
|
3303
3304
|
declare const PoolSwapNotification: z.ZodObject<{
|
|
3304
3305
|
meta: z.ZodTypeAny;
|
|
3305
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3306
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3306
3307
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3307
3308
|
data: z.ZodObject<{
|
|
3308
3309
|
id: z.ZodString;
|
|
@@ -3333,7 +3334,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3333
3334
|
authority: z.ZodNullable<z.ZodString>;
|
|
3334
3335
|
} | {
|
|
3335
3336
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3336
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3337
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3337
3338
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3338
3339
|
data: z.ZodObject<{
|
|
3339
3340
|
id: z.ZodString;
|
|
@@ -3375,7 +3376,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3375
3376
|
amountUsd: number;
|
|
3376
3377
|
aToB: boolean;
|
|
3377
3378
|
};
|
|
3378
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3379
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3379
3380
|
meta?: any;
|
|
3380
3381
|
} | {
|
|
3381
3382
|
authority: string | null;
|
|
@@ -3390,7 +3391,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3390
3391
|
amountUsd: number;
|
|
3391
3392
|
aToB: boolean;
|
|
3392
3393
|
};
|
|
3393
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3394
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3394
3395
|
meta?: any;
|
|
3395
3396
|
}, {
|
|
3396
3397
|
authority: string | null;
|
|
@@ -3405,7 +3406,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3405
3406
|
amountUsd: number;
|
|
3406
3407
|
aToB: boolean;
|
|
3407
3408
|
};
|
|
3408
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3409
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3409
3410
|
meta?: any;
|
|
3410
3411
|
} | {
|
|
3411
3412
|
authority: string | null;
|
|
@@ -3420,12 +3421,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
3420
3421
|
amountUsd: number;
|
|
3421
3422
|
aToB: boolean;
|
|
3422
3423
|
};
|
|
3423
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3424
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3424
3425
|
meta?: any;
|
|
3425
3426
|
}>;
|
|
3426
3427
|
declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
3427
3428
|
meta: z.ZodTypeAny;
|
|
3428
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3429
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3429
3430
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3430
3431
|
data: z.ZodObject<{
|
|
3431
3432
|
pool: z.ZodString;
|
|
@@ -3447,7 +3448,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3447
3448
|
authority: z.ZodNullable<z.ZodString>;
|
|
3448
3449
|
} | {
|
|
3449
3450
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3450
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3451
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3451
3452
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3452
3453
|
data: z.ZodObject<{
|
|
3453
3454
|
pool: z.ZodString;
|
|
@@ -3477,7 +3478,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3477
3478
|
sqrtPrice: bigint;
|
|
3478
3479
|
pool: string;
|
|
3479
3480
|
};
|
|
3480
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3481
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3481
3482
|
meta?: any;
|
|
3482
3483
|
} | {
|
|
3483
3484
|
authority: string | null;
|
|
@@ -3489,7 +3490,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3489
3490
|
sqrtPrice: bigint;
|
|
3490
3491
|
pool: string;
|
|
3491
3492
|
};
|
|
3492
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3493
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3493
3494
|
meta?: any;
|
|
3494
3495
|
}, {
|
|
3495
3496
|
authority: string | null;
|
|
@@ -3501,7 +3502,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3501
3502
|
sqrtPrice: bigint;
|
|
3502
3503
|
pool: string;
|
|
3503
3504
|
};
|
|
3504
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3505
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3505
3506
|
meta?: any;
|
|
3506
3507
|
} | {
|
|
3507
3508
|
authority: string | null;
|
|
@@ -3513,7 +3514,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
3513
3514
|
sqrtPrice: bigint;
|
|
3514
3515
|
pool: string;
|
|
3515
3516
|
};
|
|
3516
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3517
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3517
3518
|
meta?: any;
|
|
3518
3519
|
}>;
|
|
3519
3520
|
declare const OrderBookNotification: z.ZodObject<{
|
|
@@ -3530,7 +3531,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3530
3531
|
priceStep: number;
|
|
3531
3532
|
inverted: boolean;
|
|
3532
3533
|
}>;
|
|
3533
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3534
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3534
3535
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3535
3536
|
data: z.ZodObject<{
|
|
3536
3537
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -3601,7 +3602,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3601
3602
|
authority: z.ZodNullable<z.ZodString>;
|
|
3602
3603
|
} | {
|
|
3603
3604
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3604
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3605
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3605
3606
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3606
3607
|
data: z.ZodObject<{
|
|
3607
3608
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -3694,7 +3695,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3694
3695
|
priceStep: number;
|
|
3695
3696
|
inverted: boolean;
|
|
3696
3697
|
} | null | undefined;
|
|
3697
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3698
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3698
3699
|
} | {
|
|
3699
3700
|
authority: string | null;
|
|
3700
3701
|
id: string;
|
|
@@ -3719,7 +3720,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3719
3720
|
priceStep: number;
|
|
3720
3721
|
inverted: boolean;
|
|
3721
3722
|
} | null | undefined;
|
|
3722
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3723
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3723
3724
|
}, {
|
|
3724
3725
|
authority: string | null;
|
|
3725
3726
|
id: string;
|
|
@@ -3744,7 +3745,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3744
3745
|
priceStep: number;
|
|
3745
3746
|
inverted: boolean;
|
|
3746
3747
|
} | null | undefined;
|
|
3747
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3748
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3748
3749
|
} | {
|
|
3749
3750
|
authority: string | null;
|
|
3750
3751
|
id: string;
|
|
@@ -3769,11 +3770,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
3769
3770
|
priceStep: number;
|
|
3770
3771
|
inverted: boolean;
|
|
3771
3772
|
} | null | undefined;
|
|
3772
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
3773
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
3773
3774
|
}>;
|
|
3774
3775
|
declare const TunaPositionNotification: z.ZodObject<{
|
|
3775
3776
|
meta: z.ZodTypeAny;
|
|
3776
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
3777
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
3777
3778
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3778
3779
|
data: z.ZodObject<{
|
|
3779
3780
|
address: z.ZodString;
|
|
@@ -4143,7 +4144,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4143
4144
|
authority: z.ZodNullable<z.ZodString>;
|
|
4144
4145
|
} | {
|
|
4145
4146
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
4146
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4147
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
4147
4148
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4148
4149
|
data: z.ZodObject<{
|
|
4149
4150
|
address: z.ZodString;
|
|
@@ -4603,7 +4604,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4603
4604
|
updatedAtSlot: bigint;
|
|
4604
4605
|
closedAt: Date | null;
|
|
4605
4606
|
};
|
|
4606
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4607
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
4607
4608
|
meta?: any;
|
|
4608
4609
|
} | {
|
|
4609
4610
|
authority: string | null;
|
|
@@ -4697,7 +4698,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4697
4698
|
updatedAtSlot: bigint;
|
|
4698
4699
|
closedAt: Date | null;
|
|
4699
4700
|
};
|
|
4700
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4701
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
4701
4702
|
meta?: any;
|
|
4702
4703
|
}, {
|
|
4703
4704
|
authority: string | null;
|
|
@@ -4791,7 +4792,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4791
4792
|
updatedAtSlot: bigint;
|
|
4792
4793
|
closedAt: Date | null;
|
|
4793
4794
|
};
|
|
4794
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4795
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
4795
4796
|
meta?: any;
|
|
4796
4797
|
} | {
|
|
4797
4798
|
authority: string | null;
|
|
@@ -4885,12 +4886,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
4885
4886
|
updatedAtSlot: bigint;
|
|
4886
4887
|
closedAt: Date | null;
|
|
4887
4888
|
};
|
|
4888
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
4889
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
4889
4890
|
meta?: any;
|
|
4890
4891
|
}>;
|
|
4891
4892
|
declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
4892
4893
|
meta: z.ZodTypeAny;
|
|
4893
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
4894
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
4894
4895
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
4895
4896
|
data: z.ZodObject<{
|
|
4896
4897
|
address: z.ZodString;
|
|
@@ -5047,7 +5048,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5047
5048
|
authority: z.ZodNullable<z.ZodString>;
|
|
5048
5049
|
} | {
|
|
5049
5050
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5050
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5051
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5051
5052
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5052
5053
|
data: z.ZodObject<{
|
|
5053
5054
|
address: z.ZodString;
|
|
@@ -5247,7 +5248,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5247
5248
|
leverage: number;
|
|
5248
5249
|
openedAtSlot: bigint;
|
|
5249
5250
|
};
|
|
5250
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5251
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5251
5252
|
meta?: any;
|
|
5252
5253
|
} | {
|
|
5253
5254
|
authority: string | null;
|
|
@@ -5294,7 +5295,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5294
5295
|
leverage: number;
|
|
5295
5296
|
openedAtSlot: bigint;
|
|
5296
5297
|
};
|
|
5297
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5298
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5298
5299
|
meta?: any;
|
|
5299
5300
|
}, {
|
|
5300
5301
|
authority: string | null;
|
|
@@ -5341,7 +5342,7 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5341
5342
|
leverage: number;
|
|
5342
5343
|
openedAtSlot: bigint;
|
|
5343
5344
|
};
|
|
5344
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5345
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5345
5346
|
meta?: any;
|
|
5346
5347
|
} | {
|
|
5347
5348
|
authority: string | null;
|
|
@@ -5388,12 +5389,12 @@ declare const TunaSpotPositionNotification: z.ZodObject<{
|
|
|
5388
5389
|
leverage: number;
|
|
5389
5390
|
openedAtSlot: bigint;
|
|
5390
5391
|
};
|
|
5391
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5392
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5392
5393
|
meta?: any;
|
|
5393
5394
|
}>;
|
|
5394
5395
|
declare const LendingPositionNotification: z.ZodObject<{
|
|
5395
5396
|
meta: z.ZodTypeAny;
|
|
5396
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5397
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5397
5398
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5398
5399
|
data: z.ZodObject<{
|
|
5399
5400
|
address: z.ZodString;
|
|
@@ -5454,7 +5455,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5454
5455
|
authority: z.ZodNullable<z.ZodString>;
|
|
5455
5456
|
} | {
|
|
5456
5457
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5457
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5458
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5458
5459
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5459
5460
|
data: z.ZodObject<{
|
|
5460
5461
|
address: z.ZodString;
|
|
@@ -5532,7 +5533,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5532
5533
|
usd: number;
|
|
5533
5534
|
};
|
|
5534
5535
|
};
|
|
5535
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5536
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5536
5537
|
meta?: any;
|
|
5537
5538
|
} | {
|
|
5538
5539
|
authority: string | null;
|
|
@@ -5553,7 +5554,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5553
5554
|
usd: number;
|
|
5554
5555
|
};
|
|
5555
5556
|
};
|
|
5556
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5557
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5557
5558
|
meta?: any;
|
|
5558
5559
|
}, {
|
|
5559
5560
|
authority: string | null;
|
|
@@ -5574,7 +5575,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5574
5575
|
usd: number;
|
|
5575
5576
|
};
|
|
5576
5577
|
};
|
|
5577
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5578
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5578
5579
|
meta?: any;
|
|
5579
5580
|
} | {
|
|
5580
5581
|
authority: string | null;
|
|
@@ -5595,12 +5596,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
5595
5596
|
usd: number;
|
|
5596
5597
|
};
|
|
5597
5598
|
};
|
|
5598
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5599
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5599
5600
|
meta?: any;
|
|
5600
5601
|
}>;
|
|
5601
5602
|
declare const LimitOrderNotification: z.ZodObject<{
|
|
5602
5603
|
meta: z.ZodTypeAny;
|
|
5603
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5604
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5604
5605
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5605
5606
|
data: z.ZodObject<{
|
|
5606
5607
|
address: z.ZodString;
|
|
@@ -5679,7 +5680,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5679
5680
|
authority: z.ZodNullable<z.ZodString>;
|
|
5680
5681
|
} | {
|
|
5681
5682
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5682
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5683
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5683
5684
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5684
5685
|
data: z.ZodObject<{
|
|
5685
5686
|
address: z.ZodString;
|
|
@@ -5781,7 +5782,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5781
5782
|
openTxSignature: string;
|
|
5782
5783
|
closeTxSignature: string | null;
|
|
5783
5784
|
};
|
|
5784
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5785
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5785
5786
|
meta?: any;
|
|
5786
5787
|
} | {
|
|
5787
5788
|
authority: string | null;
|
|
@@ -5808,7 +5809,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5808
5809
|
openTxSignature: string;
|
|
5809
5810
|
closeTxSignature: string | null;
|
|
5810
5811
|
};
|
|
5811
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5812
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5812
5813
|
meta?: any;
|
|
5813
5814
|
}, {
|
|
5814
5815
|
authority: string | null;
|
|
@@ -5835,7 +5836,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5835
5836
|
openTxSignature: string;
|
|
5836
5837
|
closeTxSignature: string | null;
|
|
5837
5838
|
};
|
|
5838
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5839
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5839
5840
|
meta?: any;
|
|
5840
5841
|
} | {
|
|
5841
5842
|
authority: string | null;
|
|
@@ -5862,12 +5863,12 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
5862
5863
|
openTxSignature: string;
|
|
5863
5864
|
closeTxSignature: string | null;
|
|
5864
5865
|
};
|
|
5865
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
5866
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
5866
5867
|
meta?: any;
|
|
5867
5868
|
}>;
|
|
5868
5869
|
declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
5869
5870
|
meta: z.ZodTypeAny;
|
|
5870
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5871
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5871
5872
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5872
5873
|
data: z.ZodObject<{
|
|
5873
5874
|
id: z.ZodString;
|
|
@@ -5982,7 +5983,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
5982
5983
|
authority: z.ZodNullable<z.ZodString>;
|
|
5983
5984
|
} | {
|
|
5984
5985
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
5985
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
5986
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
5986
5987
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
5987
5988
|
data: z.ZodObject<{
|
|
5988
5989
|
id: z.ZodString;
|
|
@@ -6128,7 +6129,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6128
6129
|
slot: bigint;
|
|
6129
6130
|
ts: Date;
|
|
6130
6131
|
};
|
|
6131
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6132
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6132
6133
|
meta?: any;
|
|
6133
6134
|
} | {
|
|
6134
6135
|
authority: string | null;
|
|
@@ -6163,7 +6164,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6163
6164
|
slot: bigint;
|
|
6164
6165
|
ts: Date;
|
|
6165
6166
|
};
|
|
6166
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6167
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6167
6168
|
meta?: any;
|
|
6168
6169
|
}, {
|
|
6169
6170
|
authority: string | null;
|
|
@@ -6198,7 +6199,7 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6198
6199
|
slot: bigint;
|
|
6199
6200
|
ts: Date;
|
|
6200
6201
|
};
|
|
6201
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6202
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6202
6203
|
meta?: any;
|
|
6203
6204
|
} | {
|
|
6204
6205
|
authority: string | null;
|
|
@@ -6233,12 +6234,12 @@ declare const TradeHistoryEntryNotification: z.ZodObject<{
|
|
|
6233
6234
|
slot: bigint;
|
|
6234
6235
|
ts: Date;
|
|
6235
6236
|
};
|
|
6236
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6237
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6237
6238
|
meta?: any;
|
|
6238
6239
|
}>;
|
|
6239
6240
|
declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
6240
6241
|
meta: z.ZodTypeAny;
|
|
6241
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6242
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6242
6243
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6243
6244
|
data: z.ZodObject<{
|
|
6244
6245
|
id: z.ZodString;
|
|
@@ -6362,7 +6363,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6362
6363
|
authority: z.ZodNullable<z.ZodString>;
|
|
6363
6364
|
} | {
|
|
6364
6365
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
6365
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6366
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6366
6367
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6367
6368
|
data: z.ZodObject<{
|
|
6368
6369
|
id: z.ZodString;
|
|
@@ -6520,7 +6521,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6520
6521
|
usd: number;
|
|
6521
6522
|
} | null;
|
|
6522
6523
|
};
|
|
6523
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6524
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6524
6525
|
meta?: any;
|
|
6525
6526
|
} | {
|
|
6526
6527
|
authority: string | null;
|
|
@@ -6558,7 +6559,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6558
6559
|
usd: number;
|
|
6559
6560
|
} | null;
|
|
6560
6561
|
};
|
|
6561
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6562
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6562
6563
|
meta?: any;
|
|
6563
6564
|
}, {
|
|
6564
6565
|
authority: string | null;
|
|
@@ -6596,7 +6597,7 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6596
6597
|
usd: number;
|
|
6597
6598
|
} | null;
|
|
6598
6599
|
};
|
|
6599
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6600
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6600
6601
|
meta?: any;
|
|
6601
6602
|
} | {
|
|
6602
6603
|
authority: string | null;
|
|
@@ -6634,12 +6635,12 @@ declare const OrderHistoryEntryNotification: z.ZodObject<{
|
|
|
6634
6635
|
usd: number;
|
|
6635
6636
|
} | null;
|
|
6636
6637
|
};
|
|
6637
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
6638
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
6638
6639
|
meta?: any;
|
|
6639
6640
|
}>;
|
|
6640
6641
|
declare const StakingPositionNotification: z.ZodObject<{
|
|
6641
6642
|
meta: z.ZodTypeAny;
|
|
6642
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6643
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6643
6644
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6644
6645
|
data: z.ZodObject<{
|
|
6645
6646
|
address: z.ZodString;
|
|
@@ -6816,7 +6817,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
6816
6817
|
authority: z.ZodNullable<z.ZodString>;
|
|
6817
6818
|
} | {
|
|
6818
6819
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
6819
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
6820
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
6820
6821
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
6821
6822
|
data: z.ZodObject<{
|
|
6822
6823
|
address: z.ZodString;
|
|
@@ -7032,7 +7033,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7032
7033
|
lastUnstakedAt: Date | null;
|
|
7033
7034
|
withdrawAvailableAt: Date | null;
|
|
7034
7035
|
};
|
|
7035
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
7036
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
7036
7037
|
meta?: any;
|
|
7037
7038
|
} | {
|
|
7038
7039
|
authority: string | null;
|
|
@@ -7075,7 +7076,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7075
7076
|
lastUnstakedAt: Date | null;
|
|
7076
7077
|
withdrawAvailableAt: Date | null;
|
|
7077
7078
|
};
|
|
7078
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
7079
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
7079
7080
|
meta?: any;
|
|
7080
7081
|
}, {
|
|
7081
7082
|
authority: string | null;
|
|
@@ -7118,7 +7119,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7118
7119
|
lastUnstakedAt: Date | null;
|
|
7119
7120
|
withdrawAvailableAt: Date | null;
|
|
7120
7121
|
};
|
|
7121
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
7122
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
7122
7123
|
meta?: any;
|
|
7123
7124
|
} | {
|
|
7124
7125
|
authority: string | null;
|
|
@@ -7161,12 +7162,12 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
7161
7162
|
lastUnstakedAt: Date | null;
|
|
7162
7163
|
withdrawAvailableAt: Date | null;
|
|
7163
7164
|
};
|
|
7164
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
7165
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
7165
7166
|
meta?: any;
|
|
7166
7167
|
}>;
|
|
7167
7168
|
declare const StateSnapshotNotification: z.ZodObject<{
|
|
7168
7169
|
meta: z.ZodTypeAny;
|
|
7169
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
7170
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
7170
7171
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
7171
7172
|
data: z.ZodObject<{
|
|
7172
7173
|
slot: z.ZodBigInt;
|
|
@@ -8093,7 +8094,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
8093
8094
|
authority: z.ZodNullable<z.ZodString>;
|
|
8094
8095
|
} | {
|
|
8095
8096
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
8096
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry")[]]>;
|
|
8097
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot")[]]>;
|
|
8097
8098
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
8098
8099
|
data: z.ZodObject<{
|
|
8099
8100
|
slot: z.ZodBigInt;
|
|
@@ -9181,7 +9182,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9181
9182
|
closeTxSignature: string | null;
|
|
9182
9183
|
}[] | undefined;
|
|
9183
9184
|
};
|
|
9184
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
9185
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
9185
9186
|
meta?: any;
|
|
9186
9187
|
} | {
|
|
9187
9188
|
authority: string | null;
|
|
@@ -9346,7 +9347,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9346
9347
|
closeTxSignature: string | null;
|
|
9347
9348
|
}[] | undefined;
|
|
9348
9349
|
};
|
|
9349
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
9350
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
9350
9351
|
meta?: any;
|
|
9351
9352
|
}, {
|
|
9352
9353
|
authority: string | null;
|
|
@@ -9511,7 +9512,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9511
9512
|
closeTxSignature: string | null;
|
|
9512
9513
|
}[] | undefined;
|
|
9513
9514
|
};
|
|
9514
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
9515
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
9515
9516
|
meta?: any;
|
|
9516
9517
|
} | {
|
|
9517
9518
|
authority: string | null;
|
|
@@ -9676,7 +9677,7 @@ declare const StateSnapshotNotification: z.ZodObject<{
|
|
|
9676
9677
|
closeTxSignature: string | null;
|
|
9677
9678
|
}[] | undefined;
|
|
9678
9679
|
};
|
|
9679
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry";
|
|
9680
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "tuna_spot_position" | "lending_position" | "staking_position" | "fusion_limit_order" | "trade_history_entry" | "order_history_entry" | "state_snapshot";
|
|
9680
9681
|
meta?: any;
|
|
9681
9682
|
}>;
|
|
9682
9683
|
|
package/dist/index.js
CHANGED
|
@@ -151,7 +151,8 @@ var NotificationEntity = {
|
|
|
151
151
|
STAKING_POSITION: "staking_position",
|
|
152
152
|
FUSION_LIMIT_ORDER: "fusion_limit_order",
|
|
153
153
|
TRADE_HISTORY_ENTRY: "trade_history_entry",
|
|
154
|
-
ORDER_HISTORY_ENTRY: "order_history_entry"
|
|
154
|
+
ORDER_HISTORY_ENTRY: "order_history_entry",
|
|
155
|
+
STATE_SNAPSHOT: "state_snapshot"
|
|
155
156
|
};
|
|
156
157
|
var NotificationAction = {
|
|
157
158
|
CREATE: "create",
|
package/dist/index.mjs
CHANGED
|
@@ -116,7 +116,8 @@ var NotificationEntity = {
|
|
|
116
116
|
STAKING_POSITION: "staking_position",
|
|
117
117
|
FUSION_LIMIT_ORDER: "fusion_limit_order",
|
|
118
118
|
TRADE_HISTORY_ENTRY: "trade_history_entry",
|
|
119
|
-
ORDER_HISTORY_ENTRY: "order_history_entry"
|
|
119
|
+
ORDER_HISTORY_ENTRY: "order_history_entry",
|
|
120
|
+
STATE_SNAPSHOT: "state_snapshot"
|
|
120
121
|
};
|
|
121
122
|
var NotificationAction = {
|
|
122
123
|
CREATE: "create",
|