@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,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import { Flex } from 'theme-ui';
3
- import { Input } from '../uikit-sdk/Input';
4
- import { Svg, TooltipBubble } from '../uikit-sdk';
5
- import { TooltipText } from '../../enum/tooltips';
6
- import '../../scss/BondRowHeader.scss';
7
- import BondMenu from '../BondMenu/BondMenu';
8
- var BondRowHeader = function (_a) {
9
- var inputValue = _a.inputValue, setChainFilterOption = _a.setChainFilterOption, chainFilterOption = _a.chainFilterOption, filterOptions = _a.filterOptions, filterOption = _a.filterOption, setFilterOption = _a.setFilterOption, onInputChange = _a.onInputChange, onHandleQueryChange = _a.onHandleQueryChange, onSort = _a.onSort;
10
- return (_jsxs(Flex, { className: "bondrow-header", children: [_jsx(Flex, { className: "bondrow-header filters", children: _jsx(BondMenu, { chainFilterOption: chainFilterOption !== null && chainFilterOption !== void 0 ? chainFilterOption : ['All Chains'], setChainFilterOption: setChainFilterOption, filterOptions: filterOptions, filterOption: filterOption, setFilterOption: setFilterOption, onHandleQueryChange: onHandleQueryChange }) }), _jsxs(Flex, { className: "bondrow-header rows", children: [_jsxs(Flex, { className: "column column-tokens header", children: [_jsx(Flex, { className: "column column-search", sx: { width: '100%', maxWidth: ['200px', '200px', '200px', '340px'] }, children: _jsx(Input, { value: inputValue, onChange: onInputChange, variant: "search", sx: { fontWeight: 400, background: 'white2', height: '30px', fontSize: '14px', color: 'white' }, width: '100%', placeholder: 'Search...' }) }), _jsx(Flex, { className: "column column-tokenicons header" })] }), _jsxs(Flex, { className: "column column-bondinfo header", children: [_jsxs(Flex, { className: "column column-discount header", children: [_jsx(Flex, { className: "column tooltip", children: _jsxs(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Discount }), width: "230px", placement: "bottomLeft", transformTip: "translate(18%, -4%)", children: ["DISCOUNT", _jsx(Flex, { className: "column header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px", color: "textDisabledButton" }) })] }) }), _jsx(Flex, { className: "column header-icon", onClick: function () { return onSort('discount'); }, children: _jsx(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), _jsxs(Flex, { className: "column column-arr header", children: [_jsx(Flex, { className: "column tooltip", children: _jsxs(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.ARR }), width: "230px", placement: "bottomLeft", transformTip: "translate(8%, -5%)", children: ["ARR", _jsx(Flex, { className: "column header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px", color: "textDisabledButton" }) })] }) }), _jsx(Flex, { className: "column header-icon", onClick: function () { return onSort('arr'); }, children: _jsx(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), _jsxs(Flex, { className: "column column-terms header", children: [_jsx(Flex, { className: "column tooltip", children: _jsxs(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Terms }), width: "230px", placement: "bottomRight", transformTip: "translate(11%, -5%)", children: ["TERMS", _jsx(Flex, { className: "column header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px", color: "textDisabledButton" }) })] }) }), _jsx(Flex, { className: "column header-icon", onClick: function () { return onSort('terms'); }, children: _jsx(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), _jsxs(Flex, { className: "column column-tokensremaining header", children: [_jsx(Flex, { className: "column tooltip", children: _jsxs(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.TokensRemaining }), width: "230px", placement: "bottomRight", transformTip: "translate(12%, -4%)", children: ["TOKENS REMAINING", _jsx(Flex, { className: "column header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px", color: "textDisabledButton" }) })] }) }), _jsx(Flex, { className: "column header-icon", onClick: function () { return onSort('tokensRemaining'); }, children: _jsx(Svg, { icon: "sort", width: "12px", color: "textDisabledButton" }) })] }), _jsx(Flex, { className: "column column-hotbond header" })] })] })] }));
11
- };
12
- export default BondRowHeader;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "theme-ui/jsx-runtime";
2
- import BondRowsWithTitle from './BondRowsWithTitle';
3
- import { MAINNET_CHAINS } from '../../config/constants/chains';
4
- import '../../scss/BondRowsByChain.scss';
5
- import { Flex } from 'theme-ui';
6
- var BondRowsByChain = function (_a) {
7
- var bonds = _a.bonds, hotBonds = _a.hotBonds, hideTitles = _a.hideTitles, chains = _a.chains;
8
- return (_jsx(Flex, { className: "bondrowsbychain", children: (MAINNET_CHAINS.map(function (chain, index) {
9
- return ((!chains || chains.length === 0 || chains.includes(chain)) &&
10
- _jsx(BondRowsWithTitle, { chain: chain, bonds: bonds, hotBonds: hotBonds, hideTitles: hideTitles }, chain));
11
- })) }));
12
- };
13
- export default BondRowsByChain;
@@ -1,20 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import { AnimatePresence, motion } from "framer-motion";
3
- import ChainTitle from "./ChainTitle";
4
- import BondRow from "./BondRow";
5
- import { useState } from "react";
6
- import '../../scss/BondRowsWithTitle.scss';
7
- import { Flex } from "theme-ui";
8
- var BondRowsWithTitle = function (_a) {
9
- var chain = _a.chain, bonds = _a.bonds, hotBonds = _a.hotBonds, hideTitles = _a.hideTitles;
10
- var billsFilteredByChain = bonds.filter(function (bill) { return bill.chainId === chain; });
11
- var key = chain;
12
- var _b = useState(true), isOpen = _b[0], setIsOpen = _b[1];
13
- return (_jsx(Flex, { className: "bondrowswithtitle", children: _jsxs(AnimatePresence, { initial: false, children: [_jsx(Flex, { onClick: function () { return setIsOpen(!isOpen); }, children: _jsx(ChainTitle, { chain: chain, pt: '5px', hideTitles: billsFilteredByChain.length > 0 ? false : true, isOpen: isOpen }) }), billsFilteredByChain.length > 0 && isOpen && (_jsx(motion.div, { initial: { height: 0, overflow: 'hidden' }, animate: { height: 'fit-content', overflow: 'hidden', transitionEnd: { overflow: 'visible' } }, exit: { height: 0, overflow: 'hidden' }, sx: {
14
- position: 'relative',
15
- overflow: 'hidden',
16
- width: '100%',
17
- marginTop: '0px',
18
- }, children: billsFilteredByChain === null || billsFilteredByChain === void 0 ? void 0 : billsFilteredByChain.map(function (bill) { return (_jsx(BondRow, { bond: bill, hotBonds: hotBonds }, bill.billAddress)); }) }, key))] }) }, key));
19
- };
20
- export default BondRowsWithTitle;
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import { Flex, Svg } from '../uikit-sdk';
3
- import { NETWORK_LABEL } from '../../config/constants/chains';
4
- var ChainTitle = function (_a) {
5
- var chain = _a.chain, pt = _a.pt, hideTitles = _a.hideTitles, isOpen = _a.isOpen;
6
- return (_jsxs(Flex, { className: "chaintitle", sx: {
7
- pt: pt,
8
- pb: '10px',
9
- color: 'textDisabledButton',
10
- fontSize: '13px',
11
- fontWeight: 500,
12
- cursor: 'pointer',
13
- textTransform: 'uppercase',
14
- display: hideTitles ? 'none' : 'flex',
15
- width: '200px',
16
- }, children: [NETWORK_LABEL[chain], " Bonds", _jsx(Flex, { sx: { ml: '7px' }, children: _jsx(Svg, { icon: "caret", direction: isOpen ? 'down' : 'up', width: 8, color: "textDisabledButton" }) })] }));
17
- };
18
- export default ChainTitle;
@@ -1,36 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx } from "theme-ui/jsx-runtime";
24
- import { Select, SelectItem, Text } from '../uikit-sdk';
25
- var MenuSelect = function (_a) {
26
- var selectedOption = _a.selectedOption, setOption = _a.setOption, options = _a.options, props = __rest(_a, ["selectedOption", "setOption", "options"]);
27
- return (_jsx(Select, __assign({ size: "xsm", onChange: function (e) { return setOption(e.target.value); }, active: selectedOption, sx: {
28
- height: '36px',
29
- display: 'flex',
30
- width: '100%',
31
- paddingRight: '4px',
32
- } }, props, { children: options === null || options === void 0 ? void 0 : options.map(function (option) {
33
- return (_jsx(SelectItem, { size: "xsm", value: option.value, children: _jsx(Text, { sx: { fontWeight: 400, pl: '10px' }, children: option.label }) }, option.label));
34
- }) })));
35
- };
36
- export default MenuSelect;
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx } from "theme-ui/jsx-runtime";
2
- import { Flex } from '../uikit-sdk';
3
- var RecommendationSelector = function (_a) {
4
- var options = _a.options, activeOption = _a.activeOption, setActiveOption = _a.setActiveOption;
5
- var handleClick = function (option) {
6
- setActiveOption(option);
7
- };
8
- return (_jsx(Flex, { sx: {
9
- alignItems: 'center',
10
- color: 'grey',
11
- fontSize: ['11px'],
12
- fontWeight: 500,
13
- '& > div:last-child': {
14
- marginRight: '0',
15
- },
16
- }, children: options.map(function (option) {
17
- var isActive = option === activeOption;
18
- return (_jsx(Flex, { sx: {
19
- background: isActive ? 'primaryShade' : 'white2',
20
- color: isActive ? 'primaryButton' : 'textDisabledButton',
21
- px: ['6px', '6px', '6px', '10px'],
22
- borderRadius: 'small',
23
- mr: ['8px', '8px', '8px', '10px'],
24
- textTransform: 'uppercase',
25
- cursor: 'pointer',
26
- lineHeight: '11px',
27
- alignItems: 'center',
28
- height: '24px',
29
- }, onClick: function () { return handleClick(option); }, children: option }, option));
30
- }) }));
31
- };
32
- export default RecommendationSelector;
@@ -1 +0,0 @@
1
- export {};
@@ -1,66 +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 { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "theme-ui/jsx-runtime";
11
- import { useState } from 'react';
12
- import { Flex, Svg, Text } from '../../components/uikit-sdk';
13
- import { MAINNET_CHAINS, NETWORK_ICONS, NETWORK_LABEL } from '../../config/constants/chains';
14
- import Checkbox from '../../components/uikit-sdk/Checkbox';
15
- var NetworkFilter = function (_a) {
16
- var chainFilterOption = _a.chainFilterOption, setChainFilterOption = _a.setChainFilterOption;
17
- var _b = useState(false), isOpen = _b[0], setIsOpen = _b[1];
18
- var handleCheckbox = function (newChain) {
19
- var prevChainFilterOptions = chainFilterOption;
20
- var newChainFilterOption;
21
- if (newChain === 'All Chains') {
22
- newChainFilterOption = ['All Chains'];
23
- }
24
- else {
25
- if (prevChainFilterOptions.includes(newChain)) {
26
- var filteredChains = prevChainFilterOptions.filter(function (option) { return option !== newChain; });
27
- newChainFilterOption = filteredChains.length === 0 ? ['All Chains'] : filteredChains;
28
- }
29
- else {
30
- var newArray_1 = __spreadArray(__spreadArray([], prevChainFilterOptions.filter(function (option) { return option !== 'All Chains'; }), true), [newChain], false);
31
- var allChainsArePresent = MAINNET_CHAINS.every(function (chain) { return newArray_1.includes(chain.toString()); });
32
- newChainFilterOption = allChainsArePresent ? ['All Chains'] : newArray_1;
33
- }
34
- }
35
- setChainFilterOption(newChainFilterOption);
36
- };
37
- return (_jsxs(Flex, { sx: { width: '100%', position: 'relative' }, children: [_jsxs(Flex, { sx: {
38
- background: 'white2',
39
- p: '6px',
40
- borderRadius: 'normal',
41
- cursor: 'pointer',
42
- alignItems: 'center',
43
- width: '100%',
44
- justifyContent: 'space-between',
45
- }, onClick: function () { return setIsOpen(!isOpen); }, children: [_jsx(Text, { sx: { lineHeight: '22px', fontSize: '14px', fontWeight: 400, px: '10px' }, children: chainFilterOption.includes('All Chains') ? 'All Chains' : "Chains (".concat(chainFilterOption.length, ")") }), _jsx(Flex, { sx: { ml: '5px' }, children: _jsx(Svg, { icon: "caret", direction: isOpen ? 'up' : 'down' }) })] }), isOpen && (_jsx(Flex, { sx: {
46
- flexDirection: ['column', 'column', 'column'],
47
- position: 'absolute',
48
- top: '45px',
49
- right: '0px',
50
- width: '200px',
51
- height: ['300px', '300px', '350px'],
52
- overflowY: 'scroll',
53
- borderRadius: 'normal',
54
- background: 'white2',
55
- zIndex: 555,
56
- }, children: __spreadArray(['All Chains'], MAINNET_CHAINS, true).map(function (chainId) {
57
- return (_jsx(Flex, { sx: {
58
- borderRadius: 'normal',
59
- p: '5px 15px',
60
- minHeight: '40px',
61
- cursor: 'pointer',
62
- '&:hover': { bg: 'white3' },
63
- }, onClick: function () { return handleCheckbox(chainId.toString()); }, children: _jsxs(Flex, { sx: { width: '100%', alignItems: 'center', fontSize: '14px' }, children: [_jsx(Checkbox, { checked: chainFilterOption.includes(chainId.toString()), onChange: function () { return null; } }), chainId === 'All Chains' ? (_jsxs(_Fragment, { children: [_jsx(Flex, { sx: { mx: '8px' }, children: _jsx(Svg, { icon: "AllChains", width: "22px" }) }), _jsx(Text, { sx: { lineHeight: '22px', fontWeight: 400 }, children: "All Chains" })] })) : (_jsxs(_Fragment, { children: [_jsx(Flex, { sx: { mx: '8px', borderRadius: '50px', overflow: 'hidden' }, children: _jsx(Svg, { icon: NETWORK_ICONS[chainId], width: "22px" }) }), _jsx(Text, { sx: { lineHeight: '22px', fontWeight: 400 }, children: NETWORK_LABEL[chainId] })] }))] }) }, chainId));
64
- }) }))] }));
65
- };
66
- export default NetworkFilter;
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx } from "theme-ui/jsx-runtime";
2
- import { Box, Flex } from 'theme-ui';
3
- import '../../scss/ProgressBar.scss';
4
- var ProgressBar = function (_a) {
5
- var value = _a.value, _b = _a.color, color = _b === void 0 ? 'text' : _b;
6
- return (_jsx(Flex, { sx: { width: ['100px', '100px', '100px', '100%'], alignItems: 'center', flexDirection: 'row', mt: '5px' }, children: _jsx(Box, { className: "progressbar-background", children: _jsx(Box, { className: "progressbar-completed", style: {
7
- width: "".concat(value <= 3 ? 3 : value, "%")
8
- } }) }) }));
9
- };
10
- export default ProgressBar;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import React from 'react';
3
- import { styles } from './styles';
4
- import { Flex, Text, TooltipBubble, Skeleton } from '../uikit-sdk';
5
- var ProgressBarWrapper = function (_a) {
6
- var title = _a.title, value = _a.value, style = _a.style, showTooltip = _a.showTooltip, toolTipPlacement = _a.toolTipPlacement, toolTipTransform = _a.toolTipTransform, toolTip = _a.toolTip;
7
- return (_jsxs(Flex, { sx: style, children: [_jsx(Flex, { sx: { alignItems: 'center' }, children: _jsx(Text, { sx: styles.titleText, children: "".concat(title) }) }), showTooltip ? (_jsx(Flex, { sx: { alignItems: 'center', width: '100%' }, children: _jsx(TooltipBubble, { placement: toolTipPlacement, transformTip: toolTipTransform, body: _jsx(Flex, { sx: { justifyContent: 'center' }, children: toolTip }), width: "250px", children: _jsx(Flex, { sx: { justifyContent: 'center', alignItems: 'center', width: '127px' }, children: value ? value : _jsx(Skeleton, { sx: styles.skeleton }) }) }) })) : (_jsx(Flex, { sx: { justifyContent: 'center', alignItems: 'center' }, children: value ? value : _jsx(Skeleton, { sx: styles.skeleton }) }))] }));
8
- };
9
- export default React.memo(ProgressBarWrapper);
@@ -1,82 +0,0 @@
1
- export var styles = {
2
- listCardContainer: {
3
- borderRadius: 0,
4
- flexDirection: ['column', 'column', 'column', 'row'],
5
- alignItems: 'center',
6
- justifyContent: 'space-between',
7
- background: 'white2',
8
- borderBottom: '1px solid rgba(226, 226, 226, .2)',
9
- padding: ['10px 20px 10px 20px', '10px 20px 10px 20px', '10px 20px 10px 20px', '0 30px 0 30px'],
10
- margin: '0 10px 0 10px',
11
- maxWidth: ['500px', '500px', '500px', '100%'],
12
- minWidth: '300px',
13
- width: '100%',
14
- height: ['unset', 'unset', 'unset', '86px'],
15
- },
16
- listViewContainer: {
17
- display: 'flex',
18
- flexDirection: 'column',
19
- alignItems: 'center',
20
- width: '100%',
21
- },
22
- titleContainer: {
23
- width: '100%',
24
- justifyContent: 'space-between',
25
- my: '5px',
26
- },
27
- infoContentMobile: {
28
- display: ['flex', 'flex', 'flex', 'none'],
29
- alignItems: 'center',
30
- },
31
- tokensContainer: {
32
- alignItems: 'center',
33
- height: '100%',
34
- width: '100%',
35
- },
36
- titleText: {
37
- opacity: 0.6,
38
- fontSize: '12px',
39
- lineHeight: ['16px', '16px', '16px', '24px'],
40
- fontWeight: 400,
41
- },
42
- skeleton: {
43
- width: ['45px', '45px', '60px'],
44
- maxHeight: '18px',
45
- minHeight: '18px',
46
- },
47
- valueText: {
48
- fontSize: ['12px', '12px', '12px', '14px'],
49
- color: 'primaryBright',
50
- lineHeight: '16px',
51
- fontWeight: 700,
52
- mr: '5px',
53
- display: 'flex',
54
- alignItems: 'center',
55
- },
56
- secondaryText: {
57
- fontSize: '12px',
58
- color: 'gray',
59
- lineHeight: '16px',
60
- fontWeight: 400,
61
- },
62
- cardContentContainer: {
63
- width: '100%',
64
- height: '100%',
65
- alignItems: 'center',
66
- justifyContent: 'flex-end',
67
- },
68
- animationDiv: {
69
- position: 'relative',
70
- width: '100%',
71
- maxWidth: ['500px', '500px', '500px', '100%'],
72
- minWidth: '300px',
73
- },
74
- expandedWrapper: {
75
- background: 'white3',
76
- flexDirection: 'column',
77
- justifyContent: 'space-between',
78
- padding: '15px 10px',
79
- flexWrap: 'wrap',
80
- alignItems: 'center',
81
- },
82
- };
@@ -1,34 +0,0 @@
1
- var _a;
2
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
3
- import { Flex, ListTag, Svg } from '../../components/uikit-sdk';
4
- import { NETWORK_ICONS } from '../../config/constants/chains';
5
- import { ChainId } from '../../enum/apeswaplists';
6
- import Index from '../uikit-sdk/TokenImage';
7
- // import { CleanedBondsState } from 'state/bills/types'
8
- // import FavComponent from '../../../components/FavComponent'
9
- import '../../scss/TokenInfoName.scss';
10
- export var NETWORK_COLORS = (_a = {},
11
- _a[ChainId.BSC] = '#F3BA2F',
12
- _a[ChainId.MAINNET] = '#627eea',
13
- _a[ChainId.MATIC] = '#8247e5',
14
- _a[ChainId.LIGHTLINK] = '#6087ff',
15
- _a[ChainId.BASE] = '#0052ff',
16
- _a[ChainId.ARBITRUM] = '#289fef',
17
- _a[ChainId.LINEA] = '#fff',
18
- _a[ChainId.IOTA] = '#fff',
19
- _a);
20
- var TokenInfoAndName = function (_a) {
21
- var _b, _c, _d, _e, _f, _g, _h;
22
- var bill = _a.bill, vestEnds = _a.vestEnds;
23
- return (_jsxs(Flex, { className: "tokeninfoname container", children: [_jsx(Flex, { className: "tokeninfoname chain", sx: {
24
- background: NETWORK_COLORS[bill.chainId]
25
- }, children: _jsx(Svg, { width: 18, height: 18, icon: (_b = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bill === null || bill === void 0 ? void 0 : bill.chainId]) !== null && _b !== void 0 ? _b : 'question' }) }), _jsx(Flex, { className: "tokeninfoname gradient", sx: {
26
- background: NETWORK_COLORS[bill.chainId]
27
- } }), _jsxs(Flex, { className: "tokeninfoname tokencontainer", children: [_jsx(Index, { symbol: (_c = bill.showcaseTokenName) !== null && _c !== void 0 ? _c : bill.earnToken.symbol, size: 33 }), _jsxs(Flex, { className: "tokeninfoname tokentext", children: [(_d = bill.showcaseTokenName) !== null && _d !== void 0 ? _d : bill.earnToken.symbol, vestEnds && (_jsx(Flex, { sx: { fontSize: '12px', fontWeight: 400, opacity: 0.6, lineHeight: '14px' }, children: vestEnds }))] })] }), _jsxs(Flex, { children: [_jsx(Flex, { sx: { width: '25px' } }), _jsx(Flex, { sx: {
28
- ml: '10px',
29
- display: ['none', 'none', 'none', 'flex'],
30
- minWidth: '70px',
31
- alignItems: 'center',
32
- }, children: ((_e = bill.tags) === null || _e === void 0 ? void 0 : _e[0]) && (_jsx(Flex, { sx: { marginRight: '10px' }, children: _jsx(ListTag, { variant: ((_f = bill.tags) === null || _f === void 0 ? void 0 : _f[0]) === 'Cex Fund' ? 'cex_fund' : 'liquidity', text: (_h = (_g = bill.tags) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.toUpperCase() }) })) })] })] }));
33
- };
34
- export default TokenInfoAndName;
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "theme-ui/jsx-runtime";
2
- import { Flex } from '../uikit-sdk';
3
- import TokenImage from '../uikit-sdk/TokenImage';
4
- import getNativeTicker from '../../utils/getNativeTicker';
5
- import useCurrencyBalance from '../../state/balance/useCurrencyBalance';
6
- import { useAccount } from 'wagmi';
7
- import BigNumber from 'bignumber.js';
8
- import { Spinner } from 'theme-ui';
9
- var TokenRow = function (_a) {
10
- var _b;
11
- var token = _a.token, chainId = _a.chainId, handleTokenSelect = _a.handleTokenSelect;
12
- var symbol = token === 'NATIVE' ? getNativeTicker(chainId) : token.symbol;
13
- var tokenAddress = token === 'NATIVE' ? 'NATIVE' : token.address[chainId];
14
- var address = useAccount().address;
15
- var tokenBalance = useCurrencyBalance(token, address !== null && address !== void 0 ? address : null, chainId).data;
16
- return (_jsxs(Flex, { sx: { p: '8px', justifyContent: 'space-between', cursor: 'pointer', '&:hover': { background: 'white4' } }, onClick: function () { return handleTokenSelect(tokenAddress !== null && tokenAddress !== void 0 ? tokenAddress : ''); }, children: [_jsxs(Flex, { children: [_jsx(TokenImage, { symbol: symbol, chain: chainId, size: 30 }), _jsx(Flex, { sx: { mx: '8px' }, children: symbol })] }), _jsx(Flex, { children: tokenBalance === undefined ? ('0') : !tokenBalance ? (_jsx(Spinner, { size: 15 })) : (_jsx(_Fragment, { children: (_b = new BigNumber(tokenBalance)) === null || _b === void 0 ? void 0 : _b.toPrecision(5) })) })] }));
17
- };
18
- export default TokenRow;
@@ -1,56 +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 { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
11
- import { useCallback, useState } from 'react';
12
- import { isAddress } from '../../utils';
13
- import { zapInputTokens } from '../../config/constants/zapInputTokens';
14
- import { Flex, Modal } from '../uikit-sdk';
15
- import { Input } from 'theme-ui';
16
- import TokenRow from './TokenRow';
17
- var TokenSelectorModal = function (_a) {
18
- var _b;
19
- var bondPrincipalToken = _a.bondPrincipalToken, handleCurrencySelect = _a.handleCurrencySelect, chainId = _a.chainId, onDismiss = _a.onDismiss;
20
- var _c = useState(''), searchQuery = _c[0], setSearchQuery = _c[1];
21
- var zapInputList = zapInputTokens[chainId];
22
- var parsedList = (_b = zapInputList === null || zapInputList === void 0 ? void 0 : zapInputList.filter(function (token) {
23
- return !searchQuery ? true : token.symbol.toLowerCase().includes(searchQuery.toLowerCase());
24
- })) !== null && _b !== void 0 ? _b : [];
25
- var inputTokenList = bondPrincipalToken
26
- ? __spreadArray([bondPrincipalToken, 'NATIVE'], parsedList, true) : __spreadArray(['NATIVE'], parsedList, true);
27
- var handleTokenSelect = useCallback(function (currency) {
28
- handleCurrencySelect(currency);
29
- setSearchQuery('');
30
- if (onDismiss)
31
- onDismiss();
32
- }, [onDismiss, handleCurrencySelect, setSearchQuery]);
33
- var handleInput = useCallback(function (event) {
34
- var input = event.target.value;
35
- var checksummedInput = isAddress(input);
36
- setSearchQuery(checksummedInput || input);
37
- }, [setSearchQuery]);
38
- return (_jsx(Modal, { onDismiss: onDismiss, title: "Tokens", children: _jsx(Flex, { sx: {
39
- flexDirection: 'column',
40
- maxHeight: 'none',
41
- height: 'auto',
42
- width: 'auto',
43
- overflowY: 'auto',
44
- }, children: _jsxs(Flex, { sx: { flexDirection: 'column' }, children: [_jsx(Flex, { sx: { position: 'relative', margin: '10px 0px 15px 0px' }, children: _jsx(Input, { id: "token-search-input", placeholder: "Name or Address", autoComplete: "off", value: searchQuery, onChange: handleInput,
45
- // icon="search"
46
- autoFocus: true, sx: { borderRadius: 'normal' } }) }), _jsx(Flex, { sx: {
47
- borderRadius: '10px',
48
- background: 'white3',
49
- flexDirection: 'column',
50
- height: '300px',
51
- overflowY: 'auto',
52
- }, children: inputTokenList.map(function (token, i) {
53
- return _jsx(TokenRow, { token: token, chainId: chainId, handleTokenSelect: handleTokenSelect }, i);
54
- }) })] }) }) }));
55
- };
56
- export default TokenSelectorModal;
@@ -1,36 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import { Flex, Input } from 'theme-ui';
3
- import { isNumber } from '../../utils/numbers';
4
- import { Button, Svg } from '../uikit-sdk';
5
- import TokenImage from '../uikit-sdk/TokenImage';
6
- import getNativeTicker from '../../utils/getNativeTicker';
7
- import useModal from '../../hooks/useModal';
8
- import TokenSelectorModal from '../TokenSelectorModal';
9
- import BigNumber from 'bignumber.js';
10
- import { isArray } from 'lodash';
11
- var TokenSelectorPanel = function (_a) {
12
- var _b, _c, _d;
13
- var typedValue = _a.typedValue, setTypedValue = _a.setTypedValue, selectedToken = _a.selectedToken, chainId = _a.chainId, handleMaxBtn = _a.handleMaxBtn, handleCurrencySelect = _a.handleCurrencySelect, enableZap = _a.enableZap, bondPrincipalToken = _a.bondPrincipalToken, tokenBalance = _a.tokenBalance, selectedTokenPrice = _a.selectedTokenPrice;
14
- var tokenBalanceString = tokenBalance ? new BigNumber(tokenBalance).toPrecision(5) : 'loading';
15
- var splited = typeof selectedToken !== 'string' ? (_b = selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.symbol) === null || _b === void 0 ? void 0 : _b.split('-') : undefined;
16
- var handleInputChange = function (event) {
17
- setTypedValue(event.target.value);
18
- };
19
- var onTokenSelectorModal = useModal(_jsx(TokenSelectorModal, { bondPrincipalToken: bondPrincipalToken, handleCurrencySelect: handleCurrencySelect, chainId: chainId }), true, true, "tokenSelectorOnLiquidityModal".concat(bondPrincipalToken))[0];
20
- return (_jsxs(Flex, { className: "modaltable-container buy-container", children: [_jsxs(Flex, { className: "input-container inputrow", children: [_jsx(Flex, { className: "input-container input", children: _jsx(Input, { placeholder: "0.0", value: typedValue, pattern: "^[0-9]*[.,]?[0-9]*$", onChange: handleInputChange, onInput: function (v) {
21
- if (v.currentTarget.value.includes(',')) {
22
- v.currentTarget.value = v.currentTarget.value.replace(/,/g, '.');
23
- }
24
- if (v.currentTarget.value.includes('%')) {
25
- v.currentTarget.value = v.currentTarget.value.replace(/[^0-9]/g, '');
26
- }
27
- if (v.currentTarget.value === '.') {
28
- v.currentTarget.value = '0.';
29
- }
30
- v.currentTarget.value =
31
- !!v.currentTarget.value && isNumber(v.currentTarget.value) && parseFloat(v.currentTarget.value) >= 0
32
- ? v.currentTarget.value
33
- : v.currentTarget.value.slice(0, v.currentTarget.value.length - 1);
34
- } }) }), _jsxs(Flex, { className: "input-container token", onClick: onTokenSelectorModal, children: [_jsxs(Flex, { children: [_jsx(Flex, { className: "input-container bondicon", children: isArray(splited) ? (_jsx(TokenImage, { symbol: splited[0], symbol2: splited[1], size: 30, chain: chainId })) : (_jsx(TokenImage, { symbol: selectedToken === 'NATIVE' ? getNativeTicker(chainId) : ((_c = selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.symbol) !== null && _c !== void 0 ? _c : ''), size: 30, chain: chainId })) }), _jsx(Flex, { className: "title-container tokenname-small", children: selectedToken === 'NATIVE' ? getNativeTicker(chainId) : ((_d = selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.symbol) !== null && _d !== void 0 ? _d : '') })] }), _jsx(Flex, { sx: { mr: '8px' }, children: _jsx(Svg, { icon: "caret" }) })] })] }), tokenBalance && (_jsxs(Flex, { className: "input-container balancerow", children: [_jsx(Flex, { children: selectedTokenPrice && typedValue ? "$".concat((selectedTokenPrice * parseFloat(typedValue)).toFixed(2)) : '' }), _jsxs(Flex, { children: [_jsxs(Flex, { className: "balancerow text", children: ["Balance: ", tokenBalanceString] }), _jsx(Flex, { className: "balancerow max", children: tokenBalance !== '0' && (_jsx(Button, { className: "max-button", onClick: handleMaxBtn, children: "Max" })) })] })] }))] }));
35
- };
36
- export default TokenSelectorPanel;
@@ -1,21 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
13
- import { styles } from './styles';
14
- import { Flex, Svg, Text } from '../uikit-sdk';
15
- import { Link } from 'theme-ui';
16
- var ButtonsRow = function (_a) {
17
- var projectLink = _a.projectLink, twitter = _a.twitter, bubble = _a.bubble, audit = _a.audit;
18
- var bubbleURL = "https://app.bubblemaps.io/bsc/token/".concat(bubble);
19
- return (_jsxs(Flex, { sx: { justifyContent: 'center' }, children: [_jsx(Flex, { sx: styles.iconButton, as: Link, href: projectLink, target: "_blank", children: _jsx(Svg, { icon: "URL", width: 18 }) }), _jsx(Flex, { sx: styles.iconButton, as: Link, href: twitter, target: "_blank", children: _jsx(Svg, { icon: "twitter", width: 18, color: "text" }) }), bubble && (_jsx(Flex, { sx: styles.iconButton, as: Link, href: bubbleURL, target: "_blank", children: _jsx(Svg, { icon: "bubble", width: 18, color: "text" }) })), audit && (_jsxs(Flex, { sx: __assign(__assign({}, styles.iconButton), { margin: '0 0 5px 0', '& svg': { marginRight: '5px' } }), as: Link, href: audit, target: "_blank", children: [_jsx(Svg, { icon: "audit", width: 18, color: "text" }), _jsx(Text, { sx: { paddingRight: '5px' }, children: 'Audit' })] }))] }));
20
- };
21
- export default ButtonsRow;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
2
- import { styles } from './styles';
3
- import { BLOCK_EXPLORER } from '../../config/constants/chains';
4
- import ButtonsRow from './ButtonsRow';
5
- import { Flex, Text, Svg } from '../uikit-sdk';
6
- import { Link } from 'theme-ui';
7
- var Tooltip = function (_a) {
8
- var valueTitle = _a.valueTitle, valueContent = _a.valueContent, value2Title = _a.value2Title, value2Content = _a.value2Content, tokenContract = _a.tokenContract, secondURL = _a.secondURL, secondURLTitle = _a.secondURLTitle, projectLink = _a.projectLink, twitter = _a.twitter, audit = _a.audit, thirdURL = _a.thirdURL, thirdURLTitle = _a.thirdURLTitle, chain = _a.chain;
9
- var explorerLink = BLOCK_EXPLORER[chain];
10
- var tokenLink = "".concat(explorerLink, "/address/").concat(tokenContract);
11
- return (_jsxs(Flex, { sx: { flexDirection: 'column', flexWrap: 'wrap' }, children: [projectLink && twitter && (_jsx(ButtonsRow, { twitter: twitter, projectLink: projectLink, bubble: tokenContract, audit: audit })), valueTitle && (_jsxs(Flex, { sx: styles.infoRow, children: [_jsxs(Text, { sx: styles.titleText, children: [valueTitle, ": "] }), _jsx(Text, { sx: styles.contentText, children: valueContent })] })), value2Title && (_jsxs(Flex, { sx: styles.infoRow, children: [_jsxs(Text, { sx: styles.titleText, children: [value2Title, ": "] }), _jsx(Text, { sx: styles.contentText, children: value2Content })] })), _jsx(Flex, { sx: { justifyContent: 'center' }, children: _jsxs(Flex, { sx: { width: '144px', flexDirection: 'column' }, children: [_jsx(Flex, { sx: styles.linkRow, children: _jsxs(Link, { href: tokenLink, sx: styles.link, target: "_blank", children: ['View Token Contract', _jsx(Flex, { sx: { ml: '5px' }, children: _jsx(Svg, { icon: "external", color: "text", width: 10 }) })] }) }), secondURL && (_jsx(Flex, { sx: styles.linkRow, children: _jsxs(Link, { href: secondURL, sx: styles.link, target: "_blank", children: [secondURLTitle, _jsx(Flex, { sx: { ml: '5px' }, children: _jsx(Svg, { icon: "external", color: "text", width: 10 }) })] }) })), thirdURL && (_jsx(Flex, { sx: styles.linkRow, children: _jsx(Link, { href: thirdURL, sx: styles.link, target: "_blank", children: thirdURLTitle }) }))] }) })] }));
12
- };
13
- export default Tooltip;
@@ -1,44 +0,0 @@
1
- export var styles = {
2
- infoRow: {
3
- justifyContent: 'space-between',
4
- width: '100%',
5
- marginBottom: '5px',
6
- },
7
- linkRow: {
8
- width: '100%',
9
- marginTop: '5px',
10
- justifyContent: 'flex-end',
11
- '& svg': { width: '11px' },
12
- },
13
- titleText: {
14
- fontSize: '12px',
15
- lineHeight: '14px',
16
- fontWeight: 500,
17
- },
18
- contentText: {
19
- fontSize: '12px',
20
- lineHeight: '14px',
21
- fontWeight: 700,
22
- },
23
- iconButton: {
24
- background: 'white3',
25
- textDecoration: 'none',
26
- alignItems: 'center',
27
- justifyContent: 'center',
28
- width: 'fit-content',
29
- height: '30px',
30
- padding: '2px 5px',
31
- borderRadius: '8px',
32
- margin: '0 5px 5px 0',
33
- '&:hover': {
34
- cursor: 'pointer',
35
- },
36
- },
37
- link: {
38
- fontSize: '12px',
39
- lineHeight: '14px',
40
- display: 'flex',
41
- textDecoration: 'none',
42
- '&: hover': { textDecoration: 'underline' },
43
- },
44
- };