@crypticdot/defituna-api 1.1.31 → 1.1.32

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 CHANGED
@@ -1649,7 +1649,1610 @@ declare const OrderBookNotification: z.ZodObject<{
1649
1649
  inverted: boolean;
1650
1650
  } | null | undefined;
1651
1651
  }>;
1652
+ declare const TunaPositionNotification: z.ZodObject<{
1653
+ meta: z.ZodTypeAny;
1654
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
1655
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
1656
+ data: z.ZodObject<{
1657
+ address: z.ZodString;
1658
+ authority: z.ZodString;
1659
+ version: z.ZodNumber;
1660
+ state: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
1661
+ positionMint: z.ZodString;
1662
+ liquidity: z.ZodBigInt;
1663
+ tickLowerIndex: z.ZodNumber;
1664
+ tickUpperIndex: z.ZodNumber;
1665
+ tickEntryIndex: z.ZodNumber;
1666
+ tickStopLossIndex: z.ZodNumber;
1667
+ tickTakeProfitIndex: z.ZodNumber;
1668
+ swapToTokenOnLimitOrder: z.ZodNumber;
1669
+ flags: z.ZodNumber;
1670
+ pool: z.ZodString;
1671
+ poolSqrtPrice: z.ZodBigInt;
1672
+ depositedCollateralA: z.ZodObject<{
1673
+ amount: z.ZodBigInt;
1674
+ }, "strip", z.ZodTypeAny, {
1675
+ amount: bigint;
1676
+ }, {
1677
+ amount: bigint;
1678
+ }>;
1679
+ depositedCollateralB: z.ZodObject<{
1680
+ amount: z.ZodBigInt;
1681
+ }, "strip", z.ZodTypeAny, {
1682
+ amount: bigint;
1683
+ }, {
1684
+ amount: bigint;
1685
+ }>;
1686
+ depositedCollateralUsd: z.ZodObject<{
1687
+ amount: z.ZodNumber;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ amount: number;
1690
+ }, {
1691
+ amount: number;
1692
+ }>;
1693
+ loanFundsA: z.ZodObject<{
1694
+ amount: z.ZodBigInt;
1695
+ usd: z.ZodNumber;
1696
+ }, "strip", z.ZodTypeAny, {
1697
+ amount: bigint;
1698
+ usd: number;
1699
+ }, {
1700
+ amount: bigint;
1701
+ usd: number;
1702
+ }>;
1703
+ loanFundsB: z.ZodObject<{
1704
+ amount: z.ZodBigInt;
1705
+ usd: z.ZodNumber;
1706
+ }, "strip", z.ZodTypeAny, {
1707
+ amount: bigint;
1708
+ usd: number;
1709
+ }, {
1710
+ amount: bigint;
1711
+ usd: number;
1712
+ }>;
1713
+ currentLoanA: z.ZodObject<{
1714
+ amount: z.ZodBigInt;
1715
+ usd: z.ZodNumber;
1716
+ }, "strip", z.ZodTypeAny, {
1717
+ amount: bigint;
1718
+ usd: number;
1719
+ }, {
1720
+ amount: bigint;
1721
+ usd: number;
1722
+ }>;
1723
+ currentLoanB: z.ZodObject<{
1724
+ amount: z.ZodBigInt;
1725
+ usd: z.ZodNumber;
1726
+ }, "strip", z.ZodTypeAny, {
1727
+ amount: bigint;
1728
+ usd: number;
1729
+ }, {
1730
+ amount: bigint;
1731
+ usd: number;
1732
+ }>;
1733
+ leftoversA: z.ZodObject<{
1734
+ amount: z.ZodBigInt;
1735
+ usd: z.ZodNumber;
1736
+ }, "strip", z.ZodTypeAny, {
1737
+ amount: bigint;
1738
+ usd: number;
1739
+ }, {
1740
+ amount: bigint;
1741
+ usd: number;
1742
+ }>;
1743
+ leftoversB: z.ZodObject<{
1744
+ amount: z.ZodBigInt;
1745
+ usd: z.ZodNumber;
1746
+ }, "strip", z.ZodTypeAny, {
1747
+ amount: bigint;
1748
+ usd: number;
1749
+ }, {
1750
+ amount: bigint;
1751
+ usd: number;
1752
+ }>;
1753
+ yieldA: z.ZodObject<{
1754
+ amount: z.ZodBigInt;
1755
+ usd: z.ZodNumber;
1756
+ }, "strip", z.ZodTypeAny, {
1757
+ amount: bigint;
1758
+ usd: number;
1759
+ }, {
1760
+ amount: bigint;
1761
+ usd: number;
1762
+ }>;
1763
+ yieldB: z.ZodObject<{
1764
+ amount: z.ZodBigInt;
1765
+ usd: z.ZodNumber;
1766
+ }, "strip", z.ZodTypeAny, {
1767
+ amount: bigint;
1768
+ usd: number;
1769
+ }, {
1770
+ amount: bigint;
1771
+ usd: number;
1772
+ }>;
1773
+ compoundedYieldA: z.ZodObject<{
1774
+ amount: z.ZodBigInt;
1775
+ usd: z.ZodNumber;
1776
+ }, "strip", z.ZodTypeAny, {
1777
+ amount: bigint;
1778
+ usd: number;
1779
+ }, {
1780
+ amount: bigint;
1781
+ usd: number;
1782
+ }>;
1783
+ compoundedYieldB: z.ZodObject<{
1784
+ amount: z.ZodBigInt;
1785
+ usd: z.ZodNumber;
1786
+ }, "strip", z.ZodTypeAny, {
1787
+ amount: bigint;
1788
+ usd: number;
1789
+ }, {
1790
+ amount: bigint;
1791
+ usd: number;
1792
+ }>;
1793
+ totalA: z.ZodObject<{
1794
+ amount: z.ZodBigInt;
1795
+ usd: z.ZodNumber;
1796
+ }, "strip", z.ZodTypeAny, {
1797
+ amount: bigint;
1798
+ usd: number;
1799
+ }, {
1800
+ amount: bigint;
1801
+ usd: number;
1802
+ }>;
1803
+ totalB: z.ZodObject<{
1804
+ amount: z.ZodBigInt;
1805
+ usd: z.ZodNumber;
1806
+ }, "strip", z.ZodTypeAny, {
1807
+ amount: bigint;
1808
+ usd: number;
1809
+ }, {
1810
+ amount: bigint;
1811
+ usd: number;
1812
+ }>;
1813
+ pnlA: z.ZodObject<{
1814
+ amount: z.ZodBigInt;
1815
+ bps: z.ZodNumber;
1816
+ }, "strip", z.ZodTypeAny, {
1817
+ amount: bigint;
1818
+ bps: number;
1819
+ }, {
1820
+ amount: bigint;
1821
+ bps: number;
1822
+ }>;
1823
+ pnlB: z.ZodObject<{
1824
+ amount: z.ZodBigInt;
1825
+ bps: z.ZodNumber;
1826
+ }, "strip", z.ZodTypeAny, {
1827
+ amount: bigint;
1828
+ bps: number;
1829
+ }, {
1830
+ amount: bigint;
1831
+ bps: number;
1832
+ }>;
1833
+ pnlUsd: z.ZodObject<{
1834
+ amount: z.ZodNumber;
1835
+ bps: z.ZodNumber;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ amount: number;
1838
+ bps: number;
1839
+ }, {
1840
+ amount: number;
1841
+ bps: number;
1842
+ }>;
1843
+ openedAt: z.ZodDate;
1844
+ updatedAtSlot: z.ZodBigInt;
1845
+ closedAt: z.ZodNullable<z.ZodDate>;
1846
+ }, "strip", z.ZodTypeAny, {
1847
+ address: string;
1848
+ liquidity: bigint;
1849
+ authority: string;
1850
+ version: number;
1851
+ state: "open" | "liquidated" | "closed_by_limit_order" | "closed";
1852
+ positionMint: string;
1853
+ tickLowerIndex: number;
1854
+ tickUpperIndex: number;
1855
+ tickEntryIndex: number;
1856
+ tickStopLossIndex: number;
1857
+ tickTakeProfitIndex: number;
1858
+ swapToTokenOnLimitOrder: number;
1859
+ flags: number;
1860
+ pool: string;
1861
+ poolSqrtPrice: bigint;
1862
+ depositedCollateralA: {
1863
+ amount: bigint;
1864
+ };
1865
+ depositedCollateralB: {
1866
+ amount: bigint;
1867
+ };
1868
+ depositedCollateralUsd: {
1869
+ amount: number;
1870
+ };
1871
+ loanFundsA: {
1872
+ amount: bigint;
1873
+ usd: number;
1874
+ };
1875
+ loanFundsB: {
1876
+ amount: bigint;
1877
+ usd: number;
1878
+ };
1879
+ currentLoanA: {
1880
+ amount: bigint;
1881
+ usd: number;
1882
+ };
1883
+ currentLoanB: {
1884
+ amount: bigint;
1885
+ usd: number;
1886
+ };
1887
+ leftoversA: {
1888
+ amount: bigint;
1889
+ usd: number;
1890
+ };
1891
+ leftoversB: {
1892
+ amount: bigint;
1893
+ usd: number;
1894
+ };
1895
+ yieldA: {
1896
+ amount: bigint;
1897
+ usd: number;
1898
+ };
1899
+ yieldB: {
1900
+ amount: bigint;
1901
+ usd: number;
1902
+ };
1903
+ compoundedYieldA: {
1904
+ amount: bigint;
1905
+ usd: number;
1906
+ };
1907
+ compoundedYieldB: {
1908
+ amount: bigint;
1909
+ usd: number;
1910
+ };
1911
+ totalA: {
1912
+ amount: bigint;
1913
+ usd: number;
1914
+ };
1915
+ totalB: {
1916
+ amount: bigint;
1917
+ usd: number;
1918
+ };
1919
+ pnlA: {
1920
+ amount: bigint;
1921
+ bps: number;
1922
+ };
1923
+ pnlB: {
1924
+ amount: bigint;
1925
+ bps: number;
1926
+ };
1927
+ pnlUsd: {
1928
+ amount: number;
1929
+ bps: number;
1930
+ };
1931
+ openedAt: Date;
1932
+ updatedAtSlot: bigint;
1933
+ closedAt: Date | null;
1934
+ }, {
1935
+ address: string;
1936
+ liquidity: bigint;
1937
+ authority: string;
1938
+ version: number;
1939
+ state: "open" | "liquidated" | "closed_by_limit_order" | "closed";
1940
+ positionMint: string;
1941
+ tickLowerIndex: number;
1942
+ tickUpperIndex: number;
1943
+ tickEntryIndex: number;
1944
+ tickStopLossIndex: number;
1945
+ tickTakeProfitIndex: number;
1946
+ swapToTokenOnLimitOrder: number;
1947
+ flags: number;
1948
+ pool: string;
1949
+ poolSqrtPrice: bigint;
1950
+ depositedCollateralA: {
1951
+ amount: bigint;
1952
+ };
1953
+ depositedCollateralB: {
1954
+ amount: bigint;
1955
+ };
1956
+ depositedCollateralUsd: {
1957
+ amount: number;
1958
+ };
1959
+ loanFundsA: {
1960
+ amount: bigint;
1961
+ usd: number;
1962
+ };
1963
+ loanFundsB: {
1964
+ amount: bigint;
1965
+ usd: number;
1966
+ };
1967
+ currentLoanA: {
1968
+ amount: bigint;
1969
+ usd: number;
1970
+ };
1971
+ currentLoanB: {
1972
+ amount: bigint;
1973
+ usd: number;
1974
+ };
1975
+ leftoversA: {
1976
+ amount: bigint;
1977
+ usd: number;
1978
+ };
1979
+ leftoversB: {
1980
+ amount: bigint;
1981
+ usd: number;
1982
+ };
1983
+ yieldA: {
1984
+ amount: bigint;
1985
+ usd: number;
1986
+ };
1987
+ yieldB: {
1988
+ amount: bigint;
1989
+ usd: number;
1990
+ };
1991
+ compoundedYieldA: {
1992
+ amount: bigint;
1993
+ usd: number;
1994
+ };
1995
+ compoundedYieldB: {
1996
+ amount: bigint;
1997
+ usd: number;
1998
+ };
1999
+ totalA: {
2000
+ amount: bigint;
2001
+ usd: number;
2002
+ };
2003
+ totalB: {
2004
+ amount: bigint;
2005
+ usd: number;
2006
+ };
2007
+ pnlA: {
2008
+ amount: bigint;
2009
+ bps: number;
2010
+ };
2011
+ pnlB: {
2012
+ amount: bigint;
2013
+ bps: number;
2014
+ };
2015
+ pnlUsd: {
2016
+ amount: number;
2017
+ bps: number;
2018
+ };
2019
+ openedAt: Date;
2020
+ updatedAtSlot: bigint;
2021
+ closedAt: Date | null;
2022
+ }>;
2023
+ id: z.ZodString;
2024
+ authority: z.ZodNullable<z.ZodString>;
2025
+ } | {
2026
+ meta: z.ZodNullable<z.ZodUndefined>;
2027
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
2028
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2029
+ data: z.ZodObject<{
2030
+ address: z.ZodString;
2031
+ authority: z.ZodString;
2032
+ version: z.ZodNumber;
2033
+ state: z.ZodEnum<["open", ...("open" | "liquidated" | "closed_by_limit_order" | "closed")[]]>;
2034
+ positionMint: z.ZodString;
2035
+ liquidity: z.ZodBigInt;
2036
+ tickLowerIndex: z.ZodNumber;
2037
+ tickUpperIndex: z.ZodNumber;
2038
+ tickEntryIndex: z.ZodNumber;
2039
+ tickStopLossIndex: z.ZodNumber;
2040
+ tickTakeProfitIndex: z.ZodNumber;
2041
+ swapToTokenOnLimitOrder: z.ZodNumber;
2042
+ flags: z.ZodNumber;
2043
+ pool: z.ZodString;
2044
+ poolSqrtPrice: z.ZodBigInt;
2045
+ depositedCollateralA: z.ZodObject<{
2046
+ amount: z.ZodBigInt;
2047
+ }, "strip", z.ZodTypeAny, {
2048
+ amount: bigint;
2049
+ }, {
2050
+ amount: bigint;
2051
+ }>;
2052
+ depositedCollateralB: z.ZodObject<{
2053
+ amount: z.ZodBigInt;
2054
+ }, "strip", z.ZodTypeAny, {
2055
+ amount: bigint;
2056
+ }, {
2057
+ amount: bigint;
2058
+ }>;
2059
+ depositedCollateralUsd: z.ZodObject<{
2060
+ amount: z.ZodNumber;
2061
+ }, "strip", z.ZodTypeAny, {
2062
+ amount: number;
2063
+ }, {
2064
+ amount: number;
2065
+ }>;
2066
+ loanFundsA: z.ZodObject<{
2067
+ amount: z.ZodBigInt;
2068
+ usd: z.ZodNumber;
2069
+ }, "strip", z.ZodTypeAny, {
2070
+ amount: bigint;
2071
+ usd: number;
2072
+ }, {
2073
+ amount: bigint;
2074
+ usd: number;
2075
+ }>;
2076
+ loanFundsB: z.ZodObject<{
2077
+ amount: z.ZodBigInt;
2078
+ usd: z.ZodNumber;
2079
+ }, "strip", z.ZodTypeAny, {
2080
+ amount: bigint;
2081
+ usd: number;
2082
+ }, {
2083
+ amount: bigint;
2084
+ usd: number;
2085
+ }>;
2086
+ currentLoanA: z.ZodObject<{
2087
+ amount: z.ZodBigInt;
2088
+ usd: z.ZodNumber;
2089
+ }, "strip", z.ZodTypeAny, {
2090
+ amount: bigint;
2091
+ usd: number;
2092
+ }, {
2093
+ amount: bigint;
2094
+ usd: number;
2095
+ }>;
2096
+ currentLoanB: z.ZodObject<{
2097
+ amount: z.ZodBigInt;
2098
+ usd: z.ZodNumber;
2099
+ }, "strip", z.ZodTypeAny, {
2100
+ amount: bigint;
2101
+ usd: number;
2102
+ }, {
2103
+ amount: bigint;
2104
+ usd: number;
2105
+ }>;
2106
+ leftoversA: z.ZodObject<{
2107
+ amount: z.ZodBigInt;
2108
+ usd: z.ZodNumber;
2109
+ }, "strip", z.ZodTypeAny, {
2110
+ amount: bigint;
2111
+ usd: number;
2112
+ }, {
2113
+ amount: bigint;
2114
+ usd: number;
2115
+ }>;
2116
+ leftoversB: z.ZodObject<{
2117
+ amount: z.ZodBigInt;
2118
+ usd: z.ZodNumber;
2119
+ }, "strip", z.ZodTypeAny, {
2120
+ amount: bigint;
2121
+ usd: number;
2122
+ }, {
2123
+ amount: bigint;
2124
+ usd: number;
2125
+ }>;
2126
+ yieldA: z.ZodObject<{
2127
+ amount: z.ZodBigInt;
2128
+ usd: z.ZodNumber;
2129
+ }, "strip", z.ZodTypeAny, {
2130
+ amount: bigint;
2131
+ usd: number;
2132
+ }, {
2133
+ amount: bigint;
2134
+ usd: number;
2135
+ }>;
2136
+ yieldB: z.ZodObject<{
2137
+ amount: z.ZodBigInt;
2138
+ usd: z.ZodNumber;
2139
+ }, "strip", z.ZodTypeAny, {
2140
+ amount: bigint;
2141
+ usd: number;
2142
+ }, {
2143
+ amount: bigint;
2144
+ usd: number;
2145
+ }>;
2146
+ compoundedYieldA: z.ZodObject<{
2147
+ amount: z.ZodBigInt;
2148
+ usd: z.ZodNumber;
2149
+ }, "strip", z.ZodTypeAny, {
2150
+ amount: bigint;
2151
+ usd: number;
2152
+ }, {
2153
+ amount: bigint;
2154
+ usd: number;
2155
+ }>;
2156
+ compoundedYieldB: z.ZodObject<{
2157
+ amount: z.ZodBigInt;
2158
+ usd: z.ZodNumber;
2159
+ }, "strip", z.ZodTypeAny, {
2160
+ amount: bigint;
2161
+ usd: number;
2162
+ }, {
2163
+ amount: bigint;
2164
+ usd: number;
2165
+ }>;
2166
+ totalA: z.ZodObject<{
2167
+ amount: z.ZodBigInt;
2168
+ usd: z.ZodNumber;
2169
+ }, "strip", z.ZodTypeAny, {
2170
+ amount: bigint;
2171
+ usd: number;
2172
+ }, {
2173
+ amount: bigint;
2174
+ usd: number;
2175
+ }>;
2176
+ totalB: z.ZodObject<{
2177
+ amount: z.ZodBigInt;
2178
+ usd: z.ZodNumber;
2179
+ }, "strip", z.ZodTypeAny, {
2180
+ amount: bigint;
2181
+ usd: number;
2182
+ }, {
2183
+ amount: bigint;
2184
+ usd: number;
2185
+ }>;
2186
+ pnlA: z.ZodObject<{
2187
+ amount: z.ZodBigInt;
2188
+ bps: z.ZodNumber;
2189
+ }, "strip", z.ZodTypeAny, {
2190
+ amount: bigint;
2191
+ bps: number;
2192
+ }, {
2193
+ amount: bigint;
2194
+ bps: number;
2195
+ }>;
2196
+ pnlB: z.ZodObject<{
2197
+ amount: z.ZodBigInt;
2198
+ bps: z.ZodNumber;
2199
+ }, "strip", z.ZodTypeAny, {
2200
+ amount: bigint;
2201
+ bps: number;
2202
+ }, {
2203
+ amount: bigint;
2204
+ bps: number;
2205
+ }>;
2206
+ pnlUsd: z.ZodObject<{
2207
+ amount: z.ZodNumber;
2208
+ bps: z.ZodNumber;
2209
+ }, "strip", z.ZodTypeAny, {
2210
+ amount: number;
2211
+ bps: number;
2212
+ }, {
2213
+ amount: number;
2214
+ bps: number;
2215
+ }>;
2216
+ openedAt: z.ZodDate;
2217
+ updatedAtSlot: z.ZodBigInt;
2218
+ closedAt: z.ZodNullable<z.ZodDate>;
2219
+ }, "strip", z.ZodTypeAny, {
2220
+ address: string;
2221
+ liquidity: bigint;
2222
+ authority: string;
2223
+ version: number;
2224
+ state: "open" | "liquidated" | "closed_by_limit_order" | "closed";
2225
+ positionMint: string;
2226
+ tickLowerIndex: number;
2227
+ tickUpperIndex: number;
2228
+ tickEntryIndex: number;
2229
+ tickStopLossIndex: number;
2230
+ tickTakeProfitIndex: number;
2231
+ swapToTokenOnLimitOrder: number;
2232
+ flags: number;
2233
+ pool: string;
2234
+ poolSqrtPrice: bigint;
2235
+ depositedCollateralA: {
2236
+ amount: bigint;
2237
+ };
2238
+ depositedCollateralB: {
2239
+ amount: bigint;
2240
+ };
2241
+ depositedCollateralUsd: {
2242
+ amount: number;
2243
+ };
2244
+ loanFundsA: {
2245
+ amount: bigint;
2246
+ usd: number;
2247
+ };
2248
+ loanFundsB: {
2249
+ amount: bigint;
2250
+ usd: number;
2251
+ };
2252
+ currentLoanA: {
2253
+ amount: bigint;
2254
+ usd: number;
2255
+ };
2256
+ currentLoanB: {
2257
+ amount: bigint;
2258
+ usd: number;
2259
+ };
2260
+ leftoversA: {
2261
+ amount: bigint;
2262
+ usd: number;
2263
+ };
2264
+ leftoversB: {
2265
+ amount: bigint;
2266
+ usd: number;
2267
+ };
2268
+ yieldA: {
2269
+ amount: bigint;
2270
+ usd: number;
2271
+ };
2272
+ yieldB: {
2273
+ amount: bigint;
2274
+ usd: number;
2275
+ };
2276
+ compoundedYieldA: {
2277
+ amount: bigint;
2278
+ usd: number;
2279
+ };
2280
+ compoundedYieldB: {
2281
+ amount: bigint;
2282
+ usd: number;
2283
+ };
2284
+ totalA: {
2285
+ amount: bigint;
2286
+ usd: number;
2287
+ };
2288
+ totalB: {
2289
+ amount: bigint;
2290
+ usd: number;
2291
+ };
2292
+ pnlA: {
2293
+ amount: bigint;
2294
+ bps: number;
2295
+ };
2296
+ pnlB: {
2297
+ amount: bigint;
2298
+ bps: number;
2299
+ };
2300
+ pnlUsd: {
2301
+ amount: number;
2302
+ bps: number;
2303
+ };
2304
+ openedAt: Date;
2305
+ updatedAtSlot: bigint;
2306
+ closedAt: Date | null;
2307
+ }, {
2308
+ address: string;
2309
+ liquidity: bigint;
2310
+ authority: string;
2311
+ version: number;
2312
+ state: "open" | "liquidated" | "closed_by_limit_order" | "closed";
2313
+ positionMint: string;
2314
+ tickLowerIndex: number;
2315
+ tickUpperIndex: number;
2316
+ tickEntryIndex: number;
2317
+ tickStopLossIndex: number;
2318
+ tickTakeProfitIndex: number;
2319
+ swapToTokenOnLimitOrder: number;
2320
+ flags: number;
2321
+ pool: string;
2322
+ poolSqrtPrice: bigint;
2323
+ depositedCollateralA: {
2324
+ amount: bigint;
2325
+ };
2326
+ depositedCollateralB: {
2327
+ amount: bigint;
2328
+ };
2329
+ depositedCollateralUsd: {
2330
+ amount: number;
2331
+ };
2332
+ loanFundsA: {
2333
+ amount: bigint;
2334
+ usd: number;
2335
+ };
2336
+ loanFundsB: {
2337
+ amount: bigint;
2338
+ usd: number;
2339
+ };
2340
+ currentLoanA: {
2341
+ amount: bigint;
2342
+ usd: number;
2343
+ };
2344
+ currentLoanB: {
2345
+ amount: bigint;
2346
+ usd: number;
2347
+ };
2348
+ leftoversA: {
2349
+ amount: bigint;
2350
+ usd: number;
2351
+ };
2352
+ leftoversB: {
2353
+ amount: bigint;
2354
+ usd: number;
2355
+ };
2356
+ yieldA: {
2357
+ amount: bigint;
2358
+ usd: number;
2359
+ };
2360
+ yieldB: {
2361
+ amount: bigint;
2362
+ usd: number;
2363
+ };
2364
+ compoundedYieldA: {
2365
+ amount: bigint;
2366
+ usd: number;
2367
+ };
2368
+ compoundedYieldB: {
2369
+ amount: bigint;
2370
+ usd: number;
2371
+ };
2372
+ totalA: {
2373
+ amount: bigint;
2374
+ usd: number;
2375
+ };
2376
+ totalB: {
2377
+ amount: bigint;
2378
+ usd: number;
2379
+ };
2380
+ pnlA: {
2381
+ amount: bigint;
2382
+ bps: number;
2383
+ };
2384
+ pnlB: {
2385
+ amount: bigint;
2386
+ bps: number;
2387
+ };
2388
+ pnlUsd: {
2389
+ amount: number;
2390
+ bps: number;
2391
+ };
2392
+ openedAt: Date;
2393
+ updatedAtSlot: bigint;
2394
+ closedAt: Date | null;
2395
+ }>;
2396
+ id: z.ZodString;
2397
+ authority: z.ZodNullable<z.ZodString>;
2398
+ }, "strip", z.ZodTypeAny, {
2399
+ authority: string | null;
2400
+ id: string;
2401
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2402
+ action: "create" | "update";
2403
+ data: {
2404
+ address: string;
2405
+ liquidity: bigint;
2406
+ authority: string;
2407
+ version: number;
2408
+ state: "open" | "liquidated" | "closed_by_limit_order" | "closed";
2409
+ positionMint: string;
2410
+ tickLowerIndex: number;
2411
+ tickUpperIndex: number;
2412
+ tickEntryIndex: number;
2413
+ tickStopLossIndex: number;
2414
+ tickTakeProfitIndex: number;
2415
+ swapToTokenOnLimitOrder: number;
2416
+ flags: number;
2417
+ pool: string;
2418
+ poolSqrtPrice: bigint;
2419
+ depositedCollateralA: {
2420
+ amount: bigint;
2421
+ };
2422
+ depositedCollateralB: {
2423
+ amount: bigint;
2424
+ };
2425
+ depositedCollateralUsd: {
2426
+ amount: number;
2427
+ };
2428
+ loanFundsA: {
2429
+ amount: bigint;
2430
+ usd: number;
2431
+ };
2432
+ loanFundsB: {
2433
+ amount: bigint;
2434
+ usd: number;
2435
+ };
2436
+ currentLoanA: {
2437
+ amount: bigint;
2438
+ usd: number;
2439
+ };
2440
+ currentLoanB: {
2441
+ amount: bigint;
2442
+ usd: number;
2443
+ };
2444
+ leftoversA: {
2445
+ amount: bigint;
2446
+ usd: number;
2447
+ };
2448
+ leftoversB: {
2449
+ amount: bigint;
2450
+ usd: number;
2451
+ };
2452
+ yieldA: {
2453
+ amount: bigint;
2454
+ usd: number;
2455
+ };
2456
+ yieldB: {
2457
+ amount: bigint;
2458
+ usd: number;
2459
+ };
2460
+ compoundedYieldA: {
2461
+ amount: bigint;
2462
+ usd: number;
2463
+ };
2464
+ compoundedYieldB: {
2465
+ amount: bigint;
2466
+ usd: number;
2467
+ };
2468
+ totalA: {
2469
+ amount: bigint;
2470
+ usd: number;
2471
+ };
2472
+ totalB: {
2473
+ amount: bigint;
2474
+ usd: number;
2475
+ };
2476
+ pnlA: {
2477
+ amount: bigint;
2478
+ bps: number;
2479
+ };
2480
+ pnlB: {
2481
+ amount: bigint;
2482
+ bps: number;
2483
+ };
2484
+ pnlUsd: {
2485
+ amount: number;
2486
+ bps: number;
2487
+ };
2488
+ openedAt: Date;
2489
+ updatedAtSlot: bigint;
2490
+ closedAt: Date | null;
2491
+ };
2492
+ meta?: any;
2493
+ } | {
2494
+ authority: string | null;
2495
+ id: string;
2496
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2497
+ action: "create" | "update";
2498
+ data: {
2499
+ address: string;
2500
+ liquidity: bigint;
2501
+ authority: string;
2502
+ version: number;
2503
+ state: "open" | "liquidated" | "closed_by_limit_order" | "closed";
2504
+ positionMint: string;
2505
+ tickLowerIndex: number;
2506
+ tickUpperIndex: number;
2507
+ tickEntryIndex: number;
2508
+ tickStopLossIndex: number;
2509
+ tickTakeProfitIndex: number;
2510
+ swapToTokenOnLimitOrder: number;
2511
+ flags: number;
2512
+ pool: string;
2513
+ poolSqrtPrice: bigint;
2514
+ depositedCollateralA: {
2515
+ amount: bigint;
2516
+ };
2517
+ depositedCollateralB: {
2518
+ amount: bigint;
2519
+ };
2520
+ depositedCollateralUsd: {
2521
+ amount: number;
2522
+ };
2523
+ loanFundsA: {
2524
+ amount: bigint;
2525
+ usd: number;
2526
+ };
2527
+ loanFundsB: {
2528
+ amount: bigint;
2529
+ usd: number;
2530
+ };
2531
+ currentLoanA: {
2532
+ amount: bigint;
2533
+ usd: number;
2534
+ };
2535
+ currentLoanB: {
2536
+ amount: bigint;
2537
+ usd: number;
2538
+ };
2539
+ leftoversA: {
2540
+ amount: bigint;
2541
+ usd: number;
2542
+ };
2543
+ leftoversB: {
2544
+ amount: bigint;
2545
+ usd: number;
2546
+ };
2547
+ yieldA: {
2548
+ amount: bigint;
2549
+ usd: number;
2550
+ };
2551
+ yieldB: {
2552
+ amount: bigint;
2553
+ usd: number;
2554
+ };
2555
+ compoundedYieldA: {
2556
+ amount: bigint;
2557
+ usd: number;
2558
+ };
2559
+ compoundedYieldB: {
2560
+ amount: bigint;
2561
+ usd: number;
2562
+ };
2563
+ totalA: {
2564
+ amount: bigint;
2565
+ usd: number;
2566
+ };
2567
+ totalB: {
2568
+ amount: bigint;
2569
+ usd: number;
2570
+ };
2571
+ pnlA: {
2572
+ amount: bigint;
2573
+ bps: number;
2574
+ };
2575
+ pnlB: {
2576
+ amount: bigint;
2577
+ bps: number;
2578
+ };
2579
+ pnlUsd: {
2580
+ amount: number;
2581
+ bps: number;
2582
+ };
2583
+ openedAt: Date;
2584
+ updatedAtSlot: bigint;
2585
+ closedAt: Date | null;
2586
+ };
2587
+ meta?: any;
2588
+ }, {
2589
+ authority: string | null;
2590
+ id: string;
2591
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2592
+ action: "create" | "update";
2593
+ data: {
2594
+ address: string;
2595
+ liquidity: bigint;
2596
+ authority: string;
2597
+ version: number;
2598
+ state: "open" | "liquidated" | "closed_by_limit_order" | "closed";
2599
+ positionMint: string;
2600
+ tickLowerIndex: number;
2601
+ tickUpperIndex: number;
2602
+ tickEntryIndex: number;
2603
+ tickStopLossIndex: number;
2604
+ tickTakeProfitIndex: number;
2605
+ swapToTokenOnLimitOrder: number;
2606
+ flags: number;
2607
+ pool: string;
2608
+ poolSqrtPrice: bigint;
2609
+ depositedCollateralA: {
2610
+ amount: bigint;
2611
+ };
2612
+ depositedCollateralB: {
2613
+ amount: bigint;
2614
+ };
2615
+ depositedCollateralUsd: {
2616
+ amount: number;
2617
+ };
2618
+ loanFundsA: {
2619
+ amount: bigint;
2620
+ usd: number;
2621
+ };
2622
+ loanFundsB: {
2623
+ amount: bigint;
2624
+ usd: number;
2625
+ };
2626
+ currentLoanA: {
2627
+ amount: bigint;
2628
+ usd: number;
2629
+ };
2630
+ currentLoanB: {
2631
+ amount: bigint;
2632
+ usd: number;
2633
+ };
2634
+ leftoversA: {
2635
+ amount: bigint;
2636
+ usd: number;
2637
+ };
2638
+ leftoversB: {
2639
+ amount: bigint;
2640
+ usd: number;
2641
+ };
2642
+ yieldA: {
2643
+ amount: bigint;
2644
+ usd: number;
2645
+ };
2646
+ yieldB: {
2647
+ amount: bigint;
2648
+ usd: number;
2649
+ };
2650
+ compoundedYieldA: {
2651
+ amount: bigint;
2652
+ usd: number;
2653
+ };
2654
+ compoundedYieldB: {
2655
+ amount: bigint;
2656
+ usd: number;
2657
+ };
2658
+ totalA: {
2659
+ amount: bigint;
2660
+ usd: number;
2661
+ };
2662
+ totalB: {
2663
+ amount: bigint;
2664
+ usd: number;
2665
+ };
2666
+ pnlA: {
2667
+ amount: bigint;
2668
+ bps: number;
2669
+ };
2670
+ pnlB: {
2671
+ amount: bigint;
2672
+ bps: number;
2673
+ };
2674
+ pnlUsd: {
2675
+ amount: number;
2676
+ bps: number;
2677
+ };
2678
+ openedAt: Date;
2679
+ updatedAtSlot: bigint;
2680
+ closedAt: Date | null;
2681
+ };
2682
+ meta?: any;
2683
+ } | {
2684
+ authority: string | null;
2685
+ id: string;
2686
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2687
+ action: "create" | "update";
2688
+ data: {
2689
+ address: string;
2690
+ liquidity: bigint;
2691
+ authority: string;
2692
+ version: number;
2693
+ state: "open" | "liquidated" | "closed_by_limit_order" | "closed";
2694
+ positionMint: string;
2695
+ tickLowerIndex: number;
2696
+ tickUpperIndex: number;
2697
+ tickEntryIndex: number;
2698
+ tickStopLossIndex: number;
2699
+ tickTakeProfitIndex: number;
2700
+ swapToTokenOnLimitOrder: number;
2701
+ flags: number;
2702
+ pool: string;
2703
+ poolSqrtPrice: bigint;
2704
+ depositedCollateralA: {
2705
+ amount: bigint;
2706
+ };
2707
+ depositedCollateralB: {
2708
+ amount: bigint;
2709
+ };
2710
+ depositedCollateralUsd: {
2711
+ amount: number;
2712
+ };
2713
+ loanFundsA: {
2714
+ amount: bigint;
2715
+ usd: number;
2716
+ };
2717
+ loanFundsB: {
2718
+ amount: bigint;
2719
+ usd: number;
2720
+ };
2721
+ currentLoanA: {
2722
+ amount: bigint;
2723
+ usd: number;
2724
+ };
2725
+ currentLoanB: {
2726
+ amount: bigint;
2727
+ usd: number;
2728
+ };
2729
+ leftoversA: {
2730
+ amount: bigint;
2731
+ usd: number;
2732
+ };
2733
+ leftoversB: {
2734
+ amount: bigint;
2735
+ usd: number;
2736
+ };
2737
+ yieldA: {
2738
+ amount: bigint;
2739
+ usd: number;
2740
+ };
2741
+ yieldB: {
2742
+ amount: bigint;
2743
+ usd: number;
2744
+ };
2745
+ compoundedYieldA: {
2746
+ amount: bigint;
2747
+ usd: number;
2748
+ };
2749
+ compoundedYieldB: {
2750
+ amount: bigint;
2751
+ usd: number;
2752
+ };
2753
+ totalA: {
2754
+ amount: bigint;
2755
+ usd: number;
2756
+ };
2757
+ totalB: {
2758
+ amount: bigint;
2759
+ usd: number;
2760
+ };
2761
+ pnlA: {
2762
+ amount: bigint;
2763
+ bps: number;
2764
+ };
2765
+ pnlB: {
2766
+ amount: bigint;
2767
+ bps: number;
2768
+ };
2769
+ pnlUsd: {
2770
+ amount: number;
2771
+ bps: number;
2772
+ };
2773
+ openedAt: Date;
2774
+ updatedAtSlot: bigint;
2775
+ closedAt: Date | null;
2776
+ };
2777
+ meta?: any;
2778
+ }>;
2779
+ declare const LendingPositionNotification: z.ZodObject<{
2780
+ meta: z.ZodTypeAny;
2781
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
2782
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2783
+ data: z.ZodObject<{
2784
+ address: z.ZodString;
2785
+ authority: z.ZodString;
2786
+ mint: z.ZodString;
2787
+ vault: z.ZodString;
2788
+ shares: z.ZodBigInt;
2789
+ funds: z.ZodObject<{
2790
+ amount: z.ZodBigInt;
2791
+ usd: z.ZodNumber;
2792
+ }, "strip", z.ZodTypeAny, {
2793
+ amount: bigint;
2794
+ usd: number;
2795
+ }, {
2796
+ amount: bigint;
2797
+ usd: number;
2798
+ }>;
2799
+ earned: z.ZodObject<{
2800
+ amount: z.ZodBigInt;
2801
+ usd: z.ZodNumber;
2802
+ }, "strip", z.ZodTypeAny, {
2803
+ amount: bigint;
2804
+ usd: number;
2805
+ }, {
2806
+ amount: bigint;
2807
+ usd: number;
2808
+ }>;
2809
+ }, "strip", z.ZodTypeAny, {
2810
+ mint: string;
2811
+ address: string;
2812
+ authority: string;
2813
+ vault: string;
2814
+ shares: bigint;
2815
+ funds: {
2816
+ amount: bigint;
2817
+ usd: number;
2818
+ };
2819
+ earned: {
2820
+ amount: bigint;
2821
+ usd: number;
2822
+ };
2823
+ }, {
2824
+ mint: string;
2825
+ address: string;
2826
+ authority: string;
2827
+ vault: string;
2828
+ shares: bigint;
2829
+ funds: {
2830
+ amount: bigint;
2831
+ usd: number;
2832
+ };
2833
+ earned: {
2834
+ amount: bigint;
2835
+ usd: number;
2836
+ };
2837
+ }>;
2838
+ id: z.ZodString;
2839
+ authority: z.ZodNullable<z.ZodString>;
2840
+ } | {
2841
+ meta: z.ZodNullable<z.ZodUndefined>;
2842
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
2843
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2844
+ data: z.ZodObject<{
2845
+ address: z.ZodString;
2846
+ authority: z.ZodString;
2847
+ mint: z.ZodString;
2848
+ vault: z.ZodString;
2849
+ shares: z.ZodBigInt;
2850
+ funds: z.ZodObject<{
2851
+ amount: z.ZodBigInt;
2852
+ usd: z.ZodNumber;
2853
+ }, "strip", z.ZodTypeAny, {
2854
+ amount: bigint;
2855
+ usd: number;
2856
+ }, {
2857
+ amount: bigint;
2858
+ usd: number;
2859
+ }>;
2860
+ earned: z.ZodObject<{
2861
+ amount: z.ZodBigInt;
2862
+ usd: z.ZodNumber;
2863
+ }, "strip", z.ZodTypeAny, {
2864
+ amount: bigint;
2865
+ usd: number;
2866
+ }, {
2867
+ amount: bigint;
2868
+ usd: number;
2869
+ }>;
2870
+ }, "strip", z.ZodTypeAny, {
2871
+ mint: string;
2872
+ address: string;
2873
+ authority: string;
2874
+ vault: string;
2875
+ shares: bigint;
2876
+ funds: {
2877
+ amount: bigint;
2878
+ usd: number;
2879
+ };
2880
+ earned: {
2881
+ amount: bigint;
2882
+ usd: number;
2883
+ };
2884
+ }, {
2885
+ mint: string;
2886
+ address: string;
2887
+ authority: string;
2888
+ vault: string;
2889
+ shares: bigint;
2890
+ funds: {
2891
+ amount: bigint;
2892
+ usd: number;
2893
+ };
2894
+ earned: {
2895
+ amount: bigint;
2896
+ usd: number;
2897
+ };
2898
+ }>;
2899
+ id: z.ZodString;
2900
+ authority: z.ZodNullable<z.ZodString>;
2901
+ }, "strip", z.ZodTypeAny, {
2902
+ authority: string | null;
2903
+ id: string;
2904
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2905
+ action: "create" | "update";
2906
+ data: {
2907
+ mint: string;
2908
+ address: string;
2909
+ authority: string;
2910
+ vault: string;
2911
+ shares: bigint;
2912
+ funds: {
2913
+ amount: bigint;
2914
+ usd: number;
2915
+ };
2916
+ earned: {
2917
+ amount: bigint;
2918
+ usd: number;
2919
+ };
2920
+ };
2921
+ meta?: any;
2922
+ } | {
2923
+ authority: string | null;
2924
+ id: string;
2925
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2926
+ action: "create" | "update";
2927
+ data: {
2928
+ mint: string;
2929
+ address: string;
2930
+ authority: string;
2931
+ vault: string;
2932
+ shares: bigint;
2933
+ funds: {
2934
+ amount: bigint;
2935
+ usd: number;
2936
+ };
2937
+ earned: {
2938
+ amount: bigint;
2939
+ usd: number;
2940
+ };
2941
+ };
2942
+ meta?: any;
2943
+ }, {
2944
+ authority: string | null;
2945
+ id: string;
2946
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2947
+ action: "create" | "update";
2948
+ data: {
2949
+ mint: string;
2950
+ address: string;
2951
+ authority: string;
2952
+ vault: string;
2953
+ shares: bigint;
2954
+ funds: {
2955
+ amount: bigint;
2956
+ usd: number;
2957
+ };
2958
+ earned: {
2959
+ amount: bigint;
2960
+ usd: number;
2961
+ };
2962
+ };
2963
+ meta?: any;
2964
+ } | {
2965
+ authority: string | null;
2966
+ id: string;
2967
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
2968
+ action: "create" | "update";
2969
+ data: {
2970
+ mint: string;
2971
+ address: string;
2972
+ authority: string;
2973
+ vault: string;
2974
+ shares: bigint;
2975
+ funds: {
2976
+ amount: bigint;
2977
+ usd: number;
2978
+ };
2979
+ earned: {
2980
+ amount: bigint;
2981
+ usd: number;
2982
+ };
2983
+ };
2984
+ meta?: any;
2985
+ }>;
2986
+ declare const LimitOrderNotification: z.ZodObject<{
2987
+ meta: z.ZodTypeAny;
2988
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
2989
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
2990
+ data: z.ZodObject<{
2991
+ address: z.ZodString;
2992
+ mint: z.ZodString;
2993
+ pool: z.ZodString;
2994
+ state: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
2995
+ aToB: z.ZodBoolean;
2996
+ tickIndex: z.ZodNumber;
2997
+ fillRatio: z.ZodNumber;
2998
+ openTxSignature: z.ZodString;
2999
+ closeTxSignature: z.ZodNullable<z.ZodString>;
3000
+ amountIn: z.ZodObject<{
3001
+ amount: z.ZodBigInt;
3002
+ usd: z.ZodNumber;
3003
+ }, "strip", z.ZodTypeAny, {
3004
+ amount: bigint;
3005
+ usd: number;
3006
+ }, {
3007
+ amount: bigint;
3008
+ usd: number;
3009
+ }>;
3010
+ amountOut: z.ZodObject<{
3011
+ amount: z.ZodBigInt;
3012
+ usd: z.ZodNumber;
3013
+ }, "strip", z.ZodTypeAny, {
3014
+ amount: bigint;
3015
+ usd: number;
3016
+ }, {
3017
+ amount: bigint;
3018
+ usd: number;
3019
+ }>;
3020
+ openedAt: z.ZodDate;
3021
+ closedAt: z.ZodNullable<z.ZodDate>;
3022
+ }, "strip", z.ZodTypeAny, {
3023
+ mint: string;
3024
+ address: string;
3025
+ state: "open" | "partially_filled" | "filled" | "complete" | "cancelled";
3026
+ pool: string;
3027
+ openedAt: Date;
3028
+ closedAt: Date | null;
3029
+ amountIn: {
3030
+ amount: bigint;
3031
+ usd: number;
3032
+ };
3033
+ amountOut: {
3034
+ amount: bigint;
3035
+ usd: number;
3036
+ };
3037
+ aToB: boolean;
3038
+ tickIndex: number;
3039
+ fillRatio: number;
3040
+ openTxSignature: string;
3041
+ closeTxSignature: string | null;
3042
+ }, {
3043
+ mint: string;
3044
+ address: string;
3045
+ state: "open" | "partially_filled" | "filled" | "complete" | "cancelled";
3046
+ pool: string;
3047
+ openedAt: Date;
3048
+ closedAt: Date | null;
3049
+ amountIn: {
3050
+ amount: bigint;
3051
+ usd: number;
3052
+ };
3053
+ amountOut: {
3054
+ amount: bigint;
3055
+ usd: number;
3056
+ };
3057
+ aToB: boolean;
3058
+ tickIndex: number;
3059
+ fillRatio: number;
3060
+ openTxSignature: string;
3061
+ closeTxSignature: string | null;
3062
+ }>;
3063
+ id: z.ZodString;
3064
+ authority: z.ZodNullable<z.ZodString>;
3065
+ } | {
3066
+ meta: z.ZodNullable<z.ZodUndefined>;
3067
+ entity: z.ZodEnum<["pool_swap", ...("pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order")[]]>;
3068
+ action: z.ZodEnum<["create", ...("create" | "update")[]]>;
3069
+ data: z.ZodObject<{
3070
+ address: z.ZodString;
3071
+ mint: z.ZodString;
3072
+ pool: z.ZodString;
3073
+ state: z.ZodEnum<["open", ...("open" | "partially_filled" | "filled" | "complete" | "cancelled")[]]>;
3074
+ aToB: z.ZodBoolean;
3075
+ tickIndex: z.ZodNumber;
3076
+ fillRatio: z.ZodNumber;
3077
+ openTxSignature: z.ZodString;
3078
+ closeTxSignature: z.ZodNullable<z.ZodString>;
3079
+ amountIn: z.ZodObject<{
3080
+ amount: z.ZodBigInt;
3081
+ usd: z.ZodNumber;
3082
+ }, "strip", z.ZodTypeAny, {
3083
+ amount: bigint;
3084
+ usd: number;
3085
+ }, {
3086
+ amount: bigint;
3087
+ usd: number;
3088
+ }>;
3089
+ amountOut: z.ZodObject<{
3090
+ amount: z.ZodBigInt;
3091
+ usd: z.ZodNumber;
3092
+ }, "strip", z.ZodTypeAny, {
3093
+ amount: bigint;
3094
+ usd: number;
3095
+ }, {
3096
+ amount: bigint;
3097
+ usd: number;
3098
+ }>;
3099
+ openedAt: z.ZodDate;
3100
+ closedAt: z.ZodNullable<z.ZodDate>;
3101
+ }, "strip", z.ZodTypeAny, {
3102
+ mint: string;
3103
+ address: string;
3104
+ state: "open" | "partially_filled" | "filled" | "complete" | "cancelled";
3105
+ pool: string;
3106
+ openedAt: Date;
3107
+ closedAt: Date | null;
3108
+ amountIn: {
3109
+ amount: bigint;
3110
+ usd: number;
3111
+ };
3112
+ amountOut: {
3113
+ amount: bigint;
3114
+ usd: number;
3115
+ };
3116
+ aToB: boolean;
3117
+ tickIndex: number;
3118
+ fillRatio: number;
3119
+ openTxSignature: string;
3120
+ closeTxSignature: string | null;
3121
+ }, {
3122
+ mint: string;
3123
+ address: string;
3124
+ state: "open" | "partially_filled" | "filled" | "complete" | "cancelled";
3125
+ pool: string;
3126
+ openedAt: Date;
3127
+ closedAt: Date | null;
3128
+ amountIn: {
3129
+ amount: bigint;
3130
+ usd: number;
3131
+ };
3132
+ amountOut: {
3133
+ amount: bigint;
3134
+ usd: number;
3135
+ };
3136
+ aToB: boolean;
3137
+ tickIndex: number;
3138
+ fillRatio: number;
3139
+ openTxSignature: string;
3140
+ closeTxSignature: string | null;
3141
+ }>;
3142
+ id: z.ZodString;
3143
+ authority: z.ZodNullable<z.ZodString>;
3144
+ }, "strip", z.ZodTypeAny, {
3145
+ authority: string | null;
3146
+ id: string;
3147
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3148
+ action: "create" | "update";
3149
+ data: {
3150
+ mint: string;
3151
+ address: string;
3152
+ state: "open" | "partially_filled" | "filled" | "complete" | "cancelled";
3153
+ pool: string;
3154
+ openedAt: Date;
3155
+ closedAt: Date | null;
3156
+ amountIn: {
3157
+ amount: bigint;
3158
+ usd: number;
3159
+ };
3160
+ amountOut: {
3161
+ amount: bigint;
3162
+ usd: number;
3163
+ };
3164
+ aToB: boolean;
3165
+ tickIndex: number;
3166
+ fillRatio: number;
3167
+ openTxSignature: string;
3168
+ closeTxSignature: string | null;
3169
+ };
3170
+ meta?: any;
3171
+ } | {
3172
+ authority: string | null;
3173
+ id: string;
3174
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3175
+ action: "create" | "update";
3176
+ data: {
3177
+ mint: string;
3178
+ address: string;
3179
+ state: "open" | "partially_filled" | "filled" | "complete" | "cancelled";
3180
+ pool: string;
3181
+ openedAt: Date;
3182
+ closedAt: Date | null;
3183
+ amountIn: {
3184
+ amount: bigint;
3185
+ usd: number;
3186
+ };
3187
+ amountOut: {
3188
+ amount: bigint;
3189
+ usd: number;
3190
+ };
3191
+ aToB: boolean;
3192
+ tickIndex: number;
3193
+ fillRatio: number;
3194
+ openTxSignature: string;
3195
+ closeTxSignature: string | null;
3196
+ };
3197
+ meta?: any;
3198
+ }, {
3199
+ authority: string | null;
3200
+ id: string;
3201
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3202
+ action: "create" | "update";
3203
+ data: {
3204
+ mint: string;
3205
+ address: string;
3206
+ state: "open" | "partially_filled" | "filled" | "complete" | "cancelled";
3207
+ pool: string;
3208
+ openedAt: Date;
3209
+ closedAt: Date | null;
3210
+ amountIn: {
3211
+ amount: bigint;
3212
+ usd: number;
3213
+ };
3214
+ amountOut: {
3215
+ amount: bigint;
3216
+ usd: number;
3217
+ };
3218
+ aToB: boolean;
3219
+ tickIndex: number;
3220
+ fillRatio: number;
3221
+ openTxSignature: string;
3222
+ closeTxSignature: string | null;
3223
+ };
3224
+ meta?: any;
3225
+ } | {
3226
+ authority: string | null;
3227
+ id: string;
3228
+ entity: "pool_swap" | "pool_price" | "order_book" | "tuna_position" | "lending_position" | "fusion_limit_order";
3229
+ action: "create" | "update";
3230
+ data: {
3231
+ mint: string;
3232
+ address: string;
3233
+ state: "open" | "partially_filled" | "filled" | "complete" | "cancelled";
3234
+ pool: string;
3235
+ openedAt: Date;
3236
+ closedAt: Date | null;
3237
+ amountIn: {
3238
+ amount: bigint;
3239
+ usd: number;
3240
+ };
3241
+ amountOut: {
3242
+ amount: bigint;
3243
+ usd: number;
3244
+ };
3245
+ aToB: boolean;
3246
+ tickIndex: number;
3247
+ fillRatio: number;
3248
+ openTxSignature: string;
3249
+ closeTxSignature: string | null;
3250
+ };
3251
+ meta?: any;
3252
+ }>;
1652
3253
 
