@dodoex/widgets 3.2.0-beta.6 → 3.2.0-beta.8

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.
Files changed (207) hide show
  1. package/LICENSE +674 -674
  2. package/README.md +69 -69
  3. package/dist/{8de9a184d4ef0a11.svg → 219f8611c6c9e6e2.svg} +6 -6
  4. package/dist/{28442382d977858a.svg → 34acf2e58b457195.svg} +9 -9
  5. package/dist/{b3f16b2626f03378.svg → 44df077bd19df476.svg} +10 -10
  6. package/dist/{ed726d76d93d4899.svg → 5c5d298f247819e1.svg} +10 -10
  7. package/dist/7feb1ff0e03a571d.svg +9 -0
  8. package/dist/cjs/locales/en-US.js +1 -1
  9. package/dist/cjs/locales/zh-CN.js +1 -1
  10. package/dist/{helper-iOyIIXHm.js → helper-Bwk-pafn.js} +1 -1
  11. package/dist/{helper-D2B1OtCw.cjs → helper-BxZqNcaq.cjs} +1 -1
  12. package/dist/index-B4_cnc94.cjs +67 -0
  13. package/dist/{index-DWFukWDg.cjs → index-BDehUNkw.cjs} +1 -1
  14. package/dist/{index-BuDihNZU.js → index-Bk4cKKCz.js} +1 -1
  15. package/dist/index-DQp2ouTr.js +67 -0
  16. package/dist/{index-D1nFm1A3.js → index-DRV1A2No.js} +1 -1
  17. package/dist/{index-CUWak-Af.cjs → index-cEhELacT.cjs} +1 -1
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/locales/en-US.js +1 -1
  21. package/dist/locales/zh-CN.js +1 -1
  22. package/dist/types/components/Message/index.d.ts +1 -2
  23. package/dist/types/components/SelectChain.d.ts +1 -2
  24. package/dist/types/components/Swap/components/ConnectWallet/index.d.ts +2 -1
  25. package/dist/types/components/Swap/components/ReviewDialog.d.ts +2 -1
  26. package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageSetting.d.ts +1 -2
  27. package/dist/types/components/Swap/components/SwapSettingsDialog/SlippageWarning.d.ts +1 -3
  28. package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +1 -2
  29. package/dist/types/components/Swap/components/SwitchBox.d.ts +2 -1
  30. package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +1 -0
  31. package/dist/types/components/Swap/components/TokenCard/index.d.ts +5 -2
  32. package/dist/types/components/Swap/index.d.ts +5 -3
  33. package/dist/types/components/TokenSelect.d.ts +2 -1
  34. package/dist/types/components/Widget/index.d.ts +3 -1
  35. package/dist/types/constants/address.d.ts +1 -0
  36. package/dist/types/hooks/ConnectWallet/useSwitchChain.d.ts +0 -3
  37. package/dist/types/hooks/Submission/types.d.ts +4 -0
  38. package/dist/types/hooks/Swap/useSlippageLimit.d.ts +2 -2
  39. package/dist/types/hooks/usePoolTokenSort.d.ts +24 -0
  40. package/dist/types/index.d.ts +3 -1
  41. package/dist/types/providers/useInitContractRequest.d.ts +2 -1
  42. package/dist/types/router/types.d.ts +2 -1
  43. package/dist/types/utils/address.d.ts +35 -0
  44. package/dist/types/utils/fractions/fraction.d.ts +24 -0
  45. package/dist/types/utils/fractions/index.d.ts +3 -0
  46. package/dist/types/utils/fractions/percent.d.ts +14 -0
  47. package/dist/types/utils/fractions/price.d.ts +29 -0
  48. package/dist/types/utils/fractions/types.d.ts +7 -0
  49. package/dist/types/widgets/PoolWidget/AMMV2Create/Ratio.d.ts +1 -4
  50. package/dist/types/widgets/PoolWidget/AMMV2Create/Setting.d.ts +16 -0
  51. package/dist/types/widgets/PoolWidget/Algebra/AddLiquidity.d.ts +14 -0
  52. package/dist/types/widgets/PoolWidget/Algebra/AlgebraPositionManage.d.ts +11 -0
  53. package/dist/types/widgets/PoolWidget/Algebra/components/Badge/RangeBadge.d.ts +4 -0
  54. package/dist/types/widgets/PoolWidget/Algebra/components/ClaimButton.d.ts +9 -0
  55. package/dist/types/widgets/PoolWidget/Algebra/components/InRangeDot.d.ts +4 -0
  56. package/dist/types/widgets/PoolWidget/Algebra/components/InputStepCounter.d.ts +17 -0
  57. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Area.d.ts +10 -0
  58. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/AxisBottom.d.ts +6 -0
  59. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Brush.d.ts +13 -0
  60. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Chart.d.ts +2 -0
  61. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Line.d.ts +6 -0
  62. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/Zoom.d.ts +12 -0
  63. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/index.d.ts +19 -0
  64. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/svg.d.ts +22 -0
  65. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/types.d.ts +50 -0
  66. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -0
  67. package/dist/types/widgets/PoolWidget/Algebra/components/LiquidityChartRangeInput/utils.d.ts +14 -0
  68. package/dist/types/widgets/PoolWidget/Algebra/components/MyLiquidity.d.ts +10 -0
  69. package/dist/types/widgets/PoolWidget/Algebra/components/PositionPreview.d.ts +14 -0
  70. package/dist/types/widgets/PoolWidget/Algebra/components/PositionSelectedRangePreview.d.ts +11 -0
  71. package/dist/types/widgets/PoolWidget/Algebra/components/RangeSelector.d.ts +21 -0
  72. package/dist/types/widgets/PoolWidget/Algebra/components/RateToggle.d.ts +9 -0
  73. package/dist/types/widgets/PoolWidget/Algebra/components/RemoveButton.d.ts +11 -0
  74. package/dist/types/widgets/PoolWidget/Algebra/components/ReviewModal.d.ts +18 -0
  75. package/dist/types/widgets/PoolWidget/Algebra/components/TokenAndEtherscan.d.ts +4 -0
  76. package/dist/types/widgets/PoolWidget/Algebra/components/TokenPairSelect.d.ts +7 -0
  77. package/dist/types/widgets/PoolWidget/Algebra/components/shared.d.ts +4 -0
  78. package/dist/types/widgets/PoolWidget/Algebra/components/widgets.d.ts +56 -0
  79. package/dist/types/widgets/PoolWidget/Algebra/constants/misc.d.ts +17 -0
  80. package/dist/types/widgets/PoolWidget/Algebra/hooks/useAddAlgebraLiquidity.d.ts +15 -0
  81. package/dist/types/widgets/PoolWidget/Algebra/hooks/useAlgebraAmounts.d.ts +19 -0
  82. package/dist/types/widgets/PoolWidget/Algebra/hooks/useAlgebraPair.d.ts +59 -0
  83. package/dist/types/widgets/PoolWidget/Algebra/hooks/useAlgebraPositionFees.d.ts +13 -0
  84. package/dist/types/widgets/PoolWidget/Algebra/hooks/useClaimAlgebraFees.d.ts +12 -0
  85. package/dist/types/widgets/PoolWidget/Algebra/hooks/useContract.d.ts +2 -0
  86. package/dist/types/widgets/PoolWidget/Algebra/hooks/useFetchPositionFromTokenId.d.ts +295 -0
  87. package/dist/types/widgets/PoolWidget/Algebra/hooks/useFetchPositions.d.ts +23 -0
  88. package/dist/types/widgets/PoolWidget/Algebra/hooks/usePoolActiveLiquidityChartData.d.ts +37 -0
  89. package/dist/types/widgets/PoolWidget/Algebra/hooks/usePools.d.ts +22 -0
  90. package/dist/types/widgets/PoolWidget/Algebra/hooks/useRemoveAlgebraLiquidity.d.ts +14 -0
  91. package/dist/types/widgets/PoolWidget/Algebra/hooks/useSetRange.d.ts +32 -0
  92. package/dist/types/widgets/PoolWidget/Algebra/hooks/useSwapTaxes.d.ts +5 -0
  93. package/dist/types/widgets/PoolWidget/Algebra/hooks/useV3MintActionHandlers.d.ts +11 -0
  94. package/dist/types/widgets/PoolWidget/Algebra/hooks/useV3PositionFees.d.ts +8 -0
  95. package/dist/types/widgets/PoolWidget/Algebra/hooks/useV3Positions.d.ts +13 -0
  96. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/addresses.d.ts +12 -0
  97. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/chains.d.ts +4 -0
  98. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/constants.d.ts +12 -0
  99. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/baseCurrency.d.ts +49 -0
  100. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/currency.d.ts +3 -0
  101. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/currencyAmount.d.ts +32 -0
  102. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/fraction.d.ts +24 -0
  103. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/index.d.ts +4 -0
  104. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/percent.d.ts +14 -0
  105. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/fractions/price.d.ts +38 -0
  106. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/index.d.ts +4 -0
  107. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/nativeCurrency.d.ts +16 -0
  108. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/nativeCurrencyClass.d.ts +8 -0
  109. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/entities/token.d.ts +48 -0
  110. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/index.d.ts +5 -0
  111. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/computePriceImpact.d.ts +8 -0
  112. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/index.d.ts +4 -0
  113. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/sortedInsert.d.ts +1 -0
  114. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/sqrt.d.ts +7 -0
  115. package/dist/types/widgets/PoolWidget/Algebra/sdks/sdk-core/utils/validateAndParseAddress.d.ts +10 -0
  116. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/constants.d.ts +23 -0
  117. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/index.d.ts +7 -0
  118. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/pool.d.ts +81 -0
  119. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/position.d.ts +131 -0
  120. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/route.d.ts +26 -0
  121. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/tick.d.ts +13 -0
  122. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/tickDataProvider.d.ts +31 -0
  123. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/tickListDataProvider.d.ts +15 -0
  124. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/entities/trade.d.ts +220 -0
  125. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/index.d.ts +10 -0
  126. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/internalConstants.d.ts +6 -0
  127. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/multicall.d.ts +10 -0
  128. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/nonfungiblePositionManager.d.ts +159 -0
  129. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/payments.d.ts +24 -0
  130. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/quoter.d.ts +37 -0
  131. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/selfPermit.d.ts +25 -0
  132. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/staker.d.ts +101 -0
  133. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/swapRouter.d.ts +51 -0
  134. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/calldata.d.ts +20 -0
  135. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/computePoolAddress.d.ts +21 -0
  136. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/encodeRouteToPath.d.ts +8 -0
  137. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/encodeSqrtRatioX96.d.ts +9 -0
  138. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/fullMath.d.ts +8 -0
  139. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/index.d.ts +18 -0
  140. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/isSorted.d.ts +7 -0
  141. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/liquidityMath.d.ts +8 -0
  142. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/maxLiquidityForAmounts.d.ts +14 -0
  143. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/mostSignificantBit.d.ts +2 -0
  144. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/nearestUsableTick.d.ts +6 -0
  145. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/position.d.ts +8 -0
  146. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/priceTickConversions.d.ts +15 -0
  147. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/sqrtPriceMath.d.ts +13 -0
  148. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/swapMath.d.ts +9 -0
  149. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/tickLibrary.d.ts +14 -0
  150. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/tickList.d.ts +23 -0
  151. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/tickMath.d.ts +34 -0
  152. package/dist/types/widgets/PoolWidget/Algebra/sdks/v3-sdk/utils/v3swap.d.ts +8 -0
  153. package/dist/types/widgets/PoolWidget/Algebra/types/position.d.ts +18 -0
  154. package/dist/types/widgets/PoolWidget/Algebra/types.d.ts +10 -0
  155. package/dist/types/widgets/PoolWidget/Algebra/utils/calldata.d.ts +7 -0
  156. package/dist/types/widgets/PoolWidget/Algebra/utils/computeSurroundingTicks.d.ts +4 -0
  157. package/dist/types/widgets/PoolWidget/Algebra/utils/constants.d.ts +7 -0
  158. package/dist/types/widgets/PoolWidget/Algebra/utils/encodeSqrtRatioX96.d.ts +9 -0
  159. package/dist/types/widgets/PoolWidget/Algebra/utils/formatTickPrice.d.ts +1 -0
  160. package/dist/types/widgets/PoolWidget/Algebra/utils/fullMath.d.ts +8 -0
  161. package/dist/types/widgets/PoolWidget/Algebra/utils/getPositionAmount.d.ts +37 -0
  162. package/dist/types/widgets/PoolWidget/Algebra/utils/getPositionAmountWithSlippage.d.ts +23 -0
  163. package/dist/types/widgets/PoolWidget/Algebra/utils/getTickToPrice.d.ts +10 -0
  164. package/dist/types/widgets/PoolWidget/Algebra/utils/maxLiquidityForAmounts.d.ts +22 -0
  165. package/dist/types/widgets/PoolWidget/Algebra/utils/mostSignificantBit.d.ts +2 -0
  166. package/dist/types/widgets/PoolWidget/Algebra/utils/nearestUsableTick.d.ts +6 -0
  167. package/dist/types/widgets/PoolWidget/Algebra/utils/slippage.d.ts +3 -0
  168. package/dist/types/widgets/PoolWidget/Algebra/utils/sqrt.d.ts +7 -0
  169. package/dist/types/widgets/PoolWidget/Algebra/utils/sqrtPriceMath.d.ts +13 -0
  170. package/dist/types/widgets/PoolWidget/Algebra/utils/tickMath.d.ts +34 -0
  171. package/dist/types/widgets/PoolWidget/Algebra/utils/tryParseTick.d.ts +4 -0
  172. package/dist/types/widgets/PoolWidget/Algebra/utils.d.ts +9 -0
  173. package/dist/types/widgets/PoolWidget/PoolCreate/components/BaseInfoCardList.d.ts +1 -3
  174. package/dist/types/widgets/PoolWidget/PoolCreate/components/FeeRateCard.d.ts +1 -2
  175. package/dist/types/widgets/PoolWidget/PoolCreate/components/LqRatioSet.d.ts +1 -2
  176. package/dist/types/widgets/PoolWidget/PoolCreate/components/LqSettingsShow.d.ts +1 -3
  177. package/dist/types/widgets/PoolWidget/PoolCreate/components/PriceModeCard.d.ts +1 -3
  178. package/dist/types/widgets/PoolWidget/PoolCreate/components/VersionChartExample.d.ts +1 -2
  179. package/dist/types/widgets/PoolWidget/PoolCreate/components/widgets.d.ts +1 -2
  180. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/usePriceInit.d.ts +1 -2
  181. package/dist/types/widgets/PoolWidget/PoolCreate/hooks/useVersionList.d.ts +3 -3
  182. package/dist/types/widgets/PoolWidget/PoolCreate/index.d.ts +1 -3
  183. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/InitPriceSetting.d.ts +1 -2
  184. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/PriceModeSetting.d.ts +1 -2
  185. package/dist/types/widgets/PoolWidget/PoolCreate/operate-widgets/VersionSelect.d.ts +1 -2
  186. package/dist/types/widgets/PoolWidget/PoolDetail/components/MoreDetail/index.d.ts +1 -2
  187. package/dist/types/widgets/PoolWidget/PoolDetail/components/Overview.d.ts +1 -2
  188. package/dist/types/widgets/PoolWidget/PoolDetail/components/TotalLiquidity.d.ts +1 -2
  189. package/dist/types/widgets/PoolWidget/PoolDetail/index.d.ts +1 -2
  190. package/dist/types/widgets/PoolWidget/PoolList/AddLiquidity.d.ts +5 -4
  191. package/dist/types/widgets/PoolWidget/PoolList/MyCreated.d.ts +1 -2
  192. package/dist/types/widgets/PoolWidget/PoolList/MyLiquidity.d.ts +5 -4
  193. package/dist/types/widgets/PoolWidget/PoolList/index.d.ts +9 -5
  194. package/dist/types/widgets/PoolWidget/PoolModify/index.d.ts +1 -2
  195. package/dist/types/widgets/PoolWidget/PoolOperate/PoolOperateInner.d.ts +2 -4
  196. package/dist/types/widgets/PoolWidget/PoolOperate/RemovePoolOperate.d.ts +2 -4
  197. package/dist/types/widgets/PoolWidget/PoolOperate/components/Ratio.d.ts +1 -5
  198. package/dist/types/widgets/PoolWidget/PoolOperate/components/SlippageSetting.d.ts +1 -1
  199. package/dist/types/widgets/PoolWidget/PoolOperate/index.d.ts +1 -4
  200. package/dist/types/widgets/PoolWidget/PoolOperate/types.d.ts +0 -12
  201. package/dist/types/widgets/PoolWidget/hooks/contract/useModifyDppPool.d.ts +1 -1
  202. package/dist/types/widgets/PoolWidget/hooks/useAMMV2AddLiquidity.d.ts +1 -1
  203. package/dist/types/widgets/PoolWidget/hooks/useAMMV2RemoveLiquidity.d.ts +1 -1
  204. package/package.json +156 -156
  205. package/dist/index-Dn8BMKjl.cjs +0 -31
  206. package/dist/index-Dz9qNpWS.js +0 -31
  207. package/dist/types/components/Swap/components/SwapPreviewInfoCard.d.ts +0 -7
