@ape.swap/bonds-sdk 1.0.779 → 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 (455) hide show
  1. package/dist/components/AccordionText/index.d.ts +9 -0
  2. package/dist/components/BondRows/BondRow.d.ts +3 -2
  3. package/dist/components/BondRows/BondRowHeader.d.ts +2 -3
  4. package/dist/components/BondRows/BondRowsByChain.d.ts +3 -3
  5. package/dist/components/BondRows/BondRowsWithTitle.d.ts +3 -3
  6. package/dist/components/DisconnectedPlaceholder/index.d.ts +3 -0
  7. package/dist/components/SlippageModal/index.d.ts +3 -0
  8. package/dist/components/TokenInfoAndName/index.d.ts +3 -2
  9. package/dist/components/TokenSelectorModal/TokenRow.d.ts +8 -0
  10. package/dist/components/TokenSelectorModal/index.d.ts +11 -0
  11. package/dist/components/TokenSelectorPanel/index.d.ts +15 -0
  12. package/dist/components/uikit-sdk/Modal/index.d.ts +1 -1
  13. package/dist/components/uikit-sdk/Toggle/index.d.ts +8 -0
  14. package/dist/components/uikit-sdk/Toggle/styles.d.ts +3 -0
  15. package/dist/components/uikit-sdk/TokenImage/index.d.ts +3 -2
  16. package/dist/components/uikit-sdk/index.d.ts +1 -0
  17. package/dist/config/abi/types/Banana.d.ts +103 -126
  18. package/dist/config/abi/types/Bond.d.ts +176 -221
  19. package/dist/config/abi/types/BondNft.d.ts +160 -207
  20. package/dist/config/abi/types/EnsPublicResolver.d.ts +129 -205
  21. package/dist/config/abi/types/EnsRegistrar.d.ts +62 -82
  22. package/dist/config/abi/types/Erc20.d.ts +40 -52
  23. package/dist/config/abi/types/Erc20_bytes32.d.ts +11 -11
  24. package/dist/config/abi/types/JungleChef.d.ts +64 -79
  25. package/dist/config/abi/types/LaunchBonds.d.ts +299 -355
  26. package/dist/config/abi/types/LensContract.d.ts +58 -77
  27. package/dist/config/abi/types/LockVeAbond.d.ts +328 -434
  28. package/dist/config/abi/types/MigrationBond.d.ts +268 -330
  29. package/dist/config/abi/types/MigrationFveAbond.d.ts +83 -89
  30. package/dist/config/abi/types/MiniComplexRewarder.d.ts +99 -145
  31. package/dist/config/abi/types/Multicallv2.d.ts +35 -46
  32. package/dist/config/abi/types/Multicallv3.d.ts +14 -14
  33. package/dist/config/abi/types/NonFungibleApes.d.ts +130 -170
  34. package/dist/config/abi/types/NonFungibleBananas.d.ts +135 -172
  35. package/dist/config/abi/types/PriceGetter.d.ts +218 -255
  36. package/dist/config/abi/types/PriceGetterLinea.d.ts +254 -287
  37. package/dist/config/abi/types/PriceGetterV2.d.ts +239 -276
  38. package/dist/config/abi/types/SousChef.d.ts +140 -177
  39. package/dist/config/abi/types/Treasury.d.ts +66 -69
  40. package/dist/config/abi/types/Weth.d.ts +53 -68
  41. package/dist/config/abi/types/Zap.d.ts +97 -141
  42. package/dist/config/abi/types/common.d.ts +3 -3
  43. package/dist/config/abi/types/factories/Banana__factory.d.ts +3 -3
  44. package/dist/config/abi/types/factories/BondNft__factory.d.ts +3 -3
  45. package/dist/config/abi/types/factories/Bond__factory.d.ts +3 -3
  46. package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +3 -3
  47. package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +3 -3
  48. package/dist/config/abi/types/factories/Erc20__factory.d.ts +3 -3
  49. package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +3 -3
  50. package/dist/config/abi/types/factories/JungleChef__factory.d.ts +3 -3
  51. package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +3 -3
  52. package/dist/config/abi/types/factories/LensContract__factory.d.ts +3 -3
  53. package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +3 -3
  54. package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +3 -3
  55. package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +3 -3
  56. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +3 -3
  57. package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +3 -3
  58. package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +3 -3
  59. package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +3 -3
  60. package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +3 -3
  61. package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +3 -3
  62. package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +3 -3
  63. package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +3 -3
  64. package/dist/config/abi/types/factories/SousChef__factory.d.ts +3 -3
  65. package/dist/config/abi/types/factories/Treasury__factory.d.ts +3 -3
  66. package/dist/config/abi/types/factories/Weth__factory.d.ts +3 -3
  67. package/dist/config/abi/types/factories/Zap__factory.d.ts +3 -3
  68. package/dist/config/abi/types/factories/index.d.ts +25 -25
  69. package/dist/config/abi/types/index.d.ts +51 -51
  70. package/dist/config/constants/addresses.d.ts +0 -8
  71. package/dist/config/constants/queryKeys.d.ts +10 -2
  72. package/dist/config/constants/tokens.d.ts +3 -6
  73. package/dist/config/constants/zapInputTokens.d.ts +2 -0
  74. package/dist/hooks/useTokenFromZapList.d.ts +3 -0
  75. package/dist/hooks/useTopThreeTags.d.ts +2 -2
  76. package/dist/main.d.ts +7 -0
  77. package/dist/main.js +73492 -0
  78. package/dist/providers/index.d.ts +0 -3
  79. package/dist/scss/AccordionText.scss +11 -0
  80. package/dist/scss/BondMenu.scss +2 -2
  81. package/dist/scss/BondModal.scss +305 -234
  82. package/dist/scss/BondRow.scss +5 -5
  83. package/dist/scss/BondRowHeader.scss +7 -7
  84. package/dist/scss/Bonds.scss +2 -1
  85. package/dist/scss/TokenInfoName.scss +60 -0
  86. package/dist/scss/YourBonds.scss +19 -14
  87. package/dist/scss/YourBondsModal.scss +3 -3
  88. package/dist/scss/index.scss +12 -0
  89. package/dist/state/allowance/useAllowance.d.ts +15 -0
  90. package/dist/state/balance/useCurrencyBalance.d.ts +4 -0
  91. package/dist/state/bonds/useBondNFTData.d.ts +5 -0
  92. package/dist/state/bonds/useBondsData.d.ts +4 -0
  93. package/dist/state/bonds/useBondsList.d.ts +4 -0
  94. package/dist/state/bonds/useHotBonds.d.ts +3 -0
  95. package/dist/state/bonds/useUserBonds.d.ts +5 -0
  96. package/dist/state/price/useCurrencyPrice.d.ts +3 -0
  97. package/dist/state/slippage/useSlippage.d.ts +1 -0
  98. package/dist/state/tokenPrices/useTokenPrices.d.ts +29 -0
  99. package/dist/state/zap/getChainParam.d.ts +12 -0
  100. package/dist/state/zap/useSoulZapBondQuote.d.ts +4 -0
  101. package/dist/state/zap/useSoulZapTokenQuote.d.ts +3 -0
  102. package/dist/types/bonds.d.ts +4 -41
  103. package/dist/types/yourbonds.d.ts +54 -69
  104. package/dist/utils/displayHelpers.d.ts +13 -0
  105. package/dist/utils/getNativeTicker.d.ts +3 -0
  106. package/dist/utils/index.d.ts +1 -1
  107. package/dist/views/BondModal/BondModal.d.ts +7 -6
  108. package/dist/views/BondModal/helper.d.ts +6 -6
  109. package/dist/views/BondModal/index.d.ts +2 -2
  110. package/dist/views/Bonds/Bonds.d.ts +7 -10
  111. package/dist/views/Bonds/components/CheckURL/index.d.ts +4 -0
  112. package/dist/views/Bonds/index.d.ts +4 -0
  113. package/dist/views/Bonds/utils.d.ts +14 -0
  114. package/dist/views/FullBondsView/FullBondsView.d.ts +7 -0
  115. package/dist/views/FullBondsView/index.d.ts +3 -0
  116. package/dist/views/YourBonds/YourBonds.d.ts +1 -11
  117. package/dist/views/YourBonds/components/UserBondRow/index.d.ts +6 -0
  118. package/dist/views/YourBonds/fetchBillsUser.d.ts +4 -5
  119. package/dist/views/YourBonds/index.d.ts +3 -0
  120. package/dist/views/YourBondsModal/YourBondsModal.d.ts +4 -5
  121. package/dist/views/ZapModal/index.d.ts +14 -0
  122. package/dist/views/ZapModal/styles.d.ts +2 -0
  123. package/package.json +24 -24
  124. package/dist/components/BondMenu/BondMenu.js +0 -40
  125. package/dist/components/BondMenu/useChainFilterOption.js +0 -30
  126. package/dist/components/BondRows/BondRow.js +0 -81
  127. package/dist/components/BondRows/BondRowHeader.js +0 -12
  128. package/dist/components/BondRows/BondRowsByChain.js +0 -13
  129. package/dist/components/BondRows/BondRowsWithTitle.js +0 -20
  130. package/dist/components/BondRows/ChainTitle.js +0 -18
  131. package/dist/components/MenuSelect/MenuSelect.js +0 -36
  132. package/dist/components/MenuSelect/RecommendationSelector.js +0 -32
  133. package/dist/components/MenuSelect/types.js +0 -1
  134. package/dist/components/NetworkFilter/index.js +0 -66
  135. package/dist/components/ProgressBar/ProgressBar.js +0 -10
  136. package/dist/components/ProgressBar/ProgressBarWrapper.js +0 -9
  137. package/dist/components/ProgressBar/styles.js +0 -82
  138. package/dist/components/TokenInfoAndName/index.js +0 -61
  139. package/dist/components/Tooltip/ButtonsRow.js +0 -21
  140. package/dist/components/Tooltip/Tooltip.js +0 -13
  141. package/dist/components/Tooltip/styles.js +0 -44
  142. package/dist/components/uikit-sdk/Button/Button.js +0 -91
  143. package/dist/components/uikit-sdk/Button/IconButton.js +0 -33
  144. package/dist/components/uikit-sdk/Button/index.js +0 -2
  145. package/dist/components/uikit-sdk/Button/styles.js +0 -30
  146. package/dist/components/uikit-sdk/Button/types.js +0 -37
  147. package/dist/components/uikit-sdk/Checkbox/index.js +0 -46
  148. package/dist/components/uikit-sdk/Checkbox/types.js +0 -5
  149. package/dist/components/uikit-sdk/Flex/index.js +0 -29
  150. package/dist/components/uikit-sdk/Input/Input.js +0 -72
  151. package/dist/components/uikit-sdk/Input/NumericInput.js +0 -35
  152. package/dist/components/uikit-sdk/Input/StyledInput.js +0 -26
  153. package/dist/components/uikit-sdk/Input/index.js +0 -3
  154. package/dist/components/uikit-sdk/Modal/ModalFooter.js +0 -21
  155. package/dist/components/uikit-sdk/Modal/ModalHeader.js +0 -31
  156. package/dist/components/uikit-sdk/Modal/index.js +0 -46
  157. package/dist/components/uikit-sdk/Modal/styles.js +0 -62
  158. package/dist/components/uikit-sdk/Modal/types.js +0 -1
  159. package/dist/components/uikit-sdk/Select/Select.js +0 -61
  160. package/dist/components/uikit-sdk/Select/SelectItem.js +0 -40
  161. package/dist/components/uikit-sdk/Select/index.js +0 -2
  162. package/dist/components/uikit-sdk/Select/styles.js +0 -50
  163. package/dist/components/uikit-sdk/Select/types.js +0 -37
  164. package/dist/components/uikit-sdk/Skeleton/index.js +0 -31
  165. package/dist/components/uikit-sdk/Skeleton/styles.js +0 -40
  166. package/dist/components/uikit-sdk/Skeleton/types.js +0 -10
  167. package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js +0 -16
  168. package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js +0 -6
  169. package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js +0 -16
  170. package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +0 -6
  171. package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js +0 -17
  172. package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js +0 -6
  173. package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +0 -16
  174. package/dist/components/uikit-sdk/Svg/Icons/Audit.js +0 -16
  175. package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js +0 -6
  176. package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js +0 -16
  177. package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js +0 -17
  178. package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js +0 -16
  179. package/dist/components/uikit-sdk/Svg/Icons/Bridge.js +0 -16
  180. package/dist/components/uikit-sdk/Svg/Icons/Bubble.js +0 -16
  181. package/dist/components/uikit-sdk/Svg/Icons/Calculator.js +0 -16
  182. package/dist/components/uikit-sdk/Svg/Icons/Calendar.js +0 -5
  183. package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js +0 -16
  184. package/dist/components/uikit-sdk/Svg/Icons/Card.js +0 -16
  185. package/dist/components/uikit-sdk/Svg/Icons/Caret.js +0 -16
  186. package/dist/components/uikit-sdk/Svg/Icons/Chain.js +0 -9
  187. package/dist/components/uikit-sdk/Svg/Icons/Chart.js +0 -16
  188. package/dist/components/uikit-sdk/Svg/Icons/Chat.js +0 -16
  189. package/dist/components/uikit-sdk/Svg/Icons/Close.js +0 -9
  190. package/dist/components/uikit-sdk/Svg/Icons/Cog.js +0 -16
  191. package/dist/components/uikit-sdk/Svg/Icons/Collapse.js +0 -16
  192. package/dist/components/uikit-sdk/Svg/Icons/Copy.js +0 -16
  193. package/dist/components/uikit-sdk/Svg/Icons/Discord.js +0 -16
  194. package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js +0 -16
  195. package/dist/components/uikit-sdk/Svg/Icons/Docs.js +0 -16
  196. package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js +0 -16
  197. package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js +0 -16
  198. package/dist/components/uikit-sdk/Svg/Icons/Error.js +0 -16
  199. package/dist/components/uikit-sdk/Svg/Icons/Expand.js +0 -16
  200. package/dist/components/uikit-sdk/Svg/Icons/Explorer.js +0 -16
  201. package/dist/components/uikit-sdk/Svg/Icons/External.js +0 -16
  202. package/dist/components/uikit-sdk/Svg/Icons/Farm.js +0 -16
  203. package/dist/components/uikit-sdk/Svg/Icons/Fav.js +0 -16
  204. package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js +0 -16
  205. package/dist/components/uikit-sdk/Svg/Icons/Fire.js +0 -6
  206. package/dist/components/uikit-sdk/Svg/Icons/Frame.js +0 -16
  207. package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js +0 -6
  208. package/dist/components/uikit-sdk/Svg/Icons/Gnana.js +0 -16
  209. package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js +0 -6
  210. package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +0 -16
  211. package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js +0 -16
  212. package/dist/components/uikit-sdk/Svg/Icons/Home.js +0 -16
  213. package/dist/components/uikit-sdk/Svg/Icons/Hot.js +0 -6
  214. package/dist/components/uikit-sdk/Svg/Icons/Info.js +0 -16
  215. package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js +0 -16
  216. package/dist/components/uikit-sdk/Svg/Icons/Insight.js +0 -16
  217. package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +0 -16
  218. package/dist/components/uikit-sdk/Svg/Icons/Island.js +0 -16
  219. package/dist/components/uikit-sdk/Svg/Icons/Language.js +0 -16
  220. package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js +0 -16
  221. package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +0 -6
  222. package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js +0 -16
  223. package/dist/components/uikit-sdk/Svg/Icons/Logout.js +0 -16
  224. package/dist/components/uikit-sdk/Svg/Icons/Medium.js +0 -16
  225. package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js +0 -16
  226. package/dist/components/uikit-sdk/Svg/Icons/Message.js +0 -9
  227. package/dist/components/uikit-sdk/Svg/Icons/Migrate.js +0 -16
  228. package/dist/components/uikit-sdk/Svg/Icons/Moon.js +0 -16
  229. package/dist/components/uikit-sdk/Svg/Icons/More.js +0 -16
  230. package/dist/components/uikit-sdk/Svg/Icons/NFA.js +0 -16
  231. package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js +0 -16
  232. package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +0 -16
  233. package/dist/components/uikit-sdk/Svg/Icons/Play.js +0 -5
  234. package/dist/components/uikit-sdk/Svg/Icons/Pool.js +0 -16
  235. package/dist/components/uikit-sdk/Svg/Icons/Positions.js +0 -16
  236. package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js +0 -6
  237. package/dist/components/uikit-sdk/Svg/Icons/ProfileIcon.js +0 -16
  238. package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js +0 -6
  239. package/dist/components/uikit-sdk/Svg/Icons/Question.js +0 -6
  240. package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +0 -16
  241. package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js +0 -16
  242. package/dist/components/uikit-sdk/Svg/Icons/Quiz.js +0 -16
  243. package/dist/components/uikit-sdk/Svg/Icons/Receipt.js +0 -16
  244. package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +0 -16
  245. package/dist/components/uikit-sdk/Svg/Icons/Rocket.js +0 -16
  246. package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js +0 -16
  247. package/dist/components/uikit-sdk/Svg/Icons/Search.js +0 -16
  248. package/dist/components/uikit-sdk/Svg/Icons/Send.js +0 -16
  249. package/dist/components/uikit-sdk/Svg/Icons/Settings.js +0 -16
  250. package/dist/components/uikit-sdk/Svg/Icons/Share.js +0 -16
  251. package/dist/components/uikit-sdk/Svg/Icons/Sort.js +0 -16
  252. package/dist/components/uikit-sdk/Svg/Icons/Success.js +0 -16
  253. package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js +0 -16
  254. package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js +0 -16
  255. package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js +0 -16
  256. package/dist/components/uikit-sdk/Svg/Icons/Tag.js +0 -5
  257. package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +0 -16
  258. package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js +0 -16
  259. package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js +0 -6
  260. package/dist/components/uikit-sdk/Svg/Icons/TickShield.js +0 -16
  261. package/dist/components/uikit-sdk/Svg/Icons/Trade.js +0 -16
  262. package/dist/components/uikit-sdk/Svg/Icons/Trash.js +0 -16
  263. package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +0 -16
  264. package/dist/components/uikit-sdk/Svg/Icons/URL.js +0 -16
  265. package/dist/components/uikit-sdk/Svg/Icons/Vaults.js +0 -16
  266. package/dist/components/uikit-sdk/Svg/Icons/Verified.js +0 -6
  267. package/dist/components/uikit-sdk/Svg/Icons/Wallet.js +0 -16
  268. package/dist/components/uikit-sdk/Svg/Icons/Warning.js +0 -16
  269. package/dist/components/uikit-sdk/Svg/Icons/Watch.js +0 -16
  270. package/dist/components/uikit-sdk/Svg/Icons/Website.js +0 -16
  271. package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js +0 -16
  272. package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js +0 -16
  273. package/dist/components/uikit-sdk/Svg/Icons/XNew.js +0 -16
  274. package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js +0 -6
  275. package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +0 -16
  276. package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +0 -16
  277. package/dist/components/uikit-sdk/Svg/Icons/index.js +0 -112
  278. package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js +0 -16
  279. package/dist/components/uikit-sdk/Svg/Icons/types.js +0 -1
  280. package/dist/components/uikit-sdk/Svg/index.js +0 -347
  281. package/dist/components/uikit-sdk/Svg/styles.js +0 -16
  282. package/dist/components/uikit-sdk/Svg/tokens/ABOND.js +0 -6
  283. package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +0 -6
  284. package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +0 -6
  285. package/dist/components/uikit-sdk/Svg/tokens/BANANA.js +0 -6
  286. package/dist/components/uikit-sdk/Svg/tokens/BASE.js +0 -6
  287. package/dist/components/uikit-sdk/Svg/tokens/BNB.js +0 -6
  288. package/dist/components/uikit-sdk/Svg/tokens/BSC.js +0 -6
  289. package/dist/components/uikit-sdk/Svg/tokens/CELO.js +0 -5
  290. package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +0 -6
  291. package/dist/components/uikit-sdk/Svg/tokens/ETH.js +0 -6
  292. package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +0 -6
  293. package/dist/components/uikit-sdk/Svg/tokens/GNANA.js +0 -6
  294. package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +0 -6
  295. package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +0 -6
  296. package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +0 -6
  297. package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +0 -6
  298. package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +0 -6
  299. package/dist/components/uikit-sdk/Svg/tokens/OKX.js +0 -5
  300. package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +0 -8
  301. package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +0 -6
  302. package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +0 -6
  303. package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +0 -6
  304. package/dist/components/uikit-sdk/Svg/tokens/index.js +0 -22
  305. package/dist/components/uikit-sdk/Svg/types.js +0 -165
  306. package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js +0 -6
  307. package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js +0 -6
  308. package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js +0 -6
  309. package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js +0 -6
  310. package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js +0 -6
  311. package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js +0 -6
  312. package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js +0 -6
  313. package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js +0 -6
  314. package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js +0 -6
  315. package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js +0 -6
  316. package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js +0 -6
  317. package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js +0 -6
  318. package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js +0 -6
  319. package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js +0 -6
  320. package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js +0 -6
  321. package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js +0 -6
  322. package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js +0 -6
  323. package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js +0 -5
  324. package/dist/components/uikit-sdk/Svg/walletIcons/index.js +0 -18
  325. package/dist/components/uikit-sdk/Tag/ListTag.js +0 -20
  326. package/dist/components/uikit-sdk/Tag/Tag.js +0 -42
  327. package/dist/components/uikit-sdk/Tag/index.js +0 -2
  328. package/dist/components/uikit-sdk/Tag/styles.js +0 -44
  329. package/dist/components/uikit-sdk/Tag/types.js +0 -34
  330. package/dist/components/uikit-sdk/Text/index.js +0 -35
  331. package/dist/components/uikit-sdk/Text/types.js +0 -13
  332. package/dist/components/uikit-sdk/TokenImage/index.js +0 -18
  333. package/dist/components/uikit-sdk/TooltipBubble/index.js +0 -66
  334. package/dist/components/uikit-sdk/TooltipBubble/styles.js +0 -60
  335. package/dist/components/uikit-sdk/TooltipBubble/types.js +0 -8
  336. package/dist/components/uikit-sdk/index.js +0 -12
  337. package/dist/config/abi/bond.json +0 -450
  338. package/dist/config/abi/erc20.json +0 -117
  339. package/dist/config/abi/multicallv2.json +0 -143
  340. package/dist/config/abi/types/Banana.js +0 -1
  341. package/dist/config/abi/types/Bond.js +0 -1
  342. package/dist/config/abi/types/BondNft.js +0 -1
  343. package/dist/config/abi/types/EnsPublicResolver.js +0 -1
  344. package/dist/config/abi/types/EnsRegistrar.js +0 -1
  345. package/dist/config/abi/types/Erc20.js +0 -1
  346. package/dist/config/abi/types/Erc20_bytes32.js +0 -1
  347. package/dist/config/abi/types/JungleChef.js +0 -1
  348. package/dist/config/abi/types/LaunchBonds.js +0 -1
  349. package/dist/config/abi/types/LensContract.js +0 -1
  350. package/dist/config/abi/types/LockVeAbond.js +0 -1
  351. package/dist/config/abi/types/MigrationBond.js +0 -1
  352. package/dist/config/abi/types/MigrationFveAbond.js +0 -1
  353. package/dist/config/abi/types/MiniComplexRewarder.js +0 -1
  354. package/dist/config/abi/types/Multicallv2.js +0 -1
  355. package/dist/config/abi/types/Multicallv3.js +0 -1
  356. package/dist/config/abi/types/NonFungibleApes.js +0 -1
  357. package/dist/config/abi/types/NonFungibleBananas.js +0 -1
  358. package/dist/config/abi/types/PriceGetter.js +0 -1
  359. package/dist/config/abi/types/PriceGetterLinea.js +0 -1
  360. package/dist/config/abi/types/PriceGetterV2.js +0 -1
  361. package/dist/config/abi/types/SousChef.js +0 -1
  362. package/dist/config/abi/types/Treasury.js +0 -1
  363. package/dist/config/abi/types/Weth.js +0 -1
  364. package/dist/config/abi/types/Zap.js +0 -1
  365. package/dist/config/abi/types/common.js +0 -1
  366. package/dist/config/abi/types/factories/Banana__factory.js +0 -628
  367. package/dist/config/abi/types/factories/BondNft__factory.js +0 -951
  368. package/dist/config/abi/types/factories/Bond__factory.js +0 -1042
  369. package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +0 -833
  370. package/dist/config/abi/types/factories/EnsRegistrar__factory.js +0 -439
  371. package/dist/config/abi/types/factories/Erc20__factory.js +0 -239
  372. package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +0 -47
  373. package/dist/config/abi/types/factories/JungleChef__factory.js +0 -326
  374. package/dist/config/abi/types/factories/LaunchBonds__factory.js +0 -2031
  375. package/dist/config/abi/types/factories/LensContract__factory.js +0 -338
  376. package/dist/config/abi/types/factories/LockVeAbond__factory.js +0 -2215
  377. package/dist/config/abi/types/factories/MigrationBond__factory.js +0 -1656
  378. package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +0 -346
  379. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +0 -586
  380. package/dist/config/abi/types/factories/Multicallv2__factory.js +0 -160
  381. package/dist/config/abi/types/factories/Multicallv3__factory.js +0 -109
  382. package/dist/config/abi/types/factories/NonFungibleApes__factory.js +0 -810
  383. package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +0 -756
  384. package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +0 -1465
  385. package/dist/config/abi/types/factories/PriceGetterV2__factory.js +0 -1364
  386. package/dist/config/abi/types/factories/PriceGetter__factory.js +0 -1326
  387. package/dist/config/abi/types/factories/SousChef__factory.js +0 -666
  388. package/dist/config/abi/types/factories/Treasury__factory.js +0 -309
  389. package/dist/config/abi/types/factories/Weth__factory.js +0 -296
  390. package/dist/config/abi/types/factories/Zap__factory.js +0 -889
  391. package/dist/config/abi/types/factories/index.js +0 -28
  392. package/dist/config/abi/types/index.js +0 -26
  393. package/dist/config/constants/addresses.js +0 -116
  394. package/dist/config/constants/api.js +0 -6
  395. package/dist/config/constants/chains.js +0 -436
  396. package/dist/config/constants/lifiRouting.js +0 -6
  397. package/dist/config/constants/lists.js +0 -21
  398. package/dist/config/constants/meta.js +0 -92
  399. package/dist/config/constants/misc.js +0 -4
  400. package/dist/config/constants/networks.js +0 -44
  401. package/dist/config/constants/products.js +0 -58
  402. package/dist/config/constants/queryKeys.js +0 -24
  403. package/dist/config/constants/tokens.js +0 -452
  404. package/dist/config/constants/tutorials.js +0 -80
  405. package/dist/config/localization/languages.js +0 -83
  406. package/dist/config/localization/translations.json +0 -918
  407. package/dist/contexts/Localization/Provider.js +0 -134
  408. package/dist/contexts/Localization/helpers.js +0 -63
  409. package/dist/contexts/Localization/index.js +0 -2
  410. package/dist/contexts/Localization/types.js +0 -1
  411. package/dist/contexts/Localization/useTranslation.js +0 -10
  412. package/dist/contexts/ModalContext.js +0 -67
  413. package/dist/contexts/RefreshContext.js +0 -78
  414. package/dist/enum/apeswaplists.d.ts +0 -418
  415. package/dist/enum/apeswaplists.js +0 -152
  416. package/dist/enum/tooltips.js +0 -13
  417. package/dist/hooks/useCookie.js +0 -29
  418. package/dist/hooks/useIsAbond.js +0 -10
  419. package/dist/hooks/useModal.js +0 -39
  420. package/dist/hooks/usePendingVesting.js +0 -13
  421. package/dist/hooks/useRefresh.js +0 -7
  422. package/dist/hooks/useTimer.js +0 -13
  423. package/dist/hooks/useTopThreeTags.js +0 -25
  424. package/dist/index.d.ts +0 -5
  425. package/dist/index.js +0 -6
  426. package/dist/providers/index.js +0 -12
  427. package/dist/theme/base.js +0 -123
  428. package/dist/theme/colors.js +0 -93
  429. package/dist/theme/components.js +0 -338
  430. package/dist/theme/display.js +0 -2
  431. package/dist/theme/index.js +0 -15
  432. package/dist/theme/types.js +0 -1
  433. package/dist/types/bonds.js +0 -1
  434. package/dist/types/yourbonds.js +0 -1
  435. package/dist/utils/convertToTokenValue.js +0 -24
  436. package/dist/utils/formatNumber.js +0 -34
  437. package/dist/utils/formatNumbers.js +0 -148
  438. package/dist/utils/getBalanceNumber.js +0 -18
  439. package/dist/utils/getTimePeriods.js +0 -44
  440. package/dist/utils/index.js +0 -127
  441. package/dist/utils/localStorageHelpers.js +0 -47
  442. package/dist/utils/multicall.js +0 -90
  443. package/dist/utils/numbers.js +0 -111
  444. package/dist/utils/roundNumber.js +0 -14
  445. package/dist/utils/track.js +0 -17
  446. package/dist/views/BondModal/BondModal.js +0 -277
  447. package/dist/views/BondModal/helper.js +0 -54
  448. package/dist/views/BondModal/index.js +0 -18
  449. package/dist/views/Bonds/Bonds.js +0 -174
  450. package/dist/views/YourBonds/YourBonds.js +0 -276
  451. package/dist/views/YourBonds/fetchBillsUser.js +0 -235
  452. package/dist/views/YourBonds/getBillNftData.js +0 -109
  453. package/dist/views/YourBondsModal/YourBondsModal.js +0 -173
  454. package/dist/views/YourBondsModal/styles.js +0 -12
  455. /package/dist/{enum → config/constants}/tooltips.d.ts +0 -0