3254
+ declare const schemas_LendingPositionNotification: typeof LendingPositionNotification;
3255
+ declare const schemas_LimitOrderNotification: typeof LimitOrderNotification;
1653
3256
  declare const schemas_LimitOrderState: typeof LimitOrderState;
1654
3257
  declare const schemas_LimitOrderStateSchema: typeof LimitOrderStateSchema;
1655
3258
  declare const schemas_NotificationAction: typeof NotificationAction;
@@ -1664,13 +3267,14 @@ declare const schemas_PoolProviderSchema: typeof PoolProviderSchema;
1664
3267
  declare const schemas_PoolSubscriptionTopic: typeof PoolSubscriptionTopic;
1665
3268
  declare const schemas_PoolSubscriptionTopicSchema: typeof PoolSubscriptionTopicSchema;
1666
3269
  declare const schemas_PoolSwapNotification: typeof PoolSwapNotification;
3270
+ declare const schemas_TunaPositionNotification: typeof TunaPositionNotification;
1667
3271
  declare const schemas_TunaPositionState: typeof TunaPositionState;
1668
3272
  declare const schemas_TunaPositionStateSchema: typeof TunaPositionStateSchema;
1669
3273
  declare const schemas_UpdateStreamSubscriptionResult: typeof UpdateStreamSubscriptionResult;
1670
3274
  declare const schemas_WalletSubscriptionTopic: typeof WalletSubscriptionTopic;
1671
3275
  declare const schemas_WalletSubscriptionTopicSchema: typeof WalletSubscriptionTopicSchema;
1672
3276
  declare namespace schemas {
1673
- export { LendingPosition$1 as LendingPosition, LimitOrder$1 as LimitOrder, 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, Tick$1 as Tick, TokenOraclePrice$1 as TokenOraclePrice, TunaPosition$1 as TunaPosition, schemas_TunaPositionState as TunaPositionState, schemas_TunaPositionStateSchema as TunaPositionStateSchema, schemas_UpdateStreamSubscriptionResult as UpdateStreamSubscriptionResult, Vault$1 as Vault, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
3277
+ export { 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, 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, schemas_WalletSubscriptionTopic as WalletSubscriptionTopic, schemas_WalletSubscriptionTopicSchema as WalletSubscriptionTopicSchema };
1674
3278
  }
1675
3279
 
1676
3280
  type PoolProviderType = z.infer<typeof PoolProviderSchema>;