@ape.swap/bonds-sdk 5.1.0 → 5.1.1-test.0

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 (1900) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +33 -0
  2. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/dist/_virtual/_nodeUtil.js +4 -0
  4. package/dist/_virtual/_nodeUtil.js.map +1 -0
  5. package/dist/_virtual/bn.js +4 -0
  6. package/dist/_virtual/bn.js.map +1 -0
  7. package/dist/_virtual/common.js +4 -0
  8. package/dist/_virtual/common.js.map +1 -0
  9. package/dist/_virtual/common2.js +4 -0
  10. package/dist/_virtual/common2.js.map +1 -0
  11. package/dist/_virtual/dom-to-image.js +4 -0
  12. package/dist/_virtual/dom-to-image.js.map +1 -0
  13. package/dist/_virtual/hash.js +4 -0
  14. package/dist/_virtual/hash.js.map +1 -0
  15. package/dist/_virtual/index.js +4 -0
  16. package/dist/_virtual/index.js.map +1 -0
  17. package/dist/_virtual/index2.js +4 -0
  18. package/dist/_virtual/index2.js.map +1 -0
  19. package/dist/_virtual/index3.js +4 -0
  20. package/dist/_virtual/index3.js.map +1 -0
  21. package/dist/_virtual/index4.js +4 -0
  22. package/dist/_virtual/index4.js.map +1 -0
  23. package/dist/_virtual/index5.js +4 -0
  24. package/dist/_virtual/index5.js.map +1 -0
  25. package/dist/_virtual/index6.js +4 -0
  26. package/dist/_virtual/index6.js.map +1 -0
  27. package/dist/_virtual/inherits.js +4 -0
  28. package/dist/_virtual/inherits.js.map +1 -0
  29. package/dist/_virtual/inherits_browser.js +4 -0
  30. package/dist/_virtual/inherits_browser.js.map +1 -0
  31. package/dist/_virtual/isBuffer.js +4 -0
  32. package/dist/_virtual/isBuffer.js.map +1 -0
  33. package/dist/_virtual/jsx-runtime.js +4 -0
  34. package/dist/_virtual/jsx-runtime.js.map +1 -0
  35. package/dist/_virtual/main.js +4 -0
  36. package/dist/_virtual/main.js.map +1 -0
  37. package/dist/_virtual/react-is.development.js +4 -0
  38. package/dist/_virtual/react-is.development.js.map +1 -0
  39. package/dist/_virtual/react-is.production.min.js +4 -0
  40. package/dist/_virtual/react-is.production.min.js.map +1 -0
  41. package/dist/_virtual/react-jsx-runtime.development.js +4 -0
  42. package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
  43. package/dist/_virtual/react-jsx-runtime.production.min.js +4 -0
  44. package/dist/_virtual/react-jsx-runtime.production.min.js.map +1 -0
  45. package/dist/_virtual/ripemd.js +4 -0
  46. package/dist/_virtual/ripemd.js.map +1 -0
  47. package/dist/_virtual/sha.js +4 -0
  48. package/dist/_virtual/sha.js.map +1 -0
  49. package/dist/_virtual/sha3.js +4 -0
  50. package/dist/_virtual/sha3.js.map +1 -0
  51. package/dist/_virtual/tslib.es6.js +7 -0
  52. package/dist/_virtual/tslib.es6.js.map +1 -0
  53. package/dist/_virtual/types.js +4 -0
  54. package/dist/_virtual/types.js.map +1 -0
  55. package/dist/_virtual/util.js +4 -0
  56. package/dist/_virtual/util.js.map +1 -0
  57. package/dist/_virtual/utils.js +4 -0
  58. package/dist/_virtual/utils.js.map +1 -0
  59. package/dist/_virtual/zapTokens.js +4 -0
  60. package/dist/_virtual/zapTokens.js.map +1 -0
  61. package/dist/components/BondFilters/BondFilters.js +41 -0
  62. package/dist/components/BondFilters/BondFilters.js.map +1 -0
  63. package/dist/components/ChainOptionList/ChainOptionsButtons.js +32 -0
  64. package/dist/components/ChainOptionList/ChainOptionsButtons.js.map +1 -0
  65. package/dist/components/ChainOptionList/ChainOptionsList.js +41 -0
  66. package/dist/components/ChainOptionList/ChainOptionsList.js.map +1 -0
  67. package/dist/components/ChainOptionList/constants.js +11 -0
  68. package/dist/components/ChainOptionList/constants.js.map +1 -0
  69. package/dist/components/ChainOptionList/styles.js +54 -0
  70. package/dist/components/ChainOptionList/styles.js.map +1 -0
  71. package/dist/components/ConnectButton/AppKitButton.js +23 -0
  72. package/dist/components/ConnectButton/AppKitButton.js.map +1 -0
  73. package/dist/components/ConnectButton/RainbowKitButton.js +36 -0
  74. package/dist/components/ConnectButton/RainbowKitButton.js.map +1 -0
  75. package/dist/components/ConnectButton/index.js +27 -0
  76. package/dist/components/ConnectButton/index.js.map +1 -0
  77. package/dist/components/ConnectSolanaWalletButton/ConnectSolanaWalletButton.js +42 -0
  78. package/dist/components/ConnectSolanaWalletButton/ConnectSolanaWalletButton.js.map +1 -0
  79. package/dist/components/ConnectoToVmBanners/ConnectToEvmBanner.js +67 -0
  80. package/dist/components/ConnectoToVmBanners/ConnectToEvmBanner.js.map +1 -0
  81. package/dist/components/ConnectoToVmBanners/ConnectToSolanaBanner.js +64 -0
  82. package/dist/components/ConnectoToVmBanners/ConnectToSolanaBanner.js.map +1 -0
  83. package/dist/components/CustomClaimModals/AbondModal.js +28 -0
  84. package/dist/components/CustomClaimModals/AbondModal.js.map +1 -0
  85. package/dist/components/CustomClaimModals/OabondModal.js +28 -0
  86. package/dist/components/CustomClaimModals/OabondModal.js.map +1 -0
  87. package/dist/components/CustomClaimModals/PmusdModal.js +31 -0
  88. package/dist/components/CustomClaimModals/PmusdModal.js.map +1 -0
  89. package/dist/components/FavIcons/AddFavToken.js +37 -0
  90. package/dist/components/FavIcons/AddFavToken.js.map +1 -0
  91. package/dist/components/FavIcons/FavFilter.js +32 -0
  92. package/dist/components/FavIcons/FavFilter.js.map +1 -0
  93. package/dist/components/LoadingSpinner/index.js +51 -0
  94. package/dist/components/LoadingSpinner/index.js.map +1 -0
  95. package/dist/components/MenuSelect/MenuSelect.js +32 -0
  96. package/dist/components/MenuSelect/MenuSelect.js.map +1 -0
  97. package/dist/components/MenuSelect/RecommendationSelector.js +58 -0
  98. package/dist/components/MenuSelect/RecommendationSelector.js.map +1 -0
  99. package/dist/components/NetworkFilter/index.js +113 -0
  100. package/dist/components/NetworkFilter/index.js.map +1 -0
  101. package/dist/components/PlaceholderMonkey/index.js +29 -0
  102. package/dist/components/PlaceholderMonkey/index.js.map +1 -0
  103. package/dist/components/ProgressBar/ProgressBar.js +11 -0
  104. package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
  105. package/dist/components/ProgressBar/ProgressBarWrapper.js +24 -0
  106. package/dist/components/ProgressBar/ProgressBarWrapper.js.map +1 -0
  107. package/dist/components/ProgressBar/styles.js +15 -0
  108. package/dist/components/ProgressBar/styles.js.map +1 -0
  109. package/dist/components/ProgressiveImage/index.js +44 -0
  110. package/dist/components/ProgressiveImage/index.js.map +1 -0
  111. package/dist/components/SafeHTMLComponent/index.js +31 -0
  112. package/dist/components/SafeHTMLComponent/index.js.map +1 -0
  113. package/dist/components/SlippageModal/index.js +73 -0
  114. package/dist/components/SlippageModal/index.js.map +1 -0
  115. package/dist/components/StepBubble/index.js +65 -0
  116. package/dist/components/StepBubble/index.js.map +1 -0
  117. package/dist/components/Toast/index.js +65 -0
  118. package/dist/components/Toast/index.js.map +1 -0
  119. package/dist/components/Toast/styles.js +30 -0
  120. package/dist/components/Toast/styles.js.map +1 -0
  121. package/dist/components/TokenInfoAndName/index.js +72 -0
  122. package/dist/components/TokenInfoAndName/index.js.map +1 -0
  123. package/dist/components/TokenSelectorModal/TokenRow.js +39 -0
  124. package/dist/components/TokenSelectorModal/TokenRow.js.map +1 -0
  125. package/dist/components/TokenSelectorModal/index.js +66 -0
  126. package/dist/components/TokenSelectorModal/index.js.map +1 -0
  127. package/dist/components/TokenSelectorPanel/index.js +67 -0
  128. package/dist/components/TokenSelectorPanel/index.js.map +1 -0
  129. package/dist/components/Tooltip/ButtonsRow.js +28 -0
  130. package/dist/components/Tooltip/ButtonsRow.js.map +1 -0
  131. package/dist/components/Tooltip/Tooltip.js +51 -0
  132. package/dist/components/Tooltip/Tooltip.js.map +1 -0
  133. package/dist/components/Tooltip/styles.js +32 -0
  134. package/dist/components/Tooltip/styles.js.map +1 -0
  135. package/dist/components/YouTooltip/YouTooltip.js +45 -0
  136. package/dist/components/YouTooltip/YouTooltip.js.map +1 -0
  137. package/dist/components/uikit-sdk/Button/Button.js +73 -0
  138. package/dist/components/uikit-sdk/Button/Button.js.map +1 -0
  139. package/dist/components/uikit-sdk/Button/IconButton.js +15 -0
  140. package/dist/components/uikit-sdk/Button/IconButton.js.map +1 -0
  141. package/dist/components/uikit-sdk/Button/styles.js +21 -0
  142. package/dist/components/uikit-sdk/Button/styles.js.map +1 -0
  143. package/dist/components/uikit-sdk/Button/types.js +39 -0
  144. package/dist/components/uikit-sdk/Button/types.js.map +1 -0
  145. package/dist/components/uikit-sdk/Checkbox/index.js +27 -0
  146. package/dist/components/uikit-sdk/Checkbox/index.js.map +1 -0
  147. package/dist/components/uikit-sdk/Checkbox/types.js +8 -0
  148. package/dist/components/uikit-sdk/Checkbox/types.js.map +1 -0
  149. package/dist/components/uikit-sdk/Flex/index.js +11 -0
  150. package/dist/components/uikit-sdk/Flex/index.js.map +1 -0
  151. package/dist/components/uikit-sdk/Input/Input.js +55 -0
  152. package/dist/components/uikit-sdk/Input/Input.js.map +1 -0
  153. package/dist/components/uikit-sdk/LoadingDots/index.js +42 -0
  154. package/dist/components/uikit-sdk/LoadingDots/index.js.map +1 -0
  155. package/dist/components/uikit-sdk/Modal/ModalHeader.js +15 -0
  156. package/dist/components/uikit-sdk/Modal/ModalHeader.js.map +1 -0
  157. package/dist/components/uikit-sdk/Modal/index.js +29 -0
  158. package/dist/components/uikit-sdk/Modal/index.js.map +1 -0
  159. package/dist/components/uikit-sdk/Modal/styles.js +47 -0
  160. package/dist/components/uikit-sdk/Modal/styles.js.map +1 -0
  161. package/dist/components/uikit-sdk/Select/Select.js +44 -0
  162. package/dist/components/uikit-sdk/Select/Select.js.map +1 -0
  163. package/dist/components/uikit-sdk/Select/SelectItem.js +22 -0
  164. package/dist/components/uikit-sdk/Select/SelectItem.js.map +1 -0
  165. package/dist/components/uikit-sdk/Select/styles.js +50 -0
  166. package/dist/components/uikit-sdk/Select/styles.js.map +1 -0
  167. package/dist/components/uikit-sdk/Select/types.js +39 -0
  168. package/dist/components/uikit-sdk/Select/types.js.map +1 -0
  169. package/dist/components/uikit-sdk/Skeleton/index.js +13 -0
  170. package/dist/components/uikit-sdk/Skeleton/index.js.map +1 -0
  171. package/dist/components/uikit-sdk/Skeleton/styles.js +43 -0
  172. package/dist/components/uikit-sdk/Skeleton/styles.js.map +1 -0
  173. package/dist/components/uikit-sdk/Skeleton/types.js +13 -0
  174. package/dist/components/uikit-sdk/Skeleton/types.js.map +1 -0
  175. package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +8 -0
  176. package/dist/components/uikit-sdk/Svg/Icons/AllChains.js.map +1 -0
  177. package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +18 -0
  178. package/dist/components/uikit-sdk/Svg/Icons/Arrow.js.map +1 -0
  179. package/dist/components/uikit-sdk/Svg/Icons/Audit.js +18 -0
  180. package/dist/components/uikit-sdk/Svg/Icons/Audit.js.map +1 -0
  181. package/dist/components/uikit-sdk/Svg/Icons/Caret.js +18 -0
  182. package/dist/components/uikit-sdk/Svg/Icons/Caret.js.map +1 -0
  183. package/dist/components/uikit-sdk/Svg/Icons/Close.js +11 -0
  184. package/dist/components/uikit-sdk/Svg/Icons/Close.js.map +1 -0
  185. package/dist/components/uikit-sdk/Svg/Icons/Cog.js +18 -0
  186. package/dist/components/uikit-sdk/Svg/Icons/Cog.js.map +1 -0
  187. package/dist/components/uikit-sdk/Svg/Icons/CoinGecko.js +18 -0
  188. package/dist/components/uikit-sdk/Svg/Icons/CoinGecko.js.map +1 -0
  189. package/dist/components/uikit-sdk/Svg/Icons/DexScreener.js +18 -0
  190. package/dist/components/uikit-sdk/Svg/Icons/DexScreener.js.map +1 -0
  191. package/dist/components/uikit-sdk/Svg/Icons/Discord.js +18 -0
  192. package/dist/components/uikit-sdk/Svg/Icons/Discord.js.map +1 -0
  193. package/dist/components/uikit-sdk/Svg/Icons/Error.js +18 -0
  194. package/dist/components/uikit-sdk/Svg/Icons/Error.js.map +1 -0
  195. package/dist/components/uikit-sdk/Svg/Icons/Expand.js +18 -0
  196. package/dist/components/uikit-sdk/Svg/Icons/Expand.js.map +1 -0
  197. package/dist/components/uikit-sdk/Svg/Icons/External.js +18 -0
  198. package/dist/components/uikit-sdk/Svg/Icons/External.js.map +1 -0
  199. package/dist/components/uikit-sdk/Svg/Icons/Fire.js +8 -0
  200. package/dist/components/uikit-sdk/Svg/Icons/Fire.js.map +1 -0
  201. package/dist/components/uikit-sdk/Svg/Icons/FirePink.js +8 -0
  202. package/dist/components/uikit-sdk/Svg/Icons/FirePink.js.map +1 -0
  203. package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +18 -0
  204. package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js.map +1 -0
  205. package/dist/components/uikit-sdk/Svg/Icons/Insight.js +18 -0
  206. package/dist/components/uikit-sdk/Svg/Icons/Insight.js.map +1 -0
  207. package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +18 -0
  208. package/dist/components/uikit-sdk/Svg/Icons/Instagram.js.map +1 -0
  209. package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +8 -0
  210. package/dist/components/uikit-sdk/Svg/Icons/LineChart.js.map +1 -0
  211. package/dist/components/uikit-sdk/Svg/Icons/Medium.js +18 -0
  212. package/dist/components/uikit-sdk/Svg/Icons/Medium.js.map +1 -0
  213. package/dist/components/uikit-sdk/Svg/Icons/More.js +18 -0
  214. package/dist/components/uikit-sdk/Svg/Icons/More.js.map +1 -0
  215. package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +18 -0
  216. package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js.map +1 -0
  217. package/dist/components/uikit-sdk/Svg/Icons/Question.js +8 -0
  218. package/dist/components/uikit-sdk/Svg/Icons/Question.js.map +1 -0
  219. package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +18 -0
  220. package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js.map +1 -0
  221. package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +18 -0
  222. package/dist/components/uikit-sdk/Svg/Icons/Reddit.js.map +1 -0
  223. package/dist/components/uikit-sdk/Svg/Icons/Search.js +18 -0
  224. package/dist/components/uikit-sdk/Svg/Icons/Search.js.map +1 -0
  225. package/dist/components/uikit-sdk/Svg/Icons/Sort.js +18 -0
  226. package/dist/components/uikit-sdk/Svg/Icons/Sort.js.map +1 -0
  227. package/dist/components/uikit-sdk/Svg/Icons/Star.js +8 -0
  228. package/dist/components/uikit-sdk/Svg/Icons/Star.js.map +1 -0
  229. package/dist/components/uikit-sdk/Svg/Icons/StarFilled.js +8 -0
  230. package/dist/components/uikit-sdk/Svg/Icons/StarFilled.js.map +1 -0
  231. package/dist/components/uikit-sdk/Svg/Icons/Success.js +18 -0
  232. package/dist/components/uikit-sdk/Svg/Icons/Success.js.map +1 -0
  233. package/dist/components/uikit-sdk/Svg/Icons/Tag.js +8 -0
  234. package/dist/components/uikit-sdk/Svg/Icons/Tag.js.map +1 -0
  235. package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +18 -0
  236. package/dist/components/uikit-sdk/Svg/Icons/Telegram.js.map +1 -0
  237. package/dist/components/uikit-sdk/Svg/Icons/Tick.js +18 -0
  238. package/dist/components/uikit-sdk/Svg/Icons/Tick.js.map +1 -0
  239. package/dist/components/uikit-sdk/Svg/Icons/Timer.js +8 -0
  240. package/dist/components/uikit-sdk/Svg/Icons/Timer.js.map +1 -0
  241. package/dist/components/uikit-sdk/Svg/Icons/TurnArrow.js +8 -0
  242. package/dist/components/uikit-sdk/Svg/Icons/TurnArrow.js.map +1 -0
  243. package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +18 -0
  244. package/dist/components/uikit-sdk/Svg/Icons/Twitter.js.map +1 -0
  245. package/dist/components/uikit-sdk/Svg/Icons/URL.js +18 -0
  246. package/dist/components/uikit-sdk/Svg/Icons/URL.js.map +1 -0
  247. package/dist/components/uikit-sdk/Svg/Icons/Website.js +18 -0
  248. package/dist/components/uikit-sdk/Svg/Icons/Website.js.map +1 -0
  249. package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +18 -0
  250. package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js.map +1 -0
  251. package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +18 -0
  252. package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js.map +1 -0
  253. package/dist/components/uikit-sdk/Svg/index.js +229 -0
  254. package/dist/components/uikit-sdk/Svg/index.js.map +1 -0
  255. package/dist/components/uikit-sdk/Svg/styles.js +14 -0
  256. package/dist/components/uikit-sdk/Svg/styles.js.map +1 -0
  257. package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +8 -0
  258. package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js.map +1 -0
  259. package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +8 -0
  260. package/dist/components/uikit-sdk/Svg/tokens/AVAX.js.map +1 -0
  261. package/dist/components/uikit-sdk/Svg/tokens/BASE.js +8 -0
  262. package/dist/components/uikit-sdk/Svg/tokens/BASE.js.map +1 -0
  263. package/dist/components/uikit-sdk/Svg/tokens/BERA.js +8 -0
  264. package/dist/components/uikit-sdk/Svg/tokens/BERA.js.map +1 -0
  265. package/dist/components/uikit-sdk/Svg/tokens/BLAST.js +8 -0
  266. package/dist/components/uikit-sdk/Svg/tokens/BLAST.js.map +1 -0
  267. package/dist/components/uikit-sdk/Svg/tokens/BNB.js +8 -0
  268. package/dist/components/uikit-sdk/Svg/tokens/BNB.js.map +1 -0
  269. package/dist/components/uikit-sdk/Svg/tokens/BSC.js +8 -0
  270. package/dist/components/uikit-sdk/Svg/tokens/BSC.js.map +1 -0
  271. package/dist/components/uikit-sdk/Svg/tokens/CELO.js +8 -0
  272. package/dist/components/uikit-sdk/Svg/tokens/CELO.js.map +1 -0
  273. package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +8 -0
  274. package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js.map +1 -0
  275. package/dist/components/uikit-sdk/Svg/tokens/CROSSFI.js +8 -0
  276. package/dist/components/uikit-sdk/Svg/tokens/CROSSFI.js.map +1 -0
  277. package/dist/components/uikit-sdk/Svg/tokens/ETH.js +8 -0
  278. package/dist/components/uikit-sdk/Svg/tokens/ETH.js.map +1 -0
  279. package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +8 -0
  280. package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js.map +1 -0
  281. package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +8 -0
  282. package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js.map +1 -0
  283. package/dist/components/uikit-sdk/Svg/tokens/GraphLinq.js +8 -0
  284. package/dist/components/uikit-sdk/Svg/tokens/GraphLinq.js.map +1 -0
  285. package/dist/components/uikit-sdk/Svg/tokens/HYPEREVM.js +8 -0
  286. package/dist/components/uikit-sdk/Svg/tokens/HYPEREVM.js.map +1 -0
  287. package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +8 -0
  288. package/dist/components/uikit-sdk/Svg/tokens/INEVM.js.map +1 -0
  289. package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +8 -0
  290. package/dist/components/uikit-sdk/Svg/tokens/IOTA.js.map +1 -0
  291. package/dist/components/uikit-sdk/Svg/tokens/KATANA.js +8 -0
  292. package/dist/components/uikit-sdk/Svg/tokens/KATANA.js.map +1 -0
  293. package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +8 -0
  294. package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js.map +1 -0
  295. package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +8 -0
  296. package/dist/components/uikit-sdk/Svg/tokens/LINEA.js.map +1 -0
  297. package/dist/components/uikit-sdk/Svg/tokens/MEGAETH.js +8 -0
  298. package/dist/components/uikit-sdk/Svg/tokens/MEGAETH.js.map +1 -0
  299. package/dist/components/uikit-sdk/Svg/tokens/MONAD.js +8 -0
  300. package/dist/components/uikit-sdk/Svg/tokens/MONAD.js.map +1 -0
  301. package/dist/components/uikit-sdk/Svg/tokens/OKX.js +8 -0
  302. package/dist/components/uikit-sdk/Svg/tokens/OKX.js.map +1 -0
  303. package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +10 -0
  304. package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js.map +1 -0
  305. package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +8 -0
  306. package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js.map +1 -0
  307. package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +8 -0
  308. package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js.map +1 -0
  309. package/dist/components/uikit-sdk/Svg/tokens/SOL.js +8 -0
  310. package/dist/components/uikit-sdk/Svg/tokens/SOL.js.map +1 -0
  311. package/dist/components/uikit-sdk/Svg/tokens/SONIC.js +8 -0
  312. package/dist/components/uikit-sdk/Svg/tokens/SONIC.js.map +1 -0
  313. package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +8 -0
  314. package/dist/components/uikit-sdk/Svg/tokens/TLOS.js.map +1 -0
  315. package/dist/components/uikit-sdk/Svg/tokens/UNICHAIN.js +8 -0
  316. package/dist/components/uikit-sdk/Svg/tokens/UNICHAIN.js.map +1 -0
  317. package/dist/components/uikit-sdk/Svg/types.js +86 -0
  318. package/dist/components/uikit-sdk/Svg/types.js.map +1 -0
  319. package/dist/components/uikit-sdk/SwiperDots/index.js +16 -0
  320. package/dist/components/uikit-sdk/SwiperDots/index.js.map +1 -0
  321. package/dist/components/uikit-sdk/TabNav/index.js +42 -0
  322. package/dist/components/uikit-sdk/TabNav/index.js.map +1 -0
  323. package/dist/components/uikit-sdk/Tag/ListTag.js +10 -0
  324. package/dist/components/uikit-sdk/Tag/ListTag.js.map +1 -0
  325. package/dist/components/uikit-sdk/Text/index.js +17 -0
  326. package/dist/components/uikit-sdk/Text/index.js.map +1 -0
  327. package/dist/components/uikit-sdk/Text/types.js +16 -0
  328. package/dist/components/uikit-sdk/Text/types.js.map +1 -0
  329. package/dist/components/uikit-sdk/Toggle/index.js +15 -0
  330. package/dist/components/uikit-sdk/Toggle/index.js.map +1 -0
  331. package/dist/components/uikit-sdk/Toggle/styles.js +22 -0
  332. package/dist/components/uikit-sdk/Toggle/styles.js.map +1 -0
  333. package/dist/components/uikit-sdk/TokenImage/index.js +73 -0
  334. package/dist/components/uikit-sdk/TokenImage/index.js.map +1 -0
  335. package/dist/components/uikit-sdk/TooltipBubble/index.js +57 -0
  336. package/dist/components/uikit-sdk/TooltipBubble/index.js.map +1 -0
  337. package/dist/components/uikit-sdk/TooltipBubble/styles.js +55 -0
  338. package/dist/components/uikit-sdk/TooltipBubble/styles.js.map +1 -0
  339. package/dist/components/uikit-sdk/TooltipBubble/types.js +12 -0
  340. package/dist/components/uikit-sdk/TooltipBubble/types.js.map +1 -0
  341. package/dist/config/abi/BOND_2_0_0.json.js +1079 -0
  342. package/dist/config/abi/BOND_2_0_0.json.js.map +1 -0
  343. package/dist/config/abi/BOND_2_4_0.json.js +2409 -0
  344. package/dist/config/abi/BOND_2_4_0.json.js.map +1 -0
  345. package/dist/config/abi/bondNft.json.js +959 -0
  346. package/dist/config/abi/bondNft.json.js.map +1 -0
  347. package/dist/config/abi/deposit.json.js +29 -0
  348. package/dist/config/abi/deposit.json.js.map +1 -0
  349. package/dist/config/abi/depositSig.json.js +39 -0
  350. package/dist/config/abi/depositSig.json.js.map +1 -0
  351. package/dist/config/abi/erc20.json.js +229 -0
  352. package/dist/config/abi/erc20.json.js.map +1 -0
  353. package/dist/config/abi/launchBond_v2_4_1.json.js +2358 -0
  354. package/dist/config/abi/launchBond_v2_4_1.json.js.map +1 -0
  355. package/dist/config/abi/lensContract.json.js +338 -0
  356. package/dist/config/abi/lensContract.json.js.map +1 -0
  357. package/dist/config/abi/multicallv2.json.js +151 -0
  358. package/dist/config/abi/multicallv2.json.js.map +1 -0
  359. package/dist/config/abi/usdtETH.json.js +704 -0
  360. package/dist/config/abi/usdtETH.json.js.map +1 -0
  361. package/dist/config/constants/addresses.js +50 -0
  362. package/dist/config/constants/addresses.js.map +1 -0
  363. package/dist/config/constants/chains.js +139 -0
  364. package/dist/config/constants/chains.js.map +1 -0
  365. package/dist/config/constants/networks.js +89 -0
  366. package/dist/config/constants/networks.js.map +1 -0
  367. package/dist/config/constants/queryKeys.js +29 -0
  368. package/dist/config/constants/queryKeys.js.map +1 -0
  369. package/dist/config/constants/tooltips.js +20 -0
  370. package/dist/config/constants/tooltips.js.map +1 -0
  371. package/dist/config/constants/variables.js +42 -0
  372. package/dist/config/constants/variables.js.map +1 -0
  373. package/dist/config/idl/solanaProgramIdl.json.js +6 -0
  374. package/dist/config/idl/solanaProgramIdl.json.js.map +1 -0
  375. package/dist/constants/solanaConstants.js +41 -0
  376. package/dist/constants/solanaConstants.js.map +1 -0
  377. package/dist/contexts/ModalContext.js +72 -0
  378. package/dist/contexts/ModalContext.js.map +1 -0
  379. package/dist/contexts/Popups.js +29 -0
  380. package/dist/contexts/Popups.js.map +1 -0
  381. package/dist/contexts/SwiperProvider.js +21 -0
  382. package/dist/contexts/SwiperProvider.js.map +1 -0
  383. package/dist/hooks/accounts/useEVMAccount.js +13 -0
  384. package/dist/hooks/accounts/useEVMAccount.js.map +1 -0
  385. package/dist/hooks/accounts/useSOLAccount.js +17 -0
  386. package/dist/hooks/accounts/useSOLAccount.js.map +1 -0
  387. package/dist/hooks/useDebounce.js +21 -0
  388. package/dist/hooks/useDebounce.js.map +1 -0
  389. package/dist/hooks/useIsMobile.js +22 -0
  390. package/dist/hooks/useIsMobile.js.map +1 -0
  391. package/dist/hooks/useModal.js +34 -0
  392. package/dist/hooks/useModal.js.map +1 -0
  393. package/dist/hooks/useMonitorTx.js +26 -0
  394. package/dist/hooks/useMonitorTx.js.map +1 -0
  395. package/dist/hooks/useSendReferenceId.js +22 -0
  396. package/dist/hooks/useSendReferenceId.js.map +1 -0
  397. package/dist/hooks/useSortedZapList.js +56 -0
  398. package/dist/hooks/useSortedZapList.js.map +1 -0
  399. package/dist/hooks/useSwiper.js +13 -0
  400. package/dist/hooks/useSwiper.js.map +1 -0
  401. package/dist/hooks/useTokenFromZapList.js +15 -0
  402. package/dist/hooks/useTokenFromZapList.js.map +1 -0
  403. package/dist/hooks/useTopTags.js +47 -0
  404. package/dist/hooks/useTopTags.js.map +1 -0
  405. package/dist/main.d.ts +23 -0
  406. package/dist/main.js +18 -89923
  407. package/dist/main.js.map +1 -0
  408. package/dist/node_modules/@ape.swap/apeswap-lists/lib/constants/zapTokens.js +698 -0
  409. package/dist/node_modules/@ape.swap/apeswap-lists/lib/constants/zapTokens.js.map +1 -0
  410. package/dist/node_modules/@ape.swap/apeswap-lists/lib/main.js +27 -0
  411. package/dist/node_modules/@ape.swap/apeswap-lists/lib/main.js.map +1 -0
  412. package/dist/node_modules/@ape.swap/apeswap-lists/lib/types/index.js +1078 -0
  413. package/dist/node_modules/@ape.swap/apeswap-lists/lib/types/index.js.map +1 -0
  414. package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js +500 -0
  415. package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js.map +1 -0
  416. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +56 -0
  417. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
  418. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +10 -0
  419. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
  420. package/dist/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +152 -0
  421. package/dist/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js.map +1 -0
  422. package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js +153 -0
  423. package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -0
  424. package/dist/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js +22 -0
  425. package/dist/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js.map +1 -0
  426. package/dist/node_modules/@emotion/react/package.json.js +6 -0
  427. package/dist/node_modules/@emotion/react/package.json.js.map +1 -0
  428. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +225 -0
  429. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
  430. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +139 -0
  431. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
  432. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
  433. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
  434. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +14 -0
  435. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js.map +1 -0
  436. package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js +55 -0
  437. package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js.map +1 -0
  438. package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +17 -0
  439. package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js.map +1 -0
  440. package/dist/node_modules/@ethersproject/abi/lib.esm/_version.js +4 -0
  441. package/dist/node_modules/@ethersproject/abi/lib.esm/_version.js.map +1 -0
  442. package/dist/node_modules/@ethersproject/abi/lib.esm/abi-coder.js +97 -0
  443. package/dist/node_modules/@ethersproject/abi/lib.esm/abi-coder.js.map +1 -0
  444. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js +149 -0
  445. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js.map +1 -0
  446. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/address.js +27 -0
  447. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/address.js.map +1 -0
  448. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js +21 -0
  449. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js.map +1 -0
  450. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/array.js +211 -0
  451. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/array.js.map +1 -0
  452. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/boolean.js +19 -0
  453. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/boolean.js.map +1 -0
  454. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/bytes.js +31 -0
  455. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/bytes.js.map +1 -0
  456. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js +27 -0
  457. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js.map +1 -0
  458. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/null.js +23 -0
  459. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/null.js.map +1 -0
  460. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/number.js +44 -0
  461. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/number.js.map +1 -0
  462. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/string.js +20 -0
  463. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/string.js.map +1 -0
  464. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/tuple.js +59 -0
  465. package/dist/node_modules/@ethersproject/abi/lib.esm/coders/tuple.js.map +1 -0
  466. package/dist/node_modules/@ethersproject/abi/lib.esm/fragments.js +855 -0
  467. package/dist/node_modules/@ethersproject/abi/lib.esm/fragments.js.map +1 -0
  468. package/dist/node_modules/@ethersproject/abi/lib.esm/interface.js +610 -0
  469. package/dist/node_modules/@ethersproject/abi/lib.esm/interface.js.map +1 -0
  470. package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js +4 -0
  471. package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js.map +1 -0
  472. package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/index.js +67 -0
  473. package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/index.js.map +1 -0
  474. package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js +4 -0
  475. package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js.map +1 -0
  476. package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/index.js +303 -0
  477. package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/index.js.map +1 -0
  478. package/dist/node_modules/@ethersproject/address/lib.esm/_version.js +4 -0
  479. package/dist/node_modules/@ethersproject/address/lib.esm/_version.js.map +1 -0
  480. package/dist/node_modules/@ethersproject/address/lib.esm/index.js +111 -0
  481. package/dist/node_modules/@ethersproject/address/lib.esm/index.js.map +1 -0
  482. package/dist/node_modules/@ethersproject/base64/lib.esm/base64.js +21 -0
  483. package/dist/node_modules/@ethersproject/base64/lib.esm/base64.js.map +1 -0
  484. package/dist/node_modules/@ethersproject/basex/lib.esm/index.js +121 -0
  485. package/dist/node_modules/@ethersproject/basex/lib.esm/index.js.map +1 -0
  486. package/dist/node_modules/@ethersproject/bignumber/lib.esm/_version.js +4 -0
  487. package/dist/node_modules/@ethersproject/bignumber/lib.esm/_version.js.map +1 -0
  488. package/dist/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js +296 -0
  489. package/dist/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js.map +1 -0
  490. package/dist/node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js +361 -0
  491. package/dist/node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js.map +1 -0
  492. package/dist/node_modules/@ethersproject/bytes/lib.esm/_version.js +4 -0
  493. package/dist/node_modules/@ethersproject/bytes/lib.esm/_version.js.map +1 -0
  494. package/dist/node_modules/@ethersproject/bytes/lib.esm/index.js +403 -0
  495. package/dist/node_modules/@ethersproject/bytes/lib.esm/index.js.map +1 -0
  496. package/dist/node_modules/@ethersproject/constants/lib.esm/addresses.js +4 -0
  497. package/dist/node_modules/@ethersproject/constants/lib.esm/addresses.js.map +1 -0
  498. package/dist/node_modules/@ethersproject/constants/lib.esm/bignumbers.js +9 -0
  499. package/dist/node_modules/@ethersproject/constants/lib.esm/bignumbers.js.map +1 -0
  500. package/dist/node_modules/@ethersproject/constants/lib.esm/hashes.js +4 -0
  501. package/dist/node_modules/@ethersproject/constants/lib.esm/hashes.js.map +1 -0
  502. package/dist/node_modules/@ethersproject/contracts/lib.esm/_version.js +4 -0
  503. package/dist/node_modules/@ethersproject/contracts/lib.esm/_version.js.map +1 -0
  504. package/dist/node_modules/@ethersproject/contracts/lib.esm/index.js +894 -0
  505. package/dist/node_modules/@ethersproject/contracts/lib.esm/index.js.map +1 -0
  506. package/dist/node_modules/@ethersproject/hash/lib.esm/_version.js +4 -0
  507. package/dist/node_modules/@ethersproject/hash/lib.esm/_version.js.map +1 -0
  508. package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.js +257 -0
  509. package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.js.map +1 -0
  510. package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js +37 -0
  511. package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js.map +1 -0
  512. package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js +136 -0
  513. package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js.map +1 -0
  514. package/dist/node_modules/@ethersproject/hash/lib.esm/id.js +9 -0
  515. package/dist/node_modules/@ethersproject/hash/lib.esm/id.js.map +1 -0
  516. package/dist/node_modules/@ethersproject/hash/lib.esm/namehash.js +65 -0
  517. package/dist/node_modules/@ethersproject/hash/lib.esm/namehash.js.map +1 -0
  518. package/dist/node_modules/@ethersproject/hash/lib.esm/typed-data.js +444 -0
  519. package/dist/node_modules/@ethersproject/hash/lib.esm/typed-data.js.map +1 -0
  520. package/dist/node_modules/@ethersproject/keccak256/lib.esm/index.js +9 -0
  521. package/dist/node_modules/@ethersproject/keccak256/lib.esm/index.js.map +1 -0
  522. package/dist/node_modules/@ethersproject/logger/lib.esm/_version.js +4 -0
  523. package/dist/node_modules/@ethersproject/logger/lib.esm/_version.js.map +1 -0
  524. package/dist/node_modules/@ethersproject/logger/lib.esm/index.js +353 -0
  525. package/dist/node_modules/@ethersproject/logger/lib.esm/index.js.map +1 -0
  526. package/dist/node_modules/@ethersproject/networks/lib.esm/_version.js +4 -0
  527. package/dist/node_modules/@ethersproject/networks/lib.esm/_version.js.map +1 -0
  528. package/dist/node_modules/@ethersproject/networks/lib.esm/index.js +267 -0
  529. package/dist/node_modules/@ethersproject/networks/lib.esm/index.js.map +1 -0
  530. package/dist/node_modules/@ethersproject/properties/lib.esm/_version.js +4 -0
  531. package/dist/node_modules/@ethersproject/properties/lib.esm/_version.js.map +1 -0
  532. package/dist/node_modules/@ethersproject/properties/lib.esm/index.js +128 -0
  533. package/dist/node_modules/@ethersproject/properties/lib.esm/index.js.map +1 -0
  534. package/dist/node_modules/@ethersproject/providers/lib.esm/_version.js +4 -0
  535. package/dist/node_modules/@ethersproject/providers/lib.esm/_version.js.map +1 -0
  536. package/dist/node_modules/@ethersproject/providers/lib.esm/base-provider.js +2008 -0
  537. package/dist/node_modules/@ethersproject/providers/lib.esm/base-provider.js.map +1 -0
  538. package/dist/node_modules/@ethersproject/providers/lib.esm/formatter.js +423 -0
  539. package/dist/node_modules/@ethersproject/providers/lib.esm/formatter.js.map +1 -0
  540. package/dist/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js +675 -0
  541. package/dist/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js.map +1 -0
  542. package/dist/node_modules/@ethersproject/providers/node_modules/bech32/index.js +188 -0
  543. package/dist/node_modules/@ethersproject/providers/node_modules/bech32/index.js.map +1 -0
  544. package/dist/node_modules/@ethersproject/rlp/lib.esm/_version.js +4 -0
  545. package/dist/node_modules/@ethersproject/rlp/lib.esm/_version.js.map +1 -0
  546. package/dist/node_modules/@ethersproject/rlp/lib.esm/index.js +121 -0
  547. package/dist/node_modules/@ethersproject/rlp/lib.esm/index.js.map +1 -0
  548. package/dist/node_modules/@ethersproject/sha2/lib.esm/sha2.js +9 -0
  549. package/dist/node_modules/@ethersproject/sha2/lib.esm/sha2.js.map +1 -0
  550. package/dist/node_modules/@ethersproject/signing-key/lib.esm/_version.js +4 -0
  551. package/dist/node_modules/@ethersproject/signing-key/lib.esm/_version.js.map +1 -0
  552. package/dist/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js +2479 -0
  553. package/dist/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js.map +1 -0
  554. package/dist/node_modules/@ethersproject/signing-key/lib.esm/index.js +77 -0
  555. package/dist/node_modules/@ethersproject/signing-key/lib.esm/index.js.map +1 -0
  556. package/dist/node_modules/@ethersproject/strings/lib.esm/_version.js +4 -0
  557. package/dist/node_modules/@ethersproject/strings/lib.esm/_version.js.map +1 -0
  558. package/dist/node_modules/@ethersproject/strings/lib.esm/utf8.js +220 -0
  559. package/dist/node_modules/@ethersproject/strings/lib.esm/utf8.js.map +1 -0
  560. package/dist/node_modules/@ethersproject/transactions/lib.esm/_version.js +4 -0
  561. package/dist/node_modules/@ethersproject/transactions/lib.esm/_version.js.map +1 -0
  562. package/dist/node_modules/@ethersproject/transactions/lib.esm/index.js +280 -0
  563. package/dist/node_modules/@ethersproject/transactions/lib.esm/index.js.map +1 -0
  564. package/dist/node_modules/@ethersproject/units/lib.esm/_version.js +4 -0
  565. package/dist/node_modules/@ethersproject/units/lib.esm/_version.js.map +1 -0
  566. package/dist/node_modules/@ethersproject/units/lib.esm/index.js +29 -0
  567. package/dist/node_modules/@ethersproject/units/lib.esm/index.js.map +1 -0
  568. package/dist/node_modules/@ethersproject/web/lib.esm/_version.js +4 -0
  569. package/dist/node_modules/@ethersproject/web/lib.esm/_version.js.map +1 -0
  570. package/dist/node_modules/@ethersproject/web/lib.esm/geturl.js +70 -0
  571. package/dist/node_modules/@ethersproject/web/lib.esm/geturl.js.map +1 -0
  572. package/dist/node_modules/@ethersproject/web/lib.esm/index.js +405 -0
  573. package/dist/node_modules/@ethersproject/web/lib.esm/index.js.map +1 -0
  574. package/dist/node_modules/@jup-ag/api/dist/index.js +792 -0
  575. package/dist/node_modules/@jup-ag/api/dist/index.js.map +1 -0
  576. package/dist/node_modules/@kurkle/color/dist/color.esm.js +583 -0
  577. package/dist/node_modules/@kurkle/color/dist/color.esm.js.map +1 -0
  578. package/dist/node_modules/@theme-ui/color-modes/dist/theme-ui-color-modes.esm.js +382 -0
  579. package/dist/node_modules/@theme-ui/color-modes/dist/theme-ui-color-modes.esm.js.map +1 -0
  580. package/dist/node_modules/@theme-ui/components/dist/theme-ui-components.esm.js +322 -0
  581. package/dist/node_modules/@theme-ui/components/dist/theme-ui-components.esm.js.map +1 -0
  582. package/dist/node_modules/@theme-ui/core/dist/parseProps-eab0b26e.esm.js +20 -0
  583. package/dist/node_modules/@theme-ui/core/dist/parseProps-eab0b26e.esm.js.map +1 -0
  584. package/dist/node_modules/@theme-ui/core/dist/theme-ui-core.esm.js +76 -0
  585. package/dist/node_modules/@theme-ui/core/dist/theme-ui-core.esm.js.map +1 -0
  586. package/dist/node_modules/@theme-ui/core/jsx-runtime/dist/theme-ui-core-jsx-runtime.esm.js +9 -0
  587. package/dist/node_modules/@theme-ui/core/jsx-runtime/dist/theme-ui-core-jsx-runtime.esm.js.map +1 -0
  588. package/dist/node_modules/@theme-ui/css/dist/theme-ui-css.esm.js +331 -0
  589. package/dist/node_modules/@theme-ui/css/dist/theme-ui-css.esm.js.map +1 -0
  590. package/dist/node_modules/@theme-ui/theme-provider/dist/theme-ui-theme-provider.esm.js +46 -0
  591. package/dist/node_modules/@theme-ui/theme-provider/dist/theme-ui-theme-provider.esm.js.map +1 -0
  592. package/dist/node_modules/available-typed-arrays/index.js +30 -0
  593. package/dist/node_modules/available-typed-arrays/index.js.map +1 -0
  594. package/dist/node_modules/base64-js/index.js +153 -0
  595. package/dist/node_modules/base64-js/index.js.map +1 -0
  596. package/dist/node_modules/bignumber.js/bignumber.js +2908 -0
  597. package/dist/node_modules/bignumber.js/bignumber.js.map +1 -0
  598. package/dist/node_modules/bn.js/lib/bn.js +3364 -0
  599. package/dist/node_modules/bn.js/lib/bn.js.map +1 -0
  600. package/dist/node_modules/buffer/index.js +2111 -0
  601. package/dist/node_modules/buffer/index.js.map +1 -0
  602. package/dist/node_modules/call-bind/index.js +41 -0
  603. package/dist/node_modules/call-bind/index.js.map +1 -0
  604. package/dist/node_modules/call-bind-apply-helpers/actualApply.js +25 -0
  605. package/dist/node_modules/call-bind-apply-helpers/actualApply.js.map +1 -0
  606. package/dist/node_modules/call-bind-apply-helpers/applyBind.js +24 -0
  607. package/dist/node_modules/call-bind-apply-helpers/applyBind.js.map +1 -0
  608. package/dist/node_modules/call-bind-apply-helpers/functionApply.js +14 -0
  609. package/dist/node_modules/call-bind-apply-helpers/functionApply.js.map +1 -0
  610. package/dist/node_modules/call-bind-apply-helpers/functionCall.js +14 -0
  611. package/dist/node_modules/call-bind-apply-helpers/functionCall.js.map +1 -0
  612. package/dist/node_modules/call-bind-apply-helpers/index.js +30 -0
  613. package/dist/node_modules/call-bind-apply-helpers/index.js.map +1 -0
  614. package/dist/node_modules/call-bind-apply-helpers/reflectApply.js +14 -0
  615. package/dist/node_modules/call-bind-apply-helpers/reflectApply.js.map +1 -0
  616. package/dist/node_modules/call-bound/index.js +32 -0
  617. package/dist/node_modules/call-bound/index.js.map +1 -0
  618. package/dist/node_modules/chart.js/dist/chart.js +8079 -0
  619. package/dist/node_modules/chart.js/dist/chart.js.map +1 -0
  620. package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js +2685 -0
  621. package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js.map +1 -0
  622. package/dist/node_modules/deepmerge/dist/cjs.js +138 -0
  623. package/dist/node_modules/deepmerge/dist/cjs.js.map +1 -0
  624. package/dist/node_modules/define-data-property/index.js +71 -0
  625. package/dist/node_modules/define-data-property/index.js.map +1 -0
  626. package/dist/node_modules/dom-to-image/src/dom-to-image.js +776 -0
  627. package/dist/node_modules/dom-to-image/src/dom-to-image.js.map +1 -0
  628. package/dist/node_modules/dunder-proto/get.js +43 -0
  629. package/dist/node_modules/dunder-proto/get.js.map +1 -0
  630. package/dist/node_modules/es-define-property/index.js +24 -0
  631. package/dist/node_modules/es-define-property/index.js.map +1 -0
  632. package/dist/node_modules/es-errors/eval.js +14 -0
  633. package/dist/node_modules/es-errors/eval.js.map +1 -0
  634. package/dist/node_modules/es-errors/index.js +14 -0
  635. package/dist/node_modules/es-errors/index.js.map +1 -0
  636. package/dist/node_modules/es-errors/range.js +14 -0
  637. package/dist/node_modules/es-errors/range.js.map +1 -0
  638. package/dist/node_modules/es-errors/ref.js +14 -0
  639. package/dist/node_modules/es-errors/ref.js.map +1 -0
  640. package/dist/node_modules/es-errors/syntax.js +14 -0
  641. package/dist/node_modules/es-errors/syntax.js.map +1 -0
  642. package/dist/node_modules/es-errors/type.js +14 -0
  643. package/dist/node_modules/es-errors/type.js.map +1 -0
  644. package/dist/node_modules/es-errors/uri.js +14 -0
  645. package/dist/node_modules/es-errors/uri.js.map +1 -0
  646. package/dist/node_modules/es-object-atoms/index.js +14 -0
  647. package/dist/node_modules/es-object-atoms/index.js.map +1 -0
  648. package/dist/node_modules/fancy-canvas/canvas-element-bitmap-size.js +239 -0
  649. package/dist/node_modules/fancy-canvas/canvas-element-bitmap-size.js.map +1 -0
  650. package/dist/node_modules/fancy-canvas/canvas-rendering-target.js +85 -0
  651. package/dist/node_modules/fancy-canvas/canvas-rendering-target.js.map +1 -0
  652. package/dist/node_modules/fancy-canvas/device-pixel-ratio.js +63 -0
  653. package/dist/node_modules/fancy-canvas/device-pixel-ratio.js.map +1 -0
  654. package/dist/node_modules/fancy-canvas/size.js +20 -0
  655. package/dist/node_modules/fancy-canvas/size.js.map +1 -0
  656. package/dist/node_modules/for-each/index.js +81 -0
  657. package/dist/node_modules/for-each/index.js.map +1 -0
  658. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +12 -0
  659. package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js.map +1 -0
  660. package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +323 -0
  661. package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js.map +1 -0
  662. package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +118 -0
  663. package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js.map +1 -0
  664. package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +388 -0
  665. package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js.map +1 -0
  666. package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +18 -0
  667. package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js.map +1 -0
  668. package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +15 -0
  669. package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js.map +1 -0
  670. package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +43 -0
  671. package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js.map +1 -0
  672. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +25 -0
  673. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js.map +1 -0
  674. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +13 -0
  675. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js.map +1 -0
  676. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +7 -0
  677. package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js.map +1 -0
  678. package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +88 -0
  679. package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js.map +1 -0
  680. package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +52 -0
  681. package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js.map +1 -0
  682. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +28 -0
  683. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js.map +1 -0
  684. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +87 -0
  685. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js.map +1 -0
  686. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +169 -0
  687. package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js.map +1 -0
  688. package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +10 -0
  689. package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js.map +1 -0
  690. package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.js +81 -0
  691. package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.js.map +1 -0
  692. package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.js +42 -0
  693. package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.js.map +1 -0
  694. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +107 -0
  695. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js.map +1 -0
  696. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +77 -0
  697. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
  698. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +67 -0
  699. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
  700. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +27 -0
  701. package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js.map +1 -0
  702. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +7 -0
  703. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js.map +1 -0
  704. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +8 -0
  705. package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
  706. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +41 -0
  707. package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js.map +1 -0
  708. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +31 -0
  709. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js.map +1 -0
  710. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +8 -0
  711. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js.map +1 -0
  712. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +6 -0
  713. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js.map +1 -0
  714. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +16 -0
  715. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js.map +1 -0
  716. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +11 -0
  717. package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js.map +1 -0
  718. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +77 -0
  719. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
  720. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +61 -0
  721. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
  722. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +166 -0
  723. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
  724. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +44 -0
  725. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
  726. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +15 -0
  727. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
  728. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +6 -0
  729. package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
  730. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +6 -0
  731. package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
  732. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +13 -0
  733. package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
  734. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +14 -0
  735. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
  736. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +6 -0
  737. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
  738. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +18 -0
  739. package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
  740. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +9 -0
  741. package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
  742. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +9 -0
  743. package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
  744. package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +6 -0
  745. package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js.map +1 -0
  746. package/dist/node_modules/framer-motion/dist/es/easing/back.js +10 -0
  747. package/dist/node_modules/framer-motion/dist/es/easing/back.js.map +1 -0
  748. package/dist/node_modules/framer-motion/dist/es/easing/circ.js +9 -0
  749. package/dist/node_modules/framer-motion/dist/es/easing/circ.js.map +1 -0
  750. package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +53 -0
  751. package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js.map +1 -0
  752. package/dist/node_modules/framer-motion/dist/es/easing/ease.js +8 -0
  753. package/dist/node_modules/framer-motion/dist/es/easing/ease.js.map +1 -0
  754. package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +6 -0
  755. package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js.map +1 -0
  756. package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +6 -0
  757. package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js.map +1 -0
  758. package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +6 -0
  759. package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js.map +1 -0
  760. package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +39 -0
  761. package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js.map +1 -0
  762. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +7 -0
  763. package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js.map +1 -0
  764. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +9 -0
  765. package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
  766. package/dist/node_modules/framer-motion/dist/es/events/event-info.js +17 -0
  767. package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
  768. package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +72 -0
  769. package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js.map +1 -0
  770. package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +8 -0
  771. package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js.map +1 -0
  772. package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +6 -0
  773. package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js.map +1 -0
  774. package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +82 -0
  775. package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js.map +1 -0
  776. package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +32 -0
  777. package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js.map +1 -0
  778. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +485 -0
  779. package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
  780. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +29 -0
  781. package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
  782. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +131 -0
  783. package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
  784. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +42 -0
  785. package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
  786. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +32 -0
  787. package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
  788. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +158 -0
  789. package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
  790. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +52 -0
  791. package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
  792. package/dist/node_modules/framer-motion/dist/es/gestures/press.js +32 -0
  793. package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
  794. package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +10 -0
  795. package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js.map +1 -0
  796. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +32 -0
  797. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
  798. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +42 -0
  799. package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
  800. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +14 -0
  801. package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
  802. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +29 -0
  803. package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
  804. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +18 -0
  805. package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
  806. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +22 -0
  807. package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
  808. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +134 -0
  809. package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
  810. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +12 -0
  811. package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
  812. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +13 -0
  813. package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
  814. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +73 -0
  815. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
  816. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +50 -0
  817. package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
  818. package/dist/node_modules/framer-motion/dist/es/motion/index.js +102 -0
  819. package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
  820. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +12 -0
  821. package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js.map +1 -0
  822. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
  823. package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
  824. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +39 -0
  825. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
  826. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +135 -0
  827. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
  828. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +89 -0
  829. package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
  830. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +58 -0
  831. package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
  832. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +95 -0
  833. package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js.map +1 -0
  834. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +34 -0
  835. package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js.map +1 -0
  836. package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +32 -0
  837. package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js.map +1 -0
  838. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +120 -0
  839. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js.map +1 -0
  840. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +53 -0
  841. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js.map +1 -0
  842. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +55 -0
  843. package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js.map +1 -0
  844. package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +18 -0
  845. package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js.map +1 -0
  846. package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +32 -0
  847. package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js.map +1 -0
  848. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +14 -0
  849. package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
  850. package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +28 -0
  851. package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
  852. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +1585 -0
  853. package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js.map +1 -0
  854. package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +20 -0
  855. package/dist/node_modules/framer-motion/dist/es/projection/node/state.js.map +1 -0
  856. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +113 -0
  857. package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js.map +1 -0
  858. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +42 -0
  859. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js.map +1 -0
  860. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +36 -0
  861. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
  862. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +7 -0
  863. package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js.map +1 -0
  864. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +50 -0
  865. package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js.map +1 -0
  866. package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
  867. package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js.map +1 -0
  868. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +27 -0
  869. package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js.map +1 -0
  870. package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +18 -0
  871. package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js.map +1 -0
  872. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +480 -0
  873. package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js.map +1 -0
  874. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +24 -0
  875. package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js.map +1 -0
  876. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +39 -0
  877. package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
  878. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +16 -0
  879. package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js.map +1 -0
  880. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
  881. package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
  882. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +132 -0
  883. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js.map +1 -0
  884. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +44 -0
  885. package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js.map +1 -0
  886. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +15 -0
  887. package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
  888. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +34 -0
  889. package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
  890. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +7 -0
  891. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
  892. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +43 -0
  893. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js.map +1 -0
  894. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +60 -0
  895. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
  896. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +16 -0
  897. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js.map +1 -0
  898. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +31 -0
  899. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
  900. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
  901. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js.map +1 -0
  902. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +54 -0
  903. package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js.map +1 -0
  904. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +16 -0
  905. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js.map +1 -0
  906. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +31 -0
  907. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js.map +1 -0
  908. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +16 -0
  909. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js.map +1 -0
  910. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +16 -0
  911. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js.map +1 -0
  912. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +11 -0
  913. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js.map +1 -0
  914. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +42 -0
  915. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js.map +1 -0
  916. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +19 -0
  917. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js.map +1 -0
  918. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +7 -0
  919. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js.map +1 -0
  920. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +32 -0
  921. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js.map +1 -0
  922. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +10 -0
  923. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js.map +1 -0
  924. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +9 -0
  925. package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js.map +1 -0
  926. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +44 -0
  927. package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js.map +1 -0
  928. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +13 -0
  929. package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js.map +1 -0
  930. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +58 -0
  931. package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
  932. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +66 -0
  933. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js.map +1 -0
  934. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +63 -0
  935. package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js.map +1 -0
  936. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
  937. package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
  938. package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +14 -0
  939. package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js.map +1 -0
  940. package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +29 -0
  941. package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js.map +1 -0
  942. package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +31 -0
  943. package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js.map +1 -0
  944. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +10 -0
  945. package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js.map +1 -0
  946. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +21 -0
  947. package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
  948. package/dist/node_modules/framer-motion/dist/es/render/store.js +4 -0
  949. package/dist/node_modules/framer-motion/dist/es/render/store.js.map +1 -0
  950. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +46 -0
  951. package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js.map +1 -0
  952. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +74 -0
  953. package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js.map +1 -0
  954. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +34 -0
  955. package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
  956. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +25 -0
  957. package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
  958. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +53 -0
  959. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js.map +1 -0
  960. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +31 -0
  961. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
  962. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +9 -0
  963. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
  964. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
  965. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
  966. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +33 -0
  967. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js.map +1 -0
  968. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +13 -0
  969. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js.map +1 -0
  970. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +20 -0
  971. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
  972. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +19 -0
  973. package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js.map +1 -0
  974. package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +165 -0
  975. package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js.map +1 -0
  976. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +333 -0
  977. package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js.map +1 -0
  978. package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
  979. package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js.map +1 -0
  980. package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +25 -0
  981. package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js.map +1 -0
  982. package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +29 -0
  983. package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js.map +1 -0
  984. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +14 -0
  985. package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js.map +1 -0
  986. package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +9 -0
  987. package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js.map +1 -0
  988. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +60 -0
  989. package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js.map +1 -0
  990. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +9 -0
  991. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
  992. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +37 -0
  993. package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js.map +1 -0
  994. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +28 -0
  995. package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js.map +1 -0
  996. package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +13 -0
  997. package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js.map +1 -0
  998. package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +6 -0
  999. package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js.map +1 -0
  1000. package/dist/node_modules/framer-motion/dist/es/utils/array.js +12 -0
  1001. package/dist/node_modules/framer-motion/dist/es/utils/array.js.map +1 -0
  1002. package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +10 -0
  1003. package/dist/node_modules/framer-motion/dist/es/utils/clamp.js.map +1 -0
  1004. package/dist/node_modules/framer-motion/dist/es/utils/delay.js +22 -0
  1005. package/dist/node_modules/framer-motion/dist/es/utils/delay.js.map +1 -0
  1006. package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
  1007. package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
  1008. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +7 -0
  1009. package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
  1010. package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +43 -0
  1011. package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js.map +1 -0
  1012. package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +79 -0
  1013. package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js.map +1 -0
  1014. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
  1015. package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
  1016. package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +7 -0
  1017. package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js.map +1 -0
  1018. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
  1019. package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
  1020. package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +7 -0
  1021. package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js.map +1 -0
  1022. package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +48 -0
  1023. package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js.map +1 -0
  1024. package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +95 -0
  1025. package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js.map +1 -0
  1026. package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +6 -0
  1027. package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js.map +1 -0
  1028. package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +15 -0
  1029. package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js.map +1 -0
  1030. package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +27 -0
  1031. package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js.map +1 -0
  1032. package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +17 -0
  1033. package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js.map +1 -0
  1034. package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +10 -0
  1035. package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js.map +1 -0
  1036. package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +14 -0
  1037. package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js.map +1 -0
  1038. package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +6 -0
  1039. package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js.map +1 -0
  1040. package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +12 -0
  1041. package/dist/node_modules/framer-motion/dist/es/utils/pipe.js.map +1 -0
  1042. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +20 -0
  1043. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js.map +1 -0
  1044. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +6 -0
  1045. package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js.map +1 -0
  1046. package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +12 -0
  1047. package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js.map +1 -0
  1048. package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +15 -0
  1049. package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js.map +1 -0
  1050. package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +41 -0
  1051. package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js.map +1 -0
  1052. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +19 -0
  1053. package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
  1054. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +7 -0
  1055. package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
  1056. package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +12 -0
  1057. package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js.map +1 -0
  1058. package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +10 -0
  1059. package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js.map +1 -0
  1060. package/dist/node_modules/framer-motion/dist/es/value/index.js +314 -0
  1061. package/dist/node_modules/framer-motion/dist/es/value/index.js.map +1 -0
  1062. package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +41 -0
  1063. package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js.map +1 -0
  1064. package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +23 -0
  1065. package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js.map +1 -0
  1066. package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +28 -0
  1067. package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js.map +1 -0
  1068. package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +26 -0
  1069. package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js.map +1 -0
  1070. package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +30 -0
  1071. package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js.map +1 -0
  1072. package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +31 -0
  1073. package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js.map +1 -0
  1074. package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +93 -0
  1075. package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js.map +1 -0
  1076. package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +18 -0
  1077. package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js.map +1 -0
  1078. package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +18 -0
  1079. package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js.map +1 -0
  1080. package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
  1081. package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js.map +1 -0
  1082. package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
  1083. package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js.map +1 -0
  1084. package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
  1085. package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js.map +1 -0
  1086. package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +6 -0
  1087. package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js.map +1 -0
  1088. package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
  1089. package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js.map +1 -0
  1090. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +15 -0
  1091. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js.map +1 -0
  1092. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +8 -0
  1093. package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js.map +1 -0
  1094. package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
  1095. package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js.map +1 -0
  1096. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +17 -0
  1097. package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js.map +1 -0
  1098. package/dist/node_modules/function-bind/implementation.js +94 -0
  1099. package/dist/node_modules/function-bind/implementation.js.map +1 -0
  1100. package/dist/node_modules/function-bind/index.js +17 -0
  1101. package/dist/node_modules/function-bind/index.js.map +1 -0
  1102. package/dist/node_modules/generator-function/index.js +17 -0
  1103. package/dist/node_modules/generator-function/index.js.map +1 -0
  1104. package/dist/node_modules/get-intrinsic/index.js +414 -0
  1105. package/dist/node_modules/get-intrinsic/index.js.map +1 -0
  1106. package/dist/node_modules/get-proto/Object.getPrototypeOf.js +18 -0
  1107. package/dist/node_modules/get-proto/Object.getPrototypeOf.js.map +1 -0
  1108. package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js +14 -0
  1109. package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js.map +1 -0
  1110. package/dist/node_modules/get-proto/index.js +41 -0
  1111. package/dist/node_modules/get-proto/index.js.map +1 -0
  1112. package/dist/node_modules/gopd/gOPD.js +14 -0
  1113. package/dist/node_modules/gopd/gOPD.js.map +1 -0
  1114. package/dist/node_modules/gopd/index.js +27 -0
  1115. package/dist/node_modules/gopd/index.js.map +1 -0
  1116. package/dist/node_modules/has-property-descriptors/index.js +34 -0
  1117. package/dist/node_modules/has-property-descriptors/index.js.map +1 -0
  1118. package/dist/node_modules/has-symbols/index.js +26 -0
  1119. package/dist/node_modules/has-symbols/index.js.map +1 -0
  1120. package/dist/node_modules/has-symbols/shams.js +55 -0
  1121. package/dist/node_modules/has-symbols/shams.js.map +1 -0
  1122. package/dist/node_modules/has-tostringtag/shams.js +20 -0
  1123. package/dist/node_modules/has-tostringtag/shams.js.map +1 -0
  1124. package/dist/node_modules/hash.js/lib/hash/common.js +98 -0
  1125. package/dist/node_modules/hash.js/lib/hash/common.js.map +1 -0
  1126. package/dist/node_modules/hash.js/lib/hash/hmac.js +52 -0
  1127. package/dist/node_modules/hash.js/lib/hash/hmac.js.map +1 -0
  1128. package/dist/node_modules/hash.js/lib/hash/ripemd.js +153 -0
  1129. package/dist/node_modules/hash.js/lib/hash/ripemd.js.map +1 -0
  1130. package/dist/node_modules/hash.js/lib/hash/sha/1.js +82 -0
  1131. package/dist/node_modules/hash.js/lib/hash/sha/1.js.map +1 -0
  1132. package/dist/node_modules/hash.js/lib/hash/sha/224.js +34 -0
  1133. package/dist/node_modules/hash.js/lib/hash/sha/224.js.map +1 -0
  1134. package/dist/node_modules/hash.js/lib/hash/sha/256.js +114 -0
  1135. package/dist/node_modules/hash.js/lib/hash/sha/256.js.map +1 -0
  1136. package/dist/node_modules/hash.js/lib/hash/sha/384.js +40 -0
  1137. package/dist/node_modules/hash.js/lib/hash/sha/384.js.map +1 -0
  1138. package/dist/node_modules/hash.js/lib/hash/sha/512.js +337 -0
  1139. package/dist/node_modules/hash.js/lib/hash/sha/512.js.map +1 -0
  1140. package/dist/node_modules/hash.js/lib/hash/sha/common.js +54 -0
  1141. package/dist/node_modules/hash.js/lib/hash/sha/common.js.map +1 -0
  1142. package/dist/node_modules/hash.js/lib/hash/sha.js +15 -0
  1143. package/dist/node_modules/hash.js/lib/hash/sha.js.map +1 -0
  1144. package/dist/node_modules/hash.js/lib/hash/utils.js +283 -0
  1145. package/dist/node_modules/hash.js/lib/hash/utils.js.map +1 -0
  1146. package/dist/node_modules/hash.js/lib/hash.js +34 -0
  1147. package/dist/node_modules/hash.js/lib/hash.js.map +1 -0
  1148. package/dist/node_modules/hasown/index.js +20 -0
  1149. package/dist/node_modules/hasown/index.js.map +1 -0
  1150. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
  1151. package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
  1152. package/dist/node_modules/ieee754/index.js +91 -0
  1153. package/dist/node_modules/ieee754/index.js.map +1 -0
  1154. package/dist/node_modules/inherits/inherits.js +23 -0
  1155. package/dist/node_modules/inherits/inherits.js.map +1 -0
  1156. package/dist/node_modules/inherits/inherits_browser.js +39 -0
  1157. package/dist/node_modules/inherits/inherits_browser.js.map +1 -0
  1158. package/dist/node_modules/is-arguments/index.js +57 -0
  1159. package/dist/node_modules/is-arguments/index.js.map +1 -0
  1160. package/dist/node_modules/is-callable/index.js +111 -0
  1161. package/dist/node_modules/is-callable/index.js.map +1 -0
  1162. package/dist/node_modules/is-generator-function/index.js +47 -0
  1163. package/dist/node_modules/is-generator-function/index.js.map +1 -0
  1164. package/dist/node_modules/is-regex/index.js +84 -0
  1165. package/dist/node_modules/is-regex/index.js.map +1 -0
  1166. package/dist/node_modules/is-typed-array/index.js +20 -0
  1167. package/dist/node_modules/is-typed-array/index.js.map +1 -0
  1168. package/dist/node_modules/js-sha3/src/sha3.js +661 -0
  1169. package/dist/node_modules/js-sha3/src/sha3.js.map +1 -0
  1170. package/dist/node_modules/lightweight-charts/dist/lightweight-charts.production.js +14 -0
  1171. package/dist/node_modules/lightweight-charts/dist/lightweight-charts.production.js.map +1 -0
  1172. package/dist/node_modules/lodash/_DataView.js +13 -0
  1173. package/dist/node_modules/lodash/_DataView.js.map +1 -0
  1174. package/dist/node_modules/lodash/_Hash.js +41 -0
  1175. package/dist/node_modules/lodash/_Hash.js.map +1 -0
  1176. package/dist/node_modules/lodash/_ListCache.js +41 -0
  1177. package/dist/node_modules/lodash/_ListCache.js.map +1 -0
  1178. package/dist/node_modules/lodash/_Map.js +13 -0
  1179. package/dist/node_modules/lodash/_Map.js.map +1 -0
  1180. package/dist/node_modules/lodash/_MapCache.js +41 -0
  1181. package/dist/node_modules/lodash/_MapCache.js.map +1 -0
  1182. package/dist/node_modules/lodash/_Promise.js +13 -0
  1183. package/dist/node_modules/lodash/_Promise.js.map +1 -0
  1184. package/dist/node_modules/lodash/_Set.js +13 -0
  1185. package/dist/node_modules/lodash/_Set.js.map +1 -0
  1186. package/dist/node_modules/lodash/_SetCache.js +34 -0
  1187. package/dist/node_modules/lodash/_SetCache.js.map +1 -0
  1188. package/dist/node_modules/lodash/_Stack.js +37 -0
  1189. package/dist/node_modules/lodash/_Stack.js.map +1 -0
  1190. package/dist/node_modules/lodash/_Symbol.js +11 -0
  1191. package/dist/node_modules/lodash/_Symbol.js.map +1 -0
  1192. package/dist/node_modules/lodash/_Uint8Array.js +11 -0
  1193. package/dist/node_modules/lodash/_Uint8Array.js.map +1 -0
  1194. package/dist/node_modules/lodash/_WeakMap.js +13 -0
  1195. package/dist/node_modules/lodash/_WeakMap.js.map +1 -0
  1196. package/dist/node_modules/lodash/_arrayFilter.js +29 -0
  1197. package/dist/node_modules/lodash/_arrayFilter.js.map +1 -0
  1198. package/dist/node_modules/lodash/_arrayIncludes.js +22 -0
  1199. package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -0
  1200. package/dist/node_modules/lodash/_arrayIncludesWith.js +26 -0
  1201. package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -0
  1202. package/dist/node_modules/lodash/_arrayLikeKeys.js +59 -0
  1203. package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
  1204. package/dist/node_modules/lodash/_arrayMap.js +25 -0
  1205. package/dist/node_modules/lodash/_arrayMap.js.map +1 -0
  1206. package/dist/node_modules/lodash/_arrayPush.js +24 -0
  1207. package/dist/node_modules/lodash/_arrayPush.js.map +1 -0
  1208. package/dist/node_modules/lodash/_arraySome.js +27 -0
  1209. package/dist/node_modules/lodash/_arraySome.js.map +1 -0
  1210. package/dist/node_modules/lodash/_assocIndexOf.js +26 -0
  1211. package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -0
  1212. package/dist/node_modules/lodash/_baseFindIndex.js +28 -0
  1213. package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -0
  1214. package/dist/node_modules/lodash/_baseFlatten.js +44 -0
  1215. package/dist/node_modules/lodash/_baseFlatten.js.map +1 -0
  1216. package/dist/node_modules/lodash/_baseGet.js +30 -0
  1217. package/dist/node_modules/lodash/_baseGet.js.map +1 -0
  1218. package/dist/node_modules/lodash/_baseGetAllKeys.js +26 -0
  1219. package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
  1220. package/dist/node_modules/lodash/_baseGetTag.js +35 -0
  1221. package/dist/node_modules/lodash/_baseGetTag.js.map +1 -0
  1222. package/dist/node_modules/lodash/_baseHasIn.js +17 -0
  1223. package/dist/node_modules/lodash/_baseHasIn.js.map +1 -0
  1224. package/dist/node_modules/lodash/_baseIndexOf.js +27 -0
  1225. package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -0
  1226. package/dist/node_modules/lodash/_baseIsArguments.js +24 -0
  1227. package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -0
  1228. package/dist/node_modules/lodash/_baseIsEqual.js +34 -0
  1229. package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -0
  1230. package/dist/node_modules/lodash/_baseIsEqualDeep.js +95 -0
  1231. package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
  1232. package/dist/node_modules/lodash/_baseIsMatch.js +68 -0
  1233. package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -0
  1234. package/dist/node_modules/lodash/_baseIsNaN.js +16 -0
  1235. package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -0
  1236. package/dist/node_modules/lodash/_baseIsNative.js +55 -0
  1237. package/dist/node_modules/lodash/_baseIsNative.js.map +1 -0
  1238. package/dist/node_modules/lodash/_baseIsTypedArray.js +67 -0
  1239. package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
  1240. package/dist/node_modules/lodash/_baseIteratee.js +40 -0
  1241. package/dist/node_modules/lodash/_baseIteratee.js.map +1 -0
  1242. package/dist/node_modules/lodash/_baseKeys.js +36 -0
  1243. package/dist/node_modules/lodash/_baseKeys.js.map +1 -0
  1244. package/dist/node_modules/lodash/_baseMatches.js +29 -0
  1245. package/dist/node_modules/lodash/_baseMatches.js.map +1 -0
  1246. package/dist/node_modules/lodash/_baseMatchesProperty.js +44 -0
  1247. package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
  1248. package/dist/node_modules/lodash/_baseProperty.js +18 -0
  1249. package/dist/node_modules/lodash/_baseProperty.js.map +1 -0
  1250. package/dist/node_modules/lodash/_basePropertyDeep.js +21 -0
  1251. package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -0
  1252. package/dist/node_modules/lodash/_baseSlice.js +35 -0
  1253. package/dist/node_modules/lodash/_baseSlice.js.map +1 -0
  1254. package/dist/node_modules/lodash/_baseTimes.js +24 -0
  1255. package/dist/node_modules/lodash/_baseTimes.js.map +1 -0
  1256. package/dist/node_modules/lodash/_baseToString.js +42 -0
  1257. package/dist/node_modules/lodash/_baseToString.js.map +1 -0
  1258. package/dist/node_modules/lodash/_baseTrim.js +24 -0
  1259. package/dist/node_modules/lodash/_baseTrim.js.map +1 -0
  1260. package/dist/node_modules/lodash/_baseUnary.js +18 -0
  1261. package/dist/node_modules/lodash/_baseUnary.js.map +1 -0
  1262. package/dist/node_modules/lodash/_baseUniq.js +82 -0
  1263. package/dist/node_modules/lodash/_baseUniq.js.map +1 -0
  1264. package/dist/node_modules/lodash/_cacheHas.js +17 -0
  1265. package/dist/node_modules/lodash/_cacheHas.js.map +1 -0
  1266. package/dist/node_modules/lodash/_castPath.js +29 -0
  1267. package/dist/node_modules/lodash/_castPath.js.map +1 -0
  1268. package/dist/node_modules/lodash/_coreJsData.js +11 -0
  1269. package/dist/node_modules/lodash/_coreJsData.js.map +1 -0
  1270. package/dist/node_modules/lodash/_createSet.js +26 -0
  1271. package/dist/node_modules/lodash/_createSet.js.map +1 -0
  1272. package/dist/node_modules/lodash/_equalArrays.js +91 -0
  1273. package/dist/node_modules/lodash/_equalArrays.js.map +1 -0
  1274. package/dist/node_modules/lodash/_equalByTag.js +122 -0
  1275. package/dist/node_modules/lodash/_equalByTag.js.map +1 -0
  1276. package/dist/node_modules/lodash/_equalObjects.js +95 -0
  1277. package/dist/node_modules/lodash/_equalObjects.js.map +1 -0
  1278. package/dist/node_modules/lodash/_freeGlobal.js +10 -0
  1279. package/dist/node_modules/lodash/_freeGlobal.js.map +1 -0
  1280. package/dist/node_modules/lodash/_getAllKeys.js +23 -0
  1281. package/dist/node_modules/lodash/_getAllKeys.js.map +1 -0
  1282. package/dist/node_modules/lodash/_getMapData.js +23 -0
  1283. package/dist/node_modules/lodash/_getMapData.js.map +1 -0
  1284. package/dist/node_modules/lodash/_getMatchData.js +30 -0
  1285. package/dist/node_modules/lodash/_getMatchData.js.map +1 -0
  1286. package/dist/node_modules/lodash/_getNative.js +23 -0
  1287. package/dist/node_modules/lodash/_getNative.js.map +1 -0
  1288. package/dist/node_modules/lodash/_getRawTag.js +51 -0
  1289. package/dist/node_modules/lodash/_getRawTag.js.map +1 -0
  1290. package/dist/node_modules/lodash/_getSymbols.js +36 -0
  1291. package/dist/node_modules/lodash/_getSymbols.js.map +1 -0
  1292. package/dist/node_modules/lodash/_getTag.js +69 -0
  1293. package/dist/node_modules/lodash/_getTag.js.map +1 -0
  1294. package/dist/node_modules/lodash/_getValue.js +17 -0
  1295. package/dist/node_modules/lodash/_getValue.js.map +1 -0
  1296. package/dist/node_modules/lodash/_hasPath.js +49 -0
  1297. package/dist/node_modules/lodash/_hasPath.js.map +1 -0
  1298. package/dist/node_modules/lodash/_hashClear.js +20 -0
  1299. package/dist/node_modules/lodash/_hashClear.js.map +1 -0
  1300. package/dist/node_modules/lodash/_hashDelete.js +21 -0
  1301. package/dist/node_modules/lodash/_hashDelete.js.map +1 -0
  1302. package/dist/node_modules/lodash/_hashGet.js +35 -0
  1303. package/dist/node_modules/lodash/_hashGet.js.map +1 -0
  1304. package/dist/node_modules/lodash/_hashHas.js +28 -0
  1305. package/dist/node_modules/lodash/_hashHas.js.map +1 -0
  1306. package/dist/node_modules/lodash/_hashSet.js +28 -0
  1307. package/dist/node_modules/lodash/_hashSet.js.map +1 -0
  1308. package/dist/node_modules/lodash/_isFlattenable.js +27 -0
  1309. package/dist/node_modules/lodash/_isFlattenable.js.map +1 -0
  1310. package/dist/node_modules/lodash/_isIndex.js +29 -0
  1311. package/dist/node_modules/lodash/_isIndex.js.map +1 -0
  1312. package/dist/node_modules/lodash/_isIterateeCall.js +38 -0
  1313. package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -0
  1314. package/dist/node_modules/lodash/_isKey.js +35 -0
  1315. package/dist/node_modules/lodash/_isKey.js.map +1 -0
  1316. package/dist/node_modules/lodash/_isKeyable.js +19 -0
  1317. package/dist/node_modules/lodash/_isKeyable.js.map +1 -0
  1318. package/dist/node_modules/lodash/_isMasked.js +25 -0
  1319. package/dist/node_modules/lodash/_isMasked.js.map +1 -0
  1320. package/dist/node_modules/lodash/_isPrototype.js +22 -0
  1321. package/dist/node_modules/lodash/_isPrototype.js.map +1 -0
  1322. package/dist/node_modules/lodash/_isStrictComparable.js +20 -0
  1323. package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -0
  1324. package/dist/node_modules/lodash/_listCacheClear.js +17 -0
  1325. package/dist/node_modules/lodash/_listCacheClear.js.map +1 -0
  1326. package/dist/node_modules/lodash/_listCacheDelete.js +40 -0
  1327. package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -0
  1328. package/dist/node_modules/lodash/_listCacheGet.js +24 -0
  1329. package/dist/node_modules/lodash/_listCacheGet.js.map +1 -0
  1330. package/dist/node_modules/lodash/_listCacheHas.js +21 -0
  1331. package/dist/node_modules/lodash/_listCacheHas.js.map +1 -0
  1332. package/dist/node_modules/lodash/_listCacheSet.js +31 -0
  1333. package/dist/node_modules/lodash/_listCacheSet.js.map +1 -0
  1334. package/dist/node_modules/lodash/_mapCacheClear.js +28 -0
  1335. package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -0
  1336. package/dist/node_modules/lodash/_mapCacheDelete.js +23 -0
  1337. package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -0
  1338. package/dist/node_modules/lodash/_mapCacheGet.js +21 -0
  1339. package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -0
  1340. package/dist/node_modules/lodash/_mapCacheHas.js +21 -0
  1341. package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -0
  1342. package/dist/node_modules/lodash/_mapCacheSet.js +27 -0
  1343. package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -0
  1344. package/dist/node_modules/lodash/_mapToArray.js +22 -0
  1345. package/dist/node_modules/lodash/_mapToArray.js.map +1 -0
  1346. package/dist/node_modules/lodash/_matchesStrictComparable.js +24 -0
  1347. package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
  1348. package/dist/node_modules/lodash/_memoizeCapped.js +31 -0
  1349. package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -0
  1350. package/dist/node_modules/lodash/_nativeCreate.js +11 -0
  1351. package/dist/node_modules/lodash/_nativeCreate.js.map +1 -0
  1352. package/dist/node_modules/lodash/_nativeKeys.js +11 -0
  1353. package/dist/node_modules/lodash/_nativeKeys.js.map +1 -0
  1354. package/dist/node_modules/lodash/_nodeUtil.js +42 -0
  1355. package/dist/node_modules/lodash/_nodeUtil.js.map +1 -0
  1356. package/dist/node_modules/lodash/_objectToString.js +26 -0
  1357. package/dist/node_modules/lodash/_objectToString.js.map +1 -0
  1358. package/dist/node_modules/lodash/_overArg.js +19 -0
  1359. package/dist/node_modules/lodash/_overArg.js.map +1 -0
  1360. package/dist/node_modules/lodash/_root.js +14 -0
  1361. package/dist/node_modules/lodash/_root.js.map +1 -0
  1362. package/dist/node_modules/lodash/_setCacheAdd.js +23 -0
  1363. package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -0
  1364. package/dist/node_modules/lodash/_setCacheHas.js +18 -0
  1365. package/dist/node_modules/lodash/_setCacheHas.js.map +1 -0
  1366. package/dist/node_modules/lodash/_setToArray.js +22 -0
  1367. package/dist/node_modules/lodash/_setToArray.js.map +1 -0
  1368. package/dist/node_modules/lodash/_stackClear.js +20 -0
  1369. package/dist/node_modules/lodash/_stackClear.js.map +1 -0
  1370. package/dist/node_modules/lodash/_stackDelete.js +22 -0
  1371. package/dist/node_modules/lodash/_stackDelete.js.map +1 -0
  1372. package/dist/node_modules/lodash/_stackGet.js +18 -0
  1373. package/dist/node_modules/lodash/_stackGet.js.map +1 -0
  1374. package/dist/node_modules/lodash/_stackHas.js +18 -0
  1375. package/dist/node_modules/lodash/_stackHas.js.map +1 -0
  1376. package/dist/node_modules/lodash/_stackSet.js +41 -0
  1377. package/dist/node_modules/lodash/_stackSet.js.map +1 -0
  1378. package/dist/node_modules/lodash/_strictIndexOf.js +27 -0
  1379. package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -0
  1380. package/dist/node_modules/lodash/_stringToPath.js +32 -0
  1381. package/dist/node_modules/lodash/_stringToPath.js.map +1 -0
  1382. package/dist/node_modules/lodash/_toKey.js +23 -0
  1383. package/dist/node_modules/lodash/_toKey.js.map +1 -0
  1384. package/dist/node_modules/lodash/_toSource.js +30 -0
  1385. package/dist/node_modules/lodash/_toSource.js.map +1 -0
  1386. package/dist/node_modules/lodash/_trimmedEndIndex.js +23 -0
  1387. package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
  1388. package/dist/node_modules/lodash/chunk.js +60 -0
  1389. package/dist/node_modules/lodash/chunk.js.map +1 -0
  1390. package/dist/node_modules/lodash/eq.js +41 -0
  1391. package/dist/node_modules/lodash/eq.js.map +1 -0
  1392. package/dist/node_modules/lodash/flatten.js +30 -0
  1393. package/dist/node_modules/lodash/flatten.js.map +1 -0
  1394. package/dist/node_modules/lodash/get.js +41 -0
  1395. package/dist/node_modules/lodash/get.js.map +1 -0
  1396. package/dist/node_modules/lodash/hasIn.js +40 -0
  1397. package/dist/node_modules/lodash/hasIn.js.map +1 -0
  1398. package/dist/node_modules/lodash/identity.js +25 -0
  1399. package/dist/node_modules/lodash/identity.js.map +1 -0
  1400. package/dist/node_modules/lodash/isArguments.js +42 -0
  1401. package/dist/node_modules/lodash/isArguments.js.map +1 -0
  1402. package/dist/node_modules/lodash/isArray.js +34 -0
  1403. package/dist/node_modules/lodash/isArray.js.map +1 -0
  1404. package/dist/node_modules/lodash/isArrayLike.js +39 -0
  1405. package/dist/node_modules/lodash/isArrayLike.js.map +1 -0
  1406. package/dist/node_modules/lodash/isBuffer.js +51 -0
  1407. package/dist/node_modules/lodash/isBuffer.js.map +1 -0
  1408. package/dist/node_modules/lodash/isFunction.js +43 -0
  1409. package/dist/node_modules/lodash/isFunction.js.map +1 -0
  1410. package/dist/node_modules/lodash/isLength.js +39 -0
  1411. package/dist/node_modules/lodash/isLength.js.map +1 -0
  1412. package/dist/node_modules/lodash/isObject.js +35 -0
  1413. package/dist/node_modules/lodash/isObject.js.map +1 -0
  1414. package/dist/node_modules/lodash/isObjectLike.js +33 -0
  1415. package/dist/node_modules/lodash/isObjectLike.js.map +1 -0
  1416. package/dist/node_modules/lodash/isSymbol.js +35 -0
  1417. package/dist/node_modules/lodash/isSymbol.js.map +1 -0
  1418. package/dist/node_modules/lodash/isTypedArray.js +34 -0
  1419. package/dist/node_modules/lodash/isTypedArray.js.map +1 -0
  1420. package/dist/node_modules/lodash/keys.js +44 -0
  1421. package/dist/node_modules/lodash/keys.js.map +1 -0
  1422. package/dist/node_modules/lodash/memoize.js +78 -0
  1423. package/dist/node_modules/lodash/memoize.js.map +1 -0
  1424. package/dist/node_modules/lodash/noop.js +21 -0
  1425. package/dist/node_modules/lodash/noop.js.map +1 -0
  1426. package/dist/node_modules/lodash/property.js +40 -0
  1427. package/dist/node_modules/lodash/property.js.map +1 -0
  1428. package/dist/node_modules/lodash/stubArray.js +27 -0
  1429. package/dist/node_modules/lodash/stubArray.js.map +1 -0
  1430. package/dist/node_modules/lodash/stubFalse.js +22 -0
  1431. package/dist/node_modules/lodash/stubFalse.js.map +1 -0
  1432. package/dist/node_modules/lodash/toFinite.js +47 -0
  1433. package/dist/node_modules/lodash/toFinite.js.map +1 -0
  1434. package/dist/node_modules/lodash/toInteger.js +41 -0
  1435. package/dist/node_modules/lodash/toInteger.js.map +1 -0
  1436. package/dist/node_modules/lodash/toNumber.js +71 -0
  1437. package/dist/node_modules/lodash/toNumber.js.map +1 -0
  1438. package/dist/node_modules/lodash/toString.js +33 -0
  1439. package/dist/node_modules/lodash/toString.js.map +1 -0
  1440. package/dist/node_modules/lodash/uniqBy.js +40 -0
  1441. package/dist/node_modules/lodash/uniqBy.js.map +1 -0
  1442. package/dist/node_modules/math-intrinsics/abs.js +14 -0
  1443. package/dist/node_modules/math-intrinsics/abs.js.map +1 -0
  1444. package/dist/node_modules/math-intrinsics/floor.js +14 -0
  1445. package/dist/node_modules/math-intrinsics/floor.js.map +1 -0
  1446. package/dist/node_modules/math-intrinsics/isNaN.js +16 -0
  1447. package/dist/node_modules/math-intrinsics/isNaN.js.map +1 -0
  1448. package/dist/node_modules/math-intrinsics/max.js +14 -0
  1449. package/dist/node_modules/math-intrinsics/max.js.map +1 -0
  1450. package/dist/node_modules/math-intrinsics/min.js +14 -0
  1451. package/dist/node_modules/math-intrinsics/min.js.map +1 -0
  1452. package/dist/node_modules/math-intrinsics/pow.js +14 -0
  1453. package/dist/node_modules/math-intrinsics/pow.js.map +1 -0
  1454. package/dist/node_modules/math-intrinsics/round.js +14 -0
  1455. package/dist/node_modules/math-intrinsics/round.js.map +1 -0
  1456. package/dist/node_modules/math-intrinsics/sign.js +23 -0
  1457. package/dist/node_modules/math-intrinsics/sign.js.map +1 -0
  1458. package/dist/node_modules/minimalistic-assert/index.js +14 -0
  1459. package/dist/node_modules/minimalistic-assert/index.js.map +1 -0
  1460. package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +83 -0
  1461. package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js.map +1 -0
  1462. package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +14 -0
  1463. package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js.map +1 -0
  1464. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +18 -0
  1465. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
  1466. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
  1467. package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
  1468. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +10 -0
  1469. package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
  1470. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +7 -0
  1471. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js.map +1 -0
  1472. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +45 -0
  1473. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js.map +1 -0
  1474. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +16 -0
  1475. package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
  1476. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +10 -0
  1477. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
  1478. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +29 -0
  1479. package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
  1480. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +42 -0
  1481. package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
  1482. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +77 -0
  1483. package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
  1484. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +14 -0
  1485. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
  1486. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +39 -0
  1487. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
  1488. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
  1489. package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
  1490. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +21 -0
  1491. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
  1492. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +19 -0
  1493. package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
  1494. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +16 -0
  1495. package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
  1496. package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
  1497. package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js.map +1 -0
  1498. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
  1499. package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
  1500. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +10 -0
  1501. package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
  1502. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +16 -0
  1503. package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
  1504. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
  1505. package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
  1506. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
  1507. package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
  1508. package/dist/node_modules/motion-utils/dist/es/errors.js +19 -0
  1509. package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
  1510. package/dist/node_modules/motion-utils/dist/es/memo.js +12 -0
  1511. package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
  1512. package/dist/node_modules/motion-utils/dist/es/noop.js +5 -0
  1513. package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
  1514. package/dist/node_modules/motion-utils/dist/es/progress.js +20 -0
  1515. package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
  1516. package/dist/node_modules/motion-utils/dist/es/time-conversion.js +13 -0
  1517. package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
  1518. package/dist/node_modules/possible-typed-array-names/index.js +27 -0
  1519. package/dist/node_modules/possible-typed-array-names/index.js.map +1 -0
  1520. package/dist/node_modules/primereact/api/api.esm.js +120 -0
  1521. package/dist/node_modules/primereact/api/api.esm.js.map +1 -0
  1522. package/dist/node_modules/primereact/componentbase/componentbase.esm.js +357 -0
  1523. package/dist/node_modules/primereact/componentbase/componentbase.esm.js.map +1 -0
  1524. package/dist/node_modules/primereact/hooks/hooks.esm.js +276 -0
  1525. package/dist/node_modules/primereact/hooks/hooks.esm.js.map +1 -0
  1526. package/dist/node_modules/primereact/knob/knob.esm.js +388 -0
  1527. package/dist/node_modules/primereact/knob/knob.esm.js.map +1 -0
  1528. package/dist/node_modules/primereact/utils/utils.esm.js +2155 -0
  1529. package/dist/node_modules/primereact/utils/utils.esm.js.map +1 -0
  1530. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1326 -0
  1531. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
  1532. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +25 -0
  1533. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
  1534. package/dist/node_modules/react/jsx-runtime.js +14 -0
  1535. package/dist/node_modules/react/jsx-runtime.js.map +1 -0
  1536. package/dist/node_modules/react-chartjs-2/dist/index.js +143 -0
  1537. package/dist/node_modules/react-chartjs-2/dist/index.js.map +1 -0
  1538. package/dist/node_modules/react-is/cjs/react-is.development.js +191 -0
  1539. package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  1540. package/dist/node_modules/react-is/cjs/react-is.production.min.js +27 -0
  1541. package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  1542. package/dist/node_modules/react-is/index.js +14 -0
  1543. package/dist/node_modules/react-is/index.js.map +1 -0
  1544. package/dist/node_modules/safe-regex-test/index.js +31 -0
  1545. package/dist/node_modules/safe-regex-test/index.js.map +1 -0
  1546. package/dist/node_modules/set-function-length/index.js +58 -0
  1547. package/dist/node_modules/set-function-length/index.js.map +1 -0
  1548. package/dist/node_modules/stylis/src/Enum.js +13 -0
  1549. package/dist/node_modules/stylis/src/Enum.js.map +1 -0
  1550. package/dist/node_modules/stylis/src/Middleware.js +33 -0
  1551. package/dist/node_modules/stylis/src/Middleware.js.map +1 -0
  1552. package/dist/node_modules/stylis/src/Parser.js +194 -0
  1553. package/dist/node_modules/stylis/src/Parser.js.map +1 -0
  1554. package/dist/node_modules/stylis/src/Serializer.js +39 -0
  1555. package/dist/node_modules/stylis/src/Serializer.js.map +1 -0
  1556. package/dist/node_modules/stylis/src/Tokenizer.js +224 -0
  1557. package/dist/node_modules/stylis/src/Tokenizer.js.map +1 -0
  1558. package/dist/node_modules/stylis/src/Utility.js +118 -0
  1559. package/dist/node_modules/stylis/src/Utility.js.map +1 -0
  1560. package/dist/node_modules/swiper/shared/ssr-window.esm.js +147 -0
  1561. package/dist/node_modules/swiper/shared/ssr-window.esm.js.map +1 -0
  1562. package/dist/node_modules/swiper/shared/swiper-core.js +3952 -0
  1563. package/dist/node_modules/swiper/shared/swiper-core.js.map +1 -0
  1564. package/dist/node_modules/swiper/shared/update-on-virtual-data.js +132 -0
  1565. package/dist/node_modules/swiper/shared/update-on-virtual-data.js.map +1 -0
  1566. package/dist/node_modules/swiper/shared/update-swiper.js +233 -0
  1567. package/dist/node_modules/swiper/shared/update-swiper.js.map +1 -0
  1568. package/dist/node_modules/swiper/shared/utils.js +303 -0
  1569. package/dist/node_modules/swiper/shared/utils.js.map +1 -0
  1570. package/dist/node_modules/swiper/swiper-react.js +390 -0
  1571. package/dist/node_modules/swiper/swiper-react.js.map +1 -0
  1572. package/dist/node_modules/tslib/tslib.es6.js +400 -0
  1573. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  1574. package/dist/node_modules/util/support/isBuffer.js +14 -0
  1575. package/dist/node_modules/util/support/isBuffer.js.map +1 -0
  1576. package/dist/node_modules/util/support/types.js +348 -0
  1577. package/dist/node_modules/util/support/types.js.map +1 -0
  1578. package/dist/node_modules/util/util.js +730 -0
  1579. package/dist/node_modules/util/util.js.map +1 -0
  1580. package/dist/node_modules/viem/_esm/constants/unit.js +7 -0
  1581. package/dist/node_modules/viem/_esm/constants/unit.js.map +1 -0
  1582. package/dist/node_modules/viem/_esm/errors/base.js +92 -0
  1583. package/dist/node_modules/viem/_esm/errors/base.js.map +1 -0
  1584. package/dist/node_modules/viem/_esm/errors/unit.js +12 -0
  1585. package/dist/node_modules/viem/_esm/errors/unit.js.map +1 -0
  1586. package/dist/node_modules/viem/_esm/errors/version.js +4 -0
  1587. package/dist/node_modules/viem/_esm/errors/version.js.map +1 -0
  1588. package/dist/node_modules/viem/_esm/utils/unit/parseEther.js +20 -0
  1589. package/dist/node_modules/viem/_esm/utils/unit/parseEther.js.map +1 -0
  1590. package/dist/node_modules/viem/_esm/utils/unit/parseUnits.js +53 -0
  1591. package/dist/node_modules/viem/_esm/utils/unit/parseUnits.js.map +1 -0
  1592. package/dist/node_modules/which-typed-array/index.js +136 -0
  1593. package/dist/node_modules/which-typed-array/index.js.map +1 -0
  1594. package/dist/providers/index.js +63 -0
  1595. package/dist/providers/index.js.map +1 -0
  1596. package/dist/state/abtesting/useCookie.js +40 -0
  1597. package/dist/state/abtesting/useCookie.js.map +1 -0
  1598. package/dist/state/activeView/index.js +40 -0
  1599. package/dist/state/activeView/index.js.map +1 -0
  1600. package/dist/state/allowance/useAllowance.js +139 -0
  1601. package/dist/state/allowance/useAllowance.js.map +1 -0
  1602. package/dist/state/balance/useCurrencyBalance.js +40 -0
  1603. package/dist/state/balance/useCurrencyBalance.js.map +1 -0
  1604. package/dist/state/balance/useCurrencyBalanceSolana.js +43 -0
  1605. package/dist/state/balance/useCurrencyBalanceSolana.js.map +1 -0
  1606. package/dist/state/balance/useUserTokensBalance.js +100 -0
  1607. package/dist/state/balance/useUserTokensBalance.js.map +1 -0
  1608. package/dist/state/bondApiStats/useGetBondApiStats.js +21 -0
  1609. package/dist/state/bondApiStats/useGetBondApiStats.js.map +1 -0
  1610. package/dist/state/bonds/fetchBillsUser.js +157 -0
  1611. package/dist/state/bonds/fetchBillsUser.js.map +1 -0
  1612. package/dist/state/bonds/fetchBillsUserSolana.js +167 -0
  1613. package/dist/state/bonds/fetchBillsUserSolana.js.map +1 -0
  1614. package/dist/state/bonds/useBondsData.js +84 -0
  1615. package/dist/state/bonds/useBondsData.js.map +1 -0
  1616. package/dist/state/bonds/useBondsList.js +35 -0
  1617. package/dist/state/bonds/useBondsList.js.map +1 -0
  1618. package/dist/state/bonds/useBondsListPreTGE.js +36 -0
  1619. package/dist/state/bonds/useBondsListPreTGE.js.map +1 -0
  1620. package/dist/state/bonds/useTierProofSignature.js +46 -0
  1621. package/dist/state/bonds/useTierProofSignature.js.map +1 -0
  1622. package/dist/state/bonds/useUserBonds.js +131 -0
  1623. package/dist/state/bonds/useUserBonds.js.map +1 -0
  1624. package/dist/state/bonds/useUserBondsPreTGE.js +151 -0
  1625. package/dist/state/bonds/useUserBondsPreTGE.js.map +1 -0
  1626. package/dist/state/bonds/utils.js +330 -0
  1627. package/dist/state/bonds/utils.js.map +1 -0
  1628. package/dist/state/chainFilterOption/useChainFilterOption.js +35 -0
  1629. package/dist/state/chainFilterOption/useChainFilterOption.js.map +1 -0
  1630. package/dist/state/favoriteTokens/useFavoriteTokens.js +47 -0
  1631. package/dist/state/favoriteTokens/useFavoriteTokens.js.map +1 -0
  1632. package/dist/state/historicalPrice/useHistoricalPrice.js +26 -0
  1633. package/dist/state/historicalPrice/useHistoricalPrice.js.map +1 -0
  1634. package/dist/state/hotBonds/useHotBonds.js +51 -0
  1635. package/dist/state/hotBonds/useHotBonds.js.map +1 -0
  1636. package/dist/state/popups/usePopups.js +57 -0
  1637. package/dist/state/popups/usePopups.js.map +1 -0
  1638. package/dist/state/price/useCurrencyPrice.js +22 -0
  1639. package/dist/state/price/useCurrencyPrice.js.map +1 -0
  1640. package/dist/state/recommendations/useGetBondRecommendations.js +23 -0
  1641. package/dist/state/recommendations/useGetBondRecommendations.js.map +1 -0
  1642. package/dist/state/slippage/useSlippage.js +40 -0
  1643. package/dist/state/slippage/useSlippage.js.map +1 -0
  1644. package/dist/state/tiers/useTierPoints.js +102 -0
  1645. package/dist/state/tiers/useTierPoints.js.map +1 -0
  1646. package/dist/state/tokenPrices/useTokenPrices.js +36 -0
  1647. package/dist/state/tokenPrices/useTokenPrices.js.map +1 -0
  1648. package/dist/state/useSDKConfig.js +39 -0
  1649. package/dist/state/useSDKConfig.js.map +1 -0
  1650. package/dist/state/zap/getChainParam.js +58 -0
  1651. package/dist/state/zap/getChainParam.js.map +1 -0
  1652. package/dist/state/zap/useJupiterSolanaQuote.js +128 -0
  1653. package/dist/state/zap/useJupiterSolanaQuote.js.map +1 -0
  1654. package/dist/state/zap/useSoulZapBondQuote.js +168 -0
  1655. package/dist/state/zap/useSoulZapBondQuote.js.map +1 -0
  1656. package/dist/theme/base.js +125 -0
  1657. package/dist/theme/base.js.map +1 -0
  1658. package/dist/theme/colors.js +25 -0
  1659. package/dist/theme/colors.js.map +1 -0
  1660. package/dist/theme/components.js +321 -0
  1661. package/dist/theme/components.js.map +1 -0
  1662. package/dist/theme/index.js +8 -0
  1663. package/dist/theme/index.js.map +1 -0
  1664. package/dist/types/bondCodec.js +24 -0
  1665. package/dist/types/bondCodec.js.map +1 -0
  1666. package/dist/types/bondIssuanceCodec.js +32 -0
  1667. package/dist/types/bondIssuanceCodec.js.map +1 -0
  1668. package/dist/types/bondPricingCodec.js +22 -0
  1669. package/dist/types/bondPricingCodec.js.map +1 -0
  1670. package/dist/types/bondTermCodec.js +24 -0
  1671. package/dist/types/bondTermCodec.js.map +1 -0
  1672. package/dist/utils/calculateSolanaTrueBillPrice.js +71 -0
  1673. package/dist/utils/calculateSolanaTrueBillPrice.js.map +1 -0
  1674. package/dist/utils/campaignStyles.js +54 -0
  1675. package/dist/utils/campaignStyles.js.map +1 -0
  1676. package/dist/utils/convertToTokenValue.js +27 -0
  1677. package/dist/utils/convertToTokenValue.js.map +1 -0
  1678. package/dist/utils/dates/formatDate.js +16 -0
  1679. package/dist/utils/dates/formatDate.js.map +1 -0
  1680. package/dist/utils/derivePda.js +9 -0
  1681. package/dist/utils/derivePda.js.map +1 -0
  1682. package/dist/utils/displayHelpers.js +238 -0
  1683. package/dist/utils/displayHelpers.js.map +1 -0
  1684. package/dist/utils/formatNumber.js +52 -0
  1685. package/dist/utils/formatNumber.js.map +1 -0
  1686. package/dist/utils/getBalanceNumber.js +11 -0
  1687. package/dist/utils/getBalanceNumber.js.map +1 -0
  1688. package/dist/utils/getDotPos.js +12 -0
  1689. package/dist/utils/getDotPos.js.map +1 -0
  1690. package/dist/utils/getNativeTicker.js +21 -0
  1691. package/dist/utils/getNativeTicker.js.map +1 -0
  1692. package/dist/utils/getSolanaAccount.js +116 -0
  1693. package/dist/utils/getSolanaAccount.js.map +1 -0
  1694. package/dist/utils/getTimePeriods.js +67 -0
  1695. package/dist/utils/getTimePeriods.js.map +1 -0
  1696. package/dist/utils/index.js +16 -0
  1697. package/dist/utils/index.js.map +1 -0
  1698. package/dist/utils/multicall.js +49 -0
  1699. package/dist/utils/multicall.js.map +1 -0
  1700. package/dist/utils/numbers.js +7 -0
  1701. package/dist/utils/numbers.js.map +1 -0
  1702. package/dist/utils/remove0xPrefix.js +9 -0
  1703. package/dist/utils/remove0xPrefix.js.map +1 -0
  1704. package/dist/utils/reportError.js +31 -0
  1705. package/dist/utils/reportError.js.map +1 -0
  1706. package/dist/utils/roundNumber.js +16 -0
  1707. package/dist/utils/roundNumber.js.map +1 -0
  1708. package/dist/utils/solanaAtaHelper.js +40 -0
  1709. package/dist/utils/solanaAtaHelper.js.map +1 -0
  1710. package/dist/utils/solanaMulticall.js +44 -0
  1711. package/dist/utils/solanaMulticall.js.map +1 -0
  1712. package/dist/utils/solanaRpc.js +13 -0
  1713. package/dist/utils/solanaRpc.js.map +1 -0
  1714. package/dist/utils/track.js +7 -0
  1715. package/dist/utils/track.js.map +1 -0
  1716. package/dist/views/Bonds/Bonds.js +196 -0
  1717. package/dist/views/Bonds/Bonds.js.map +1 -0
  1718. package/dist/views/Bonds/components/BondRows/ActiveBondRows.js +66 -0
  1719. package/dist/views/Bonds/components/BondRows/ActiveBondRows.js.map +1 -0
  1720. package/dist/views/Bonds/components/BondRows/BondRow.js +70 -0
  1721. package/dist/views/Bonds/components/BondRows/BondRow.js.map +1 -0
  1722. package/dist/views/Bonds/components/BondRows/ChainTitle.js +39 -0
  1723. package/dist/views/Bonds/components/BondRows/ChainTitle.js.map +1 -0
  1724. package/dist/views/Bonds/components/BondRows/ModalHandler.js +104 -0
  1725. package/dist/views/Bonds/components/BondRows/ModalHandler.js.map +1 -0
  1726. package/dist/views/Bonds/components/BondRows/ModalHandlerPreTGE.js +39 -0
  1727. package/dist/views/Bonds/components/BondRows/ModalHandlerPreTGE.js.map +1 -0
  1728. package/dist/views/Bonds/components/BondRows/SoldOutRows.js +43 -0
  1729. package/dist/views/Bonds/components/BondRows/SoldOutRows.js.map +1 -0
  1730. package/dist/views/Bonds/components/BondsMenu/BondsMenu.js +36 -0
  1731. package/dist/views/Bonds/components/BondsMenu/BondsMenu.js.map +1 -0
  1732. package/dist/views/Bonds/components/BonusComponents/BonusComponent.js +59 -0
  1733. package/dist/views/Bonds/components/BonusComponents/BonusComponent.js.map +1 -0
  1734. package/dist/views/Bonds/components/BonusComponents/BonusContainer.js +11 -0
  1735. package/dist/views/Bonds/components/BonusComponents/BonusContainer.js.map +1 -0
  1736. package/dist/views/Bonds/components/BonusComponents/BonusTable.js +57 -0
  1737. package/dist/views/Bonds/components/BonusComponents/BonusTable.js.map +1 -0
  1738. package/dist/views/Bonds/components/BuyAgainRow/index.js +83 -0
  1739. package/dist/views/Bonds/components/BuyAgainRow/index.js.map +1 -0
  1740. package/dist/views/Bonds/components/ChainBanner/ChainBanner.js +84 -0
  1741. package/dist/views/Bonds/components/ChainBanner/ChainBanner.js.map +1 -0
  1742. package/dist/views/Bonds/components/CheckURL/index.js +44 -0
  1743. package/dist/views/Bonds/components/CheckURL/index.js.map +1 -0
  1744. package/dist/views/Bonds/components/HotBondCards/HotBondCard.js +54 -0
  1745. package/dist/views/Bonds/components/HotBondCards/HotBondCard.js.map +1 -0
  1746. package/dist/views/Bonds/components/HotBondCards/index.js +78 -0
  1747. package/dist/views/Bonds/components/HotBondCards/index.js.map +1 -0
  1748. package/dist/views/Bonds/components/HotBondCards/styles.js +47 -0
  1749. package/dist/views/Bonds/components/HotBondCards/styles.js.map +1 -0
  1750. package/dist/views/Bonds/components/LoadingSkeleton/LoadingSkeleton.js +37 -0
  1751. package/dist/views/Bonds/components/LoadingSkeleton/LoadingSkeleton.js.map +1 -0
  1752. package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.js +27 -0
  1753. package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.js.map +1 -0
  1754. package/dist/views/Bonds/components/RecommendationCards/index.js +84 -0
  1755. package/dist/views/Bonds/components/RecommendationCards/index.js.map +1 -0
  1756. package/dist/views/Bonds/components/RecommendationCards/styles.js +24 -0
  1757. package/dist/views/Bonds/components/RecommendationCards/styles.js.map +1 -0
  1758. package/dist/views/Bonds/index.js +12 -0
  1759. package/dist/views/Bonds/index.js.map +1 -0
  1760. package/dist/views/Bonds/utils.js +149 -0
  1761. package/dist/views/Bonds/utils.js.map +1 -0
  1762. package/dist/views/BuyBond/BuyBondModal.js +26 -0
  1763. package/dist/views/BuyBond/BuyBondModal.js.map +1 -0
  1764. package/dist/views/BuyBond/BuyComponent.js +425 -0
  1765. package/dist/views/BuyBond/BuyComponent.js.map +1 -0
  1766. package/dist/views/BuyBond/BuyComponentPreTGE.js +154 -0
  1767. package/dist/views/BuyBond/BuyComponentPreTGE.js.map +1 -0
  1768. package/dist/views/BuyBond/BuyComponentSolana.js +641 -0
  1769. package/dist/views/BuyBond/BuyComponentSolana.js.map +1 -0
  1770. package/dist/views/BuyBond/ParticipationSuccessful.js +78 -0
  1771. package/dist/views/BuyBond/ParticipationSuccessful.js.map +1 -0
  1772. package/dist/views/BuyBond/components/BondCards/BondCards.js +92 -0
  1773. package/dist/views/BuyBond/components/BondCards/BondCards.js.map +1 -0
  1774. package/dist/views/BuyBond/components/BondCards/BondCardsPreTGE.js +74 -0
  1775. package/dist/views/BuyBond/components/BondCards/BondCardsPreTGE.js.map +1 -0
  1776. package/dist/views/BuyBond/components/BondModalHeader.js +95 -0
  1777. package/dist/views/BuyBond/components/BondModalHeader.js.map +1 -0
  1778. package/dist/views/BuyBond/components/BondModalMinTierHeader.js +35 -0
  1779. package/dist/views/BuyBond/components/BondModalMinTierHeader.js.map +1 -0
  1780. package/dist/views/BuyBond/components/Estimations.js +68 -0
  1781. package/dist/views/BuyBond/components/Estimations.js.map +1 -0
  1782. package/dist/views/BuyBond/components/ExpandedViewButton.js +37 -0
  1783. package/dist/views/BuyBond/components/ExpandedViewButton.js.map +1 -0
  1784. package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.js +71 -0
  1785. package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.js.map +1 -0
  1786. package/dist/views/BuyBond/components/NewRateModal/NewRateModal.js +55 -0
  1787. package/dist/views/BuyBond/components/NewRateModal/NewRateModal.js.map +1 -0
  1788. package/dist/views/BuyBond/components/NoBonusModal/NoBonusModal.js +36 -0
  1789. package/dist/views/BuyBond/components/NoBonusModal/NoBonusModal.js.map +1 -0
  1790. package/dist/views/BuyBond/components/ProjectDescription.js +38 -0
  1791. package/dist/views/BuyBond/components/ProjectDescription.js.map +1 -0
  1792. package/dist/views/BuyBond/index.js +12 -0
  1793. package/dist/views/BuyBond/index.js.map +1 -0
  1794. package/dist/views/BuyBond/styles.js +33 -0
  1795. package/dist/views/BuyBond/styles.js.map +1 -0
  1796. package/dist/views/FullBondsView/FullBondsView.js +34 -0
  1797. package/dist/views/FullBondsView/FullBondsView.js.map +1 -0
  1798. package/dist/views/FullBondsView/index.js +12 -0
  1799. package/dist/views/FullBondsView/index.js.map +1 -0
  1800. package/dist/views/LifiModal/LifiModal.js +79 -0
  1801. package/dist/views/LifiModal/LifiModal.js.map +1 -0
  1802. package/dist/views/ProjectView/ProjectView.js +72 -0
  1803. package/dist/views/ProjectView/ProjectView.js.map +1 -0
  1804. package/dist/views/ProjectView/components/BondLeaderboard/components/SalesTable.js +56 -0
  1805. package/dist/views/ProjectView/components/BondLeaderboard/components/SalesTable.js.map +1 -0
  1806. package/dist/views/ProjectView/components/BondLeaderboard/components/TopSaleCard.js +46 -0
  1807. package/dist/views/ProjectView/components/BondLeaderboard/components/TopSaleCard.js.map +1 -0
  1808. package/dist/views/ProjectView/components/BondLeaderboard/components/TopThreeSalesCards.js +24 -0
  1809. package/dist/views/ProjectView/components/BondLeaderboard/components/TopThreeSalesCards.js.map +1 -0
  1810. package/dist/views/ProjectView/components/BondLeaderboard/components/styles.js +51 -0
  1811. package/dist/views/ProjectView/components/BondLeaderboard/components/styles.js.map +1 -0
  1812. package/dist/views/ProjectView/components/BondLeaderboard/index.js +45 -0
  1813. package/dist/views/ProjectView/components/BondLeaderboard/index.js.map +1 -0
  1814. package/dist/views/ProjectView/components/BondStats/index.js +97 -0
  1815. package/dist/views/ProjectView/components/BondStats/index.js.map +1 -0
  1816. package/dist/views/ProjectView/components/BondStats/styles.js +49 -0
  1817. package/dist/views/ProjectView/components/BondStats/styles.js.map +1 -0
  1818. package/dist/views/ProjectView/components/BondStats/types.js +40 -0
  1819. package/dist/views/ProjectView/components/BondStats/types.js.map +1 -0
  1820. package/dist/views/ProjectView/components/BondStats/utils.js +10 -0
  1821. package/dist/views/ProjectView/components/BondStats/utils.js.map +1 -0
  1822. package/dist/views/ProjectView/components/NavPanel/index.js +32 -0
  1823. package/dist/views/ProjectView/components/NavPanel/index.js.map +1 -0
  1824. package/dist/views/ProjectView/components/PriceChart/components/CandleStickChart.js +112 -0
  1825. package/dist/views/ProjectView/components/PriceChart/components/CandleStickChart.js.map +1 -0
  1826. package/dist/views/ProjectView/components/PriceChart/components/LineChart.js +100 -0
  1827. package/dist/views/ProjectView/components/PriceChart/components/LineChart.js.map +1 -0
  1828. package/dist/views/ProjectView/components/PriceChart/components/utils.js +20 -0
  1829. package/dist/views/ProjectView/components/PriceChart/components/utils.js.map +1 -0
  1830. package/dist/views/ProjectView/components/PriceChart/index.js +53 -0
  1831. package/dist/views/ProjectView/components/PriceChart/index.js.map +1 -0
  1832. package/dist/views/ProjectView/components/PriceChart/styles.js +44 -0
  1833. package/dist/views/ProjectView/components/PriceChart/styles.js.map +1 -0
  1834. package/dist/views/ProjectView/components/ProjectInfo/index.js +34 -0
  1835. package/dist/views/ProjectView/components/ProjectInfo/index.js.map +1 -0
  1836. package/dist/views/ProjectView/components/ProjectInfo/styles.js +44 -0
  1837. package/dist/views/ProjectView/components/ProjectInfo/styles.js.map +1 -0
  1838. package/dist/views/ProjectView/components/RecommendationCards/index.js +112 -0
  1839. package/dist/views/ProjectView/components/RecommendationCards/index.js.map +1 -0
  1840. package/dist/views/ProjectView/index.js +12 -0
  1841. package/dist/views/ProjectView/index.js.map +1 -0
  1842. package/dist/views/ProjectView/styles.js +9 -0
  1843. package/dist/views/ProjectView/styles.js.map +1 -0
  1844. package/dist/views/SingleBond/SingleBond.js +50 -0
  1845. package/dist/views/SingleBond/SingleBond.js.map +1 -0
  1846. package/dist/views/SingleBond/SoldOutBuyBondPlaceholder.js +85 -0
  1847. package/dist/views/SingleBond/SoldOutBuyBondPlaceholder.js.map +1 -0
  1848. package/dist/views/SingleBond/index.js +12 -0
  1849. package/dist/views/SingleBond/index.js.map +1 -0
  1850. package/dist/views/TransactionModal/TransactionModal.js +194 -0
  1851. package/dist/views/TransactionModal/TransactionModal.js.map +1 -0
  1852. package/dist/views/YourBonds/YourBonds.js +158 -0
  1853. package/dist/views/YourBonds/YourBonds.js.map +1 -0
  1854. package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.js +133 -0
  1855. package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.js.map +1 -0
  1856. package/dist/views/YourBonds/components/ClaimAll/index.js +36 -0
  1857. package/dist/views/YourBonds/components/ClaimAll/index.js.map +1 -0
  1858. package/dist/views/YourBonds/components/ProfitCard/ProfitCard.js +29 -0
  1859. package/dist/views/YourBonds/components/ProfitCard/ProfitCard.js.map +1 -0
  1860. package/dist/views/YourBonds/components/UserBondRow/PreTGEActions.js +118 -0
  1861. package/dist/views/YourBonds/components/UserBondRow/PreTGEActions.js.map +1 -0
  1862. package/dist/views/YourBonds/components/UserBondRow/UserBondRow.js +151 -0
  1863. package/dist/views/YourBonds/components/UserBondRow/UserBondRow.js.map +1 -0
  1864. package/dist/views/YourBonds/components/UserBondRow/UserBondRowPreTGE.js +58 -0
  1865. package/dist/views/YourBonds/components/UserBondRow/UserBondRowPreTGE.js.map +1 -0
  1866. package/dist/views/YourBonds/components/UserBondRow/UserBondRowSolana.js +183 -0
  1867. package/dist/views/YourBonds/components/UserBondRow/UserBondRowSolana.js.map +1 -0
  1868. package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.js +29 -0
  1869. package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.js.map +1 -0
  1870. package/dist/views/YourBonds/index.js +12 -0
  1871. package/dist/views/YourBonds/index.js.map +1 -0
  1872. package/dist/views/YourBondsModal/YourBondsModal.js +154 -0
  1873. package/dist/views/YourBondsModal/YourBondsModal.js.map +1 -0
  1874. package/dist/views/YourBondsModal/components/Actions/Actions.js +146 -0
  1875. package/dist/views/YourBondsModal/components/Actions/Actions.js.map +1 -0
  1876. package/dist/views/YourBondsModal/components/Actions/ActionsSolana.js +166 -0
  1877. package/dist/views/YourBondsModal/components/Actions/ActionsSolana.js.map +1 -0
  1878. package/dist/views/YourBondsModal/components/LinkShare/LinkShare.js +73 -0
  1879. package/dist/views/YourBondsModal/components/LinkShare/LinkShare.js.map +1 -0
  1880. package/dist/views/YourBondsModal/components/LinkShare/templateImageShare.js +94 -0
  1881. package/dist/views/YourBondsModal/components/LinkShare/templateImageShare.js.map +1 -0
  1882. package/dist/views/YourBondsModal/components/LinkShare/utils.js +57 -0
  1883. package/dist/views/YourBondsModal/components/LinkShare/utils.js.map +1 -0
  1884. package/dist/views/YourBondsModal/components/NFTImage/NFTImage.js +153 -0
  1885. package/dist/views/YourBondsModal/components/NFTImage/NFTImage.js.map +1 -0
  1886. package/dist/views/YourBondsModal/components/Recommendations/CardRecommendation.js +39 -0
  1887. package/dist/views/YourBondsModal/components/Recommendations/CardRecommendation.js.map +1 -0
  1888. package/dist/views/YourBondsModal/components/Recommendations/RecSkeleton.js +32 -0
  1889. package/dist/views/YourBondsModal/components/Recommendations/RecSkeleton.js.map +1 -0
  1890. package/dist/views/YourBondsModal/components/Recommendations/Recommendations.js +47 -0
  1891. package/dist/views/YourBondsModal/components/Recommendations/Recommendations.js.map +1 -0
  1892. package/dist/views/YourBondsModal/components/TransferBondModal/TransferAction.js +88 -0
  1893. package/dist/views/YourBondsModal/components/TransferBondModal/TransferAction.js.map +1 -0
  1894. package/dist/views/YourBondsModal/components/TransferBondModal/TransferActionSolana.js +103 -0
  1895. package/dist/views/YourBondsModal/components/TransferBondModal/TransferActionSolana.js.map +1 -0
  1896. package/dist/views/YourBondsModal/components/TransferBondModal/index.js +45 -0
  1897. package/dist/views/YourBondsModal/components/TransferBondModal/index.js.map +1 -0
  1898. package/dist/views/YourBondsModal/components/YourBondModalHeader/YourBondModalHeader.js +58 -0
  1899. package/dist/views/YourBondsModal/components/YourBondModalHeader/YourBondModalHeader.js.map +1 -0
  1900. package/package.json +70 -1
