@ape.swap/bonds-sdk 1.0.77 → 1.0.78-2.test.10

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 (882) hide show
  1. package/dist/components/BondMenu/BondMenu.d.ts +11 -0
  2. package/dist/components/BondMenu/BondMenu.js +39 -0
  3. package/dist/components/BondMenu/useChainFilterOption.d.ts +4 -0
  4. package/dist/components/BondMenu/useChainFilterOption.js +30 -0
  5. package/dist/components/BondRows/BondRow.d.ts +8 -0
  6. package/dist/components/BondRows/BondRow.js +80 -0
  7. package/dist/components/BondRows/BondRowHeader.d.ts +15 -0
  8. package/dist/components/BondRows/BondRowHeader.js +11 -0
  9. package/dist/components/BondRows/BondRowsByChain.d.ts +8 -0
  10. package/dist/components/BondRows/BondRowsByChain.js +12 -0
  11. package/dist/components/BondRows/BondRowsWithTitle.d.ts +8 -0
  12. package/dist/components/BondRows/BondRowsWithTitle.js +19 -0
  13. package/dist/components/BondRows/ChainTitle.d.ts +8 -0
  14. package/dist/components/BondRows/ChainTitle.js +18 -0
  15. package/dist/components/MenuSelect/MenuSelect.d.ts +8 -0
  16. package/dist/components/MenuSelect/MenuSelect.js +36 -0
  17. package/dist/components/MenuSelect/RecommendationSelector.d.ts +7 -0
  18. package/dist/components/MenuSelect/RecommendationSelector.js +32 -0
  19. package/dist/components/MenuSelect/types.d.ts +22 -0
  20. package/dist/components/NetworkFilter/index.d.ts +6 -0
  21. package/dist/components/NetworkFilter/index.js +66 -0
  22. package/dist/components/ProgressBar/ProgressBar.d.ts +7 -0
  23. package/dist/components/ProgressBar/ProgressBar.js +9 -0
  24. package/dist/components/ProgressBar/ProgressBarWrapper.d.ts +14 -0
  25. package/dist/components/ProgressBar/ProgressBarWrapper.js +9 -0
  26. package/dist/components/ProgressBar/styles.d.ts +2 -0
  27. package/dist/components/ProgressBar/styles.js +82 -0
  28. package/dist/components/TokenInfoAndName/index.d.ts +8 -0
  29. package/dist/components/TokenInfoAndName/index.js +61 -0
  30. package/dist/components/Tooltip/ButtonsRow.d.ts +8 -0
  31. package/dist/components/Tooltip/ButtonsRow.js +21 -0
  32. package/dist/components/Tooltip/Tooltip.d.ts +18 -0
  33. package/dist/components/Tooltip/Tooltip.js +13 -0
  34. package/dist/components/Tooltip/styles.d.ts +2 -0
  35. package/dist/components/Tooltip/styles.js +44 -0
  36. package/dist/components/uikit-sdk/Button/IconButton.js +33 -0
  37. package/dist/components/uikit-sdk/Checkbox/index.d.ts +3 -0
  38. package/dist/components/uikit-sdk/Checkbox/index.js +46 -0
  39. package/dist/components/uikit-sdk/Flex/index.d.ts +5 -0
  40. package/dist/components/uikit-sdk/Input/Input.d.ts +9 -0
  41. package/dist/components/uikit-sdk/Input/Input.js +72 -0
  42. package/dist/components/uikit-sdk/Input/NumericInput.d.ts +9 -0
  43. package/dist/components/uikit-sdk/Input/StyledInput.js +26 -0
  44. package/dist/components/uikit-sdk/Modal/ModalFooter.js +21 -0
  45. package/dist/components/uikit-sdk/Modal/ModalHeader.js +31 -0
  46. package/dist/components/uikit-sdk/Modal/index.js +46 -0
  47. package/dist/components/uikit-sdk/Select/Select.js +61 -0
  48. package/dist/components/uikit-sdk/Select/SelectItem.d.ts +3 -0
  49. package/dist/components/uikit-sdk/Select/SelectItem.js +40 -0
  50. package/dist/components/uikit-sdk/Skeleton/styles.d.ts +5 -0
  51. package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js +16 -0
  52. package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js +6 -0
  53. package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js +16 -0
  54. package/dist/components/uikit-sdk/Svg/Icons/AllChains.d.ts +4 -0
  55. package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +6 -0
  56. package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js +17 -0
  57. package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js +6 -0
  58. package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +16 -0
  59. package/dist/components/uikit-sdk/Svg/Icons/Audit.js +16 -0
  60. package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js +6 -0
  61. package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js +16 -0
  62. package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js +17 -0
  63. package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js +16 -0
  64. package/dist/components/uikit-sdk/Svg/Icons/Bridge.js +16 -0
  65. package/dist/components/uikit-sdk/Svg/Icons/Bubble.js +16 -0
  66. package/dist/components/uikit-sdk/Svg/Icons/Calculator.js +16 -0
  67. package/dist/components/uikit-sdk/Svg/Icons/Calendar.js +5 -0
  68. package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js +16 -0
  69. package/dist/components/uikit-sdk/Svg/Icons/Card.js +16 -0
  70. package/dist/components/uikit-sdk/Svg/Icons/Caret.js +16 -0
  71. package/dist/components/uikit-sdk/Svg/Icons/Chain.js +9 -0
  72. package/dist/components/uikit-sdk/Svg/Icons/Chart.js +16 -0
  73. package/dist/components/uikit-sdk/Svg/Icons/Chat.js +16 -0
  74. package/dist/components/uikit-sdk/Svg/Icons/Close.js +9 -0
  75. package/dist/components/uikit-sdk/Svg/Icons/Cog.d.ts +3 -0
  76. package/dist/components/uikit-sdk/Svg/Icons/Cog.js +16 -0
  77. package/dist/components/uikit-sdk/Svg/Icons/Collapse.js +16 -0
  78. package/dist/components/uikit-sdk/Svg/Icons/Copy.js +16 -0
  79. package/dist/components/uikit-sdk/Svg/Icons/Discord.js +16 -0
  80. package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js +16 -0
  81. package/dist/components/uikit-sdk/Svg/Icons/Docs.js +16 -0
  82. package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js +16 -0
  83. package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js +16 -0
  84. package/dist/components/uikit-sdk/Svg/Icons/Error.js +16 -0
  85. package/dist/components/uikit-sdk/Svg/Icons/Expand.js +16 -0
  86. package/dist/components/uikit-sdk/Svg/Icons/Explorer.js +16 -0
  87. package/dist/components/uikit-sdk/Svg/Icons/External.js +16 -0
  88. package/dist/components/uikit-sdk/Svg/Icons/Farm.js +16 -0
  89. package/dist/components/uikit-sdk/Svg/Icons/Fav.js +16 -0
  90. package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js +16 -0
  91. package/dist/components/uikit-sdk/Svg/Icons/Fire.js +6 -0
  92. package/dist/components/uikit-sdk/Svg/Icons/Frame.js +16 -0
  93. package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js +6 -0
  94. package/dist/components/uikit-sdk/Svg/Icons/Gnana.js +16 -0
  95. package/dist/components/uikit-sdk/Svg/Icons/GreenShield.d.ts +3 -0
  96. package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js +6 -0
  97. package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +16 -0
  98. package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js +16 -0
  99. package/dist/components/uikit-sdk/Svg/Icons/Home.js +16 -0
  100. package/dist/components/uikit-sdk/Svg/Icons/Hot.d.ts +4 -0
  101. package/dist/components/uikit-sdk/Svg/Icons/Hot.js +6 -0
  102. package/dist/components/uikit-sdk/Svg/Icons/Info.js +16 -0
  103. package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js +16 -0
  104. package/dist/components/uikit-sdk/Svg/Icons/Insight.js +16 -0
  105. package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +16 -0
  106. package/dist/components/uikit-sdk/Svg/Icons/Island.js +16 -0
  107. package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js +16 -0
  108. package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +6 -0
  109. package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js +16 -0
  110. package/dist/components/uikit-sdk/Svg/Icons/Logout.js +16 -0
  111. package/dist/components/uikit-sdk/Svg/Icons/Medium.js +16 -0
  112. package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js +16 -0
  113. package/dist/components/uikit-sdk/Svg/Icons/Message.js +9 -0
  114. package/dist/components/uikit-sdk/Svg/Icons/Migrate.js +16 -0
  115. package/dist/components/uikit-sdk/Svg/Icons/Moon.js +16 -0
  116. package/dist/components/uikit-sdk/Svg/Icons/More.js +16 -0
  117. package/dist/components/uikit-sdk/Svg/Icons/NFA.js +16 -0
  118. package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js +16 -0
  119. package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.d.ts +3 -0
  120. package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +16 -0
  121. package/dist/components/uikit-sdk/Svg/Icons/Play.js +5 -0
  122. package/dist/components/uikit-sdk/Svg/Icons/Pool.js +16 -0
  123. package/dist/components/uikit-sdk/Svg/Icons/Positions.js +16 -0
  124. package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js +6 -0
  125. package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js +6 -0
  126. package/dist/components/uikit-sdk/Svg/Icons/Question.js +6 -0
  127. package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +16 -0
  128. package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js +16 -0
  129. package/dist/components/uikit-sdk/Svg/Icons/Quiz.js +16 -0
  130. package/dist/components/uikit-sdk/Svg/Icons/Receipt.js +16 -0
  131. package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +16 -0
  132. package/dist/components/uikit-sdk/Svg/Icons/Rocket.js +16 -0
  133. package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js +16 -0
  134. package/dist/components/uikit-sdk/Svg/Icons/Search.js +16 -0
  135. package/dist/components/uikit-sdk/Svg/Icons/Send.js +16 -0
  136. package/dist/components/uikit-sdk/Svg/Icons/Settings.js +16 -0
  137. package/dist/components/uikit-sdk/Svg/Icons/Share.js +16 -0
  138. package/dist/components/uikit-sdk/Svg/Icons/Sort.d.ts +4 -0
  139. package/dist/components/uikit-sdk/Svg/Icons/Sort.js +16 -0
  140. package/dist/components/uikit-sdk/Svg/Icons/Success.js +16 -0
  141. package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js +16 -0
  142. package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js +16 -0
  143. package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.d.ts +3 -0
  144. package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js +16 -0
  145. package/dist/components/uikit-sdk/Svg/Icons/Tag.js +5 -0
  146. package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +16 -0
  147. package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js +16 -0
  148. package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js +6 -0
  149. package/dist/components/uikit-sdk/Svg/Icons/TickShield.js +16 -0
  150. package/dist/components/uikit-sdk/Svg/Icons/Trade.js +16 -0
  151. package/dist/components/uikit-sdk/Svg/Icons/Trash.js +16 -0
  152. package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +16 -0
  153. package/dist/components/uikit-sdk/Svg/Icons/URL.js +16 -0
  154. package/dist/components/uikit-sdk/Svg/Icons/Vaults.js +16 -0
  155. package/dist/components/uikit-sdk/Svg/Icons/Verified.js +6 -0
  156. package/dist/components/uikit-sdk/Svg/Icons/Wallet.js +16 -0
  157. package/dist/components/uikit-sdk/Svg/Icons/Warning.js +16 -0
  158. package/dist/components/uikit-sdk/Svg/Icons/Watch.js +16 -0
  159. package/dist/components/uikit-sdk/Svg/Icons/Website.js +16 -0
  160. package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js +16 -0
  161. package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js +16 -0
  162. package/dist/components/uikit-sdk/Svg/Icons/XNew.js +16 -0
  163. package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js +6 -0
  164. package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +16 -0
  165. package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +16 -0
  166. package/dist/components/uikit-sdk/Svg/Icons/index.d.ts +110 -0
  167. package/dist/components/uikit-sdk/Svg/Icons/index.js +112 -0
  168. package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js +16 -0
  169. package/dist/components/uikit-sdk/Svg/index.d.ts +3 -0
  170. package/dist/components/uikit-sdk/Svg/index.js +347 -0
  171. package/dist/components/uikit-sdk/Svg/tokens/ABOND.js +6 -0
  172. package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +6 -0
  173. package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +6 -0
  174. package/dist/components/uikit-sdk/Svg/tokens/BANANA.js +6 -0
  175. package/dist/components/uikit-sdk/Svg/tokens/BASE.js +6 -0
  176. package/dist/components/uikit-sdk/Svg/tokens/BNB.js +6 -0
  177. package/dist/components/uikit-sdk/Svg/tokens/BSC.js +6 -0
  178. package/dist/components/uikit-sdk/Svg/tokens/CELO.js +5 -0
  179. package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +6 -0
  180. package/dist/components/uikit-sdk/Svg/tokens/ETH.js +6 -0
  181. package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +6 -0
  182. package/dist/components/uikit-sdk/Svg/tokens/GNANA.js +6 -0
  183. package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +6 -0
  184. package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +6 -0
  185. package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +6 -0
  186. package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +6 -0
  187. package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +6 -0
  188. package/dist/components/uikit-sdk/Svg/tokens/OKX.js +5 -0
  189. package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +8 -0
  190. package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +6 -0
  191. package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +6 -0
  192. package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +6 -0
  193. package/dist/components/uikit-sdk/Svg/types.d.ts +171 -0
  194. package/dist/components/uikit-sdk/Svg/types.js +165 -0
  195. package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.d.ts +3 -0
  196. package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js +6 -0
  197. package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.d.ts +3 -0
  198. package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js +6 -0
  199. package/dist/components/uikit-sdk/Svg/walletIcons/Brave.d.ts +3 -0
  200. package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js +6 -0
  201. package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.d.ts +3 -0
  202. package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js +6 -0
  203. package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js +6 -0
  204. package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.d.ts +3 -0
  205. package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js +6 -0
  206. package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.d.ts +3 -0
  207. package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js +6 -0
  208. package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.d.ts +3 -0
  209. package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js +6 -0
  210. package/dist/components/uikit-sdk/Svg/walletIcons/OKX.d.ts +3 -0
  211. package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js +6 -0
  212. package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.d.ts +3 -0
  213. package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js +6 -0
  214. package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.d.ts +3 -0
  215. package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js +6 -0
  216. package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.d.ts +3 -0
  217. package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js +6 -0
  218. package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.d.ts +3 -0
  219. package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js +6 -0
  220. package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.d.ts +3 -0
  221. package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js +6 -0
  222. package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.d.ts +3 -0
  223. package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js +6 -0
  224. package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js +6 -0
  225. package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.d.ts +3 -0
  226. package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js +6 -0
  227. package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js +5 -0
  228. package/dist/components/uikit-sdk/Tag/ListTag.js +20 -0
  229. package/dist/components/uikit-sdk/Tag/styles.d.ts +8 -0
  230. package/dist/components/uikit-sdk/Tag/types.js +34 -0
  231. package/dist/components/uikit-sdk/Text/index.js +35 -0
  232. package/dist/components/uikit-sdk/TokenImage/index.d.ts +7 -0
  233. package/dist/components/uikit-sdk/TokenImage/index.js +18 -0
  234. package/dist/components/uikit-sdk/TooltipBubble/index.js +66 -0
  235. package/dist/components/uikit-sdk/TooltipBubble/styles.js +60 -0
  236. package/dist/components/uikit-sdk/index.d.ts +10 -0
  237. package/dist/components/uikit-sdk/index.js +12 -0
  238. package/dist/config/abi/bond.json +450 -0
  239. package/dist/config/abi/erc20.json +117 -0
  240. package/dist/config/abi/multicallv2.json +143 -0
  241. package/dist/config/abi/types/Banana.d.ts +417 -0
  242. package/dist/config/abi/types/Banana.js +1 -0
  243. package/dist/config/abi/types/Bond.d.ts +803 -0
  244. package/dist/config/abi/types/Bond.js +1 -0
  245. package/dist/config/abi/types/BondNft.d.ts +603 -0
  246. package/dist/config/abi/types/BondNft.js +1 -0
  247. package/dist/config/abi/types/EnsPublicResolver.d.ts +513 -0
  248. package/dist/config/abi/types/EnsPublicResolver.js +1 -0
  249. package/dist/config/abi/types/EnsRegistrar.d.ts +274 -0
  250. package/dist/config/abi/types/EnsRegistrar.js +1 -0
  251. package/dist/config/abi/types/Erc20.d.ts +168 -0
  252. package/dist/config/abi/types/Erc20.js +1 -0
  253. package/dist/config/abi/types/Erc20_bytes32.d.ts +50 -0
  254. package/dist/config/abi/types/Erc20_bytes32.js +1 -0
  255. package/dist/config/abi/types/JungleChef.d.ts +260 -0
  256. package/dist/config/abi/types/JungleChef.js +1 -0
  257. package/dist/config/abi/types/LaunchBonds.d.ts +1362 -0
  258. package/dist/config/abi/types/LaunchBonds.js +1 -0
  259. package/dist/config/abi/types/LensContract.d.ts +295 -0
  260. package/dist/config/abi/types/LensContract.js +1 -0
  261. package/dist/config/abi/types/LockVeAbond.d.ts +1279 -0
  262. package/dist/config/abi/types/LockVeAbond.js +1 -0
  263. package/dist/config/abi/types/MigrationBond.d.ts +1136 -0
  264. package/dist/config/abi/types/MigrationBond.js +1 -0
  265. package/dist/config/abi/types/MigrationFveAbond.d.ts +290 -0
  266. package/dist/config/abi/types/MigrationFveAbond.js +1 -0
  267. package/dist/config/abi/types/MiniComplexRewarder.d.ts +469 -0
  268. package/dist/config/abi/types/MiniComplexRewarder.js +1 -0
  269. package/dist/config/abi/types/Multicallv2.d.ts +150 -0
  270. package/dist/config/abi/types/Multicallv2.js +1 -0
  271. package/dist/config/abi/types/Multicallv3.d.ts +98 -0
  272. package/dist/config/abi/types/Multicallv3.js +1 -0
  273. package/dist/config/abi/types/NonFungibleApes.d.ts +532 -0
  274. package/dist/config/abi/types/NonFungibleApes.js +1 -0
  275. package/dist/config/abi/types/NonFungibleBananas.d.ts +505 -0
  276. package/dist/config/abi/types/NonFungibleBananas.js +1 -0
  277. package/dist/config/abi/types/PriceGetter.d.ts +713 -0
  278. package/dist/config/abi/types/PriceGetter.js +1 -0
  279. package/dist/config/abi/types/PriceGetterLinea.d.ts +789 -0
  280. package/dist/config/abi/types/PriceGetterLinea.js +1 -0
  281. package/dist/config/abi/types/PriceGetterV2.d.ts +729 -0
  282. package/dist/config/abi/types/PriceGetterV2.js +1 -0
  283. package/dist/config/abi/types/SousChef.d.ts +579 -0
  284. package/dist/config/abi/types/SousChef.js +1 -0
  285. package/dist/config/abi/types/Treasury.d.ts +277 -0
  286. package/dist/config/abi/types/Treasury.js +1 -0
  287. package/dist/config/abi/types/Weth.d.ts +221 -0
  288. package/dist/config/abi/types/Weth.js +1 -0
  289. package/dist/config/abi/types/Zap.d.ts +528 -0
  290. package/dist/config/abi/types/Zap.js +1 -0
  291. package/dist/config/abi/types/common.d.ts +22 -0
  292. package/dist/config/abi/types/common.js +1 -0
  293. package/dist/config/abi/types/factories/Banana__factory.d.ts +475 -0
  294. package/dist/config/abi/types/factories/Banana__factory.js +628 -0
  295. package/dist/config/abi/types/factories/BondNft__factory.d.ts +723 -0
  296. package/dist/config/abi/types/factories/BondNft__factory.js +951 -0
  297. package/dist/config/abi/types/factories/Bond__factory.d.ts +799 -0
  298. package/dist/config/abi/types/factories/Bond__factory.js +1042 -0
  299. package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +649 -0
  300. package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +833 -0
  301. package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +338 -0
  302. package/dist/config/abi/types/factories/EnsRegistrar__factory.js +439 -0
  303. package/dist/config/abi/types/factories/Erc20__factory.d.ts +175 -0
  304. package/dist/config/abi/types/factories/Erc20__factory.js +239 -0
  305. package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +30 -0
  306. package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +47 -0
  307. package/dist/config/abi/types/factories/JungleChef__factory.d.ts +247 -0
  308. package/dist/config/abi/types/factories/JungleChef__factory.js +326 -0
  309. package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +1560 -0
  310. package/dist/config/abi/types/factories/LaunchBonds__factory.js +2031 -0
  311. package/dist/config/abi/types/factories/LensContract__factory.d.ts +254 -0
  312. package/dist/config/abi/types/factories/LensContract__factory.js +338 -0
  313. package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +1698 -0
  314. package/dist/config/abi/types/factories/LockVeAbond__factory.js +2215 -0
  315. package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +1268 -0
  316. package/dist/config/abi/types/factories/MigrationBond__factory.js +1656 -0
  317. package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +262 -0
  318. package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +346 -0
  319. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +448 -0
  320. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +586 -0
  321. package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +115 -0
  322. package/dist/config/abi/types/factories/Multicallv2__factory.js +160 -0
  323. package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +76 -0
  324. package/dist/config/abi/types/factories/Multicallv3__factory.js +109 -0
  325. package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +617 -0
  326. package/dist/config/abi/types/factories/NonFungibleApes__factory.js +810 -0
  327. package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +576 -0
  328. package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +756 -0
  329. package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +1105 -0
  330. package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +1465 -0
  331. package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +1027 -0
  332. package/dist/config/abi/types/factories/PriceGetterV2__factory.js +1364 -0
  333. package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +999 -0
  334. package/dist/config/abi/types/factories/PriceGetter__factory.js +1326 -0
  335. package/dist/config/abi/types/factories/SousChef__factory.d.ts +511 -0
  336. package/dist/config/abi/types/factories/SousChef__factory.js +666 -0
  337. package/dist/config/abi/types/factories/Treasury__factory.d.ts +235 -0
  338. package/dist/config/abi/types/factories/Treasury__factory.js +309 -0
  339. package/dist/config/abi/types/factories/Weth__factory.d.ts +220 -0
  340. package/dist/config/abi/types/factories/Weth__factory.js +296 -0
  341. package/dist/config/abi/types/factories/Zap__factory.d.ts +695 -0
  342. package/dist/config/abi/types/factories/Zap__factory.js +889 -0
  343. package/dist/config/abi/types/factories/index.d.ts +25 -0
  344. package/dist/config/abi/types/factories/index.js +28 -0
  345. package/dist/config/abi/types/index.d.ts +51 -0
  346. package/dist/config/abi/types/index.js +26 -0
  347. package/dist/config/constants/addresses.d.ts +20 -0
  348. package/dist/config/constants/addresses.js +116 -0
  349. package/dist/config/constants/api.d.ts +6 -0
  350. package/dist/config/constants/api.js +6 -0
  351. package/dist/config/constants/chains.d.ts +48 -0
  352. package/dist/config/constants/chains.js +436 -0
  353. package/dist/config/constants/lifiRouting.d.ts +2 -0
  354. package/dist/config/constants/lifiRouting.js +6 -0
  355. package/dist/config/constants/lists.d.ts +10 -0
  356. package/dist/config/constants/lists.js +21 -0
  357. package/dist/config/constants/meta.d.ts +11 -0
  358. package/dist/config/constants/meta.js +92 -0
  359. package/dist/config/constants/misc.d.ts +3 -0
  360. package/dist/config/constants/misc.js +4 -0
  361. package/dist/config/constants/networks.d.ts +2 -0
  362. package/dist/config/constants/networks.js +44 -0
  363. package/dist/config/constants/products.d.ts +21 -0
  364. package/dist/config/constants/products.js +58 -0
  365. package/dist/config/constants/queryKeys.d.ts +24 -0
  366. package/dist/config/constants/queryKeys.js +24 -0
  367. package/dist/config/constants/tokens.d.ts +6 -0
  368. package/dist/config/constants/tokens.js +452 -0
  369. package/dist/config/constants/tutorials.d.ts +7 -0
  370. package/dist/config/constants/tutorials.js +80 -0
  371. package/dist/config/localization/languages.d.ts +11 -0
  372. package/dist/config/localization/languages.js +83 -0
  373. package/dist/config/localization/translations.json +918 -0
  374. package/dist/contexts/Localization/Provider.d.ts +7 -0
  375. package/dist/contexts/Localization/Provider.js +134 -0
  376. package/dist/contexts/Localization/helpers.d.ts +3 -0
  377. package/dist/contexts/Localization/helpers.js +63 -0
  378. package/dist/contexts/Localization/index.d.ts +3 -0
  379. package/dist/contexts/Localization/index.js +2 -0
  380. package/dist/contexts/Localization/types.d.ts +21 -0
  381. package/dist/contexts/Localization/types.js +1 -0
  382. package/dist/contexts/Localization/useTranslation.d.ts +2 -0
  383. package/dist/contexts/Localization/useTranslation.js +10 -0
  384. package/dist/contexts/ModalContext.js +4 -15
  385. package/dist/contexts/RefreshContext.d.ts +10 -0
  386. package/dist/contexts/RefreshContext.js +78 -0
  387. package/dist/enum/apeswaplists.d.ts +418 -0
  388. package/dist/enum/apeswaplists.js +152 -0
  389. package/dist/enum/tooltips.d.ts +13 -0
  390. package/dist/enum/tooltips.js +13 -0
  391. package/dist/hooks/useCookie.d.ts +9 -0
  392. package/dist/hooks/useCookie.js +29 -0
  393. package/dist/hooks/usePendingVesting.d.ts +5 -0
  394. package/dist/hooks/usePendingVesting.js +13 -0
  395. package/dist/hooks/useRefresh.d.ts +6 -0
  396. package/dist/hooks/useRefresh.js +7 -0
  397. package/dist/hooks/useTimer.d.ts +2 -0
  398. package/dist/hooks/useTimer.js +13 -0
  399. package/dist/hooks/useTopThreeTags.d.ts +2 -0
  400. package/dist/hooks/useTopThreeTags.js +25 -0
  401. package/dist/index.d.ts +5 -3
  402. package/dist/index.js +5 -3
  403. package/dist/providers/index.d.ts +8 -0
  404. package/dist/providers/index.js +12 -0
  405. package/dist/theme/colors.d.ts +3 -2
  406. package/dist/theme/colors.js +5 -4
  407. package/dist/types/bonds.d.ts +35 -1
  408. package/dist/types/yourbonds.d.ts +93 -0
  409. package/dist/types/yourbonds.js +1 -0
  410. package/dist/utils/convertToTokenValue.d.ts +4 -0
  411. package/dist/utils/convertToTokenValue.js +24 -0
  412. package/dist/utils/formatNumber.d.ts +2 -0
  413. package/dist/utils/formatNumber.js +34 -0
  414. package/dist/utils/formatNumbers.d.ts +36 -0
  415. package/dist/utils/formatNumbers.js +148 -0
  416. package/dist/utils/getBalanceNumber.d.ts +4 -0
  417. package/dist/utils/getBalanceNumber.js +18 -0
  418. package/dist/utils/index.d.ts +16 -0
  419. package/dist/utils/index.js +127 -0
  420. package/dist/utils/localStorageHelpers.d.ts +3 -0
  421. package/dist/utils/localStorageHelpers.js +47 -0
  422. package/dist/utils/multicall.d.ts +7 -0
  423. package/dist/utils/multicall.js +90 -0
  424. package/dist/utils/roundNumber.d.ts +7 -0
  425. package/dist/utils/roundNumber.js +14 -0
  426. package/dist/utils/track.d.ts +7 -0
  427. package/dist/utils/track.js +17 -0
  428. package/dist/views/BondModal/BondModal.d.ts +12 -0
  429. package/dist/views/BondModal/BondModal.js +276 -0
  430. package/dist/views/BondModal/helper.d.ts +10 -0
  431. package/dist/views/BondModal/helper.js +54 -0
  432. package/dist/views/BondModal/index.d.ts +4 -0
  433. package/dist/views/BondModal/index.js +18 -0
  434. package/dist/views/Bonds/Bonds.d.ts +16 -0
  435. package/dist/views/Bonds/Bonds.js +173 -0
  436. package/dist/views/YourBonds/YourBonds.d.ts +14 -0
  437. package/dist/views/YourBonds/YourBonds.js +275 -0
  438. package/dist/views/YourBonds/fetchBillsUser.d.ts +17 -0
  439. package/dist/views/YourBonds/fetchBillsUser.js +235 -0
  440. package/dist/views/YourBonds/getBillNftData.d.ts +9 -0
  441. package/dist/views/YourBonds/getBillNftData.js +109 -0
  442. package/dist/views/YourBondsModal/YourBondsModal.d.ts +9 -0
  443. package/dist/views/YourBondsModal/YourBondsModal.js +172 -0
  444. package/dist/views/YourBondsModal/styles.d.ts +2 -0
  445. package/dist/views/YourBondsModal/styles.js +12 -0
  446. package/package.json +37 -12
  447. package/dist/components/BondModal/BondModal.d.ts +0 -10
  448. package/dist/components/BondModal/BondModal.js +0 -30
  449. package/dist/components/BondSingle/BondSingle.d.ts +0 -5
  450. package/dist/components/BondSingle/BondSingle.js +0 -45
  451. package/dist/components/Bonds/Bonds.d.ts +0 -13
  452. package/dist/components/Bonds/Bonds.js +0 -152
  453. package/dist/components/Bonds/styles.d.ts +0 -4
  454. package/dist/components/Bonds/styles.js +0 -75
  455. package/dist/components/uikit/Button/IconButton.js +0 -33
  456. package/dist/components/uikit/Checkbox/index.d.ts +0 -4
  457. package/dist/components/uikit/Checkbox/index.js +0 -46
  458. package/dist/components/uikit/Dropdown/Dropdown.d.ts +0 -4
  459. package/dist/components/uikit/Dropdown/Dropdown.js +0 -58
  460. package/dist/components/uikit/Dropdown/DropdownItem.d.ts +0 -4
  461. package/dist/components/uikit/Dropdown/DropdownItem.js +0 -47
  462. package/dist/components/uikit/Dropdown/index.d.ts +0 -3
  463. package/dist/components/uikit/Dropdown/index.js +0 -2
  464. package/dist/components/uikit/Dropdown/styles.js +0 -16
  465. package/dist/components/uikit/Dropdown/types.d.ts +0 -58
  466. package/dist/components/uikit/Dropdown/types.js +0 -22
  467. package/dist/components/uikit/Flex/index.d.ts +0 -3
  468. package/dist/components/uikit/Input/Input.d.ts +0 -4
  469. package/dist/components/uikit/Input/Input.js +0 -72
  470. package/dist/components/uikit/Input/NumericInput.d.ts +0 -10
  471. package/dist/components/uikit/Input/StyledInput.js +0 -37
  472. package/dist/components/uikit/Link/index.d.ts +0 -9
  473. package/dist/components/uikit/Link/index.js +0 -29
  474. package/dist/components/uikit/Modal/ModalFooter.js +0 -32
  475. package/dist/components/uikit/Modal/ModalHeader.js +0 -31
  476. package/dist/components/uikit/Modal/index.js +0 -55
  477. package/dist/components/uikit/Select/Select.js +0 -61
  478. package/dist/components/uikit/Select/SelectItem.d.ts +0 -4
  479. package/dist/components/uikit/Select/SelectItem.js +0 -40
  480. package/dist/components/uikit/Skeleton/styles.d.ts +0 -5
  481. package/dist/components/uikit/Spinner/apeSpinner.json +0 -2764
  482. package/dist/components/uikit/Spinner/index.d.ts +0 -5
  483. package/dist/components/uikit/Spinner/index.js +0 -20
  484. package/dist/components/uikit/Svg/Icons/AbondFullLogo.js +0 -27
  485. package/dist/components/uikit/Svg/Icons/AbondSmallLogo.js +0 -17
  486. package/dist/components/uikit/Svg/Icons/AccountMonkey.js +0 -27
  487. package/dist/components/uikit/Svg/Icons/ApebondLogo.js +0 -28
  488. package/dist/components/uikit/Svg/Icons/ApeswapSmallLogo.js +0 -17
  489. package/dist/components/uikit/Svg/Icons/Arrow.js +0 -27
  490. package/dist/components/uikit/Svg/Icons/Audit.js +0 -27
  491. package/dist/components/uikit/Svg/Icons/BananaIcon.js +0 -17
  492. package/dist/components/uikit/Svg/Icons/BillsM1.js +0 -27
  493. package/dist/components/uikit/Svg/Icons/BillsM2.js +0 -28
  494. package/dist/components/uikit/Svg/Icons/BillsM3.js +0 -27
  495. package/dist/components/uikit/Svg/Icons/Bridge.js +0 -27
  496. package/dist/components/uikit/Svg/Icons/Bubble.js +0 -27
  497. package/dist/components/uikit/Svg/Icons/Calculator.js +0 -27
  498. package/dist/components/uikit/Svg/Icons/Calendar.js +0 -16
  499. package/dist/components/uikit/Svg/Icons/Cancelled.js +0 -27
  500. package/dist/components/uikit/Svg/Icons/Card.js +0 -27
  501. package/dist/components/uikit/Svg/Icons/Caret.js +0 -27
  502. package/dist/components/uikit/Svg/Icons/Chain.js +0 -20
  503. package/dist/components/uikit/Svg/Icons/Chart.js +0 -27
  504. package/dist/components/uikit/Svg/Icons/Chat.js +0 -27
  505. package/dist/components/uikit/Svg/Icons/Close.js +0 -20
  506. package/dist/components/uikit/Svg/Icons/Cog.d.ts +0 -4
  507. package/dist/components/uikit/Svg/Icons/Cog.js +0 -27
  508. package/dist/components/uikit/Svg/Icons/Collapse.js +0 -27
  509. package/dist/components/uikit/Svg/Icons/Copy.js +0 -27
  510. package/dist/components/uikit/Svg/Icons/Discord.js +0 -27
  511. package/dist/components/uikit/Svg/Icons/DiscordNew.js +0 -27
  512. package/dist/components/uikit/Svg/Icons/Docs.js +0 -27
  513. package/dist/components/uikit/Svg/Icons/DocsV2.js +0 -27
  514. package/dist/components/uikit/Svg/Icons/Ellipse.js +0 -27
  515. package/dist/components/uikit/Svg/Icons/Error.js +0 -27
  516. package/dist/components/uikit/Svg/Icons/Expand.js +0 -27
  517. package/dist/components/uikit/Svg/Icons/Explorer.js +0 -27
  518. package/dist/components/uikit/Svg/Icons/External.js +0 -27
  519. package/dist/components/uikit/Svg/Icons/Farm.js +0 -27
  520. package/dist/components/uikit/Svg/Icons/Fav.js +0 -27
  521. package/dist/components/uikit/Svg/Icons/FilledURL.js +0 -27
  522. package/dist/components/uikit/Svg/Icons/Fire.js +0 -17
  523. package/dist/components/uikit/Svg/Icons/Frame.js +0 -27
  524. package/dist/components/uikit/Svg/Icons/FullLogo.js +0 -17
  525. package/dist/components/uikit/Svg/Icons/Gnana.js +0 -27
  526. package/dist/components/uikit/Svg/Icons/GreenShield.d.ts +0 -4
  527. package/dist/components/uikit/Svg/Icons/GreenShield.js +0 -17
  528. package/dist/components/uikit/Svg/Icons/Hamburger.js +0 -27
  529. package/dist/components/uikit/Svg/Icons/HamburgerClosed.js +0 -27
  530. package/dist/components/uikit/Svg/Icons/Home.js +0 -27
  531. package/dist/components/uikit/Svg/Icons/Info.js +0 -27
  532. package/dist/components/uikit/Svg/Icons/InfoSolid.js +0 -27
  533. package/dist/components/uikit/Svg/Icons/Insight.js +0 -27
  534. package/dist/components/uikit/Svg/Icons/Instagram.js +0 -27
  535. package/dist/components/uikit/Svg/Icons/Island.js +0 -27
  536. package/dist/components/uikit/Svg/Icons/LanguageIcon.js +0 -27
  537. package/dist/components/uikit/Svg/Icons/LineChart.js +0 -17
  538. package/dist/components/uikit/Svg/Icons/LiquidityIcon.js +0 -27
  539. package/dist/components/uikit/Svg/Icons/Logout.js +0 -27
  540. package/dist/components/uikit/Svg/Icons/Medium.js +0 -27
  541. package/dist/components/uikit/Svg/Icons/MenuSettings.js +0 -27
  542. package/dist/components/uikit/Svg/Icons/Message.js +0 -20
  543. package/dist/components/uikit/Svg/Icons/Migrate.js +0 -27
  544. package/dist/components/uikit/Svg/Icons/Moon.js +0 -27
  545. package/dist/components/uikit/Svg/Icons/More.js +0 -27
  546. package/dist/components/uikit/Svg/Icons/NFA.js +0 -27
  547. package/dist/components/uikit/Svg/Icons/NavCaret.js +0 -27
  548. package/dist/components/uikit/Svg/Icons/PlaceholderMonkey.d.ts +0 -4
  549. package/dist/components/uikit/Svg/Icons/PlaceholderMonkey.js +0 -27
  550. package/dist/components/uikit/Svg/Icons/Play.js +0 -16
  551. package/dist/components/uikit/Svg/Icons/Pool.js +0 -27
  552. package/dist/components/uikit/Svg/Icons/Positions.js +0 -27
  553. package/dist/components/uikit/Svg/Icons/ProfileDark.js +0 -17
  554. package/dist/components/uikit/Svg/Icons/ProfileLight.js +0 -17
  555. package/dist/components/uikit/Svg/Icons/Question.js +0 -17
  556. package/dist/components/uikit/Svg/Icons/QuestionCircle.js +0 -27
  557. package/dist/components/uikit/Svg/Icons/QuestionFill.js +0 -27
  558. package/dist/components/uikit/Svg/Icons/Quiz.js +0 -27
  559. package/dist/components/uikit/Svg/Icons/Receipt.js +0 -27
  560. package/dist/components/uikit/Svg/Icons/Reddit.js +0 -27
  561. package/dist/components/uikit/Svg/Icons/Rocket.js +0 -27
  562. package/dist/components/uikit/Svg/Icons/ScrollTop.js +0 -27
  563. package/dist/components/uikit/Svg/Icons/Search.js +0 -27
  564. package/dist/components/uikit/Svg/Icons/Send.js +0 -27
  565. package/dist/components/uikit/Svg/Icons/Settings.js +0 -27
  566. package/dist/components/uikit/Svg/Icons/Share.js +0 -27
  567. package/dist/components/uikit/Svg/Icons/Success.js +0 -27
  568. package/dist/components/uikit/Svg/Icons/SuccessOutline.js +0 -27
  569. package/dist/components/uikit/Svg/Icons/SwapArrows.js +0 -27
  570. package/dist/components/uikit/Svg/Icons/SwitchArrows.d.ts +0 -4
  571. package/dist/components/uikit/Svg/Icons/SwitchArrows.js +0 -27
  572. package/dist/components/uikit/Svg/Icons/Tag.js +0 -16
  573. package/dist/components/uikit/Svg/Icons/Telegram.js +0 -27
  574. package/dist/components/uikit/Svg/Icons/TelegramNew.js +0 -27
  575. package/dist/components/uikit/Svg/Icons/TextLogo.js +0 -17
  576. package/dist/components/uikit/Svg/Icons/TickShield.js +0 -27
  577. package/dist/components/uikit/Svg/Icons/Trade.js +0 -27
  578. package/dist/components/uikit/Svg/Icons/Trash.js +0 -27
  579. package/dist/components/uikit/Svg/Icons/Twitter.js +0 -27
  580. package/dist/components/uikit/Svg/Icons/URL.js +0 -27
  581. package/dist/components/uikit/Svg/Icons/Vaults.js +0 -27
  582. package/dist/components/uikit/Svg/Icons/Verified.js +0 -17
  583. package/dist/components/uikit/Svg/Icons/Wallet.js +0 -27
  584. package/dist/components/uikit/Svg/Icons/Warning.js +0 -27
  585. package/dist/components/uikit/Svg/Icons/Watch.js +0 -27
  586. package/dist/components/uikit/Svg/Icons/Website.js +0 -27
  587. package/dist/components/uikit/Svg/Icons/WebsiteNew.js +0 -27
  588. package/dist/components/uikit/Svg/Icons/WhitepaperNew.js +0 -27
  589. package/dist/components/uikit/Svg/Icons/XNew.js +0 -27
  590. package/dist/components/uikit/Svg/Icons/YellowQuestionMark.js +0 -17
  591. package/dist/components/uikit/Svg/Icons/ZapArrow.js +0 -27
  592. package/dist/components/uikit/Svg/Icons/ZapIcon.js +0 -27
  593. package/dist/components/uikit/Svg/Icons/index.d.ts +0 -107
  594. package/dist/components/uikit/Svg/Icons/index.js +0 -109
  595. package/dist/components/uikit/Svg/Icons/polygonNew.js +0 -27
  596. package/dist/components/uikit/Svg/index.d.ts +0 -4
  597. package/dist/components/uikit/Svg/index.js +0 -341
  598. package/dist/components/uikit/Svg/styles.d.ts +0 -4
  599. package/dist/components/uikit/Svg/tokens/ABOND.js +0 -17
  600. package/dist/components/uikit/Svg/tokens/ARBITRUM.js +0 -17
  601. package/dist/components/uikit/Svg/tokens/AVAX.js +0 -17
  602. package/dist/components/uikit/Svg/tokens/BANANA.js +0 -17
  603. package/dist/components/uikit/Svg/tokens/BASE.js +0 -17
  604. package/dist/components/uikit/Svg/tokens/BNB.js +0 -17
  605. package/dist/components/uikit/Svg/tokens/BSC.js +0 -17
  606. package/dist/components/uikit/Svg/tokens/CELO.js +0 -16
  607. package/dist/components/uikit/Svg/tokens/CRONOS.js +0 -17
  608. package/dist/components/uikit/Svg/tokens/ETH.js +0 -17
  609. package/dist/components/uikit/Svg/tokens/FANTOM.js +0 -17
  610. package/dist/components/uikit/Svg/tokens/GNANA.js +0 -17
  611. package/dist/components/uikit/Svg/tokens/GNOSIS.js +0 -17
  612. package/dist/components/uikit/Svg/tokens/INEVM.js +0 -17
  613. package/dist/components/uikit/Svg/tokens/IOTA.js +0 -17
  614. package/dist/components/uikit/Svg/tokens/LIGHTLINK.js +0 -17
  615. package/dist/components/uikit/Svg/tokens/LINEA.js +0 -17
  616. package/dist/components/uikit/Svg/tokens/OKX.js +0 -16
  617. package/dist/components/uikit/Svg/tokens/OPTIMISM.js +0 -19
  618. package/dist/components/uikit/Svg/tokens/POLYGON.js +0 -17
  619. package/dist/components/uikit/Svg/tokens/POLYGONZK.js +0 -17
  620. package/dist/components/uikit/Svg/tokens/TLOS.js +0 -17
  621. package/dist/components/uikit/Svg/types.d.ts +0 -168
  622. package/dist/components/uikit/Svg/types.js +0 -162
  623. package/dist/components/uikit/Svg/walletIcons/BinanceChain.d.ts +0 -4
  624. package/dist/components/uikit/Svg/walletIcons/BinanceChain.js +0 -17
  625. package/dist/components/uikit/Svg/walletIcons/Bitkeep.d.ts +0 -4
  626. package/dist/components/uikit/Svg/walletIcons/Bitkeep.js +0 -17
  627. package/dist/components/uikit/Svg/walletIcons/Brave.d.ts +0 -4
  628. package/dist/components/uikit/Svg/walletIcons/Brave.js +0 -17
  629. package/dist/components/uikit/Svg/walletIcons/Coinbase.d.ts +0 -4
  630. package/dist/components/uikit/Svg/walletIcons/Coinbase.js +0 -17
  631. package/dist/components/uikit/Svg/walletIcons/MadWallet.js +0 -17
  632. package/dist/components/uikit/Svg/walletIcons/MathWallet.d.ts +0 -4
  633. package/dist/components/uikit/Svg/walletIcons/MathWallet.js +0 -17
  634. package/dist/components/uikit/Svg/walletIcons/Metamask.d.ts +0 -4
  635. package/dist/components/uikit/Svg/walletIcons/Metamask.js +0 -17
  636. package/dist/components/uikit/Svg/walletIcons/Nabox.d.ts +0 -4
  637. package/dist/components/uikit/Svg/walletIcons/Nabox.js +0 -17
  638. package/dist/components/uikit/Svg/walletIcons/OKX.d.ts +0 -4
  639. package/dist/components/uikit/Svg/walletIcons/OKX.js +0 -17
  640. package/dist/components/uikit/Svg/walletIcons/OntoWallet.d.ts +0 -4
  641. package/dist/components/uikit/Svg/walletIcons/OntoWallet.js +0 -17
  642. package/dist/components/uikit/Svg/walletIcons/SafePalWallet.d.ts +0 -4
  643. package/dist/components/uikit/Svg/walletIcons/SafePalWallet.js +0 -17
  644. package/dist/components/uikit/Svg/walletIcons/SocialLogin.d.ts +0 -4
  645. package/dist/components/uikit/Svg/walletIcons/SocialLogin.js +0 -17
  646. package/dist/components/uikit/Svg/walletIcons/TokenPocket.d.ts +0 -4
  647. package/dist/components/uikit/Svg/walletIcons/TokenPocket.js +0 -17
  648. package/dist/components/uikit/Svg/walletIcons/TorusWallet.d.ts +0 -4
  649. package/dist/components/uikit/Svg/walletIcons/TorusWallet.js +0 -17
  650. package/dist/components/uikit/Svg/walletIcons/TrustWallet.d.ts +0 -4
  651. package/dist/components/uikit/Svg/walletIcons/TrustWallet.js +0 -17
  652. package/dist/components/uikit/Svg/walletIcons/Unstoppable.js +0 -17
  653. package/dist/components/uikit/Svg/walletIcons/WalletConnect.d.ts +0 -4
  654. package/dist/components/uikit/Svg/walletIcons/WalletConnect.js +0 -17
  655. package/dist/components/uikit/Svg/walletIcons/WalletImage.js +0 -16
  656. package/dist/components/uikit/SwiperDots/index.d.ts +0 -6
  657. package/dist/components/uikit/SwiperDots/index.js +0 -14
  658. package/dist/components/uikit/Tabs/Tab.d.ts +0 -4
  659. package/dist/components/uikit/Tabs/Tab.js +0 -34
  660. package/dist/components/uikit/Tabs/TabPanel.d.ts +0 -4
  661. package/dist/components/uikit/Tabs/TabPanel.js +0 -29
  662. package/dist/components/uikit/Tabs/Tabs.d.ts +0 -4
  663. package/dist/components/uikit/Tabs/Tabs.js +0 -67
  664. package/dist/components/uikit/Tabs/index.d.ts +0 -2
  665. package/dist/components/uikit/Tabs/index.js +0 -2
  666. package/dist/components/uikit/Tabs/styles.d.ts +0 -3
  667. package/dist/components/uikit/Tabs/styles.js +0 -40
  668. package/dist/components/uikit/Tabs/types.d.ts +0 -54
  669. package/dist/components/uikit/Tabs/types.js +0 -22
  670. package/dist/components/uikit/Tag/ListTag.js +0 -20
  671. package/dist/components/uikit/Tag/styles.d.ts +0 -5
  672. package/dist/components/uikit/Tag/types.js +0 -34
  673. package/dist/components/uikit/Text/index.js +0 -35
  674. package/dist/components/uikit/Toggle/index.d.ts +0 -4
  675. package/dist/components/uikit/Toggle/index.js +0 -63
  676. package/dist/components/uikit/Toggle/styles.d.ts +0 -3
  677. package/dist/components/uikit/Toggle/styles.js +0 -39
  678. package/dist/components/uikit/Toggle/types.d.ts +0 -31
  679. package/dist/components/uikit/Toggle/types.js +0 -17
  680. package/dist/components/uikit/Tooltip/index.js +0 -66
  681. package/dist/components/uikit/Tooltip/styles.js +0 -60
  682. package/dist/components/uikit/TutorialModal/index.d.ts +0 -4
  683. package/dist/components/uikit/TutorialModal/index.js +0 -52
  684. package/dist/components/uikit/TutorialModal/styles.d.ts +0 -8
  685. package/dist/components/uikit/TutorialModal/styles.js +0 -86
  686. package/dist/components/uikit/TutorialModal/types.d.ts +0 -22
  687. package/dist/components/uikit/TutorialModal/useTutorialModal.d.ts +0 -6
  688. package/dist/components/uikit/TutorialModal/useTutorialModal.js +0 -20
  689. package/dist/components/uikit/index.d.ts +0 -18
  690. package/dist/components/uikit/index.js +0 -20
  691. package/dist/scss/bondmodal.scss +0 -92
  692. package/dist/scss/bonds.scss +0 -70
  693. package/dist/scss/bondsingle.scss +0 -70
  694. /package/dist/components/{uikit/Modal → MenuSelect}/types.js +0 -0
  695. /package/dist/components/{uikit → uikit-sdk}/Button/Button.d.ts +0 -0
  696. /package/dist/components/{uikit → uikit-sdk}/Button/Button.js +0 -0
  697. /package/dist/components/{uikit → uikit-sdk}/Button/IconButton.d.ts +0 -0
  698. /package/dist/components/{uikit → uikit-sdk}/Button/index.d.ts +0 -0
  699. /package/dist/components/{uikit → uikit-sdk}/Button/index.js +0 -0
  700. /package/dist/components/{uikit → uikit-sdk}/Button/styles.d.ts +0 -0
  701. /package/dist/components/{uikit → uikit-sdk}/Button/styles.js +0 -0
  702. /package/dist/components/{uikit → uikit-sdk}/Button/types.d.ts +0 -0
  703. /package/dist/components/{uikit → uikit-sdk}/Button/types.js +0 -0
  704. /package/dist/components/{uikit → uikit-sdk}/Checkbox/types.d.ts +0 -0
  705. /package/dist/components/{uikit → uikit-sdk}/Checkbox/types.js +0 -0
  706. /package/dist/components/{uikit → uikit-sdk}/Flex/index.js +0 -0
  707. /package/dist/components/{uikit → uikit-sdk}/Input/NumericInput.js +0 -0
  708. /package/dist/components/{uikit → uikit-sdk}/Input/StyledInput.d.ts +0 -0
  709. /package/dist/components/{uikit → uikit-sdk}/Input/index.d.ts +0 -0
  710. /package/dist/components/{uikit → uikit-sdk}/Input/index.js +0 -0
  711. /package/dist/components/{uikit → uikit-sdk}/Modal/ModalFooter.d.ts +0 -0
  712. /package/dist/components/{uikit → uikit-sdk}/Modal/ModalHeader.d.ts +0 -0
  713. /package/dist/components/{uikit → uikit-sdk}/Modal/index.d.ts +0 -0
  714. /package/dist/components/{uikit → uikit-sdk}/Modal/styles.d.ts +0 -0
  715. /package/dist/components/{uikit → uikit-sdk}/Modal/styles.js +0 -0
  716. /package/dist/components/{uikit → uikit-sdk}/Modal/types.d.ts +0 -0
  717. /package/dist/components/{uikit/TutorialModal → uikit-sdk/Modal}/types.js +0 -0
  718. /package/dist/components/{uikit → uikit-sdk}/Select/Select.d.ts +0 -0
  719. /package/dist/components/{uikit → uikit-sdk}/Select/index.d.ts +0 -0
  720. /package/dist/components/{uikit → uikit-sdk}/Select/index.js +0 -0
  721. /package/dist/components/{uikit → uikit-sdk}/Select/styles.d.ts +0 -0
  722. /package/dist/components/{uikit → uikit-sdk}/Select/styles.js +0 -0
  723. /package/dist/components/{uikit → uikit-sdk}/Select/types.d.ts +0 -0
  724. /package/dist/components/{uikit → uikit-sdk}/Select/types.js +0 -0
  725. /package/dist/components/{uikit → uikit-sdk}/Skeleton/index.d.ts +0 -0
  726. /package/dist/components/{uikit → uikit-sdk}/Skeleton/index.js +0 -0
  727. /package/dist/components/{uikit → uikit-sdk}/Skeleton/styles.js +0 -0
  728. /package/dist/components/{uikit → uikit-sdk}/Skeleton/types.d.ts +0 -0
  729. /package/dist/components/{uikit → uikit-sdk}/Skeleton/types.js +0 -0
  730. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AbondFullLogo.d.ts +0 -0
  731. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AbondSmallLogo.d.ts +0 -0
  732. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AccountMonkey.d.ts +0 -0
  733. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ApebondLogo.d.ts +0 -0
  734. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ApeswapSmallLogo.d.ts +0 -0
  735. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Arrow.d.ts +0 -0
  736. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Audit.d.ts +0 -0
  737. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BananaIcon.d.ts +0 -0
  738. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM1.d.ts +0 -0
  739. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM2.d.ts +0 -0
  740. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM3.d.ts +0 -0
  741. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Bridge.d.ts +0 -0
  742. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Bubble.d.ts +0 -0
  743. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Calculator.d.ts +0 -0
  744. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Calendar.d.ts +0 -0
  745. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Cancelled.d.ts +0 -0
  746. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Card.d.ts +0 -0
  747. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Caret.d.ts +0 -0
  748. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chain.d.ts +0 -0
  749. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chart.d.ts +0 -0
  750. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chat.d.ts +0 -0
  751. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Close.d.ts +0 -0
  752. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Collapse.d.ts +0 -0
  753. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Copy.d.ts +0 -0
  754. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Discord.d.ts +0 -0
  755. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/DiscordNew.d.ts +0 -0
  756. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Docs.d.ts +0 -0
  757. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/DocsV2.d.ts +0 -0
  758. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Ellipse.d.ts +0 -0
  759. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Error.d.ts +0 -0
  760. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Expand.d.ts +0 -0
  761. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Explorer.d.ts +0 -0
  762. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/External.d.ts +0 -0
  763. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Farm.d.ts +0 -0
  764. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Fav.d.ts +0 -0
  765. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/FilledURL.d.ts +0 -0
  766. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Fire.d.ts +0 -0
  767. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Frame.d.ts +0 -0
  768. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/FullLogo.d.ts +0 -0
  769. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Gnana.d.ts +0 -0
  770. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Hamburger.d.ts +0 -0
  771. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/HamburgerClosed.d.ts +0 -0
  772. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Home.d.ts +0 -0
  773. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Info.d.ts +0 -0
  774. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/InfoSolid.d.ts +0 -0
  775. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Insight.d.ts +0 -0
  776. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Instagram.d.ts +0 -0
  777. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Island.d.ts +0 -0
  778. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Language.d.ts +0 -0
  779. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Language.js +0 -0
  780. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LanguageIcon.d.ts +0 -0
  781. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LineChart.d.ts +0 -0
  782. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LiquidityIcon.d.ts +0 -0
  783. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Logout.d.ts +0 -0
  784. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Medium.d.ts +0 -0
  785. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/MenuSettings.d.ts +0 -0
  786. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Message.d.ts +0 -0
  787. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Migrate.d.ts +0 -0
  788. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Moon.d.ts +0 -0
  789. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/More.d.ts +0 -0
  790. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/NFA.d.ts +0 -0
  791. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/NavCaret.d.ts +0 -0
  792. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Play.d.ts +0 -0
  793. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Pool.d.ts +0 -0
  794. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Positions.d.ts +0 -0
  795. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileDark.d.ts +0 -0
  796. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileIcon.d.ts +0 -0
  797. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileIcon.js +0 -0
  798. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileLight.d.ts +0 -0
  799. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Question.d.ts +0 -0
  800. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/QuestionCircle.d.ts +0 -0
  801. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/QuestionFill.d.ts +0 -0
  802. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Quiz.d.ts +0 -0
  803. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Receipt.d.ts +0 -0
  804. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Reddit.d.ts +0 -0
  805. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Rocket.d.ts +0 -0
  806. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ScrollTop.d.ts +0 -0
  807. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Search.d.ts +0 -0
  808. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Send.d.ts +0 -0
  809. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Settings.d.ts +0 -0
  810. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Share.d.ts +0 -0
  811. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Success.d.ts +0 -0
  812. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/SuccessOutline.d.ts +0 -0
  813. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/SwapArrows.d.ts +0 -0
  814. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Tag.d.ts +0 -0
  815. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Telegram.d.ts +0 -0
  816. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TelegramNew.d.ts +0 -0
  817. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TextLogo.d.ts +0 -0
  818. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TickShield.d.ts +0 -0
  819. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Trade.d.ts +0 -0
  820. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Trash.d.ts +0 -0
  821. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Twitter.d.ts +0 -0
  822. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/URL.d.ts +0 -0
  823. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Vaults.d.ts +0 -0
  824. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Verified.d.ts +0 -0
  825. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Wallet.d.ts +0 -0
  826. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Warning.d.ts +0 -0
  827. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Watch.d.ts +0 -0
  828. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Website.d.ts +0 -0
  829. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/WebsiteNew.d.ts +0 -0
  830. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/WhitepaperNew.d.ts +0 -0
  831. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/XNew.d.ts +0 -0
  832. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/YellowQuestionMark.d.ts +0 -0
  833. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ZapArrow.d.ts +0 -0
  834. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ZapIcon.d.ts +0 -0
  835. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/polygonNew.d.ts +0 -0
  836. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/types.d.ts +0 -0
  837. /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/types.js +0 -0
  838. /package/dist/components/{uikit/Dropdown → uikit-sdk/Svg}/styles.d.ts +0 -0
  839. /package/dist/components/{uikit → uikit-sdk}/Svg/styles.js +0 -0
  840. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ABOND.d.ts +0 -0
  841. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ARBITRUM.d.ts +0 -0
  842. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/AVAX.d.ts +0 -0
  843. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BANANA.d.ts +0 -0
  844. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BASE.d.ts +0 -0
  845. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BNB.d.ts +0 -0
  846. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BSC.d.ts +0 -0
  847. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/CELO.d.ts +0 -0
  848. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/CRONOS.d.ts +0 -0
  849. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ETH.d.ts +0 -0
  850. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/FANTOM.d.ts +0 -0
  851. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/GNANA.d.ts +0 -0
  852. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/GNOSIS.d.ts +0 -0
  853. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/INEVM.d.ts +0 -0
  854. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/IOTA.d.ts +0 -0
  855. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/LIGHTLINK.d.ts +0 -0
  856. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/LINEA.d.ts +0 -0
  857. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/OKX.d.ts +0 -0
  858. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/OPTIMISM.d.ts +0 -0
  859. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/POLYGON.d.ts +0 -0
  860. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/POLYGONZK.d.ts +0 -0
  861. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/TLOS.d.ts +0 -0
  862. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/index.d.ts +0 -0
  863. /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/index.js +0 -0
  864. /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/MadWallet.d.ts +0 -0
  865. /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Unstoppable.d.ts +0 -0
  866. /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/WalletImage.d.ts +0 -0
  867. /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/index.d.ts +0 -0
  868. /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/index.js +0 -0
  869. /package/dist/components/{uikit → uikit-sdk}/Tag/ListTag.d.ts +0 -0
  870. /package/dist/components/{uikit → uikit-sdk}/Tag/Tag.d.ts +0 -0
  871. /package/dist/components/{uikit → uikit-sdk}/Tag/Tag.js +0 -0
  872. /package/dist/components/{uikit → uikit-sdk}/Tag/index.d.ts +0 -0
  873. /package/dist/components/{uikit → uikit-sdk}/Tag/index.js +0 -0
  874. /package/dist/components/{uikit → uikit-sdk}/Tag/styles.js +0 -0
  875. /package/dist/components/{uikit → uikit-sdk}/Tag/types.d.ts +0 -0
  876. /package/dist/components/{uikit → uikit-sdk}/Text/index.d.ts +0 -0
  877. /package/dist/components/{uikit → uikit-sdk}/Text/types.d.ts +0 -0
  878. /package/dist/components/{uikit → uikit-sdk}/Text/types.js +0 -0
  879. /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/index.d.ts +0 -0
  880. /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/styles.d.ts +0 -0
  881. /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/types.d.ts +0 -0
  882. /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/types.js +0 -0
