@crypticdot/defituna-api 1.1.39 → 1.1.41
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 +45 -44
- package/dist/index.d.ts +45 -44
- package/dist/index.js +5 -4
- package/dist/index.mjs +5 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ declare const NotificationEntity: {
|
|
|
6
6
|
readonly ORDER_BOOK: "order_book";
|
|
7
7
|
readonly TUNA_POSITION: "tuna_position";
|
|
8
8
|
readonly LENDING_POSITION: "lending_position";
|
|
9
|
+
readonly STAKING_POSITION: "staking_position";
|
|
9
10
|
readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
|
|
10
11
|
};
|
|
11
12
|
declare const NotificationAction: {
|
|
@@ -46,14 +47,14 @@ declare const WalletSubscriptionTopic: {
|
|
|
46
47
|
readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
|
|
47
48
|
readonly STAKING_POSITION: "staking_position";
|
|
48
49
|
};
|
|
49
|
-
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
50
|
+
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
50
51
|
declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
51
52
|
declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
52
53
|
declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
|
|
53
54
|
declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
|
|
54
55
|
declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards")[]]>;
|
|
55
56
|
declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
|
|
56
|
-
declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("
|
|
57
|
+
declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "lending_positions" | "fusion_limit_orders")[]]>;
|
|
57
58
|
declare const Mint$1: z.ZodObject<{
|
|
58
59
|
symbol: z.ZodString;
|
|
59
60
|
mint: z.ZodString;
|
|
@@ -1492,7 +1493,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
|
|
|
1492
1493
|
}>;
|
|
1493
1494
|
declare const PoolSwapNotification: z.ZodObject<{
|
|
1494
1495
|
meta: z.ZodTypeAny;
|
|
1495
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1496
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1496
1497
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1497
1498
|
data: z.ZodObject<{
|
|
1498
1499
|
id: z.ZodString;
|
|
@@ -1523,7 +1524,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1523
1524
|
authority: z.ZodNullable<z.ZodString>;
|
|
1524
1525
|
} | {
|
|
1525
1526
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1526
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1527
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1527
1528
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1528
1529
|
data: z.ZodObject<{
|
|
1529
1530
|
id: z.ZodString;
|
|
@@ -1556,7 +1557,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1556
1557
|
authority: string | null;
|
|
1557
1558
|
id: string;
|
|
1558
1559
|
action: "create" | "update";
|
|
1559
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1560
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1560
1561
|
data: {
|
|
1561
1562
|
time: Date;
|
|
1562
1563
|
pool: string;
|
|
@@ -1571,7 +1572,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1571
1572
|
authority: string | null;
|
|
1572
1573
|
id: string;
|
|
1573
1574
|
action: "create" | "update";
|
|
1574
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1575
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1575
1576
|
data: {
|
|
1576
1577
|
time: Date;
|
|
1577
1578
|
pool: string;
|
|
@@ -1586,7 +1587,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1586
1587
|
authority: string | null;
|
|
1587
1588
|
id: string;
|
|
1588
1589
|
action: "create" | "update";
|
|
1589
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1590
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1590
1591
|
data: {
|
|
1591
1592
|
time: Date;
|
|
1592
1593
|
pool: string;
|
|
@@ -1601,7 +1602,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1601
1602
|
authority: string | null;
|
|
1602
1603
|
id: string;
|
|
1603
1604
|
action: "create" | "update";
|
|
1604
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1605
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1605
1606
|
data: {
|
|
1606
1607
|
time: Date;
|
|
1607
1608
|
pool: string;
|
|
@@ -1615,7 +1616,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1615
1616
|
}>;
|
|
1616
1617
|
declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
1617
1618
|
meta: z.ZodTypeAny;
|
|
1618
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1619
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1619
1620
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1620
1621
|
data: z.ZodObject<{
|
|
1621
1622
|
pool: z.ZodString;
|
|
@@ -1637,7 +1638,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1637
1638
|
authority: z.ZodNullable<z.ZodString>;
|
|
1638
1639
|
} | {
|
|
1639
1640
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1640
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1641
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1641
1642
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1642
1643
|
data: z.ZodObject<{
|
|
1643
1644
|
pool: z.ZodString;
|
|
@@ -1661,7 +1662,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1661
1662
|
authority: string | null;
|
|
1662
1663
|
id: string;
|
|
1663
1664
|
action: "create" | "update";
|
|
1664
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1665
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1665
1666
|
data: {
|
|
1666
1667
|
price: number;
|
|
1667
1668
|
time: Date;
|
|
@@ -1673,7 +1674,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1673
1674
|
authority: string | null;
|
|
1674
1675
|
id: string;
|
|
1675
1676
|
action: "create" | "update";
|
|
1676
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1677
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1677
1678
|
data: {
|
|
1678
1679
|
price: number;
|
|
1679
1680
|
time: Date;
|
|
@@ -1685,7 +1686,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1685
1686
|
authority: string | null;
|
|
1686
1687
|
id: string;
|
|
1687
1688
|
action: "create" | "update";
|
|
1688
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1689
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1689
1690
|
data: {
|
|
1690
1691
|
price: number;
|
|
1691
1692
|
time: Date;
|
|
@@ -1697,7 +1698,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1697
1698
|
authority: string | null;
|
|
1698
1699
|
id: string;
|
|
1699
1700
|
action: "create" | "update";
|
|
1700
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1701
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1701
1702
|
data: {
|
|
1702
1703
|
price: number;
|
|
1703
1704
|
time: Date;
|
|
@@ -1720,7 +1721,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1720
1721
|
priceStep: number;
|
|
1721
1722
|
inverted: boolean;
|
|
1722
1723
|
}>;
|
|
1723
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1724
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1724
1725
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1725
1726
|
data: z.ZodObject<{
|
|
1726
1727
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1791,7 +1792,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1791
1792
|
authority: z.ZodNullable<z.ZodString>;
|
|
1792
1793
|
} | {
|
|
1793
1794
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1794
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1795
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1795
1796
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1796
1797
|
data: z.ZodObject<{
|
|
1797
1798
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1864,7 +1865,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1864
1865
|
authority: string | null;
|
|
1865
1866
|
id: string;
|
|
1866
1867
|
action: "create" | "update";
|
|
1867
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1868
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1868
1869
|
data: {
|
|
1869
1870
|
entries: {
|
|
1870
1871
|
price: number;
|
|
@@ -1889,7 +1890,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1889
1890
|
authority: string | null;
|
|
1890
1891
|
id: string;
|
|
1891
1892
|
action: "create" | "update";
|
|
1892
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1893
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1893
1894
|
data: {
|
|
1894
1895
|
entries: {
|
|
1895
1896
|
price: number;
|
|
@@ -1914,7 +1915,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1914
1915
|
authority: string | null;
|
|
1915
1916
|
id: string;
|
|
1916
1917
|
action: "create" | "update";
|
|
1917
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1918
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1918
1919
|
data: {
|
|
1919
1920
|
entries: {
|
|
1920
1921
|
price: number;
|
|
@@ -1939,7 +1940,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1939
1940
|
authority: string | null;
|
|
1940
1941
|
id: string;
|
|
1941
1942
|
action: "create" | "update";
|
|
1942
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1943
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1943
1944
|
data: {
|
|
1944
1945
|
entries: {
|
|
1945
1946
|
price: number;
|
|
@@ -1963,7 +1964,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1963
1964
|
}>;
|
|
1964
1965
|
declare const TunaPositionNotification: z.ZodObject<{
|
|
1965
1966
|
meta: z.ZodTypeAny;
|
|
1966
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1967
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1967
1968
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1968
1969
|
data: z.ZodObject<{
|
|
1969
1970
|
address: z.ZodString;
|
|
@@ -2336,7 +2337,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2336
2337
|
authority: z.ZodNullable<z.ZodString>;
|
|
2337
2338
|
} | {
|
|
2338
2339
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
2339
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
2340
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
2340
2341
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2341
2342
|
data: z.ZodObject<{
|
|
2342
2343
|
address: z.ZodString;
|
|
@@ -2711,7 +2712,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2711
2712
|
authority: string | null;
|
|
2712
2713
|
id: string;
|
|
2713
2714
|
action: "create" | "update";
|
|
2714
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
2715
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2715
2716
|
data: {
|
|
2716
2717
|
address: string;
|
|
2717
2718
|
liquidity: bigint;
|
|
@@ -2806,7 +2807,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2806
2807
|
authority: string | null;
|
|
2807
2808
|
id: string;
|
|
2808
2809
|
action: "create" | "update";
|
|
2809
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
2810
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2810
2811
|
data: {
|
|
2811
2812
|
address: string;
|
|
2812
2813
|
liquidity: bigint;
|
|
@@ -2901,7 +2902,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2901
2902
|
authority: string | null;
|
|
2902
2903
|
id: string;
|
|
2903
2904
|
action: "create" | "update";
|
|
2904
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
2905
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2905
2906
|
data: {
|
|
2906
2907
|
address: string;
|
|
2907
2908
|
liquidity: bigint;
|
|
@@ -2996,7 +2997,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2996
2997
|
authority: string | null;
|
|
2997
2998
|
id: string;
|
|
2998
2999
|
action: "create" | "update";
|
|
2999
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3000
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3000
3001
|
data: {
|
|
3001
3002
|
address: string;
|
|
3002
3003
|
liquidity: bigint;
|
|
@@ -3090,7 +3091,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3090
3091
|
}>;
|
|
3091
3092
|
declare const LendingPositionNotification: z.ZodObject<{
|
|
3092
3093
|
meta: z.ZodTypeAny;
|
|
3093
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3094
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3094
3095
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3095
3096
|
data: z.ZodObject<{
|
|
3096
3097
|
address: z.ZodString;
|
|
@@ -3151,7 +3152,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3151
3152
|
authority: z.ZodNullable<z.ZodString>;
|
|
3152
3153
|
} | {
|
|
3153
3154
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3154
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3155
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3155
3156
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3156
3157
|
data: z.ZodObject<{
|
|
3157
3158
|
address: z.ZodString;
|
|
@@ -3214,7 +3215,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3214
3215
|
authority: string | null;
|
|
3215
3216
|
id: string;
|
|
3216
3217
|
action: "create" | "update";
|
|
3217
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3218
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3218
3219
|
data: {
|
|
3219
3220
|
mint: string;
|
|
3220
3221
|
address: string;
|
|
@@ -3235,7 +3236,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3235
3236
|
authority: string | null;
|
|
3236
3237
|
id: string;
|
|
3237
3238
|
action: "create" | "update";
|
|
3238
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3239
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3239
3240
|
data: {
|
|
3240
3241
|
mint: string;
|
|
3241
3242
|
address: string;
|
|
@@ -3256,7 +3257,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3256
3257
|
authority: string | null;
|
|
3257
3258
|
id: string;
|
|
3258
3259
|
action: "create" | "update";
|
|
3259
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3260
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3260
3261
|
data: {
|
|
3261
3262
|
mint: string;
|
|
3262
3263
|
address: string;
|
|
@@ -3277,7 +3278,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3277
3278
|
authority: string | null;
|
|
3278
3279
|
id: string;
|
|
3279
3280
|
action: "create" | "update";
|
|
3280
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3281
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3281
3282
|
data: {
|
|
3282
3283
|
mint: string;
|
|
3283
3284
|
address: string;
|
|
@@ -3297,7 +3298,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3297
3298
|
}>;
|
|
3298
3299
|
declare const LimitOrderNotification: z.ZodObject<{
|
|
3299
3300
|
meta: z.ZodTypeAny;
|
|
3300
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3301
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3301
3302
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3302
3303
|
data: z.ZodObject<{
|
|
3303
3304
|
address: z.ZodString;
|
|
@@ -3376,7 +3377,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3376
3377
|
authority: z.ZodNullable<z.ZodString>;
|
|
3377
3378
|
} | {
|
|
3378
3379
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3379
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3380
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3380
3381
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3381
3382
|
data: z.ZodObject<{
|
|
3382
3383
|
address: z.ZodString;
|
|
@@ -3457,7 +3458,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3457
3458
|
authority: string | null;
|
|
3458
3459
|
id: string;
|
|
3459
3460
|
action: "create" | "update";
|
|
3460
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3461
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3461
3462
|
data: {
|
|
3462
3463
|
mint: string;
|
|
3463
3464
|
address: string;
|
|
@@ -3484,7 +3485,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3484
3485
|
authority: string | null;
|
|
3485
3486
|
id: string;
|
|
3486
3487
|
action: "create" | "update";
|
|
3487
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3488
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3488
3489
|
data: {
|
|
3489
3490
|
mint: string;
|
|
3490
3491
|
address: string;
|
|
@@ -3511,7 +3512,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3511
3512
|
authority: string | null;
|
|
3512
3513
|
id: string;
|
|
3513
3514
|
action: "create" | "update";
|
|
3514
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3515
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3515
3516
|
data: {
|
|
3516
3517
|
mint: string;
|
|
3517
3518
|
address: string;
|
|
@@ -3538,7 +3539,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3538
3539
|
authority: string | null;
|
|
3539
3540
|
id: string;
|
|
3540
3541
|
action: "create" | "update";
|
|
3541
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3542
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3542
3543
|
data: {
|
|
3543
3544
|
mint: string;
|
|
3544
3545
|
address: string;
|
|
@@ -3564,7 +3565,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3564
3565
|
}>;
|
|
3565
3566
|
declare const StakingPositionNotification: z.ZodObject<{
|
|
3566
3567
|
meta: z.ZodTypeAny;
|
|
3567
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3568
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3568
3569
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3569
3570
|
data: z.ZodObject<{
|
|
3570
3571
|
address: z.ZodString;
|
|
@@ -3738,7 +3739,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
3738
3739
|
authority: z.ZodNullable<z.ZodString>;
|
|
3739
3740
|
} | {
|
|
3740
3741
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3741
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3742
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3742
3743
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3743
3744
|
data: z.ZodObject<{
|
|
3744
3745
|
address: z.ZodString;
|
|
@@ -3914,7 +3915,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
3914
3915
|
authority: string | null;
|
|
3915
3916
|
id: string;
|
|
3916
3917
|
action: "create" | "update";
|
|
3917
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3918
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3918
3919
|
data: {
|
|
3919
3920
|
address: string;
|
|
3920
3921
|
owner: string;
|
|
@@ -3956,7 +3957,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
3956
3957
|
authority: string | null;
|
|
3957
3958
|
id: string;
|
|
3958
3959
|
action: "create" | "update";
|
|
3959
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3960
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3960
3961
|
data: {
|
|
3961
3962
|
address: string;
|
|
3962
3963
|
owner: string;
|
|
@@ -3998,7 +3999,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
3998
3999
|
authority: string | null;
|
|
3999
4000
|
id: string;
|
|
4000
4001
|
action: "create" | "update";
|
|
4001
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
4002
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4002
4003
|
data: {
|
|
4003
4004
|
address: string;
|
|
4004
4005
|
owner: string;
|
|
@@ -4040,7 +4041,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4040
4041
|
authority: string | null;
|
|
4041
4042
|
id: string;
|
|
4042
4043
|
action: "create" | "update";
|
|
4043
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
4044
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4044
4045
|
data: {
|
|
4045
4046
|
address: string;
|
|
4046
4047
|
owner: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare const NotificationEntity: {
|
|
|
6
6
|
readonly ORDER_BOOK: "order_book";
|
|
7
7
|
readonly TUNA_POSITION: "tuna_position";
|
|
8
8
|
readonly LENDING_POSITION: "lending_position";
|
|
9
|
+
readonly STAKING_POSITION: "staking_position";
|
|
9
10
|
readonly FUSION_LIMIT_ORDER: "fusion_limit_order";
|
|
10
11
|
};
|
|
11
12
|
declare const NotificationAction: {
|
|
@@ -46,14 +47,14 @@ declare const WalletSubscriptionTopic: {
|
|
|
46
47
|
readonly FUSION_LIMIT_ORDERS: "fusion_limit_orders";
|
|
47
48
|
readonly STAKING_POSITION: "staking_position";
|
|
48
49
|
};
|
|
49
|
-
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
50
|
+
declare const NotificationEntitySchema: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
50
51
|
declare const NotificationActionSchema: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
51
52
|
declare const PoolProviderSchema: z.ZodEnum<["orca", ...("orca" | "fusion")[]]>;
|
|
52
53
|
declare const TunaPositionStateSchema: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
|
|
53
54
|
declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
|
|
54
55
|
declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards")[]]>;
|
|
55
56
|
declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
|
|
56
|
-
declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("
|
|
57
|
+
declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "lending_positions" | "fusion_limit_orders")[]]>;
|
|
57
58
|
declare const Mint$1: z.ZodObject<{
|
|
58
59
|
symbol: z.ZodString;
|
|
59
60
|
mint: z.ZodString;
|
|
@@ -1492,7 +1493,7 @@ declare const OrderBookNotificationMeta: z.ZodObject<{
|
|
|
1492
1493
|
}>;
|
|
1493
1494
|
declare const PoolSwapNotification: z.ZodObject<{
|
|
1494
1495
|
meta: z.ZodTypeAny;
|
|
1495
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1496
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1496
1497
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1497
1498
|
data: z.ZodObject<{
|
|
1498
1499
|
id: z.ZodString;
|
|
@@ -1523,7 +1524,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1523
1524
|
authority: z.ZodNullable<z.ZodString>;
|
|
1524
1525
|
} | {
|
|
1525
1526
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1526
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1527
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1527
1528
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1528
1529
|
data: z.ZodObject<{
|
|
1529
1530
|
id: z.ZodString;
|
|
@@ -1556,7 +1557,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1556
1557
|
authority: string | null;
|
|
1557
1558
|
id: string;
|
|
1558
1559
|
action: "create" | "update";
|
|
1559
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1560
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1560
1561
|
data: {
|
|
1561
1562
|
time: Date;
|
|
1562
1563
|
pool: string;
|
|
@@ -1571,7 +1572,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1571
1572
|
authority: string | null;
|
|
1572
1573
|
id: string;
|
|
1573
1574
|
action: "create" | "update";
|
|
1574
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1575
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1575
1576
|
data: {
|
|
1576
1577
|
time: Date;
|
|
1577
1578
|
pool: string;
|
|
@@ -1586,7 +1587,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1586
1587
|
authority: string | null;
|
|
1587
1588
|
id: string;
|
|
1588
1589
|
action: "create" | "update";
|
|
1589
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1590
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1590
1591
|
data: {
|
|
1591
1592
|
time: Date;
|
|
1592
1593
|
pool: string;
|
|
@@ -1601,7 +1602,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1601
1602
|
authority: string | null;
|
|
1602
1603
|
id: string;
|
|
1603
1604
|
action: "create" | "update";
|
|
1604
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1605
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1605
1606
|
data: {
|
|
1606
1607
|
time: Date;
|
|
1607
1608
|
pool: string;
|
|
@@ -1615,7 +1616,7 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1615
1616
|
}>;
|
|
1616
1617
|
declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
1617
1618
|
meta: z.ZodTypeAny;
|
|
1618
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1619
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1619
1620
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1620
1621
|
data: z.ZodObject<{
|
|
1621
1622
|
pool: z.ZodString;
|
|
@@ -1637,7 +1638,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1637
1638
|
authority: z.ZodNullable<z.ZodString>;
|
|
1638
1639
|
} | {
|
|
1639
1640
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1640
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1641
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1641
1642
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1642
1643
|
data: z.ZodObject<{
|
|
1643
1644
|
pool: z.ZodString;
|
|
@@ -1661,7 +1662,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1661
1662
|
authority: string | null;
|
|
1662
1663
|
id: string;
|
|
1663
1664
|
action: "create" | "update";
|
|
1664
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1665
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1665
1666
|
data: {
|
|
1666
1667
|
price: number;
|
|
1667
1668
|
time: Date;
|
|
@@ -1673,7 +1674,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1673
1674
|
authority: string | null;
|
|
1674
1675
|
id: string;
|
|
1675
1676
|
action: "create" | "update";
|
|
1676
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1677
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1677
1678
|
data: {
|
|
1678
1679
|
price: number;
|
|
1679
1680
|
time: Date;
|
|
@@ -1685,7 +1686,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1685
1686
|
authority: string | null;
|
|
1686
1687
|
id: string;
|
|
1687
1688
|
action: "create" | "update";
|
|
1688
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1689
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1689
1690
|
data: {
|
|
1690
1691
|
price: number;
|
|
1691
1692
|
time: Date;
|
|
@@ -1697,7 +1698,7 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1697
1698
|
authority: string | null;
|
|
1698
1699
|
id: string;
|
|
1699
1700
|
action: "create" | "update";
|
|
1700
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1701
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1701
1702
|
data: {
|
|
1702
1703
|
price: number;
|
|
1703
1704
|
time: Date;
|
|
@@ -1720,7 +1721,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1720
1721
|
priceStep: number;
|
|
1721
1722
|
inverted: boolean;
|
|
1722
1723
|
}>;
|
|
1723
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1724
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1724
1725
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1725
1726
|
data: z.ZodObject<{
|
|
1726
1727
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1791,7 +1792,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1791
1792
|
authority: z.ZodNullable<z.ZodString>;
|
|
1792
1793
|
} | {
|
|
1793
1794
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
1794
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1795
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1795
1796
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1796
1797
|
data: z.ZodObject<{
|
|
1797
1798
|
entries: z.ZodArray<z.ZodObject<{
|
|
@@ -1864,7 +1865,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1864
1865
|
authority: string | null;
|
|
1865
1866
|
id: string;
|
|
1866
1867
|
action: "create" | "update";
|
|
1867
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1868
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1868
1869
|
data: {
|
|
1869
1870
|
entries: {
|
|
1870
1871
|
price: number;
|
|
@@ -1889,7 +1890,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1889
1890
|
authority: string | null;
|
|
1890
1891
|
id: string;
|
|
1891
1892
|
action: "create" | "update";
|
|
1892
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1893
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1893
1894
|
data: {
|
|
1894
1895
|
entries: {
|
|
1895
1896
|
price: number;
|
|
@@ -1914,7 +1915,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1914
1915
|
authority: string | null;
|
|
1915
1916
|
id: string;
|
|
1916
1917
|
action: "create" | "update";
|
|
1917
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1918
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1918
1919
|
data: {
|
|
1919
1920
|
entries: {
|
|
1920
1921
|
price: number;
|
|
@@ -1939,7 +1940,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1939
1940
|
authority: string | null;
|
|
1940
1941
|
id: string;
|
|
1941
1942
|
action: "create" | "update";
|
|
1942
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
1943
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1943
1944
|
data: {
|
|
1944
1945
|
entries: {
|
|
1945
1946
|
price: number;
|
|
@@ -1963,7 +1964,7 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
1963
1964
|
}>;
|
|
1964
1965
|
declare const TunaPositionNotification: z.ZodObject<{
|
|
1965
1966
|
meta: z.ZodTypeAny;
|
|
1966
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
1967
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
1967
1968
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
1968
1969
|
data: z.ZodObject<{
|
|
1969
1970
|
address: z.ZodString;
|
|
@@ -2336,7 +2337,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2336
2337
|
authority: z.ZodNullable<z.ZodString>;
|
|
2337
2338
|
} | {
|
|
2338
2339
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
2339
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
2340
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
2340
2341
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
2341
2342
|
data: z.ZodObject<{
|
|
2342
2343
|
address: z.ZodString;
|
|
@@ -2711,7 +2712,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2711
2712
|
authority: string | null;
|
|
2712
2713
|
id: string;
|
|
2713
2714
|
action: "create" | "update";
|
|
2714
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
2715
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2715
2716
|
data: {
|
|
2716
2717
|
address: string;
|
|
2717
2718
|
liquidity: bigint;
|
|
@@ -2806,7 +2807,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2806
2807
|
authority: string | null;
|
|
2807
2808
|
id: string;
|
|
2808
2809
|
action: "create" | "update";
|
|
2809
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
2810
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2810
2811
|
data: {
|
|
2811
2812
|
address: string;
|
|
2812
2813
|
liquidity: bigint;
|
|
@@ -2901,7 +2902,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2901
2902
|
authority: string | null;
|
|
2902
2903
|
id: string;
|
|
2903
2904
|
action: "create" | "update";
|
|
2904
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
2905
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2905
2906
|
data: {
|
|
2906
2907
|
address: string;
|
|
2907
2908
|
liquidity: bigint;
|
|
@@ -2996,7 +2997,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2996
2997
|
authority: string | null;
|
|
2997
2998
|
id: string;
|
|
2998
2999
|
action: "create" | "update";
|
|
2999
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3000
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3000
3001
|
data: {
|
|
3001
3002
|
address: string;
|
|
3002
3003
|
liquidity: bigint;
|
|
@@ -3090,7 +3091,7 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3090
3091
|
}>;
|
|
3091
3092
|
declare const LendingPositionNotification: z.ZodObject<{
|
|
3092
3093
|
meta: z.ZodTypeAny;
|
|
3093
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3094
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3094
3095
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3095
3096
|
data: z.ZodObject<{
|
|
3096
3097
|
address: z.ZodString;
|
|
@@ -3151,7 +3152,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3151
3152
|
authority: z.ZodNullable<z.ZodString>;
|
|
3152
3153
|
} | {
|
|
3153
3154
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3154
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3155
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3155
3156
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3156
3157
|
data: z.ZodObject<{
|
|
3157
3158
|
address: z.ZodString;
|
|
@@ -3214,7 +3215,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3214
3215
|
authority: string | null;
|
|
3215
3216
|
id: string;
|
|
3216
3217
|
action: "create" | "update";
|
|
3217
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3218
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3218
3219
|
data: {
|
|
3219
3220
|
mint: string;
|
|
3220
3221
|
address: string;
|
|
@@ -3235,7 +3236,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3235
3236
|
authority: string | null;
|
|
3236
3237
|
id: string;
|
|
3237
3238
|
action: "create" | "update";
|
|
3238
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3239
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3239
3240
|
data: {
|
|
3240
3241
|
mint: string;
|
|
3241
3242
|
address: string;
|
|
@@ -3256,7 +3257,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3256
3257
|
authority: string | null;
|
|
3257
3258
|
id: string;
|
|
3258
3259
|
action: "create" | "update";
|
|
3259
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3260
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3260
3261
|
data: {
|
|
3261
3262
|
mint: string;
|
|
3262
3263
|
address: string;
|
|
@@ -3277,7 +3278,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3277
3278
|
authority: string | null;
|
|
3278
3279
|
id: string;
|
|
3279
3280
|
action: "create" | "update";
|
|
3280
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3281
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3281
3282
|
data: {
|
|
3282
3283
|
mint: string;
|
|
3283
3284
|
address: string;
|
|
@@ -3297,7 +3298,7 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3297
3298
|
}>;
|
|
3298
3299
|
declare const LimitOrderNotification: z.ZodObject<{
|
|
3299
3300
|
meta: z.ZodTypeAny;
|
|
3300
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3301
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3301
3302
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3302
3303
|
data: z.ZodObject<{
|
|
3303
3304
|
address: z.ZodString;
|
|
@@ -3376,7 +3377,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3376
3377
|
authority: z.ZodNullable<z.ZodString>;
|
|
3377
3378
|
} | {
|
|
3378
3379
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3379
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3380
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3380
3381
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3381
3382
|
data: z.ZodObject<{
|
|
3382
3383
|
address: z.ZodString;
|
|
@@ -3457,7 +3458,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3457
3458
|
authority: string | null;
|
|
3458
3459
|
id: string;
|
|
3459
3460
|
action: "create" | "update";
|
|
3460
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3461
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3461
3462
|
data: {
|
|
3462
3463
|
mint: string;
|
|
3463
3464
|
address: string;
|
|
@@ -3484,7 +3485,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3484
3485
|
authority: string | null;
|
|
3485
3486
|
id: string;
|
|
3486
3487
|
action: "create" | "update";
|
|
3487
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3488
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3488
3489
|
data: {
|
|
3489
3490
|
mint: string;
|
|
3490
3491
|
address: string;
|
|
@@ -3511,7 +3512,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3511
3512
|
authority: string | null;
|
|
3512
3513
|
id: string;
|
|
3513
3514
|
action: "create" | "update";
|
|
3514
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3515
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3515
3516
|
data: {
|
|
3516
3517
|
mint: string;
|
|
3517
3518
|
address: string;
|
|
@@ -3538,7 +3539,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3538
3539
|
authority: string | null;
|
|
3539
3540
|
id: string;
|
|
3540
3541
|
action: "create" | "update";
|
|
3541
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3542
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3542
3543
|
data: {
|
|
3543
3544
|
mint: string;
|
|
3544
3545
|
address: string;
|
|
@@ -3564,7 +3565,7 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3564
3565
|
}>;
|
|
3565
3566
|
declare const StakingPositionNotification: z.ZodObject<{
|
|
3566
3567
|
meta: z.ZodTypeAny;
|
|
3567
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3568
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3568
3569
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3569
3570
|
data: z.ZodObject<{
|
|
3570
3571
|
address: z.ZodString;
|
|
@@ -3738,7 +3739,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
3738
3739
|
authority: z.ZodNullable<z.ZodString>;
|
|
3739
3740
|
} | {
|
|
3740
3741
|
meta: z.ZodNullable<z.ZodUndefined>;
|
|
3741
|
-
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
|
|
3742
|
+
entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order")[]]>;
|
|
3742
3743
|
action: z.ZodEnum<["create", ...("create" | "update")[]]>;
|
|
3743
3744
|
data: z.ZodObject<{
|
|
3744
3745
|
address: z.ZodString;
|
|
@@ -3914,7 +3915,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
3914
3915
|
authority: string | null;
|
|
3915
3916
|
id: string;
|
|
3916
3917
|
action: "create" | "update";
|
|
3917
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3918
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3918
3919
|
data: {
|
|
3919
3920
|
address: string;
|
|
3920
3921
|
owner: string;
|
|
@@ -3956,7 +3957,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
3956
3957
|
authority: string | null;
|
|
3957
3958
|
id: string;
|
|
3958
3959
|
action: "create" | "update";
|
|
3959
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
3960
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3960
3961
|
data: {
|
|
3961
3962
|
address: string;
|
|
3962
3963
|
owner: string;
|
|
@@ -3998,7 +3999,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
3998
3999
|
authority: string | null;
|
|
3999
4000
|
id: string;
|
|
4000
4001
|
action: "create" | "update";
|
|
4001
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
4002
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4002
4003
|
data: {
|
|
4003
4004
|
address: string;
|
|
4004
4005
|
owner: string;
|
|
@@ -4040,7 +4041,7 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4040
4041
|
authority: string | null;
|
|
4041
4042
|
id: string;
|
|
4042
4043
|
action: "create" | "update";
|
|
4043
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
|
|
4044
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4044
4045
|
data: {
|
|
4045
4046
|
address: string;
|
|
4046
4047
|
owner: string;
|
package/dist/index.js
CHANGED
|
@@ -113,6 +113,7 @@ var NotificationEntity = {
|
|
|
113
113
|
ORDER_BOOK: "order_book",
|
|
114
114
|
TUNA_POSITION: "tuna_position",
|
|
115
115
|
LENDING_POSITION: "lending_position",
|
|
116
|
+
STAKING_POSITION: "staking_position",
|
|
116
117
|
FUSION_LIMIT_ORDER: "fusion_limit_order"
|
|
117
118
|
};
|
|
118
119
|
var NotificationAction = {
|
|
@@ -393,16 +394,16 @@ var StakingPosition = import_zod.z.object({
|
|
|
393
394
|
unlockRate: import_zod.z.coerce.bigint(),
|
|
394
395
|
unlockEverySeconds: import_zod.z.number(),
|
|
395
396
|
unlockCliffSeconds: import_zod.z.number(),
|
|
396
|
-
lockedAt: import_zod.z.nullable(import_zod.z.date())
|
|
397
|
+
lockedAt: import_zod.z.nullable(import_zod.z.coerce.date())
|
|
397
398
|
}),
|
|
398
|
-
lastUnstakedAt: import_zod.z.nullable(import_zod.z.date()),
|
|
399
|
-
withdrawAvailableAt: import_zod.z.nullable(import_zod.z.date())
|
|
399
|
+
lastUnstakedAt: import_zod.z.nullable(import_zod.z.coerce.date()),
|
|
400
|
+
withdrawAvailableAt: import_zod.z.nullable(import_zod.z.coerce.date())
|
|
400
401
|
});
|
|
401
402
|
var StakingPositionHistoryAction = import_zod.z.object({
|
|
402
403
|
position: import_zod.z.string(),
|
|
403
404
|
action: StakingPositionHistoryActionTypeSchema,
|
|
404
405
|
txSignature: import_zod.z.string(),
|
|
405
|
-
time: import_zod.z.date()
|
|
406
|
+
time: import_zod.z.coerce.date()
|
|
406
407
|
});
|
|
407
408
|
var PoolPriceCandle = import_zod.z.object({
|
|
408
409
|
time: import_zod.z.number(),
|
package/dist/index.mjs
CHANGED
|
@@ -78,6 +78,7 @@ var NotificationEntity = {
|
|
|
78
78
|
ORDER_BOOK: "order_book",
|
|
79
79
|
TUNA_POSITION: "tuna_position",
|
|
80
80
|
LENDING_POSITION: "lending_position",
|
|
81
|
+
STAKING_POSITION: "staking_position",
|
|
81
82
|
FUSION_LIMIT_ORDER: "fusion_limit_order"
|
|
82
83
|
};
|
|
83
84
|
var NotificationAction = {
|
|
@@ -358,16 +359,16 @@ var StakingPosition = z.object({
|
|
|
358
359
|
unlockRate: z.coerce.bigint(),
|
|
359
360
|
unlockEverySeconds: z.number(),
|
|
360
361
|
unlockCliffSeconds: z.number(),
|
|
361
|
-
lockedAt: z.nullable(z.date())
|
|
362
|
+
lockedAt: z.nullable(z.coerce.date())
|
|
362
363
|
}),
|
|
363
|
-
lastUnstakedAt: z.nullable(z.date()),
|
|
364
|
-
withdrawAvailableAt: z.nullable(z.date())
|
|
364
|
+
lastUnstakedAt: z.nullable(z.coerce.date()),
|
|
365
|
+
withdrawAvailableAt: z.nullable(z.coerce.date())
|
|
365
366
|
});
|
|
366
367
|
var StakingPositionHistoryAction = z.object({
|
|
367
368
|
position: z.string(),
|
|
368
369
|
action: StakingPositionHistoryActionTypeSchema,
|
|
369
370
|
txSignature: z.string(),
|
|
370
|
-
time: z.date()
|
|
371
|
+
time: z.coerce.date()
|
|
371
372
|
});
|
|
372
373
|
var PoolPriceCandle = z.object({
|
|
373
374
|
time: z.number(),
|