@crypticdot/defituna-api 1.1.31 → 1.1.33

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