@ape.swap/bonds-sdk 1.0.4 → 1.0.5-seedify

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. package/README.md +46 -1
  2. package/dist/components/AccordionText/index.d.ts +9 -0
  3. package/dist/components/BondMenu/BondMenu.d.ts +12 -0
  4. package/dist/components/BondMenu/useChainFilterOption.d.ts +4 -0
  5. package/dist/components/BondRows/BondRow.d.ts +11 -0
  6. package/dist/components/BondRows/BondRowHeader.d.ts +15 -0
  7. package/dist/components/BondRows/BondRowsByChain.d.ts +11 -0
  8. package/dist/components/BondRows/BondRowsWithTitle.d.ts +11 -0
  9. package/dist/components/BondRows/ChainTitle.d.ts +8 -0
  10. package/dist/components/DisconnectedPlaceholder/index.d.ts +3 -0
  11. package/dist/components/MenuSelect/MenuSelect.d.ts +8 -0
  12. package/dist/components/MenuSelect/RecommendationSelector.d.ts +7 -0
  13. package/dist/components/MenuSelect/types.d.ts +22 -0
  14. package/dist/components/NetworkFilter/index.d.ts +6 -0
  15. package/dist/components/ProgressBar/ProgressBar.d.ts +8 -0
  16. package/dist/components/ProgressBar/ProgressBarWrapper.d.ts +14 -0
  17. package/dist/components/ProgressBar/styles.d.ts +2 -0
  18. package/dist/components/SlippageModal/index.d.ts +3 -0
  19. package/dist/components/TokenInfoAndName/index.d.ts +9 -0
  20. package/dist/components/TokenSelectorModal/TokenRow.d.ts +8 -0
  21. package/dist/components/TokenSelectorModal/index.d.ts +11 -0
  22. package/dist/components/TokenSelectorPanel/index.d.ts +15 -0
  23. package/dist/components/Tooltip/ButtonsRow.d.ts +8 -0
  24. package/dist/components/Tooltip/Tooltip.d.ts +18 -0
  25. package/dist/components/Tooltip/styles.d.ts +2 -0
  26. package/dist/components/uikit-sdk/Button/Button.d.ts +4 -0
  27. package/dist/components/uikit-sdk/Button/IconButton.d.ts +4 -0
  28. package/dist/components/uikit-sdk/Button/index.d.ts +2 -0
  29. package/dist/components/uikit-sdk/Button/styles.d.ts +3 -0
  30. package/dist/components/uikit-sdk/Button/types.d.ts +46 -0
  31. package/dist/components/uikit-sdk/Checkbox/index.d.ts +3 -0
  32. package/dist/components/uikit-sdk/Checkbox/types.d.ts +11 -0
  33. package/dist/components/uikit-sdk/Flex/index.d.ts +5 -0
  34. package/dist/components/uikit-sdk/Input/Input.d.ts +9 -0
  35. package/dist/components/uikit-sdk/Input/NumericInput.d.ts +9 -0
  36. package/dist/components/uikit-sdk/Input/StyledInput.d.ts +11 -0
  37. package/dist/components/uikit-sdk/Input/index.d.ts +3 -0
  38. package/dist/components/uikit-sdk/Modal/ModalFooter.d.ts +4 -0
  39. package/dist/components/uikit-sdk/Modal/ModalHeader.d.ts +4 -0
  40. package/dist/components/uikit-sdk/Modal/index.d.ts +4 -0
  41. package/dist/components/uikit-sdk/Modal/styles.d.ts +3 -0
  42. package/dist/components/uikit-sdk/Modal/types.d.ts +17 -0
  43. package/dist/components/uikit-sdk/Select/Select.d.ts +4 -0
  44. package/dist/components/uikit-sdk/Select/SelectItem.d.ts +3 -0
  45. package/dist/components/uikit-sdk/Select/index.d.ts +2 -0
  46. package/dist/components/uikit-sdk/Select/styles.d.ts +4 -0
  47. package/dist/components/uikit-sdk/Select/types.d.ts +55 -0
  48. package/dist/components/uikit-sdk/Skeleton/index.d.ts +4 -0
  49. package/dist/components/uikit-sdk/Skeleton/styles.d.ts +5 -0
  50. package/dist/components/uikit-sdk/Skeleton/types.d.ts +18 -0
  51. package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.d.ts +4 -0
  52. package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.d.ts +4 -0
  53. package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.d.ts +4 -0
  54. package/dist/components/uikit-sdk/Svg/Icons/AllChains.d.ts +4 -0
  55. package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.d.ts +4 -0
  56. package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.d.ts +4 -0
  57. package/dist/components/uikit-sdk/Svg/Icons/Arrow.d.ts +4 -0
  58. package/dist/components/uikit-sdk/Svg/Icons/Audit.d.ts +4 -0
  59. package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.d.ts +4 -0
  60. package/dist/components/uikit-sdk/Svg/Icons/BillsM1.d.ts +4 -0
  61. package/dist/components/uikit-sdk/Svg/Icons/BillsM2.d.ts +4 -0
  62. package/dist/components/uikit-sdk/Svg/Icons/BillsM3.d.ts +4 -0
  63. package/dist/components/uikit-sdk/Svg/Icons/Bridge.d.ts +4 -0
  64. package/dist/components/uikit-sdk/Svg/Icons/Bubble.d.ts +4 -0
  65. package/dist/components/uikit-sdk/Svg/Icons/Calculator.d.ts +4 -0
  66. package/dist/components/uikit-sdk/Svg/Icons/Calendar.d.ts +4 -0
  67. package/dist/components/uikit-sdk/Svg/Icons/Cancelled.d.ts +4 -0
  68. package/dist/components/uikit-sdk/Svg/Icons/Card.d.ts +4 -0
  69. package/dist/components/uikit-sdk/Svg/Icons/Caret.d.ts +4 -0
  70. package/dist/components/uikit-sdk/Svg/Icons/Chain.d.ts +4 -0
  71. package/dist/components/uikit-sdk/Svg/Icons/Chart.d.ts +4 -0
  72. package/dist/components/uikit-sdk/Svg/Icons/Chat.d.ts +4 -0
  73. package/dist/components/uikit-sdk/Svg/Icons/Close.d.ts +4 -0
  74. package/dist/components/uikit-sdk/Svg/Icons/Cog.d.ts +3 -0
  75. package/dist/components/uikit-sdk/Svg/Icons/Collapse.d.ts +4 -0
  76. package/dist/components/uikit-sdk/Svg/Icons/Copy.d.ts +4 -0
  77. package/dist/components/uikit-sdk/Svg/Icons/Discord.d.ts +4 -0
  78. package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.d.ts +4 -0
  79. package/dist/components/uikit-sdk/Svg/Icons/Docs.d.ts +4 -0
  80. package/dist/components/uikit-sdk/Svg/Icons/DocsV2.d.ts +4 -0
  81. package/dist/components/uikit-sdk/Svg/Icons/Ellipse.d.ts +4 -0
  82. package/dist/components/uikit-sdk/Svg/Icons/Error.d.ts +4 -0
  83. package/dist/components/uikit-sdk/Svg/Icons/Expand.d.ts +4 -0
  84. package/dist/components/uikit-sdk/Svg/Icons/Explorer.d.ts +4 -0
  85. package/dist/components/uikit-sdk/Svg/Icons/External.d.ts +4 -0
  86. package/dist/components/uikit-sdk/Svg/Icons/Farm.d.ts +4 -0
  87. package/dist/components/uikit-sdk/Svg/Icons/Fav.d.ts +4 -0
  88. package/dist/components/uikit-sdk/Svg/Icons/FilledURL.d.ts +4 -0
  89. package/dist/components/uikit-sdk/Svg/Icons/Fire.d.ts +4 -0
  90. package/dist/components/uikit-sdk/Svg/Icons/Frame.d.ts +4 -0
  91. package/dist/components/uikit-sdk/Svg/Icons/FullLogo.d.ts +4 -0
  92. package/dist/components/uikit-sdk/Svg/Icons/Gnana.d.ts +4 -0
  93. package/dist/components/uikit-sdk/Svg/Icons/GreenShield.d.ts +3 -0
  94. package/dist/components/uikit-sdk/Svg/Icons/Hamburger.d.ts +4 -0
  95. package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.d.ts +4 -0
  96. package/dist/components/uikit-sdk/Svg/Icons/Home.d.ts +4 -0
  97. package/dist/components/uikit-sdk/Svg/Icons/Hot.d.ts +4 -0
  98. package/dist/components/uikit-sdk/Svg/Icons/Info.d.ts +4 -0
  99. package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.d.ts +4 -0
  100. package/dist/components/uikit-sdk/Svg/Icons/Insight.d.ts +4 -0
  101. package/dist/components/uikit-sdk/Svg/Icons/Instagram.d.ts +4 -0
  102. package/dist/components/uikit-sdk/Svg/Icons/Island.d.ts +4 -0
  103. package/dist/components/uikit-sdk/Svg/Icons/Language.d.ts +4 -0
  104. package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.d.ts +4 -0
  105. package/dist/components/uikit-sdk/Svg/Icons/LineChart.d.ts +4 -0
  106. package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.d.ts +4 -0
  107. package/dist/components/uikit-sdk/Svg/Icons/Logout.d.ts +4 -0
  108. package/dist/components/uikit-sdk/Svg/Icons/Medium.d.ts +4 -0
  109. package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.d.ts +4 -0
  110. package/dist/components/uikit-sdk/Svg/Icons/Message.d.ts +4 -0
  111. package/dist/components/uikit-sdk/Svg/Icons/Migrate.d.ts +4 -0
  112. package/dist/components/uikit-sdk/Svg/Icons/Moon.d.ts +4 -0
  113. package/dist/components/uikit-sdk/Svg/Icons/More.d.ts +4 -0
  114. package/dist/components/uikit-sdk/Svg/Icons/NFA.d.ts +4 -0
  115. package/dist/components/uikit-sdk/Svg/Icons/NavCaret.d.ts +4 -0
  116. package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.d.ts +3 -0
  117. package/dist/components/uikit-sdk/Svg/Icons/Play.d.ts +4 -0
  118. package/dist/components/uikit-sdk/Svg/Icons/Pool.d.ts +4 -0
  119. package/dist/components/uikit-sdk/Svg/Icons/Positions.d.ts +4 -0
  120. package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.d.ts +4 -0
  121. package/dist/components/uikit-sdk/Svg/Icons/ProfileIcon.d.ts +7 -0
  122. package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.d.ts +4 -0
  123. package/dist/components/uikit-sdk/Svg/Icons/Question.d.ts +4 -0
  124. package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.d.ts +4 -0
  125. package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.d.ts +4 -0
  126. package/dist/components/uikit-sdk/Svg/Icons/Quiz.d.ts +4 -0
  127. package/dist/components/uikit-sdk/Svg/Icons/Receipt.d.ts +4 -0
  128. package/dist/components/uikit-sdk/Svg/Icons/Reddit.d.ts +4 -0
  129. package/dist/components/uikit-sdk/Svg/Icons/Rocket.d.ts +4 -0
  130. package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.d.ts +4 -0
  131. package/dist/components/uikit-sdk/Svg/Icons/Search.d.ts +4 -0
  132. package/dist/components/uikit-sdk/Svg/Icons/Send.d.ts +4 -0
  133. package/dist/components/uikit-sdk/Svg/Icons/Settings.d.ts +4 -0
  134. package/dist/components/uikit-sdk/Svg/Icons/Share.d.ts +4 -0
  135. package/dist/components/uikit-sdk/Svg/Icons/Sort.d.ts +4 -0
  136. package/dist/components/uikit-sdk/Svg/Icons/Success.d.ts +4 -0
  137. package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.d.ts +4 -0
  138. package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.d.ts +4 -0
  139. package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.d.ts +3 -0
  140. package/dist/components/uikit-sdk/Svg/Icons/Tag.d.ts +4 -0
  141. package/dist/components/uikit-sdk/Svg/Icons/Telegram.d.ts +4 -0
  142. package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.d.ts +4 -0
  143. package/dist/components/uikit-sdk/Svg/Icons/TextLogo.d.ts +4 -0
  144. package/dist/components/uikit-sdk/Svg/Icons/TickShield.d.ts +4 -0
  145. package/dist/components/uikit-sdk/Svg/Icons/Trade.d.ts +4 -0
  146. package/dist/components/uikit-sdk/Svg/Icons/Trash.d.ts +4 -0
  147. package/dist/components/uikit-sdk/Svg/Icons/Twitter.d.ts +4 -0
  148. package/dist/components/uikit-sdk/Svg/Icons/URL.d.ts +4 -0
  149. package/dist/components/uikit-sdk/Svg/Icons/Vaults.d.ts +4 -0
  150. package/dist/components/uikit-sdk/Svg/Icons/Verified.d.ts +4 -0
  151. package/dist/components/uikit-sdk/Svg/Icons/Wallet.d.ts +4 -0
  152. package/dist/components/uikit-sdk/Svg/Icons/Warning.d.ts +4 -0
  153. package/dist/components/uikit-sdk/Svg/Icons/Watch.d.ts +4 -0
  154. package/dist/components/uikit-sdk/Svg/Icons/Website.d.ts +4 -0
  155. package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.d.ts +4 -0
  156. package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.d.ts +4 -0
  157. package/dist/components/uikit-sdk/Svg/Icons/XNew.d.ts +4 -0
  158. package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.d.ts +4 -0
  159. package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.d.ts +4 -0
  160. package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.d.ts +4 -0
  161. package/dist/components/uikit-sdk/Svg/Icons/index.d.ts +110 -0
  162. package/dist/components/uikit-sdk/Svg/Icons/polygonNew.d.ts +4 -0
  163. package/dist/components/uikit-sdk/Svg/Icons/types.d.ts +16 -0
  164. package/dist/components/uikit-sdk/Svg/index.d.ts +3 -0
  165. package/dist/components/uikit-sdk/Svg/styles.d.ts +4 -0
  166. package/dist/components/uikit-sdk/Svg/tokens/ABOND.d.ts +4 -0
  167. package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.d.ts +4 -0
  168. package/dist/components/uikit-sdk/Svg/tokens/AVAX.d.ts +4 -0
  169. package/dist/components/uikit-sdk/Svg/tokens/BANANA.d.ts +4 -0
  170. package/dist/components/uikit-sdk/Svg/tokens/BASE.d.ts +4 -0
  171. package/dist/components/uikit-sdk/Svg/tokens/BNB.d.ts +4 -0
  172. package/dist/components/uikit-sdk/Svg/tokens/BSC.d.ts +4 -0
  173. package/dist/components/uikit-sdk/Svg/tokens/CELO.d.ts +4 -0
  174. package/dist/components/uikit-sdk/Svg/tokens/CRONOS.d.ts +4 -0
  175. package/dist/components/uikit-sdk/Svg/tokens/ETH.d.ts +4 -0
  176. package/dist/components/uikit-sdk/Svg/tokens/FANTOM.d.ts +4 -0
  177. package/dist/components/uikit-sdk/Svg/tokens/GNANA.d.ts +4 -0
  178. package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.d.ts +4 -0
  179. package/dist/components/uikit-sdk/Svg/tokens/INEVM.d.ts +4 -0
  180. package/dist/components/uikit-sdk/Svg/tokens/IOTA.d.ts +4 -0
  181. package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.d.ts +4 -0
  182. package/dist/components/uikit-sdk/Svg/tokens/LINEA.d.ts +4 -0
  183. package/dist/components/uikit-sdk/Svg/tokens/OKX.d.ts +4 -0
  184. package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.d.ts +4 -0
  185. package/dist/components/uikit-sdk/Svg/tokens/POLYGON.d.ts +4 -0
  186. package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.d.ts +4 -0
  187. package/dist/components/uikit-sdk/Svg/tokens/TLOS.d.ts +4 -0
  188. package/dist/components/uikit-sdk/Svg/tokens/index.d.ts +22 -0
  189. package/dist/components/uikit-sdk/Svg/types.d.ts +171 -0
  190. package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.d.ts +3 -0
  191. package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.d.ts +3 -0
  192. package/dist/components/uikit-sdk/Svg/walletIcons/Brave.d.ts +3 -0
  193. package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.d.ts +3 -0
  194. package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.d.ts +4 -0
  195. package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.d.ts +3 -0
  196. package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.d.ts +3 -0
  197. package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.d.ts +3 -0
  198. package/dist/components/uikit-sdk/Svg/walletIcons/OKX.d.ts +3 -0
  199. package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.d.ts +3 -0
  200. package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.d.ts +3 -0
  201. package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.d.ts +3 -0
  202. package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.d.ts +3 -0
  203. package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.d.ts +3 -0
  204. package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.d.ts +3 -0
  205. package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.d.ts +4 -0
  206. package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.d.ts +3 -0
  207. package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.d.ts +3 -0
  208. package/dist/components/uikit-sdk/Svg/walletIcons/index.d.ts +18 -0
  209. package/dist/components/uikit-sdk/Tag/ListTag.d.ts +4 -0
  210. package/dist/components/uikit-sdk/Tag/Tag.d.ts +4 -0
  211. package/dist/components/uikit-sdk/Tag/index.d.ts +3 -0
  212. package/dist/components/uikit-sdk/Tag/styles.d.ts +8 -0
  213. package/dist/components/uikit-sdk/Tag/types.d.ts +48 -0
  214. package/dist/components/uikit-sdk/Text/index.d.ts +4 -0
  215. package/dist/components/uikit-sdk/Text/types.d.ts +23 -0
  216. package/dist/components/uikit-sdk/Toggle/index.d.ts +8 -0
  217. package/dist/components/uikit-sdk/Toggle/styles.d.ts +3 -0
  218. package/dist/components/uikit-sdk/TokenImage/index.d.ts +8 -0
  219. package/dist/components/uikit-sdk/TooltipBubble/index.d.ts +4 -0
  220. package/dist/components/uikit-sdk/TooltipBubble/styles.d.ts +4 -0
  221. package/dist/components/uikit-sdk/TooltipBubble/types.d.ts +17 -0
  222. package/dist/components/uikit-sdk/index.d.ts +11 -0
  223. package/dist/config/abi/types/Banana.d.ts +394 -0
  224. package/dist/config/abi/types/Bond.d.ts +758 -0
  225. package/dist/config/abi/types/BondNft.d.ts +556 -0
  226. package/dist/config/abi/types/EnsPublicResolver.d.ts +437 -0
  227. package/dist/config/abi/types/EnsRegistrar.d.ts +254 -0
  228. package/dist/config/abi/types/Erc20.d.ts +156 -0
  229. package/dist/config/abi/types/Erc20_bytes32.d.ts +50 -0
  230. package/dist/config/abi/types/JungleChef.d.ts +245 -0
  231. package/dist/config/abi/types/LaunchBonds.d.ts +1306 -0
  232. package/dist/config/abi/types/LensContract.d.ts +276 -0
  233. package/dist/config/abi/types/LockVeAbond.d.ts +1173 -0
  234. package/dist/config/abi/types/MigrationBond.d.ts +1074 -0
  235. package/dist/config/abi/types/MigrationFveAbond.d.ts +284 -0
  236. package/dist/config/abi/types/MiniComplexRewarder.d.ts +423 -0
  237. package/dist/config/abi/types/Multicallv2.d.ts +139 -0
  238. package/dist/config/abi/types/Multicallv3.d.ts +98 -0
  239. package/dist/config/abi/types/NonFungibleApes.d.ts +492 -0
  240. package/dist/config/abi/types/NonFungibleBananas.d.ts +468 -0
  241. package/dist/config/abi/types/PriceGetter.d.ts +676 -0
  242. package/dist/config/abi/types/PriceGetterLinea.d.ts +756 -0
  243. package/dist/config/abi/types/PriceGetterV2.d.ts +692 -0
  244. package/dist/config/abi/types/SousChef.d.ts +542 -0
  245. package/dist/config/abi/types/Treasury.d.ts +274 -0
  246. package/dist/config/abi/types/Weth.d.ts +206 -0
  247. package/dist/config/abi/types/Zap.d.ts +484 -0
  248. package/dist/config/abi/types/common.d.ts +22 -0
  249. package/dist/config/abi/types/factories/Banana__factory.d.ts +475 -0
  250. package/dist/config/abi/types/factories/BondNft__factory.d.ts +723 -0
  251. package/dist/config/abi/types/factories/Bond__factory.d.ts +799 -0
  252. package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +649 -0
  253. package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +338 -0
  254. package/dist/config/abi/types/factories/Erc20__factory.d.ts +175 -0
  255. package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +30 -0
  256. package/dist/config/abi/types/factories/JungleChef__factory.d.ts +247 -0
  257. package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +1560 -0
  258. package/dist/config/abi/types/factories/LensContract__factory.d.ts +254 -0
  259. package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +1698 -0
  260. package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +1268 -0
  261. package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +262 -0
  262. package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +448 -0
  263. package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +115 -0
  264. package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +76 -0
  265. package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +617 -0
  266. package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +576 -0
  267. package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +1105 -0
  268. package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +1027 -0
  269. package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +999 -0
  270. package/dist/config/abi/types/factories/SousChef__factory.d.ts +511 -0
  271. package/dist/config/abi/types/factories/Treasury__factory.d.ts +235 -0
  272. package/dist/config/abi/types/factories/Weth__factory.d.ts +220 -0
  273. package/dist/config/abi/types/factories/Zap__factory.d.ts +695 -0
  274. package/dist/config/abi/types/factories/index.d.ts +25 -0
  275. package/dist/config/abi/types/index.d.ts +51 -0
  276. package/dist/config/constants/addresses.d.ts +12 -0
  277. package/dist/config/constants/api.d.ts +6 -0
  278. package/dist/config/constants/chains.d.ts +48 -0
  279. package/dist/config/constants/lifiRouting.d.ts +2 -0
  280. package/dist/config/constants/lists.d.ts +10 -0
  281. package/dist/config/constants/meta.d.ts +11 -0
  282. package/dist/config/constants/misc.d.ts +3 -0
  283. package/dist/config/constants/networks.d.ts +2 -0
  284. package/dist/config/constants/products.d.ts +21 -0
  285. package/dist/config/constants/queryKeys.d.ts +32 -0
  286. package/dist/config/constants/tokens.d.ts +3 -0
  287. package/dist/config/constants/tooltips.d.ts +13 -0
  288. package/dist/config/constants/tutorials.d.ts +7 -0
  289. package/dist/config/constants/zapInputTokens.d.ts +2 -0
  290. package/dist/config/localization/languages.d.ts +11 -0
  291. package/dist/contexts/Localization/Provider.d.ts +7 -0
  292. package/dist/contexts/Localization/helpers.d.ts +3 -0
  293. package/dist/contexts/Localization/index.d.ts +3 -0
  294. package/dist/contexts/Localization/types.d.ts +21 -0
  295. package/dist/contexts/Localization/useTranslation.d.ts +2 -0
  296. package/dist/contexts/ModalContext.d.ts +14 -0
  297. package/dist/contexts/RefreshContext.d.ts +10 -0
  298. package/dist/hooks/useCookie.d.ts +9 -0
  299. package/dist/hooks/useIsAbond.d.ts +3 -0
  300. package/dist/hooks/useModal.d.ts +3 -0
  301. package/dist/hooks/usePendingVesting.d.ts +5 -0
  302. package/dist/hooks/useRefresh.d.ts +6 -0
  303. package/dist/hooks/useTimer.d.ts +2 -0
  304. package/dist/hooks/useTokenFromZapList.d.ts +3 -0
  305. package/dist/hooks/useTopThreeTags.d.ts +2 -0
  306. package/dist/main.d.ts +7 -0
  307. package/dist/main.js +73484 -0
  308. package/dist/providers/index.d.ts +5 -0
  309. package/dist/scss/AccordionText.scss +11 -0
  310. package/dist/scss/BondMenu.scss +29 -0
  311. package/dist/scss/BondModal.scss +498 -0
  312. package/dist/scss/BondRow.scss +98 -0
  313. package/dist/scss/BondRowHeader.scss +124 -0
  314. package/dist/scss/BondRowsByChain.scss +5 -0
  315. package/dist/scss/BondRowsWithTitle.scss +4 -0
  316. package/dist/scss/Bonds.scss +18 -0
  317. package/dist/scss/ProgressBar.scss +13 -0
  318. package/dist/scss/TokenInfoName.scss +60 -0
  319. package/dist/scss/YourBonds.scss +203 -0
  320. package/dist/scss/YourBondsModal.scss +314 -0
  321. package/dist/scss/index.scss +12 -0
  322. package/dist/state/allowance/useAllowance.d.ts +15 -0
  323. package/dist/state/balance/useCurrencyBalance.d.ts +4 -0
  324. package/dist/state/bonds/useBondNFTData.d.ts +5 -0
  325. package/dist/state/bonds/useBondsData.d.ts +4 -0
  326. package/dist/state/bonds/useBondsList.d.ts +4 -0
  327. package/dist/state/bonds/useHotBonds.d.ts +3 -0
  328. package/dist/state/bonds/useUserBonds.d.ts +5 -0
  329. package/dist/state/price/useCurrencyPrice.d.ts +3 -0
  330. package/dist/state/slippage/useSlippage.d.ts +1 -0
  331. package/dist/state/tokenPrices/useTokenPrices.d.ts +29 -0
  332. package/dist/state/zap/getChainParam.d.ts +12 -0
  333. package/dist/state/zap/useSoulZapBondQuote.d.ts +4 -0
  334. package/dist/state/zap/useSoulZapTokenQuote.d.ts +3 -0
  335. package/dist/theme/base.d.ts +103 -0
  336. package/dist/theme/colors.d.ts +89 -0
  337. package/dist/theme/components.d.ts +439 -0
  338. package/dist/theme/display.d.ts +2 -0
  339. package/dist/theme/index.d.ts +2 -0
  340. package/dist/theme/types.d.ts +10 -0
  341. package/dist/types/bonds.d.ts +30 -0
  342. package/dist/types/yourbonds.d.ts +78 -0
  343. package/dist/utils/convertToTokenValue.d.ts +4 -0
  344. package/dist/utils/displayHelpers.d.ts +13 -0
  345. package/dist/utils/formatNumber.d.ts +2 -0
  346. package/dist/utils/formatNumbers.d.ts +36 -0
  347. package/dist/utils/getBalanceNumber.d.ts +4 -0
  348. package/dist/utils/getNativeTicker.d.ts +3 -0
  349. package/dist/utils/getTimePeriods.d.ts +14 -0
  350. package/dist/utils/index.d.ts +16 -0
  351. package/dist/utils/localStorageHelpers.d.ts +3 -0
  352. package/dist/utils/multicall.d.ts +7 -0
  353. package/dist/utils/numbers.d.ts +5 -0
  354. package/dist/utils/roundNumber.d.ts +7 -0
  355. package/dist/utils/track.d.ts +7 -0
  356. package/dist/views/BondModal/BondModal.d.ts +14 -0
  357. package/dist/views/BondModal/helper.d.ts +10 -0
  358. package/dist/views/BondModal/index.d.ts +4 -0
  359. package/dist/views/Bonds/Bonds.d.ts +15 -0
  360. package/dist/views/Bonds/components/CheckURL/index.d.ts +4 -0
  361. package/dist/views/Bonds/index.d.ts +4 -0
  362. package/dist/views/Bonds/utils.d.ts +14 -0
  363. package/dist/views/FullBondsView/FullBondsView.d.ts +7 -0
  364. package/dist/views/FullBondsView/index.d.ts +3 -0
  365. package/dist/views/YourBonds/YourBonds.d.ts +5 -0
  366. package/dist/views/YourBonds/components/UserBondRow/index.d.ts +6 -0
  367. package/dist/views/YourBonds/fetchBillsUser.d.ts +16 -0
  368. package/dist/views/YourBonds/getBillNftData.d.ts +9 -0
  369. package/dist/views/YourBonds/index.d.ts +3 -0
  370. package/dist/views/YourBondsModal/YourBondsModal.d.ts +9 -0
  371. package/dist/views/YourBondsModal/styles.d.ts +2 -0
  372. package/dist/views/ZapModal/index.d.ts +14 -0
  373. package/dist/views/ZapModal/styles.d.ts +2 -0
  374. package/package.json +61 -48