@@ -0,0 +1,127 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { getAddress } from '@ethersproject/address';
38
+ import { AddressZero } from '@ethersproject/constants';
39
+ import { Contract } from '@ethersproject/contracts';
40
+ import { BLOCK_EXPLORER, ChainId } from '../config/constants/chains';
41
+ // returns the checksummed address if the address is valid, otherwise returns false
42
+ export function isAddress(value) {
43
+ try {
44
+ // Alphabetical letters must be made lowercase for getAddress to work.
45
+ // See documentation here: https://docs.ethers.io/v5/api/utils/address/
46
+ return getAddress(value.toLowerCase());
47
+ }
48
+ catch (_a) {
49
+ return false;
50
+ }
51
+ }
52
+ // account is not optional
53
+ function getSigner(provider, account) {
54
+ return provider.getSigner(account).connectUnchecked();
55
+ }
56
+ // account is optional
57
+ function getProviderOrSigner(provider, account) {
58
+ return account ? getSigner(provider, account) : provider;
59
+ }
60
+ // account is optional
61
+ export function getContract(address, ABI, provider, account) {
62
+ if (!isAddress(address) || address === AddressZero) {
63
+ throw Error("Invalid 'address' parameter '".concat(address, "'."));
64
+ }
65
+ return new Contract(address, ABI, getProviderOrSigner(provider, account));
66
+ }
67
+ export function isSupportedChain(chainId) {
68
+ return !!chainId && !!ChainId[chainId];
69
+ }
70
+ export function getEtherscanLink(data, type, chainId) {
71
+ switch (type) {
72
+ case 'transaction': {
73
+ return "".concat(BLOCK_EXPLORER[chainId], "/tx/").concat(data);
74
+ }
75
+ case 'token': {
76
+ return "".concat(BLOCK_EXPLORER[chainId], "/token/").concat(data);
77
+ }
78
+ case 'block': {
79
+ return "".concat(BLOCK_EXPLORER[chainId], "/block/").concat(data);
80
+ }
81
+ case 'countdown': {
82
+ return "".concat(BLOCK_EXPLORER[chainId], "/block/countdown/").concat(data);
83
+ }
84
+ default: {
85
+ return "".concat(BLOCK_EXPLORER[chainId], "/address/").concat(data);
86
+ }
87
+ }
88
+ }
89
+ /**
90
+ * Prompt the user to add a custom token to metamask
91
+ * @param tokenAddress
92
+ * @param tokenSymbol
93
+ * @param tokenDecimals
94
+ * @param tokenImage
95
+ * @returns {boolean} true if the token has been added, false otherwise
96
+ */
97
+ export var registerToken = function (tokenAddress, tokenSymbol, tokenDecimals, tokenImage) { return __awaiter(void 0, void 0, void 0, function () {
98
+ var tokenAdded, _a;
99
+ var _b;
100
+ return __generator(this, function (_c) {
101
+ switch (_c.label) {
102
+ case 0:
103
+ if (!((_b = window === null || window === void 0 ? void 0 : window.ethereum) === null || _b === void 0 ? void 0 : _b.request)) return [3 /*break*/, 2];
104
+ return [4 /*yield*/, window.ethereum.request({
105
+ method: 'wallet_watchAsset',
106
+ params: {
107
+ type: 'ERC20',
108
+ options: {
109
+ address: tokenAddress,
110
+ symbol: tokenSymbol,
111
+ decimals: tokenDecimals,
112
+ image: tokenImage,
113
+ },
114
+ },
115
+ })];
116
+ case 1:
117
+ _a = _c.sent();
118
+ return [3 /*break*/, 3];
119
+ case 2:
120
+ _a = null;
121
+ _c.label = 3;
122
+ case 3:
123
+ tokenAdded = _a;
124
+ return [2 /*return*/, tokenAdded];
125
+ }
126
+ });
127
+ }); };
@@ -0,0 +1,3 @@
1
+ export declare const getLocalStorage: (key: string) => any;
2
+ export declare const setLocalStorage: (key: string, value: any) => void;
3
+ export declare const removeLocalStorage: (key: string) => void;
@@ -0,0 +1,47 @@
1
+ export var getLocalStorage = function (key) {
2
+ if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.self) === (window === null || window === void 0 ? void 0 : window.top)) {
3
+ // Not in an iframe, safe to access localStorage
4
+ try {
5
+ var item = localStorage.getItem(key);
6
+ return item ? JSON.parse(item) : null;
7
+ }
8
+ catch (error) {
9
+ console.error('Failed to get value from localStorage:', error);
10
+ return null;
11
+ }
12
+ }
13
+ else {
14
+ // Inside an iframe, don't access localStorage
15
+ return null;
16
+ }
17
+ };
18
+ export var setLocalStorage = function (key, value) {
19
+ if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.self) === (window === null || window === void 0 ? void 0 : window.top)) {
20
+ // Not in an iframe, safe to access localStorage
21
+ try {
22
+ localStorage.setItem(key, JSON.stringify(value));
23
+ }
24
+ catch (error) {
25
+ console.error('Failed to set value in localStorage:', error);
26
+ }
27
+ }
28
+ else {
29
+ // Inside an iframe, don't access localStorage
30
+ console.log('Running inside an iframe');
31
+ }
32
+ };
33
+ export var removeLocalStorage = function (key) {
34
+ if (window.self === window.top) {
35
+ // Not in an iframe, safe to access localStorage
36
+ try {
37
+ localStorage.removeItem(key);
38
+ }
39
+ catch (error) {
40
+ console.error('Failed to remove value from localStorage:', error);
41
+ }
42
+ }
43
+ else {
44
+ // Inside an iframe, don't access localStorage
45
+ console.log('Running inside an iframe');
46
+ }
47
+ };
@@ -0,0 +1,7 @@
1
+ export interface Call {
2
+ address: string;
3
+ name: string;
4
+ params?: any[];
5
+ }
6
+ declare const multicall: (chainId: number, abi: any[], calls: Call[], batch?: boolean, batchSize?: number) => Promise<any>;
7
+ export default multicall;
@@ -0,0 +1,90 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { Interface } from '@ethersproject/abi';
38
+ import multicallV2Abi from '../config/abi/multicallv2.json';
39
+ import { ethers } from 'ethers';
40
+ import { chunk, flatten } from 'lodash';
41
+ import { PUBLIC_RPC_URLS } from '../config/constants/networks';
42
+ import { MULTICALL_V2 } from '../config/constants/addresses';
43
+ // This is the legacy multicall
44
+ // Try to use multicall hooks
45
+ var multicall = function (chainId, abi, calls, batch, batchSize) { return __awaiter(void 0, void 0, void 0, function () {
46
+ var multicallAddress, provider, multi_1, itf_1, calldata, chunkedCalls, chunkedCallNames_1, chunkedData, resolveCall, flattenCalls, returnData, e_1;
47
+ return __generator(this, function (_a) {
48
+ switch (_a.label) {
49
+ case 0:
50
+ _a.trys.push([0, 5, , 6]);
51
+ multicallAddress = MULTICALL_V2[chainId];
52
+ provider = new ethers.providers.JsonRpcProvider(PUBLIC_RPC_URLS[chainId][0], chainId);
53
+ multi_1 = new ethers.Contract(multicallAddress, multicallV2Abi, provider);
54
+ itf_1 = new Interface(abi);
55
+ calldata = calls.map(function (call) { return [call.address.toLowerCase(), itf_1.encodeFunctionData(call.name, call.params)]; });
56
+ if (!batch) return [3 /*break*/, 2];
57
+ chunkedCalls = chunk(calldata, batchSize);
58
+ chunkedCallNames_1 = chunk(calls, batchSize);
59
+ chunkedData = chunkedCalls.flatMap(function (chunkedCallSet, i) { return __awaiter(void 0, void 0, void 0, function () {
60
+ var returnData;
61
+ return __generator(this, function (_a) {
62
+ switch (_a.label) {
63
+ case 0: return [4 /*yield*/, multi_1.aggregate(chunkedCallSet)];
64
+ case 1:
65
+ returnData = (_a.sent()).returnData;
66
+ return [2 /*return*/, returnData.map(function (call, j) { return itf_1.decodeFunctionResult(chunkedCallNames_1[i][j].name, call); })];
67
+ }
68
+ });
69
+ }); });
70
+ return [4 /*yield*/, Promise.all(chunkedData)];
71
+ case 1:
72
+ resolveCall = _a.sent();
73
+ flattenCalls = flatten(resolveCall);
74
+ return [2 /*return*/, flattenCalls];
75
+ case 2: return [4 /*yield*/, multi_1.aggregate(calldata)];
76
+ case 3:
77
+ returnData = (_a.sent()).returnData;
78
+ return [2 /*return*/, returnData.map(function (call, i) { return itf_1.decodeFunctionResult(calls[i].name, call); })];
79
+ case 4: return [3 /*break*/, 6];
80
+ case 5:
81
+ e_1 = _a.sent();
82
+ console.error(e_1);
83
+ console.error(chainId);
84
+ console.error(calls);
85
+ return [3 /*break*/, 6];
86
+ case 6: return [2 /*return*/];
87
+ }
88
+ });
89
+ }); };
90
+ export default multicall;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Rounds a number to precision amount of signifant numbers
3
+ * @param n the number
4
+ * @param precision how many significant numbers to show
5
+ * @returns @number
6
+ */
7
+ export declare const getFirstNonZeroDigits: (numberToParse: number, precision?: number) => string;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Rounds a number to precision amount of signifant numbers
3
+ * @param n the number
4
+ * @param precision how many significant numbers to show
5
+ * @returns @number
6
+ */
7
+ export var getFirstNonZeroDigits = function (numberToParse, precision) {
8
+ if (precision === void 0) { precision = 3; }
9
+ var n = parseFloat(numberToParse.toFixed(18));
10
+ var amountToShow = precision - 1;
11
+ if (n !== 0)
12
+ amountToShow -= Math.floor(Math.log(n) / Math.log(10));
13
+ return n.toFixed(amountToShow < 0 ? 0 : amountToShow);
14
+ };
@@ -0,0 +1,7 @@
1
+ declare function track({ event, chain, data, value, }: {
2
+ event: string;
3
+ chain: number | undefined | string;
4
+ data: any;
5
+ value?: number | string;
6
+ }): void;
7
+ export default track;
@@ -0,0 +1,17 @@
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
+ function track(_a) {
13
+ var _b;
14
+ var event = _a.event, chain = _a.chain, data = _a.data, value = _a.value;
15
+ (_b = window.dataLayer) === null || _b === void 0 ? void 0 : _b.push(__assign({ event: event, value: value, chain: chain }, data));
16
+ }
17
+ export default track;
@@ -0,0 +1,12 @@
1
+ /** @jsxImportSource theme-ui */
2
+ import React from 'react';
3
+ export interface BondModalProps {
4
+ account: string;
5
+ isActive: boolean;
6
+ isOpen: boolean;
7
+ onClose: () => void;
8
+ bondAddress: string | null;
9
+ accountChainId: number;
10
+ }
11
+ declare const BondModal: React.FC<BondModalProps>;
12
+ export default BondModal;
@@ -0,0 +1,276 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ var __generator = (this && this.__generator) || function (thisArg, body) {
11
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
+ function verb(n) { return function (v) { return step([n, v]); }; }
14
+ function step(op) {
15
+ if (f) throw new TypeError("Generator is already executing.");
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
19
+ switch (op[0]) {
20
+ case 0: case 1: t = op; break;
21
+ case 4: _.label++; return { value: op[1], done: false };
22
+ case 5: _.label++; y = op[1]; op = [0]; continue;
23
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
+ default:
25
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
+ if (t[2]) _.ops.pop();
30
+ _.trys.pop(); continue;
31
+ }
32
+ op = body.call(thisArg, _);
33
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
+ }
36
+ };
37
+ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
38
+ /** @jsxImportSource theme-ui */
39
+ import React, { useEffect, useState } from 'react';
40
+ import { Flex, Input } from 'theme-ui';
41
+ import getTimePeriods from '../../utils/getTimePeriods';
42
+ import axios from 'axios';
43
+ import { BigNumber } from 'bignumber.js';
44
+ import { getFirstNonZeroDigits } from '../../utils/roundNumber';
45
+ import { isNumber } from '../../utils/numbers';
46
+ import { TooltipBubble, Button, Svg, ListTag, Modal } from '../../components/uikit-sdk';
47
+ import { TooltipText } from '../../enum/tooltips';
48
+ import { ethers } from 'ethers';
49
+ import convertToTokenValue, { adjustDecimals } from "../../utils/convertToTokenValue";
50
+ import TokenImage from '../../components/uikit-sdk/TokenImage';
51
+ import BOND_ABI from '../../config/abi/bond.json';
52
+ import ERC_20_ABI from '../../config/abi/erc20.json';
53
+ import { NETWORK_ICONS, NETWORK_LABEL } from '../../config/constants/chains';
54
+ import { formatUSDNumber, getPremiumColor, premium, youGet, youGetUSD, youSpend, youSpendUSD } from './helper';
55
+ import { useChainId, useSwitchChain, useWaitForTransactionReceipt, useWriteContract } from "wagmi";
56
+ import { PUBLIC_RPC_URLS } from "../../config/constants/networks";
57
+ import useModal from "../../hooks/useModal";
58
+ var BondModal = function (_a) {
59
+ var account = _a.account, isActive = _a.isActive, isOpen = _a.isOpen, accountChainId = _a.accountChainId, onClose = _a.onClose, bondAddress = _a.bondAddress;
60
+ if (!isOpen)
61
+ return null;
62
+ var chainId = useChainId();
63
+ var _b = useSwitchChain(), chains = _b.chains, switchChain = _b.switchChain;
64
+ var _c = useState([]), bondData = _c[0], setBondData = _c[1];
65
+ var _d = useWriteContract(), hash = _d.data, isPending = _d.isPending, writeContract = _d.writeContract, writeContractAsync = _d.writeContractAsync;
66
+ var _e = useWaitForTransactionReceipt({
67
+ confirmations: 4,
68
+ chainId: chainId !== null && chainId !== void 0 ? chainId : accountChainId,
69
+ hash: hash,
70
+ }), isConfirming = _e.isLoading, isConfirmed = _e.isSuccess;
71
+ var _f = useState(null), approveTx = _f[0], setApproveTx = _f[1];
72
+ var _g = useState(null), toastMessage = _g[0], setToastMessage = _g[1];
73
+ var _h = useState(null), buyTx = _h[0], setBuyTx = _h[1];
74
+ var _j = useState(null), tokenBalance = _j[0], setTokenBalance = _j[1];
75
+ var _k = useState(null), tokenDecimals = _k[0], setTokenDecimals = _k[1];
76
+ var _l = useState(''), inputValue = _l[0], setInputValue = _l[1];
77
+ var handleInputChange = function (event) {
78
+ setInputValue(event.target.value);
79
+ };
80
+ var handleBuy = function () { return __awaiter(void 0, void 0, void 0, function () {
81
+ var billAddress, decimals, maxPrice, rawAmount, amount, tx, data, response, error_1;
82
+ return __generator(this, function (_a) {
83
+ switch (_a.label) {
84
+ case 0:
85
+ billAddress = bondData[0].billAddress;
86
+ decimals = tokenDecimals !== null && tokenDecimals !== void 0 ? tokenDecimals : 18;
87
+ _a.label = 1;
88
+ case 1:
89
+ _a.trys.push([1, 5, , 6]);
90
+ maxPrice = new BigNumber(bondData[0].trueBillPrice).times(102).div(100).toFixed(0);
91
+ rawAmount = adjustDecimals(inputValue);
92
+ amount = new BigNumber(rawAmount).times(new BigNumber(10).pow(decimals !== null && decimals !== void 0 ? decimals : 18)).toString();
93
+ return [4 /*yield*/, writeContractAsync({
94
+ address: billAddress,
95
+ abi: BOND_ABI,
96
+ functionName: 'deposit',
97
+ args: [amount, maxPrice, account],
98
+ })];
99
+ case 2:
100
+ tx = _a.sent();
101
+ if (!tx) return [3 /*break*/, 4];
102
+ setBuyTx(tx);
103
+ data = {
104
+ chainId: chainId,
105
+ transactionHash: tx,
106
+ referenceId: 'cgpt-sdk',
107
+ billContract: billAddress
108
+ };
109
+ return [4 /*yield*/, axios.post("https://api-v2.apeswap.finance/bills/widget", data)];
110
+ case 3:
111
+ response = _a.sent();
112
+ console.log(response);
113
+ _a.label = 4;
114
+ case 4: return [3 /*break*/, 6];
115
+ case 5:
116
+ error_1 = _a.sent();
117
+ console.error('Buy error', error_1);
118
+ return [3 /*break*/, 6];
119
+ case 6: return [2 /*return*/];
120
+ }
121
+ });
122
+ }); };
123
+ //You approve the token, not the contract (this code will have to be updated for zap)
124
+ var handleApprove = function () { return __awaiter(void 0, void 0, void 0, function () {
125
+ var tokenAddress, decimals, amount, tx, error_2;
126
+ return __generator(this, function (_a) {
127
+ switch (_a.label) {
128
+ case 0:
129
+ tokenAddress = bondData[0].lpToken.address[chainId];
130
+ decimals = tokenDecimals !== null && tokenDecimals !== void 0 ? tokenDecimals : 18;
131
+ _a.label = 1;
132
+ case 1:
133
+ _a.trys.push([1, 3, , 4]);
134
+ amount = convertToTokenValue(inputValue, decimals);
135
+ return [4 /*yield*/, writeContractAsync({
136
+ address: tokenAddress,
137
+ abi: ERC_20_ABI,
138
+ functionName: 'approve',
139
+ args: [bondData[0].billAddress, amount]
140
+ })];
141
+ case 2:
142
+ tx = _a.sent();
143
+ if (tx) {
144
+ setApproveTx(tx);
145
+ }
146
+ return [3 /*break*/, 4];
147
+ case 3:
148
+ error_2 = _a.sent();
149
+ console.error('Approval failed:', error_2);
150
+ return [3 /*break*/, 4];
151
+ case 4: return [2 /*return*/];
152
+ }
153
+ });
154
+ }); };
155
+ // Confirmation message
156
+ useEffect(function () {
157
+ if (isConfirmed) {
158
+ setToastMessage("Transaction Complete.");
159
+ setTimeout(function () { return setToastMessage(null); }, 10000);
160
+ }
161
+ }, [approveTx, buyTx, isConfirmed]);
162
+ useEffect(function () {
163
+ if (isActive && account && bondData.length > 0) {
164
+ getTokenBalance(chainId, bondData[0].lpToken.address[chainId], account).then(function (_a) {
165
+ var roundedBalance = _a.roundedBalance, decimals = _a.decimals;
166
+ setTokenBalance(roundedBalance);
167
+ setTokenDecimals(decimals);
168
+ }).catch(function (error) {
169
+ console.error('Error fetching token balance', error);
170
+ });
171
+ }
172
+ }, [isActive, account, bondData]);
173
+ var getTokenBalance = function (chainId, tokenAddress, walletAddress) { return __awaiter(void 0, void 0, void 0, function () {
174
+ var urls, provider, contract, decimals, balance, balanceInEther, roundedBalance, error_3;
175
+ return __generator(this, function (_a) {
176
+ switch (_a.label) {
177
+ case 0:
178
+ _a.trys.push([0, 3, , 4]);
179
+ urls = PUBLIC_RPC_URLS;
180
+ provider = new ethers.providers.JsonRpcProvider(urls[chainId][0]);
181
+ if (!provider) {
182
+ throw new Error("No provider found for chainId: ".concat(chainId));
183
+ }
184
+ contract = new ethers.Contract(tokenAddress, ERC_20_ABI, provider);
185
+ return [4 /*yield*/, contract.decimals()];
186
+ case 1:
187
+ decimals = _a.sent();
188
+ return [4 /*yield*/, contract.balanceOf(walletAddress)];
189
+ case 2:
190
+ balance = _a.sent();
191
+ balanceInEther = ethers.utils.formatUnits(balance, decimals);
192
+ roundedBalance = Number(balanceInEther).toFixed(4).toString();
193
+ return [2 /*return*/, { roundedBalance: roundedBalance, decimals: decimals }];
194
+ case 3:
195
+ error_3 = _a.sent();
196
+ console.error('Error fetching token balance', error_3);
197
+ return [2 /*return*/, { roundedBalance: '0', decimals: 0 }];
198
+ case 4: return [2 /*return*/];
199
+ }
200
+ });
201
+ }); };
202
+ // Fetch data
203
+ useEffect(function () {
204
+ axios.get('https://realtime-api.ape.bond/bonds').then(function (response) {
205
+ var bond = response.data.bonds.filter(function (x) {
206
+ return x.billAddress.toLowerCase() === (bondAddress === null || bondAddress === void 0 ? void 0 : bondAddress.toLowerCase());
207
+ });
208
+ setBondData(bond);
209
+ });
210
+ }, [bondAddress]);
211
+ // Functions for calculations
212
+ var getDiscountColor = function (discount) {
213
+ return discount < 0 ? 'discount-negative' : 'discount-positive';
214
+ };
215
+ var discountEarnTokenPrice = function (bond) {
216
+ var _a, _b;
217
+ var earnTokenPrice = parseFloat((_a = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0');
218
+ return getFirstNonZeroDigits(earnTokenPrice - earnTokenPrice * (((_b = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _b !== void 0 ? _b : 0) / 100));
219
+ };
220
+ var earnTokenPrice = function (bond) {
221
+ var _a;
222
+ return getFirstNonZeroDigits(parseFloat((_a = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0'));
223
+ };
224
+ var vestingTime = function (vestingTerm) { return getTimePeriods(vestingTerm !== null && vestingTerm !== void 0 ? vestingTerm : 0, true); };
225
+ var maxBuy = function (bond) {
226
+ var _a, _b, _c, _d;
227
+ var available = new BigNumber((_a = bond === null || bond === void 0 ? void 0 : bond.tokensRemaining) !== null && _a !== void 0 ? _a : '0');
228
+ var threshold = 5;
229
+ var thresholdToShow = new BigNumber(threshold).div((_b = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _b !== void 0 ? _b : 0);
230
+ var safeAvailable = available.minus(thresholdToShow);
231
+ var singlePurchaseLimit = new BigNumber((_c = bond === null || bond === void 0 ? void 0 : bond.maxPayout) !== null && _c !== void 0 ? _c : 0).div(new BigNumber(10).pow((_d = bond === null || bond === void 0 ? void 0 : bond.earnToken.decimals[chainId]) !== null && _d !== void 0 ? _d : 18));
232
+ return !available ? 0 : (singlePurchaseLimit.lt(safeAvailable) ? singlePurchaseLimit : safeAvailable);
233
+ };
234
+ var onAsd = useModal(_jsx(Modal, { sx: { zIndex: 5000 }, children: _jsx(_Fragment, { children: "asd!" }) }))[0];
235
+ // const ref = React.useRef<boolean>(false);
236
+ //
237
+ // useEffect(() => {
238
+ // if (!ref.current) {
239
+ // console.log('open modal!!')
240
+ // onAsd();
241
+ // ref.current = true;
242
+ // }
243
+ // }, []);
244
+ return (_jsx(_Fragment, { children: bondData.map(function (bond) {
245
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
246
+ return (_jsx(React.Fragment, { children: _jsx(Flex, { className: "modal-backdrop", onClick: onClose, children: _jsxs(Flex, { className: "modal-content", onClick: function (event) { return event.stopPropagation(); }, children: [toastMessage && (_jsx(Flex, { className: "toast", children: toastMessage })), _jsx(Flex, { className: "modal-header", children: _jsx(Flex, { className: "svg-close", onClick: onClose, children: _jsx(Svg, { icon: "close" }) }) }), _jsxs(Flex, { className: "modaltable-container", children: [_jsxs(Flex, { className: "modaltable-container title-container", children: [_jsx(Flex, { className: "title-container bondicon", children: _jsxs("div", { className: "icon-container", children: [_jsx(Svg, { width: 20, height: 20, icon: (_a = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bond.chainId]) !== null && _a !== void 0 ? _a : 'question' }), _jsx(TokenImage, { symbol: (_b = bond.showcaseTokenName) !== null && _b !== void 0 ? _b : bond.earnToken.symbol, size: 50 })] }) }), _jsx(Flex, { className: "title-container bondname", children: bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName }), _jsxs(Flex, { className: "title-container price-container", children: [_jsxs(Flex, { className: "price-container price", children: ["$", earnTokenPrice(bond)] }), _jsxs(Flex, { className: "price-container discounted", children: ["$", discountEarnTokenPrice(bond)] })] }), _jsx(Flex, { className: "title-container tokentags", children: _jsx(ListTag, { text: (_c = bond === null || bond === void 0 ? void 0 : bond.tags) === null || _c === void 0 ? void 0 : _c[0], variant: ((_d = bond === null || bond === void 0 ? void 0 : bond.tags) === null || _d === void 0 ? void 0 : _d[0]) === 'Cex Fund' ? 'cex_fund' : 'liquidity' }) })] }), _jsx(Flex, { className: "modaltable-container description-container", children: bond === null || bond === void 0 ? void 0 : bond.shortDescription }), _jsxs(Flex, { className: "modaltable-container blocks-container", children: [_jsxs(Flex, { className: "modal-block block-discount ".concat(getDiscountColor(bond === null || bond === void 0 ? void 0 : bond.discount)), children: [_jsxs(Flex, { className: "block-header", children: ["Discount", _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Discount }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: _jsx(Flex, { className: "header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), _jsx(Flex, { className: "block-content", children: "".concat((_e = bond === null || bond === void 0 ? void 0 : bond.discount) === null || _e === void 0 ? void 0 : _e.toFixed(2), "%") })] }), _jsxs(Flex, { className: "modal-block block-arr", children: [_jsxs(Flex, { className: "block-header", children: ["ARR", _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.ARR }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: _jsx(Flex, { className: "header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), _jsx(Flex, { className: "block-content", children: "".concat(((((_f = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _f !== void 0 ? _f : 0) * 365) / vestingTime((_g = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _g !== void 0 ? _g : 0).days).toFixed(2), "%") })] }), _jsxs(Flex, { className: "modal-block block-term", children: [_jsxs(Flex, { className: "block-header", children: ["Terms", _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Terms }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: _jsx(Flex, { className: "header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), _jsx(Flex, { className: "block-content", children: vestingTime((_h = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _h !== void 0 ? _h : 0).days ? "".concat(vestingTime((_j = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _j !== void 0 ? _j : 0).days, " D") : '-' })] }), _jsxs(Flex, { className: "modal-block block-maxbuy", children: [_jsxs(Flex, { className: "block-header", children: ["Max Buy", _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.MaxBuy(bond.earnToken.symbol) }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: _jsx(Flex, { className: "header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), _jsx(Flex, { className: "block-content", children: (_k = parseFloat(maxBuy(bond).toFixed(0))) === null || _k === void 0 ? void 0 : _k.toLocaleString('en-US') })] })] }), _jsxs(Flex, { className: "modaltable-container text-container", children: [_jsxs(Flex, { className: "text-container row", children: [_jsx(Flex, { className: "row-container spend", children: "You spend:" }), _jsxs(Flex, { className: "row-container spend-val", children: [youSpend(inputValue), " ", bond.lpToken.symbol, " = $ ", formatUSDNumber(youSpendUSD(bond, inputValue))] })] }), _jsxs(Flex, { className: "text-container row", children: [_jsxs(Flex, { className: "row-container premium", children: ["Premium:", _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Premium }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: _jsx(Flex, { className: "row-container premium-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), _jsxs(Flex, { className: "row-container premium-val ".concat(getPremiumColor(bond, inputValue)), children: ["$ ", premium(bond, inputValue)] })] }), _jsxs(Flex, { className: "text-container row", children: [_jsxs(Flex, { className: "row-container get", children: ["You get (over ", vestingTime((_l = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _l !== void 0 ? _l : 0).days, " days):"] }), _jsxs(Flex, { className: "row-container get-val", children: [youGet(bond, inputValue), " ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName, " = $ ", formatUSDNumber(youGetUSD(bond, inputValue))] })] })] }), _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: inputValue, pattern: "^[0-9]*[.,]?[0-9]*$", onChange: handleInputChange, onInput: function (v) {
247
+ if (v.currentTarget.value.includes(',')) {
248
+ v.currentTarget.value = v.currentTarget.value.replace(/,/g, '.');
249
+ }
250
+ if (v.currentTarget.value.includes('%')) {
251
+ v.currentTarget.value = v.currentTarget.value.replace(/[^0-9]/g, '');
252
+ }
253
+ if (v.currentTarget.value === '.') {
254
+ v.currentTarget.value = '0.';
255
+ }
256
+ v.currentTarget.value =
257
+ !!v.currentTarget.value && isNumber(v.currentTarget.value) && parseFloat(v.currentTarget.value) >= 0
258
+ ? v.currentTarget.value
259
+ : v.currentTarget.value.slice(0, v.currentTarget.value.length - 1);
260
+ } }) }), _jsxs(Flex, { className: "input-container token", children: [_jsx(Flex, { className: "input-container bondicon", children: _jsxs("div", { className: "icon-container-small", children: [_jsx(Svg, { width: 12, height: 12, icon: (_m = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bond.chainId]) !== null && _m !== void 0 ? _m : 'question' }), _jsx(TokenImage, { symbol: (_o = bond.lpToken.symbol) !== null && _o !== void 0 ? _o : bond.earnToken.symbol, size: 30 })] }) }), _jsx(Flex, { className: "title-container tokenname-small", children: bond === null || bond === void 0 ? void 0 : bond.lpToken.symbol })] })] }), isActive && account && (_jsxs(Flex, { className: "input-container balancerow", children: [_jsxs(Flex, { className: "balancerow text", children: ["Balance: ", tokenBalance] }), _jsx(Flex, { className: "balancerow max", children: _jsx(Button, { className: "max-button", onClick: function () {
261
+ setInputValue(tokenBalance !== null && tokenBalance !== void 0 ? tokenBalance : '0');
262
+ }, children: "Max" }) })] }))] }), _jsxs(Flex, { className: "modaltable-container button-container", children: [_jsx(Flex, { className: "button-container get", children: _jsxs(Button, { className: "action-button", onClick: onAsd, children: ["Get ", bond === null || bond === void 0 ? void 0 : bond.lpToken.symbol] }) }), _jsx(Flex, { className: "button-container buy", children: chainId !== bond.chainId
263
+ ?
264
+ _jsxs(Button, { className: "switch-button", disabled: isPending || isConfirming || (bond === null || bond === void 0 ? void 0 : bond.soldOut), onClick: function (event) {
265
+ event.stopPropagation();
266
+ // Add your claim logic here
267
+ switchChain({ chainId: bond.chainId });
268
+ }, children: ["Switch to ", NETWORK_LABEL[bond.chainId]] })
269
+ :
270
+ approveTx != null && isConfirmed ?
271
+ _jsx(Button, { className: "action-button", disabled: isPending || isConfirming || (bond === null || bond === void 0 ? void 0 : bond.soldOut), onClick: handleBuy, children: isConfirming ? 'Confirming...' : "Buy ".concat(bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName) })
272
+ :
273
+ _jsx(Button, { className: "action-button", disabled: isPending || isConfirming || (bond === null || bond === void 0 ? void 0 : bond.soldOut), onClick: handleApprove, children: isConfirming ? 'Confirming...' : 'Approve' }) })] })] })] }) }) }, bond.billAddress));
274
+ }) }));
275
+ };
276
+ export default BondModal;
@@ -0,0 +1,10 @@
1
+ import { BondsDataResponse } from "../../types/bonds";
2
+ declare function formatNumber(input: string): string;
3
+ declare function formatUSDNumber(input: string): string;
4
+ declare const youSpend: (inputValue: string) => string;
5
+ declare const youSpendUSD: (bond: BondsDataResponse, inputValue: string) => string;
6
+ declare const youGet: (bond: BondsDataResponse, inputValue: string) => string;
7
+ declare const youGetUSD: (bond: BondsDataResponse, inputValue: string) => string;
8
+ declare const premium: (bond: BondsDataResponse, inputValue: string) => string;
9
+ declare const getPremiumColor: (bond: BondsDataResponse, inputValue: string) => string;
10
+ export { formatNumber, formatUSDNumber, youSpend, youSpendUSD, youGet, youGetUSD, premium, getPremiumColor };