@@ -1,92 +0,0 @@
1
- export var ABOND_DEFAULT_META = {
2
- title: 'ApeBond | Building A Sustainable DeFi Future',
3
- description: 'ApeBond is a multi-chain bonding protocol committed to building a sustainable DeFi future for projects and communities.',
4
- image: 'https://frontend-git-feat-metadata-ape-swap-finance.vercel.app/meta/apebond/logo.png',
5
- twitterImage: 'https://frontend-git-feat-metadata-ape-swap-finance.vercel.app/meta/apebond/twitter.png',
6
- favIco: '/meta/apebond/favicon.ico',
7
- };
8
- export var apebondCustomMeta = {
9
- '/': {
10
- title: 'Home Page | ApeBond: Building A Sustainable DeFi Future',
11
- description: 'ApeBond is a multi-chain bonding protocol committed to building a sustainable DeFi future for projects and communities.',
12
- },
13
- '/swap': {
14
- title: 'Swap | ApeBond',
15
- description: "Easily swap cross-chain between hundreds of crypto tokens using ApeBond's decentralized exchange.",
16
- },
17
- '/earn': {
18
- title: 'Earn | ApeBond',
19
- description: 'Stake LPs or single tokens in ApeBond to earn rewards.',
20
- },
21
- '/bonds': {
22
- title: 'Bonds | ApeBond',
23
- description: 'Buy tokens at a discount that vest over time through a unique NFT.',
24
- },
25
- '/bond-markets': {
26
- title: 'Bonds | ApeBond',
27
- description: 'Buy tokens at a discount that vest over time through a unique NFT.',
28
- },
29
- '/bond-highlight': {
30
- title: 'Bonds | ApeBond',
31
- description: 'Buy tokens at a discount that vest over time through a unique NFT.',
32
- },
33
- '/liquidity-health': {
34
- title: 'Liquidity Health Dashboard | ApeBond',
35
- image: 'https://frontend-git-feat-metadata-ape-swap-finance.vercel.app/meta/apebond/lhd_meta.png',
36
- twitterImage: 'https://frontend-git-feat-metadata-ape-swap-finance.vercel.app/meta/apebond/lhd_meta.png',
37
- description: "ApeBond's Liquidity Health Dashboard provides insights into the quality and sustainability of cryptocurrency projects based on their liquidity.",
38
- },
39
- '/dashboard': {
40
- title: 'Protocol Dashboard | ApeBond',
41
- description: 'ApeBond is a multi-chain bonding protocol committed to building a sustainable DeFi future for projects and communities.',
42
- },
43
- '/pools': {
44
- title: 'Staking Pools | ApeBond',
45
- description: 'Stake in Staking Pools to earn partner project tokens.',
46
- },
47
- '/farms': {
48
- title: 'Farms | ApeBond',
49
- description: 'Stake your liquidity provider (LP) Farms to earn.',
50
- },
51
- '/pool': {
52
- title: 'Liquidity | ApeBond',
53
- description: 'Add liquidity to the ApeBond decentralized exchange to create LPs and earn trading fees..',
54
- },
55
- '/add': {
56
- title: 'Liquidity | ApeBond',
57
- description: 'Add liquidity to the ApeBond decentralized exchange to create LPs and earn trading fees..',
58
- },
59
- '/nft': {
60
- title: 'Non Fungible Apes | ApeBond',
61
- description: 'Buy and sell ApeBond NFTs and join our NFT community.',
62
- },
63
- '/vaults': {
64
- title: 'BANANA Maximizers | ApeBond',
65
- description: 'Stake your liquidity provider (LP) tokens in auto-compounding vaults to earn BANANA.',
66
- },
67
- '/jungle-farms': {
68
- title: 'Jungle Farms | ApeBond',
69
- description: 'Stake your liquidity provider (LP) tokens to earn partner project tokens.',
70
- },
71
- '/iao': {
72
- title: 'Initial Ape Offerings | ApeBond',
73
- description: 'Launch your crypto project with ApeBond, or commit into Initial Ape Offerings.',
74
- },
75
- '/gnana': {
76
- title: 'GNANA | ApeBond',
77
- description: 'Convert your BANANA to GNANA to gain exclusive access to governance, pools, and more.',
78
- },
79
- '/stats': {
80
- title: 'ApeStats | ApeBond',
81
- description: 'Track your portfolio on ApeBond using our custom dashboard.',
82
- },
83
- '/orders': {
84
- title: 'Limit Orders | ApeBond',
85
- description: 'Trade crypto tokens at the price you want using limit orders on the ApeBond DEX.',
86
- },
87
- '/the-problem-with-sush': {
88
- title: 'The Problem With SushiSwap | Apebond',
89
- image: 'https://apeswap.finance/sushi-problem.jpg',
90
- twitterImage: 'https://apeswap.finance/sushi-problem.jpg',
91
- },
92
- };
@@ -1,4 +0,0 @@
1
- export var ZERO_ADDRESS = '0x0000000000000000000000000000000000000000';
2
- // 30 minutes, denominated in seconds
3
- export var DEFAULT_DEADLINE_FROM_NOW = 60 * 30;
4
- export var DEFAULT_TXN_DISMISS_MS = 10000;
@@ -1,44 +0,0 @@
1
- var _a;
2
- import { ChainId } from './chains';
3
- export var PUBLIC_RPC_URLS = (_a = {},
4
- _a[ChainId.BSC] = [
5
- 'https://bsc-dataseed.binance.org/',
6
- 'https://bsc-dataseed1.defibit.io',
7
- 'https://endpoints.omniatech.io/v1/bsc/mainnet/public',
8
- ],
9
- _a[ChainId.ARBITRUM_ONE] = ['https://arb1.arbitrum.io/rpc'],
10
- _a[ChainId.BSC_TESTNET] = ['https://data-seed-prebsc-2-s3.binance.org:8545/'],
11
- _a[ChainId.POLYGON] = [
12
- 'https://polygon-mainnet.public.blastapi.io/',
13
- 'https://polygon-rpc.com/',
14
- 'https://rpc-mainnet.matic.network',
15
- 'https://matic-mainnet.chainstacklabs.com',
16
- ],
17
- _a[ChainId.POLYGON_MUMBAI] = ['https://matic-mumbai.chainstacklabs.com'],
18
- _a[ChainId.MAINNET] = [
19
- 'https://ethereum-rpc.publicnode.com',
20
- 'https://eth-mainnet.public.blastapi.io',
21
- 'https://rpc.ankr.com/eth',
22
- ],
23
- _a[ChainId.TLOS] = ['https://mainnet.telos.net/evm'],
24
- _a[ChainId.AVALANCHE] = ['https://api.avax.network/ext/bc/C/rpc'],
25
- _a[ChainId.OPTIMISM] = ['https://rpc.ankr.com/optimism', 'https://optimism.publicnode.com'],
26
- _a[ChainId.FANTOM] = ['https://rpc.ftm.tools/', 'https://rpcapi.fantom.network'],
27
- _a[ChainId.CRONOS] = ['https://evm-cronos.crypto.org'],
28
- _a[ChainId.POLYGON_ZK] = ['https://zkevm-rpc.com'],
29
- _a[ChainId.CELO] = ['https://forno.celo.org'],
30
- _a[ChainId.GNOSIS] = ['https://rpc.gnosischain.com/', 'https://rpc.ankr.com/gnosis'],
31
- _a[ChainId.OKX] = ['https://exchainrpc.okex.org'],
32
- _a[ChainId.INJECTED_EVM_TESTNET] = ['https://inevm-testnet.rpc.caldera.xyz/http'],
33
- _a[ChainId.INEVM] = ['https://mainnet.rpc.inevm.com/http'],
34
- _a[ChainId.SEPOLIA] = ['https://eth-sepolia-public.unifra.io'],
35
- _a[ChainId.LINEA] = [
36
- 'https://linea.blockpi.network/v1/rpc/public',
37
- 'https://linea.decubate.com',
38
- 'https://rpc.linea.build',
39
- ],
40
- _a[ChainId.LIGHTLINK] = ['https://replicator.phoenix.lightlink.io/rpc/v1'],
41
- _a[ChainId.IOTA] = ['https://json-rpc.evm.iotaledger.net/'],
42
- _a[ChainId.IOTA_TESTNET] = ['https://json-rpc.evm.testnet.iotaledger.net/'],
43
- _a[ChainId.BASE] = ['https://base-rpc.publicnode.com', 'https://mainnet.base.org'],
44
- _a);
@@ -1,58 +0,0 @@
1
- var _a, _b;
2
- // enum to corresponding url
3
- import { ChainId } from './chains';
4
- export var LIST_VIEW_PRODUCTS;
5
- (function (LIST_VIEW_PRODUCTS) {
6
- LIST_VIEW_PRODUCTS["BILLS"] = "treasury-bills";
7
- LIST_VIEW_PRODUCTS["MAXIMIZERS"] = "maximizers";
8
- LIST_VIEW_PRODUCTS["JUNGLE_FARMS"] = "jungle-farms";
9
- LIST_VIEW_PRODUCTS["POOLS"] = "pools";
10
- LIST_VIEW_PRODUCTS["FARMS"] = "farms";
11
- LIST_VIEW_PRODUCTS["EARN"] = "earn";
12
- })(LIST_VIEW_PRODUCTS || (LIST_VIEW_PRODUCTS = {}));
13
- export var OTHER_PRODUCTS;
14
- (function (OTHER_PRODUCTS) {
15
- OTHER_PRODUCTS["GNANA"] = "gnana";
16
- OTHER_PRODUCTS["MIGRATE"] = "migrate";
17
- OTHER_PRODUCTS["ZAP"] = "zap";
18
- OTHER_PRODUCTS["IAO"] = "iao";
19
- OTHER_PRODUCTS["NFA_COLLECTION"] = "nft";
20
- OTHER_PRODUCTS["NFA_AUCTION"] = "auction";
21
- OTHER_PRODUCTS["NFA_STAKING"] = "staking";
22
- OTHER_PRODUCTS["V3"] = "v3";
23
- })(OTHER_PRODUCTS || (OTHER_PRODUCTS = {}));
24
- // Products on different chains and their available chains
25
- // These products are list view components that have a specific chain redirect component
26
- export var AVAILABLE_CHAINS_ON_LIST_VIEW_PRODUCTS = (_a = {},
27
- _a[LIST_VIEW_PRODUCTS.BILLS] = [
28
- ChainId.BSC,
29
- ChainId.POLYGON,
30
- ChainId.ARBITRUM_ONE,
31
- ChainId.INEVM,
32
- ChainId.MAINNET,
33
- ChainId.LINEA,
34
- ChainId.LIGHTLINK,
35
- ],
36
- _a[LIST_VIEW_PRODUCTS.FARMS] = [ChainId.BSC, ChainId.POLYGON],
37
- _a[LIST_VIEW_PRODUCTS.MAXIMIZERS] = [ChainId.BSC],
38
- _a[LIST_VIEW_PRODUCTS.JUNGLE_FARMS] = [ChainId.BSC],
39
- _a[LIST_VIEW_PRODUCTS.POOLS] = [ChainId.BSC, ChainId.POLYGON, ChainId.MAINNET],
40
- _a[LIST_VIEW_PRODUCTS.EARN] = [ChainId.BSC, ChainId.POLYGON, ChainId.MAINNET],
41
- _a);
42
- // Full product names for readability
43
- export var FULL_PRODUCT_NAMES = (_b = {},
44
- _b[LIST_VIEW_PRODUCTS.BILLS] = 'Bonds',
45
- _b[LIST_VIEW_PRODUCTS.MAXIMIZERS] = 'Banana Maximizers',
46
- _b[LIST_VIEW_PRODUCTS.JUNGLE_FARMS] = 'Jungle Farms',
47
- _b[LIST_VIEW_PRODUCTS.POOLS] = 'Pools',
48
- _b[LIST_VIEW_PRODUCTS.FARMS] = 'Farms',
49
- _b[LIST_VIEW_PRODUCTS.EARN] = 'Earn products',
50
- _b[OTHER_PRODUCTS.GNANA] = 'Golden Banana',
51
- _b[OTHER_PRODUCTS.MIGRATE] = 'Migrate',
52
- _b[OTHER_PRODUCTS.ZAP] = 'Zap',
53
- _b[OTHER_PRODUCTS.IAO] = 'Official IAO',
54
- _b[OTHER_PRODUCTS.NFA_COLLECTION] = 'Nfa Collection',
55
- _b[OTHER_PRODUCTS.NFA_AUCTION] = 'Nfa Auction',
56
- _b[OTHER_PRODUCTS.NFA_STAKING] = 'Nfa Staking',
57
- _b[OTHER_PRODUCTS.V3] = 'V3 Concentrated Liquidity',
58
- _b);
@@ -1,24 +0,0 @@
1
- export var QUERY_KEYS = {
2
- INDUSTRY_STATS: 'industryStats',
3
- HISTORICAL_INDUSTRY_STATS: 'historicalIndustryStats',
4
- LHD_PROFILES: 'lhdProfiles',
5
- LHD_PROFILE: 'lhdProfile',
6
- LHD_PASSWORD_VERIFIED: 'lhdPasswordVerified',
7
- HOMEPAGE_STATS: 'homepageStats',
8
- BOND_PAGE_STATS: 'bondPageStats',
9
- LIVE_AND_UPCOMING: 'liveAndUpcoming',
10
- TVL_STATS: 'tvlStats',
11
- TOKEN_HISTORIC: 'tokenHistoric',
12
- BONDS_LANDING: 'bondsLanding',
13
- BOND_POST_REFERENCE: 'bondPostReference',
14
- BOND_RECOMMENDATIONS: 'bondRecommendations',
15
- TOKEN_PRICES: 'tokenPrices',
16
- TIERS: 'tiers',
17
- BOND_STATS: 'bondStats',
18
- USER_STATS: 'userStats',
19
- HOT_BONDS: 'hotBonds',
20
- CHAIN_FILTER_OPTION: 'chainFilterOption',
21
- AB_TEST_VALUE: 'ABTestValue',
22
- USE_CURRENCY_NEW: 'useCurrencyNew',
23
- CURRENCY_BALANCE: 'currencyBalance',
24
- };
@@ -1,452 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __assign = (this && this.__assign) || function () {
17
- __assign = Object.assign || function(t) {
18
- for (var s, i = 1, n = arguments.length; i < n; i++) {
19
- s = arguments[i];
20
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
- t[p] = s[p];
22
- }
23
- return t;
24
- };
25
- return __assign.apply(this, arguments);
26
- };
27
- var _a;
28
- import { Ether, NativeCurrency, Token, WETH9 } from '@ape.swap/sdk-core';
29
- import invariant from 'tiny-invariant';
30
- import { ChainId } from './chains';
31
- export var NATIVE_CHAIN_ID = 'NATIVE';
32
- export var WRAPPED_NATIVE_CURRENCY = __assign(__assign({}, WETH9), (_a = {}, _a[ChainId.POLYGON] = new Token(ChainId.POLYGON, '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', 18, 'WMATIC', 'Wrapped MATIC'), _a[ChainId.BSC] = new Token(ChainId.BSC, '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', 18, 'WBNB', 'Wrapped BNB'), _a[ChainId.BSC_TESTNET] = new Token(ChainId.BSC_TESTNET, '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', //this is wrong
33
- 18, 'WBNB', 'Wrapped BNB'), _a[ChainId.TLOS] = new Token(ChainId.TLOS, '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', 18, 'WTLOS', 'Wrapped TLOS'), _a[ChainId.AVALANCHE] = new Token(ChainId.AVALANCHE, '0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7', 18, 'WAVAX', 'Wrapped AVAX'), _a[ChainId.FANTOM] = new Token(ChainId.FANTOM, '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83', 18, 'WFTM', 'Wrapped Fantom'), _a[ChainId.POLYGON_ZK] = new Token(ChainId.POLYGON_ZK, '0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9', 18, 'WETH', 'Wrapped ETH'), _a[ChainId.CELO] = new Token(ChainId.CELO, '0x471EcE3750Da237f93B8E339c536989b8978a438', 18, 'CELO', 'CELO'), _a[ChainId.CRONOS] = new Token(ChainId.CRONOS, '0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23', 18, 'WCRO', 'Wrapped CRO'), _a[ChainId.GNOSIS] = new Token(ChainId.GNOSIS, '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', 18, 'WXDAI', 'Wrapped xDAI'), _a[ChainId.INJECTED_EVM_TESTNET] = new Token(ChainId.INJECTED_EVM_TESTNET, '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', //this is wrong
34
- 18, 'WINJ', 'Wrapped INJ'), _a[ChainId.INEVM] = new Token(ChainId.INEVM, '0x69011706b3f6C6eaeD7D2Bc13801558B4fd94CBF', 18, 'WINJ', 'Wrapped INJ'), _a[ChainId.SEPOLIA] = new Token(ChainId.SEPOLIA, '0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d', //this is wrong
35
- 18, 'WETH', 'Wrapped ETH'), _a[ChainId.LINEA] = new Token(ChainId.LINEA, '0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f', 18, 'WETH', 'Wrapped ETH'), _a[ChainId.LIGHTLINK] = new Token(ChainId.LIGHTLINK, '0x7EbeF2A4b1B09381Ec5B9dF8C5c6f2dBECA59c73', 18, 'WETH', 'Wrapped ETH'), _a[ChainId.IOTA] = new Token(ChainId.IOTA, '0x6e47f8d48a01b44DF3fFF35d258A10A3AEdC114c', 18, 'WIOTA', 'Wrapped IOTA'), _a[ChainId.BASE] = new Token(ChainId.BASE, '0x4200000000000000000000000000000000000006', 18, 'WETH', 'Wrapped ETH'), _a));
36
- function isMatic(chainId) {
37
- return chainId === ChainId.POLYGON;
38
- }
39
- function isBNB(chainId) {
40
- return chainId === ChainId.BSC;
41
- }
42
- function isBNB_Testnet(chainId) {
43
- return chainId === ChainId.BSC_TESTNET;
44
- }
45
- function isAvax(chainId) {
46
- return chainId === ChainId.AVALANCHE;
47
- }
48
- function isFantom(chainId) {
49
- return chainId === ChainId.FANTOM;
50
- }
51
- function isCronos(chainId) {
52
- return chainId === ChainId.CRONOS;
53
- }
54
- function isGnosis(chainId) {
55
- return chainId === ChainId.GNOSIS;
56
- }
57
- function isINJ_EVM_TESTNET(chainId) {
58
- return chainId === ChainId.INJECTED_EVM_TESTNET;
59
- }
60
- function isINEVM(chainId) {
61
- return chainId === ChainId.INEVM;
62
- }
63
- function isSepolia(chainId) {
64
- return chainId === ChainId.SEPOLIA;
65
- }
66
- function isLinea(chainId) {
67
- return chainId === ChainId.LINEA;
68
- }
69
- function isIota(chainId) {
70
- return chainId === ChainId.IOTA;
71
- }
72
- function isBase(chainId) {
73
- return chainId === ChainId.BASE;
74
- }
75
- var GnosisNativeCurrency = /** @class */ (function (_super) {
76
- __extends(GnosisNativeCurrency, _super);
77
- function GnosisNativeCurrency(chainId) {
78
- if (!isGnosis(chainId))
79
- throw new Error('Not Gnosis');
80
- return _super.call(this, chainId, 18, 'xDAI', 'xDai') || this;
81
- }
82
- GnosisNativeCurrency.prototype.equals = function (other) {
83
- return other.isNative && other.chainId === this.chainId;
84
- };
85
- Object.defineProperty(GnosisNativeCurrency.prototype, "wrapped", {
86
- get: function () {
87
- if (!isGnosis(this.chainId))
88
- throw new Error('Not Gnosis');
89
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
90
- invariant(wrapped instanceof Token);
91
- return wrapped;
92
- },
93
- enumerable: false,
94
- configurable: true
95
- });
96
- return GnosisNativeCurrency;
97
- }(NativeCurrency));
98
- var CronosNativeCurrency = /** @class */ (function (_super) {
99
- __extends(CronosNativeCurrency, _super);
100
- function CronosNativeCurrency(chainId) {
101
- if (!isCronos(chainId))
102
- throw new Error('Not Cronos');
103
- return _super.call(this, chainId, 18, 'CRO', 'CRO') || this;
104
- }
105
- CronosNativeCurrency.prototype.equals = function (other) {
106
- return other.isNative && other.chainId === this.chainId;
107
- };
108
- Object.defineProperty(CronosNativeCurrency.prototype, "wrapped", {
109
- get: function () {
110
- if (!isCronos(this.chainId))
111
- throw new Error('Not Cronos');
112
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
113
- invariant(wrapped instanceof Token);
114
- return wrapped;
115
- },
116
- enumerable: false,
117
- configurable: true
118
- });
119
- return CronosNativeCurrency;
120
- }(NativeCurrency));
121
- var FantomNativeCurrency = /** @class */ (function (_super) {
122
- __extends(FantomNativeCurrency, _super);
123
- function FantomNativeCurrency(chainId) {
124
- if (!isFantom(chainId))
125
- throw new Error('Not Fantom');
126
- return _super.call(this, chainId, 18, 'FTM', 'FTM') || this;
127
- }
128
- FantomNativeCurrency.prototype.equals = function (other) {
129
- return other.isNative && other.chainId === this.chainId;
130
- };
131
- Object.defineProperty(FantomNativeCurrency.prototype, "wrapped", {
132
- get: function () {
133
- if (!isFantom(this.chainId))
134
- throw new Error('Not Fantom');
135
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
136
- invariant(wrapped instanceof Token);
137
- return wrapped;
138
- },
139
- enumerable: false,
140
- configurable: true
141
- });
142
- return FantomNativeCurrency;
143
- }(NativeCurrency));
144
- var AvaxNativeCurrency = /** @class */ (function (_super) {
145
- __extends(AvaxNativeCurrency, _super);
146
- function AvaxNativeCurrency(chainId) {
147
- if (!isAvax(chainId))
148
- throw new Error('Not Avax');
149
- return _super.call(this, chainId, 18, 'AVAX', 'Avax') || this;
150
- }
151
- AvaxNativeCurrency.prototype.equals = function (other) {
152
- return other.isNative && other.chainId === this.chainId;
153
- };
154
- Object.defineProperty(AvaxNativeCurrency.prototype, "wrapped", {
155
- get: function () {
156
- if (!isAvax(this.chainId))
157
- throw new Error('Not Avax');
158
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
159
- invariant(wrapped instanceof Token);
160
- return wrapped;
161
- },
162
- enumerable: false,
163
- configurable: true
164
- });
165
- return AvaxNativeCurrency;
166
- }(NativeCurrency));
167
- var MaticNativeCurrency = /** @class */ (function (_super) {
168
- __extends(MaticNativeCurrency, _super);
169
- function MaticNativeCurrency(chainId) {
170
- if (!isMatic(chainId))
171
- throw new Error('Not matic');
172
- return _super.call(this, chainId, 18, 'MATIC', 'MATIC Matic') || this;
173
- }
174
- MaticNativeCurrency.prototype.equals = function (other) {
175
- return other.isNative && other.chainId === this.chainId;
176
- };
177
- Object.defineProperty(MaticNativeCurrency.prototype, "wrapped", {
178
- get: function () {
179
- if (!isMatic(this.chainId))
180
- throw new Error('Not matic');
181
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
182
- invariant(wrapped instanceof Token);
183
- return wrapped;
184
- },
185
- enumerable: false,
186
- configurable: true
187
- });
188
- return MaticNativeCurrency;
189
- }(NativeCurrency));
190
- var BNBNativeCurrency = /** @class */ (function (_super) {
191
- __extends(BNBNativeCurrency, _super);
192
- function BNBNativeCurrency(chainId) {
193
- if (!isBNB(chainId))
194
- throw new Error('Not bnb');
195
- return _super.call(this, chainId, 18, 'BNB', '') || this;
196
- }
197
- BNBNativeCurrency.prototype.equals = function (other) {
198
- return other.isNative && other.chainId === this.chainId;
199
- };
200
- Object.defineProperty(BNBNativeCurrency.prototype, "wrapped", {
201
- get: function () {
202
- if (!isBNB(this.chainId))
203
- throw new Error('Not bnb');
204
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
205
- invariant(wrapped instanceof Token);
206
- return wrapped;
207
- },
208
- enumerable: false,
209
- configurable: true
210
- });
211
- return BNBNativeCurrency;
212
- }(NativeCurrency));
213
- var tBNBNativeCurrency = /** @class */ (function (_super) {
214
- __extends(tBNBNativeCurrency, _super);
215
- function tBNBNativeCurrency(chainId) {
216
- if (!isBNB_Testnet(chainId))
217
- throw new Error('Not bnb testnet');
218
- return _super.call(this, chainId, 18, 'tBNB', '') || this;
219
- }
220
- tBNBNativeCurrency.prototype.equals = function (other) {
221
- return other.isNative && other.chainId === this.chainId;
222
- };
223
- Object.defineProperty(tBNBNativeCurrency.prototype, "wrapped", {
224
- get: function () {
225
- if (!isBNB_Testnet(this.chainId))
226
- throw new Error('Not bnb testnet');
227
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
228
- invariant(wrapped instanceof Token);
229
- return wrapped;
230
- },
231
- enumerable: false,
232
- configurable: true
233
- });
234
- return tBNBNativeCurrency;
235
- }(NativeCurrency));
236
- var ExtendedEther = /** @class */ (function (_super) {
237
- __extends(ExtendedEther, _super);
238
- function ExtendedEther() {
239
- return _super !== null && _super.apply(this, arguments) || this;
240
- }
241
- Object.defineProperty(ExtendedEther.prototype, "wrapped", {
242
- get: function () {
243
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
244
- if (wrapped)
245
- return wrapped;
246
- throw new Error('Unsupported chain ID');
247
- },
248
- enumerable: false,
249
- configurable: true
250
- });
251
- ExtendedEther.onChain = function (chainId) {
252
- var _a;
253
- return (_a = this._cachedExtendedEther[chainId]) !== null && _a !== void 0 ? _a : (this._cachedExtendedEther[chainId] = new ExtendedEther(chainId));
254
- };
255
- ExtendedEther._cachedExtendedEther = {};
256
- return ExtendedEther;
257
- }(Ether));
258
- var INJ_EVM_TESTNET_NativeCurrency = /** @class */ (function (_super) {
259
- __extends(INJ_EVM_TESTNET_NativeCurrency, _super);
260
- function INJ_EVM_TESTNET_NativeCurrency(chainId) {
261
- if (!isINJ_EVM_TESTNET(chainId))
262
- throw new Error('Not INJ test');
263
- return _super.call(this, chainId, 18, 'INJ', '') || this;
264
- }
265
- INJ_EVM_TESTNET_NativeCurrency.prototype.equals = function (other) {
266
- return other.isNative && other.chainId === this.chainId;
267
- };
268
- Object.defineProperty(INJ_EVM_TESTNET_NativeCurrency.prototype, "wrapped", {
269
- get: function () {
270
- if (!isINJ_EVM_TESTNET(this.chainId))
271
- throw new Error('Not INJ test');
272
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
273
- invariant(wrapped instanceof Token);
274
- return wrapped;
275
- },
276
- enumerable: false,
277
- configurable: true
278
- });
279
- return INJ_EVM_TESTNET_NativeCurrency;
280
- }(NativeCurrency));
281
- var INEVM_NativeCurrency = /** @class */ (function (_super) {
282
- __extends(INEVM_NativeCurrency, _super);
283
- function INEVM_NativeCurrency(chainId) {
284
- if (!isINEVM(chainId))
285
- throw new Error('Not INEVM');
286
- return _super.call(this, chainId, 18, 'INJ', '') || this;
287
- }
288
- INEVM_NativeCurrency.prototype.equals = function (other) {
289
- return other.isNative && other.chainId === this.chainId;
290
- };
291
- Object.defineProperty(INEVM_NativeCurrency.prototype, "wrapped", {
292
- get: function () {
293
- if (!isINEVM(this.chainId))
294
- throw new Error('Not INEVM');
295
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
296
- invariant(wrapped instanceof Token);
297
- return wrapped;
298
- },
299
- enumerable: false,
300
- configurable: true
301
- });
302
- return INEVM_NativeCurrency;
303
- }(NativeCurrency));
304
- var Sepolia_NativeCurrency = /** @class */ (function (_super) {
305
- __extends(Sepolia_NativeCurrency, _super);
306
- function Sepolia_NativeCurrency(chainId) {
307
- if (!isSepolia(chainId))
308
- throw new Error('Not Sepolia');
309
- return _super.call(this, chainId, 18, 'ETH', '') || this;
310
- }
311
- Sepolia_NativeCurrency.prototype.equals = function (other) {
312
- return other.isNative && other.chainId === this.chainId;
313
- };
314
- Object.defineProperty(Sepolia_NativeCurrency.prototype, "wrapped", {
315
- get: function () {
316
- if (!isSepolia(this.chainId))
317
- throw new Error('Not Sepolia');
318
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
319
- invariant(wrapped instanceof Token);
320
- return wrapped;
321
- },
322
- enumerable: false,
323
- configurable: true
324
- });
325
- return Sepolia_NativeCurrency;
326
- }(NativeCurrency));
327
- var LineaNativeCurrency = /** @class */ (function (_super) {
328
- __extends(LineaNativeCurrency, _super);
329
- function LineaNativeCurrency(chainId) {
330
- if (!isLinea(chainId))
331
- throw new Error('Not linea');
332
- return _super.call(this, chainId, 18, 'ETH', '') || this;
333
- }
334
- LineaNativeCurrency.prototype.equals = function (other) {
335
- return other.isNative && other.chainId === this.chainId;
336
- };
337
- Object.defineProperty(LineaNativeCurrency.prototype, "wrapped", {
338
- get: function () {
339
- if (!isLinea(this.chainId))
340
- throw new Error('Not linea');
341
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
342
- invariant(wrapped instanceof Token);
343
- return wrapped;
344
- },
345
- enumerable: false,
346
- configurable: true
347
- });
348
- return LineaNativeCurrency;
349
- }(NativeCurrency));
350
- var IotaNativeCurrency = /** @class */ (function (_super) {
351
- __extends(IotaNativeCurrency, _super);
352
- function IotaNativeCurrency(chainId) {
353
- if (!isIota(chainId))
354
- throw new Error('Not iota');
355
- return _super.call(this, chainId, 18, 'IOTA', '') || this;
356
- }
357
- IotaNativeCurrency.prototype.equals = function (other) {
358
- return other.isNative && other.chainId === this.chainId;
359
- };
360
- Object.defineProperty(IotaNativeCurrency.prototype, "wrapped", {
361
- get: function () {
362
- if (!isIota(this.chainId))
363
- throw new Error('Not iota');
364
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
365
- invariant(wrapped instanceof Token);
366
- return wrapped;
367
- },
368
- enumerable: false,
369
- configurable: true
370
- });
371
- return IotaNativeCurrency;
372
- }(NativeCurrency));
373
- var BaseNativeCurrency = /** @class */ (function (_super) {
374
- __extends(BaseNativeCurrency, _super);
375
- function BaseNativeCurrency(chainId) {
376
- if (!isBase(chainId))
377
- throw new Error('Not Base');
378
- return _super.call(this, chainId, 18, 'ETH', '') || this;
379
- }
380
- BaseNativeCurrency.prototype.equals = function (other) {
381
- return other.isNative && other.chainId === this.chainId;
382
- };
383
- Object.defineProperty(BaseNativeCurrency.prototype, "wrapped", {
384
- get: function () {
385
- if (!isBase(this.chainId))
386
- throw new Error('Not Base');
387
- var wrapped = WRAPPED_NATIVE_CURRENCY[this.chainId];
388
- invariant(wrapped instanceof Token);
389
- return wrapped;
390
- },
391
- enumerable: false,
392
- configurable: true
393
- });
394
- return BaseNativeCurrency;
395
- }(NativeCurrency));
396
- var cachedNativeCurrency = {};
397
- export function nativeOnChain(chainId) {
398
- if (cachedNativeCurrency[chainId])
399
- return cachedNativeCurrency[chainId];
400
- var nativeCurrency;
401
- //TODO: find a more elegant solution
402
- var selectedChain;
403
- if (typeof chainId === 'string') {
404
- selectedChain = parseInt(chainId);
405
- }
406
- else {
407
- selectedChain = chainId;
408
- }
409
- if (isMatic(selectedChain)) {
410
- nativeCurrency = new MaticNativeCurrency(selectedChain);
411
- }
412
- else if (isBNB(selectedChain)) {
413
- nativeCurrency = new BNBNativeCurrency(selectedChain);
414
- }
415
- else if (isBNB_Testnet(selectedChain)) {
416
- nativeCurrency = new tBNBNativeCurrency(selectedChain);
417
- }
418
- else if (isAvax(selectedChain)) {
419
- nativeCurrency = new AvaxNativeCurrency(selectedChain);
420
- }
421
- else if (isFantom(selectedChain)) {
422
- nativeCurrency = new FantomNativeCurrency(selectedChain);
423
- }
424
- else if (isCronos(selectedChain)) {
425
- nativeCurrency = new CronosNativeCurrency(selectedChain);
426
- }
427
- else if (isGnosis(selectedChain)) {
428
- nativeCurrency = new GnosisNativeCurrency(selectedChain);
429
- }
430
- else if (isINJ_EVM_TESTNET(selectedChain)) {
431
- nativeCurrency = new INJ_EVM_TESTNET_NativeCurrency(selectedChain);
432
- }
433
- else if (isINEVM(selectedChain)) {
434
- nativeCurrency = new INEVM_NativeCurrency(selectedChain);
435
- }
436
- else if (isSepolia(selectedChain)) {
437
- nativeCurrency = new Sepolia_NativeCurrency(selectedChain);
438
- }
439
- else if (isLinea(selectedChain)) {
440
- nativeCurrency = new LineaNativeCurrency(selectedChain);
441
- }
442
- else if (isIota(selectedChain)) {
443
- nativeCurrency = new IotaNativeCurrency(selectedChain);
444
- }
445
- else if (isBase(selectedChain)) {
446
- nativeCurrency = new BaseNativeCurrency(selectedChain);
447
- }
448
- else {
449
- nativeCurrency = ExtendedEther.onChain(selectedChain);
450
- }
451
- return (cachedNativeCurrency[selectedChain] = nativeCurrency);
452
- }