@crypticdot/defituna-api 1.1.51 → 1.1.53
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 +169 -58
- package/dist/index.d.ts +169 -58
- package/dist/index.js +29 -0
- package/dist/index.mjs +29 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -56,6 +56,13 @@ declare const LimitOrderStateSchema: z.ZodEnum<["open", ...("open" | "partially_
|
|
|
56
56
|
declare const StakingPositionHistoryActionTypeSchema: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards")[]]>;
|
|
57
57
|
declare const PoolSubscriptionTopicSchema: z.ZodEnum<["order_book", ...("order_book" | "pool_prices" | "pool_swaps")[]]>;
|
|
58
58
|
declare const WalletSubscriptionTopicSchema: z.ZodEnum<["tuna_positions", ...("staking_position" | "tuna_positions" | "lending_positions" | "fusion_limit_orders")[]]>;
|
|
59
|
+
declare const PaginationMeta$1: z.ZodObject<{
|
|
60
|
+
total: z.ZodNumber;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
total: number;
|
|
63
|
+
}, {
|
|
64
|
+
total: number;
|
|
65
|
+
}>;
|
|
59
66
|
declare const Mint$1: z.ZodObject<{
|
|
60
67
|
symbol: z.ZodString;
|
|
61
68
|
mint: z.ZodString;
|
|
@@ -1234,6 +1241,7 @@ declare const StakingTreasury$1: z.ZodObject<{
|
|
|
1234
1241
|
stakedTokenMint: z.ZodString;
|
|
1235
1242
|
rewardTokenMint: z.ZodString;
|
|
1236
1243
|
apy: z.ZodNumber;
|
|
1244
|
+
uniqueStakers: z.ZodNumber;
|
|
1237
1245
|
totalStaked: z.ZodObject<{
|
|
1238
1246
|
amount: z.ZodBigInt;
|
|
1239
1247
|
usd: z.ZodNumber;
|
|
@@ -1263,6 +1271,7 @@ declare const StakingTreasury$1: z.ZodObject<{
|
|
|
1263
1271
|
stakedTokenMint: string;
|
|
1264
1272
|
rewardTokenMint: string;
|
|
1265
1273
|
apy: number;
|
|
1274
|
+
uniqueStakers: number;
|
|
1266
1275
|
totalStaked: {
|
|
1267
1276
|
amount: bigint;
|
|
1268
1277
|
usd: number;
|
|
@@ -1280,6 +1289,7 @@ declare const StakingTreasury$1: z.ZodObject<{
|
|
|
1280
1289
|
stakedTokenMint: string;
|
|
1281
1290
|
rewardTokenMint: string;
|
|
1282
1291
|
apy: number;
|
|
1292
|
+
uniqueStakers: number;
|
|
1283
1293
|
totalStaked: {
|
|
1284
1294
|
amount: bigint;
|
|
1285
1295
|
usd: number;
|
|
@@ -1461,6 +1471,103 @@ declare const StakingPosition$1: z.ZodObject<{
|
|
|
1461
1471
|
lastUnstakedAt: Date | null;
|
|
1462
1472
|
withdrawAvailableAt: Date | null;
|
|
1463
1473
|
}>;
|
|
1474
|
+
declare const StakingLeaderboardPosition$1: z.ZodObject<{
|
|
1475
|
+
rank: z.ZodNumber;
|
|
1476
|
+
address: z.ZodString;
|
|
1477
|
+
owner: z.ZodString;
|
|
1478
|
+
staked: z.ZodObject<{
|
|
1479
|
+
amount: z.ZodBigInt;
|
|
1480
|
+
usd: z.ZodNumber;
|
|
1481
|
+
}, "strip", z.ZodTypeAny, {
|
|
1482
|
+
amount: bigint;
|
|
1483
|
+
usd: number;
|
|
1484
|
+
}, {
|
|
1485
|
+
amount: bigint;
|
|
1486
|
+
usd: number;
|
|
1487
|
+
}>;
|
|
1488
|
+
}, "strip", z.ZodTypeAny, {
|
|
1489
|
+
address: string;
|
|
1490
|
+
owner: string;
|
|
1491
|
+
staked: {
|
|
1492
|
+
amount: bigint;
|
|
1493
|
+
usd: number;
|
|
1494
|
+
};
|
|
1495
|
+
rank: number;
|
|
1496
|
+
}, {
|
|
1497
|
+
address: string;
|
|
1498
|
+
owner: string;
|
|
1499
|
+
staked: {
|
|
1500
|
+
amount: bigint;
|
|
1501
|
+
usd: number;
|
|
1502
|
+
};
|
|
1503
|
+
rank: number;
|
|
1504
|
+
}>;
|
|
1505
|
+
declare const StakingLeaderboardPage$1: z.ZodObject<{
|
|
1506
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1507
|
+
rank: z.ZodNumber;
|
|
1508
|
+
address: z.ZodString;
|
|
1509
|
+
owner: z.ZodString;
|
|
1510
|
+
staked: z.ZodObject<{
|
|
1511
|
+
amount: z.ZodBigInt;
|
|
1512
|
+
usd: z.ZodNumber;
|
|
1513
|
+
}, "strip", z.ZodTypeAny, {
|
|
1514
|
+
amount: bigint;
|
|
1515
|
+
usd: number;
|
|
1516
|
+
}, {
|
|
1517
|
+
amount: bigint;
|
|
1518
|
+
usd: number;
|
|
1519
|
+
}>;
|
|
1520
|
+
}, "strip", z.ZodTypeAny, {
|
|
1521
|
+
address: string;
|
|
1522
|
+
owner: string;
|
|
1523
|
+
staked: {
|
|
1524
|
+
amount: bigint;
|
|
1525
|
+
usd: number;
|
|
1526
|
+
};
|
|
1527
|
+
rank: number;
|
|
1528
|
+
}, {
|
|
1529
|
+
address: string;
|
|
1530
|
+
owner: string;
|
|
1531
|
+
staked: {
|
|
1532
|
+
amount: bigint;
|
|
1533
|
+
usd: number;
|
|
1534
|
+
};
|
|
1535
|
+
rank: number;
|
|
1536
|
+
}>, "many">;
|
|
1537
|
+
meta: z.ZodObject<{
|
|
1538
|
+
total: z.ZodNumber;
|
|
1539
|
+
}, "strip", z.ZodTypeAny, {
|
|
1540
|
+
total: number;
|
|
1541
|
+
}, {
|
|
1542
|
+
total: number;
|
|
1543
|
+
}>;
|
|
1544
|
+
}, "strip", z.ZodTypeAny, {
|
|
1545
|
+
data: {
|
|
1546
|
+
address: string;
|
|
1547
|
+
owner: string;
|
|
1548
|
+
staked: {
|
|
1549
|
+
amount: bigint;
|
|
1550
|
+
usd: number;
|
|
1551
|
+
};
|
|
1552
|
+
rank: number;
|
|
1553
|
+
}[];
|
|
1554
|
+
meta: {
|
|
1555
|
+
total: number;
|
|
1556
|
+
};
|
|
1557
|
+
}, {
|
|
1558
|
+
data: {
|
|
1559
|
+
address: string;
|
|
1560
|
+
owner: string;
|
|
1561
|
+
staked: {
|
|
1562
|
+
amount: bigint;
|
|
1563
|
+
usd: number;
|
|
1564
|
+
};
|
|
1565
|
+
rank: number;
|
|
1566
|
+
}[];
|
|
1567
|
+
meta: {
|
|
1568
|
+
total: number;
|
|
1569
|
+
};
|
|
1570
|
+
}>;
|
|
1464
1571
|
declare const StakingPositionHistoryAction$1: z.ZodObject<{
|
|
1465
1572
|
position: z.ZodString;
|
|
1466
1573
|
action: z.ZodEnum<["stake", ...("stake" | "unstake" | "withdraw" | "claim_rewards" | "compound_rewards")[]]>;
|
|
@@ -1697,8 +1804,6 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1697
1804
|
}, "strip", z.ZodTypeAny, {
|
|
1698
1805
|
authority: string | null;
|
|
1699
1806
|
id: string;
|
|
1700
|
-
action: "create" | "update";
|
|
1701
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1702
1807
|
data: {
|
|
1703
1808
|
time: Date;
|
|
1704
1809
|
pool: string;
|
|
@@ -1708,12 +1813,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1708
1813
|
amountUsd: number;
|
|
1709
1814
|
aToB: boolean;
|
|
1710
1815
|
};
|
|
1816
|
+
action: "create" | "update";
|
|
1817
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1711
1818
|
meta?: any;
|
|
1712
1819
|
} | {
|
|
1713
1820
|
authority: string | null;
|
|
1714
1821
|
id: string;
|
|
1715
|
-
action: "create" | "update";
|
|
1716
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1717
1822
|
data: {
|
|
1718
1823
|
time: Date;
|
|
1719
1824
|
pool: string;
|
|
@@ -1723,12 +1828,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1723
1828
|
amountUsd: number;
|
|
1724
1829
|
aToB: boolean;
|
|
1725
1830
|
};
|
|
1831
|
+
action: "create" | "update";
|
|
1832
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1726
1833
|
meta?: any;
|
|
1727
1834
|
}, {
|
|
1728
1835
|
authority: string | null;
|
|
1729
1836
|
id: string;
|
|
1730
|
-
action: "create" | "update";
|
|
1731
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1732
1837
|
data: {
|
|
1733
1838
|
time: Date;
|
|
1734
1839
|
pool: string;
|
|
@@ -1738,12 +1843,12 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1738
1843
|
amountUsd: number;
|
|
1739
1844
|
aToB: boolean;
|
|
1740
1845
|
};
|
|
1846
|
+
action: "create" | "update";
|
|
1847
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1741
1848
|
meta?: any;
|
|
1742
1849
|
} | {
|
|
1743
1850
|
authority: string | null;
|
|
1744
1851
|
id: string;
|
|
1745
|
-
action: "create" | "update";
|
|
1746
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1747
1852
|
data: {
|
|
1748
1853
|
time: Date;
|
|
1749
1854
|
pool: string;
|
|
@@ -1753,6 +1858,8 @@ declare const PoolSwapNotification: z.ZodObject<{
|
|
|
1753
1858
|
amountUsd: number;
|
|
1754
1859
|
aToB: boolean;
|
|
1755
1860
|
};
|
|
1861
|
+
action: "create" | "update";
|
|
1862
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1756
1863
|
meta?: any;
|
|
1757
1864
|
}>;
|
|
1758
1865
|
declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
@@ -1802,50 +1909,50 @@ declare const PoolPriceUpdateNotification: z.ZodObject<{
|
|
|
1802
1909
|
}, "strip", z.ZodTypeAny, {
|
|
1803
1910
|
authority: string | null;
|
|
1804
1911
|
id: string;
|
|
1805
|
-
action: "create" | "update";
|
|
1806
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1807
1912
|
data: {
|
|
1808
1913
|
price: number;
|
|
1809
1914
|
time: Date;
|
|
1810
1915
|
sqrtPrice: bigint;
|
|
1811
1916
|
pool: string;
|
|
1812
1917
|
};
|
|
1918
|
+
action: "create" | "update";
|
|
1919
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1813
1920
|
meta?: any;
|
|
1814
1921
|
} | {
|
|
1815
1922
|
authority: string | null;
|
|
1816
1923
|
id: string;
|
|
1817
|
-
action: "create" | "update";
|
|
1818
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1819
1924
|
data: {
|
|
1820
1925
|
price: number;
|
|
1821
1926
|
time: Date;
|
|
1822
1927
|
sqrtPrice: bigint;
|
|
1823
1928
|
pool: string;
|
|
1824
1929
|
};
|
|
1930
|
+
action: "create" | "update";
|
|
1931
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1825
1932
|
meta?: any;
|
|
1826
1933
|
}, {
|
|
1827
1934
|
authority: string | null;
|
|
1828
1935
|
id: string;
|
|
1829
|
-
action: "create" | "update";
|
|
1830
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1831
1936
|
data: {
|
|
1832
1937
|
price: number;
|
|
1833
1938
|
time: Date;
|
|
1834
1939
|
sqrtPrice: bigint;
|
|
1835
1940
|
pool: string;
|
|
1836
1941
|
};
|
|
1942
|
+
action: "create" | "update";
|
|
1943
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1837
1944
|
meta?: any;
|
|
1838
1945
|
} | {
|
|
1839
1946
|
authority: string | null;
|
|
1840
1947
|
id: string;
|
|
1841
|
-
action: "create" | "update";
|
|
1842
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1843
1948
|
data: {
|
|
1844
1949
|
price: number;
|
|
1845
1950
|
time: Date;
|
|
1846
1951
|
sqrtPrice: bigint;
|
|
1847
1952
|
pool: string;
|
|
1848
1953
|
};
|
|
1954
|
+
action: "create" | "update";
|
|
1955
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
1849
1956
|
meta?: any;
|
|
1850
1957
|
}>;
|
|
1851
1958
|
declare const OrderBookNotification: z.ZodObject<{
|
|
@@ -2005,8 +2112,6 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2005
2112
|
}, "strip", z.ZodTypeAny, {
|
|
2006
2113
|
authority: string | null;
|
|
2007
2114
|
id: string;
|
|
2008
|
-
action: "create" | "update";
|
|
2009
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2010
2115
|
data: {
|
|
2011
2116
|
entries: {
|
|
2012
2117
|
price: number;
|
|
@@ -2027,11 +2132,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2027
2132
|
priceStep: number;
|
|
2028
2133
|
inverted: boolean;
|
|
2029
2134
|
} | null | undefined;
|
|
2135
|
+
action: "create" | "update";
|
|
2136
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2030
2137
|
} | {
|
|
2031
2138
|
authority: string | null;
|
|
2032
2139
|
id: string;
|
|
2033
|
-
action: "create" | "update";
|
|
2034
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2035
2140
|
data: {
|
|
2036
2141
|
entries: {
|
|
2037
2142
|
price: number;
|
|
@@ -2052,11 +2157,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2052
2157
|
priceStep: number;
|
|
2053
2158
|
inverted: boolean;
|
|
2054
2159
|
} | null | undefined;
|
|
2160
|
+
action: "create" | "update";
|
|
2161
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2055
2162
|
}, {
|
|
2056
2163
|
authority: string | null;
|
|
2057
2164
|
id: string;
|
|
2058
|
-
action: "create" | "update";
|
|
2059
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2060
2165
|
data: {
|
|
2061
2166
|
entries: {
|
|
2062
2167
|
price: number;
|
|
@@ -2077,11 +2182,11 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2077
2182
|
priceStep: number;
|
|
2078
2183
|
inverted: boolean;
|
|
2079
2184
|
} | null | undefined;
|
|
2185
|
+
action: "create" | "update";
|
|
2186
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2080
2187
|
} | {
|
|
2081
2188
|
authority: string | null;
|
|
2082
2189
|
id: string;
|
|
2083
|
-
action: "create" | "update";
|
|
2084
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2085
2190
|
data: {
|
|
2086
2191
|
entries: {
|
|
2087
2192
|
price: number;
|
|
@@ -2102,6 +2207,8 @@ declare const OrderBookNotification: z.ZodObject<{
|
|
|
2102
2207
|
priceStep: number;
|
|
2103
2208
|
inverted: boolean;
|
|
2104
2209
|
} | null | undefined;
|
|
2210
|
+
action: "create" | "update";
|
|
2211
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2105
2212
|
}>;
|
|
2106
2213
|
declare const TunaPositionNotification: z.ZodObject<{
|
|
2107
2214
|
meta: z.ZodTypeAny;
|
|
@@ -2852,8 +2959,6 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2852
2959
|
}, "strip", z.ZodTypeAny, {
|
|
2853
2960
|
authority: string | null;
|
|
2854
2961
|
id: string;
|
|
2855
|
-
action: "create" | "update";
|
|
2856
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2857
2962
|
data: {
|
|
2858
2963
|
address: string;
|
|
2859
2964
|
liquidity: bigint;
|
|
@@ -2943,12 +3048,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
2943
3048
|
updatedAtSlot: bigint;
|
|
2944
3049
|
closedAt: Date | null;
|
|
2945
3050
|
};
|
|
3051
|
+
action: "create" | "update";
|
|
3052
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2946
3053
|
meta?: any;
|
|
2947
3054
|
} | {
|
|
2948
3055
|
authority: string | null;
|
|
2949
3056
|
id: string;
|
|
2950
|
-
action: "create" | "update";
|
|
2951
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
2952
3057
|
data: {
|
|
2953
3058
|
address: string;
|
|
2954
3059
|
liquidity: bigint;
|
|
@@ -3038,12 +3143,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3038
3143
|
updatedAtSlot: bigint;
|
|
3039
3144
|
closedAt: Date | null;
|
|
3040
3145
|
};
|
|
3146
|
+
action: "create" | "update";
|
|
3147
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3041
3148
|
meta?: any;
|
|
3042
3149
|
}, {
|
|
3043
3150
|
authority: string | null;
|
|
3044
3151
|
id: string;
|
|
3045
|
-
action: "create" | "update";
|
|
3046
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3047
3152
|
data: {
|
|
3048
3153
|
address: string;
|
|
3049
3154
|
liquidity: bigint;
|
|
@@ -3133,12 +3238,12 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3133
3238
|
updatedAtSlot: bigint;
|
|
3134
3239
|
closedAt: Date | null;
|
|
3135
3240
|
};
|
|
3241
|
+
action: "create" | "update";
|
|
3242
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3136
3243
|
meta?: any;
|
|
3137
3244
|
} | {
|
|
3138
3245
|
authority: string | null;
|
|
3139
3246
|
id: string;
|
|
3140
|
-
action: "create" | "update";
|
|
3141
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3142
3247
|
data: {
|
|
3143
3248
|
address: string;
|
|
3144
3249
|
liquidity: bigint;
|
|
@@ -3228,6 +3333,8 @@ declare const TunaPositionNotification: z.ZodObject<{
|
|
|
3228
3333
|
updatedAtSlot: bigint;
|
|
3229
3334
|
closedAt: Date | null;
|
|
3230
3335
|
};
|
|
3336
|
+
action: "create" | "update";
|
|
3337
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3231
3338
|
meta?: any;
|
|
3232
3339
|
}>;
|
|
3233
3340
|
declare const LendingPositionNotification: z.ZodObject<{
|
|
@@ -3355,8 +3462,6 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3355
3462
|
}, "strip", z.ZodTypeAny, {
|
|
3356
3463
|
authority: string | null;
|
|
3357
3464
|
id: string;
|
|
3358
|
-
action: "create" | "update";
|
|
3359
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3360
3465
|
data: {
|
|
3361
3466
|
mint: string;
|
|
3362
3467
|
address: string;
|
|
@@ -3372,12 +3477,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3372
3477
|
usd: number;
|
|
3373
3478
|
};
|
|
3374
3479
|
};
|
|
3480
|
+
action: "create" | "update";
|
|
3481
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3375
3482
|
meta?: any;
|
|
3376
3483
|
} | {
|
|
3377
3484
|
authority: string | null;
|
|
3378
3485
|
id: string;
|
|
3379
|
-
action: "create" | "update";
|
|
3380
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3381
3486
|
data: {
|
|
3382
3487
|
mint: string;
|
|
3383
3488
|
address: string;
|
|
@@ -3393,12 +3498,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3393
3498
|
usd: number;
|
|
3394
3499
|
};
|
|
3395
3500
|
};
|
|
3501
|
+
action: "create" | "update";
|
|
3502
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3396
3503
|
meta?: any;
|
|
3397
3504
|
}, {
|
|
3398
3505
|
authority: string | null;
|
|
3399
3506
|
id: string;
|
|
3400
|
-
action: "create" | "update";
|
|
3401
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3402
3507
|
data: {
|
|
3403
3508
|
mint: string;
|
|
3404
3509
|
address: string;
|
|
@@ -3414,12 +3519,12 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3414
3519
|
usd: number;
|
|
3415
3520
|
};
|
|
3416
3521
|
};
|
|
3522
|
+
action: "create" | "update";
|
|
3523
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3417
3524
|
meta?: any;
|
|
3418
3525
|
} | {
|
|
3419
3526
|
authority: string | null;
|
|
3420
3527
|
id: string;
|
|
3421
|
-
action: "create" | "update";
|
|
3422
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3423
3528
|
data: {
|
|
3424
3529
|
mint: string;
|
|
3425
3530
|
address: string;
|
|
@@ -3435,6 +3540,8 @@ declare const LendingPositionNotification: z.ZodObject<{
|
|
|
3435
3540
|
usd: number;
|
|
3436
3541
|
};
|
|
3437
3542
|
};
|
|
3543
|
+
action: "create" | "update";
|
|
3544
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3438
3545
|
meta?: any;
|
|
3439
3546
|
}>;
|
|
3440
3547
|
declare const LimitOrderNotification: z.ZodObject<{
|
|
@@ -3598,8 +3705,6 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3598
3705
|
}, "strip", z.ZodTypeAny, {
|
|
3599
3706
|
authority: string | null;
|
|
3600
3707
|
id: string;
|
|
3601
|
-
action: "create" | "update";
|
|
3602
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3603
3708
|
data: {
|
|
3604
3709
|
mint: string;
|
|
3605
3710
|
address: string;
|
|
@@ -3621,12 +3726,12 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3621
3726
|
openTxSignature: string;
|
|
3622
3727
|
closeTxSignature: string | null;
|
|
3623
3728
|
};
|
|
3729
|
+
action: "create" | "update";
|
|
3730
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3624
3731
|
meta?: any;
|
|
3625
3732
|
} | {
|
|
3626
3733
|
authority: string | null;
|
|
3627
3734
|
id: string;
|
|
3628
|
-
action: "create" | "update";
|
|
3629
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3630
3735
|
data: {
|
|
3631
3736
|
mint: string;
|
|
3632
3737
|
address: string;
|
|
@@ -3648,12 +3753,12 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3648
3753
|
openTxSignature: string;
|
|
3649
3754
|
closeTxSignature: string | null;
|
|
3650
3755
|
};
|
|
3756
|
+
action: "create" | "update";
|
|
3757
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3651
3758
|
meta?: any;
|
|
3652
3759
|
}, {
|
|
3653
3760
|
authority: string | null;
|
|
3654
3761
|
id: string;
|
|
3655
|
-
action: "create" | "update";
|
|
3656
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3657
3762
|
data: {
|
|
3658
3763
|
mint: string;
|
|
3659
3764
|
address: string;
|
|
@@ -3675,12 +3780,12 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3675
3780
|
openTxSignature: string;
|
|
3676
3781
|
closeTxSignature: string | null;
|
|
3677
3782
|
};
|
|
3783
|
+
action: "create" | "update";
|
|
3784
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3678
3785
|
meta?: any;
|
|
3679
3786
|
} | {
|
|
3680
3787
|
authority: string | null;
|
|
3681
3788
|
id: string;
|
|
3682
|
-
action: "create" | "update";
|
|
3683
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3684
3789
|
data: {
|
|
3685
3790
|
mint: string;
|
|
3686
3791
|
address: string;
|
|
@@ -3702,6 +3807,8 @@ declare const LimitOrderNotification: z.ZodObject<{
|
|
|
3702
3807
|
openTxSignature: string;
|
|
3703
3808
|
closeTxSignature: string | null;
|
|
3704
3809
|
};
|
|
3810
|
+
action: "create" | "update";
|
|
3811
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
3705
3812
|
meta?: any;
|
|
3706
3813
|
}>;
|
|
3707
3814
|
declare const StakingPositionNotification: z.ZodObject<{
|
|
@@ -4055,8 +4162,6 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4055
4162
|
}, "strip", z.ZodTypeAny, {
|
|
4056
4163
|
authority: string | null;
|
|
4057
4164
|
id: string;
|
|
4058
|
-
action: "create" | "update";
|
|
4059
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4060
4165
|
data: {
|
|
4061
4166
|
address: string;
|
|
4062
4167
|
owner: string;
|
|
@@ -4093,12 +4198,12 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4093
4198
|
lastUnstakedAt: Date | null;
|
|
4094
4199
|
withdrawAvailableAt: Date | null;
|
|
4095
4200
|
};
|
|
4201
|
+
action: "create" | "update";
|
|
4202
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4096
4203
|
meta?: any;
|
|
4097
4204
|
} | {
|
|
4098
4205
|
authority: string | null;
|
|
4099
4206
|
id: string;
|
|
4100
|
-
action: "create" | "update";
|
|
4101
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4102
4207
|
data: {
|
|
4103
4208
|
address: string;
|
|
4104
4209
|
owner: string;
|
|
@@ -4135,12 +4240,12 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4135
4240
|
lastUnstakedAt: Date | null;
|
|
4136
4241
|
withdrawAvailableAt: Date | null;
|
|
4137
4242
|
};
|
|
4243
|
+
action: "create" | "update";
|
|
4244
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4138
4245
|
meta?: any;
|
|
4139
4246
|
}, {
|
|
4140
4247
|
authority: string | null;
|
|
4141
4248
|
id: string;
|
|
4142
|
-
action: "create" | "update";
|
|
4143
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4144
4249
|
data: {
|
|
4145
4250
|
address: string;
|
|
4146
4251
|
owner: string;
|
|
@@ -4177,12 +4282,12 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4177
4282
|
lastUnstakedAt: Date | null;
|
|
4178
4283
|
withdrawAvailableAt: Date | null;
|
|
4179
4284
|
};
|
|
4285
|
+
action: "create" | "update";
|
|
4286
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4180
4287
|
meta?: any;
|
|
4181
4288
|
} | {
|
|
4182
4289
|
authority: string | null;
|
|
4183
4290
|
id: string;
|
|
4184
|
-
action: "create" | "update";
|
|
4185
|
-
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4186
4291
|
data: {
|
|
4187
4292
|
address: string;
|
|
4188
4293
|
owner: string;
|
|
@@ -4219,6 +4324,8 @@ declare const StakingPositionNotification: z.ZodObject<{
|
|
|
4219
4324
|
lastUnstakedAt: Date | null;
|
|
4220
4325
|
withdrawAvailableAt: Date | null;
|
|
4221
4326
|
};
|
|
4327
|
+
action: "create" | "update";
|
|
4328
|
+
entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "staking_position" | "fusion_limit_order";
|
|
4222
4329
|
meta?: any;
|
|
4223
4330
|
}>;
|
|
4224
4331
|
|
|
@@ -4247,7 +4354,7 @@ declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscri
|
|
|
4247
4354
|
declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
|
|
4248
4355
|
declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
|
|
4249
4356
|
declare namespace schemas {
|
|
4250
|
-
export { FeesStatsGroup$1 as FeesStatsGroup, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
4357
|
+
export { FeesStatsGroup$1 as FeesStatsGroup, LendingPosition$1 as LendingPosition, schemas_LendingPositionNotification as LendingPositionNotification, LimitOrder$1 as LimitOrder, schemas_LimitOrderNotification as LimitOrderNotification, schemas_LimitOrderState as LimitOrderState, schemas_LimitOrderStateSchema as LimitOrderStateSchema, Market$1 as Market, Mint$1 as Mint, schemas_NotificationAction as NotificationAction, schemas_NotificationActionSchema as NotificationActionSchema, schemas_NotificationEntity as NotificationEntity, schemas_NotificationEntitySchema as NotificationEntitySchema, OrderBook$1 as OrderBook, OrderBookEntry$1 as OrderBookEntry, schemas_OrderBookNotification as OrderBookNotification, schemas_OrderBookNotificationMeta as OrderBookNotificationMeta, PaginationMeta$1 as PaginationMeta, Pool$1 as Pool, PoolPriceCandle$1 as PoolPriceCandle, PoolPriceUpdate$1 as PoolPriceUpdate, schemas_PoolPriceUpdateNotification as PoolPriceUpdateNotification, schemas_PoolProvider as PoolProvider, schemas_PoolProviderSchema as PoolProviderSchema, schemas_PoolSubscriptionTopic as PoolSubscriptionTopic, schemas_PoolSubscriptionTopicSchema as PoolSubscriptionTopicSchema, PoolSwap$1 as PoolSwap, schemas_PoolSwapNotification as PoolSwapNotification, PoolTicks$1 as PoolTicks, StakingLeaderboardPage$1 as StakingLeaderboardPage, StakingLeaderboardPosition$1 as StakingLeaderboardPosition, StakingPosition$1 as StakingPosition, StakingPositionHistoryAction$1 as StakingPositionHistoryAction, StakingPositionHistoryActionType$1 as StakingPositionHistoryActionType, schemas_StakingPositionHistoryActionTypeSchema as StakingPositionHistoryActionTypeSchema, schemas_StakingPositionNotification as StakingPositionNotification, StakingRevenueStatsGroup$1 as StakingRevenueStatsGroup, StakingTreasury$1 as StakingTreasury, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionNotification as TunaPositionNotification, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, VaultHistoricalStats$1 as VaultHistoricalStats, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
|
|
4251
4358
|
}
|
|
4252
4359
|
|
|
4253
4360
|
type PoolProviderType = z.infer<typeof PoolProviderSchema>;
|
|
@@ -4256,6 +4363,7 @@ type LimitOrderStateType = z.infer<typeof LimitOrderStateSchema>;
|
|
|
4256
4363
|
type StakingPositionHistoryActionType = z.infer<typeof StakingPositionHistoryActionTypeSchema>;
|
|
4257
4364
|
type PoolSubscriptionTopicType = z.infer<typeof PoolSubscriptionTopicSchema>;
|
|
4258
4365
|
type WalletSubscriptionTopicType = z.infer<typeof WalletSubscriptionTopicSchema>;
|
|
4366
|
+
type PaginationMeta = z.infer<typeof PaginationMeta$1>;
|
|
4259
4367
|
type Mint = z.infer<typeof Mint$1>;
|
|
4260
4368
|
type Market = z.infer<typeof Market$1>;
|
|
4261
4369
|
type TokenOraclePrice = z.infer<typeof TokenOraclePrice$1>;
|
|
@@ -4272,6 +4380,8 @@ type TunaPosition = z.infer<typeof TunaPosition$1>;
|
|
|
4272
4380
|
type LimitOrder = z.infer<typeof LimitOrder$1>;
|
|
4273
4381
|
type StakingPosition = z.infer<typeof StakingPosition$1>;
|
|
4274
4382
|
type StakingTreasury = z.infer<typeof StakingTreasury$1>;
|
|
4383
|
+
type StakingLeaderboardPage = z.infer<typeof StakingLeaderboardPage$1>;
|
|
4384
|
+
type StakingLeaderboardPosition = z.infer<typeof StakingLeaderboardPosition$1>;
|
|
4275
4385
|
type StakingPositionHistoryAction = z.infer<typeof StakingPositionHistoryAction$1>;
|
|
4276
4386
|
type PoolPriceCandle = z.infer<typeof PoolPriceCandle$1>;
|
|
4277
4387
|
type FeesStatsGroup = z.infer<typeof FeesStatsGroup$1>;
|
|
@@ -4351,6 +4461,7 @@ declare class TunaApiClient {
|
|
|
4351
4461
|
getPoolOrderBook(poolAddress: string, priceStep: number, inverted: boolean): Promise<OrderBook>;
|
|
4352
4462
|
getPoolPriceCandles(poolAddress: string, options: GetPoolPriceCandlesOptions): Promise<PoolPriceCandle[]>;
|
|
4353
4463
|
getStakingTreasury(): Promise<StakingTreasury>;
|
|
4464
|
+
getStakingLeaderboard(page: number, pageSize: number, search?: string): Promise<StakingLeaderboardPage>;
|
|
4354
4465
|
getUserLendingPositions(userAddress: string): Promise<LendingPosition[]>;
|
|
4355
4466
|
getUserLendingPositionByAddress(userAddress: string, lendingPositionAddress: string): Promise<LendingPosition>;
|
|
4356
4467
|
getUserTunaPositions(userAddress: string): Promise<TunaPosition[]>;
|
|
@@ -4367,4 +4478,4 @@ declare class TunaApiClient {
|
|
|
4367
4478
|
private appendUrlSearchParams;
|
|
4368
4479
|
}
|
|
4369
4480
|
|
|
4370
|
-
export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
|
|
4481
|
+
export { type DurationInMs, type FeesStatsGroup, type GetPoolPriceCandlesOptions, type LendingPosition, type LimitOrder, type LimitOrderStateType, type Market, type Mint, NotificationAction, NotificationEntity, type OrderBook, type OrderBookEntry, type PaginationMeta, type Pool, type PoolPriceCandle, type PoolPriceUpdate, PoolProvider, type PoolProviderType, type PoolSubscriptionTopicType, type PoolSwap, type PoolTicks, ProviderFilter, type StakingLeaderboardPage, type StakingLeaderboardPosition, type StakingPosition, type StakingPositionHistoryAction, type StakingPositionHistoryActionType, type StakingRevenueStatsGroup, type StakingTreasury, type SubscriptionPayload, type Tick, type TokenOraclePrice, TunaApiClient, type TunaApiClientConfig, type TunaPosition, TunaPositionState, type TunaPositionStateType, type Vault, type VaultHistoricalStats, type WalletSubscriptionTopicType, schemas };
|