@@ -0,0 +1,56 @@
1
+ import { BoxProps } from '@dodoex/components';
2
+ declare const gapValues: {
3
+ xs: string;
4
+ sm: string;
5
+ md: string;
6
+ lg: string;
7
+ xl: string;
8
+ };
9
+ export type Gap = keyof typeof gapValues;
10
+ export interface YellowCardProps {
11
+ children?: React.ReactNode;
12
+ }
13
+ export declare const Card: ({ children, sx, }: {
14
+ sx?: BoxProps["sx"];
15
+ children?: React.ReactNode;
16
+ }) => JSX.Element;
17
+ export declare const LightCard: ({ children, border, sx, }: {
18
+ sx?: BoxProps["sx"];
19
+ border?: boolean;
20
+ children?: React.ReactNode;
21
+ }) => JSX.Element;
22
+ export declare const YellowCard: ({ children }: YellowCardProps) => JSX.Element;
23
+ export declare function ColumnCenter({ gap, flex, children, style, }: {
24
+ gap?: Gap | string;
25
+ flex?: string;
26
+ children: React.ReactNode;
27
+ style?: BoxProps['sx'];
28
+ }): JSX.Element;
29
+ export declare function AutoColumn({ gap, justify, grow, children, style, }: {
30
+ gap?: Gap | string;
31
+ justify?: 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'space-between';
32
+ grow?: true;
33
+ children: React.ReactNode;
34
+ style?: BoxProps['sx'];
35
+ }): JSX.Element;
36
+ export declare function Row({ gap, children, sx, }: {
37
+ gap?: Gap | string;
38
+ children: React.ReactNode;
39
+ sx?: BoxProps['sx'];
40
+ }): JSX.Element;
41
+ export declare function RowBetween({ children, style, }: {
42
+ children: React.ReactNode;
43
+ style?: BoxProps['sx'];
44
+ }): JSX.Element;
45
+ export declare function RowFixed({ gap, justify, children, sx, }: {
46
+ gap?: string;
47
+ justify?: string;
48
+ children: React.ReactNode;
49
+ sx?: BoxProps['sx'];
50
+ }): JSX.Element;
51
+ export declare function DynamicSection({ children, disabled, sx, }: {
52
+ children: React.ReactNode;
53
+ disabled?: boolean;
54
+ sx?: BoxProps['sx'];
55
+ }): JSX.Element;
56
+ export {};
@@ -0,0 +1,17 @@
1
+ import JSBI from 'jsbi';
2
+ import { Percent } from '../../../../utils/fractions';
3
+ export declare const ZERO_ADDRESS = "0x0000000000000000000000000000000000000000";
4
+ export declare const DEFAULT_DEADLINE_FROM_NOW: number;
5
+ export declare const L2_DEADLINE_FROM_NOW: number;
6
+ export declare const DEFAULT_TXN_DISMISS_MS = 10000;
7
+ export declare const L2_TXN_DISMISS_MS = 5000;
8
+ export declare const BIG_INT_ZERO: JSBI;
9
+ export declare const BIPS_BASE = 10000;
10
+ export declare const ONE_BIPS: Percent;
11
+ export declare const ALLOWED_PRICE_IMPACT_LOW: Percent;
12
+ export declare const ALLOWED_PRICE_IMPACT_MEDIUM: Percent;
13
+ export declare const ALLOWED_PRICE_IMPACT_HIGH: Percent;
14
+ export declare const PRICE_IMPACT_WITHOUT_FEE_CONFIRM_MIN: Percent;
15
+ export declare const BLOCKED_PRICE_IMPACT_NON_EXPERT: Percent;
16
+ export declare const ZERO_PERCENT: Percent;
17
+ export declare const ONE_HUNDRED_PERCENT: Percent;
@@ -0,0 +1,15 @@
1
+ import { useAlgebraPair } from './useAlgebraPair';
2
+ export declare function useAddAlgebraLiquidity(): import("@tanstack/react-query").UseMutationResult<import("../../../../hooks/Submission/types").ExecutionResult | undefined, Error, {
3
+ createPool?: boolean;
4
+ recipient?: string;
5
+ deployer?: string;
6
+ pool?: ReturnType<typeof useAlgebraPair>;
7
+ tokenId?: number | string;
8
+ amount0: string;
9
+ amount1: string;
10
+ tickLower: number;
11
+ tickUpper: number;
12
+ amount0Min: string;
13
+ amount1Min: string;
14
+ successBack?: () => void;
15
+ }, unknown>;
@@ -0,0 +1,19 @@
1
+ import { TokenInfo } from '../../../../hooks/Token';
2
+ import JSBI from 'jsbi';
3
+ export declare function useAlgebraAmounts({ baseToken, quoteToken, sqrtRatioX96, tickCurrent, tickLower, tickUpper, }: {
4
+ baseToken: TokenInfo | undefined;
5
+ quoteToken: TokenInfo | undefined;
6
+ sqrtRatioX96: JSBI | undefined;
7
+ tickCurrent: number | undefined;
8
+ tickLower: number | undefined;
9
+ tickUpper: number | undefined;
10
+ }): {
11
+ readonly: boolean;
12
+ baseAmount: string;
13
+ quoteAmount: string;
14
+ handleChangeBaseAmount: (value: string) => void;
15
+ handleChangeQuoteAmount: (value: string) => void;
16
+ handleBlurBaseAmount: (value: string) => void;
17
+ handleBlurQuoteAmount: (value: string) => void;
18
+ reset: () => void;
19
+ };
@@ -0,0 +1,59 @@
1
+ import { TokenInfo } from '../../../../hooks/Token';
2
+ import { Price } from '../../../../utils/fractions';
3
+ export declare function useAlgebraPair({ baseToken, quoteToken, startPriceTypedValue, }: {
4
+ baseToken: TokenInfo | undefined;
5
+ quoteToken: TokenInfo | undefined;
6
+ startPriceTypedValue?: string;
7
+ }): {
8
+ chainId: undefined;
9
+ isRearTokenA: boolean;
10
+ token0: undefined;
11
+ token1: undefined;
12
+ token0Wrapped: undefined;
13
+ token1Wrapped: undefined;
14
+ isBaseTokenNative: boolean;
15
+ isQuoteTokenNative: boolean;
16
+ isExists: boolean;
17
+ address: string | undefined;
18
+ fetchTickSpacing: import("@tanstack/react-query").UseQueryResult<bigint, Error>;
19
+ fetchGlobalState: import("@tanstack/react-query").UseQueryResult<{
20
+ price: bigint;
21
+ tick: bigint;
22
+ lastFee: bigint;
23
+ pluginConfig: bigint;
24
+ communityFee: bigint;
25
+ unlocked: boolean;
26
+ }, Error>;
27
+ fetchLiquidity: import("@tanstack/react-query").UseQueryResult<bigint, Error>;
28
+ currentTick: number | undefined;
29
+ currentSqrt: string | undefined;
30
+ price: Price | undefined;
31
+ reversePrice: string | undefined;
32
+ tickSpacing: number;
33
+ } | {
34
+ chainId: import("@dodoex/api").ChainId;
35
+ isRearTokenA: boolean;
36
+ token0: TokenInfo;
37
+ token1: TokenInfo;
38
+ token0Wrapped: TokenInfo;
39
+ token1Wrapped: TokenInfo;
40
+ isBaseTokenNative: boolean;
41
+ isQuoteTokenNative: boolean;
42
+ isExists: boolean;
43
+ address: string | undefined;
44
+ fetchTickSpacing: import("@tanstack/react-query").UseQueryResult<bigint, Error>;
45
+ fetchGlobalState: import("@tanstack/react-query").UseQueryResult<{
46
+ price: bigint;
47
+ tick: bigint;
48
+ lastFee: bigint;
49
+ pluginConfig: bigint;
50
+ communityFee: bigint;
51
+ unlocked: boolean;
52
+ }, Error>;
53
+ fetchLiquidity: import("@tanstack/react-query").UseQueryResult<bigint, Error>;
54
+ currentTick: number | undefined;
55
+ currentSqrt: string | undefined;
56
+ price: Price | undefined;
57
+ reversePrice: string | undefined;
58
+ tickSpacing: number;
59
+ };
@@ -0,0 +1,13 @@
1
+ import { ChainId } from '@dodoex/api';
2
+ export declare function useAlgebraPositionFees({ chainId, tokenId, }: {
3
+ chainId: ChainId;
4
+ tokenId: string;
5
+ }): {
6
+ data: {
7
+ amount0: bigint;
8
+ amount1: bigint;
9
+ } | undefined;
10
+ isLoading: boolean;
11
+ isError: boolean;
12
+ errorRefetch: () => void;
13
+ };
@@ -0,0 +1,12 @@
1
+ import BigNumber from 'bignumber.js';
2
+ export declare function useClaimAlgebraFees(): import("@tanstack/react-query").UseMutationResult<import("../../../../hooks/Submission/types").ExecutionResult | undefined, Error, {
3
+ chainId?: number;
4
+ tokenId?: number | string;
5
+ collectOptions: {
6
+ expectedCurrencyOwed0: BigNumber;
7
+ expectedCurrencyOwed1: BigNumber;
8
+ recipient: string;
9
+ };
10
+ involvesETH?: boolean;
11
+ successBack?: () => void;
12
+ }, unknown>;
@@ -0,0 +1,2 @@
1
+ import { ChainId } from '@dodoex/api';
2
+ export declare function useV3NFTPositionManagerContract(chainId: ChainId | undefined): string | undefined;
@@ -0,0 +1,295 @@
1
+ export declare function useFetchPositionFromTokenId({ chainId, tokenId, }: {
2
+ chainId: number | undefined;
3
+ tokenId: string | undefined;
4
+ }): {
5
+ position: {
6
+ tokenId: string | undefined;
7
+ pool: string;
8
+ feeGrowthInside0LastX128: bigint;
9
+ feeGrowthInside1LastX128: bigint;
10
+ liquidity: bigint;
11
+ nonce: bigint;
12
+ operator: string;
13
+ tickLower: number;
14
+ tickUpper: number;
15
+ token0: string;
16
+ token1: string;
17
+ tokensOwed0: bigint;
18
+ tokensOwed1: bigint;
19
+ } | undefined;
20
+ data: {
21
+ nonce: bigint;
22
+ operator: string;
23
+ token0: string;
24
+ token1: string;
25
+ deployer: string;
26
+ tickLower: bigint;
27
+ tickUpper: bigint;
28
+ liquidity: bigint;
29
+ feeGrowthInside0LastX128: bigint;
30
+ feeGrowthInside1LastX128: bigint;
31
+ tokensOwed0: bigint;
32
+ tokensOwed1: bigint;
33
+ };
34
+ error: Error;
35
+ isError: true;
36
+ isPending: false;
37
+ isLoading: false;
38
+ isLoadingError: false;
39
+ isRefetchError: true;
40
+ isSuccess: false;
41
+ status: "error";
42
+ dataUpdatedAt: number;
43
+ errorUpdatedAt: number;
44
+ failureCount: number;
45
+ failureReason: Error | null;
46
+ errorUpdateCount: number;
47
+ isFetched: boolean;
48
+ isFetchedAfterMount: boolean;
49
+ isFetching: boolean;
50
+ isInitialLoading: boolean;
51
+ isPaused: boolean;
52
+ isPlaceholderData: boolean;
53
+ isRefetching: boolean;
54
+ isStale: boolean;
55
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
56
+ nonce: bigint;
57
+ operator: string;
58
+ token0: string;
59
+ token1: string;
60
+ deployer: string;
61
+ tickLower: bigint;
62
+ tickUpper: bigint;
63
+ liquidity: bigint;
64
+ feeGrowthInside0LastX128: bigint;
65
+ feeGrowthInside1LastX128: bigint;
66
+ tokensOwed0: bigint;
67
+ tokensOwed1: bigint;
68
+ }, Error>>;
69
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
70
+ } | {
71
+ position: {
72
+ tokenId: string | undefined;
73
+ pool: string;
74
+ feeGrowthInside0LastX128: bigint;
75
+ feeGrowthInside1LastX128: bigint;
76
+ liquidity: bigint;
77
+ nonce: bigint;
78
+ operator: string;
79
+ tickLower: number;
80
+ tickUpper: number;
81
+ token0: string;
82
+ token1: string;
83
+ tokensOwed0: bigint;
84
+ tokensOwed1: bigint;
85
+ } | undefined;
86
+ data: {
87
+ nonce: bigint;
88
+ operator: string;
89
+ token0: string;
90
+ token1: string;
91
+ deployer: string;
92
+ tickLower: bigint;
93
+ tickUpper: bigint;
94
+ liquidity: bigint;
95
+ feeGrowthInside0LastX128: bigint;
96
+ feeGrowthInside1LastX128: bigint;
97
+ tokensOwed0: bigint;
98
+ tokensOwed1: bigint;
99
+ };
100
+ error: null;
101
+ isError: false;
102
+ isPending: false;
103
+ isLoading: false;
104
+ isLoadingError: false;
105
+ isRefetchError: false;
106
+ isSuccess: true;
107
+ status: "success";
108
+ dataUpdatedAt: number;
109
+ errorUpdatedAt: number;
110
+ failureCount: number;
111
+ failureReason: Error | null;
112
+ errorUpdateCount: number;
113
+ isFetched: boolean;
114
+ isFetchedAfterMount: boolean;
115
+ isFetching: boolean;
116
+ isInitialLoading: boolean;
117
+ isPaused: boolean;
118
+ isPlaceholderData: boolean;
119
+ isRefetching: boolean;
120
+ isStale: boolean;
121
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
122
+ nonce: bigint;
123
+ operator: string;
124
+ token0: string;
125
+ token1: string;
126
+ deployer: string;
127
+ tickLower: bigint;
128
+ tickUpper: bigint;
129
+ liquidity: bigint;
130
+ feeGrowthInside0LastX128: bigint;
131
+ feeGrowthInside1LastX128: bigint;
132
+ tokensOwed0: bigint;
133
+ tokensOwed1: bigint;
134
+ }, Error>>;
135
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
136
+ } | {
137
+ position: {
138
+ tokenId: string | undefined;
139
+ pool: string;
140
+ feeGrowthInside0LastX128: bigint;
141
+ feeGrowthInside1LastX128: bigint;
142
+ liquidity: bigint;
143
+ nonce: bigint;
144
+ operator: string;
145
+ tickLower: number;
146
+ tickUpper: number;
147
+ token0: string;
148
+ token1: string;
149
+ tokensOwed0: bigint;
150
+ tokensOwed1: bigint;
151
+ } | undefined;
152
+ data: undefined;
153
+ error: Error;
154
+ isError: true;
155
+ isPending: false;
156
+ isLoading: false;
157
+ isLoadingError: true;
158
+ isRefetchError: false;
159
+ isSuccess: false;
160
+ status: "error";
161
+ dataUpdatedAt: number;
162
+ errorUpdatedAt: number;
163
+ failureCount: number;
164
+ failureReason: Error | null;
165
+ errorUpdateCount: number;
166
+ isFetched: boolean;
167
+ isFetchedAfterMount: boolean;
168
+ isFetching: boolean;
169
+ isInitialLoading: boolean;
170
+ isPaused: boolean;
171
+ isPlaceholderData: boolean;
172
+ isRefetching: boolean;
173
+ isStale: boolean;
174
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
175
+ nonce: bigint;
176
+ operator: string;
177
+ token0: string;
178
+ token1: string;
179
+ deployer: string;
180
+ tickLower: bigint;
181
+ tickUpper: bigint;
182
+ liquidity: bigint;
183
+ feeGrowthInside0LastX128: bigint;
184
+ feeGrowthInside1LastX128: bigint;
185
+ tokensOwed0: bigint;
186
+ tokensOwed1: bigint;
187
+ }, Error>>;
188
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
189
+ } | {
190
+ position: {
191
+ tokenId: string | undefined;
192
+ pool: string;
193
+ feeGrowthInside0LastX128: bigint;
194
+ feeGrowthInside1LastX128: bigint;
195
+ liquidity: bigint;
196
+ nonce: bigint;
197
+ operator: string;
198
+ tickLower: number;
199
+ tickUpper: number;
200
+ token0: string;
201
+ token1: string;
202
+ tokensOwed0: bigint;
203
+ tokensOwed1: bigint;
204
+ } | undefined;
205
+ data: undefined;
206
+ error: null;
207
+ isError: false;
208
+ isPending: true;
209
+ isLoading: true;
210
+ isLoadingError: false;
211
+ isRefetchError: false;
212
+ isSuccess: false;
213
+ status: "pending";
214
+ dataUpdatedAt: number;
215
+ errorUpdatedAt: number;
216
+ failureCount: number;
217
+ failureReason: Error | null;
218
+ errorUpdateCount: number;
219
+ isFetched: boolean;
220
+ isFetchedAfterMount: boolean;
221
+ isFetching: boolean;
222
+ isInitialLoading: boolean;
223
+ isPaused: boolean;
224
+ isPlaceholderData: boolean;
225
+ isRefetching: boolean;
226
+ isStale: boolean;
227
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
228
+ nonce: bigint;
229
+ operator: string;
230
+ token0: string;
231
+ token1: string;
232
+ deployer: string;
233
+ tickLower: bigint;
234
+ tickUpper: bigint;
235
+ liquidity: bigint;
236
+ feeGrowthInside0LastX128: bigint;
237
+ feeGrowthInside1LastX128: bigint;
238
+ tokensOwed0: bigint;
239
+ tokensOwed1: bigint;
240
+ }, Error>>;
241
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
242
+ } | {
243
+ position: {
244
+ tokenId: string | undefined;
245
+ pool: string;
246
+ feeGrowthInside0LastX128: bigint;
247
+ feeGrowthInside1LastX128: bigint;
248
+ liquidity: bigint;
249
+ nonce: bigint;
250
+ operator: string;
251
+ tickLower: number;
252
+ tickUpper: number;
253
+ token0: string;
254
+ token1: string;
255
+ tokensOwed0: bigint;
256
+ tokensOwed1: bigint;
257
+ } | undefined;
258
+ data: undefined;
259
+ error: null;
260
+ isError: false;
261
+ isPending: true;
262
+ isLoadingError: false;
263
+ isRefetchError: false;
264
+ isSuccess: false;
265
+ status: "pending";
266
+ dataUpdatedAt: number;
267
+ errorUpdatedAt: number;
268
+ failureCount: number;
269
+ failureReason: Error | null;
270
+ errorUpdateCount: number;
271
+ isFetched: boolean;
272
+ isFetchedAfterMount: boolean;
273
+ isFetching: boolean;
274
+ isLoading: boolean;
275
+ isInitialLoading: boolean;
276
+ isPaused: boolean;
277
+ isPlaceholderData: boolean;
278
+ isRefetching: boolean;
279
+ isStale: boolean;
280
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
281
+ nonce: bigint;
282
+ operator: string;
283
+ token0: string;
284
+ token1: string;
285
+ deployer: string;
286
+ tickLower: bigint;
287
+ tickUpper: bigint;
288
+ liquidity: bigint;
289
+ feeGrowthInside0LastX128: bigint;
290
+ feeGrowthInside1LastX128: bigint;
291
+ tokensOwed0: bigint;
292
+ tokensOwed1: bigint;
293
+ }, Error>>;
294
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
295
+ };
@@ -0,0 +1,23 @@
1
+ export declare function useFetchPositions({ account, chainId, }: {
2
+ account?: string;
3
+ chainId?: number;
4
+ }): {
5
+ isError: boolean;
6
+ isLoading: boolean;
7
+ refetchError: () => void;
8
+ positions: {
9
+ tokenId: number;
10
+ pool: string;
11
+ feeGrowthInside0LastX128: bigint;
12
+ feeGrowthInside1LastX128: bigint;
13
+ liquidity: bigint;
14
+ nonce: bigint;
15
+ operator: string;
16
+ tickLower: bigint;
17
+ tickUpper: bigint;
18
+ token0: string;
19
+ token1: string;
20
+ tokensOwed0: bigint;
21
+ tokensOwed1: bigint;
22
+ }[];
23
+ };
@@ -0,0 +1,37 @@
1
+ import JSBI from 'jsbi';
2
+ import { TokenInfo } from '../../../../hooks/Token';
3
+ import { Price } from '../../../../utils/fractions';
4
+ import { ChartEntry } from '../components/LiquidityChartRangeInput/types';
5
+ export interface TickProcessed {
6
+ tick: number;
7
+ liquidityActive: JSBI;
8
+ liquidityNet: JSBI;
9
+ price0: string;
10
+ sdkPrice: Price;
11
+ }
12
+ export interface FetchTicks {
13
+ ticks: Array<{
14
+ id: string;
15
+ liquidityNet: string;
16
+ poolAddress?: string;
17
+ price0: string;
18
+ price1: string;
19
+ tickIdx: string;
20
+ }> | undefined | null;
21
+ isLoading: boolean;
22
+ isError: boolean;
23
+ refetch: () => void;
24
+ }
25
+ export declare function usePoolActiveLiquidityChartData({ tickCurrent, liquidity, fetchTicks, token0, token1, }: {
26
+ tickCurrent: number | undefined;
27
+ liquidity: number | undefined;
28
+ fetchTicks?: FetchTicks;
29
+ token0: TokenInfo | undefined;
30
+ token1: TokenInfo | undefined;
31
+ }): {
32
+ hidden: boolean;
33
+ isLoading: boolean;
34
+ error: boolean;
35
+ data: TickProcessed[] | undefined;
36
+ formattedData: ChartEntry[] | undefined;
37
+ };
@@ -0,0 +1,22 @@
1
+ import { ChainId } from '@dodoex/api';
2
+ import { BigintIsh, Currency, Token } from '../sdks/sdk-core';
3
+ import { FeeAmount, Pool } from '../sdks/v3-sdk';
4
+ export declare class PoolCache {
5
+ private static MAX_ENTRIES;
6
+ private static pools;
7
+ private static addresses;
8
+ static getPoolAddress(factoryAddress: string, tokenA: Token, tokenB: Token, fee: FeeAmount, chainId: ChainId): string;
9
+ static getPool(tokenA: Token, tokenB: Token, fee: FeeAmount, sqrtPriceX96: BigintIsh, liquidity: BigintIsh, tick: number): Pool;
10
+ }
11
+ export declare enum PoolState {
12
+ LOADING = 0,
13
+ NOT_EXISTS = 1,
14
+ EXISTS = 2,
15
+ INVALID = 3
16
+ }
17
+ export declare function usePools(poolKeys: [
18
+ Currency | undefined,
19
+ Currency | undefined,
20
+ FeeAmount | undefined
21
+ ][]): [PoolState, Pool | null][];
22
+ export declare function usePool(currencyA: Currency | undefined, currencyB: Currency | undefined, feeAmount: FeeAmount | undefined): [PoolState, Pool | null];
@@ -0,0 +1,14 @@
1
+ import BigNumber from 'bignumber.js';
2
+ export declare function useRemoveAlgebraLiquidity(): import("@tanstack/react-query").UseMutationResult<import("../../../../hooks/Submission/types").ExecutionResult | undefined, Error, {
3
+ chainId?: number;
4
+ tokenId?: number | string;
5
+ amount0Min: string;
6
+ amount1Min: string;
7
+ newLiquidity: string;
8
+ collectOptions: {
9
+ expectedCurrencyOwed0: BigNumber;
10
+ expectedCurrencyOwed1: BigNumber;
11
+ recipient: string;
12
+ };
13
+ successBack?: () => void;
14
+ }, unknown>;
@@ -0,0 +1,32 @@
1
+ import { TokenInfo } from '../../../../hooks/Token';
2
+ import React from 'react';
3
+ import { Price } from '../../../../utils/fractions';
4
+ export declare function useSetRange({ tickCurrent, token0, token1, sorted, tickSpacing, price, }: {
5
+ tickCurrent: number | undefined;
6
+ token0: TokenInfo | undefined;
7
+ token1: TokenInfo | undefined;
8
+ sorted: boolean;
9
+ tickSpacing: number;
10
+ price?: Price;
11
+ }): {
12
+ ticksAtLimit: {
13
+ LOWER: boolean;
14
+ UPPER: boolean;
15
+ };
16
+ tickLower: number;
17
+ tickUpper: number;
18
+ priceLower: Price | undefined;
19
+ priceUpper: Price | undefined;
20
+ leftRangeTypedValue: string | boolean;
21
+ rightRangeTypedValue: string | boolean;
22
+ invalidRange: boolean;
23
+ outOfRange: boolean;
24
+ getDecrementLower: () => string;
25
+ getIncrementLower: () => string;
26
+ getDecrementUpper: () => string;
27
+ getIncrementUpper: () => string;
28
+ handleSetFullRange: () => void;
29
+ handleRateToggle: () => void;
30
+ onLeftRangeInput: React.Dispatch<React.SetStateAction<string | boolean>>;
31
+ onRightRangeInput: React.Dispatch<React.SetStateAction<string | boolean>>;
32
+ };
@@ -0,0 +1,5 @@
1
+ import { ChainId } from '@dodoex/api';
2
+ export declare function useSwapTaxes(inputTokenAddress?: string, outputTokenAddress?: string, tokenChainId?: ChainId): {
3
+ inputTax: import("../../../../utils/fractions").Percent;
4
+ outputTax: import("../../../../utils/fractions").Percent;
5
+ };
@@ -0,0 +1,11 @@
1
+ import { Actions } from '../reducer';
2
+ export declare function useV3MintActionHandlers({ noLiquidity, dispatch, }: {
3
+ noLiquidity: boolean | undefined;
4
+ dispatch: React.Dispatch<Actions>;
5
+ }): {
6
+ onFieldAInput: (typedValue: string) => void;
7
+ onFieldBInput: (typedValue: string) => void;
8
+ onLeftRangeInput: (typedValue: string) => void;
9
+ onRightRangeInput: (typedValue: string) => void;
10
+ onStartPriceInput: (typedValue: string) => void;
11
+ };
@@ -0,0 +1,8 @@
1
+ import { ChainId, Currency, CurrencyAmount } from '../sdks/sdk-core';
2
+ import { Pool } from '../sdks/v3-sdk';
3
+ export declare function useV3PositionFees({ chainId, pool, tokenId, asWETH, }: {
4
+ chainId: ChainId;
5
+ pool?: Pool;
6
+ tokenId: string;
7
+ asWETH: boolean;
8
+ }): [CurrencyAmount<Currency>, CurrencyAmount<Currency>] | [undefined, undefined];
@@ -0,0 +1,13 @@
1
+ import { ChainId } from '@dodoex/api';
2
+ import { PositionDetails } from '../types/position';
3
+ interface UseV3PositionsResults {
4
+ loading: boolean;
5
+ positions?: PositionDetails[];
6
+ }
7
+ interface UseV3PositionResults {
8
+ loading: boolean;
9
+ position?: PositionDetails;
10
+ }
11
+ export declare function useV3PositionFromTokenId(tokenId: string | undefined, chainId: ChainId): UseV3PositionResults;
12
+ export declare function useV3Positions(account: string | null | undefined, chainId: ChainId): UseV3PositionsResults;
13
+ export {};