@ape.swap/bonds-sdk 1.0.780 → 1.1.0-seedify

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 (462) hide show
  1. package/dist/components/BondRows/BondRow.d.ts +3 -2
  2. package/dist/components/BondRows/BondRowHeader.d.ts +2 -3
  3. package/dist/components/BondRows/BondRowsByChain.d.ts +3 -3
  4. package/dist/components/BondRows/BondRowsWithTitle.d.ts +3 -3
  5. package/dist/components/DisconnectedPlaceholder/index.d.ts +3 -0
  6. package/dist/components/SlippageModal/index.d.ts +3 -0
  7. package/dist/components/TokenInfoAndName/index.d.ts +2 -2
  8. package/dist/components/TokenSelectorPanel/index.d.ts +1 -2
  9. package/dist/components/uikit-sdk/Modal/index.d.ts +1 -1
  10. package/dist/components/uikit-sdk/Toggle/index.d.ts +8 -0
  11. package/dist/components/uikit-sdk/Toggle/styles.d.ts +3 -0
  12. package/dist/components/uikit-sdk/TokenImage/index.d.ts +1 -1
  13. package/dist/components/uikit-sdk/index.d.ts +1 -0
  14. package/dist/config/abi/types/Banana.d.ts +103 -126
  15. package/dist/config/abi/types/Bond.d.ts +176 -221
  16. package/dist/config/abi/types/BondNft.d.ts +160 -207
  17. package/dist/config/abi/types/EnsPublicResolver.d.ts +129 -205
  18. package/dist/config/abi/types/EnsRegistrar.d.ts +62 -82
  19. package/dist/config/abi/types/Erc20.d.ts +40 -52
  20. package/dist/config/abi/types/Erc20_bytes32.d.ts +11 -11
  21. package/dist/config/abi/types/JungleChef.d.ts +64 -79
  22. package/dist/config/abi/types/LaunchBonds.d.ts +299 -355
  23. package/dist/config/abi/types/LensContract.d.ts +58 -77
  24. package/dist/config/abi/types/LockVeAbond.d.ts +328 -434
  25. package/dist/config/abi/types/MigrationBond.d.ts +268 -330
  26. package/dist/config/abi/types/MigrationFveAbond.d.ts +83 -89
  27. package/dist/config/abi/types/MiniComplexRewarder.d.ts +99 -145
  28. package/dist/config/abi/types/Multicallv2.d.ts +35 -46
  29. package/dist/config/abi/types/Multicallv3.d.ts +14 -14
  30. package/dist/config/abi/types/NonFungibleApes.d.ts +130 -170
  31. package/dist/config/abi/types/NonFungibleBananas.d.ts +135 -172
  32. package/dist/config/abi/types/PriceGetter.d.ts +218 -255
  33. package/dist/config/abi/types/PriceGetterLinea.d.ts +254 -287
  34. package/dist/config/abi/types/PriceGetterV2.d.ts +239 -276
  35. package/dist/config/abi/types/SousChef.d.ts +140 -177
  36. package/dist/config/abi/types/Treasury.d.ts +66 -69
  37. package/dist/config/abi/types/Weth.d.ts +53 -68
  38. package/dist/config/abi/types/Zap.d.ts +97 -141
  39. package/dist/config/abi/types/common.d.ts +3 -3
  40. package/dist/config/abi/types/factories/Banana__factory.d.ts +3 -3
  41. package/dist/config/abi/types/factories/BondNft__factory.d.ts +3 -3
  42. package/dist/config/abi/types/factories/Bond__factory.d.ts +3 -3
  43. package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +3 -3
  44. package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +3 -3
  45. package/dist/config/abi/types/factories/Erc20__factory.d.ts +3 -3
  46. package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +3 -3
  47. package/dist/config/abi/types/factories/JungleChef__factory.d.ts +3 -3
  48. package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +3 -3
  49. package/dist/config/abi/types/factories/LensContract__factory.d.ts +3 -3
  50. package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +3 -3
  51. package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +3 -3
  52. package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +3 -3
  53. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +3 -3
  54. package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +3 -3
  55. package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +3 -3
  56. package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +3 -3
  57. package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +3 -3
  58. package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +3 -3
  59. package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +3 -3
  60. package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +3 -3
  61. package/dist/config/abi/types/factories/SousChef__factory.d.ts +3 -3
  62. package/dist/config/abi/types/factories/Treasury__factory.d.ts +3 -3
  63. package/dist/config/abi/types/factories/Weth__factory.d.ts +3 -3
  64. package/dist/config/abi/types/factories/Zap__factory.d.ts +3 -3
  65. package/dist/config/abi/types/factories/index.d.ts +25 -25
  66. package/dist/config/abi/types/index.d.ts +51 -51
  67. package/dist/config/constants/addresses.d.ts +0 -8
  68. package/dist/config/constants/queryKeys.d.ts +7 -2
  69. package/dist/config/constants/tokens.d.ts +2 -2
  70. package/dist/hooks/useTokenFromZapList.d.ts +1 -1
  71. package/dist/hooks/useTopThreeTags.d.ts +2 -2
  72. package/dist/main.d.ts +7 -0
  73. package/dist/main.js +73492 -0
  74. package/dist/scss/BondMenu.scss +2 -2
  75. package/dist/scss/BondModal.scss +74 -73
  76. package/dist/scss/BondRow.scss +5 -5
  77. package/dist/scss/BondRowHeader.scss +7 -7
  78. package/dist/scss/Bonds.scss +2 -1
  79. package/dist/scss/YourBonds.scss +19 -14
  80. package/dist/scss/YourBondsModal.scss +3 -3
  81. package/dist/scss/index.scss +12 -0
  82. package/dist/state/allowance/useAllowance.d.ts +8 -4
  83. package/dist/state/bonds/useBondNFTData.d.ts +5 -0
  84. package/dist/state/bonds/useBondsData.d.ts +4 -0
  85. package/dist/state/bonds/useBondsList.d.ts +4 -0
  86. package/dist/state/bonds/useHotBonds.d.ts +3 -0
  87. package/dist/state/bonds/useUserBonds.d.ts +5 -0
  88. package/dist/state/price/useCurrencyPrice.d.ts +1 -17
  89. package/dist/state/slippage/useSlippage.d.ts +1 -0
  90. package/dist/state/tokenPrices/useTokenPrices.d.ts +29 -0
  91. package/dist/state/zap/getChainParam.d.ts +1 -1
  92. package/dist/state/zap/useSoulZapBondQuote.d.ts +2 -2
  93. package/dist/types/bonds.d.ts +4 -41
  94. package/dist/types/yourbonds.d.ts +54 -69
  95. package/dist/utils/displayHelpers.d.ts +13 -0
  96. package/dist/utils/getNativeTicker.d.ts +3 -3
  97. package/dist/utils/index.d.ts +1 -1
  98. package/dist/views/BondModal/BondModal.d.ts +4 -7
  99. package/dist/views/BondModal/helper.d.ts +6 -6
  100. package/dist/views/BondModal/index.d.ts +2 -2
  101. package/dist/views/Bonds/Bonds.d.ts +6 -9
  102. package/dist/views/Bonds/components/CheckURL/index.d.ts +4 -0
  103. package/dist/views/Bonds/index.d.ts +2 -2
  104. package/dist/views/Bonds/utils.d.ts +14 -0
  105. package/dist/views/FullBondsView/FullBondsView.d.ts +7 -0
  106. package/dist/views/FullBondsView/index.d.ts +3 -0
  107. package/dist/views/YourBonds/YourBonds.d.ts +1 -11
  108. package/dist/views/YourBonds/components/UserBondRow/index.d.ts +6 -0
  109. package/dist/views/YourBonds/fetchBillsUser.d.ts +4 -5
  110. package/dist/views/YourBonds/index.d.ts +3 -0
  111. package/dist/views/YourBondsModal/YourBondsModal.d.ts +4 -5
  112. package/package.json +19 -24
  113. package/dist/components/AccordionText/index.js +0 -17
  114. package/dist/components/BondMenu/BondMenu.js +0 -40
  115. package/dist/components/BondMenu/useChainFilterOption.js +0 -30
  116. package/dist/components/BondRows/BondRow.js +0 -81
  117. package/dist/components/BondRows/BondRowHeader.js +0 -12
  118. package/dist/components/BondRows/BondRowsByChain.js +0 -13
  119. package/dist/components/BondRows/BondRowsWithTitle.js +0 -20
  120. package/dist/components/BondRows/ChainTitle.js +0 -18
  121. package/dist/components/MenuSelect/MenuSelect.js +0 -36
  122. package/dist/components/MenuSelect/RecommendationSelector.js +0 -32
  123. package/dist/components/MenuSelect/types.js +0 -1
  124. package/dist/components/NetworkFilter/index.js +0 -66
  125. package/dist/components/ProgressBar/ProgressBar.js +0 -10
  126. package/dist/components/ProgressBar/ProgressBarWrapper.js +0 -9
  127. package/dist/components/ProgressBar/styles.js +0 -82
  128. package/dist/components/TokenInfoAndName/index.js +0 -34
  129. package/dist/components/TokenSelectorModal/TokenRow.js +0 -18
  130. package/dist/components/TokenSelectorModal/index.js +0 -56
  131. package/dist/components/TokenSelectorPanel/index.js +0 -36
  132. package/dist/components/Tooltip/ButtonsRow.js +0 -21
  133. package/dist/components/Tooltip/Tooltip.js +0 -13
  134. package/dist/components/Tooltip/styles.js +0 -44
  135. package/dist/components/uikit-sdk/Button/Button.js +0 -91
  136. package/dist/components/uikit-sdk/Button/IconButton.js +0 -33
  137. package/dist/components/uikit-sdk/Button/index.js +0 -2
  138. package/dist/components/uikit-sdk/Button/styles.js +0 -30
  139. package/dist/components/uikit-sdk/Button/types.js +0 -37
  140. package/dist/components/uikit-sdk/Checkbox/index.js +0 -46
  141. package/dist/components/uikit-sdk/Checkbox/types.js +0 -5
  142. package/dist/components/uikit-sdk/Flex/index.js +0 -29
  143. package/dist/components/uikit-sdk/Input/Input.js +0 -72
  144. package/dist/components/uikit-sdk/Input/NumericInput.js +0 -35
  145. package/dist/components/uikit-sdk/Input/StyledInput.js +0 -26
  146. package/dist/components/uikit-sdk/Input/index.js +0 -3
  147. package/dist/components/uikit-sdk/Modal/ModalFooter.js +0 -21
  148. package/dist/components/uikit-sdk/Modal/ModalHeader.js +0 -31
  149. package/dist/components/uikit-sdk/Modal/index.js +0 -46
  150. package/dist/components/uikit-sdk/Modal/styles.js +0 -62
  151. package/dist/components/uikit-sdk/Modal/types.js +0 -1
  152. package/dist/components/uikit-sdk/Select/Select.js +0 -61
  153. package/dist/components/uikit-sdk/Select/SelectItem.js +0 -40
  154. package/dist/components/uikit-sdk/Select/index.js +0 -2
  155. package/dist/components/uikit-sdk/Select/styles.js +0 -50
  156. package/dist/components/uikit-sdk/Select/types.js +0 -37
  157. package/dist/components/uikit-sdk/Skeleton/index.js +0 -31
  158. package/dist/components/uikit-sdk/Skeleton/styles.js +0 -40
  159. package/dist/components/uikit-sdk/Skeleton/types.js +0 -10
  160. package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js +0 -16
  161. package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js +0 -6
  162. package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js +0 -16
  163. package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +0 -6
  164. package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js +0 -17
  165. package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js +0 -6
  166. package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +0 -16
  167. package/dist/components/uikit-sdk/Svg/Icons/Audit.js +0 -16
  168. package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js +0 -6
  169. package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js +0 -16
  170. package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js +0 -17
  171. package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js +0 -16
  172. package/dist/components/uikit-sdk/Svg/Icons/Bridge.js +0 -16
  173. package/dist/components/uikit-sdk/Svg/Icons/Bubble.js +0 -16
  174. package/dist/components/uikit-sdk/Svg/Icons/Calculator.js +0 -16
  175. package/dist/components/uikit-sdk/Svg/Icons/Calendar.js +0 -5
  176. package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js +0 -16
  177. package/dist/components/uikit-sdk/Svg/Icons/Card.js +0 -16
  178. package/dist/components/uikit-sdk/Svg/Icons/Caret.js +0 -16
  179. package/dist/components/uikit-sdk/Svg/Icons/Chain.js +0 -9
  180. package/dist/components/uikit-sdk/Svg/Icons/Chart.js +0 -16
  181. package/dist/components/uikit-sdk/Svg/Icons/Chat.js +0 -16
  182. package/dist/components/uikit-sdk/Svg/Icons/Close.js +0 -9
  183. package/dist/components/uikit-sdk/Svg/Icons/Cog.js +0 -16
  184. package/dist/components/uikit-sdk/Svg/Icons/Collapse.js +0 -16
  185. package/dist/components/uikit-sdk/Svg/Icons/Copy.js +0 -16
  186. package/dist/components/uikit-sdk/Svg/Icons/Discord.js +0 -16
  187. package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js +0 -16
  188. package/dist/components/uikit-sdk/Svg/Icons/Docs.js +0 -16
  189. package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js +0 -16
  190. package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js +0 -16
  191. package/dist/components/uikit-sdk/Svg/Icons/Error.js +0 -16
  192. package/dist/components/uikit-sdk/Svg/Icons/Expand.js +0 -16
  193. package/dist/components/uikit-sdk/Svg/Icons/Explorer.js +0 -16
  194. package/dist/components/uikit-sdk/Svg/Icons/External.js +0 -16
  195. package/dist/components/uikit-sdk/Svg/Icons/Farm.js +0 -16
  196. package/dist/components/uikit-sdk/Svg/Icons/Fav.js +0 -16
  197. package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js +0 -16
  198. package/dist/components/uikit-sdk/Svg/Icons/Fire.js +0 -6
  199. package/dist/components/uikit-sdk/Svg/Icons/Frame.js +0 -16
  200. package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js +0 -6
  201. package/dist/components/uikit-sdk/Svg/Icons/Gnana.js +0 -16
  202. package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js +0 -6
  203. package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +0 -16
  204. package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js +0 -16
  205. package/dist/components/uikit-sdk/Svg/Icons/Home.js +0 -16
  206. package/dist/components/uikit-sdk/Svg/Icons/Hot.js +0 -6
  207. package/dist/components/uikit-sdk/Svg/Icons/Info.js +0 -16
  208. package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js +0 -16
  209. package/dist/components/uikit-sdk/Svg/Icons/Insight.js +0 -16
  210. package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +0 -16
  211. package/dist/components/uikit-sdk/Svg/Icons/Island.js +0 -16
  212. package/dist/components/uikit-sdk/Svg/Icons/Language.js +0 -16
  213. package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js +0 -16
  214. package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +0 -6
  215. package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js +0 -16
  216. package/dist/components/uikit-sdk/Svg/Icons/Logout.js +0 -16
  217. package/dist/components/uikit-sdk/Svg/Icons/Medium.js +0 -16
  218. package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js +0 -16
  219. package/dist/components/uikit-sdk/Svg/Icons/Message.js +0 -9
  220. package/dist/components/uikit-sdk/Svg/Icons/Migrate.js +0 -16
  221. package/dist/components/uikit-sdk/Svg/Icons/Moon.js +0 -16
  222. package/dist/components/uikit-sdk/Svg/Icons/More.js +0 -16
  223. package/dist/components/uikit-sdk/Svg/Icons/NFA.js +0 -16
  224. package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js +0 -16
  225. package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +0 -16
  226. package/dist/components/uikit-sdk/Svg/Icons/Play.js +0 -5
  227. package/dist/components/uikit-sdk/Svg/Icons/Pool.js +0 -16
  228. package/dist/components/uikit-sdk/Svg/Icons/Positions.js +0 -16
  229. package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js +0 -6
  230. package/dist/components/uikit-sdk/Svg/Icons/ProfileIcon.js +0 -16
  231. package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js +0 -6
  232. package/dist/components/uikit-sdk/Svg/Icons/Question.js +0 -6
  233. package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +0 -16
  234. package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js +0 -16
  235. package/dist/components/uikit-sdk/Svg/Icons/Quiz.js +0 -16
  236. package/dist/components/uikit-sdk/Svg/Icons/Receipt.js +0 -16
  237. package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +0 -16
  238. package/dist/components/uikit-sdk/Svg/Icons/Rocket.js +0 -16
  239. package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js +0 -16
  240. package/dist/components/uikit-sdk/Svg/Icons/Search.js +0 -16
  241. package/dist/components/uikit-sdk/Svg/Icons/Send.js +0 -16
  242. package/dist/components/uikit-sdk/Svg/Icons/Settings.js +0 -16
  243. package/dist/components/uikit-sdk/Svg/Icons/Share.js +0 -16
  244. package/dist/components/uikit-sdk/Svg/Icons/Sort.js +0 -16
  245. package/dist/components/uikit-sdk/Svg/Icons/Success.js +0 -16
  246. package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js +0 -16
  247. package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js +0 -16
  248. package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js +0 -16
  249. package/dist/components/uikit-sdk/Svg/Icons/Tag.js +0 -5
  250. package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +0 -16
  251. package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js +0 -16
  252. package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js +0 -6
  253. package/dist/components/uikit-sdk/Svg/Icons/TickShield.js +0 -16
  254. package/dist/components/uikit-sdk/Svg/Icons/Trade.js +0 -16
  255. package/dist/components/uikit-sdk/Svg/Icons/Trash.js +0 -16
  256. package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +0 -16
  257. package/dist/components/uikit-sdk/Svg/Icons/URL.js +0 -16
  258. package/dist/components/uikit-sdk/Svg/Icons/Vaults.js +0 -16
  259. package/dist/components/uikit-sdk/Svg/Icons/Verified.js +0 -6
  260. package/dist/components/uikit-sdk/Svg/Icons/Wallet.js +0 -16
  261. package/dist/components/uikit-sdk/Svg/Icons/Warning.js +0 -16
  262. package/dist/components/uikit-sdk/Svg/Icons/Watch.js +0 -16
  263. package/dist/components/uikit-sdk/Svg/Icons/Website.js +0 -16
  264. package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js +0 -16
  265. package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js +0 -16
  266. package/dist/components/uikit-sdk/Svg/Icons/XNew.js +0 -16
  267. package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js +0 -6
  268. package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +0 -16
  269. package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +0 -16
  270. package/dist/components/uikit-sdk/Svg/Icons/index.js +0 -112
  271. package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js +0 -16
  272. package/dist/components/uikit-sdk/Svg/Icons/types.js +0 -1
  273. package/dist/components/uikit-sdk/Svg/index.js +0 -347
  274. package/dist/components/uikit-sdk/Svg/styles.js +0 -16
  275. package/dist/components/uikit-sdk/Svg/tokens/ABOND.js +0 -6
  276. package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +0 -6
  277. package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +0 -6
  278. package/dist/components/uikit-sdk/Svg/tokens/BANANA.js +0 -6
  279. package/dist/components/uikit-sdk/Svg/tokens/BASE.js +0 -6
  280. package/dist/components/uikit-sdk/Svg/tokens/BNB.js +0 -6
  281. package/dist/components/uikit-sdk/Svg/tokens/BSC.js +0 -6
  282. package/dist/components/uikit-sdk/Svg/tokens/CELO.js +0 -5
  283. package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +0 -6
  284. package/dist/components/uikit-sdk/Svg/tokens/ETH.js +0 -6
  285. package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +0 -6
  286. package/dist/components/uikit-sdk/Svg/tokens/GNANA.js +0 -6
  287. package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +0 -6
  288. package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +0 -6
  289. package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +0 -6
  290. package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +0 -6
  291. package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +0 -6
  292. package/dist/components/uikit-sdk/Svg/tokens/OKX.js +0 -5
  293. package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +0 -8
  294. package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +0 -6
  295. package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +0 -6
  296. package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +0 -6
  297. package/dist/components/uikit-sdk/Svg/tokens/index.js +0 -22
  298. package/dist/components/uikit-sdk/Svg/types.js +0 -165
  299. package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js +0 -6
  300. package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js +0 -6
  301. package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js +0 -6
  302. package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js +0 -6
  303. package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js +0 -6
  304. package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js +0 -6
  305. package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js +0 -6
  306. package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js +0 -6
  307. package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js +0 -6
  308. package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js +0 -6
  309. package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js +0 -6
  310. package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js +0 -6
  311. package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js +0 -6
  312. package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js +0 -6
  313. package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js +0 -6
  314. package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js +0 -6
  315. package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js +0 -6
  316. package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js +0 -5
  317. package/dist/components/uikit-sdk/Svg/walletIcons/index.js +0 -18
  318. package/dist/components/uikit-sdk/Tag/ListTag.js +0 -20
  319. package/dist/components/uikit-sdk/Tag/Tag.js +0 -42
  320. package/dist/components/uikit-sdk/Tag/index.js +0 -2
  321. package/dist/components/uikit-sdk/Tag/styles.js +0 -44
  322. package/dist/components/uikit-sdk/Tag/types.js +0 -34
  323. package/dist/components/uikit-sdk/Text/index.js +0 -35
  324. package/dist/components/uikit-sdk/Text/types.js +0 -13
  325. package/dist/components/uikit-sdk/TokenImage/index.js +0 -41
  326. package/dist/components/uikit-sdk/TooltipBubble/index.js +0 -66
  327. package/dist/components/uikit-sdk/TooltipBubble/styles.js +0 -60
  328. package/dist/components/uikit-sdk/TooltipBubble/types.js +0 -8
  329. package/dist/components/uikit-sdk/index.js +0 -12
  330. package/dist/config/abi/bond.json +0 -450
  331. package/dist/config/abi/erc20.json +0 -117
  332. package/dist/config/abi/multicallv2.json +0 -143
  333. package/dist/config/abi/price-getter-linea.json +0 -1448
  334. package/dist/config/abi/price-getter.json +0 -1309
  335. package/dist/config/abi/types/Banana.js +0 -1
  336. package/dist/config/abi/types/Bond.js +0 -1
  337. package/dist/config/abi/types/BondNft.js +0 -1
  338. package/dist/config/abi/types/EnsPublicResolver.js +0 -1
  339. package/dist/config/abi/types/EnsRegistrar.js +0 -1
  340. package/dist/config/abi/types/Erc20.js +0 -1
  341. package/dist/config/abi/types/Erc20_bytes32.js +0 -1
  342. package/dist/config/abi/types/JungleChef.js +0 -1
  343. package/dist/config/abi/types/LaunchBonds.js +0 -1
  344. package/dist/config/abi/types/LensContract.js +0 -1
  345. package/dist/config/abi/types/LockVeAbond.js +0 -1
  346. package/dist/config/abi/types/MigrationBond.js +0 -1
  347. package/dist/config/abi/types/MigrationFveAbond.js +0 -1
  348. package/dist/config/abi/types/MiniComplexRewarder.js +0 -1
  349. package/dist/config/abi/types/Multicallv2.js +0 -1
  350. package/dist/config/abi/types/Multicallv3.js +0 -1
  351. package/dist/config/abi/types/NonFungibleApes.js +0 -1
  352. package/dist/config/abi/types/NonFungibleBananas.js +0 -1
  353. package/dist/config/abi/types/PriceGetter.js +0 -1
  354. package/dist/config/abi/types/PriceGetterLinea.js +0 -1
  355. package/dist/config/abi/types/PriceGetterV2.js +0 -1
  356. package/dist/config/abi/types/SousChef.js +0 -1
  357. package/dist/config/abi/types/Treasury.js +0 -1
  358. package/dist/config/abi/types/Weth.js +0 -1
  359. package/dist/config/abi/types/Zap.js +0 -1
  360. package/dist/config/abi/types/common.js +0 -1
  361. package/dist/config/abi/types/factories/Banana__factory.js +0 -628
  362. package/dist/config/abi/types/factories/BondNft__factory.js +0 -951
  363. package/dist/config/abi/types/factories/Bond__factory.js +0 -1042
  364. package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +0 -833
  365. package/dist/config/abi/types/factories/EnsRegistrar__factory.js +0 -439
  366. package/dist/config/abi/types/factories/Erc20__factory.js +0 -239
  367. package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +0 -47
  368. package/dist/config/abi/types/factories/JungleChef__factory.js +0 -326
  369. package/dist/config/abi/types/factories/LaunchBonds__factory.js +0 -2031
  370. package/dist/config/abi/types/factories/LensContract__factory.js +0 -338
  371. package/dist/config/abi/types/factories/LockVeAbond__factory.js +0 -2215
  372. package/dist/config/abi/types/factories/MigrationBond__factory.js +0 -1656
  373. package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +0 -346
  374. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +0 -586
  375. package/dist/config/abi/types/factories/Multicallv2__factory.js +0 -160
  376. package/dist/config/abi/types/factories/Multicallv3__factory.js +0 -109
  377. package/dist/config/abi/types/factories/NonFungibleApes__factory.js +0 -810
  378. package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +0 -756
  379. package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +0 -1465
  380. package/dist/config/abi/types/factories/PriceGetterV2__factory.js +0 -1364
  381. package/dist/config/abi/types/factories/PriceGetter__factory.js +0 -1326
  382. package/dist/config/abi/types/factories/SousChef__factory.js +0 -666
  383. package/dist/config/abi/types/factories/Treasury__factory.js +0 -309
  384. package/dist/config/abi/types/factories/Weth__factory.js +0 -296
  385. package/dist/config/abi/types/factories/Zap__factory.js +0 -889
  386. package/dist/config/abi/types/factories/index.js +0 -28
  387. package/dist/config/abi/types/index.js +0 -26
  388. package/dist/config/constants/addresses.js +0 -116
  389. package/dist/config/constants/api.js +0 -6
  390. package/dist/config/constants/chains.js +0 -436
  391. package/dist/config/constants/lifiRouting.js +0 -6
  392. package/dist/config/constants/lists.js +0 -21
  393. package/dist/config/constants/meta.js +0 -92
  394. package/dist/config/constants/misc.js +0 -4
  395. package/dist/config/constants/networks.js +0 -44
  396. package/dist/config/constants/products.js +0 -58
  397. package/dist/config/constants/queryKeys.js +0 -47
  398. package/dist/config/constants/tokens.js +0 -64
  399. package/dist/config/constants/tutorials.js +0 -80
  400. package/dist/config/constants/zapInputTokens.js +0 -356
  401. package/dist/config/localization/languages.js +0 -83
  402. package/dist/config/localization/translations.json +0 -918
  403. package/dist/contexts/Localization/Provider.js +0 -134
  404. package/dist/contexts/Localization/helpers.js +0 -63
  405. package/dist/contexts/Localization/index.js +0 -2
  406. package/dist/contexts/Localization/types.js +0 -1
  407. package/dist/contexts/Localization/useTranslation.js +0 -10
  408. package/dist/contexts/ModalContext.js +0 -67
  409. package/dist/contexts/RefreshContext.js +0 -78
  410. package/dist/enum/apeswaplists.d.ts +0 -418
  411. package/dist/enum/apeswaplists.js +0 -152
  412. package/dist/enum/tooltips.js +0 -13
  413. package/dist/hooks/useCookie.js +0 -29
  414. package/dist/hooks/useIsAbond.js +0 -10
  415. package/dist/hooks/useModal.js +0 -39
  416. package/dist/hooks/usePendingVesting.js +0 -13
  417. package/dist/hooks/useRefresh.js +0 -7
  418. package/dist/hooks/useTimer.js +0 -13
  419. package/dist/hooks/useTokenFromZapList.js +0 -10
  420. package/dist/hooks/useTopThreeTags.js +0 -25
  421. package/dist/index.d.ts +0 -5
  422. package/dist/index.js +0 -6
  423. package/dist/providers/index.js +0 -18
  424. package/dist/state/allowance/useAllowance.js +0 -148
  425. package/dist/state/balance/useCurrencyBalance.js +0 -80
  426. package/dist/state/price/useCurrencyPrice.js +0 -397
  427. package/dist/state/zap/getChainParam.js +0 -34
  428. package/dist/state/zap/useSoulZapBondQuote.js +0 -177
  429. package/dist/state/zap/useSoulZapTokenQuote.js +0 -167
  430. package/dist/theme/base.js +0 -123
  431. package/dist/theme/colors.js +0 -93
  432. package/dist/theme/components.js +0 -338
  433. package/dist/theme/display.js +0 -2
  434. package/dist/theme/index.js +0 -15
  435. package/dist/theme/types.js +0 -1
  436. package/dist/types/bonds.js +0 -1
  437. package/dist/types/yourbonds.js +0 -1
  438. package/dist/utils/convertToTokenValue.js +0 -24
  439. package/dist/utils/formatNumber.js +0 -34
  440. package/dist/utils/formatNumbers.js +0 -148
  441. package/dist/utils/getBalanceNumber.js +0 -18
  442. package/dist/utils/getNativeTicker.js +0 -8
  443. package/dist/utils/getTimePeriods.js +0 -44
  444. package/dist/utils/index.js +0 -127
  445. package/dist/utils/localStorageHelpers.js +0 -47
  446. package/dist/utils/multicall.js +0 -90
  447. package/dist/utils/numbers.js +0 -111
  448. package/dist/utils/roundNumber.js +0 -14
  449. package/dist/utils/track.js +0 -17
  450. package/dist/views/BondModal/BondModal.js +0 -300
  451. package/dist/views/BondModal/helper.js +0 -54
  452. package/dist/views/BondModal/index.js +0 -18
  453. package/dist/views/Bonds/Bonds.js +0 -174
  454. package/dist/views/Bonds/index.js +0 -18
  455. package/dist/views/YourBonds/YourBonds.js +0 -276
  456. package/dist/views/YourBonds/fetchBillsUser.js +0 -235
  457. package/dist/views/YourBonds/getBillNftData.js +0 -109
  458. package/dist/views/YourBondsModal/YourBondsModal.js +0 -173
  459. package/dist/views/YourBondsModal/styles.js +0 -12
  460. package/dist/views/ZapModal/index.js +0 -150
  461. package/dist/views/ZapModal/styles.js +0 -35
  462. /package/dist/{enum → config/constants}/tooltips.d.ts +0 -0
