@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.
- package/dist/_virtual/_commonjsHelpers.js +33 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/_nodeUtil.js +4 -0
- package/dist/_virtual/_nodeUtil.js.map +1 -0
- package/dist/_virtual/bn.js +4 -0
- package/dist/_virtual/bn.js.map +1 -0
- package/dist/_virtual/common.js +4 -0
- package/dist/_virtual/common.js.map +1 -0
- package/dist/_virtual/common2.js +4 -0
- package/dist/_virtual/common2.js.map +1 -0
- package/dist/_virtual/dom-to-image.js +4 -0
- package/dist/_virtual/dom-to-image.js.map +1 -0
- package/dist/_virtual/hash.js +4 -0
- package/dist/_virtual/hash.js.map +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/index4.js +4 -0
- package/dist/_virtual/index4.js.map +1 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/index5.js.map +1 -0
- package/dist/_virtual/index6.js +4 -0
- package/dist/_virtual/index6.js.map +1 -0
- package/dist/_virtual/inherits.js +4 -0
- package/dist/_virtual/inherits.js.map +1 -0
- package/dist/_virtual/inherits_browser.js +4 -0
- package/dist/_virtual/inherits_browser.js.map +1 -0
- package/dist/_virtual/isBuffer.js +4 -0
- package/dist/_virtual/isBuffer.js.map +1 -0
- package/dist/_virtual/jsx-runtime.js +4 -0
- package/dist/_virtual/jsx-runtime.js.map +1 -0
- package/dist/_virtual/main.js +4 -0
- package/dist/_virtual/main.js.map +1 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.development.js.map +1 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/react-is.production.min.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.js +4 -0
- package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js +4 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/_virtual/ripemd.js +4 -0
- package/dist/_virtual/ripemd.js.map +1 -0
- package/dist/_virtual/sha.js +4 -0
- package/dist/_virtual/sha.js.map +1 -0
- package/dist/_virtual/sha3.js +4 -0
- package/dist/_virtual/sha3.js.map +1 -0
- package/dist/_virtual/tslib.es6.js +7 -0
- package/dist/_virtual/tslib.es6.js.map +1 -0
- package/dist/_virtual/types.js +4 -0
- package/dist/_virtual/types.js.map +1 -0
- package/dist/_virtual/util.js +4 -0
- package/dist/_virtual/util.js.map +1 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/_virtual/utils.js.map +1 -0
- package/dist/_virtual/zapTokens.js +4 -0
- package/dist/_virtual/zapTokens.js.map +1 -0
- package/dist/components/BondFilters/BondFilters.js +41 -0
- package/dist/components/BondFilters/BondFilters.js.map +1 -0
- package/dist/components/ChainOptionList/ChainOptionsButtons.js +32 -0
- package/dist/components/ChainOptionList/ChainOptionsButtons.js.map +1 -0
- package/dist/components/ChainOptionList/ChainOptionsList.js +41 -0
- package/dist/components/ChainOptionList/ChainOptionsList.js.map +1 -0
- package/dist/components/ChainOptionList/constants.js +11 -0
- package/dist/components/ChainOptionList/constants.js.map +1 -0
- package/dist/components/ChainOptionList/styles.js +54 -0
- package/dist/components/ChainOptionList/styles.js.map +1 -0
- package/dist/components/ConnectButton/AppKitButton.js +23 -0
- package/dist/components/ConnectButton/AppKitButton.js.map +1 -0
- package/dist/components/ConnectButton/RainbowKitButton.js +36 -0
- package/dist/components/ConnectButton/RainbowKitButton.js.map +1 -0
- package/dist/components/ConnectButton/index.js +27 -0
- package/dist/components/ConnectButton/index.js.map +1 -0
- package/dist/components/ConnectSolanaWalletButton/ConnectSolanaWalletButton.js +42 -0
- package/dist/components/ConnectSolanaWalletButton/ConnectSolanaWalletButton.js.map +1 -0
- package/dist/components/ConnectoToVmBanners/ConnectToEvmBanner.js +67 -0
- package/dist/components/ConnectoToVmBanners/ConnectToEvmBanner.js.map +1 -0
- package/dist/components/ConnectoToVmBanners/ConnectToSolanaBanner.js +64 -0
- package/dist/components/ConnectoToVmBanners/ConnectToSolanaBanner.js.map +1 -0
- package/dist/components/CustomClaimModals/AbondModal.js +28 -0
- package/dist/components/CustomClaimModals/AbondModal.js.map +1 -0
- package/dist/components/CustomClaimModals/OabondModal.js +28 -0
- package/dist/components/CustomClaimModals/OabondModal.js.map +1 -0
- package/dist/components/CustomClaimModals/PmusdModal.js +31 -0
- package/dist/components/CustomClaimModals/PmusdModal.js.map +1 -0
- package/dist/components/FavIcons/AddFavToken.js +37 -0
- package/dist/components/FavIcons/AddFavToken.js.map +1 -0
- package/dist/components/FavIcons/FavFilter.js +32 -0
- package/dist/components/FavIcons/FavFilter.js.map +1 -0
- package/dist/components/LoadingSpinner/index.js +51 -0
- package/dist/components/LoadingSpinner/index.js.map +1 -0
- package/dist/components/MenuSelect/MenuSelect.js +32 -0
- package/dist/components/MenuSelect/MenuSelect.js.map +1 -0
- package/dist/components/MenuSelect/RecommendationSelector.js +58 -0
- package/dist/components/MenuSelect/RecommendationSelector.js.map +1 -0
- package/dist/components/NetworkFilter/index.js +113 -0
- package/dist/components/NetworkFilter/index.js.map +1 -0
- package/dist/components/PlaceholderMonkey/index.js +29 -0
- package/dist/components/PlaceholderMonkey/index.js.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.js +11 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.js +24 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.js.map +1 -0
- package/dist/components/ProgressBar/styles.js +15 -0
- package/dist/components/ProgressBar/styles.js.map +1 -0
- package/dist/components/ProgressiveImage/index.js +44 -0
- package/dist/components/ProgressiveImage/index.js.map +1 -0
- package/dist/components/SafeHTMLComponent/index.js +31 -0
- package/dist/components/SafeHTMLComponent/index.js.map +1 -0
- package/dist/components/SlippageModal/index.js +73 -0
- package/dist/components/SlippageModal/index.js.map +1 -0
- package/dist/components/StepBubble/index.js +65 -0
- package/dist/components/StepBubble/index.js.map +1 -0
- package/dist/components/Toast/index.js +65 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/Toast/styles.js +30 -0
- package/dist/components/Toast/styles.js.map +1 -0
- package/dist/components/TokenInfoAndName/index.js +72 -0
- package/dist/components/TokenInfoAndName/index.js.map +1 -0
- package/dist/components/TokenSelectorModal/TokenRow.js +39 -0
- package/dist/components/TokenSelectorModal/TokenRow.js.map +1 -0
- package/dist/components/TokenSelectorModal/index.js +66 -0
- package/dist/components/TokenSelectorModal/index.js.map +1 -0
- package/dist/components/TokenSelectorPanel/index.js +67 -0
- package/dist/components/TokenSelectorPanel/index.js.map +1 -0
- package/dist/components/Tooltip/ButtonsRow.js +28 -0
- package/dist/components/Tooltip/ButtonsRow.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +51 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/styles.js +32 -0
- package/dist/components/Tooltip/styles.js.map +1 -0
- package/dist/components/YouTooltip/YouTooltip.js +45 -0
- package/dist/components/YouTooltip/YouTooltip.js.map +1 -0
- package/dist/components/uikit-sdk/Button/Button.js +73 -0
- package/dist/components/uikit-sdk/Button/Button.js.map +1 -0
- package/dist/components/uikit-sdk/Button/IconButton.js +15 -0
- package/dist/components/uikit-sdk/Button/IconButton.js.map +1 -0
- package/dist/components/uikit-sdk/Button/styles.js +21 -0
- package/dist/components/uikit-sdk/Button/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Button/types.js +39 -0
- package/dist/components/uikit-sdk/Button/types.js.map +1 -0
- package/dist/components/uikit-sdk/Checkbox/index.js +27 -0
- package/dist/components/uikit-sdk/Checkbox/index.js.map +1 -0
- package/dist/components/uikit-sdk/Checkbox/types.js +8 -0
- package/dist/components/uikit-sdk/Checkbox/types.js.map +1 -0
- package/dist/components/uikit-sdk/Flex/index.js +11 -0
- package/dist/components/uikit-sdk/Flex/index.js.map +1 -0
- package/dist/components/uikit-sdk/Input/Input.js +55 -0
- package/dist/components/uikit-sdk/Input/Input.js.map +1 -0
- package/dist/components/uikit-sdk/LoadingDots/index.js +42 -0
- package/dist/components/uikit-sdk/LoadingDots/index.js.map +1 -0
- package/dist/components/uikit-sdk/Modal/ModalHeader.js +15 -0
- package/dist/components/uikit-sdk/Modal/ModalHeader.js.map +1 -0
- package/dist/components/uikit-sdk/Modal/index.js +29 -0
- package/dist/components/uikit-sdk/Modal/index.js.map +1 -0
- package/dist/components/uikit-sdk/Modal/styles.js +47 -0
- package/dist/components/uikit-sdk/Modal/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Select/Select.js +44 -0
- package/dist/components/uikit-sdk/Select/Select.js.map +1 -0
- package/dist/components/uikit-sdk/Select/SelectItem.js +22 -0
- package/dist/components/uikit-sdk/Select/SelectItem.js.map +1 -0
- package/dist/components/uikit-sdk/Select/styles.js +50 -0
- package/dist/components/uikit-sdk/Select/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Select/types.js +39 -0
- package/dist/components/uikit-sdk/Select/types.js.map +1 -0
- package/dist/components/uikit-sdk/Skeleton/index.js +13 -0
- package/dist/components/uikit-sdk/Skeleton/index.js.map +1 -0
- package/dist/components/uikit-sdk/Skeleton/styles.js +43 -0
- package/dist/components/uikit-sdk/Skeleton/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Skeleton/types.js +13 -0
- package/dist/components/uikit-sdk/Skeleton/types.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Close.js +11 -0
- package/dist/components/uikit-sdk/Svg/Icons/Close.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/CoinGecko.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/CoinGecko.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/DexScreener.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/DexScreener.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Error.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Error.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/External.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/External.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/FirePink.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/FirePink.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/More.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/More.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Question.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Question.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Search.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Search.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Star.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Star.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/StarFilled.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/StarFilled.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Success.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Success.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tick.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tick.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Timer.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Timer.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/TurnArrow.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/TurnArrow.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/URL.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/URL.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Website.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Website.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/index.js +229 -0
- package/dist/components/uikit-sdk/Svg/index.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/styles.js +14 -0
- package/dist/components/uikit-sdk/Svg/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BERA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BERA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BLAST.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BLAST.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/CROSSFI.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/CROSSFI.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/GraphLinq.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/GraphLinq.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/HYPEREVM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/HYPEREVM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/KATANA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/KATANA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/MEGAETH.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/MEGAETH.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/MONAD.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/MONAD.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +10 -0
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/SOL.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/SOL.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/SONIC.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/SONIC.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/UNICHAIN.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/UNICHAIN.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/types.js +86 -0
- package/dist/components/uikit-sdk/Svg/types.js.map +1 -0
- package/dist/components/uikit-sdk/SwiperDots/index.js +16 -0
- package/dist/components/uikit-sdk/SwiperDots/index.js.map +1 -0
- package/dist/components/uikit-sdk/TabNav/index.js +42 -0
- package/dist/components/uikit-sdk/TabNav/index.js.map +1 -0
- package/dist/components/uikit-sdk/Tag/ListTag.js +10 -0
- package/dist/components/uikit-sdk/Tag/ListTag.js.map +1 -0
- package/dist/components/uikit-sdk/Text/index.js +17 -0
- package/dist/components/uikit-sdk/Text/index.js.map +1 -0
- package/dist/components/uikit-sdk/Text/types.js +16 -0
- package/dist/components/uikit-sdk/Text/types.js.map +1 -0
- package/dist/components/uikit-sdk/Toggle/index.js +15 -0
- package/dist/components/uikit-sdk/Toggle/index.js.map +1 -0
- package/dist/components/uikit-sdk/Toggle/styles.js +22 -0
- package/dist/components/uikit-sdk/Toggle/styles.js.map +1 -0
- package/dist/components/uikit-sdk/TokenImage/index.js +73 -0
- package/dist/components/uikit-sdk/TokenImage/index.js.map +1 -0
- package/dist/components/uikit-sdk/TooltipBubble/index.js +57 -0
- package/dist/components/uikit-sdk/TooltipBubble/index.js.map +1 -0
- package/dist/components/uikit-sdk/TooltipBubble/styles.js +55 -0
- package/dist/components/uikit-sdk/TooltipBubble/styles.js.map +1 -0
- package/dist/components/uikit-sdk/TooltipBubble/types.js +12 -0
- package/dist/components/uikit-sdk/TooltipBubble/types.js.map +1 -0
- package/dist/config/abi/BOND_2_0_0.json.js +1079 -0
- package/dist/config/abi/BOND_2_0_0.json.js.map +1 -0
- package/dist/config/abi/BOND_2_4_0.json.js +2409 -0
- package/dist/config/abi/BOND_2_4_0.json.js.map +1 -0
- package/dist/config/abi/bondNft.json.js +959 -0
- package/dist/config/abi/bondNft.json.js.map +1 -0
- package/dist/config/abi/deposit.json.js +29 -0
- package/dist/config/abi/deposit.json.js.map +1 -0
- package/dist/config/abi/depositSig.json.js +39 -0
- package/dist/config/abi/depositSig.json.js.map +1 -0
- package/dist/config/abi/erc20.json.js +229 -0
- package/dist/config/abi/erc20.json.js.map +1 -0
- package/dist/config/abi/launchBond_v2_4_1.json.js +2358 -0
- package/dist/config/abi/launchBond_v2_4_1.json.js.map +1 -0
- package/dist/config/abi/lensContract.json.js +338 -0
- package/dist/config/abi/lensContract.json.js.map +1 -0
- package/dist/config/abi/multicallv2.json.js +151 -0
- package/dist/config/abi/multicallv2.json.js.map +1 -0
- package/dist/config/abi/usdtETH.json.js +704 -0
- package/dist/config/abi/usdtETH.json.js.map +1 -0
- package/dist/config/constants/addresses.js +50 -0
- package/dist/config/constants/addresses.js.map +1 -0
- package/dist/config/constants/chains.js +139 -0
- package/dist/config/constants/chains.js.map +1 -0
- package/dist/config/constants/networks.js +89 -0
- package/dist/config/constants/networks.js.map +1 -0
- package/dist/config/constants/queryKeys.js +29 -0
- package/dist/config/constants/queryKeys.js.map +1 -0
- package/dist/config/constants/tooltips.js +20 -0
- package/dist/config/constants/tooltips.js.map +1 -0
- package/dist/config/constants/variables.js +42 -0
- package/dist/config/constants/variables.js.map +1 -0
- package/dist/config/idl/solanaProgramIdl.json.js +6 -0
- package/dist/config/idl/solanaProgramIdl.json.js.map +1 -0
- package/dist/constants/solanaConstants.js +41 -0
- package/dist/constants/solanaConstants.js.map +1 -0
- package/dist/contexts/ModalContext.js +72 -0
- package/dist/contexts/ModalContext.js.map +1 -0
- package/dist/contexts/Popups.js +29 -0
- package/dist/contexts/Popups.js.map +1 -0
- package/dist/contexts/SwiperProvider.js +21 -0
- package/dist/contexts/SwiperProvider.js.map +1 -0
- package/dist/hooks/accounts/useEVMAccount.js +13 -0
- package/dist/hooks/accounts/useEVMAccount.js.map +1 -0
- package/dist/hooks/accounts/useSOLAccount.js +17 -0
- package/dist/hooks/accounts/useSOLAccount.js.map +1 -0
- package/dist/hooks/useDebounce.js +21 -0
- package/dist/hooks/useDebounce.js.map +1 -0
- package/dist/hooks/useIsMobile.js +22 -0
- package/dist/hooks/useIsMobile.js.map +1 -0
- package/dist/hooks/useModal.js +34 -0
- package/dist/hooks/useModal.js.map +1 -0
- package/dist/hooks/useMonitorTx.js +26 -0
- package/dist/hooks/useMonitorTx.js.map +1 -0
- package/dist/hooks/useSendReferenceId.js +22 -0
- package/dist/hooks/useSendReferenceId.js.map +1 -0
- package/dist/hooks/useSortedZapList.js +56 -0
- package/dist/hooks/useSortedZapList.js.map +1 -0
- package/dist/hooks/useSwiper.js +13 -0
- package/dist/hooks/useSwiper.js.map +1 -0
- package/dist/hooks/useTokenFromZapList.js +15 -0
- package/dist/hooks/useTokenFromZapList.js.map +1 -0
- package/dist/hooks/useTopTags.js +47 -0
- package/dist/hooks/useTopTags.js.map +1 -0
- package/dist/main.d.ts +23 -0
- package/dist/main.js +18 -89923
- package/dist/main.js.map +1 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/constants/zapTokens.js +698 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/constants/zapTokens.js.map +1 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/main.js +27 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/main.js.map +1 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/types/index.js +1078 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/types/index.js.map +1 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js +500 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js.map +1 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +56 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +10 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +152 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js +153 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js +22 -0
- package/dist/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/package.json.js +6 -0
- package/dist/node_modules/@emotion/react/package.json.js.map +1 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +225 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +139 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +14 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js.map +1 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js +55 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js.map +1 -0
- package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +17 -0
- package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/abi-coder.js +97 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/abi-coder.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js +149 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/address.js +27 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/address.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js +21 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/array.js +211 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/array.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/boolean.js +19 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/boolean.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/bytes.js +31 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/bytes.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js +27 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/null.js +23 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/null.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/number.js +44 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/number.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/string.js +20 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/string.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/tuple.js +59 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/tuple.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/fragments.js +855 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/fragments.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/interface.js +610 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/interface.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/index.js +67 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/index.js +303 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/index.js +111 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/base64/lib.esm/base64.js +21 -0
- package/dist/node_modules/@ethersproject/base64/lib.esm/base64.js.map +1 -0
- package/dist/node_modules/@ethersproject/basex/lib.esm/index.js +121 -0
- package/dist/node_modules/@ethersproject/basex/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js +296 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js.map +1 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js +361 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js.map +1 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/index.js +403 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/addresses.js +4 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/addresses.js.map +1 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/bignumbers.js +9 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/bignumbers.js.map +1 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/hashes.js +4 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/hashes.js.map +1 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/index.js +894 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.js +257 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js +37 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js +136 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/id.js +9 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/id.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/namehash.js +65 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/namehash.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/typed-data.js +444 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/typed-data.js.map +1 -0
- package/dist/node_modules/@ethersproject/keccak256/lib.esm/index.js +9 -0
- package/dist/node_modules/@ethersproject/keccak256/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/index.js +353 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/index.js +267 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/index.js +128 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/base-provider.js +2008 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/base-provider.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/formatter.js +423 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/formatter.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js +675 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/node_modules/bech32/index.js +188 -0
- package/dist/node_modules/@ethersproject/providers/node_modules/bech32/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/index.js +121 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/sha2/lib.esm/sha2.js +9 -0
- package/dist/node_modules/@ethersproject/sha2/lib.esm/sha2.js.map +1 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js +2479 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js.map +1 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/index.js +77 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/utf8.js +220 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/utf8.js.map +1 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/index.js +280 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/index.js +29 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/geturl.js +70 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/geturl.js.map +1 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/index.js +405 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@jup-ag/api/dist/index.js +792 -0
- package/dist/node_modules/@jup-ag/api/dist/index.js.map +1 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +583 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/color-modes/dist/theme-ui-color-modes.esm.js +382 -0
- package/dist/node_modules/@theme-ui/color-modes/dist/theme-ui-color-modes.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/components/dist/theme-ui-components.esm.js +322 -0
- package/dist/node_modules/@theme-ui/components/dist/theme-ui-components.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/core/dist/parseProps-eab0b26e.esm.js +20 -0
- package/dist/node_modules/@theme-ui/core/dist/parseProps-eab0b26e.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/core/dist/theme-ui-core.esm.js +76 -0
- package/dist/node_modules/@theme-ui/core/dist/theme-ui-core.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/core/jsx-runtime/dist/theme-ui-core-jsx-runtime.esm.js +9 -0
- package/dist/node_modules/@theme-ui/core/jsx-runtime/dist/theme-ui-core-jsx-runtime.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/css/dist/theme-ui-css.esm.js +331 -0
- package/dist/node_modules/@theme-ui/css/dist/theme-ui-css.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/theme-provider/dist/theme-ui-theme-provider.esm.js +46 -0
- package/dist/node_modules/@theme-ui/theme-provider/dist/theme-ui-theme-provider.esm.js.map +1 -0
- package/dist/node_modules/available-typed-arrays/index.js +30 -0
- package/dist/node_modules/available-typed-arrays/index.js.map +1 -0
- package/dist/node_modules/base64-js/index.js +153 -0
- package/dist/node_modules/base64-js/index.js.map +1 -0
- package/dist/node_modules/bignumber.js/bignumber.js +2908 -0
- package/dist/node_modules/bignumber.js/bignumber.js.map +1 -0
- package/dist/node_modules/bn.js/lib/bn.js +3364 -0
- package/dist/node_modules/bn.js/lib/bn.js.map +1 -0
- package/dist/node_modules/buffer/index.js +2111 -0
- package/dist/node_modules/buffer/index.js.map +1 -0
- package/dist/node_modules/call-bind/index.js +41 -0
- package/dist/node_modules/call-bind/index.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/actualApply.js +25 -0
- package/dist/node_modules/call-bind-apply-helpers/actualApply.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/applyBind.js +24 -0
- package/dist/node_modules/call-bind-apply-helpers/applyBind.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/functionApply.js +14 -0
- package/dist/node_modules/call-bind-apply-helpers/functionApply.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/functionCall.js +14 -0
- package/dist/node_modules/call-bind-apply-helpers/functionCall.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/index.js +30 -0
- package/dist/node_modules/call-bind-apply-helpers/index.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/reflectApply.js +14 -0
- package/dist/node_modules/call-bind-apply-helpers/reflectApply.js.map +1 -0
- package/dist/node_modules/call-bound/index.js +32 -0
- package/dist/node_modules/call-bound/index.js.map +1 -0
- package/dist/node_modules/chart.js/dist/chart.js +8079 -0
- package/dist/node_modules/chart.js/dist/chart.js.map +1 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js +2685 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js.map +1 -0
- package/dist/node_modules/deepmerge/dist/cjs.js +138 -0
- package/dist/node_modules/deepmerge/dist/cjs.js.map +1 -0
- package/dist/node_modules/define-data-property/index.js +71 -0
- package/dist/node_modules/define-data-property/index.js.map +1 -0
- package/dist/node_modules/dom-to-image/src/dom-to-image.js +776 -0
- package/dist/node_modules/dom-to-image/src/dom-to-image.js.map +1 -0
- package/dist/node_modules/dunder-proto/get.js +43 -0
- package/dist/node_modules/dunder-proto/get.js.map +1 -0
- package/dist/node_modules/es-define-property/index.js +24 -0
- package/dist/node_modules/es-define-property/index.js.map +1 -0
- package/dist/node_modules/es-errors/eval.js +14 -0
- package/dist/node_modules/es-errors/eval.js.map +1 -0
- package/dist/node_modules/es-errors/index.js +14 -0
- package/dist/node_modules/es-errors/index.js.map +1 -0
- package/dist/node_modules/es-errors/range.js +14 -0
- package/dist/node_modules/es-errors/range.js.map +1 -0
- package/dist/node_modules/es-errors/ref.js +14 -0
- package/dist/node_modules/es-errors/ref.js.map +1 -0
- package/dist/node_modules/es-errors/syntax.js +14 -0
- package/dist/node_modules/es-errors/syntax.js.map +1 -0
- package/dist/node_modules/es-errors/type.js +14 -0
- package/dist/node_modules/es-errors/type.js.map +1 -0
- package/dist/node_modules/es-errors/uri.js +14 -0
- package/dist/node_modules/es-errors/uri.js.map +1 -0
- package/dist/node_modules/es-object-atoms/index.js +14 -0
- package/dist/node_modules/es-object-atoms/index.js.map +1 -0
- package/dist/node_modules/fancy-canvas/canvas-element-bitmap-size.js +239 -0
- package/dist/node_modules/fancy-canvas/canvas-element-bitmap-size.js.map +1 -0
- package/dist/node_modules/fancy-canvas/canvas-rendering-target.js +85 -0
- package/dist/node_modules/fancy-canvas/canvas-rendering-target.js.map +1 -0
- package/dist/node_modules/fancy-canvas/device-pixel-ratio.js +63 -0
- package/dist/node_modules/fancy-canvas/device-pixel-ratio.js.map +1 -0
- package/dist/node_modules/fancy-canvas/size.js +20 -0
- package/dist/node_modules/fancy-canvas/size.js.map +1 -0
- package/dist/node_modules/for-each/index.js +81 -0
- package/dist/node_modules/for-each/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +323 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +118 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +388 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +88 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +87 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +169 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.js +81 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +107 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +77 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +67 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +77 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +61 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +166 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/easing/back.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +72 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +82 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +485 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +131 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +158 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +134 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +73 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +50 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +102 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +135 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +89 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +58 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +95 -0
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +120 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +55 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +1585 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +113 -0
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +36 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +50 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +480 -0
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +132 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +54 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +58 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +66 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/store.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/store.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +46 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +74 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +33 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +165 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +333 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +37 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/array.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/array.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +79 -0
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +48 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +95 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/index.js +314 -0
- package/dist/node_modules/framer-motion/dist/es/value/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +26 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +93 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js.map +1 -0
- package/dist/node_modules/function-bind/implementation.js +94 -0
- package/dist/node_modules/function-bind/implementation.js.map +1 -0
- package/dist/node_modules/function-bind/index.js +17 -0
- package/dist/node_modules/function-bind/index.js.map +1 -0
- package/dist/node_modules/generator-function/index.js +17 -0
- package/dist/node_modules/generator-function/index.js.map +1 -0
- package/dist/node_modules/get-intrinsic/index.js +414 -0
- package/dist/node_modules/get-intrinsic/index.js.map +1 -0
- package/dist/node_modules/get-proto/Object.getPrototypeOf.js +18 -0
- package/dist/node_modules/get-proto/Object.getPrototypeOf.js.map +1 -0
- package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js +14 -0
- package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js.map +1 -0
- package/dist/node_modules/get-proto/index.js +41 -0
- package/dist/node_modules/get-proto/index.js.map +1 -0
- package/dist/node_modules/gopd/gOPD.js +14 -0
- package/dist/node_modules/gopd/gOPD.js.map +1 -0
- package/dist/node_modules/gopd/index.js +27 -0
- package/dist/node_modules/gopd/index.js.map +1 -0
- package/dist/node_modules/has-property-descriptors/index.js +34 -0
- package/dist/node_modules/has-property-descriptors/index.js.map +1 -0
- package/dist/node_modules/has-symbols/index.js +26 -0
- package/dist/node_modules/has-symbols/index.js.map +1 -0
- package/dist/node_modules/has-symbols/shams.js +55 -0
- package/dist/node_modules/has-symbols/shams.js.map +1 -0
- package/dist/node_modules/has-tostringtag/shams.js +20 -0
- package/dist/node_modules/has-tostringtag/shams.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/common.js +98 -0
- package/dist/node_modules/hash.js/lib/hash/common.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/hmac.js +52 -0
- package/dist/node_modules/hash.js/lib/hash/hmac.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/ripemd.js +153 -0
- package/dist/node_modules/hash.js/lib/hash/ripemd.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/1.js +82 -0
- package/dist/node_modules/hash.js/lib/hash/sha/1.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/224.js +34 -0
- package/dist/node_modules/hash.js/lib/hash/sha/224.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/256.js +114 -0
- package/dist/node_modules/hash.js/lib/hash/sha/256.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/384.js +40 -0
- package/dist/node_modules/hash.js/lib/hash/sha/384.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/512.js +337 -0
- package/dist/node_modules/hash.js/lib/hash/sha/512.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/common.js +54 -0
- package/dist/node_modules/hash.js/lib/hash/sha/common.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha.js +15 -0
- package/dist/node_modules/hash.js/lib/hash/sha.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/utils.js +283 -0
- package/dist/node_modules/hash.js/lib/hash/utils.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash.js +34 -0
- package/dist/node_modules/hash.js/lib/hash.js.map +1 -0
- package/dist/node_modules/hasown/index.js +20 -0
- package/dist/node_modules/hasown/index.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/node_modules/ieee754/index.js +91 -0
- package/dist/node_modules/ieee754/index.js.map +1 -0
- package/dist/node_modules/inherits/inherits.js +23 -0
- package/dist/node_modules/inherits/inherits.js.map +1 -0
- package/dist/node_modules/inherits/inherits_browser.js +39 -0
- package/dist/node_modules/inherits/inherits_browser.js.map +1 -0
- package/dist/node_modules/is-arguments/index.js +57 -0
- package/dist/node_modules/is-arguments/index.js.map +1 -0
- package/dist/node_modules/is-callable/index.js +111 -0
- package/dist/node_modules/is-callable/index.js.map +1 -0
- package/dist/node_modules/is-generator-function/index.js +47 -0
- package/dist/node_modules/is-generator-function/index.js.map +1 -0
- package/dist/node_modules/is-regex/index.js +84 -0
- package/dist/node_modules/is-regex/index.js.map +1 -0
- package/dist/node_modules/is-typed-array/index.js +20 -0
- package/dist/node_modules/is-typed-array/index.js.map +1 -0
- package/dist/node_modules/js-sha3/src/sha3.js +661 -0
- package/dist/node_modules/js-sha3/src/sha3.js.map +1 -0
- package/dist/node_modules/lightweight-charts/dist/lightweight-charts.production.js +14 -0
- package/dist/node_modules/lightweight-charts/dist/lightweight-charts.production.js.map +1 -0
- package/dist/node_modules/lodash/_DataView.js +13 -0
- package/dist/node_modules/lodash/_DataView.js.map +1 -0
- package/dist/node_modules/lodash/_Hash.js +41 -0
- package/dist/node_modules/lodash/_Hash.js.map +1 -0
- package/dist/node_modules/lodash/_ListCache.js +41 -0
- package/dist/node_modules/lodash/_ListCache.js.map +1 -0
- package/dist/node_modules/lodash/_Map.js +13 -0
- package/dist/node_modules/lodash/_Map.js.map +1 -0
- package/dist/node_modules/lodash/_MapCache.js +41 -0
- package/dist/node_modules/lodash/_MapCache.js.map +1 -0
- package/dist/node_modules/lodash/_Promise.js +13 -0
- package/dist/node_modules/lodash/_Promise.js.map +1 -0
- package/dist/node_modules/lodash/_Set.js +13 -0
- package/dist/node_modules/lodash/_Set.js.map +1 -0
- package/dist/node_modules/lodash/_SetCache.js +34 -0
- package/dist/node_modules/lodash/_SetCache.js.map +1 -0
- package/dist/node_modules/lodash/_Stack.js +37 -0
- package/dist/node_modules/lodash/_Stack.js.map +1 -0
- package/dist/node_modules/lodash/_Symbol.js +11 -0
- package/dist/node_modules/lodash/_Symbol.js.map +1 -0
- package/dist/node_modules/lodash/_Uint8Array.js +11 -0
- package/dist/node_modules/lodash/_Uint8Array.js.map +1 -0
- package/dist/node_modules/lodash/_WeakMap.js +13 -0
- package/dist/node_modules/lodash/_WeakMap.js.map +1 -0
- package/dist/node_modules/lodash/_arrayFilter.js +29 -0
- package/dist/node_modules/lodash/_arrayFilter.js.map +1 -0
- package/dist/node_modules/lodash/_arrayIncludes.js +22 -0
- package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js +26 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +59 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_arrayMap.js +25 -0
- package/dist/node_modules/lodash/_arrayMap.js.map +1 -0
- package/dist/node_modules/lodash/_arrayPush.js +24 -0
- package/dist/node_modules/lodash/_arrayPush.js.map +1 -0
- package/dist/node_modules/lodash/_arraySome.js +27 -0
- package/dist/node_modules/lodash/_arraySome.js.map +1 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +26 -0
- package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseFindIndex.js +28 -0
- package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -0
- package/dist/node_modules/lodash/_baseFlatten.js +44 -0
- package/dist/node_modules/lodash/_baseFlatten.js.map +1 -0
- package/dist/node_modules/lodash/_baseGet.js +30 -0
- package/dist/node_modules/lodash/_baseGet.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +26 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetTag.js +35 -0
- package/dist/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/dist/node_modules/lodash/_baseHasIn.js +17 -0
- package/dist/node_modules/lodash/_baseHasIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseIndexOf.js +27 -0
- package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +24 -0
- package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +34 -0
- package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +95 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +68 -0
- package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNaN.js +16 -0
- package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNative.js +55 -0
- package/dist/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +67 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_baseIteratee.js +40 -0
- package/dist/node_modules/lodash/_baseIteratee.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeys.js +36 -0
- package/dist/node_modules/lodash/_baseKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatches.js +29 -0
- package/dist/node_modules/lodash/_baseMatches.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +44 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
- package/dist/node_modules/lodash/_baseProperty.js +18 -0
- package/dist/node_modules/lodash/_baseProperty.js.map +1 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +21 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseSlice.js +35 -0
- package/dist/node_modules/lodash/_baseSlice.js.map +1 -0
- package/dist/node_modules/lodash/_baseTimes.js +24 -0
- package/dist/node_modules/lodash/_baseTimes.js.map +1 -0
- package/dist/node_modules/lodash/_baseToString.js +42 -0
- package/dist/node_modules/lodash/_baseToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseTrim.js +24 -0
- package/dist/node_modules/lodash/_baseTrim.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnary.js +18 -0
- package/dist/node_modules/lodash/_baseUnary.js.map +1 -0
- package/dist/node_modules/lodash/_baseUniq.js +82 -0
- package/dist/node_modules/lodash/_baseUniq.js.map +1 -0
- package/dist/node_modules/lodash/_cacheHas.js +17 -0
- package/dist/node_modules/lodash/_cacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_castPath.js +29 -0
- package/dist/node_modules/lodash/_castPath.js.map +1 -0
- package/dist/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/node_modules/lodash/_coreJsData.js.map +1 -0
- package/dist/node_modules/lodash/_createSet.js +26 -0
- package/dist/node_modules/lodash/_createSet.js.map +1 -0
- package/dist/node_modules/lodash/_equalArrays.js +91 -0
- package/dist/node_modules/lodash/_equalArrays.js.map +1 -0
- package/dist/node_modules/lodash/_equalByTag.js +122 -0
- package/dist/node_modules/lodash/_equalByTag.js.map +1 -0
- package/dist/node_modules/lodash/_equalObjects.js +95 -0
- package/dist/node_modules/lodash/_equalObjects.js.map +1 -0
- package/dist/node_modules/lodash/_freeGlobal.js +10 -0
- package/dist/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeys.js +23 -0
- package/dist/node_modules/lodash/_getAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_getMapData.js +23 -0
- package/dist/node_modules/lodash/_getMapData.js.map +1 -0
- package/dist/node_modules/lodash/_getMatchData.js +30 -0
- package/dist/node_modules/lodash/_getMatchData.js.map +1 -0
- package/dist/node_modules/lodash/_getNative.js +23 -0
- package/dist/node_modules/lodash/_getNative.js.map +1 -0
- package/dist/node_modules/lodash/_getRawTag.js +51 -0
- package/dist/node_modules/lodash/_getRawTag.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbols.js +36 -0
- package/dist/node_modules/lodash/_getSymbols.js.map +1 -0
- package/dist/node_modules/lodash/_getTag.js +69 -0
- package/dist/node_modules/lodash/_getTag.js.map +1 -0
- package/dist/node_modules/lodash/_getValue.js +17 -0
- package/dist/node_modules/lodash/_getValue.js.map +1 -0
- package/dist/node_modules/lodash/_hasPath.js +49 -0
- package/dist/node_modules/lodash/_hasPath.js.map +1 -0
- package/dist/node_modules/lodash/_hashClear.js +20 -0
- package/dist/node_modules/lodash/_hashClear.js.map +1 -0
- package/dist/node_modules/lodash/_hashDelete.js +21 -0
- package/dist/node_modules/lodash/_hashDelete.js.map +1 -0
- package/dist/node_modules/lodash/_hashGet.js +35 -0
- package/dist/node_modules/lodash/_hashGet.js.map +1 -0
- package/dist/node_modules/lodash/_hashHas.js +28 -0
- package/dist/node_modules/lodash/_hashHas.js.map +1 -0
- package/dist/node_modules/lodash/_hashSet.js +28 -0
- package/dist/node_modules/lodash/_hashSet.js.map +1 -0
- package/dist/node_modules/lodash/_isFlattenable.js +27 -0
- package/dist/node_modules/lodash/_isFlattenable.js.map +1 -0
- package/dist/node_modules/lodash/_isIndex.js +29 -0
- package/dist/node_modules/lodash/_isIndex.js.map +1 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +38 -0
- package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -0
- package/dist/node_modules/lodash/_isKey.js +35 -0
- package/dist/node_modules/lodash/_isKey.js.map +1 -0
- package/dist/node_modules/lodash/_isKeyable.js +19 -0
- package/dist/node_modules/lodash/_isKeyable.js.map +1 -0
- package/dist/node_modules/lodash/_isMasked.js +25 -0
- package/dist/node_modules/lodash/_isMasked.js.map +1 -0
- package/dist/node_modules/lodash/_isPrototype.js +22 -0
- package/dist/node_modules/lodash/_isPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +20 -0
- package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheClear.js +17 -0
- package/dist/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +40 -0
- package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheGet.js +24 -0
- package/dist/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheHas.js +21 -0
- package/dist/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheSet.js +31 -0
- package/dist/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +28 -0
- package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +23 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +21 -0
- package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +21 -0
- package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +27 -0
- package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapToArray.js +22 -0
- package/dist/node_modules/lodash/_mapToArray.js.map +1 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +24 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +31 -0
- package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -0
- package/dist/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/node_modules/lodash/_nativeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_nodeUtil.js +42 -0
- package/dist/node_modules/lodash/_nodeUtil.js.map +1 -0
- package/dist/node_modules/lodash/_objectToString.js +26 -0
- package/dist/node_modules/lodash/_objectToString.js.map +1 -0
- package/dist/node_modules/lodash/_overArg.js +19 -0
- package/dist/node_modules/lodash/_overArg.js.map +1 -0
- package/dist/node_modules/lodash/_root.js +14 -0
- package/dist/node_modules/lodash/_root.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +23 -0
- package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheHas.js +18 -0
- package/dist/node_modules/lodash/_setCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_setToArray.js +22 -0
- package/dist/node_modules/lodash/_setToArray.js.map +1 -0
- package/dist/node_modules/lodash/_stackClear.js +20 -0
- package/dist/node_modules/lodash/_stackClear.js.map +1 -0
- package/dist/node_modules/lodash/_stackDelete.js +22 -0
- package/dist/node_modules/lodash/_stackDelete.js.map +1 -0
- package/dist/node_modules/lodash/_stackGet.js +18 -0
- package/dist/node_modules/lodash/_stackGet.js.map +1 -0
- package/dist/node_modules/lodash/_stackHas.js +18 -0
- package/dist/node_modules/lodash/_stackHas.js.map +1 -0
- package/dist/node_modules/lodash/_stackSet.js +41 -0
- package/dist/node_modules/lodash/_stackSet.js.map +1 -0
- package/dist/node_modules/lodash/_strictIndexOf.js +27 -0
- package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_stringToPath.js +32 -0
- package/dist/node_modules/lodash/_stringToPath.js.map +1 -0
- package/dist/node_modules/lodash/_toKey.js +23 -0
- package/dist/node_modules/lodash/_toKey.js.map +1 -0
- package/dist/node_modules/lodash/_toSource.js +30 -0
- package/dist/node_modules/lodash/_toSource.js.map +1 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +23 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
- package/dist/node_modules/lodash/chunk.js +60 -0
- package/dist/node_modules/lodash/chunk.js.map +1 -0
- package/dist/node_modules/lodash/eq.js +41 -0
- package/dist/node_modules/lodash/eq.js.map +1 -0
- package/dist/node_modules/lodash/flatten.js +30 -0
- package/dist/node_modules/lodash/flatten.js.map +1 -0
- package/dist/node_modules/lodash/get.js +41 -0
- package/dist/node_modules/lodash/get.js.map +1 -0
- package/dist/node_modules/lodash/hasIn.js +40 -0
- package/dist/node_modules/lodash/hasIn.js.map +1 -0
- package/dist/node_modules/lodash/identity.js +25 -0
- package/dist/node_modules/lodash/identity.js.map +1 -0
- package/dist/node_modules/lodash/isArguments.js +42 -0
- package/dist/node_modules/lodash/isArguments.js.map +1 -0
- package/dist/node_modules/lodash/isArray.js +34 -0
- package/dist/node_modules/lodash/isArray.js.map +1 -0
- package/dist/node_modules/lodash/isArrayLike.js +39 -0
- package/dist/node_modules/lodash/isArrayLike.js.map +1 -0
- package/dist/node_modules/lodash/isBuffer.js +51 -0
- package/dist/node_modules/lodash/isBuffer.js.map +1 -0
- package/dist/node_modules/lodash/isFunction.js +43 -0
- package/dist/node_modules/lodash/isFunction.js.map +1 -0
- package/dist/node_modules/lodash/isLength.js +39 -0
- package/dist/node_modules/lodash/isLength.js.map +1 -0
- package/dist/node_modules/lodash/isObject.js +35 -0
- package/dist/node_modules/lodash/isObject.js.map +1 -0
- package/dist/node_modules/lodash/isObjectLike.js +33 -0
- package/dist/node_modules/lodash/isObjectLike.js.map +1 -0
- package/dist/node_modules/lodash/isSymbol.js +35 -0
- package/dist/node_modules/lodash/isSymbol.js.map +1 -0
- package/dist/node_modules/lodash/isTypedArray.js +34 -0
- package/dist/node_modules/lodash/isTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/keys.js +44 -0
- package/dist/node_modules/lodash/keys.js.map +1 -0
- package/dist/node_modules/lodash/memoize.js +78 -0
- package/dist/node_modules/lodash/memoize.js.map +1 -0
- package/dist/node_modules/lodash/noop.js +21 -0
- package/dist/node_modules/lodash/noop.js.map +1 -0
- package/dist/node_modules/lodash/property.js +40 -0
- package/dist/node_modules/lodash/property.js.map +1 -0
- package/dist/node_modules/lodash/stubArray.js +27 -0
- package/dist/node_modules/lodash/stubArray.js.map +1 -0
- package/dist/node_modules/lodash/stubFalse.js +22 -0
- package/dist/node_modules/lodash/stubFalse.js.map +1 -0
- package/dist/node_modules/lodash/toFinite.js +47 -0
- package/dist/node_modules/lodash/toFinite.js.map +1 -0
- package/dist/node_modules/lodash/toInteger.js +41 -0
- package/dist/node_modules/lodash/toInteger.js.map +1 -0
- package/dist/node_modules/lodash/toNumber.js +71 -0
- package/dist/node_modules/lodash/toNumber.js.map +1 -0
- package/dist/node_modules/lodash/toString.js +33 -0
- package/dist/node_modules/lodash/toString.js.map +1 -0
- package/dist/node_modules/lodash/uniqBy.js +40 -0
- package/dist/node_modules/lodash/uniqBy.js.map +1 -0
- package/dist/node_modules/math-intrinsics/abs.js +14 -0
- package/dist/node_modules/math-intrinsics/abs.js.map +1 -0
- package/dist/node_modules/math-intrinsics/floor.js +14 -0
- package/dist/node_modules/math-intrinsics/floor.js.map +1 -0
- package/dist/node_modules/math-intrinsics/isNaN.js +16 -0
- package/dist/node_modules/math-intrinsics/isNaN.js.map +1 -0
- package/dist/node_modules/math-intrinsics/max.js +14 -0
- package/dist/node_modules/math-intrinsics/max.js.map +1 -0
- package/dist/node_modules/math-intrinsics/min.js +14 -0
- package/dist/node_modules/math-intrinsics/min.js.map +1 -0
- package/dist/node_modules/math-intrinsics/pow.js +14 -0
- package/dist/node_modules/math-intrinsics/pow.js.map +1 -0
- package/dist/node_modules/math-intrinsics/round.js +14 -0
- package/dist/node_modules/math-intrinsics/round.js.map +1 -0
- package/dist/node_modules/math-intrinsics/sign.js +23 -0
- package/dist/node_modules/math-intrinsics/sign.js.map +1 -0
- package/dist/node_modules/minimalistic-assert/index.js +14 -0
- package/dist/node_modules/minimalistic-assert/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +83 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +45 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +77 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +39 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +19 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +20 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +13 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
- package/dist/node_modules/possible-typed-array-names/index.js +27 -0
- package/dist/node_modules/possible-typed-array-names/index.js.map +1 -0
- package/dist/node_modules/primereact/api/api.esm.js +120 -0
- package/dist/node_modules/primereact/api/api.esm.js.map +1 -0
- package/dist/node_modules/primereact/componentbase/componentbase.esm.js +357 -0
- package/dist/node_modules/primereact/componentbase/componentbase.esm.js.map +1 -0
- package/dist/node_modules/primereact/hooks/hooks.esm.js +276 -0
- package/dist/node_modules/primereact/hooks/hooks.esm.js.map +1 -0
- package/dist/node_modules/primereact/knob/knob.esm.js +388 -0
- package/dist/node_modules/primereact/knob/knob.esm.js.map +1 -0
- package/dist/node_modules/primereact/utils/utils.esm.js +2155 -0
- package/dist/node_modules/primereact/utils/utils.esm.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1326 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +25 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/node_modules/react/jsx-runtime.js +14 -0
- package/dist/node_modules/react/jsx-runtime.js.map +1 -0
- package/dist/node_modules/react-chartjs-2/dist/index.js +143 -0
- package/dist/node_modules/react-chartjs-2/dist/index.js.map +1 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +191 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +27 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/node_modules/react-is/index.js +14 -0
- package/dist/node_modules/react-is/index.js.map +1 -0
- package/dist/node_modules/safe-regex-test/index.js +31 -0
- package/dist/node_modules/safe-regex-test/index.js.map +1 -0
- package/dist/node_modules/set-function-length/index.js +58 -0
- package/dist/node_modules/set-function-length/index.js.map +1 -0
- package/dist/node_modules/stylis/src/Enum.js +13 -0
- package/dist/node_modules/stylis/src/Enum.js.map +1 -0
- package/dist/node_modules/stylis/src/Middleware.js +33 -0
- package/dist/node_modules/stylis/src/Middleware.js.map +1 -0
- package/dist/node_modules/stylis/src/Parser.js +194 -0
- package/dist/node_modules/stylis/src/Parser.js.map +1 -0
- package/dist/node_modules/stylis/src/Serializer.js +39 -0
- package/dist/node_modules/stylis/src/Serializer.js.map +1 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +224 -0
- package/dist/node_modules/stylis/src/Tokenizer.js.map +1 -0
- package/dist/node_modules/stylis/src/Utility.js +118 -0
- package/dist/node_modules/stylis/src/Utility.js.map +1 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.js +147 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.js.map +1 -0
- package/dist/node_modules/swiper/shared/swiper-core.js +3952 -0
- package/dist/node_modules/swiper/shared/swiper-core.js.map +1 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.js +132 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.js.map +1 -0
- package/dist/node_modules/swiper/shared/update-swiper.js +233 -0
- package/dist/node_modules/swiper/shared/update-swiper.js.map +1 -0
- package/dist/node_modules/swiper/shared/utils.js +303 -0
- package/dist/node_modules/swiper/shared/utils.js.map +1 -0
- package/dist/node_modules/swiper/swiper-react.js +390 -0
- package/dist/node_modules/swiper/swiper-react.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +400 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/util/support/isBuffer.js +14 -0
- package/dist/node_modules/util/support/isBuffer.js.map +1 -0
- package/dist/node_modules/util/support/types.js +348 -0
- package/dist/node_modules/util/support/types.js.map +1 -0
- package/dist/node_modules/util/util.js +730 -0
- package/dist/node_modules/util/util.js.map +1 -0
- package/dist/node_modules/viem/_esm/constants/unit.js +7 -0
- package/dist/node_modules/viem/_esm/constants/unit.js.map +1 -0
- package/dist/node_modules/viem/_esm/errors/base.js +92 -0
- package/dist/node_modules/viem/_esm/errors/base.js.map +1 -0
- package/dist/node_modules/viem/_esm/errors/unit.js +12 -0
- package/dist/node_modules/viem/_esm/errors/unit.js.map +1 -0
- package/dist/node_modules/viem/_esm/errors/version.js +4 -0
- package/dist/node_modules/viem/_esm/errors/version.js.map +1 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseEther.js +20 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseEther.js.map +1 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseUnits.js +53 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseUnits.js.map +1 -0
- package/dist/node_modules/which-typed-array/index.js +136 -0
- package/dist/node_modules/which-typed-array/index.js.map +1 -0
- package/dist/providers/index.js +63 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/state/abtesting/useCookie.js +40 -0
- package/dist/state/abtesting/useCookie.js.map +1 -0
- package/dist/state/activeView/index.js +40 -0
- package/dist/state/activeView/index.js.map +1 -0
- package/dist/state/allowance/useAllowance.js +139 -0
- package/dist/state/allowance/useAllowance.js.map +1 -0
- package/dist/state/balance/useCurrencyBalance.js +40 -0
- package/dist/state/balance/useCurrencyBalance.js.map +1 -0
- package/dist/state/balance/useCurrencyBalanceSolana.js +43 -0
- package/dist/state/balance/useCurrencyBalanceSolana.js.map +1 -0
- package/dist/state/balance/useUserTokensBalance.js +100 -0
- package/dist/state/balance/useUserTokensBalance.js.map +1 -0
- package/dist/state/bondApiStats/useGetBondApiStats.js +21 -0
- package/dist/state/bondApiStats/useGetBondApiStats.js.map +1 -0
- package/dist/state/bonds/fetchBillsUser.js +157 -0
- package/dist/state/bonds/fetchBillsUser.js.map +1 -0
- package/dist/state/bonds/fetchBillsUserSolana.js +167 -0
- package/dist/state/bonds/fetchBillsUserSolana.js.map +1 -0
- package/dist/state/bonds/useBondsData.js +84 -0
- package/dist/state/bonds/useBondsData.js.map +1 -0
- package/dist/state/bonds/useBondsList.js +35 -0
- package/dist/state/bonds/useBondsList.js.map +1 -0
- package/dist/state/bonds/useBondsListPreTGE.js +36 -0
- package/dist/state/bonds/useBondsListPreTGE.js.map +1 -0
- package/dist/state/bonds/useTierProofSignature.js +46 -0
- package/dist/state/bonds/useTierProofSignature.js.map +1 -0
- package/dist/state/bonds/useUserBonds.js +131 -0
- package/dist/state/bonds/useUserBonds.js.map +1 -0
- package/dist/state/bonds/useUserBondsPreTGE.js +151 -0
- package/dist/state/bonds/useUserBondsPreTGE.js.map +1 -0
- package/dist/state/bonds/utils.js +330 -0
- package/dist/state/bonds/utils.js.map +1 -0
- package/dist/state/chainFilterOption/useChainFilterOption.js +35 -0
- package/dist/state/chainFilterOption/useChainFilterOption.js.map +1 -0
- package/dist/state/favoriteTokens/useFavoriteTokens.js +47 -0
- package/dist/state/favoriteTokens/useFavoriteTokens.js.map +1 -0
- package/dist/state/historicalPrice/useHistoricalPrice.js +26 -0
- package/dist/state/historicalPrice/useHistoricalPrice.js.map +1 -0
- package/dist/state/hotBonds/useHotBonds.js +51 -0
- package/dist/state/hotBonds/useHotBonds.js.map +1 -0
- package/dist/state/popups/usePopups.js +57 -0
- package/dist/state/popups/usePopups.js.map +1 -0
- package/dist/state/price/useCurrencyPrice.js +22 -0
- package/dist/state/price/useCurrencyPrice.js.map +1 -0
- package/dist/state/recommendations/useGetBondRecommendations.js +23 -0
- package/dist/state/recommendations/useGetBondRecommendations.js.map +1 -0
- package/dist/state/slippage/useSlippage.js +40 -0
- package/dist/state/slippage/useSlippage.js.map +1 -0
- package/dist/state/tiers/useTierPoints.js +102 -0
- package/dist/state/tiers/useTierPoints.js.map +1 -0
- package/dist/state/tokenPrices/useTokenPrices.js +36 -0
- package/dist/state/tokenPrices/useTokenPrices.js.map +1 -0
- package/dist/state/useSDKConfig.js +39 -0
- package/dist/state/useSDKConfig.js.map +1 -0
- package/dist/state/zap/getChainParam.js +58 -0
- package/dist/state/zap/getChainParam.js.map +1 -0
- package/dist/state/zap/useJupiterSolanaQuote.js +128 -0
- package/dist/state/zap/useJupiterSolanaQuote.js.map +1 -0
- package/dist/state/zap/useSoulZapBondQuote.js +168 -0
- package/dist/state/zap/useSoulZapBondQuote.js.map +1 -0
- package/dist/theme/base.js +125 -0
- package/dist/theme/base.js.map +1 -0
- package/dist/theme/colors.js +25 -0
- package/dist/theme/colors.js.map +1 -0
- package/dist/theme/components.js +321 -0
- package/dist/theme/components.js.map +1 -0
- package/dist/theme/index.js +8 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/types/bondCodec.js +24 -0
- package/dist/types/bondCodec.js.map +1 -0
- package/dist/types/bondIssuanceCodec.js +32 -0
- package/dist/types/bondIssuanceCodec.js.map +1 -0
- package/dist/types/bondPricingCodec.js +22 -0
- package/dist/types/bondPricingCodec.js.map +1 -0
- package/dist/types/bondTermCodec.js +24 -0
- package/dist/types/bondTermCodec.js.map +1 -0
- package/dist/utils/calculateSolanaTrueBillPrice.js +71 -0
- package/dist/utils/calculateSolanaTrueBillPrice.js.map +1 -0
- package/dist/utils/campaignStyles.js +54 -0
- package/dist/utils/campaignStyles.js.map +1 -0
- package/dist/utils/convertToTokenValue.js +27 -0
- package/dist/utils/convertToTokenValue.js.map +1 -0
- package/dist/utils/dates/formatDate.js +16 -0
- package/dist/utils/dates/formatDate.js.map +1 -0
- package/dist/utils/derivePda.js +9 -0
- package/dist/utils/derivePda.js.map +1 -0
- package/dist/utils/displayHelpers.js +238 -0
- package/dist/utils/displayHelpers.js.map +1 -0
- package/dist/utils/formatNumber.js +52 -0
- package/dist/utils/formatNumber.js.map +1 -0
- package/dist/utils/getBalanceNumber.js +11 -0
- package/dist/utils/getBalanceNumber.js.map +1 -0
- package/dist/utils/getDotPos.js +12 -0
- package/dist/utils/getDotPos.js.map +1 -0
- package/dist/utils/getNativeTicker.js +21 -0
- package/dist/utils/getNativeTicker.js.map +1 -0
- package/dist/utils/getSolanaAccount.js +116 -0
- package/dist/utils/getSolanaAccount.js.map +1 -0
- package/dist/utils/getTimePeriods.js +67 -0
- package/dist/utils/getTimePeriods.js.map +1 -0
- package/dist/utils/index.js +16 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/multicall.js +49 -0
- package/dist/utils/multicall.js.map +1 -0
- package/dist/utils/numbers.js +7 -0
- package/dist/utils/numbers.js.map +1 -0
- package/dist/utils/remove0xPrefix.js +9 -0
- package/dist/utils/remove0xPrefix.js.map +1 -0
- package/dist/utils/reportError.js +31 -0
- package/dist/utils/reportError.js.map +1 -0
- package/dist/utils/roundNumber.js +16 -0
- package/dist/utils/roundNumber.js.map +1 -0
- package/dist/utils/solanaAtaHelper.js +40 -0
- package/dist/utils/solanaAtaHelper.js.map +1 -0
- package/dist/utils/solanaMulticall.js +44 -0
- package/dist/utils/solanaMulticall.js.map +1 -0
- package/dist/utils/solanaRpc.js +13 -0
- package/dist/utils/solanaRpc.js.map +1 -0
- package/dist/utils/track.js +7 -0
- package/dist/utils/track.js.map +1 -0
- package/dist/views/Bonds/Bonds.js +196 -0
- package/dist/views/Bonds/Bonds.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ActiveBondRows.js +66 -0
- package/dist/views/Bonds/components/BondRows/ActiveBondRows.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/BondRow.js +70 -0
- package/dist/views/Bonds/components/BondRows/BondRow.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ChainTitle.js +39 -0
- package/dist/views/Bonds/components/BondRows/ChainTitle.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ModalHandler.js +104 -0
- package/dist/views/Bonds/components/BondRows/ModalHandler.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ModalHandlerPreTGE.js +39 -0
- package/dist/views/Bonds/components/BondRows/ModalHandlerPreTGE.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/SoldOutRows.js +43 -0
- package/dist/views/Bonds/components/BondRows/SoldOutRows.js.map +1 -0
- package/dist/views/Bonds/components/BondsMenu/BondsMenu.js +36 -0
- package/dist/views/Bonds/components/BondsMenu/BondsMenu.js.map +1 -0
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.js +59 -0
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.js.map +1 -0
- package/dist/views/Bonds/components/BonusComponents/BonusContainer.js +11 -0
- package/dist/views/Bonds/components/BonusComponents/BonusContainer.js.map +1 -0
- package/dist/views/Bonds/components/BonusComponents/BonusTable.js +57 -0
- package/dist/views/Bonds/components/BonusComponents/BonusTable.js.map +1 -0
- package/dist/views/Bonds/components/BuyAgainRow/index.js +83 -0
- package/dist/views/Bonds/components/BuyAgainRow/index.js.map +1 -0
- package/dist/views/Bonds/components/ChainBanner/ChainBanner.js +84 -0
- package/dist/views/Bonds/components/ChainBanner/ChainBanner.js.map +1 -0
- package/dist/views/Bonds/components/CheckURL/index.js +44 -0
- package/dist/views/Bonds/components/CheckURL/index.js.map +1 -0
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.js +54 -0
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.js.map +1 -0
- package/dist/views/Bonds/components/HotBondCards/index.js +78 -0
- package/dist/views/Bonds/components/HotBondCards/index.js.map +1 -0
- package/dist/views/Bonds/components/HotBondCards/styles.js +47 -0
- package/dist/views/Bonds/components/HotBondCards/styles.js.map +1 -0
- package/dist/views/Bonds/components/LoadingSkeleton/LoadingSkeleton.js +37 -0
- package/dist/views/Bonds/components/LoadingSkeleton/LoadingSkeleton.js.map +1 -0
- package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.js +27 -0
- package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.js.map +1 -0
- package/dist/views/Bonds/components/RecommendationCards/index.js +84 -0
- package/dist/views/Bonds/components/RecommendationCards/index.js.map +1 -0
- package/dist/views/Bonds/components/RecommendationCards/styles.js +24 -0
- package/dist/views/Bonds/components/RecommendationCards/styles.js.map +1 -0
- package/dist/views/Bonds/index.js +12 -0
- package/dist/views/Bonds/index.js.map +1 -0
- package/dist/views/Bonds/utils.js +149 -0
- package/dist/views/Bonds/utils.js.map +1 -0
- package/dist/views/BuyBond/BuyBondModal.js +26 -0
- package/dist/views/BuyBond/BuyBondModal.js.map +1 -0
- package/dist/views/BuyBond/BuyComponent.js +425 -0
- package/dist/views/BuyBond/BuyComponent.js.map +1 -0
- package/dist/views/BuyBond/BuyComponentPreTGE.js +154 -0
- package/dist/views/BuyBond/BuyComponentPreTGE.js.map +1 -0
- package/dist/views/BuyBond/BuyComponentSolana.js +641 -0
- package/dist/views/BuyBond/BuyComponentSolana.js.map +1 -0
- package/dist/views/BuyBond/ParticipationSuccessful.js +78 -0
- package/dist/views/BuyBond/ParticipationSuccessful.js.map +1 -0
- package/dist/views/BuyBond/components/BondCards/BondCards.js +92 -0
- package/dist/views/BuyBond/components/BondCards/BondCards.js.map +1 -0
- package/dist/views/BuyBond/components/BondCards/BondCardsPreTGE.js +74 -0
- package/dist/views/BuyBond/components/BondCards/BondCardsPreTGE.js.map +1 -0
- package/dist/views/BuyBond/components/BondModalHeader.js +95 -0
- package/dist/views/BuyBond/components/BondModalHeader.js.map +1 -0
- package/dist/views/BuyBond/components/BondModalMinTierHeader.js +35 -0
- package/dist/views/BuyBond/components/BondModalMinTierHeader.js.map +1 -0
- package/dist/views/BuyBond/components/Estimations.js +68 -0
- package/dist/views/BuyBond/components/Estimations.js.map +1 -0
- package/dist/views/BuyBond/components/ExpandedViewButton.js +37 -0
- package/dist/views/BuyBond/components/ExpandedViewButton.js.map +1 -0
- package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.js +71 -0
- package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.js.map +1 -0
- package/dist/views/BuyBond/components/NewRateModal/NewRateModal.js +55 -0
- package/dist/views/BuyBond/components/NewRateModal/NewRateModal.js.map +1 -0
- package/dist/views/BuyBond/components/NoBonusModal/NoBonusModal.js +36 -0
- package/dist/views/BuyBond/components/NoBonusModal/NoBonusModal.js.map +1 -0
- package/dist/views/BuyBond/components/ProjectDescription.js +38 -0
- package/dist/views/BuyBond/components/ProjectDescription.js.map +1 -0
- package/dist/views/BuyBond/index.js +12 -0
- package/dist/views/BuyBond/index.js.map +1 -0
- package/dist/views/BuyBond/styles.js +33 -0
- package/dist/views/BuyBond/styles.js.map +1 -0
- package/dist/views/FullBondsView/FullBondsView.js +34 -0
- package/dist/views/FullBondsView/FullBondsView.js.map +1 -0
- package/dist/views/FullBondsView/index.js +12 -0
- package/dist/views/FullBondsView/index.js.map +1 -0
- package/dist/views/LifiModal/LifiModal.js +79 -0
- package/dist/views/LifiModal/LifiModal.js.map +1 -0
- package/dist/views/ProjectView/ProjectView.js +72 -0
- package/dist/views/ProjectView/ProjectView.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/SalesTable.js +56 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/SalesTable.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopSaleCard.js +46 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopSaleCard.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopThreeSalesCards.js +24 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopThreeSalesCards.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/styles.js +51 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/styles.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/index.js +45 -0
- package/dist/views/ProjectView/components/BondLeaderboard/index.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/index.js +97 -0
- package/dist/views/ProjectView/components/BondStats/index.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/styles.js +49 -0
- package/dist/views/ProjectView/components/BondStats/styles.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/types.js +40 -0
- package/dist/views/ProjectView/components/BondStats/types.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/utils.js +10 -0
- package/dist/views/ProjectView/components/BondStats/utils.js.map +1 -0
- package/dist/views/ProjectView/components/NavPanel/index.js +32 -0
- package/dist/views/ProjectView/components/NavPanel/index.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/components/CandleStickChart.js +112 -0
- package/dist/views/ProjectView/components/PriceChart/components/CandleStickChart.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/components/LineChart.js +100 -0
- package/dist/views/ProjectView/components/PriceChart/components/LineChart.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/components/utils.js +20 -0
- package/dist/views/ProjectView/components/PriceChart/components/utils.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/index.js +53 -0
- package/dist/views/ProjectView/components/PriceChart/index.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/styles.js +44 -0
- package/dist/views/ProjectView/components/PriceChart/styles.js.map +1 -0
- package/dist/views/ProjectView/components/ProjectInfo/index.js +34 -0
- package/dist/views/ProjectView/components/ProjectInfo/index.js.map +1 -0
- package/dist/views/ProjectView/components/ProjectInfo/styles.js +44 -0
- package/dist/views/ProjectView/components/ProjectInfo/styles.js.map +1 -0
- package/dist/views/ProjectView/components/RecommendationCards/index.js +112 -0
- package/dist/views/ProjectView/components/RecommendationCards/index.js.map +1 -0
- package/dist/views/ProjectView/index.js +12 -0
- package/dist/views/ProjectView/index.js.map +1 -0
- package/dist/views/ProjectView/styles.js +9 -0
- package/dist/views/ProjectView/styles.js.map +1 -0
- package/dist/views/SingleBond/SingleBond.js +50 -0
- package/dist/views/SingleBond/SingleBond.js.map +1 -0
- package/dist/views/SingleBond/SoldOutBuyBondPlaceholder.js +85 -0
- package/dist/views/SingleBond/SoldOutBuyBondPlaceholder.js.map +1 -0
- package/dist/views/SingleBond/index.js +12 -0
- package/dist/views/SingleBond/index.js.map +1 -0
- package/dist/views/TransactionModal/TransactionModal.js +194 -0
- package/dist/views/TransactionModal/TransactionModal.js.map +1 -0
- package/dist/views/YourBonds/YourBonds.js +158 -0
- package/dist/views/YourBonds/YourBonds.js.map +1 -0
- package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.js +133 -0
- package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.js.map +1 -0
- package/dist/views/YourBonds/components/ClaimAll/index.js +36 -0
- package/dist/views/YourBonds/components/ClaimAll/index.js.map +1 -0
- package/dist/views/YourBonds/components/ProfitCard/ProfitCard.js +29 -0
- package/dist/views/YourBonds/components/ProfitCard/ProfitCard.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/PreTGEActions.js +118 -0
- package/dist/views/YourBonds/components/UserBondRow/PreTGEActions.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRow.js +151 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRow.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowPreTGE.js +58 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowPreTGE.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowSolana.js +183 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowSolana.js.map +1 -0
- package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.js +29 -0
- package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.js.map +1 -0
- package/dist/views/YourBonds/index.js +12 -0
- package/dist/views/YourBonds/index.js.map +1 -0
- package/dist/views/YourBondsModal/YourBondsModal.js +154 -0
- package/dist/views/YourBondsModal/YourBondsModal.js.map +1 -0
- package/dist/views/YourBondsModal/components/Actions/Actions.js +146 -0
- package/dist/views/YourBondsModal/components/Actions/Actions.js.map +1 -0
- package/dist/views/YourBondsModal/components/Actions/ActionsSolana.js +166 -0
- package/dist/views/YourBondsModal/components/Actions/ActionsSolana.js.map +1 -0
- package/dist/views/YourBondsModal/components/LinkShare/LinkShare.js +73 -0
- package/dist/views/YourBondsModal/components/LinkShare/LinkShare.js.map +1 -0
- package/dist/views/YourBondsModal/components/LinkShare/templateImageShare.js +94 -0
- package/dist/views/YourBondsModal/components/LinkShare/templateImageShare.js.map +1 -0
- package/dist/views/YourBondsModal/components/LinkShare/utils.js +57 -0
- package/dist/views/YourBondsModal/components/LinkShare/utils.js.map +1 -0
- package/dist/views/YourBondsModal/components/NFTImage/NFTImage.js +153 -0
- package/dist/views/YourBondsModal/components/NFTImage/NFTImage.js.map +1 -0
- package/dist/views/YourBondsModal/components/Recommendations/CardRecommendation.js +39 -0
- package/dist/views/YourBondsModal/components/Recommendations/CardRecommendation.js.map +1 -0
- package/dist/views/YourBondsModal/components/Recommendations/RecSkeleton.js +32 -0
- package/dist/views/YourBondsModal/components/Recommendations/RecSkeleton.js.map +1 -0
- package/dist/views/YourBondsModal/components/Recommendations/Recommendations.js +47 -0
- package/dist/views/YourBondsModal/components/Recommendations/Recommendations.js.map +1 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferAction.js +88 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferAction.js.map +1 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferActionSolana.js +103 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferActionSolana.js.map +1 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/index.js +45 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/index.js.map +1 -0
- package/dist/views/YourBondsModal/components/YourBondModalHeader/YourBondModalHeader.js +58 -0
- package/dist/views/YourBondsModal/components/YourBondModalHeader/YourBondModalHeader.js.map +1 -0
- 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
|