@dodoex/widgets 3.0.4-ve33.1 → 3.0.4-ve33.11

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 (185) hide show
  1. package/dist/cjs/locales/en-US.js +1 -1
  2. package/dist/cjs/locales/zh-CN.js +1 -1
  3. package/dist/{helper-C3H6B4Oy.cjs → helper-BASM7Iwr.cjs} +1 -1
  4. package/dist/{helper-0RKQSgE1.js → helper-BASXTlaZ.js} +1 -1
  5. package/dist/{index-8b78r-JT.js → index-BPaBKoXS.js} +1 -1
  6. package/dist/index-CjO6DZLb.js +32 -0
  7. package/dist/index-DH1Xhcg6.cjs +32 -0
  8. package/dist/{index-DdE6aa-k.cjs → index-mk0U3yyv.cjs} +1 -1
  9. package/dist/{index-D9uctpVh.js → index-r9aOMH8w.js} +1 -1
  10. package/dist/{index-CsquFrM1.cjs → index-zX4IFul3.cjs} +1 -1
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +1 -1
  13. package/dist/locales/en-US.js +1 -1
  14. package/dist/locales/zh-CN.js +1 -1
  15. package/dist/types/components/AddressWithLinkAndCopy.d.ts +3 -1
  16. package/dist/types/components/CardWidgets.d.ts +2 -1
  17. package/dist/types/components/SimpleItemInfo.d.ts +4 -0
  18. package/dist/types/components/Swap/components/Dialog.d.ts +3 -0
  19. package/dist/types/components/Swap/components/ReviewDialog.d.ts +1 -2
  20. package/dist/types/components/Swap/components/SwapSettingsDialog/index.d.ts +1 -4
  21. package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +1 -0
  22. package/dist/types/components/Swap/components/TokenCard/TokenLpCard.d.ts +32 -0
  23. package/dist/types/components/Swap/components/TokenCard/index.d.ts +2 -1
  24. package/dist/types/components/Swap/index.d.ts +1 -4
  25. package/dist/types/components/Token/TokenItem.d.ts +2 -1
  26. package/dist/types/components/TokenSelect.d.ts +5 -2
  27. package/dist/types/components/TokenStatusButton.d.ts +1 -1
  28. package/dist/types/components/Widget/index.d.ts +1 -0
  29. package/dist/types/components/WidgetContainer.d.ts +1 -1
  30. package/dist/types/constants/api.d.ts +1 -1
  31. package/dist/types/constants/swap.d.ts +3 -0
  32. package/dist/types/hooks/Submission/types.d.ts +21 -1
  33. package/dist/types/hooks/Swap/useFetchRoutePrice.d.ts +1 -3
  34. package/dist/types/hooks/Swap/useSlippageLimit.d.ts +1 -1
  35. package/dist/types/hooks/Swap/useSwapSettingStore.d.ts +1 -0
  36. package/dist/types/hooks/Token/usePoolTokenSort.d.ts +24 -0
  37. package/dist/types/hooks/useGraphQLRequests.d.ts +0 -1
  38. package/dist/types/index.d.ts +40 -23
  39. package/dist/types/utils/formatter.d.ts +2 -2
  40. package/dist/types/utils/fractions/fraction.d.ts +24 -0
  41. package/dist/types/utils/fractions/index.d.ts +3 -0
  42. package/dist/types/utils/fractions/percent.d.ts +14 -0
  43. package/dist/types/utils/fractions/price.d.ts +29 -0
  44. package/dist/types/utils/fractions/types.d.ts +7 -0
  45. package/dist/types/widgets/PoolWidget/utils.d.ts +2 -0
  46. package/dist/types/widgets/ve33/Ve33IncentiveDetail/AddIncentiveDialog.d.ts +13 -0
  47. package/dist/types/widgets/ve33/Ve33IncentiveDetail/Dashboard.d.ts +1 -0
  48. package/dist/types/widgets/ve33/Ve33IncentiveDetail/PoolInfo.d.ts +5 -0
  49. package/dist/types/widgets/ve33/Ve33IncentiveDetail/index.d.ts +7 -0
  50. package/dist/types/widgets/ve33/Ve33IncentiveList/CardList.d.ts +10 -0
  51. package/dist/types/widgets/ve33/Ve33IncentiveList/TableList.d.ts +11 -0
  52. package/dist/types/widgets/ve33/Ve33IncentiveList/index.d.ts +7 -0
  53. package/dist/types/widgets/ve33/Ve33LockList/CardList.d.ts +11 -0
  54. package/dist/types/widgets/ve33/Ve33LockList/ClaimLockDialog.d.ts +6 -0
  55. package/dist/types/widgets/ve33/Ve33LockList/LockManageDialog.d.ts +7 -0
  56. package/dist/types/widgets/ve33/Ve33LockList/MergeDialog.d.ts +7 -0
  57. package/dist/types/widgets/ve33/Ve33LockList/TableList.d.ts +10 -0
  58. package/dist/types/widgets/ve33/Ve33LockList/hooks/useClaimBribes.d.ts +7 -0
  59. package/dist/types/widgets/ve33/Ve33LockList/hooks/useClaimRebases.d.ts +5 -0
  60. package/dist/types/widgets/ve33/Ve33LockList/hooks/useExtendLock.d.ts +6 -0
  61. package/dist/types/widgets/ve33/Ve33LockList/hooks/useFetchUserLocks.d.ts +282 -0
  62. package/dist/types/widgets/ve33/Ve33LockList/hooks/useIncreaseLock.d.ts +6 -0
  63. package/dist/types/widgets/ve33/Ve33LockList/hooks/useMergeLock.d.ts +5 -0
  64. package/dist/types/widgets/ve33/Ve33LockList/hooks/useTransferLock.d.ts +7 -0
  65. package/dist/types/widgets/ve33/Ve33LockList/index.d.ts +1 -0
  66. package/dist/types/widgets/ve33/Ve33LockOperate/hooks/useCreateLock.d.ts +7 -0
  67. package/dist/types/widgets/ve33/Ve33LockOperate/hooks/useFetchUserTotalVeNFT.d.ts +8 -0
  68. package/dist/types/widgets/ve33/Ve33LockOperate/index.d.ts +4 -0
  69. package/dist/types/widgets/ve33/Ve33LockOperate/utils.d.ts +21 -0
  70. package/dist/types/widgets/ve33/Ve33PoolDetail/MyAssets.d.ts +5 -0
  71. package/dist/types/widgets/ve33/Ve33PoolDetail/MyPosition.d.ts +5 -0
  72. package/dist/types/widgets/ve33/Ve33PoolDetail/PoolInfo.d.ts +5 -0
  73. package/dist/types/widgets/ve33/Ve33PoolDetail/index.d.ts +7 -0
  74. package/dist/types/widgets/ve33/Ve33PoolDetail/useVe33V3Positions.d.ts +79 -0
  75. package/dist/types/widgets/ve33/Ve33PoolList/CardList.d.ts +13 -0
  76. package/dist/types/widgets/ve33/Ve33PoolList/TableList.d.ts +14 -0
  77. package/dist/types/widgets/ve33/Ve33PoolList/index.d.ts +5 -0
  78. package/dist/types/widgets/ve33/Ve33PoolOperate.d.ts +2 -0
  79. package/dist/types/widgets/ve33/Ve33StakeDialog.d.ts +11 -0
  80. package/dist/types/widgets/ve33/Ve33V2PoolOperate/AddPoolOperate.d.ts +6 -0
  81. package/dist/types/widgets/ve33/Ve33V2PoolOperate/RemovePoolOperate.d.ts +5 -0
  82. package/dist/types/widgets/ve33/Ve33V2PoolOperate/components/ComparePrice.d.ts +8 -0
  83. package/dist/types/widgets/ve33/Ve33V2PoolOperate/components/OperateBtn.d.ts +6 -0
  84. package/dist/types/widgets/ve33/Ve33V2PoolOperate/components/SliderPercentageCard.d.ts +8 -0
  85. package/dist/types/widgets/ve33/Ve33V2PoolOperate/components/SlippageSetting.d.ts +18 -0
  86. package/dist/types/widgets/ve33/Ve33V2PoolOperate/components/V2ConfirmDialog.d.ts +19 -0
  87. package/dist/types/widgets/ve33/Ve33V2PoolOperate/hooks/useComparePrice.d.ts +19 -0
  88. package/dist/types/widgets/ve33/Ve33V2PoolOperate/hooks/useLiquidityOperateAmount.d.ts +86 -0
  89. package/dist/types/widgets/ve33/Ve33V2PoolOperate/hooks/usePercentageRemove.d.ts +25 -0
  90. package/dist/types/widgets/ve33/Ve33V2PoolOperate/hooks/usePoolOperateTabs.d.ts +12 -0
  91. package/dist/types/widgets/ve33/Ve33V2PoolOperate/hooks/useVe33V2AddLiquidity.d.ts +12 -0
  92. package/dist/types/widgets/ve33/Ve33V2PoolOperate/hooks/useVe33V2BalanceInfo.d.ts +36 -0
  93. package/dist/types/widgets/ve33/Ve33V2PoolOperate/hooks/useVe33V2RemoveLiquidity.d.ts +12 -0
  94. package/dist/types/widgets/ve33/Ve33V2PoolOperate/hooks/useWithdrawInfo.d.ts +25 -0
  95. package/dist/types/widgets/ve33/Ve33V2PoolOperate/index.d.ts +15 -0
  96. package/dist/types/widgets/ve33/Ve33V2PoolOperate/types.d.ts +22 -0
  97. package/dist/types/widgets/ve33/Ve33V3PoolOperate/Ve33V3AddLiquidity.d.ts +4 -0
  98. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/Badge/RangeBadge.d.ts +4 -0
  99. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/ClaimButton.d.ts +9 -0
  100. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/InRangeDot.d.ts +4 -0
  101. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/InputStepCounter.d.ts +17 -0
  102. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/Area.d.ts +10 -0
  103. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/AxisBottom.d.ts +6 -0
  104. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/Brush.d.ts +13 -0
  105. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/Chart.d.ts +2 -0
  106. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/Line.d.ts +6 -0
  107. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/Zoom.d.ts +12 -0
  108. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/index.d.ts +19 -0
  109. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/svg.d.ts +22 -0
  110. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/types.d.ts +50 -0
  111. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -0
  112. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/utils.d.ts +14 -0
  113. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/MyLiquidity.d.ts +10 -0
  114. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/PositionManage.d.ts +8 -0
  115. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/PositionPreview.d.ts +14 -0
  116. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/PositionSelectedRangePreview.d.ts +11 -0
  117. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/RangeRatioSelect.d.ts +2 -0
  118. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/RangeSelector.d.ts +21 -0
  119. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/RateToggle.d.ts +9 -0
  120. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/RemoveButton.d.ts +12 -0
  121. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/ReviewModal.d.ts +18 -0
  122. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/TokenAndEtherscan.d.ts +4 -0
  123. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/TokenPairSelect.d.ts +7 -0
  124. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/shared.d.ts +4 -0
  125. package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/widgets.d.ts +56 -0
  126. package/dist/types/widgets/ve33/Ve33V3PoolOperate/constants/misc.d.ts +17 -0
  127. package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/useAddVe33V3Liquidity.d.ts +15 -0
  128. package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/usePoolActiveLiquidityChartData.d.ts +37 -0
  129. package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/usePriceRangeRatioSelect.d.ts +28 -0
  130. package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/useRemoveVe33V3Liquidity.d.ts +14 -0
  131. package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/useSetRange.d.ts +36 -0
  132. package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/useVe33V3Amounts.d.ts +19 -0
  133. package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/useVe33V3Pair.d.ts +58 -0
  134. package/dist/types/widgets/ve33/Ve33V3PoolOperate/index.d.ts +5 -0
  135. package/dist/types/widgets/ve33/Ve33V3PoolOperate/types.d.ts +10 -0
  136. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/calldata.d.ts +7 -0
  137. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/computeSurroundingTicks.d.ts +4 -0
  138. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/constants.d.ts +7 -0
  139. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/encodeSqrtRatioX96.d.ts +9 -0
  140. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/formatTickPrice.d.ts +1 -0
  141. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/fullMath.d.ts +8 -0
  142. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/getPositionAmount.d.ts +39 -0
  143. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/getPositionAmountWithSlippage.d.ts +23 -0
  144. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/getTickToPrice.d.ts +10 -0
  145. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/maxLiquidityForAmounts.d.ts +22 -0
  146. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/mostSignificantBit.d.ts +2 -0
  147. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/nearestUsableTick.d.ts +6 -0
  148. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/slippage.d.ts +3 -0
  149. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/sqrt.d.ts +7 -0
  150. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/sqrtPriceMath.d.ts +13 -0
  151. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/tickMath.d.ts +34 -0
  152. package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/tryParseTick.d.ts +4 -0
  153. package/dist/types/widgets/ve33/VotePoolList/CardList.d.ts +12 -0
  154. package/dist/types/widgets/ve33/VotePoolList/SetVotePowerDialog.d.ts +12 -0
  155. package/dist/types/widgets/ve33/VotePoolList/TableList.d.ts +12 -0
  156. package/dist/types/widgets/ve33/VotePoolList/hooks/useVoteVe33.d.ts +7 -0
  157. package/dist/types/widgets/ve33/VotePoolList/index.d.ts +1 -0
  158. package/dist/types/widgets/ve33/VotePoolList/widgets.d.ts +35 -0
  159. package/dist/types/widgets/ve33/components/GoBack.d.ts +4 -0
  160. package/dist/types/widgets/ve33/components/LockSlider.d.ts +5 -0
  161. package/dist/types/widgets/ve33/components/PoolHead.d.ts +8 -0
  162. package/dist/types/widgets/ve33/components/PoolTokenInfo.d.ts +11 -0
  163. package/dist/types/widgets/ve33/components/PoolTypeTag.d.ts +8 -0
  164. package/dist/types/widgets/ve33/components/widgets.d.ts +5 -0
  165. package/dist/types/widgets/ve33/config.d.ts +62 -0
  166. package/dist/types/widgets/ve33/constants.d.ts +21 -0
  167. package/dist/types/widgets/ve33/hooks/usePoolColors.d.ts +11 -0
  168. package/dist/types/widgets/ve33/hooks/useVe33PositionAmounts.d.ts +17 -0
  169. package/dist/types/widgets/ve33/hooks/useVe33V2ClaimEmissions.d.ts +4 -0
  170. package/dist/types/widgets/ve33/hooks/useVe33V2ClaimTradingFees.d.ts +4 -0
  171. package/dist/types/widgets/ve33/hooks/useVe33V2Stake.d.ts +5 -0
  172. package/dist/types/widgets/ve33/hooks/useVe33V2UnStake.d.ts +5 -0
  173. package/dist/types/widgets/ve33/hooks/useVe33V3ClaimEmissions.d.ts +5 -0
  174. package/dist/types/widgets/ve33/hooks/useVe33V3ClaimTradingFees.d.ts +4 -0
  175. package/dist/types/widgets/ve33/hooks/useVe33V3Stake.d.ts +5 -0
  176. package/dist/types/widgets/ve33/hooks/useVe33V3StakeApproveStatus.d.ts +17 -0
  177. package/dist/types/widgets/ve33/hooks/useVe33V3UnStake.d.ts +5 -0
  178. package/dist/types/widgets/ve33/hooks/useVotePoolFilters.d.ts +13 -0
  179. package/dist/types/widgets/ve33/hooks/useVoteTabs.d.ts +12 -0
  180. package/dist/types/widgets/ve33/types.d.ts +38 -0
  181. package/dist/types/widgets/ve33/utils.d.ts +9 -0
  182. package/package.json +10 -10
  183. package/dist/index-CHBBNnLK.cjs +0 -31
  184. package/dist/index-a6XIfxp-.js +0 -31
  185. package/dist/types/hooks/Swap/useFetchRoutePrice.test.d.ts +0 -1