@@ -1,418 +0,0 @@
1
- export declare enum QuoteToken {
2
- 'BNB' = "BNB",
3
- 'BANANA' = "BANANA",
4
- 'BUSD' = "BUSD",
5
- 'TWT' = "TWT",
6
- 'UST' = "UST",
7
- 'ETH' = "ETH",
8
- 'USDT' = "USDT"
9
- }
10
- export declare enum PoolCategory {
11
- 'COMMUNITY' = "Community",
12
- 'APEZONE' = "ApeZone",
13
- 'CORE' = "Core",
14
- 'REAL_YIELD' = "Real Yield",
15
- 'JUNGLE' = "Jungle"
16
- }
17
- export declare enum ChainId {
18
- MAINNET = 1,
19
- MATIC = 137,
20
- MATIC_TESTNET = 80001,
21
- BSC = 56,
22
- BSC_TESTNET = 97,
23
- TLOS = 40,
24
- ARBITRUM = 42161,
25
- INEVM_TESTNET = 2424,
26
- INEVM = 2525,
27
- SEPOLIA = 11155111,
28
- LINEA = 59144,
29
- LIGHTLINK = 1890,
30
- IOTA_TESTNET = 1075,
31
- IOTA = 8822,
32
- BASE = 8453
33
- }
34
- export declare enum LiquidityDex {
35
- ApeSwapV2 = "ApeSwapV2",
36
- ApeSwapV3 = "ApeSwapV3",
37
- PancakeSwapV2 = "PancakeSwapV2",
38
- PancakeSwapV3 = "PancakeSwapV3",
39
- SushiSwapV3 = "SushiSwapV3",
40
- UniswapV2 = "UniswapV2",
41
- ThenaV1 = "ThenaV1",
42
- /**
43
- * Initially, LiquidityDex was for the price getter and that checks algebra pricing
44
- * (gamma wraps over it so no pricing there).
45
- * Now we use it for zapVersion as well where Gamma is better.
46
- */
47
- Algebra = "Algebra",
48
- QuickswapV2 = "QuickswapV2",
49
- UniswapV3 = "UniswapV3",
50
- External = "External",
51
- Spartadex = "Spartadex",
52
- Nile = "Nile",
53
- XFAI = "XFAI",
54
- Lynex = "Lynex",
55
- Metavault = "Metavault",
56
- Elektrik = "Elektrik",
57
- Synthswap = "Synthswap",
58
- Aerodrome = "Aerodrome",
59
- SmarDex = "SmarDex"
60
- }
61
- export declare enum IchiSupportedDex {
62
- Ascent = "Ascent",
63
- Blueprint = "Blueprint",
64
- Cleo = "Cleo",
65
- Equalizer = "Equalizer",
66
- Fenix = "Fenix",
67
- Forge = "Forge",
68
- Henjin = "Henjin",
69
- Kinetix = "Kinetix",
70
- Linehub = "Linehub",
71
- Lynex = "Lynex",
72
- Metavault = "Metavault",
73
- Nile = "Nile",
74
- Pancakeswap = "PancakeSwap",
75
- Quickswap = "QuickSwap",
76
- Ramses = "Ramses",
77
- Retro = "Retro",
78
- SaucerSwap = "SaucerSwap",
79
- SpiritSwap = "SpiritSwap",
80
- Sushiswap = "SushiSwap",
81
- Thena = "Thena",
82
- Thirdfy = "Thirdfy",
83
- UniswapV3 = "Uniswap V3",
84
- Velocore = "Velocore",
85
- XSwap = "XSwap"
86
- }
87
- export declare enum ZapVersion {
88
- External = "External",
89
- ZapV1 = "ZapV1",
90
- Wido = "Wido",
91
- SoulZap = "SoulZap",
92
- SoulZapApi = "SoulZapApi"
93
- }
94
- export declare enum Protocols {
95
- Both = 1,
96
- V2 = 2,
97
- V3 = 3,
98
- Algebra = 4,
99
- Gamma = 5,
100
- Steer = 6,
101
- Solidly = 7,
102
- XFAI = 8
103
- }
104
- export interface FarmStyles {
105
- deprecated: string;
106
- warning: string;
107
- featured: string;
108
- inactive: string;
109
- }
110
- export interface Token {
111
- symbol: string;
112
- address: Partial<Record<ChainId, string>>;
113
- active: boolean;
114
- decimals?: Partial<Record<ChainId, number | null>>;
115
- dontFetch?: boolean;
116
- lpToken?: boolean;
117
- price?: number;
118
- liquidityDex?: Partial<Record<ChainId, LiquidityDex>>;
119
- getLpUrl?: Partial<Record<ChainId, string>>;
120
- ichiUnderlyingDex?: IchiSupportedDex;
121
- }
122
- export interface MasterChef {
123
- pid: Partial<Record<ChainId, number>>;
124
- address: Partial<Record<ChainId, string>>;
125
- rewardsPerBlock: Partial<Record<ChainId, string>>;
126
- rewardToken: Token;
127
- }
128
- export declare enum BillVersion {
129
- V1 = "V1",
130
- V2 = "V2",
131
- FixedPrice = "FixedPrice",
132
- V3 = "V3",
133
- TieredSale = "TieredSale",
134
- FlashTieredSale = "FlashTieredSale"
135
- }
136
- /**
137
- * This enum defines the art collection used to generate the art for a bill (bond).
138
- *
139
- * NOTE: Collections start at 1. The collection number provides a method to make new releases around
140
- * the same theme or project.
141
- */
142
- export declare enum BillArtCollection {
143
- ApeSwap_Collection1 = "ApeSwap_Collection1",
144
- Quickswap_Collection1 = "Quickswap_Collection1",
145
- ApeBond_Collection1 = "ApeBond_Collection1",
146
- CexFundBond_Collection1 = "CexFundBond_Collection1",
147
- PlanetIX_Collection1 = "PlanetIX_Collection1",
148
- ETH_Collection1 = "ETH_Collection1",
149
- inEVM_Collection1 = "inEVM_Collection1",
150
- AITECH_Collection1 = "AITECH_Collection1"
151
- }
152
- export declare const defaultBillArtCollection = BillArtCollection.ApeSwap_Collection1;
153
- export declare const MigrationVestingTerms: {
154
- readonly '60d': 5184000;
155
- readonly '120d': 10368000;
156
- readonly '180d': 15552000;
157
- readonly '360d': 31104000;
158
- };
159
- export type MigrationVestingTermType = typeof MigrationVestingTerms[keyof typeof MigrationVestingTerms];
160
- export interface LaunchProjectConfig {
161
- index: number;
162
- projectId: string;
163
- projectName: string;
164
- bonds: TieredSaleBondConfig[];
165
- saleStartTime: string;
166
- totalAllocation: string;
167
- salePriceString: string;
168
- vestingTimeString: string;
169
- projectInfo: {
170
- shortDescription: string;
171
- fullDescription: string;
172
- tags: string[];
173
- socials: {
174
- twitter: string;
175
- discord?: string;
176
- website: string;
177
- whitepaper: string;
178
- tokenomicsURL: string;
179
- teaserVideo: string;
180
- telegram?: string;
181
- };
182
- images: {
183
- launchpadImg: string;
184
- launchpadSmallImg: string;
185
- launchpadIcon: string;
186
- headerImg: string;
187
- headerImgMobile: string;
188
- websiteImg: string;
189
- whitepaperImg: string;
190
- partnersImg: string;
191
- tokenomicsImg: string;
192
- teaserImg: string;
193
- };
194
- };
195
- }
196
- export interface TieredSaleBondConfig {
197
- index: number;
198
- contractAddress: Partial<Record<ChainId, string>>;
199
- billVersion: BillVersion;
200
- billType: 'fcfs' | 'oversubscription';
201
- token: Token;
202
- earnToken: Token;
203
- billNnftAddress: Partial<Record<ChainId, string>>;
204
- soldOut: boolean;
205
- billArt: {
206
- collection: BillArtCollection;
207
- };
208
- initTime: Partial<Record<ChainId, number>>;
209
- finishTime: Partial<Record<ChainId, number>>;
210
- redeemTime?: Partial<Record<ChainId, number>>;
211
- startVestingTimestamp: Partial<Record<ChainId, number>>;
212
- initPrice: Partial<Record<ChainId, number>>;
213
- initialRelease: number;
214
- }
215
- export interface FlashBondConfig extends TieredSaleBondConfig {
216
- round: string;
217
- totalRaiseString: string;
218
- discountString: string;
219
- tierString: string;
220
- }
221
- export declare enum LaunchBondTiers {
222
- Bronze = 0,
223
- Silver = 1,
224
- Gold = 2,
225
- Diamond = 3,
226
- Legend = 4
227
- }
228
- export interface BillsConfig {
229
- index: number;
230
- cmcId?: number;
231
- chainId: ChainId;
232
- contractAddress: Partial<Record<ChainId, string>>;
233
- billVersion: BillVersion;
234
- billType: 'liquidity' | 'reserve' | 'launch' | 'migration' | 'cex';
235
- token: Token;
236
- quoteToken: Token;
237
- lpToken: Token;
238
- earnToken: Token;
239
- billNnftAddress: Partial<Record<ChainId, string>>;
240
- inactive?: boolean;
241
- projectLink?: string;
242
- twitter?: string;
243
- initTime?: Partial<Record<ChainId, number>>;
244
- initPrice?: Partial<Record<ChainId, number>>;
245
- audit?: string;
246
- soldOut?: boolean;
247
- billArt?: {
248
- collection: BillArtCollection;
249
- };
250
- showcaseToken?: Token;
251
- bondPartner?: string;
252
- shortDescription?: string;
253
- fullDescription?: string;
254
- featuredURLS?: string[];
255
- partnersURLS?: string[];
256
- tags?: string[];
257
- vestingTerm?: number;
258
- multiplier?: number;
259
- onlyPartner?: boolean;
260
- }
261
- export declare enum VaultVersion {
262
- V1 = "V1",
263
- V2 = "V2",
264
- V3 = "V3"
265
- }
266
- export interface VaultConfig {
267
- id: number;
268
- pid: number;
269
- type: 'MAX' | 'AUTO' | 'BURN';
270
- version: VaultVersion;
271
- availableChains: number[];
272
- stratAddress: Partial<Record<ChainId, string>>;
273
- platform: string;
274
- token: Token;
275
- quoteToken?: Token;
276
- stakeToken: Token;
277
- rewardToken: Token;
278
- masterchef: MasterChef;
279
- inactive?: boolean;
280
- depositFee?: number;
281
- rewardsInSeconds?: boolean;
282
- fee?: string;
283
- }
284
- export interface FarmConfig {
285
- pid: number;
286
- lpSymbol: string;
287
- lpAddresses: Partial<Record<ChainId, string>>;
288
- tokenSymbol: string;
289
- style?: keyof FarmStyles;
290
- image?: string;
291
- disableApr?: boolean;
292
- tokenAddresses: Partial<Record<ChainId, string>>;
293
- quoteTokenSymbol: QuoteToken;
294
- quoteTokenAdresses: Partial<Record<ChainId, string>>;
295
- multiplier?: string;
296
- isCommunity?: boolean;
297
- dual?: {
298
- rewardPerBlock: number;
299
- earnLabel: string;
300
- endBlock: number;
301
- };
302
- projectLink?: string;
303
- }
304
- export interface PoolConfig {
305
- sousId: number;
306
- image?: string;
307
- tokenName: string;
308
- stakingToken: Token;
309
- stakingLimit?: number;
310
- bonusEndBlock?: number;
311
- bonusEndTime?: number;
312
- rewardToken: Token | null;
313
- contractAddress: Partial<Record<ChainId, string>>;
314
- poolCategory?: PoolCategory;
315
- projectLink: string;
316
- twitter?: string;
317
- tokenPerBlock?: string;
318
- rewardsPerSecond?: string;
319
- sortOrder?: number;
320
- harvest?: boolean;
321
- reflect?: boolean;
322
- isFinished?: boolean;
323
- tokenDecimals: number;
324
- displayDecimals?: number;
325
- lpStaking?: boolean;
326
- lpTokens?: {
327
- token: Token;
328
- quoteToken: Token;
329
- };
330
- forAdmins?: boolean;
331
- emergencyWithdraw?: boolean;
332
- isEarnTokenLp?: boolean;
333
- zapable?: boolean;
334
- audit?: string;
335
- }
336
- export interface DualFarmConfig {
337
- pid: number;
338
- network: number;
339
- stakeTokenAddress: string;
340
- rewarderAddress: string;
341
- dualImage?: boolean;
342
- stakeTokens: {
343
- token0: Token;
344
- token1: Token;
345
- };
346
- rewardTokens: {
347
- token0: Token;
348
- token1?: Token;
349
- };
350
- }
351
- export interface JungleFarmConfig {
352
- jungleId: number;
353
- image?: string;
354
- tokenName: string;
355
- stakingToken: Token;
356
- stakingLimit?: number;
357
- bonusEndBlock?: number;
358
- bonusEndTime?: number;
359
- rewardToken: Token;
360
- contractAddress: Partial<Record<ChainId, string>>;
361
- projectLink: string;
362
- twitter?: string;
363
- tokenPerBlock?: string;
364
- sortOrder?: number;
365
- harvest?: boolean;
366
- reflect?: boolean;
367
- isFinished?: boolean;
368
- tokenDecimals: number;
369
- displayDecimals?: number;
370
- lpStaking?: boolean;
371
- lpTokens?: {
372
- token: Token;
373
- quoteToken: Token;
374
- };
375
- forAdmins?: boolean;
376
- emergencyWithdraw?: boolean;
377
- isEarnTokenLp?: boolean;
378
- network: number;
379
- unZapable?: boolean;
380
- rewardsPerSecond?: string;
381
- audit?: string;
382
- }
383
- export interface NfaStakingPoolConfig {
384
- sousId: number;
385
- tier: number;
386
- rewardToken: Token;
387
- contractAddress: Partial<Record<ChainId, string>>;
388
- tokenPerBlock: string;
389
- isFinished: boolean;
390
- endBlock: number;
391
- }
392
- export interface IaoConfig {
393
- id: string;
394
- isActive: boolean;
395
- isLinear: boolean;
396
- address: string;
397
- name: string;
398
- subTitle?: string;
399
- description?: string;
400
- launchDate: string;
401
- launchTime: string;
402
- saleAmount: string;
403
- raiseAmount: string;
404
- totalAmountRaised?: string;
405
- bananaToBurn?: string;
406
- projectSiteUrl: string;
407
- currency: string;
408
- currencyAddress: string;
409
- offeringCurrency: string;
410
- tokenDecimals: number;
411
- releaseBlockNumber: number;
412
- vestingTime?: string;
413
- vesting?: boolean;
414
- startBlock?: number;
415
- burnedTxUrl?: string;
416
- expires?: number;
417
- vestingTimeSeconds?: number;
418
- }
@@ -1,152 +0,0 @@
1
- // Manually copied from @ape.swap/apeswap-lists due to error when importing from package
2
- export var QuoteToken;
3
- (function (QuoteToken) {
4
- QuoteToken["BNB"] = "BNB";
5
- QuoteToken["BANANA"] = "BANANA";
6
- QuoteToken["BUSD"] = "BUSD";
7
- QuoteToken["TWT"] = "TWT";
8
- QuoteToken["UST"] = "UST";
9
- QuoteToken["ETH"] = "ETH";
10
- QuoteToken["USDT"] = "USDT";
11
- })(QuoteToken || (QuoteToken = {}));
12
- export var PoolCategory;
13
- (function (PoolCategory) {
14
- PoolCategory["COMMUNITY"] = "Community";
15
- PoolCategory["APEZONE"] = "ApeZone";
16
- PoolCategory["CORE"] = "Core";
17
- PoolCategory["REAL_YIELD"] = "Real Yield";
18
- PoolCategory["JUNGLE"] = "Jungle";
19
- })(PoolCategory || (PoolCategory = {}));
20
- export var ChainId;
21
- (function (ChainId) {
22
- ChainId[ChainId["MAINNET"] = 1] = "MAINNET";
23
- ChainId[ChainId["MATIC"] = 137] = "MATIC";
24
- ChainId[ChainId["MATIC_TESTNET"] = 80001] = "MATIC_TESTNET";
25
- ChainId[ChainId["BSC"] = 56] = "BSC";
26
- ChainId[ChainId["BSC_TESTNET"] = 97] = "BSC_TESTNET";
27
- ChainId[ChainId["TLOS"] = 40] = "TLOS";
28
- ChainId[ChainId["ARBITRUM"] = 42161] = "ARBITRUM";
29
- ChainId[ChainId["INEVM_TESTNET"] = 2424] = "INEVM_TESTNET";
30
- ChainId[ChainId["INEVM"] = 2525] = "INEVM";
31
- ChainId[ChainId["SEPOLIA"] = 11155111] = "SEPOLIA";
32
- ChainId[ChainId["LINEA"] = 59144] = "LINEA";
33
- ChainId[ChainId["LIGHTLINK"] = 1890] = "LIGHTLINK";
34
- ChainId[ChainId["IOTA_TESTNET"] = 1075] = "IOTA_TESTNET";
35
- ChainId[ChainId["IOTA"] = 8822] = "IOTA";
36
- ChainId[ChainId["BASE"] = 8453] = "BASE";
37
- })(ChainId || (ChainId = {}));
38
- export var LiquidityDex;
39
- (function (LiquidityDex) {
40
- LiquidityDex["ApeSwapV2"] = "ApeSwapV2";
41
- LiquidityDex["ApeSwapV3"] = "ApeSwapV3";
42
- LiquidityDex["PancakeSwapV2"] = "PancakeSwapV2";
43
- LiquidityDex["PancakeSwapV3"] = "PancakeSwapV3";
44
- LiquidityDex["SushiSwapV3"] = "SushiSwapV3";
45
- LiquidityDex["UniswapV2"] = "UniswapV2";
46
- LiquidityDex["ThenaV1"] = "ThenaV1";
47
- /**
48
- * Initially, LiquidityDex was for the price getter and that checks algebra pricing
49
- * (gamma wraps over it so no pricing there).
50
- * Now we use it for zapVersion as well where Gamma is better.
51
- */
52
- LiquidityDex["Algebra"] = "Algebra";
53
- LiquidityDex["QuickswapV2"] = "QuickswapV2";
54
- LiquidityDex["UniswapV3"] = "UniswapV3";
55
- LiquidityDex["External"] = "External";
56
- LiquidityDex["Spartadex"] = "Spartadex";
57
- LiquidityDex["Nile"] = "Nile";
58
- LiquidityDex["XFAI"] = "XFAI";
59
- LiquidityDex["Lynex"] = "Lynex";
60
- LiquidityDex["Metavault"] = "Metavault";
61
- LiquidityDex["Elektrik"] = "Elektrik";
62
- LiquidityDex["Synthswap"] = "Synthswap";
63
- LiquidityDex["Aerodrome"] = "Aerodrome";
64
- LiquidityDex["SmarDex"] = "SmarDex";
65
- })(LiquidityDex || (LiquidityDex = {}));
66
- export var IchiSupportedDex;
67
- (function (IchiSupportedDex) {
68
- IchiSupportedDex["Ascent"] = "Ascent";
69
- IchiSupportedDex["Blueprint"] = "Blueprint";
70
- IchiSupportedDex["Cleo"] = "Cleo";
71
- IchiSupportedDex["Equalizer"] = "Equalizer";
72
- IchiSupportedDex["Fenix"] = "Fenix";
73
- IchiSupportedDex["Forge"] = "Forge";
74
- IchiSupportedDex["Henjin"] = "Henjin";
75
- IchiSupportedDex["Kinetix"] = "Kinetix";
76
- IchiSupportedDex["Linehub"] = "Linehub";
77
- IchiSupportedDex["Lynex"] = "Lynex";
78
- IchiSupportedDex["Metavault"] = "Metavault";
79
- IchiSupportedDex["Nile"] = "Nile";
80
- IchiSupportedDex["Pancakeswap"] = "PancakeSwap";
81
- IchiSupportedDex["Quickswap"] = "QuickSwap";
82
- IchiSupportedDex["Ramses"] = "Ramses";
83
- IchiSupportedDex["Retro"] = "Retro";
84
- IchiSupportedDex["SaucerSwap"] = "SaucerSwap";
85
- IchiSupportedDex["SpiritSwap"] = "SpiritSwap";
86
- IchiSupportedDex["Sushiswap"] = "SushiSwap";
87
- IchiSupportedDex["Thena"] = "Thena";
88
- IchiSupportedDex["Thirdfy"] = "Thirdfy";
89
- IchiSupportedDex["UniswapV3"] = "Uniswap V3";
90
- IchiSupportedDex["Velocore"] = "Velocore";
91
- IchiSupportedDex["XSwap"] = "XSwap";
92
- })(IchiSupportedDex || (IchiSupportedDex = {}));
93
- export var ZapVersion;
94
- (function (ZapVersion) {
95
- ZapVersion["External"] = "External";
96
- ZapVersion["ZapV1"] = "ZapV1";
97
- ZapVersion["Wido"] = "Wido";
98
- ZapVersion["SoulZap"] = "SoulZap";
99
- ZapVersion["SoulZapApi"] = "SoulZapApi";
100
- })(ZapVersion || (ZapVersion = {}));
101
- export var Protocols;
102
- (function (Protocols) {
103
- Protocols[Protocols["Both"] = 1] = "Both";
104
- Protocols[Protocols["V2"] = 2] = "V2";
105
- Protocols[Protocols["V3"] = 3] = "V3";
106
- Protocols[Protocols["Algebra"] = 4] = "Algebra";
107
- Protocols[Protocols["Gamma"] = 5] = "Gamma";
108
- Protocols[Protocols["Steer"] = 6] = "Steer";
109
- Protocols[Protocols["Solidly"] = 7] = "Solidly";
110
- Protocols[Protocols["XFAI"] = 8] = "XFAI";
111
- })(Protocols || (Protocols = {}));
112
- export var BillVersion;
113
- (function (BillVersion) {
114
- BillVersion["V1"] = "V1";
115
- BillVersion["V2"] = "V2";
116
- BillVersion["FixedPrice"] = "FixedPrice";
117
- BillVersion["V3"] = "V3";
118
- BillVersion["TieredSale"] = "TieredSale";
119
- BillVersion["FlashTieredSale"] = "FlashTieredSale";
120
- })(BillVersion || (BillVersion = {}));
121
- /**
122
- * This enum defines the art collection used to generate the art for a bill (bond).
123
- *
124
- * NOTE: Collections start at 1. The collection number provides a method to make new releases around
125
- * the same theme or project.
126
- */
127
- export var BillArtCollection;
128
- (function (BillArtCollection) {
129
- BillArtCollection["ApeSwap_Collection1"] = "ApeSwap_Collection1";
130
- BillArtCollection["Quickswap_Collection1"] = "Quickswap_Collection1";
131
- BillArtCollection["ApeBond_Collection1"] = "ApeBond_Collection1";
132
- BillArtCollection["CexFundBond_Collection1"] = "CexFundBond_Collection1";
133
- BillArtCollection["PlanetIX_Collection1"] = "PlanetIX_Collection1";
134
- BillArtCollection["ETH_Collection1"] = "ETH_Collection1";
135
- BillArtCollection["inEVM_Collection1"] = "inEVM_Collection1";
136
- BillArtCollection["AITECH_Collection1"] = "AITECH_Collection1";
137
- })(BillArtCollection || (BillArtCollection = {}));
138
- export var defaultBillArtCollection = BillArtCollection.ApeSwap_Collection1;
139
- export var LaunchBondTiers;
140
- (function (LaunchBondTiers) {
141
- LaunchBondTiers[LaunchBondTiers["Bronze"] = 0] = "Bronze";
142
- LaunchBondTiers[LaunchBondTiers["Silver"] = 1] = "Silver";
143
- LaunchBondTiers[LaunchBondTiers["Gold"] = 2] = "Gold";
144
- LaunchBondTiers[LaunchBondTiers["Diamond"] = 3] = "Diamond";
145
- LaunchBondTiers[LaunchBondTiers["Legend"] = 4] = "Legend";
146
- })(LaunchBondTiers || (LaunchBondTiers = {}));
147
- export var VaultVersion;
148
- (function (VaultVersion) {
149
- VaultVersion["V1"] = "V1";
150
- VaultVersion["V2"] = "V2";
151
- VaultVersion["V3"] = "V3";
152
- })(VaultVersion || (VaultVersion = {}));
@@ -1,13 +0,0 @@
1
- export var TooltipText = {
2
- Discount: "This is the percentage discount relative to the token's current market price.",
3
- ARR: "This is the Annualized Rate of Return you would receive considering the current discount, adjusted for APR.",
4
- Terms: "This is the amount of days it will take for all tokens in the Bond to fully vest.",
5
- TokensRemaining: "This is the amount of remaining tokens for sale in this Bond.",
6
- MaxBuy: function (payoutToken) { return "This is the maximum amount of ".concat(payoutToken, " you can currently purchase through this Bond."); },
7
- Premium: "This is the dollar value of the additional tokens you’ll receive at current market price.",
8
- };
9
- export var UserBillTooltipText = {
10
- FullyVested: "This is the time remaining until all tokens from the bond are available to claim.",
11
- Pending: "This is the amount of unvested tokens that cannot be claimed yet.",
12
- Claimable: "This is the amount of tokens that have vested and are available to claim."
13
- };
@@ -1,29 +0,0 @@
1
- import { useCallback, useState } from 'react';
2
- function useCookie(key, defaultValue) {
3
- var getCookie = function () {
4
- var cookie = typeof window !== 'undefined' ? window.document.cookie.split('; ').find(function (row) { return row.startsWith(key); }) : null;
5
- if (cookie)
6
- return JSON.parse(cookie.slice(key.length + 1));
7
- return defaultValue;
8
- };
9
- var _a = useState(getCookie), cookie = _a[0], setCookieState = _a[1];
10
- var updateCookie = useCallback(function (value) {
11
- if (typeof window === 'undefined')
12
- return;
13
- var defaultExpiry = 6 * 30; // Default to approximately six months
14
- var str = "".concat(key, "=").concat(JSON.stringify(value));
15
- var date = new Date();
16
- date.setTime(date.getTime() + defaultExpiry * 24 * 60 * 60 * 1000);
17
- str += "; expires=".concat(date.toUTCString());
18
- window.document.cookie = str;
19
- setCookieState(value);
20
- }, [key]);
21
- var removeCookie = useCallback(function () {
22
- if (typeof window === 'undefined')
23
- return;
24
- document.cookie = "".concat(key, "=; Expires=Thu, 01 Jan 1970 00:00:01 GMT;");
25
- setCookieState(defaultValue);
26
- }, [defaultValue, key]);
27
- return { cookie: cookie, updateCookie: updateCookie, removeCookie: removeCookie };
28
- }
29
- export default useCookie;
@@ -1,10 +0,0 @@
1
- //TODO: remove this hooks
2
- export var useIsAbond = function () {
3
- return isAbond();
4
- };
5
- export var apeSiteName = function () {
6
- return 'ApeBond';
7
- };
8
- export var isAbond = function () {
9
- return true;
10
- };
@@ -1,39 +0,0 @@
1
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
- if (ar || !(i in from)) {
4
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
- ar[i] = from[i];
6
- }
7
- }
8
- return to.concat(ar || Array.prototype.slice.call(from));
9
- };
10
- import { useCallback, useContext, useEffect } from 'react';
11
- import get from 'lodash/get';
12
- import { Context } from '../contexts/ModalContext';
13
- var useModal = function (modal, closeOnOverlayClick, updateOnPropsChange, modalId, clearModalStack) {
14
- if (closeOnOverlayClick === void 0) { closeOnOverlayClick = true; }
15
- if (updateOnPropsChange === void 0) { updateOnPropsChange = false; }
16
- if (modalId === void 0) { modalId = 'defaultNodeId'; }
17
- if (clearModalStack === void 0) { clearModalStack = false; }
18
- // Clear modal stack will not update props if the parent modal gets unmounted
19
- var _a = useContext(Context), nodeId = _a.nodeId, modalNode = _a.modalNode, setModalNode = _a.setModalNode, onPresent = _a.onPresent, handleClose = _a.handleClose, setCloseOnOverlayClick = _a.setCloseOnOverlayClick;
20
- var onPresentCallback = useCallback(function () {
21
- onPresent(modal, modalId, clearModalStack);
22
- }, [modal, modalId, clearModalStack, onPresent]);
23
- var nodeIdIndex = nodeId.indexOf(modalId);
24
- useEffect(function () {
25
- // NodeId is needed in case there are 2 useModal hooks on the same page and one has updateOnPropsChange
26
- if (updateOnPropsChange) {
27
- var modalProps = get(modal, 'props');
28
- var oldModalProps = get(modalNode[nodeIdIndex], 'props');
29
- if (modalProps && oldModalProps && JSON.stringify(modalProps) !== JSON.stringify(oldModalProps)) {
30
- setModalNode(function (prev) { return __spreadArray(__spreadArray([], prev.filter(function (_, i) { return i !== nodeIdIndex; }), true), [modal], false); });
31
- }
32
- }
33
- }, [updateOnPropsChange, nodeId, modalId, modal, nodeIdIndex, modalNode, setModalNode]);
34
- useEffect(function () {
35
- setCloseOnOverlayClick(closeOnOverlayClick);
36
- }, [closeOnOverlayClick, setCloseOnOverlayClick]);
37
- return [onPresentCallback, handleClose];
38
- };
39
- export default useModal;
@@ -1,13 +0,0 @@
1
- import getTimePeriods from '../utils/getTimePeriods';
2
- import useCurrentTime from './useTimer';
3
- export var usePendingVesting = function (_a) {
4
- var lastBlockTimestamp = _a.lastBlockTimestamp, vesting = _a.vesting;
5
- var currentTime = useCurrentTime() / 1000;
6
- var vestingTime = getTimePeriods(parseInt(lastBlockTimestamp) + parseInt(vesting) - currentTime, true);
7
- return "".concat(vestingTime.days, "d, ").concat(vestingTime.hours, "h, ").concat(vestingTime.minutes, "m");
8
- };
9
- export var getPendingVesting = function (lastBlockTimestamp, vesting) {
10
- var currentTime = new Date().getTime() / 1000;
11
- var vestingTime = getTimePeriods(parseInt(lastBlockTimestamp) + parseInt(vesting) - currentTime, true);
12
- return "".concat(vestingTime.days, "d, ").concat(vestingTime.hours, "h, ").concat(vestingTime.minutes, "m");
13
- };
@@ -1,7 +0,0 @@
1
- import { useContext } from 'react';
2
- import { RefreshContext } from '../contexts/RefreshContext';
3
- var useRefresh = function () {
4
- var _a = useContext(RefreshContext), fast = _a.fast, slow = _a.slow, veryFast = _a.veryFast;
5
- return { veryFastRefresh: veryFast, fastRefresh: fast, slowRefresh: slow };
6
- };
7
- export default useRefresh;