@@ -0,0 +1,2008 @@
1
+ import { Provider, ForkEvent } from '../../abstract-provider/lib.esm/index.js';
2
+ import { Base58 } from '../../basex/lib.esm/index.js';
3
+ import { hexlify, hexValue, hexDataLength, hexDataSlice, hexConcat, isHexString, arrayify, concat, hexZeroPad } from '../../bytes/lib.esm/index.js';
4
+ import { namehash, dnsEncode } from '../../hash/lib.esm/namehash.js';
5
+ import { getNetwork } from '../../networks/lib.esm/index.js';
6
+ import { defineReadOnly, getStatic, resolveProperties } from '../../properties/lib.esm/index.js';
7
+ import { sha256 } from '../../sha2/lib.esm/sha2.js';
8
+ import { toUtf8String, toUtf8Bytes } from '../../strings/lib.esm/utf8.js';
9
+ import { poll, fetchJson } from '../../web/lib.esm/index.js';
10
+ import bech32 from '../node_modules/bech32/index.js';
11
+ import { Logger } from '../../logger/lib.esm/index.js';
12
+ import { version } from './_version.js';
13
+ import { Formatter } from './formatter.js';
14
+ import { BigNumber } from '../../bignumber/lib.esm/bignumber.js';
15
+ import { HashZero } from '../../constants/lib.esm/hashes.js';
16
+ import { encode } from '../../base64/lib.esm/base64.js';
17
+
18
+ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
19
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
20
+ return new (P || (P = Promise))(function (resolve, reject) {
21
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
22
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
23
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
24
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
25
+ });
26
+ };
27
+ const logger = new Logger(version);
28
+ const MAX_CCIP_REDIRECTS = 10;
29
+ //////////////////////////////
30
+ // Event Serializeing
31
+ function checkTopic(topic) {
32
+ if (topic == null) {
33
+ return "null";
34
+ }
35
+ if (hexDataLength(topic) !== 32) {
36
+ logger.throwArgumentError("invalid topic", "topic", topic);
37
+ }
38
+ return topic.toLowerCase();
39
+ }
40
+ function serializeTopics(topics) {
41
+ // Remove trailing null AND-topics; they are redundant
42
+ topics = topics.slice();
43
+ while (topics.length > 0 && topics[topics.length - 1] == null) {
44
+ topics.pop();
45
+ }
46
+ return topics.map((topic) => {
47
+ if (Array.isArray(topic)) {
48
+ // Only track unique OR-topics
49
+ const unique = {};
50
+ topic.forEach((topic) => {
51
+ unique[checkTopic(topic)] = true;
52
+ });
53
+ // The order of OR-topics does not matter
54
+ const sorted = Object.keys(unique);
55
+ sorted.sort();
56
+ return sorted.join("|");
57
+ }
58
+ else {
59
+ return checkTopic(topic);
60
+ }
61
+ }).join("&");
62
+ }
63
+ function deserializeTopics(data) {
64
+ if (data === "") {
65
+ return [];
66
+ }
67
+ return data.split(/&/g).map((topic) => {
68
+ if (topic === "") {
69
+ return [];
70
+ }
71
+ const comps = topic.split("|").map((topic) => {
72
+ return ((topic === "null") ? null : topic);
73
+ });
74
+ return ((comps.length === 1) ? comps[0] : comps);
75
+ });
76
+ }
77
+ function getEventTag(eventName) {
78
+ if (typeof (eventName) === "string") {
79
+ eventName = eventName.toLowerCase();
80
+ if (hexDataLength(eventName) === 32) {
81
+ return "tx:" + eventName;
82
+ }
83
+ if (eventName.indexOf(":") === -1) {
84
+ return eventName;
85
+ }
86
+ }
87
+ else if (Array.isArray(eventName)) {
88
+ return "filter:*:" + serializeTopics(eventName);
89
+ }
90
+ else if (ForkEvent.isForkEvent(eventName)) {
91
+ logger.warn("not implemented");
92
+ throw new Error("not implemented");
93
+ }
94
+ else if (eventName && typeof (eventName) === "object") {
95
+ return "filter:" + (eventName.address || "*") + ":" + serializeTopics(eventName.topics || []);
96
+ }
97
+ throw new Error("invalid event - " + eventName);
98
+ }
99
+ //////////////////////////////
100
+ // Helper Object
101
+ function getTime() {
102
+ return (new Date()).getTime();
103
+ }
104
+ function stall(duration) {
105
+ return new Promise((resolve) => {
106
+ setTimeout(resolve, duration);
107
+ });
108
+ }
109
+ //////////////////////////////
110
+ // Provider Object
111
+ /**
112
+ * EventType
113
+ * - "block"
114
+ * - "poll"
115
+ * - "didPoll"
116
+ * - "pending"
117
+ * - "error"
118
+ * - "network"
119
+ * - filter
120
+ * - topics array
121
+ * - transaction hash
122
+ */
123
+ const PollableEvents = ["block", "network", "pending", "poll"];
124
+ class Event {
125
+ constructor(tag, listener, once) {
126
+ defineReadOnly(this, "tag", tag);
127
+ defineReadOnly(this, "listener", listener);
128
+ defineReadOnly(this, "once", once);
129
+ this._lastBlockNumber = -2;
130
+ this._inflight = false;
131
+ }
132
+ get event() {
133
+ switch (this.type) {
134
+ case "tx":
135
+ return this.hash;
136
+ case "filter":
137
+ return this.filter;
138
+ }
139
+ return this.tag;
140
+ }
141
+ get type() {
142
+ return this.tag.split(":")[0];
143
+ }
144
+ get hash() {
145
+ const comps = this.tag.split(":");
146
+ if (comps[0] !== "tx") {
147
+ return null;
148
+ }
149
+ return comps[1];
150
+ }
151
+ get filter() {
152
+ const comps = this.tag.split(":");
153
+ if (comps[0] !== "filter") {
154
+ return null;
155
+ }
156
+ const address = comps[1];
157
+ const topics = deserializeTopics(comps[2]);
158
+ const filter = {};
159
+ if (topics.length > 0) {
160
+ filter.topics = topics;
161
+ }
162
+ if (address && address !== "*") {
163
+ filter.address = address;
164
+ }
165
+ return filter;
166
+ }
167
+ pollable() {
168
+ return (this.tag.indexOf(":") >= 0 || PollableEvents.indexOf(this.tag) >= 0);
169
+ }
170
+ }
171
+ // https://github.com/satoshilabs/slips/blob/master/slip-0044.md
172
+ const coinInfos = {
173
+ "0": { symbol: "btc", p2pkh: 0x00, p2sh: 0x05, prefix: "bc" },
174
+ "2": { symbol: "ltc", p2pkh: 0x30, p2sh: 0x32, prefix: "ltc" },
175
+ "3": { symbol: "doge", p2pkh: 0x1e, p2sh: 0x16 },
176
+ "60": { symbol: "eth", ilk: "eth" },
177
+ "61": { symbol: "etc", ilk: "eth" },
178
+ "700": { symbol: "xdai", ilk: "eth" },
179
+ };
180
+ function bytes32ify(value) {
181
+ return hexZeroPad(BigNumber.from(value).toHexString(), 32);
182
+ }
183
+ // Compute the Base58Check encoded data (checksum is first 4 bytes of sha256d)
184
+ function base58Encode(data) {
185
+ return Base58.encode(concat([data, hexDataSlice(sha256(sha256(data)), 0, 4)]));
186
+ }
187
+ const matcherIpfs = new RegExp("^(ipfs):/\/(.*)$", "i");
188
+ const matchers = [
189
+ new RegExp("^(https):/\/(.*)$", "i"),
190
+ new RegExp("^(data):(.*)$", "i"),
191
+ matcherIpfs,
192
+ new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$", "i"),
193
+ ];
194
+ function _parseString(result, start) {
195
+ try {
196
+ return toUtf8String(_parseBytes(result, start));
197
+ }
198
+ catch (error) { }
199
+ return null;
200
+ }
201
+ function _parseBytes(result, start) {
202
+ if (result === "0x") {
203
+ return null;
204
+ }
205
+ const offset = BigNumber.from(hexDataSlice(result, start, start + 32)).toNumber();
206
+ const length = BigNumber.from(hexDataSlice(result, offset, offset + 32)).toNumber();
207
+ return hexDataSlice(result, offset + 32, offset + 32 + length);
208
+ }
209
+ // Trim off the ipfs:// prefix and return the default gateway URL
210
+ function getIpfsLink(link) {
211
+ if (link.match(/^ipfs:\/\/ipfs\//i)) {
212
+ link = link.substring(12);
213
+ }
214
+ else if (link.match(/^ipfs:\/\//i)) {
215
+ link = link.substring(7);
216
+ }
217
+ else {
218
+ logger.throwArgumentError("unsupported IPFS format", "link", link);
219
+ }
220
+ return `https:/\/gateway.ipfs.io/ipfs/${link}`;
221
+ }
222
+ function numPad(value) {
223
+ const result = arrayify(value);
224
+ if (result.length > 32) {
225
+ throw new Error("internal; should not happen");
226
+ }
227
+ const padded = new Uint8Array(32);
228
+ padded.set(result, 32 - result.length);
229
+ return padded;
230
+ }
231
+ function bytesPad(value) {
232
+ if ((value.length % 32) === 0) {
233
+ return value;
234
+ }
235
+ const result = new Uint8Array(Math.ceil(value.length / 32) * 32);
236
+ result.set(value);
237
+ return result;
238
+ }
239
+ // ABI Encodes a series of (bytes, bytes, ...)
240
+ function encodeBytes(datas) {
241
+ const result = [];
242
+ let byteCount = 0;
243
+ // Add place-holders for pointers as we add items
244
+ for (let i = 0; i < datas.length; i++) {
245
+ result.push(null);
246
+ byteCount += 32;
247
+ }
248
+ for (let i = 0; i < datas.length; i++) {
249
+ const data = arrayify(datas[i]);
250
+ // Update the bytes offset
251
+ result[i] = numPad(byteCount);
252
+ // The length and padded value of data
253
+ result.push(numPad(data.length));
254
+ result.push(bytesPad(data));
255
+ byteCount += 32 + Math.ceil(data.length / 32) * 32;
256
+ }
257
+ return hexConcat(result);
258
+ }
259
+ class Resolver {
260
+ // The resolvedAddress is only for creating a ReverseLookup resolver
261
+ constructor(provider, address, name, resolvedAddress) {
262
+ defineReadOnly(this, "provider", provider);
263
+ defineReadOnly(this, "name", name);
264
+ defineReadOnly(this, "address", provider.formatter.address(address));
265
+ defineReadOnly(this, "_resolvedAddress", resolvedAddress);
266
+ }
267
+ supportsWildcard() {
268
+ if (!this._supportsEip2544) {
269
+ // supportsInterface(bytes4 = selector("resolve(bytes,bytes)"))
270
+ this._supportsEip2544 = this.provider.call({
271
+ to: this.address,
272
+ data: "0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"
273
+ }).then((result) => {
274
+ return BigNumber.from(result).eq(1);
275
+ }).catch((error) => {
276
+ if (error.code === Logger.errors.CALL_EXCEPTION) {
277
+ return false;
278
+ }
279
+ // Rethrow the error: link is down, etc. Let future attempts retry.
280
+ this._supportsEip2544 = null;
281
+ throw error;
282
+ });
283
+ }
284
+ return this._supportsEip2544;
285
+ }
286
+ _fetch(selector, parameters) {
287
+ return __awaiter(this, void 0, void 0, function* () {
288
+ // e.g. keccak256("addr(bytes32,uint256)")
289
+ const tx = {
290
+ to: this.address,
291
+ ccipReadEnabled: true,
292
+ data: hexConcat([selector, namehash(this.name), (parameters || "0x")])
293
+ };
294
+ // Wildcard support; use EIP-2544 to resolve the request
295
+ let parseBytes = false;
296
+ if (yield this.supportsWildcard()) {
297
+ parseBytes = true;
298
+ // selector("resolve(bytes,bytes)")
299
+ tx.data = hexConcat(["0x9061b923", encodeBytes([dnsEncode(this.name), tx.data])]);
300
+ }
301
+ try {
302
+ let result = yield this.provider.call(tx);
303
+ if ((arrayify(result).length % 32) === 4) {
304
+ logger.throwError("resolver threw error", Logger.errors.CALL_EXCEPTION, {
305
+ transaction: tx, data: result
306
+ });
307
+ }
308
+ if (parseBytes) {
309
+ result = _parseBytes(result, 0);
310
+ }
311
+ return result;
312
+ }
313
+ catch (error) {
314
+ if (error.code === Logger.errors.CALL_EXCEPTION) {
315
+ return null;
316
+ }
317
+ throw error;
318
+ }
319
+ });
320
+ }
321
+ _fetchBytes(selector, parameters) {
322
+ return __awaiter(this, void 0, void 0, function* () {
323
+ const result = yield this._fetch(selector, parameters);
324
+ if (result != null) {
325
+ return _parseBytes(result, 0);
326
+ }
327
+ return null;
328
+ });
329
+ }
330
+ _getAddress(coinType, hexBytes) {
331
+ const coinInfo = coinInfos[String(coinType)];
332
+ if (coinInfo == null) {
333
+ logger.throwError(`unsupported coin type: ${coinType}`, Logger.errors.UNSUPPORTED_OPERATION, {
334
+ operation: `getAddress(${coinType})`
335
+ });
336
+ }
337
+ if (coinInfo.ilk === "eth") {
338
+ return this.provider.formatter.address(hexBytes);
339
+ }
340
+ const bytes = arrayify(hexBytes);
341
+ // P2PKH: OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG
342
+ if (coinInfo.p2pkh != null) {
343
+ const p2pkh = hexBytes.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);
344
+ if (p2pkh) {
345
+ const length = parseInt(p2pkh[1], 16);
346
+ if (p2pkh[2].length === length * 2 && length >= 1 && length <= 75) {
347
+ return base58Encode(concat([[coinInfo.p2pkh], ("0x" + p2pkh[2])]));
348
+ }
349
+ }
350
+ }
351
+ // P2SH: OP_HASH160 <scriptHash> OP_EQUAL
352
+ if (coinInfo.p2sh != null) {
353
+ const p2sh = hexBytes.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);
354
+ if (p2sh) {
355
+ const length = parseInt(p2sh[1], 16);
356
+ if (p2sh[2].length === length * 2 && length >= 1 && length <= 75) {
357
+ return base58Encode(concat([[coinInfo.p2sh], ("0x" + p2sh[2])]));
358
+ }
359
+ }
360
+ }
361
+ // Bech32
362
+ if (coinInfo.prefix != null) {
363
+ const length = bytes[1];
364
+ // https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#witness-program
365
+ let version = bytes[0];
366
+ if (version === 0x00) {
367
+ if (length !== 20 && length !== 32) {
368
+ version = -1;
369
+ }
370
+ }
371
+ else {
372
+ version = -1;
373
+ }
374
+ if (version >= 0 && bytes.length === 2 + length && length >= 1 && length <= 75) {
375
+ const words = bech32.toWords(bytes.slice(2));
376
+ words.unshift(version);
377
+ return bech32.encode(coinInfo.prefix, words);
378
+ }
379
+ }
380
+ return null;
381
+ }
382
+ getAddress(coinType) {
383
+ return __awaiter(this, void 0, void 0, function* () {
384
+ if (coinType == null) {
385
+ coinType = 60;
386
+ }
387
+ // If Ethereum, use the standard `addr(bytes32)`
388
+ if (coinType === 60) {
389
+ try {
390
+ // keccak256("addr(bytes32)")
391
+ const result = yield this._fetch("0x3b3b57de");
392
+ // No address
393
+ if (result === "0x" || result === HashZero) {
394
+ return null;
395
+ }
396
+ return this.provider.formatter.callAddress(result);
397
+ }
398
+ catch (error) {
399
+ if (error.code === Logger.errors.CALL_EXCEPTION) {
400
+ return null;
401
+ }
402
+ throw error;
403
+ }
404
+ }
405
+ // keccak256("addr(bytes32,uint256")
406
+ const hexBytes = yield this._fetchBytes("0xf1cb7e06", bytes32ify(coinType));
407
+ // No address
408
+ if (hexBytes == null || hexBytes === "0x") {
409
+ return null;
410
+ }
411
+ // Compute the address
412
+ const address = this._getAddress(coinType, hexBytes);
413
+ if (address == null) {
414
+ logger.throwError(`invalid or unsupported coin data`, Logger.errors.UNSUPPORTED_OPERATION, {
415
+ operation: `getAddress(${coinType})`,
416
+ coinType: coinType,
417
+ data: hexBytes
418
+ });
419
+ }
420
+ return address;
421
+ });
422
+ }
423
+ getAvatar() {
424
+ return __awaiter(this, void 0, void 0, function* () {
425
+ const linkage = [{ type: "name", content: this.name }];
426
+ try {
427
+ // test data for ricmoo.eth
428
+ //const avatar = "eip155:1/erc721:0x265385c7f4132228A0d54EB1A9e7460b91c0cC68/29233";
429
+ const avatar = yield this.getText("avatar");
430
+ if (avatar == null) {
431
+ return null;
432
+ }
433
+ for (let i = 0; i < matchers.length; i++) {
434
+ const match = avatar.match(matchers[i]);
435
+ if (match == null) {
436
+ continue;
437
+ }
438
+ const scheme = match[1].toLowerCase();
439
+ switch (scheme) {
440
+ case "https":
441
+ linkage.push({ type: "url", content: avatar });
442
+ return { linkage, url: avatar };
443
+ case "data":
444
+ linkage.push({ type: "data", content: avatar });
445
+ return { linkage, url: avatar };
446
+ case "ipfs":
447
+ linkage.push({ type: "ipfs", content: avatar });
448
+ return { linkage, url: getIpfsLink(avatar) };
449
+ case "erc721":
450
+ case "erc1155": {
451
+ // Depending on the ERC type, use tokenURI(uint256) or url(uint256)
452
+ const selector = (scheme === "erc721") ? "0xc87b56dd" : "0x0e89341c";
453
+ linkage.push({ type: scheme, content: avatar });
454
+ // The owner of this name
455
+ const owner = (this._resolvedAddress || (yield this.getAddress()));
456
+ const comps = (match[2] || "").split("/");
457
+ if (comps.length !== 2) {
458
+ return null;
459
+ }
460
+ const addr = yield this.provider.formatter.address(comps[0]);
461
+ const tokenId = hexZeroPad(BigNumber.from(comps[1]).toHexString(), 32);
462
+ // Check that this account owns the token
463
+ if (scheme === "erc721") {
464
+ // ownerOf(uint256 tokenId)
465
+ const tokenOwner = this.provider.formatter.callAddress(yield this.provider.call({
466
+ to: addr, data: hexConcat(["0x6352211e", tokenId])
467
+ }));
468
+ if (owner !== tokenOwner) {
469
+ return null;
470
+ }
471
+ linkage.push({ type: "owner", content: tokenOwner });
472
+ }
473
+ else if (scheme === "erc1155") {
474
+ // balanceOf(address owner, uint256 tokenId)
475
+ const balance = BigNumber.from(yield this.provider.call({
476
+ to: addr, data: hexConcat(["0x00fdd58e", hexZeroPad(owner, 32), tokenId])
477
+ }));
478
+ if (balance.isZero()) {
479
+ return null;
480
+ }
481
+ linkage.push({ type: "balance", content: balance.toString() });
482
+ }
483
+ // Call the token contract for the metadata URL
484
+ const tx = {
485
+ to: this.provider.formatter.address(comps[0]),
486
+ data: hexConcat([selector, tokenId])
487
+ };
488
+ let metadataUrl = _parseString(yield this.provider.call(tx), 0);
489
+ if (metadataUrl == null) {
490
+ return null;
491
+ }
492
+ linkage.push({ type: "metadata-url-base", content: metadataUrl });
493
+ // ERC-1155 allows a generic {id} in the URL
494
+ if (scheme === "erc1155") {
495
+ metadataUrl = metadataUrl.replace("{id}", tokenId.substring(2));
496
+ linkage.push({ type: "metadata-url-expanded", content: metadataUrl });
497
+ }
498
+ // Transform IPFS metadata links
499
+ if (metadataUrl.match(/^ipfs:/i)) {
500
+ metadataUrl = getIpfsLink(metadataUrl);
501
+ }
502
+ linkage.push({ type: "metadata-url", content: metadataUrl });
503
+ // Get the token metadata
504
+ const metadata = yield fetchJson(metadataUrl);
505
+ if (!metadata) {
506
+ return null;
507
+ }
508
+ linkage.push({ type: "metadata", content: JSON.stringify(metadata) });
509
+ // Pull the image URL out
510
+ let imageUrl = metadata.image;
511
+ if (typeof (imageUrl) !== "string") {
512
+ return null;
513
+ }
514
+ if (imageUrl.match(/^(https:\/\/|data:)/i)) {
515
+ // Allow
516
+ }
517
+ else {
518
+ // Transform IPFS link to gateway
519
+ const ipfs = imageUrl.match(matcherIpfs);
520
+ if (ipfs == null) {
521
+ return null;
522
+ }
523
+ linkage.push({ type: "url-ipfs", content: imageUrl });
524
+ imageUrl = getIpfsLink(imageUrl);
525
+ }
526
+ linkage.push({ type: "url", content: imageUrl });
527
+ return { linkage, url: imageUrl };
528
+ }
529
+ }
530
+ }
531
+ }
532
+ catch (error) { }
533
+ return null;
534
+ });
535
+ }
536
+ getContentHash() {
537
+ return __awaiter(this, void 0, void 0, function* () {
538
+ // keccak256("contenthash()")
539
+ const hexBytes = yield this._fetchBytes("0xbc1c58d1");
540
+ // No contenthash
541
+ if (hexBytes == null || hexBytes === "0x") {
542
+ return null;
543
+ }
544
+ // IPFS (CID: 1, Type: DAG-PB)
545
+ const ipfs = hexBytes.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);
546
+ if (ipfs) {
547
+ const length = parseInt(ipfs[3], 16);
548
+ if (ipfs[4].length === length * 2) {
549
+ return "ipfs:/\/" + Base58.encode("0x" + ipfs[1]);
550
+ }
551
+ }
552
+ // IPNS (CID: 1, Type: libp2p-key)
553
+ const ipns = hexBytes.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);
554
+ if (ipns) {
555
+ const length = parseInt(ipns[3], 16);
556
+ if (ipns[4].length === length * 2) {
557
+ return "ipns:/\/" + Base58.encode("0x" + ipns[1]);
558
+ }
559
+ }
560
+ // Swarm (CID: 1, Type: swarm-manifest; hash/length hard-coded to keccak256/32)
561
+ const swarm = hexBytes.match(/^0xe40101fa011b20([0-9a-f]*)$/);
562
+ if (swarm) {
563
+ if (swarm[1].length === (32 * 2)) {
564
+ return "bzz:/\/" + swarm[1];
565
+ }
566
+ }
567
+ const skynet = hexBytes.match(/^0x90b2c605([0-9a-f]*)$/);
568
+ if (skynet) {
569
+ if (skynet[1].length === (34 * 2)) {
570
+ // URL Safe base64; https://datatracker.ietf.org/doc/html/rfc4648#section-5
571
+ const urlSafe = { "=": "", "+": "-", "/": "_" };
572
+ const hash = encode("0x" + skynet[1]).replace(/[=+\/]/g, (a) => (urlSafe[a]));
573
+ return "sia:/\/" + hash;
574
+ }
575
+ }
576
+ return logger.throwError(`invalid or unsupported content hash data`, Logger.errors.UNSUPPORTED_OPERATION, {
577
+ operation: "getContentHash()",
578
+ data: hexBytes
579
+ });
580
+ });
581
+ }
582
+ getText(key) {
583
+ return __awaiter(this, void 0, void 0, function* () {
584
+ // The key encoded as parameter to fetchBytes
585
+ let keyBytes = toUtf8Bytes(key);
586
+ // The nodehash consumes the first slot, so the string pointer targets
587
+ // offset 64, with the length at offset 64 and data starting at offset 96
588
+ keyBytes = concat([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]);
589
+ // Pad to word-size (32 bytes)
590
+ if ((keyBytes.length % 32) !== 0) {
591
+ keyBytes = concat([keyBytes, hexZeroPad("0x", 32 - (key.length % 32))]);
592
+ }
593
+ const hexBytes = yield this._fetchBytes("0x59d1d43c", hexlify(keyBytes));
594
+ if (hexBytes == null || hexBytes === "0x") {
595
+ return null;
596
+ }
597
+ return toUtf8String(hexBytes);
598
+ });
599
+ }
600
+ }
601
+ let defaultFormatter = null;
602
+ let nextPollId = 1;
603
+ class BaseProvider extends Provider {
604
+ /**
605
+ * ready
606
+ *
607
+ * A Promise<Network> that resolves only once the provider is ready.
608
+ *
609
+ * Sub-classes that call the super with a network without a chainId
610
+ * MUST set this. Standard named networks have a known chainId.
611
+ *
612
+ */
613
+ constructor(network) {
614
+ super();
615
+ // Events being listened to
616
+ this._events = [];
617
+ this._emitted = { block: -2 };
618
+ this.disableCcipRead = false;
619
+ this.formatter = new.target.getFormatter();
620
+ // If network is any, this Provider allows the underlying
621
+ // network to change dynamically, and we auto-detect the
622
+ // current network
623
+ defineReadOnly(this, "anyNetwork", (network === "any"));
624
+ if (this.anyNetwork) {
625
+ network = this.detectNetwork();
626
+ }
627
+ if (network instanceof Promise) {
628
+ this._networkPromise = network;
629
+ // Squash any "unhandled promise" errors; that do not need to be handled
630
+ network.catch((error) => { });
631
+ // Trigger initial network setting (async)
632
+ this._ready().catch((error) => { });
633
+ }
634
+ else {
635
+ const knownNetwork = getStatic(new.target, "getNetwork")(network);
636
+ if (knownNetwork) {
637
+ defineReadOnly(this, "_network", knownNetwork);
638
+ this.emit("network", knownNetwork, null);
639
+ }
640
+ else {
641
+ logger.throwArgumentError("invalid network", "network", network);
642
+ }
643
+ }
644
+ this._maxInternalBlockNumber = -1024;
645
+ this._lastBlockNumber = -2;
646
+ this._maxFilterBlockRange = 10;
647
+ this._pollingInterval = 4000;
648
+ this._fastQueryDate = 0;
649
+ }
650
+ _ready() {
651
+ return __awaiter(this, void 0, void 0, function* () {
652
+ if (this._network == null) {
653
+ let network = null;
654
+ if (this._networkPromise) {
655
+ try {
656
+ network = yield this._networkPromise;
657
+ }
658
+ catch (error) { }
659
+ }
660
+ // Try the Provider's network detection (this MUST throw if it cannot)
661
+ if (network == null) {
662
+ network = yield this.detectNetwork();
663
+ }
664
+ // This should never happen; every Provider sub-class should have
665
+ // suggested a network by here (or have thrown).
666
+ if (!network) {
667
+ logger.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
668
+ }
669
+ // Possible this call stacked so do not call defineReadOnly again
670
+ if (this._network == null) {
671
+ if (this.anyNetwork) {
672
+ this._network = network;
673
+ }
674
+ else {
675
+ defineReadOnly(this, "_network", network);
676
+ }
677
+ this.emit("network", network, null);
678
+ }
679
+ }
680
+ return this._network;
681
+ });
682
+ }
683
+ // This will always return the most recently established network.
684
+ // For "any", this can change (a "network" event is emitted before
685
+ // any change is reflected); otherwise this cannot change
686
+ get ready() {
687
+ return poll(() => {
688
+ return this._ready().then((network) => {
689
+ return network;
690
+ }, (error) => {
691
+ // If the network isn't running yet, we will wait
692
+ if (error.code === Logger.errors.NETWORK_ERROR && error.event === "noNetwork") {
693
+ return undefined;
694
+ }
695
+ throw error;
696
+ });
697
+ });
698
+ }
699
+ // @TODO: Remove this and just create a singleton formatter
700
+ static getFormatter() {
701
+ if (defaultFormatter == null) {
702
+ defaultFormatter = new Formatter();
703
+ }
704
+ return defaultFormatter;
705
+ }
706
+ // @TODO: Remove this and just use getNetwork
707
+ static getNetwork(network) {
708
+ return getNetwork((network == null) ? "homestead" : network);
709
+ }
710
+ ccipReadFetch(tx, calldata, urls) {
711
+ return __awaiter(this, void 0, void 0, function* () {
712
+ if (this.disableCcipRead || urls.length === 0) {
713
+ return null;
714
+ }
715
+ const sender = tx.to.toLowerCase();
716
+ const data = calldata.toLowerCase();
717
+ const errorMessages = [];
718
+ for (let i = 0; i < urls.length; i++) {
719
+ const url = urls[i];
720
+ // URL expansion
721
+ const href = url.replace("{sender}", sender).replace("{data}", data);
722
+ // If no {data} is present, use POST; otherwise GET
723
+ const json = (url.indexOf("{data}") >= 0) ? null : JSON.stringify({ data, sender });
724
+ const result = yield fetchJson({ url: href, errorPassThrough: true }, json, (value, response) => {
725
+ value.status = response.statusCode;
726
+ return value;
727
+ });
728
+ if (result.data) {
729
+ return result.data;
730
+ }
731
+ const errorMessage = (result.message || "unknown error");
732
+ // 4xx indicates the result is not present; stop
733
+ if (result.status >= 400 && result.status < 500) {
734
+ return logger.throwError(`response not found during CCIP fetch: ${errorMessage}`, Logger.errors.SERVER_ERROR, { url, errorMessage });
735
+ }
736
+ // 5xx indicates server issue; try the next url
737
+ errorMessages.push(errorMessage);
738
+ }
739
+ return logger.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, Logger.errors.SERVER_ERROR, {
740
+ urls, errorMessages
741
+ });
742
+ });
743
+ }
744
+ // Fetches the blockNumber, but will reuse any result that is less
745
+ // than maxAge old or has been requested since the last request
746
+ _getInternalBlockNumber(maxAge) {
747
+ return __awaiter(this, void 0, void 0, function* () {
748
+ yield this._ready();
749
+ // Allowing stale data up to maxAge old
750
+ if (maxAge > 0) {
751
+ // While there are pending internal block requests...
752
+ while (this._internalBlockNumber) {
753
+ // ..."remember" which fetch we started with
754
+ const internalBlockNumber = this._internalBlockNumber;
755
+ try {
756
+ // Check the result is not too stale
757
+ const result = yield internalBlockNumber;
758
+ if ((getTime() - result.respTime) <= maxAge) {
759
+ return result.blockNumber;
760
+ }
761
+ // Too old; fetch a new value
762
+ break;
763
+ }
764
+ catch (error) {
765
+ // The fetch rejected; if we are the first to get the
766
+ // rejection, drop through so we replace it with a new
767
+ // fetch; all others blocked will then get that fetch
768
+ // which won't match the one they "remembered" and loop
769
+ if (this._internalBlockNumber === internalBlockNumber) {
770
+ break;
771
+ }
772
+ }
773
+ }
774
+ }
775
+ const reqTime = getTime();
776
+ const checkInternalBlockNumber = resolveProperties({
777
+ blockNumber: this.perform("getBlockNumber", {}),
778
+ networkError: this.getNetwork().then((network) => (null), (error) => (error))
779
+ }).then(({ blockNumber, networkError }) => {
780
+ if (networkError) {
781
+ // Unremember this bad internal block number
782
+ if (this._internalBlockNumber === checkInternalBlockNumber) {
783
+ this._internalBlockNumber = null;
784
+ }
785
+ throw networkError;
786
+ }
787
+ const respTime = getTime();
788
+ blockNumber = BigNumber.from(blockNumber).toNumber();
789
+ if (blockNumber < this._maxInternalBlockNumber) {
790
+ blockNumber = this._maxInternalBlockNumber;
791
+ }
792
+ this._maxInternalBlockNumber = blockNumber;
793
+ this._setFastBlockNumber(blockNumber); // @TODO: Still need this?
794
+ return { blockNumber, reqTime, respTime };
795
+ });
796
+ this._internalBlockNumber = checkInternalBlockNumber;
797
+ // Swallow unhandled exceptions; if needed they are handled else where
798
+ checkInternalBlockNumber.catch((error) => {
799
+ // Don't null the dead (rejected) fetch, if it has already been updated
800
+ if (this._internalBlockNumber === checkInternalBlockNumber) {
801
+ this._internalBlockNumber = null;
802
+ }
803
+ });
804
+ return (yield checkInternalBlockNumber).blockNumber;
805
+ });
806
+ }
807
+ poll() {
808
+ return __awaiter(this, void 0, void 0, function* () {
809
+ const pollId = nextPollId++;
810
+ // Track all running promises, so we can trigger a post-poll once they are complete
811
+ const runners = [];
812
+ let blockNumber = null;
813
+ try {
814
+ blockNumber = yield this._getInternalBlockNumber(100 + this.pollingInterval / 2);
815
+ }
816
+ catch (error) {
817
+ this.emit("error", error);
818
+ return;
819
+ }
820
+ this._setFastBlockNumber(blockNumber);
821
+ // Emit a poll event after we have the latest (fast) block number
822
+ this.emit("poll", pollId, blockNumber);
823
+ // If the block has not changed, meh.
824
+ if (blockNumber === this._lastBlockNumber) {
825
+ this.emit("didPoll", pollId);
826
+ return;
827
+ }
828
+ // First polling cycle, trigger a "block" events
829
+ if (this._emitted.block === -2) {
830
+ this._emitted.block = blockNumber - 1;
831
+ }
832
+ if (Math.abs((this._emitted.block) - blockNumber) > 1000) {
833
+ logger.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`);
834
+ this.emit("error", logger.makeError("network block skew detected", Logger.errors.NETWORK_ERROR, {
835
+ blockNumber: blockNumber,
836
+ event: "blockSkew",
837
+ previousBlockNumber: this._emitted.block
838
+ }));
839
+ this.emit("block", blockNumber);
840
+ }
841
+ else {
842
+ // Notify all listener for each block that has passed
843
+ for (let i = this._emitted.block + 1; i <= blockNumber; i++) {
844
+ this.emit("block", i);
845
+ }
846
+ }
847
+ // The emitted block was updated, check for obsolete events
848
+ if (this._emitted.block !== blockNumber) {
849
+ this._emitted.block = blockNumber;
850
+ Object.keys(this._emitted).forEach((key) => {
851
+ // The block event does not expire
852
+ if (key === "block") {
853
+ return;
854
+ }
855
+ // The block we were at when we emitted this event
856
+ const eventBlockNumber = this._emitted[key];
857
+ // We cannot garbage collect pending transactions or blocks here
858
+ // They should be garbage collected by the Provider when setting
859
+ // "pending" events
860
+ if (eventBlockNumber === "pending") {
861
+ return;
862
+ }
863
+ // Evict any transaction hashes or block hashes over 12 blocks
864
+ // old, since they should not return null anyways
865
+ if (blockNumber - eventBlockNumber > 12) {
866
+ delete this._emitted[key];
867
+ }
868
+ });
869
+ }
870
+ // First polling cycle
871
+ if (this._lastBlockNumber === -2) {
872
+ this._lastBlockNumber = blockNumber - 1;
873
+ }
874
+ // Find all transaction hashes we are waiting on
875
+ this._events.forEach((event) => {
876
+ switch (event.type) {
877
+ case "tx": {
878
+ const hash = event.hash;
879
+ let runner = this.getTransactionReceipt(hash).then((receipt) => {
880
+ if (!receipt || receipt.blockNumber == null) {
881
+ return null;
882
+ }
883
+ this._emitted["t:" + hash] = receipt.blockNumber;
884
+ this.emit(hash, receipt);
885
+ return null;
886
+ }).catch((error) => { this.emit("error", error); });
887
+ runners.push(runner);
888
+ break;
889
+ }
890
+ case "filter": {
891
+ // We only allow a single getLogs to be in-flight at a time
892
+ if (!event._inflight) {
893
+ event._inflight = true;
894
+ // This is the first filter for this event, so we want to
895
+ // restrict events to events that happened no earlier than now
896
+ if (event._lastBlockNumber === -2) {
897
+ event._lastBlockNumber = blockNumber - 1;
898
+ }
899
+ // Filter from the last *known* event; due to load-balancing
900
+ // and some nodes returning updated block numbers before
901
+ // indexing events, a logs result with 0 entries cannot be
902
+ // trusted and we must retry a range which includes it again
903
+ const filter = event.filter;
904
+ filter.fromBlock = event._lastBlockNumber + 1;
905
+ filter.toBlock = blockNumber;
906
+ // Prevent fitler ranges from growing too wild, since it is quite
907
+ // likely there just haven't been any events to move the lastBlockNumber.
908
+ const minFromBlock = filter.toBlock - this._maxFilterBlockRange;
909
+ if (minFromBlock > filter.fromBlock) {
910
+ filter.fromBlock = minFromBlock;
911
+ }
912
+ if (filter.fromBlock < 0) {
913
+ filter.fromBlock = 0;
914
+ }
915
+ const runner = this.getLogs(filter).then((logs) => {
916
+ // Allow the next getLogs
917
+ event._inflight = false;
918
+ if (logs.length === 0) {
919
+ return;
920
+ }
921
+ logs.forEach((log) => {
922
+ // Only when we get an event for a given block number
923
+ // can we trust the events are indexed
924
+ if (log.blockNumber > event._lastBlockNumber) {
925
+ event._lastBlockNumber = log.blockNumber;
926
+ }
927
+ // Make sure we stall requests to fetch blocks and txs
928
+ this._emitted["b:" + log.blockHash] = log.blockNumber;
929
+ this._emitted["t:" + log.transactionHash] = log.blockNumber;
930
+ this.emit(filter, log);
931
+ });
932
+ }).catch((error) => {
933
+ this.emit("error", error);
934
+ // Allow another getLogs (the range was not updated)
935
+ event._inflight = false;
936
+ });
937
+ runners.push(runner);
938
+ }
939
+ break;
940
+ }
941
+ }
942
+ });
943
+ this._lastBlockNumber = blockNumber;
944
+ // Once all events for this loop have been processed, emit "didPoll"
945
+ Promise.all(runners).then(() => {
946
+ this.emit("didPoll", pollId);
947
+ }).catch((error) => { this.emit("error", error); });
948
+ return;
949
+ });
950
+ }
951
+ // Deprecated; do not use this
952
+ resetEventsBlock(blockNumber) {
953
+ this._lastBlockNumber = blockNumber - 1;
954
+ if (this.polling) {
955
+ this.poll();
956
+ }
957
+ }
958
+ get network() {
959
+ return this._network;
960
+ }
961
+ // This method should query the network if the underlying network
962
+ // can change, such as when connected to a JSON-RPC backend
963
+ detectNetwork() {
964
+ return __awaiter(this, void 0, void 0, function* () {
965
+ return logger.throwError("provider does not support network detection", Logger.errors.UNSUPPORTED_OPERATION, {
966
+ operation: "provider.detectNetwork"
967
+ });
968
+ });
969
+ }
970
+ getNetwork() {
971
+ return __awaiter(this, void 0, void 0, function* () {
972
+ const network = yield this._ready();
973
+ // Make sure we are still connected to the same network; this is
974
+ // only an external call for backends which can have the underlying
975
+ // network change spontaneously
976
+ const currentNetwork = yield this.detectNetwork();
977
+ if (network.chainId !== currentNetwork.chainId) {
978
+ // We are allowing network changes, things can get complex fast;
979
+ // make sure you know what you are doing if you use "any"
980
+ if (this.anyNetwork) {
981
+ this._network = currentNetwork;
982
+ // Reset all internal block number guards and caches
983
+ this._lastBlockNumber = -2;
984
+ this._fastBlockNumber = null;
985
+ this._fastBlockNumberPromise = null;
986
+ this._fastQueryDate = 0;
987
+ this._emitted.block = -2;
988
+ this._maxInternalBlockNumber = -1024;
989
+ this._internalBlockNumber = null;
990
+ // The "network" event MUST happen before this method resolves
991
+ // so any events have a chance to unregister, so we stall an
992
+ // additional event loop before returning from /this/ call
993
+ this.emit("network", currentNetwork, network);
994
+ yield stall(0);
995
+ return this._network;
996
+ }
997
+ const error = logger.makeError("underlying network changed", Logger.errors.NETWORK_ERROR, {
998
+ event: "changed",
999
+ network: network,
1000
+ detectedNetwork: currentNetwork
1001
+ });
1002
+ this.emit("error", error);
1003
+ throw error;
1004
+ }
1005
+ return network;
1006
+ });
1007
+ }
1008
+ get blockNumber() {
1009
+ this._getInternalBlockNumber(100 + this.pollingInterval / 2).then((blockNumber) => {
1010
+ this._setFastBlockNumber(blockNumber);
1011
+ }, (error) => { });
1012
+ return (this._fastBlockNumber != null) ? this._fastBlockNumber : -1;
1013
+ }
1014
+ get polling() {
1015
+ return (this._poller != null);
1016
+ }
1017
+ set polling(value) {
1018
+ if (value && !this._poller) {
1019
+ this._poller = setInterval(() => { this.poll(); }, this.pollingInterval);
1020
+ if (!this._bootstrapPoll) {
1021
+ this._bootstrapPoll = setTimeout(() => {
1022
+ this.poll();
1023
+ // We block additional polls until the polling interval
1024
+ // is done, to prevent overwhelming the poll function
1025
+ this._bootstrapPoll = setTimeout(() => {
1026
+ // If polling was disabled, something may require a poke
1027
+ // since starting the bootstrap poll and it was disabled
1028
+ if (!this._poller) {
1029
+ this.poll();
1030
+ }
1031
+ // Clear out the bootstrap so we can do another
1032
+ this._bootstrapPoll = null;
1033
+ }, this.pollingInterval);
1034
+ }, 0);
1035
+ }
1036
+ }
1037
+ else if (!value && this._poller) {
1038
+ clearInterval(this._poller);
1039
+ this._poller = null;
1040
+ }
1041
+ }
1042
+ get pollingInterval() {
1043
+ return this._pollingInterval;
1044
+ }
1045
+ set pollingInterval(value) {
1046
+ if (typeof (value) !== "number" || value <= 0 || parseInt(String(value)) != value) {
1047
+ throw new Error("invalid polling interval");
1048
+ }
1049
+ this._pollingInterval = value;
1050
+ if (this._poller) {
1051
+ clearInterval(this._poller);
1052
+ this._poller = setInterval(() => { this.poll(); }, this._pollingInterval);
1053
+ }
1054
+ }
1055
+ _getFastBlockNumber() {
1056
+ const now = getTime();
1057
+ // Stale block number, request a newer value
1058
+ if ((now - this._fastQueryDate) > 2 * this._pollingInterval) {
1059
+ this._fastQueryDate = now;
1060
+ this._fastBlockNumberPromise = this.getBlockNumber().then((blockNumber) => {
1061
+ if (this._fastBlockNumber == null || blockNumber > this._fastBlockNumber) {
1062
+ this._fastBlockNumber = blockNumber;
1063
+ }
1064
+ return this._fastBlockNumber;
1065
+ });
1066
+ }
1067
+ return this._fastBlockNumberPromise;
1068
+ }
1069
+ _setFastBlockNumber(blockNumber) {
1070
+ // Older block, maybe a stale request
1071
+ if (this._fastBlockNumber != null && blockNumber < this._fastBlockNumber) {
1072
+ return;
1073
+ }
1074
+ // Update the time we updated the blocknumber
1075
+ this._fastQueryDate = getTime();
1076
+ // Newer block number, use it
1077
+ if (this._fastBlockNumber == null || blockNumber > this._fastBlockNumber) {
1078
+ this._fastBlockNumber = blockNumber;
1079
+ this._fastBlockNumberPromise = Promise.resolve(blockNumber);
1080
+ }
1081
+ }
1082
+ waitForTransaction(transactionHash, confirmations, timeout) {
1083
+ return __awaiter(this, void 0, void 0, function* () {
1084
+ return this._waitForTransaction(transactionHash, (confirmations == null) ? 1 : confirmations, timeout || 0, null);
1085
+ });
1086
+ }
1087
+ _waitForTransaction(transactionHash, confirmations, timeout, replaceable) {
1088
+ return __awaiter(this, void 0, void 0, function* () {
1089
+ const receipt = yield this.getTransactionReceipt(transactionHash);
1090
+ // Receipt is already good
1091
+ if ((receipt ? receipt.confirmations : 0) >= confirmations) {
1092
+ return receipt;
1093
+ }
1094
+ // Poll until the receipt is good...
1095
+ return new Promise((resolve, reject) => {
1096
+ const cancelFuncs = [];
1097
+ let done = false;
1098
+ const alreadyDone = function () {
1099
+ if (done) {
1100
+ return true;
1101
+ }
1102
+ done = true;
1103
+ cancelFuncs.forEach((func) => { func(); });
1104
+ return false;
1105
+ };
1106
+ const minedHandler = (receipt) => {
1107
+ if (receipt.confirmations < confirmations) {
1108
+ return;
1109
+ }
1110
+ if (alreadyDone()) {
1111
+ return;
1112
+ }
1113
+ resolve(receipt);
1114
+ };
1115
+ this.on(transactionHash, minedHandler);
1116
+ cancelFuncs.push(() => { this.removeListener(transactionHash, minedHandler); });
1117
+ if (replaceable) {
1118
+ let lastBlockNumber = replaceable.startBlock;
1119
+ let scannedBlock = null;
1120
+ const replaceHandler = (blockNumber) => __awaiter(this, void 0, void 0, function* () {
1121
+ if (done) {
1122
+ return;
1123
+ }
1124
+ // Wait 1 second; this is only used in the case of a fault, so
1125
+ // we will trade off a little bit of latency for more consistent
1126
+ // results and fewer JSON-RPC calls
1127
+ yield stall(1000);
1128
+ this.getTransactionCount(replaceable.from).then((nonce) => __awaiter(this, void 0, void 0, function* () {
1129
+ if (done) {
1130
+ return;
1131
+ }
1132
+ if (nonce <= replaceable.nonce) {
1133
+ lastBlockNumber = blockNumber;
1134
+ }
1135
+ else {
1136
+ // First check if the transaction was mined
1137
+ {
1138
+ const mined = yield this.getTransaction(transactionHash);
1139
+ if (mined && mined.blockNumber != null) {
1140
+ return;
1141
+ }
1142
+ }
1143
+ // First time scanning. We start a little earlier for some
1144
+ // wiggle room here to handle the eventually consistent nature
1145
+ // of blockchain (e.g. the getTransactionCount was for a
1146
+ // different block)
1147
+ if (scannedBlock == null) {
1148
+ scannedBlock = lastBlockNumber - 3;
1149
+ if (scannedBlock < replaceable.startBlock) {
1150
+ scannedBlock = replaceable.startBlock;
1151
+ }
1152
+ }
1153
+ while (scannedBlock <= blockNumber) {
1154
+ if (done) {
1155
+ return;
1156
+ }
1157
+ const block = yield this.getBlockWithTransactions(scannedBlock);
1158
+ for (let ti = 0; ti < block.transactions.length; ti++) {
1159
+ const tx = block.transactions[ti];
1160
+ // Successfully mined!
1161
+ if (tx.hash === transactionHash) {
1162
+ return;
1163
+ }
1164
+ // Matches our transaction from and nonce; its a replacement
1165
+ if (tx.from === replaceable.from && tx.nonce === replaceable.nonce) {
1166
+ if (done) {
1167
+ return;
1168
+ }
1169
+ // Get the receipt of the replacement
1170
+ const receipt = yield this.waitForTransaction(tx.hash, confirmations);
1171
+ // Already resolved or rejected (prolly a timeout)
1172
+ if (alreadyDone()) {
1173
+ return;
1174
+ }
1175
+ // The reason we were replaced
1176
+ let reason = "replaced";
1177
+ if (tx.data === replaceable.data && tx.to === replaceable.to && tx.value.eq(replaceable.value)) {
1178
+ reason = "repriced";
1179
+ }
1180
+ else if (tx.data === "0x" && tx.from === tx.to && tx.value.isZero()) {
1181
+ reason = "cancelled";
1182
+ }
1183
+ // Explain why we were replaced
1184
+ reject(logger.makeError("transaction was replaced", Logger.errors.TRANSACTION_REPLACED, {
1185
+ cancelled: (reason === "replaced" || reason === "cancelled"),
1186
+ reason,
1187
+ replacement: this._wrapTransaction(tx),
1188
+ hash: transactionHash,
1189
+ receipt
1190
+ }));
1191
+ return;
1192
+ }
1193
+ }
1194
+ scannedBlock++;
1195
+ }
1196
+ }
1197
+ if (done) {
1198
+ return;
1199
+ }
1200
+ this.once("block", replaceHandler);
1201
+ }), (error) => {
1202
+ if (done) {
1203
+ return;
1204
+ }
1205
+ this.once("block", replaceHandler);
1206
+ });
1207
+ });
1208
+ if (done) {
1209
+ return;
1210
+ }
1211
+ this.once("block", replaceHandler);
1212
+ cancelFuncs.push(() => {
1213
+ this.removeListener("block", replaceHandler);
1214
+ });
1215
+ }
1216
+ if (typeof (timeout) === "number" && timeout > 0) {
1217
+ const timer = setTimeout(() => {
1218
+ if (alreadyDone()) {
1219
+ return;
1220
+ }
1221
+ reject(logger.makeError("timeout exceeded", Logger.errors.TIMEOUT, { timeout: timeout }));
1222
+ }, timeout);
1223
+ if (timer.unref) {
1224
+ timer.unref();
1225
+ }
1226
+ cancelFuncs.push(() => { clearTimeout(timer); });
1227
+ }
1228
+ });
1229
+ });
1230
+ }
1231
+ getBlockNumber() {
1232
+ return __awaiter(this, void 0, void 0, function* () {
1233
+ return this._getInternalBlockNumber(0);
1234
+ });
1235
+ }
1236
+ getGasPrice() {
1237
+ return __awaiter(this, void 0, void 0, function* () {
1238
+ yield this.getNetwork();
1239
+ const result = yield this.perform("getGasPrice", {});
1240
+ try {
1241
+ return BigNumber.from(result);
1242
+ }
1243
+ catch (error) {
1244
+ return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
1245
+ method: "getGasPrice",
1246
+ result, error
1247
+ });
1248
+ }
1249
+ });
1250
+ }
1251
+ getBalance(addressOrName, blockTag) {
1252
+ return __awaiter(this, void 0, void 0, function* () {
1253
+ yield this.getNetwork();
1254
+ const params = yield resolveProperties({
1255
+ address: this._getAddress(addressOrName),
1256
+ blockTag: this._getBlockTag(blockTag)
1257
+ });
1258
+ const result = yield this.perform("getBalance", params);
1259
+ try {
1260
+ return BigNumber.from(result);
1261
+ }
1262
+ catch (error) {
1263
+ return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
1264
+ method: "getBalance",
1265
+ params, result, error
1266
+ });
1267
+ }
1268
+ });
1269
+ }
1270
+ getTransactionCount(addressOrName, blockTag) {
1271
+ return __awaiter(this, void 0, void 0, function* () {
1272
+ yield this.getNetwork();
1273
+ const params = yield resolveProperties({
1274
+ address: this._getAddress(addressOrName),
1275
+ blockTag: this._getBlockTag(blockTag)
1276
+ });
1277
+ const result = yield this.perform("getTransactionCount", params);
1278
+ try {
1279
+ return BigNumber.from(result).toNumber();
1280
+ }
1281
+ catch (error) {
1282
+ return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
1283
+ method: "getTransactionCount",
1284
+ params, result, error
1285
+ });
1286
+ }
1287
+ });
1288
+ }
1289
+ getCode(addressOrName, blockTag) {
1290
+ return __awaiter(this, void 0, void 0, function* () {
1291
+ yield this.getNetwork();
1292
+ const params = yield resolveProperties({
1293
+ address: this._getAddress(addressOrName),
1294
+ blockTag: this._getBlockTag(blockTag)
1295
+ });
1296
+ const result = yield this.perform("getCode", params);
1297
+ try {
1298
+ return hexlify(result);
1299
+ }
1300
+ catch (error) {
1301
+ return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
1302
+ method: "getCode",
1303
+ params, result, error
1304
+ });
1305
+ }
1306
+ });
1307
+ }
1308
+ getStorageAt(addressOrName, position, blockTag) {
1309
+ return __awaiter(this, void 0, void 0, function* () {
1310
+ yield this.getNetwork();
1311
+ const params = yield resolveProperties({
1312
+ address: this._getAddress(addressOrName),
1313
+ blockTag: this._getBlockTag(blockTag),
1314
+ position: Promise.resolve(position).then((p) => hexValue(p))
1315
+ });
1316
+ const result = yield this.perform("getStorageAt", params);
1317
+ try {
1318
+ return hexlify(result);
1319
+ }
1320
+ catch (error) {
1321
+ return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
1322
+ method: "getStorageAt",
1323
+ params, result, error
1324
+ });
1325
+ }
1326
+ });
1327
+ }
1328
+ // This should be called by any subclass wrapping a TransactionResponse
1329
+ _wrapTransaction(tx, hash, startBlock) {
1330
+ if (hash != null && hexDataLength(hash) !== 32) {
1331
+ throw new Error("invalid response - sendTransaction");
1332
+ }
1333
+ const result = tx;
1334
+ // Check the hash we expect is the same as the hash the server reported
1335
+ if (hash != null && tx.hash !== hash) {
1336
+ logger.throwError("Transaction hash mismatch from Provider.sendTransaction.", Logger.errors.UNKNOWN_ERROR, { expectedHash: tx.hash, returnedHash: hash });
1337
+ }
1338
+ result.wait = (confirms, timeout) => __awaiter(this, void 0, void 0, function* () {
1339
+ if (confirms == null) {
1340
+ confirms = 1;
1341
+ }
1342
+ if (timeout == null) {
1343
+ timeout = 0;
1344
+ }
1345
+ // Get the details to detect replacement
1346
+ let replacement = undefined;
1347
+ if (confirms !== 0 && startBlock != null) {
1348
+ replacement = {
1349
+ data: tx.data,
1350
+ from: tx.from,
1351
+ nonce: tx.nonce,
1352
+ to: tx.to,
1353
+ value: tx.value,
1354
+ startBlock
1355
+ };
1356
+ }
1357
+ const receipt = yield this._waitForTransaction(tx.hash, confirms, timeout, replacement);
1358
+ if (receipt == null && confirms === 0) {
1359
+ return null;
1360
+ }
1361
+ // No longer pending, allow the polling loop to garbage collect this
1362
+ this._emitted["t:" + tx.hash] = receipt.blockNumber;
1363
+ if (receipt.status === 0) {
1364
+ logger.throwError("transaction failed", Logger.errors.CALL_EXCEPTION, {
1365
+ transactionHash: tx.hash,
1366
+ transaction: tx,
1367
+ receipt: receipt
1368
+ });
1369
+ }
1370
+ return receipt;
1371
+ });
1372
+ return result;
1373
+ }
1374
+ sendTransaction(signedTransaction) {
1375
+ return __awaiter(this, void 0, void 0, function* () {
1376
+ yield this.getNetwork();
1377
+ const hexTx = yield Promise.resolve(signedTransaction).then(t => hexlify(t));
1378
+ const tx = this.formatter.transaction(signedTransaction);
1379
+ if (tx.confirmations == null) {
1380
+ tx.confirmations = 0;
1381
+ }
1382
+ const blockNumber = yield this._getInternalBlockNumber(100 + 2 * this.pollingInterval);
1383
+ try {
1384
+ const hash = yield this.perform("sendTransaction", { signedTransaction: hexTx });
1385
+ return this._wrapTransaction(tx, hash, blockNumber);
1386
+ }
1387
+ catch (error) {
1388
+ error.transaction = tx;
1389
+ error.transactionHash = tx.hash;
1390
+ throw error;
1391
+ }
1392
+ });
1393
+ }
1394
+ _getTransactionRequest(transaction) {
1395
+ return __awaiter(this, void 0, void 0, function* () {
1396
+ const values = yield transaction;
1397
+ const tx = {};
1398
+ ["from", "to"].forEach((key) => {
1399
+ if (values[key] == null) {
1400
+ return;
1401
+ }
1402
+ tx[key] = Promise.resolve(values[key]).then((v) => (v ? this._getAddress(v) : null));
1403
+ });
1404
+ ["gasLimit", "gasPrice", "maxFeePerGas", "maxPriorityFeePerGas", "value"].forEach((key) => {
1405
+ if (values[key] == null) {
1406
+ return;
1407
+ }
1408
+ tx[key] = Promise.resolve(values[key]).then((v) => (v ? BigNumber.from(v) : null));
1409
+ });
1410
+ ["type"].forEach((key) => {
1411
+ if (values[key] == null) {
1412
+ return;
1413
+ }
1414
+ tx[key] = Promise.resolve(values[key]).then((v) => ((v != null) ? v : null));
1415
+ });
1416
+ if (values.accessList) {
1417
+ tx.accessList = this.formatter.accessList(values.accessList);
1418
+ }
1419
+ ["data"].forEach((key) => {
1420
+ if (values[key] == null) {
1421
+ return;
1422
+ }
1423
+ tx[key] = Promise.resolve(values[key]).then((v) => (v ? hexlify(v) : null));
1424
+ });
1425
+ return this.formatter.transactionRequest(yield resolveProperties(tx));
1426
+ });
1427
+ }
1428
+ _getFilter(filter) {
1429
+ return __awaiter(this, void 0, void 0, function* () {
1430
+ filter = yield filter;
1431
+ const result = {};
1432
+ if (filter.address != null) {
1433
+ result.address = this._getAddress(filter.address);
1434
+ }
1435
+ ["blockHash", "topics"].forEach((key) => {
1436
+ if (filter[key] == null) {
1437
+ return;
1438
+ }
1439
+ result[key] = filter[key];
1440
+ });
1441
+ ["fromBlock", "toBlock"].forEach((key) => {
1442
+ if (filter[key] == null) {
1443
+ return;
1444
+ }
1445
+ result[key] = this._getBlockTag(filter[key]);
1446
+ });
1447
+ return this.formatter.filter(yield resolveProperties(result));
1448
+ });
1449
+ }
1450
+ _call(transaction, blockTag, attempt) {
1451
+ return __awaiter(this, void 0, void 0, function* () {
1452
+ if (attempt >= MAX_CCIP_REDIRECTS) {
1453
+ logger.throwError("CCIP read exceeded maximum redirections", Logger.errors.SERVER_ERROR, {
1454
+ redirects: attempt, transaction
1455
+ });
1456
+ }
1457
+ const txSender = transaction.to;
1458
+ const result = yield this.perform("call", { transaction, blockTag });
1459
+ // CCIP Read request via OffchainLookup(address,string[],bytes,bytes4,bytes)
1460
+ if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && (hexDataLength(result) % 32 === 4)) {
1461
+ try {
1462
+ const data = hexDataSlice(result, 4);
1463
+ // Check the sender of the OffchainLookup matches the transaction
1464
+ const sender = hexDataSlice(data, 0, 32);
1465
+ if (!BigNumber.from(sender).eq(txSender)) {
1466
+ logger.throwError("CCIP Read sender did not match", Logger.errors.CALL_EXCEPTION, {
1467
+ name: "OffchainLookup",
1468
+ signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
1469
+ transaction, data: result
1470
+ });
1471
+ }
1472
+ // Read the URLs from the response
1473
+ const urls = [];
1474
+ const urlsOffset = BigNumber.from(hexDataSlice(data, 32, 64)).toNumber();
1475
+ const urlsLength = BigNumber.from(hexDataSlice(data, urlsOffset, urlsOffset + 32)).toNumber();
1476
+ const urlsData = hexDataSlice(data, urlsOffset + 32);
1477
+ for (let u = 0; u < urlsLength; u++) {
1478
+ const url = _parseString(urlsData, u * 32);
1479
+ if (url == null) {
1480
+ logger.throwError("CCIP Read contained corrupt URL string", Logger.errors.CALL_EXCEPTION, {
1481
+ name: "OffchainLookup",
1482
+ signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
1483
+ transaction, data: result
1484
+ });
1485
+ }
1486
+ urls.push(url);
1487
+ }
1488
+ // Get the CCIP calldata to forward
1489
+ const calldata = _parseBytes(data, 64);
1490
+ // Get the callbackSelector (bytes4)
1491
+ if (!BigNumber.from(hexDataSlice(data, 100, 128)).isZero()) {
1492
+ logger.throwError("CCIP Read callback selector included junk", Logger.errors.CALL_EXCEPTION, {
1493
+ name: "OffchainLookup",
1494
+ signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
1495
+ transaction, data: result
1496
+ });
1497
+ }
1498
+ const callbackSelector = hexDataSlice(data, 96, 100);
1499
+ // Get the extra data to send back to the contract as context
1500
+ const extraData = _parseBytes(data, 128);
1501
+ const ccipResult = yield this.ccipReadFetch(transaction, calldata, urls);
1502
+ if (ccipResult == null) {
1503
+ logger.throwError("CCIP Read disabled or provided no URLs", Logger.errors.CALL_EXCEPTION, {
1504
+ name: "OffchainLookup",
1505
+ signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
1506
+ transaction, data: result
1507
+ });
1508
+ }
1509
+ const tx = {
1510
+ to: txSender,
1511
+ data: hexConcat([callbackSelector, encodeBytes([ccipResult, extraData])])
1512
+ };
1513
+ return this._call(tx, blockTag, attempt + 1);
1514
+ }
1515
+ catch (error) {
1516
+ if (error.code === Logger.errors.SERVER_ERROR) {
1517
+ throw error;
1518
+ }
1519
+ }
1520
+ }
1521
+ try {
1522
+ return hexlify(result);
1523
+ }
1524
+ catch (error) {
1525
+ return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
1526
+ method: "call",
1527
+ params: { transaction, blockTag }, result, error
1528
+ });
1529
+ }
1530
+ });
1531
+ }
1532
+ call(transaction, blockTag) {
1533
+ return __awaiter(this, void 0, void 0, function* () {
1534
+ yield this.getNetwork();
1535
+ const resolved = yield resolveProperties({
1536
+ transaction: this._getTransactionRequest(transaction),
1537
+ blockTag: this._getBlockTag(blockTag),
1538
+ ccipReadEnabled: Promise.resolve(transaction.ccipReadEnabled)
1539
+ });
1540
+ return this._call(resolved.transaction, resolved.blockTag, resolved.ccipReadEnabled ? 0 : -1);
1541
+ });
1542
+ }
1543
+ estimateGas(transaction) {
1544
+ return __awaiter(this, void 0, void 0, function* () {
1545
+ yield this.getNetwork();
1546
+ const params = yield resolveProperties({
1547
+ transaction: this._getTransactionRequest(transaction)
1548
+ });
1549
+ const result = yield this.perform("estimateGas", params);
1550
+ try {
1551
+ return BigNumber.from(result);
1552
+ }
1553
+ catch (error) {
1554
+ return logger.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
1555
+ method: "estimateGas",
1556
+ params, result, error
1557
+ });
1558
+ }
1559
+ });
1560
+ }
1561
+ _getAddress(addressOrName) {
1562
+ return __awaiter(this, void 0, void 0, function* () {
1563
+ addressOrName = yield addressOrName;
1564
+ if (typeof (addressOrName) !== "string") {
1565
+ logger.throwArgumentError("invalid address or ENS name", "name", addressOrName);
1566
+ }
1567
+ const address = yield this.resolveName(addressOrName);
1568
+ if (address == null) {
1569
+ logger.throwError("ENS name not configured", Logger.errors.UNSUPPORTED_OPERATION, {
1570
+ operation: `resolveName(${JSON.stringify(addressOrName)})`
1571
+ });
1572
+ }
1573
+ return address;
1574
+ });
1575
+ }
1576
+ _getBlock(blockHashOrBlockTag, includeTransactions) {
1577
+ return __awaiter(this, void 0, void 0, function* () {
1578
+ yield this.getNetwork();
1579
+ blockHashOrBlockTag = yield blockHashOrBlockTag;
1580
+ // If blockTag is a number (not "latest", etc), this is the block number
1581
+ let blockNumber = -128;
1582
+ const params = {
1583
+ includeTransactions: !!includeTransactions
1584
+ };
1585
+ if (isHexString(blockHashOrBlockTag, 32)) {
1586
+ params.blockHash = blockHashOrBlockTag;
1587
+ }
1588
+ else {
1589
+ try {
1590
+ params.blockTag = yield this._getBlockTag(blockHashOrBlockTag);
1591
+ if (isHexString(params.blockTag)) {
1592
+ blockNumber = parseInt(params.blockTag.substring(2), 16);
1593
+ }
1594
+ }
1595
+ catch (error) {
1596
+ logger.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag);
1597
+ }
1598
+ }
1599
+ return poll(() => __awaiter(this, void 0, void 0, function* () {
1600
+ const block = yield this.perform("getBlock", params);
1601
+ // Block was not found
1602
+ if (block == null) {
1603
+ // For blockhashes, if we didn't say it existed, that blockhash may
1604
+ // not exist. If we did see it though, perhaps from a log, we know
1605
+ // it exists, and this node is just not caught up yet.
1606
+ if (params.blockHash != null) {
1607
+ if (this._emitted["b:" + params.blockHash] == null) {
1608
+ return null;
1609
+ }
1610
+ }
1611
+ // For block tags, if we are asking for a future block, we return null
1612
+ if (params.blockTag != null) {
1613
+ if (blockNumber > this._emitted.block) {
1614
+ return null;
1615
+ }
1616
+ }
1617
+ // Retry on the next block
1618
+ return undefined;
1619
+ }
1620
+ // Add transactions
1621
+ if (includeTransactions) {
1622
+ let blockNumber = null;
1623
+ for (let i = 0; i < block.transactions.length; i++) {
1624
+ const tx = block.transactions[i];
1625
+ if (tx.blockNumber == null) {
1626
+ tx.confirmations = 0;
1627
+ }
1628
+ else if (tx.confirmations == null) {
1629
+ if (blockNumber == null) {
1630
+ blockNumber = yield this._getInternalBlockNumber(100 + 2 * this.pollingInterval);
1631
+ }
1632
+ // Add the confirmations using the fast block number (pessimistic)
1633
+ let confirmations = (blockNumber - tx.blockNumber) + 1;
1634
+ if (confirmations <= 0) {
1635
+ confirmations = 1;
1636
+ }
1637
+ tx.confirmations = confirmations;
1638
+ }
1639
+ }
1640
+ const blockWithTxs = this.formatter.blockWithTransactions(block);
1641
+ blockWithTxs.transactions = blockWithTxs.transactions.map((tx) => this._wrapTransaction(tx));
1642
+ return blockWithTxs;
1643
+ }
1644
+ return this.formatter.block(block);
1645
+ }), { oncePoll: this });
1646
+ });
1647
+ }
1648
+ getBlock(blockHashOrBlockTag) {
1649
+ return (this._getBlock(blockHashOrBlockTag, false));
1650
+ }
1651
+ getBlockWithTransactions(blockHashOrBlockTag) {
1652
+ return (this._getBlock(blockHashOrBlockTag, true));
1653
+ }
1654
+ getTransaction(transactionHash) {
1655
+ return __awaiter(this, void 0, void 0, function* () {
1656
+ yield this.getNetwork();
1657
+ transactionHash = yield transactionHash;
1658
+ const params = { transactionHash: this.formatter.hash(transactionHash, true) };
1659
+ return poll(() => __awaiter(this, void 0, void 0, function* () {
1660
+ const result = yield this.perform("getTransaction", params);
1661
+ if (result == null) {
1662
+ if (this._emitted["t:" + transactionHash] == null) {
1663
+ return null;
1664
+ }
1665
+ return undefined;
1666
+ }
1667
+ const tx = this.formatter.transactionResponse(result);
1668
+ if (tx.blockNumber == null) {
1669
+ tx.confirmations = 0;
1670
+ }
1671
+ else if (tx.confirmations == null) {
1672
+ const blockNumber = yield this._getInternalBlockNumber(100 + 2 * this.pollingInterval);
1673
+ // Add the confirmations using the fast block number (pessimistic)
1674
+ let confirmations = (blockNumber - tx.blockNumber) + 1;
1675
+ if (confirmations <= 0) {
1676
+ confirmations = 1;
1677
+ }
1678
+ tx.confirmations = confirmations;
1679
+ }
1680
+ return this._wrapTransaction(tx);
1681
+ }), { oncePoll: this });
1682
+ });
1683
+ }
1684
+ getTransactionReceipt(transactionHash) {
1685
+ return __awaiter(this, void 0, void 0, function* () {
1686
+ yield this.getNetwork();
1687
+ transactionHash = yield transactionHash;
1688
+ const params = { transactionHash: this.formatter.hash(transactionHash, true) };
1689
+ return poll(() => __awaiter(this, void 0, void 0, function* () {
1690
+ const result = yield this.perform("getTransactionReceipt", params);
1691
+ if (result == null) {
1692
+ if (this._emitted["t:" + transactionHash] == null) {
1693
+ return null;
1694
+ }
1695
+ return undefined;
1696
+ }
1697
+ // "geth-etc" returns receipts before they are ready
1698
+ if (result.blockHash == null) {
1699
+ return undefined;
1700
+ }
1701
+ const receipt = this.formatter.receipt(result);
1702
+ if (receipt.blockNumber == null) {
1703
+ receipt.confirmations = 0;
1704
+ }
1705
+ else if (receipt.confirmations == null) {
1706
+ const blockNumber = yield this._getInternalBlockNumber(100 + 2 * this.pollingInterval);
1707
+ // Add the confirmations using the fast block number (pessimistic)
1708
+ let confirmations = (blockNumber - receipt.blockNumber) + 1;
1709
+ if (confirmations <= 0) {
1710
+ confirmations = 1;
1711
+ }
1712
+ receipt.confirmations = confirmations;
1713
+ }
1714
+ return receipt;
1715
+ }), { oncePoll: this });
1716
+ });
1717
+ }
1718
+ getLogs(filter) {
1719
+ return __awaiter(this, void 0, void 0, function* () {
1720
+ yield this.getNetwork();
1721
+ const params = yield resolveProperties({ filter: this._getFilter(filter) });
1722
+ const logs = yield this.perform("getLogs", params);
1723
+ logs.forEach((log) => {
1724
+ if (log.removed == null) {
1725
+ log.removed = false;
1726
+ }
1727
+ });
1728
+ return Formatter.arrayOf(this.formatter.filterLog.bind(this.formatter))(logs);
1729
+ });
1730
+ }
1731
+ getEtherPrice() {
1732
+ return __awaiter(this, void 0, void 0, function* () {
1733
+ yield this.getNetwork();
1734
+ return this.perform("getEtherPrice", {});
1735
+ });
1736
+ }
1737
+ _getBlockTag(blockTag) {
1738
+ return __awaiter(this, void 0, void 0, function* () {
1739
+ blockTag = yield blockTag;
1740
+ if (typeof (blockTag) === "number" && blockTag < 0) {
1741
+ if (blockTag % 1) {
1742
+ logger.throwArgumentError("invalid BlockTag", "blockTag", blockTag);
1743
+ }
1744
+ let blockNumber = yield this._getInternalBlockNumber(100 + 2 * this.pollingInterval);
1745
+ blockNumber += blockTag;
1746
+ if (blockNumber < 0) {
1747
+ blockNumber = 0;
1748
+ }
1749
+ return this.formatter.blockTag(blockNumber);
1750
+ }
1751
+ return this.formatter.blockTag(blockTag);
1752
+ });
1753
+ }
1754
+ getResolver(name) {
1755
+ return __awaiter(this, void 0, void 0, function* () {
1756
+ let currentName = name;
1757
+ while (true) {
1758
+ if (currentName === "" || currentName === ".") {
1759
+ return null;
1760
+ }
1761
+ // Optimization since the eth node cannot change and does
1762
+ // not have a wildcard resolver
1763
+ if (name !== "eth" && currentName === "eth") {
1764
+ return null;
1765
+ }
1766
+ // Check the current node for a resolver
1767
+ const addr = yield this._getResolver(currentName, "getResolver");
1768
+ // Found a resolver!
1769
+ if (addr != null) {
1770
+ const resolver = new Resolver(this, addr, name);
1771
+ // Legacy resolver found, using EIP-2544 so it isn't safe to use
1772
+ if (currentName !== name && !(yield resolver.supportsWildcard())) {
1773
+ return null;
1774
+ }
1775
+ return resolver;
1776
+ }
1777
+ // Get the parent node
1778
+ currentName = currentName.split(".").slice(1).join(".");
1779
+ }
1780
+ });
1781
+ }
1782
+ _getResolver(name, operation) {
1783
+ return __awaiter(this, void 0, void 0, function* () {
1784
+ if (operation == null) {
1785
+ operation = "ENS";
1786
+ }
1787
+ const network = yield this.getNetwork();
1788
+ // No ENS...
1789
+ if (!network.ensAddress) {
1790
+ logger.throwError("network does not support ENS", Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network.name });
1791
+ }
1792
+ try {
1793
+ // keccak256("resolver(bytes32)")
1794
+ const addrData = yield this.call({
1795
+ to: network.ensAddress,
1796
+ data: ("0x0178b8bf" + namehash(name).substring(2))
1797
+ });
1798
+ return this.formatter.callAddress(addrData);
1799
+ }
1800
+ catch (error) {
1801
+ // ENS registry cannot throw errors on resolver(bytes32)
1802
+ }
1803
+ return null;
1804
+ });
1805
+ }
1806
+ resolveName(name) {
1807
+ return __awaiter(this, void 0, void 0, function* () {
1808
+ name = yield name;
1809
+ // If it is already an address, nothing to resolve
1810
+ try {
1811
+ return Promise.resolve(this.formatter.address(name));
1812
+ }
1813
+ catch (error) {
1814
+ // If is is a hexstring, the address is bad (See #694)
1815
+ if (isHexString(name)) {
1816
+ throw error;
1817
+ }
1818
+ }
1819
+ if (typeof (name) !== "string") {
1820
+ logger.throwArgumentError("invalid ENS name", "name", name);
1821
+ }
1822
+ // Get the addr from the resolver
1823
+ const resolver = yield this.getResolver(name);
1824
+ if (!resolver) {
1825
+ return null;
1826
+ }
1827
+ return yield resolver.getAddress();
1828
+ });
1829
+ }
1830
+ lookupAddress(address) {
1831
+ return __awaiter(this, void 0, void 0, function* () {
1832
+ address = yield address;
1833
+ address = this.formatter.address(address);
1834
+ const node = address.substring(2).toLowerCase() + ".addr.reverse";
1835
+ const resolverAddr = yield this._getResolver(node, "lookupAddress");
1836
+ if (resolverAddr == null) {
1837
+ return null;
1838
+ }
1839
+ // keccak("name(bytes32)")
1840
+ const name = _parseString(yield this.call({
1841
+ to: resolverAddr,
1842
+ data: ("0x691f3431" + namehash(node).substring(2))
1843
+ }), 0);
1844
+ const addr = yield this.resolveName(name);
1845
+ if (addr != address) {
1846
+ return null;
1847
+ }
1848
+ return name;
1849
+ });
1850
+ }
1851
+ getAvatar(nameOrAddress) {
1852
+ return __awaiter(this, void 0, void 0, function* () {
1853
+ let resolver = null;
1854
+ if (isHexString(nameOrAddress)) {
1855
+ // Address; reverse lookup
1856
+ const address = this.formatter.address(nameOrAddress);
1857
+ const node = address.substring(2).toLowerCase() + ".addr.reverse";
1858
+ const resolverAddress = yield this._getResolver(node, "getAvatar");
1859
+ if (!resolverAddress) {
1860
+ return null;
1861
+ }
1862
+ // Try resolving the avatar against the addr.reverse resolver
1863
+ resolver = new Resolver(this, resolverAddress, node);
1864
+ try {
1865
+ const avatar = yield resolver.getAvatar();
1866
+ if (avatar) {
1867
+ return avatar.url;
1868
+ }
1869
+ }
1870
+ catch (error) {
1871
+ if (error.code !== Logger.errors.CALL_EXCEPTION) {
1872
+ throw error;
1873
+ }
1874
+ }
1875
+ // Try getting the name and performing forward lookup; allowing wildcards
1876
+ try {
1877
+ // keccak("name(bytes32)")
1878
+ const name = _parseString(yield this.call({
1879
+ to: resolverAddress,
1880
+ data: ("0x691f3431" + namehash(node).substring(2))
1881
+ }), 0);
1882
+ resolver = yield this.getResolver(name);
1883
+ }
1884
+ catch (error) {
1885
+ if (error.code !== Logger.errors.CALL_EXCEPTION) {
1886
+ throw error;
1887
+ }
1888
+ return null;
1889
+ }
1890
+ }
1891
+ else {
1892
+ // ENS name; forward lookup with wildcard
1893
+ resolver = yield this.getResolver(nameOrAddress);
1894
+ if (!resolver) {
1895
+ return null;
1896
+ }
1897
+ }
1898
+ const avatar = yield resolver.getAvatar();
1899
+ if (avatar == null) {
1900
+ return null;
1901
+ }
1902
+ return avatar.url;
1903
+ });
1904
+ }
1905
+ perform(method, params) {
1906
+ return logger.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
1907
+ }
1908
+ _startEvent(event) {
1909
+ this.polling = (this._events.filter((e) => e.pollable()).length > 0);
1910
+ }
1911
+ _stopEvent(event) {
1912
+ this.polling = (this._events.filter((e) => e.pollable()).length > 0);
1913
+ }
1914
+ _addEventListener(eventName, listener, once) {
1915
+ const event = new Event(getEventTag(eventName), listener, once);
1916
+ this._events.push(event);
1917
+ this._startEvent(event);
1918
+ return this;
1919
+ }
1920
+ on(eventName, listener) {
1921
+ return this._addEventListener(eventName, listener, false);
1922
+ }
1923
+ once(eventName, listener) {
1924
+ return this._addEventListener(eventName, listener, true);
1925
+ }
1926
+ emit(eventName, ...args) {
1927
+ let result = false;
1928
+ let stopped = [];
1929
+ let eventTag = getEventTag(eventName);
1930
+ this._events = this._events.filter((event) => {
1931
+ if (event.tag !== eventTag) {
1932
+ return true;
1933
+ }
1934
+ setTimeout(() => {
1935
+ event.listener.apply(this, args);
1936
+ }, 0);
1937
+ result = true;
1938
+ if (event.once) {
1939
+ stopped.push(event);
1940
+ return false;
1941
+ }
1942
+ return true;
1943
+ });
1944
+ stopped.forEach((event) => { this._stopEvent(event); });
1945
+ return result;
1946
+ }
1947
+ listenerCount(eventName) {
1948
+ if (!eventName) {
1949
+ return this._events.length;
1950
+ }
1951
+ let eventTag = getEventTag(eventName);
1952
+ return this._events.filter((event) => {
1953
+ return (event.tag === eventTag);
1954
+ }).length;
1955
+ }
1956
+ listeners(eventName) {
1957
+ if (eventName == null) {
1958
+ return this._events.map((event) => event.listener);
1959
+ }
1960
+ let eventTag = getEventTag(eventName);
1961
+ return this._events
1962
+ .filter((event) => (event.tag === eventTag))
1963
+ .map((event) => event.listener);
1964
+ }
1965
+ off(eventName, listener) {
1966
+ if (listener == null) {
1967
+ return this.removeAllListeners(eventName);
1968
+ }
1969
+ const stopped = [];
1970
+ let found = false;
1971
+ let eventTag = getEventTag(eventName);
1972
+ this._events = this._events.filter((event) => {
1973
+ if (event.tag !== eventTag || event.listener != listener) {
1974
+ return true;
1975
+ }
1976
+ if (found) {
1977
+ return true;
1978
+ }
1979
+ found = true;
1980
+ stopped.push(event);
1981
+ return false;
1982
+ });
1983
+ stopped.forEach((event) => { this._stopEvent(event); });
1984
+ return this;
1985
+ }
1986
+ removeAllListeners(eventName) {
1987
+ let stopped = [];
1988
+ if (eventName == null) {
1989
+ stopped = this._events;
1990
+ this._events = [];
1991
+ }
1992
+ else {
1993
+ const eventTag = getEventTag(eventName);
1994
+ this._events = this._events.filter((event) => {
1995
+ if (event.tag !== eventTag) {
1996
+ return true;
1997
+ }
1998
+ stopped.push(event);
1999
+ return false;
2000
+ });
2001
+ }
2002
+ stopped.forEach((event) => { this._stopEvent(event); });
2003
+ return this;
2004
+ }
2005
+ }
2006
+
2007
+ export { BaseProvider, Event, Resolver };
2008
+ //# sourceMappingURL=base-provider.js.map