@@ -0,0 +1,439 @@
1
+ export declare const buttonHover: {
2
+ '&:not([disabled])': {
3
+ borderColor: string;
4
+ background: string;
5
+ opacity: number;
6
+ };
7
+ '&:disabled': {};
8
+ };
9
+ export declare const textUnderlineHover: {
10
+ '::after': {
11
+ content: string;
12
+ position: string;
13
+ background: string;
14
+ left: string;
15
+ bottom: string;
16
+ height: string;
17
+ width: string;
18
+ borderRadius: string;
19
+ transform: string;
20
+ transformOrigin: string;
21
+ transition: string;
22
+ backfaceVisibility: string;
23
+ };
24
+ ':hover::after': {
25
+ transform: string;
26
+ transformOrigin: string;
27
+ };
28
+ };
29
+ declare const components: {
30
+ text: {
31
+ heading: {
32
+ fontFamily: string;
33
+ fontWeight: string;
34
+ };
35
+ lg: {
36
+ fontSize: number;
37
+ lineHeight: string;
38
+ };
39
+ md: {
40
+ fontSize: number;
41
+ lineHeight: string;
42
+ };
43
+ sm: {
44
+ fontSize: number;
45
+ lineHeight: string;
46
+ };
47
+ };
48
+ input: {
49
+ fontFamily: string;
50
+ fontWeight: number;
51
+ sm: {
52
+ background: string;
53
+ borderRadius: number;
54
+ height: string;
55
+ width: string;
56
+ };
57
+ md: {
58
+ background: string;
59
+ borderRadius: number;
60
+ height: string;
61
+ width: string;
62
+ };
63
+ lg: {
64
+ background: string;
65
+ borderRadius: number;
66
+ height: string;
67
+ width: string;
68
+ };
69
+ };
70
+ textarea: {
71
+ padding: string;
72
+ borderRadius: string;
73
+ border: string;
74
+ fontWeight: string;
75
+ background: string;
76
+ resize: string;
77
+ color: string;
78
+ '&:focus': {
79
+ outline: string;
80
+ };
81
+ };
82
+ checkbox: {
83
+ background: string;
84
+ borderRadius: string;
85
+ borderWidth: string;
86
+ borderStyle: string;
87
+ borderColor: string;
88
+ boxShadow: string;
89
+ outline: string;
90
+ appearance: string;
91
+ width: string;
92
+ height: string;
93
+ margin: string;
94
+ cursor: string;
95
+ '& + svg': {
96
+ display: string;
97
+ position: string;
98
+ pointerEvents: string;
99
+ top: string;
100
+ left: string;
101
+ bottom: string;
102
+ right: string;
103
+ margin: string;
104
+ };
105
+ '&:checked ': {
106
+ background: string;
107
+ borderColor: string;
108
+ '& + svg': {
109
+ display: string;
110
+ };
111
+ };
112
+ '&:focus:not(:checked)': {
113
+ outline: string;
114
+ boxShadow: string;
115
+ };
116
+ '&:focus': {
117
+ outline: string;
118
+ boxShadow: string;
119
+ };
120
+ '&:hover:not(:disabled):not(:checked)': {
121
+ borderColor: string;
122
+ boxShadow: string;
123
+ };
124
+ };
125
+ radio: {
126
+ background: string;
127
+ borderRadius: string;
128
+ borderWidth: string;
129
+ borderStyle: string;
130
+ borderColor: string;
131
+ boxShadow: string;
132
+ outline: string;
133
+ appearance: string;
134
+ width: string;
135
+ height: string;
136
+ margin: string;
137
+ cursor: string;
138
+ '& + span': {
139
+ display: string;
140
+ position: string;
141
+ pointerEvents: string;
142
+ top: string;
143
+ left: string;
144
+ bottom: string;
145
+ right: string;
146
+ margin: string;
147
+ backgroundColor: string;
148
+ borderRadius: string;
149
+ };
150
+ '&:checked ': {
151
+ background: string;
152
+ borderColor: string;
153
+ '& + span': {
154
+ display: string;
155
+ };
156
+ };
157
+ '&:focus': {
158
+ outline: string;
159
+ boxShadow: string;
160
+ };
161
+ '&:hover:not(:disabled):not(:checked)': {
162
+ borderColor: string;
163
+ };
164
+ };
165
+ label: {
166
+ inline: {
167
+ display: string;
168
+ alignItems: string;
169
+ columnGap: number;
170
+ };
171
+ };
172
+ borders: {
173
+ primaryButton: string;
174
+ primaryBtnDisable: string;
175
+ secondaryButton: string;
176
+ secondaryButtonDisable: string;
177
+ mode: {
178
+ dark: {
179
+ secondaryButtonDisable: string;
180
+ };
181
+ };
182
+ };
183
+ buttons: {
184
+ primary: {
185
+ background: string;
186
+ border: string;
187
+ color: string;
188
+ '&:disabled': {
189
+ cursor: string;
190
+ background: string;
191
+ color: string;
192
+ border: string;
193
+ opacity: number;
194
+ };
195
+ '&:hover': {
196
+ '&:not([disabled])': {
197
+ borderColor: string;
198
+ background: string;
199
+ };
200
+ '&:disabled': {};
201
+ };
202
+ padding: string;
203
+ fontSize: string;
204
+ fontFamily: string;
205
+ cursor: string;
206
+ fontWeight: number;
207
+ display: string;
208
+ alignItems: string;
209
+ '&&': {
210
+ borderRadius: string;
211
+ };
212
+ };
213
+ secondary: {
214
+ background: string;
215
+ border: string;
216
+ color: string;
217
+ '&:disabled': {
218
+ cursor: string;
219
+ background: string;
220
+ color: string;
221
+ border: string;
222
+ };
223
+ '&&:hover': {
224
+ '&:not([disabled])': {
225
+ borderColor: string;
226
+ };
227
+ '&:disabled': {};
228
+ };
229
+ padding: string;
230
+ fontSize: string;
231
+ fontFamily: string;
232
+ cursor: string;
233
+ fontWeight: number;
234
+ display: string;
235
+ alignItems: string;
236
+ '&&': {
237
+ borderRadius: string;
238
+ };
239
+ };
240
+ tertiary: {
241
+ background: string;
242
+ border: string;
243
+ color: string;
244
+ '&:disabled': {
245
+ cursor: string;
246
+ background: string;
247
+ color: string;
248
+ };
249
+ '&:hover': {
250
+ '&:not([disabled])': {
251
+ background: string;
252
+ };
253
+ '&:disabled': {};
254
+ };
255
+ padding: string;
256
+ fontSize: string;
257
+ fontFamily: string;
258
+ cursor: string;
259
+ fontWeight: number;
260
+ display: string;
261
+ alignItems: string;
262
+ '&&': {
263
+ borderRadius: string;
264
+ };
265
+ };
266
+ text: {
267
+ background: string;
268
+ color: string;
269
+ '&:hover': {
270
+ '&:not([disabled])': {
271
+ color: string;
272
+ };
273
+ '&:disabled': {};
274
+ };
275
+ '&:disabled': {
276
+ cursor: string;
277
+ background: string;
278
+ color: string;
279
+ };
280
+ padding: string;
281
+ fontSize: string;
282
+ fontFamily: string;
283
+ cursor: string;
284
+ fontWeight: number;
285
+ display: string;
286
+ alignItems: string;
287
+ '&&': {
288
+ borderRadius: string;
289
+ };
290
+ };
291
+ success: {
292
+ background: string;
293
+ color: string;
294
+ '&:disabled': {
295
+ cursor: string;
296
+ background: string;
297
+ color: string;
298
+ };
299
+ '&:hover': {
300
+ '&:not([disabled])': {
301
+ background: string;
302
+ };
303
+ '&:disabled': {};
304
+ };
305
+ padding: string;
306
+ fontSize: string;
307
+ fontFamily: string;
308
+ cursor: string;
309
+ fontWeight: number;
310
+ display: string;
311
+ alignItems: string;
312
+ '&&': {
313
+ borderRadius: string;
314
+ };
315
+ };
316
+ danger: {
317
+ background: string;
318
+ color: string;
319
+ '&:disabled': {
320
+ cursor: string;
321
+ background: string;
322
+ color: string;
323
+ };
324
+ '&:hover': {
325
+ '&:not([disabled])': {
326
+ background: string;
327
+ };
328
+ '&:disabled': {};
329
+ };
330
+ padding: string;
331
+ fontSize: string;
332
+ fontFamily: string;
333
+ cursor: string;
334
+ fontWeight: number;
335
+ display: string;
336
+ alignItems: string;
337
+ '&&': {
338
+ borderRadius: string;
339
+ };
340
+ };
341
+ circular: {
342
+ width: string;
343
+ height: string;
344
+ background: string;
345
+ borderRadius: string;
346
+ display: string;
347
+ justifyContent: string;
348
+ alignItems: string;
349
+ overflow: string;
350
+ cursor: string;
351
+ padding: string;
352
+ transition: string;
353
+ '&:hover': {
354
+ filter: string;
355
+ };
356
+ '&:active': {
357
+ transform: string;
358
+ };
359
+ };
360
+ };
361
+ cards: {
362
+ primary: {
363
+ background: string;
364
+ borderRadius: string;
365
+ };
366
+ };
367
+ flex: {
368
+ dexContainer: {
369
+ width: string;
370
+ maxWidth: string;
371
+ height: string;
372
+ background: string;
373
+ padding: string[];
374
+ borderRadius: string;
375
+ flexDirection: string;
376
+ };
377
+ v3SubDexContainer: {
378
+ width: string;
379
+ maxWidth: string;
380
+ height: string;
381
+ background: string;
382
+ padding: string[];
383
+ borderRadius: string;
384
+ margin: string;
385
+ flexDirection: string;
386
+ };
387
+ navContainer: {
388
+ height: string;
389
+ padding: string;
390
+ background: string;
391
+ borderRadius: string;
392
+ alignItems: string;
393
+ cursor: string;
394
+ transition: string;
395
+ '&:hover': {
396
+ filter: string;
397
+ };
398
+ '&:active': {
399
+ transform: string;
400
+ };
401
+ };
402
+ link: {
403
+ cursor: string;
404
+ textDecoration: string;
405
+ display: string;
406
+ '::after': {
407
+ content: string;
408
+ position: string;
409
+ background: string;
410
+ left: string;
411
+ bottom: string;
412
+ height: string;
413
+ width: string;
414
+ borderRadius: string;
415
+ transform: string;
416
+ transformOrigin: string;
417
+ transition: string;
418
+ backfaceVisibility: string;
419
+ };
420
+ ':hover::after': {
421
+ transform: string;
422
+ transformOrigin: string;
423
+ };
424
+ };
425
+ tag: {
426
+ padding: string;
427
+ borderRadius: string;
428
+ alignItems: string;
429
+ justifyContent: string;
430
+ };
431
+ };
432
+ switch: {
433
+ backgroundColor: string;
434
+ 'input:checked ~ &': {
435
+ backgroundColor: string;
436
+ };
437
+ };
438
+ };
439
+ export default components;
@@ -0,0 +1,2 @@
1
+ export declare const MOBILE_DISPLAY: string[];
2
+ export declare const DESKTOP_DISPLAY: string[];
@@ -0,0 +1,2 @@
1
+ import type { Theme } from 'theme-ui';
2
+ export declare const defaultTheme: Theme;
@@ -0,0 +1,10 @@
1
+ export type MediaQueries = {
2
+ xs: string;
3
+ sm: string;
4
+ md: string;
5
+ lg: string;
6
+ xl: string;
7
+ xxl: string;
8
+ xxxl: string;
9
+ nav: string;
10
+ };
@@ -0,0 +1,30 @@
1
+ import { ChainId, Token } from '@ape.swap/apeswap-lists';
2
+ export interface BondsData {
3
+ index: number;
4
+ cmcId?: number;
5
+ chainId: ChainId;
6
+ type: string;
7
+ discount: number;
8
+ billAddress: string;
9
+ billNftAddress: string;
10
+ soldOut: boolean;
11
+ inactive: boolean;
12
+ trueBillPrice: string;
13
+ maxTotalPayout: string;
14
+ totalPayoutGiven: string;
15
+ maxPayout: string;
16
+ tokensRemaining: string;
17
+ showcaseTokenName: string;
18
+ vestingTerm: number;
19
+ principalTokenPrice: string;
20
+ payoutTokenPrice: string;
21
+ tags?: string[];
22
+ shortDescription?: string;
23
+ fullDescription?: string;
24
+ twitter?: string;
25
+ projectLink?: string;
26
+ audit?: string;
27
+ billVersion?: string;
28
+ earnToken: Token;
29
+ lpToken: Token;
30
+ }
@@ -0,0 +1,78 @@
1
+ import { BondsData } from './bonds';
2
+ import { ChainId } from '@ape.swap/apeswap-lists';
3
+ export interface UserOwnedBillsData {
4
+ index: number;
5
+ userOwnedBills: UserBill[];
6
+ }
7
+ export interface UserBill {
8
+ address: string;
9
+ id: string;
10
+ vesting: string;
11
+ payout: string;
12
+ totalPayout?: string;
13
+ truePricePaid: string;
14
+ lastBlockTimestamp: string;
15
+ pendingRewards: string;
16
+ billNftAddress: string;
17
+ bond: BondsData;
18
+ }
19
+ export interface UserBillNftData {
20
+ id: number;
21
+ tokenId: number;
22
+ attributes: {
23
+ trait_type: string;
24
+ value: string;
25
+ }[];
26
+ chainId: ChainId;
27
+ contractAddress: string;
28
+ description: string;
29
+ image: string;
30
+ name: string;
31
+ data: {
32
+ billContract: string;
33
+ billNftAddress: string;
34
+ billNftId: number;
35
+ blockNumber: number;
36
+ bondArtCollection: string;
37
+ bondPartner: string;
38
+ bondVersion: string;
39
+ chainId: ChainId;
40
+ createTransactionHash: string;
41
+ createdAddressOwner: string;
42
+ createdAt: number;
43
+ deposit: number;
44
+ dollarValue: number;
45
+ expires: number;
46
+ pairName: string;
47
+ payout: number;
48
+ payoutToken: string;
49
+ payoutTokenData: {
50
+ address: string;
51
+ name: string;
52
+ symbol: string;
53
+ decimals: {
54
+ [chainId: number]: number;
55
+ };
56
+ };
57
+ payoutTokenPrice: string;
58
+ principalToken: string;
59
+ token0: {
60
+ address: string;
61
+ symbol: string;
62
+ name: string;
63
+ decimals: {
64
+ [chainId: number]: number;
65
+ };
66
+ };
67
+ token1: {
68
+ address: string;
69
+ symbol: string;
70
+ name: string;
71
+ decimals: {
72
+ [chainId: number]: number;
73
+ };
74
+ };
75
+ type: string;
76
+ vestingPeriodSeconds: number;
77
+ };
78
+ }
@@ -0,0 +1,4 @@
1
+ import { ethers } from 'ethers';
2
+ export declare function adjustDecimals(numStr: string): string;
3
+ declare const convertToTokenValue: (numberString: string, decimals: number) => ethers.BigNumber;
4
+ export default convertToTokenValue;
@@ -0,0 +1,13 @@
1
+ import { UserBill } from '../types/yourbonds';
2
+ import { BondsData } from '../types/bonds';
3
+ export declare const claimable: (userBill: UserBill) => number;
4
+ export declare const earnTokenPrice: (bond: BondsData) => string;
5
+ export declare const totalPending: (userBill: UserBill) => number;
6
+ export declare const vestingTimeRemaining: (userBill: UserBill) => {
7
+ years: number;
8
+ months: number;
9
+ days: number;
10
+ hours: number;
11
+ minutes: number;
12
+ seconds: number;
13
+ };
@@ -0,0 +1,2 @@
1
+ export declare const formatNumber: (number: number, minPrecision?: number, maxPrecision?: number) => string;
2
+ export declare const formatNumberSI: (number: number, digits?: number) => string;
@@ -0,0 +1,36 @@
1
+ import { Currency, CurrencyAmount, Price } from '@ape.swap/sdk-core';
2
+ export declare const currencyAmountToPreciseFloat: (currencyAmount: CurrencyAmount<Currency> | undefined) => number | undefined;
3
+ export declare const priceToPreciseFloat: (price: Price<Currency, Currency> | undefined) => number | undefined;
4
+ interface FormatDollarArgs {
5
+ num: number | undefined | null;
6
+ isPrice?: boolean;
7
+ lessPreciseStablecoinValues?: boolean;
8
+ digits?: number;
9
+ round?: boolean;
10
+ }
11
+ /**
12
+ * Returns a USD dollar or equivalent denominated numerical value formatted
13
+ * in human readable string for use in template.
14
+ *
15
+ * Adheres to guidelines for prices and other numbers defined here:
16
+ * https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0
17
+ * @param num numerical value denominated in USD or USD equivalent
18
+ * @param isPrice whether the amount represents a price or not
19
+ * @param lessPreciseStablecoinValues whether or not we should show less precise values for
20
+ * stablecoins (around 1$ in value always) for the sake of readability
21
+ * @param digits number of digits after the decimal for non-price amounts
22
+ * @param round whether or not to round up non-price amounts
23
+ */
24
+ export declare const formatDollar: ({ num, isPrice, lessPreciseStablecoinValues, digits, round, }: FormatDollarArgs) => string;
25
+ export declare const formatValue: ({ num, digits, round }: any) => string;
26
+ /**
27
+ * Returns a numerical amount of any token formatted in human readable string for use in template.
28
+ *
29
+ * For transaction review numbers, such as token quantities, NFT price (token-denominated),
30
+ * network fees, transaction history items. Adheres to guidelines defined here:
31
+ * https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0
32
+ * @param num numerical value denominated in any token
33
+ * @param maxDigits the maximum number of digits that should be shown for the quantity
34
+ */
35
+ export declare const formatTransactionAmount: (num: number | undefined | null, maxDigits?: number) => string;
36
+ export {};
@@ -0,0 +1,4 @@
1
+ import BigNumber from 'bignumber.js';
2
+ export declare const getBalanceNumber: (balance: BigNumber, decimals?: number) => number;
3
+ export declare const getFullDisplayBalance: (balance: BigNumber, decimals?: number) => string;
4
+ export declare const getBNWithDecimals: (balance: BigNumber | string | undefined, decimals?: number) => undefined | BigNumber;
@@ -0,0 +1,3 @@
1
+ import { ChainId, Token } from '@ape.swap/apeswap-lists';
2
+ export declare const getNativeTicker: (chain?: ChainId) => string | undefined;
3
+ export declare const getTokenSymbol: (token: Token) => string;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Format number of seconds into year, month, day, hour, minute, seconds
3
+ *
4
+ * @param seconds
5
+ */
6
+ declare const getTimePeriods: (seconds: number, days?: boolean) => {
7
+ years: number;
8
+ months: number;
9
+ days: number;
10
+ hours: number;
11
+ minutes: number;
12
+ seconds: number;
13
+ };
14
+ export default getTimePeriods;
@@ -0,0 +1,16 @@
1
+ import { Contract } from '@ethersproject/contracts';
2
+ import type { JsonRpcProvider } from '@ethersproject/providers';
3
+ import { ChainId } from '../config/constants/chains';
4
+ export declare function isAddress(value: any): string | false;
5
+ export declare function getContract(address: string, ABI: any, provider: JsonRpcProvider, account?: string): Contract;
6
+ export declare function isSupportedChain(chainId: number | null | undefined): chainId is ChainId;
7
+ export declare function getEtherscanLink(data: string | number, type: 'transaction' | 'token' | 'address' | 'block' | 'countdown', chainId: ChainId): string;
8
+ /**
9
+ * Prompt the user to add a custom token to metamask
10
+ * @param tokenAddress
11
+ * @param tokenSymbol
12
+ * @param tokenDecimals
13
+ * @param tokenImage
14
+ * @returns {boolean} true if the token has been added, false otherwise
15
+ */
16
+ export declare const registerToken: (tokenAddress: string, tokenSymbol: string | undefined, tokenDecimals: number, tokenImage: string | undefined) => Promise<void | null>;
@@ -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,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,5 @@
1
+ export declare const isNumber: (s: string) => boolean;
2
+ export declare const floorFormatter: (n: number) => string;
3
+ export declare const volumeFormatter: (n: number) => string;
4
+ export declare const quantityFormatter: (n: number) => string;
5
+ export declare const roundWholePercentage: (n: number) => string;