@@ -0,0 +1,11 @@
1
+ import { TokenInfo } from '../../../hooks/Token';
2
+ import { PoolTypeTagProps } from './PoolTypeTag';
3
+ export default function PoolTokenInfo({ item, }: {
4
+ item?: PoolTypeTagProps & {
5
+ id: string;
6
+ gaugeAddress: string;
7
+ baseToken: TokenInfo;
8
+ quoteToken: TokenInfo;
9
+ chainId: number;
10
+ };
11
+ }): JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { PoolTypeE } from '../types';
2
+ export interface PoolTypeTagProps {
3
+ type: PoolTypeE;
4
+ stable: boolean;
5
+ fee: number;
6
+ hideFee?: boolean;
7
+ }
8
+ export declare const PoolTypeTag: (props: PoolTypeTagProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ export interface CardContainerProps {
2
+ title: string;
3
+ children: React.ReactNode;
4
+ }
5
+ export declare const CardContainer: ({ title, children }: CardContainerProps) => JSX.Element;
@@ -0,0 +1,62 @@
1
+ import { ChainId } from '@dodoex/api';
2
+ /**
3
+ "WETH": "0x5300000000000000000000000000000000000011",
4
+
5
+ {
6
+ "AERO": "0x42EDf453F8483c7168c158d28D610A58308517D1",
7
+ "AirdropDistributor": "0x4c0dC92e49473Ad6691f34a6615FD53f8A0bDC8d",
8
+ "ArtProxy": "0xaf6c1052A1114C7816C24a5e8bC485b180C49Deb",
9
+ "Distributor": "0xBb5a0bF38C0BeA6829fDFef931B7988c8fF00a78",
10
+ "FactoryRegistry": "0x620572bEE4ECF35B2FEBB1F644F939A032cd7044",
11
+ "Forwarder": "0xB6362C3Ef78CDe47446a819B8131eC540a949EF8",
12
+ "GaugeFactory": "0xe77C7e8fE14662e07346A8e2797fee18809aCcEa",
13
+ "ManagedRewardsFactory": "0x69485b9B95df04dDbbF8669A33865C97E9B293B4",
14
+ "Minter": "0xF7d33BB55C74048352DC0413733095Cc8e273A74",
15
+ "PoolFactory": "0x2dA6Bf29baAB9Ac23Bb8E7fB04F6D9a20bbdfC82",
16
+ "Router": "0x468e60B84b11B3B1532D7C41FcBb79DA352aa12d",
17
+ "Voter": "0x74CAd58eD9712e3236D61dea8696B6Dced3da2b6",
18
+ "VotingEscrow": "0x00Fc0223442630e2AaDAB831d2Ee1FD27ee8A6B2",
19
+ "VotingRewardsFactory": "0x64e4a9BDA0670Cdb30664383244dA60158Af847B"
20
+ }
21
+ {
22
+ // https://explorer-holesky.morphl2.io/address/0x64610da3092153a188278815c1f2072009F9Df1e?tab=contract
23
+ // https://github.com/Skyewwww/aerodrome-contracts/blob/deploy-morph/contracts/Pool.sol
24
+ // vAMM-WETH/AERO
25
+ "Pool": "0x98EcC0D3F774a7bDA38918bf5830a476dD5A606C",
26
+ "Gauge": "0x7B156830fDbC76d327a48a19B0143663e16A95ba",
27
+ "FeesVotingReward": "0x0266a69Ed8D4E9ef2781BB7B1BB9437E15Cf5639",
28
+ "BribeVotingReward": "0x6d3dCd05D0576a1379aA9587aBB4D968cF2fD8df"
29
+ }
30
+ {
31
+ "GaugeFactory": "0xd648A03cE42bf7c7F5D4c7885eb76d89daEcB988",
32
+ "GaugeImplementation": "0x054aC9d1DD99C49a4B3A6314717aE49D09606d46",
33
+ "MixedQuoter": "0x9aE45C6566e4c032C119665Cfd38Eaa3f3859D06",
34
+ "NonfungiblePositionManager": "0x2b36c1be2a16ACb71E6F6CccfCd7D20cdfE01867",
35
+ "NonfungibleTokenPositionDescriptor": "0x0d3a1033d9F76A0bC5a444CdFB8fdE85B1290542",
36
+ "PoolFactory": "0x0d1B0d0d709292d35AB7455fF6DBA0Eed40Cc49b",
37
+ "PoolImplementation": "0xE2714F696039Fa207E4Fd1348d0D5bbD27fBe964",
38
+ "Quoter": "0xB725b88b32868266782398ae7Ab6bDCcebe90368",
39
+ "SwapFeeModule": "0x5ffDad8a7D2E9E45FCF88A0C5baDdd80a421f605",
40
+ "SwapRouter": "0xA0abF41a231BaCeB1feB624Dca843B71c10311e8",
41
+ "UnstakedFeeModule": "0xfa1824E71CFF5D315b63CBc91c0b859462B7EA30"
42
+ }
43
+ {
44
+ // CL200-WETH/AERO
45
+ "Pool": "0x2f63A87bf42dc4c021af8BE085CecE16269e3b67",
46
+ "Gauge": "0x640be2253A65740152dC933FAb757606e9c7BD52",
47
+ "FeesVotingReward": "0x87BA1438fa2d2Fd6aD66162B7c1afAAB25b7CE83",
48
+ "BribeVotingReward": "0xA7a1790B8Cd1737278b464c295517408f38b4726"
49
+ }
50
+ */
51
+ export interface Ve33Config {
52
+ chainId: number;
53
+ /**
54
+ * https://explorer-holesky.morphl2.io/address/0x2dA6Bf29baAB9Ac23Bb8E7fB04F6D9a20bbdfC82?tab=contract
55
+ */
56
+ PoolFactory: string;
57
+ /**
58
+ * https://explorer-holesky.morphl2.io/address/0x0d1B0d0d709292d35AB7455fF6DBA0Eed40Cc49b
59
+ */
60
+ CLFactory: string;
61
+ }
62
+ export declare const ve33Config: Map<ChainId, Ve33Config>;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The default factory enabled fee amounts, denominated in hundredths of bips.
3
+ * @see https://explorer-holesky.morphl2.io/address/0x0d1B0d0d709292d35AB7455fF6DBA0Eed40Cc49b?tab=read_contract
4
+ */
5
+ export declare enum FeeAmount {
6
+ LOWEST = 100,
7
+ LOW = 500,
8
+ MEDIUM = 500,
9
+ HIGH = 3000,
10
+ HIGHEST = 10000
11
+ }
12
+ export declare enum TickSpacings {
13
+ LOWEST = 1,
14
+ LOW = 50,
15
+ MEDIUM = 100,
16
+ HIGH = 200,
17
+ HIGHEST = 2000
18
+ }
19
+ export declare const tickSpacingToFee: {
20
+ [amount in TickSpacings]: FeeAmount;
21
+ };
@@ -0,0 +1,11 @@
1
+ import { PoolTypeE } from '../types';
2
+ import { Ve33PoolInfoI } from '../types';
3
+ export declare function usePoolColors({ type, stable, fee, }: {
4
+ type: PoolTypeE;
5
+ stable: boolean;
6
+ fee: Ve33PoolInfoI['fee'];
7
+ }): {
8
+ color: string;
9
+ backgroundColor: string;
10
+ name: string;
11
+ };
@@ -0,0 +1,17 @@
1
+ import { Ve33PoolInfoI } from '../types';
2
+ import BigNumber from 'bignumber.js';
3
+ export declare function useVe33PositionAmounts({ poolInfo, tokenId, }: {
4
+ poolInfo: Ve33PoolInfoI | undefined;
5
+ tokenId: number | undefined;
6
+ }): {
7
+ liquidity: bigint | undefined;
8
+ isLoading: boolean;
9
+ tickCurrent: number | undefined;
10
+ tickLower: number | undefined;
11
+ tickUpper: number | undefined;
12
+ sqrtPriceX96: bigint | undefined;
13
+ amount0Bg: BigNumber | null;
14
+ amount1Bg: BigNumber | null;
15
+ refetch: () => void;
16
+ errorRefetch: (() => void) | undefined;
17
+ };
@@ -0,0 +1,4 @@
1
+ export declare function useVe33V2ClaimEmissions({ gaugeAddress, refetch, }: {
2
+ gaugeAddress?: string;
3
+ refetch?: () => Promise<void> | void;
4
+ }): import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
@@ -0,0 +1,4 @@
1
+ export declare function useVe33V2ClaimTradingFees({ address, refetch, }: {
2
+ address?: string;
3
+ refetch?: () => Promise<void> | void;
4
+ }): import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
@@ -0,0 +1,5 @@
1
+ export declare function useVe33V2Stake({ amount, gaugeAddress, refetch, }: {
2
+ amount: string;
3
+ gaugeAddress?: string;
4
+ refetch?: () => Promise<void> | void;
5
+ }): import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
@@ -0,0 +1,5 @@
1
+ export declare function useVe33V2UnStake({ amount, gaugeAddress, refetch, }: {
2
+ amount: string;
3
+ gaugeAddress?: string;
4
+ refetch?: () => Promise<void> | void;
5
+ }): import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
@@ -0,0 +1,5 @@
1
+ export declare function useVe33V3ClaimEmissions({ tokenId, gaugeAddress, refetch, }: {
2
+ tokenId?: number;
3
+ gaugeAddress?: string;
4
+ refetch?: () => Promise<void> | void;
5
+ }): import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
@@ -0,0 +1,4 @@
1
+ export declare function useVe33V3ClaimTradingFees({ tokenId, refetch, }: {
2
+ tokenId?: number;
3
+ refetch?: () => Promise<void> | void;
4
+ }): import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
@@ -0,0 +1,5 @@
1
+ export declare function useVe33V3Stake({ tokenId, gaugeAddress, refetch, }: {
2
+ tokenId?: number;
3
+ gaugeAddress?: string;
4
+ refetch?: () => Promise<void> | void;
5
+ }): import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
@@ -0,0 +1,17 @@
1
+ import { Ve33PoolInfoI } from '../types';
2
+ export default function useVe33V3StakeApproveStatus({ poolInfo, tokenId, }: {
3
+ poolInfo: Ve33PoolInfoI | undefined;
4
+ tokenId: number | undefined;
5
+ }): {
6
+ token: import("../../..").TokenInfo | null | undefined;
7
+ isApproving: boolean;
8
+ isGetApproveLoading: boolean;
9
+ needApprove: boolean;
10
+ needReset: boolean | undefined;
11
+ needShowTokenStatusButton: boolean;
12
+ insufficientBalance: boolean;
13
+ loading: boolean;
14
+ approveTitle: string;
15
+ submitApprove: () => Promise<void>;
16
+ getMaxBalance: () => string;
17
+ };
@@ -0,0 +1,5 @@
1
+ export declare function useVe33V3UnStake({ tokenId, gaugeAddress, refetch, }: {
2
+ tokenId?: number;
3
+ gaugeAddress?: string;
4
+ refetch?: () => Promise<void> | void;
5
+ }): import("@tanstack/react-query").UseMutationResult<void, Error, void, unknown>;
@@ -0,0 +1,13 @@
1
+ export declare enum VotePoolFilters {
2
+ All = "all",
3
+ V2 = 1,
4
+ V3 = 2
5
+ }
6
+ export declare function useVotePoolFilters(): {
7
+ votePoolFilter: VotePoolFilters;
8
+ filters: {
9
+ key: VotePoolFilters;
10
+ value: string;
11
+ }[];
12
+ handleChangeVotePoolFilter: (votePoolFilter: VotePoolFilters) => void;
13
+ };
@@ -0,0 +1,12 @@
1
+ export declare enum VoteTab {
2
+ SelectToVote = "select-to-vote",
3
+ MyVoted = "my-voted"
4
+ }
5
+ export declare function useVoteTabs(): {
6
+ voteTab: VoteTab;
7
+ tabs: {
8
+ key: VoteTab;
9
+ value: string;
10
+ }[];
11
+ handleChangeVoteTab: (voteTab: VoteTab) => void;
12
+ };
@@ -0,0 +1,38 @@
1
+ import { ChainId } from '@dodoex/api';
2
+ import { TokenInfo } from '../../hooks/Token/type';
3
+ import { FetchVe33PoolList, FetchVotePoolList } from '../PoolWidget/utils';
4
+ export declare enum OperateTypeE {
5
+ Add = 1,
6
+ Remove = 2
7
+ }
8
+ export declare enum PoolTypeE {
9
+ Pool = 1,
10
+ CLPool = 2
11
+ }
12
+ export declare enum FeeE {
13
+ Stable = 5,
14
+ Volatile = 30
15
+ }
16
+ export type FetchVe33PoolItem = FetchVe33PoolList[0];
17
+ export type FetchVotePoolItem = FetchVotePoolList[0];
18
+ export type Ve33PoolInfoI = FetchVe33PoolItem & {
19
+ stable: boolean;
20
+ fee: FeeE | 0 | number;
21
+ type: PoolTypeE;
22
+ chainId: ChainId;
23
+ baseToken: TokenInfo;
24
+ quoteToken: TokenInfo;
25
+ };
26
+ export type VotePoolInfoI = FetchVotePoolItem & {
27
+ stable: boolean;
28
+ fee: FeeE | 0 | number;
29
+ type: PoolTypeE;
30
+ chainId: ChainId;
31
+ baseToken: TokenInfo;
32
+ quoteToken: TokenInfo;
33
+ };
34
+ export interface Ve33PoolOperateProps {
35
+ poolInfo: Ve33PoolInfoI;
36
+ operateType: OperateTypeE;
37
+ chainId: ChainId;
38
+ }
@@ -0,0 +1,9 @@
1
+ import { ChainId } from '@dodoex/api';
2
+ import { FetchVe33PoolItem, FetchVotePoolItem, PoolTypeE, Ve33PoolInfoI, VotePoolInfoI } from './types';
3
+ import { FeeE } from './types';
4
+ export declare const formatFee: ({ type, fee }: {
5
+ type: PoolTypeE;
6
+ fee: FeeE;
7
+ }) => string;
8
+ export declare function compositePoolInfo(pool: NonNullable<FetchVe33PoolItem>, chainId: ChainId): Ve33PoolInfoI;
9
+ export declare function compositeVotePoolInfo(pool: NonNullable<FetchVotePoolItem>, chainId: ChainId): VotePoolInfoI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodoex/widgets",
3
- "version": "3.0.4-ve33.1",
3
+ "version": "3.0.4-ve33.11",
4
4
  "description": "DODO Widgets",
5
5
  "source": "src/index.tsx",
6
6
  "types": "dist/types/index.d.ts",
@@ -58,10 +58,10 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@babel/runtime": "^7.17.0",
61
- "@dodoex/api": "3.0.4-ve33.1",
62
- "@dodoex/components": "3.0.3",
61
+ "@dodoex/api": "3.0.4-ve33.4",
62
+ "@dodoex/components": "3.0.4-ve33.3",
63
63
  "@dodoex/contract-request": "^1.3.0",
64
- "@dodoex/dodo-contract-request": "1.10.0-alpha.3",
64
+ "@dodoex/dodo-contract-request": "1.15.0-morph-holesky.6",
65
65
  "@dodoex/icons": "^2.0.2",
66
66
  "@emotion/react": "^11.10.0",
67
67
  "@emotion/styled": "^11.10.0",
@@ -76,10 +76,10 @@
76
76
  "@tanstack/react-query": "^5.18.1",
77
77
  "@uniswap/sdk-core": "^5.9.0",
78
78
  "@uniswap/v2-sdk": "^4.6.2",
79
- "@web3-react/core": "8.2.0",
80
- "@web3-react/eip1193": "8.2.0",
81
- "@web3-react/metamask": "8.2.1",
82
- "@web3-react/types": "8.2.0",
79
+ "@web3-react/core": "^8.2.3",
80
+ "@web3-react/eip1193": "^8.2.3",
81
+ "@web3-react/metamask": "^8.2.4",
82
+ "@web3-react/types": "^8.2.3",
83
83
  "@web3-react/walletconnect-v2": "8.3.6",
84
84
  "axios": "^0.27.2",
85
85
  "bignumber.js": "^9.0.2",
@@ -101,7 +101,7 @@
101
101
  "rmc-date-picker": "^6.0.10",
102
102
  "semantic-release": "^19.0.2",
103
103
  "tiny-invariant": "^1.1.0",
104
- "zustand": "^4.5.5"
104
+ "zustand": "4.4.0"
105
105
  },
106
106
  "peerDependencies": {
107
107
  "@babel/runtime": ">=7.17.0",
@@ -154,4 +154,4 @@
154
154
  "ts-jest": "^29.0.1",
155
155
  "typescript": "^5.6.3"
156
156
  }
157
- }
157
+ }