@ape.swap/bonds-sdk 1.0.77 → 1.0.78-2.test.11
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/components/BondMenu/BondMenu.d.ts +12 -0
- package/dist/components/BondMenu/BondMenu.js +40 -0
- package/dist/components/BondMenu/useChainFilterOption.d.ts +4 -0
- package/dist/components/BondMenu/useChainFilterOption.js +30 -0
- package/dist/components/BondRows/BondRow.d.ts +9 -0
- package/dist/components/BondRows/BondRow.js +81 -0
- package/dist/components/BondRows/BondRowHeader.d.ts +16 -0
- package/dist/components/BondRows/BondRowHeader.js +12 -0
- package/dist/components/BondRows/BondRowsByChain.d.ts +9 -0
- package/dist/components/BondRows/BondRowsByChain.js +13 -0
- package/dist/components/BondRows/BondRowsWithTitle.d.ts +9 -0
- package/dist/components/BondRows/BondRowsWithTitle.js +20 -0
- package/dist/components/BondRows/ChainTitle.d.ts +8 -0
- package/dist/components/BondRows/ChainTitle.js +18 -0
- package/dist/components/MenuSelect/MenuSelect.d.ts +8 -0
- package/dist/components/MenuSelect/MenuSelect.js +36 -0
- package/dist/components/MenuSelect/RecommendationSelector.d.ts +7 -0
- package/dist/components/MenuSelect/RecommendationSelector.js +32 -0
- package/dist/components/MenuSelect/types.d.ts +22 -0
- package/dist/components/NetworkFilter/index.d.ts +6 -0
- package/dist/components/NetworkFilter/index.js +66 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +8 -0
- package/dist/components/ProgressBar/ProgressBar.js +10 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.d.ts +14 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.js +9 -0
- package/dist/components/ProgressBar/styles.d.ts +2 -0
- package/dist/components/ProgressBar/styles.js +82 -0
- package/dist/components/TokenInfoAndName/index.d.ts +9 -0
- package/dist/components/TokenInfoAndName/index.js +40 -0
- package/dist/components/Tooltip/ButtonsRow.d.ts +8 -0
- package/dist/components/Tooltip/ButtonsRow.js +21 -0
- package/dist/components/Tooltip/Tooltip.d.ts +18 -0
- package/dist/components/Tooltip/Tooltip.js +13 -0
- package/dist/components/Tooltip/styles.d.ts +2 -0
- package/dist/components/Tooltip/styles.js +44 -0
- package/dist/components/uikit-sdk/Button/IconButton.js +33 -0
- package/dist/components/uikit-sdk/Checkbox/index.d.ts +3 -0
- package/dist/components/uikit-sdk/Checkbox/index.js +46 -0
- package/dist/components/uikit-sdk/Flex/index.d.ts +5 -0
- package/dist/components/uikit-sdk/Input/Input.d.ts +9 -0
- package/dist/components/uikit-sdk/Input/Input.js +72 -0
- package/dist/components/uikit-sdk/Input/NumericInput.d.ts +9 -0
- package/dist/components/uikit-sdk/Input/StyledInput.js +26 -0
- package/dist/components/uikit-sdk/Modal/ModalFooter.js +21 -0
- package/dist/components/uikit-sdk/Modal/ModalHeader.js +31 -0
- package/dist/components/uikit-sdk/Modal/index.js +46 -0
- package/dist/components/uikit-sdk/Select/Select.js +61 -0
- package/dist/components/uikit-sdk/Select/SelectItem.d.ts +3 -0
- package/dist/components/uikit-sdk/Select/SelectItem.js +40 -0
- package/dist/components/uikit-sdk/Skeleton/styles.d.ts +5 -0
- package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js +17 -0
- package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js +17 -0
- package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Bridge.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Bubble.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Calculator.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Calendar.js +5 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Card.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Chain.js +9 -0
- package/dist/components/uikit-sdk/Svg/Icons/Chart.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Chat.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Close.js +9 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cog.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Collapse.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Copy.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Docs.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Error.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Explorer.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/External.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Farm.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Fav.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/Frame.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/Gnana.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/GreenShield.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Home.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hot.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hot.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/Info.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Island.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Logout.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Message.js +9 -0
- package/dist/components/uikit-sdk/Svg/Icons/Migrate.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Moon.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/More.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/NFA.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Play.js +5 -0
- package/dist/components/uikit-sdk/Svg/Icons/Pool.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Positions.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/Question.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Quiz.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Receipt.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Rocket.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Search.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Send.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Settings.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Share.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Success.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js +5 -0
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/TickShield.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Trade.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Trash.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/URL.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Vaults.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Verified.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/Wallet.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Warning.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Watch.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/Website.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/XNew.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js +6 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +16 -0
- package/dist/components/uikit-sdk/Svg/Icons/index.d.ts +110 -0
- package/dist/components/uikit-sdk/Svg/Icons/index.js +112 -0
- package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js +16 -0
- package/dist/components/uikit-sdk/Svg/index.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/index.js +347 -0
- package/dist/components/uikit-sdk/Svg/tokens/ABOND.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/BANANA.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js +5 -0
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/GNANA.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js +5 -0
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +6 -0
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +6 -0
- package/dist/components/uikit-sdk/Svg/types.d.ts +171 -0
- package/dist/components/uikit-sdk/Svg/types.js +165 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js +6 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js +5 -0
- package/dist/components/uikit-sdk/Tag/ListTag.js +20 -0
- package/dist/components/uikit-sdk/Tag/styles.d.ts +8 -0
- package/dist/components/uikit-sdk/Tag/types.js +34 -0
- package/dist/components/uikit-sdk/Text/index.js +35 -0
- package/dist/components/uikit-sdk/TokenImage/index.d.ts +7 -0
- package/dist/components/uikit-sdk/TokenImage/index.js +18 -0
- package/dist/components/uikit-sdk/TooltipBubble/index.js +66 -0
- package/dist/components/uikit-sdk/TooltipBubble/styles.js +60 -0
- package/dist/components/uikit-sdk/index.d.ts +10 -0
- package/dist/components/uikit-sdk/index.js +12 -0
- package/dist/config/abi/bond.json +450 -0
- package/dist/config/abi/erc20.json +117 -0
- package/dist/config/abi/multicallv2.json +143 -0
- package/dist/config/abi/types/Banana.d.ts +417 -0
- package/dist/config/abi/types/Banana.js +1 -0
- package/dist/config/abi/types/Bond.d.ts +803 -0
- package/dist/config/abi/types/Bond.js +1 -0
- package/dist/config/abi/types/BondNft.d.ts +603 -0
- package/dist/config/abi/types/BondNft.js +1 -0
- package/dist/config/abi/types/EnsPublicResolver.d.ts +513 -0
- package/dist/config/abi/types/EnsPublicResolver.js +1 -0
- package/dist/config/abi/types/EnsRegistrar.d.ts +274 -0
- package/dist/config/abi/types/EnsRegistrar.js +1 -0
- package/dist/config/abi/types/Erc20.d.ts +168 -0
- package/dist/config/abi/types/Erc20.js +1 -0
- package/dist/config/abi/types/Erc20_bytes32.d.ts +50 -0
- package/dist/config/abi/types/Erc20_bytes32.js +1 -0
- package/dist/config/abi/types/JungleChef.d.ts +260 -0
- package/dist/config/abi/types/JungleChef.js +1 -0
- package/dist/config/abi/types/LaunchBonds.d.ts +1362 -0
- package/dist/config/abi/types/LaunchBonds.js +1 -0
- package/dist/config/abi/types/LensContract.d.ts +295 -0
- package/dist/config/abi/types/LensContract.js +1 -0
- package/dist/config/abi/types/LockVeAbond.d.ts +1279 -0
- package/dist/config/abi/types/LockVeAbond.js +1 -0
- package/dist/config/abi/types/MigrationBond.d.ts +1136 -0
- package/dist/config/abi/types/MigrationBond.js +1 -0
- package/dist/config/abi/types/MigrationFveAbond.d.ts +290 -0
- package/dist/config/abi/types/MigrationFveAbond.js +1 -0
- package/dist/config/abi/types/MiniComplexRewarder.d.ts +469 -0
- package/dist/config/abi/types/MiniComplexRewarder.js +1 -0
- package/dist/config/abi/types/Multicallv2.d.ts +150 -0
- package/dist/config/abi/types/Multicallv2.js +1 -0
- package/dist/config/abi/types/Multicallv3.d.ts +98 -0
- package/dist/config/abi/types/Multicallv3.js +1 -0
- package/dist/config/abi/types/NonFungibleApes.d.ts +532 -0
- package/dist/config/abi/types/NonFungibleApes.js +1 -0
- package/dist/config/abi/types/NonFungibleBananas.d.ts +505 -0
- package/dist/config/abi/types/NonFungibleBananas.js +1 -0
- package/dist/config/abi/types/PriceGetter.d.ts +713 -0
- package/dist/config/abi/types/PriceGetter.js +1 -0
- package/dist/config/abi/types/PriceGetterLinea.d.ts +789 -0
- package/dist/config/abi/types/PriceGetterLinea.js +1 -0
- package/dist/config/abi/types/PriceGetterV2.d.ts +729 -0
- package/dist/config/abi/types/PriceGetterV2.js +1 -0
- package/dist/config/abi/types/SousChef.d.ts +579 -0
- package/dist/config/abi/types/SousChef.js +1 -0
- package/dist/config/abi/types/Treasury.d.ts +277 -0
- package/dist/config/abi/types/Treasury.js +1 -0
- package/dist/config/abi/types/Weth.d.ts +221 -0
- package/dist/config/abi/types/Weth.js +1 -0
- package/dist/config/abi/types/Zap.d.ts +528 -0
- package/dist/config/abi/types/Zap.js +1 -0
- package/dist/config/abi/types/common.d.ts +22 -0
- package/dist/config/abi/types/common.js +1 -0
- package/dist/config/abi/types/factories/Banana__factory.d.ts +475 -0
- package/dist/config/abi/types/factories/Banana__factory.js +628 -0
- package/dist/config/abi/types/factories/BondNft__factory.d.ts +723 -0
- package/dist/config/abi/types/factories/BondNft__factory.js +951 -0
- package/dist/config/abi/types/factories/Bond__factory.d.ts +799 -0
- package/dist/config/abi/types/factories/Bond__factory.js +1042 -0
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +649 -0
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +833 -0
- package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +338 -0
- package/dist/config/abi/types/factories/EnsRegistrar__factory.js +439 -0
- package/dist/config/abi/types/factories/Erc20__factory.d.ts +175 -0
- package/dist/config/abi/types/factories/Erc20__factory.js +239 -0
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +30 -0
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +47 -0
- package/dist/config/abi/types/factories/JungleChef__factory.d.ts +247 -0
- package/dist/config/abi/types/factories/JungleChef__factory.js +326 -0
- package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +1560 -0
- package/dist/config/abi/types/factories/LaunchBonds__factory.js +2031 -0
- package/dist/config/abi/types/factories/LensContract__factory.d.ts +254 -0
- package/dist/config/abi/types/factories/LensContract__factory.js +338 -0
- package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +1698 -0
- package/dist/config/abi/types/factories/LockVeAbond__factory.js +2215 -0
- package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +1268 -0
- package/dist/config/abi/types/factories/MigrationBond__factory.js +1656 -0
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +262 -0
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +346 -0
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +448 -0
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +586 -0
- package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +115 -0
- package/dist/config/abi/types/factories/Multicallv2__factory.js +160 -0
- package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +76 -0
- package/dist/config/abi/types/factories/Multicallv3__factory.js +109 -0
- package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +617 -0
- package/dist/config/abi/types/factories/NonFungibleApes__factory.js +810 -0
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +576 -0
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +756 -0
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +1105 -0
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +1465 -0
- package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +1027 -0
- package/dist/config/abi/types/factories/PriceGetterV2__factory.js +1364 -0
- package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +999 -0
- package/dist/config/abi/types/factories/PriceGetter__factory.js +1326 -0
- package/dist/config/abi/types/factories/SousChef__factory.d.ts +511 -0
- package/dist/config/abi/types/factories/SousChef__factory.js +666 -0
- package/dist/config/abi/types/factories/Treasury__factory.d.ts +235 -0
- package/dist/config/abi/types/factories/Treasury__factory.js +309 -0
- package/dist/config/abi/types/factories/Weth__factory.d.ts +220 -0
- package/dist/config/abi/types/factories/Weth__factory.js +296 -0
- package/dist/config/abi/types/factories/Zap__factory.d.ts +695 -0
- package/dist/config/abi/types/factories/Zap__factory.js +889 -0
- package/dist/config/abi/types/factories/index.d.ts +25 -0
- package/dist/config/abi/types/factories/index.js +28 -0
- package/dist/config/abi/types/index.d.ts +51 -0
- package/dist/config/abi/types/index.js +26 -0
- package/dist/config/constants/addresses.d.ts +20 -0
- package/dist/config/constants/addresses.js +116 -0
- package/dist/config/constants/api.d.ts +6 -0
- package/dist/config/constants/api.js +6 -0
- package/dist/config/constants/chains.d.ts +48 -0
- package/dist/config/constants/chains.js +436 -0
- package/dist/config/constants/lifiRouting.d.ts +2 -0
- package/dist/config/constants/lifiRouting.js +6 -0
- package/dist/config/constants/lists.d.ts +10 -0
- package/dist/config/constants/lists.js +21 -0
- package/dist/config/constants/meta.d.ts +11 -0
- package/dist/config/constants/meta.js +92 -0
- package/dist/config/constants/misc.d.ts +3 -0
- package/dist/config/constants/misc.js +4 -0
- package/dist/config/constants/networks.d.ts +2 -0
- package/dist/config/constants/networks.js +44 -0
- package/dist/config/constants/products.d.ts +21 -0
- package/dist/config/constants/products.js +58 -0
- package/dist/config/constants/queryKeys.d.ts +24 -0
- package/dist/config/constants/queryKeys.js +24 -0
- package/dist/config/constants/tokens.d.ts +6 -0
- package/dist/config/constants/tokens.js +452 -0
- package/dist/config/constants/tutorials.d.ts +7 -0
- package/dist/config/constants/tutorials.js +80 -0
- package/dist/config/localization/languages.d.ts +11 -0
- package/dist/config/localization/languages.js +83 -0
- package/dist/config/localization/translations.json +918 -0
- package/dist/contexts/Localization/Provider.d.ts +7 -0
- package/dist/contexts/Localization/Provider.js +134 -0
- package/dist/contexts/Localization/helpers.d.ts +3 -0
- package/dist/contexts/Localization/helpers.js +63 -0
- package/dist/contexts/Localization/index.d.ts +3 -0
- package/dist/contexts/Localization/index.js +2 -0
- package/dist/contexts/Localization/types.d.ts +21 -0
- package/dist/contexts/Localization/types.js +1 -0
- package/dist/contexts/Localization/useTranslation.d.ts +2 -0
- package/dist/contexts/Localization/useTranslation.js +10 -0
- package/dist/contexts/ModalContext.js +4 -15
- package/dist/contexts/RefreshContext.d.ts +10 -0
- package/dist/contexts/RefreshContext.js +78 -0
- package/dist/enum/apeswaplists.d.ts +418 -0
- package/dist/enum/apeswaplists.js +152 -0
- package/dist/enum/tooltips.d.ts +13 -0
- package/dist/enum/tooltips.js +13 -0
- package/dist/hooks/useCookie.d.ts +9 -0
- package/dist/hooks/useCookie.js +29 -0
- package/dist/hooks/usePendingVesting.d.ts +5 -0
- package/dist/hooks/usePendingVesting.js +13 -0
- package/dist/hooks/useRefresh.d.ts +6 -0
- package/dist/hooks/useRefresh.js +7 -0
- package/dist/hooks/useTimer.d.ts +2 -0
- package/dist/hooks/useTimer.js +13 -0
- package/dist/hooks/useTopThreeTags.d.ts +2 -0
- package/dist/hooks/useTopThreeTags.js +25 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +5 -3
- package/dist/providers/index.d.ts +8 -0
- package/dist/providers/index.js +12 -0
- package/dist/scss/BondMenu.scss +29 -0
- package/dist/scss/BondModal.scss +409 -0
- package/dist/scss/BondRow.scss +98 -0
- package/dist/scss/BondRowHeader.scss +124 -0
- package/dist/scss/BondRowsByChain.scss +5 -0
- package/dist/scss/BondRowsWithTitle.scss +4 -0
- package/dist/scss/Bonds.scss +17 -0
- package/dist/scss/ProgressBar.scss +13 -0
- package/dist/scss/TokenInfoName.scss +45 -0
- package/dist/scss/YourBonds.scss +198 -0
- package/dist/scss/YourBondsModal.scss +314 -0
- package/dist/theme/colors.d.ts +3 -2
- package/dist/theme/colors.js +5 -4
- package/dist/types/bonds.d.ts +35 -1
- package/dist/types/yourbonds.d.ts +93 -0
- package/dist/types/yourbonds.js +1 -0
- package/dist/utils/convertToTokenValue.d.ts +4 -0
- package/dist/utils/convertToTokenValue.js +24 -0
- package/dist/utils/formatNumber.d.ts +2 -0
- package/dist/utils/formatNumber.js +34 -0
- package/dist/utils/formatNumbers.d.ts +36 -0
- package/dist/utils/formatNumbers.js +148 -0
- package/dist/utils/getBalanceNumber.d.ts +4 -0
- package/dist/utils/getBalanceNumber.js +18 -0
- package/dist/utils/index.d.ts +16 -0
- package/dist/utils/index.js +127 -0
- package/dist/utils/localStorageHelpers.d.ts +3 -0
- package/dist/utils/localStorageHelpers.js +47 -0
- package/dist/utils/multicall.d.ts +7 -0
- package/dist/utils/multicall.js +90 -0
- package/dist/utils/roundNumber.d.ts +7 -0
- package/dist/utils/roundNumber.js +14 -0
- package/dist/utils/track.d.ts +7 -0
- package/dist/utils/track.js +17 -0
- package/dist/views/BondModal/BondModal.d.ts +13 -0
- package/dist/views/BondModal/BondModal.js +277 -0
- package/dist/views/BondModal/helper.d.ts +10 -0
- package/dist/views/BondModal/helper.js +54 -0
- package/dist/views/BondModal/index.d.ts +4 -0
- package/dist/views/BondModal/index.js +18 -0
- package/dist/views/Bonds/Bonds.d.ts +17 -0
- package/dist/views/Bonds/Bonds.js +174 -0
- package/dist/views/YourBonds/YourBonds.d.ts +15 -0
- package/dist/views/YourBonds/YourBonds.js +276 -0
- package/dist/views/YourBonds/fetchBillsUser.d.ts +17 -0
- package/dist/views/YourBonds/fetchBillsUser.js +235 -0
- package/dist/views/YourBonds/getBillNftData.d.ts +9 -0
- package/dist/views/YourBonds/getBillNftData.js +109 -0
- package/dist/views/YourBondsModal/YourBondsModal.d.ts +10 -0
- package/dist/views/YourBondsModal/YourBondsModal.js +173 -0
- package/dist/views/YourBondsModal/styles.d.ts +2 -0
- package/dist/views/YourBondsModal/styles.js +12 -0
- package/package.json +37 -13
- package/dist/components/BondModal/BondModal.d.ts +0 -10
- package/dist/components/BondModal/BondModal.js +0 -30
- package/dist/components/BondSingle/BondSingle.d.ts +0 -5
- package/dist/components/BondSingle/BondSingle.js +0 -45
- package/dist/components/Bonds/Bonds.d.ts +0 -13
- package/dist/components/Bonds/Bonds.js +0 -152
- package/dist/components/Bonds/styles.d.ts +0 -4
- package/dist/components/Bonds/styles.js +0 -75
- package/dist/components/uikit/Button/IconButton.js +0 -33
- package/dist/components/uikit/Checkbox/index.d.ts +0 -4
- package/dist/components/uikit/Checkbox/index.js +0 -46
- package/dist/components/uikit/Dropdown/Dropdown.d.ts +0 -4
- package/dist/components/uikit/Dropdown/Dropdown.js +0 -58
- package/dist/components/uikit/Dropdown/DropdownItem.d.ts +0 -4
- package/dist/components/uikit/Dropdown/DropdownItem.js +0 -47
- package/dist/components/uikit/Dropdown/index.d.ts +0 -3
- package/dist/components/uikit/Dropdown/index.js +0 -2
- package/dist/components/uikit/Dropdown/styles.js +0 -16
- package/dist/components/uikit/Dropdown/types.d.ts +0 -58
- package/dist/components/uikit/Dropdown/types.js +0 -22
- package/dist/components/uikit/Flex/index.d.ts +0 -3
- package/dist/components/uikit/Input/Input.d.ts +0 -4
- package/dist/components/uikit/Input/Input.js +0 -72
- package/dist/components/uikit/Input/NumericInput.d.ts +0 -10
- package/dist/components/uikit/Input/StyledInput.js +0 -37
- package/dist/components/uikit/Link/index.d.ts +0 -9
- package/dist/components/uikit/Link/index.js +0 -29
- package/dist/components/uikit/Modal/ModalFooter.js +0 -32
- package/dist/components/uikit/Modal/ModalHeader.js +0 -31
- package/dist/components/uikit/Modal/index.js +0 -55
- package/dist/components/uikit/Select/Select.js +0 -61
- package/dist/components/uikit/Select/SelectItem.d.ts +0 -4
- package/dist/components/uikit/Select/SelectItem.js +0 -40
- package/dist/components/uikit/Skeleton/styles.d.ts +0 -5
- package/dist/components/uikit/Spinner/apeSpinner.json +0 -2764
- package/dist/components/uikit/Spinner/index.d.ts +0 -5
- package/dist/components/uikit/Spinner/index.js +0 -20
- package/dist/components/uikit/Svg/Icons/AbondFullLogo.js +0 -27
- package/dist/components/uikit/Svg/Icons/AbondSmallLogo.js +0 -17
- package/dist/components/uikit/Svg/Icons/AccountMonkey.js +0 -27
- package/dist/components/uikit/Svg/Icons/ApebondLogo.js +0 -28
- package/dist/components/uikit/Svg/Icons/ApeswapSmallLogo.js +0 -17
- package/dist/components/uikit/Svg/Icons/Arrow.js +0 -27
- package/dist/components/uikit/Svg/Icons/Audit.js +0 -27
- package/dist/components/uikit/Svg/Icons/BananaIcon.js +0 -17
- package/dist/components/uikit/Svg/Icons/BillsM1.js +0 -27
- package/dist/components/uikit/Svg/Icons/BillsM2.js +0 -28
- package/dist/components/uikit/Svg/Icons/BillsM3.js +0 -27
- package/dist/components/uikit/Svg/Icons/Bridge.js +0 -27
- package/dist/components/uikit/Svg/Icons/Bubble.js +0 -27
- package/dist/components/uikit/Svg/Icons/Calculator.js +0 -27
- package/dist/components/uikit/Svg/Icons/Calendar.js +0 -16
- package/dist/components/uikit/Svg/Icons/Cancelled.js +0 -27
- package/dist/components/uikit/Svg/Icons/Card.js +0 -27
- package/dist/components/uikit/Svg/Icons/Caret.js +0 -27
- package/dist/components/uikit/Svg/Icons/Chain.js +0 -20
- package/dist/components/uikit/Svg/Icons/Chart.js +0 -27
- package/dist/components/uikit/Svg/Icons/Chat.js +0 -27
- package/dist/components/uikit/Svg/Icons/Close.js +0 -20
- package/dist/components/uikit/Svg/Icons/Cog.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/Cog.js +0 -27
- package/dist/components/uikit/Svg/Icons/Collapse.js +0 -27
- package/dist/components/uikit/Svg/Icons/Copy.js +0 -27
- package/dist/components/uikit/Svg/Icons/Discord.js +0 -27
- package/dist/components/uikit/Svg/Icons/DiscordNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/Docs.js +0 -27
- package/dist/components/uikit/Svg/Icons/DocsV2.js +0 -27
- package/dist/components/uikit/Svg/Icons/Ellipse.js +0 -27
- package/dist/components/uikit/Svg/Icons/Error.js +0 -27
- package/dist/components/uikit/Svg/Icons/Expand.js +0 -27
- package/dist/components/uikit/Svg/Icons/Explorer.js +0 -27
- package/dist/components/uikit/Svg/Icons/External.js +0 -27
- package/dist/components/uikit/Svg/Icons/Farm.js +0 -27
- package/dist/components/uikit/Svg/Icons/Fav.js +0 -27
- package/dist/components/uikit/Svg/Icons/FilledURL.js +0 -27
- package/dist/components/uikit/Svg/Icons/Fire.js +0 -17
- package/dist/components/uikit/Svg/Icons/Frame.js +0 -27
- package/dist/components/uikit/Svg/Icons/FullLogo.js +0 -17
- package/dist/components/uikit/Svg/Icons/Gnana.js +0 -27
- package/dist/components/uikit/Svg/Icons/GreenShield.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/GreenShield.js +0 -17
- package/dist/components/uikit/Svg/Icons/Hamburger.js +0 -27
- package/dist/components/uikit/Svg/Icons/HamburgerClosed.js +0 -27
- package/dist/components/uikit/Svg/Icons/Home.js +0 -27
- package/dist/components/uikit/Svg/Icons/Info.js +0 -27
- package/dist/components/uikit/Svg/Icons/InfoSolid.js +0 -27
- package/dist/components/uikit/Svg/Icons/Insight.js +0 -27
- package/dist/components/uikit/Svg/Icons/Instagram.js +0 -27
- package/dist/components/uikit/Svg/Icons/Island.js +0 -27
- package/dist/components/uikit/Svg/Icons/LanguageIcon.js +0 -27
- package/dist/components/uikit/Svg/Icons/LineChart.js +0 -17
- package/dist/components/uikit/Svg/Icons/LiquidityIcon.js +0 -27
- package/dist/components/uikit/Svg/Icons/Logout.js +0 -27
- package/dist/components/uikit/Svg/Icons/Medium.js +0 -27
- package/dist/components/uikit/Svg/Icons/MenuSettings.js +0 -27
- package/dist/components/uikit/Svg/Icons/Message.js +0 -20
- package/dist/components/uikit/Svg/Icons/Migrate.js +0 -27
- package/dist/components/uikit/Svg/Icons/Moon.js +0 -27
- package/dist/components/uikit/Svg/Icons/More.js +0 -27
- package/dist/components/uikit/Svg/Icons/NFA.js +0 -27
- package/dist/components/uikit/Svg/Icons/NavCaret.js +0 -27
- package/dist/components/uikit/Svg/Icons/PlaceholderMonkey.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/PlaceholderMonkey.js +0 -27
- package/dist/components/uikit/Svg/Icons/Play.js +0 -16
- package/dist/components/uikit/Svg/Icons/Pool.js +0 -27
- package/dist/components/uikit/Svg/Icons/Positions.js +0 -27
- package/dist/components/uikit/Svg/Icons/ProfileDark.js +0 -17
- package/dist/components/uikit/Svg/Icons/ProfileLight.js +0 -17
- package/dist/components/uikit/Svg/Icons/Question.js +0 -17
- package/dist/components/uikit/Svg/Icons/QuestionCircle.js +0 -27
- package/dist/components/uikit/Svg/Icons/QuestionFill.js +0 -27
- package/dist/components/uikit/Svg/Icons/Quiz.js +0 -27
- package/dist/components/uikit/Svg/Icons/Receipt.js +0 -27
- package/dist/components/uikit/Svg/Icons/Reddit.js +0 -27
- package/dist/components/uikit/Svg/Icons/Rocket.js +0 -27
- package/dist/components/uikit/Svg/Icons/ScrollTop.js +0 -27
- package/dist/components/uikit/Svg/Icons/Search.js +0 -27
- package/dist/components/uikit/Svg/Icons/Send.js +0 -27
- package/dist/components/uikit/Svg/Icons/Settings.js +0 -27
- package/dist/components/uikit/Svg/Icons/Share.js +0 -27
- package/dist/components/uikit/Svg/Icons/Success.js +0 -27
- package/dist/components/uikit/Svg/Icons/SuccessOutline.js +0 -27
- package/dist/components/uikit/Svg/Icons/SwapArrows.js +0 -27
- package/dist/components/uikit/Svg/Icons/SwitchArrows.d.ts +0 -4
- package/dist/components/uikit/Svg/Icons/SwitchArrows.js +0 -27
- package/dist/components/uikit/Svg/Icons/Tag.js +0 -16
- package/dist/components/uikit/Svg/Icons/Telegram.js +0 -27
- package/dist/components/uikit/Svg/Icons/TelegramNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/TextLogo.js +0 -17
- package/dist/components/uikit/Svg/Icons/TickShield.js +0 -27
- package/dist/components/uikit/Svg/Icons/Trade.js +0 -27
- package/dist/components/uikit/Svg/Icons/Trash.js +0 -27
- package/dist/components/uikit/Svg/Icons/Twitter.js +0 -27
- package/dist/components/uikit/Svg/Icons/URL.js +0 -27
- package/dist/components/uikit/Svg/Icons/Vaults.js +0 -27
- package/dist/components/uikit/Svg/Icons/Verified.js +0 -17
- package/dist/components/uikit/Svg/Icons/Wallet.js +0 -27
- package/dist/components/uikit/Svg/Icons/Warning.js +0 -27
- package/dist/components/uikit/Svg/Icons/Watch.js +0 -27
- package/dist/components/uikit/Svg/Icons/Website.js +0 -27
- package/dist/components/uikit/Svg/Icons/WebsiteNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/WhitepaperNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/XNew.js +0 -27
- package/dist/components/uikit/Svg/Icons/YellowQuestionMark.js +0 -17
- package/dist/components/uikit/Svg/Icons/ZapArrow.js +0 -27
- package/dist/components/uikit/Svg/Icons/ZapIcon.js +0 -27
- package/dist/components/uikit/Svg/Icons/index.d.ts +0 -107
- package/dist/components/uikit/Svg/Icons/index.js +0 -109
- package/dist/components/uikit/Svg/Icons/polygonNew.js +0 -27
- package/dist/components/uikit/Svg/index.d.ts +0 -4
- package/dist/components/uikit/Svg/index.js +0 -341
- package/dist/components/uikit/Svg/styles.d.ts +0 -4
- package/dist/components/uikit/Svg/tokens/ABOND.js +0 -17
- package/dist/components/uikit/Svg/tokens/ARBITRUM.js +0 -17
- package/dist/components/uikit/Svg/tokens/AVAX.js +0 -17
- package/dist/components/uikit/Svg/tokens/BANANA.js +0 -17
- package/dist/components/uikit/Svg/tokens/BASE.js +0 -17
- package/dist/components/uikit/Svg/tokens/BNB.js +0 -17
- package/dist/components/uikit/Svg/tokens/BSC.js +0 -17
- package/dist/components/uikit/Svg/tokens/CELO.js +0 -16
- package/dist/components/uikit/Svg/tokens/CRONOS.js +0 -17
- package/dist/components/uikit/Svg/tokens/ETH.js +0 -17
- package/dist/components/uikit/Svg/tokens/FANTOM.js +0 -17
- package/dist/components/uikit/Svg/tokens/GNANA.js +0 -17
- package/dist/components/uikit/Svg/tokens/GNOSIS.js +0 -17
- package/dist/components/uikit/Svg/tokens/INEVM.js +0 -17
- package/dist/components/uikit/Svg/tokens/IOTA.js +0 -17
- package/dist/components/uikit/Svg/tokens/LIGHTLINK.js +0 -17
- package/dist/components/uikit/Svg/tokens/LINEA.js +0 -17
- package/dist/components/uikit/Svg/tokens/OKX.js +0 -16
- package/dist/components/uikit/Svg/tokens/OPTIMISM.js +0 -19
- package/dist/components/uikit/Svg/tokens/POLYGON.js +0 -17
- package/dist/components/uikit/Svg/tokens/POLYGONZK.js +0 -17
- package/dist/components/uikit/Svg/tokens/TLOS.js +0 -17
- package/dist/components/uikit/Svg/types.d.ts +0 -168
- package/dist/components/uikit/Svg/types.js +0 -162
- package/dist/components/uikit/Svg/walletIcons/BinanceChain.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/BinanceChain.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Bitkeep.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Bitkeep.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Brave.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Brave.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Coinbase.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Coinbase.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/MadWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/MathWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/MathWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Metamask.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Metamask.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Nabox.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/Nabox.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/OKX.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/OKX.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/OntoWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/OntoWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/SafePalWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/SafePalWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/SocialLogin.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/SocialLogin.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/TokenPocket.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/TokenPocket.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/TorusWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/TorusWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/TrustWallet.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/TrustWallet.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/Unstoppable.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/WalletConnect.d.ts +0 -4
- package/dist/components/uikit/Svg/walletIcons/WalletConnect.js +0 -17
- package/dist/components/uikit/Svg/walletIcons/WalletImage.js +0 -16
- package/dist/components/uikit/SwiperDots/index.d.ts +0 -6
- package/dist/components/uikit/SwiperDots/index.js +0 -14
- package/dist/components/uikit/Tabs/Tab.d.ts +0 -4
- package/dist/components/uikit/Tabs/Tab.js +0 -34
- package/dist/components/uikit/Tabs/TabPanel.d.ts +0 -4
- package/dist/components/uikit/Tabs/TabPanel.js +0 -29
- package/dist/components/uikit/Tabs/Tabs.d.ts +0 -4
- package/dist/components/uikit/Tabs/Tabs.js +0 -67
- package/dist/components/uikit/Tabs/index.d.ts +0 -2
- package/dist/components/uikit/Tabs/index.js +0 -2
- package/dist/components/uikit/Tabs/styles.d.ts +0 -3
- package/dist/components/uikit/Tabs/styles.js +0 -40
- package/dist/components/uikit/Tabs/types.d.ts +0 -54
- package/dist/components/uikit/Tabs/types.js +0 -22
- package/dist/components/uikit/Tag/ListTag.js +0 -20
- package/dist/components/uikit/Tag/styles.d.ts +0 -5
- package/dist/components/uikit/Tag/types.js +0 -34
- package/dist/components/uikit/Text/index.js +0 -35
- package/dist/components/uikit/Toggle/index.d.ts +0 -4
- package/dist/components/uikit/Toggle/index.js +0 -63
- package/dist/components/uikit/Toggle/styles.d.ts +0 -3
- package/dist/components/uikit/Toggle/styles.js +0 -39
- package/dist/components/uikit/Toggle/types.d.ts +0 -31
- package/dist/components/uikit/Toggle/types.js +0 -17
- package/dist/components/uikit/Tooltip/index.js +0 -66
- package/dist/components/uikit/Tooltip/styles.js +0 -60
- package/dist/components/uikit/TutorialModal/index.d.ts +0 -4
- package/dist/components/uikit/TutorialModal/index.js +0 -52
- package/dist/components/uikit/TutorialModal/styles.d.ts +0 -8
- package/dist/components/uikit/TutorialModal/styles.js +0 -86
- package/dist/components/uikit/TutorialModal/types.d.ts +0 -22
- package/dist/components/uikit/TutorialModal/useTutorialModal.d.ts +0 -6
- package/dist/components/uikit/TutorialModal/useTutorialModal.js +0 -20
- package/dist/components/uikit/index.d.ts +0 -18
- package/dist/components/uikit/index.js +0 -20
- package/dist/scss/bondmodal.scss +0 -92
- package/dist/scss/bonds.scss +0 -70
- package/dist/scss/bondsingle.scss +0 -70
- /package/dist/components/{uikit/Modal → MenuSelect}/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/Button.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/Button.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/IconButton.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/styles.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Checkbox/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Checkbox/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Flex/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Input/NumericInput.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Input/StyledInput.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Input/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Input/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Modal/ModalFooter.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Modal/ModalHeader.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Modal/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Modal/styles.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Modal/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Modal/types.d.ts +0 -0
- /package/dist/components/{uikit/TutorialModal → uikit-sdk/Modal}/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/Select.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/styles.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Skeleton/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Skeleton/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Skeleton/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Skeleton/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Skeleton/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AbondFullLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AbondSmallLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AccountMonkey.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ApebondLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ApeswapSmallLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Arrow.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Audit.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BananaIcon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM1.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM2.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM3.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Bridge.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Bubble.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Calculator.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Calendar.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Cancelled.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Card.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Caret.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chain.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chart.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chat.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Close.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Collapse.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Copy.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Discord.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/DiscordNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Docs.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/DocsV2.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Ellipse.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Error.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Expand.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Explorer.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/External.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Farm.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Fav.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/FilledURL.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Fire.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Frame.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/FullLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Gnana.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Hamburger.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/HamburgerClosed.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Home.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Info.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/InfoSolid.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Insight.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Instagram.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Island.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Language.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Language.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LanguageIcon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LineChart.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LiquidityIcon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Logout.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Medium.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/MenuSettings.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Message.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Migrate.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Moon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/More.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/NFA.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/NavCaret.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Play.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Pool.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Positions.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileDark.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileIcon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileIcon.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileLight.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Question.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/QuestionCircle.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/QuestionFill.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Quiz.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Receipt.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Reddit.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Rocket.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ScrollTop.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Search.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Send.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Settings.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Share.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Success.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/SuccessOutline.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/SwapArrows.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Tag.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Telegram.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TelegramNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TextLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TickShield.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Trade.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Trash.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Twitter.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/URL.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Vaults.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Verified.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Wallet.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Warning.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Watch.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Website.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/WebsiteNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/WhitepaperNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/XNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/YellowQuestionMark.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ZapArrow.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ZapIcon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/polygonNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/types.js +0 -0
- /package/dist/components/{uikit/Dropdown → uikit-sdk/Svg}/styles.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ABOND.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ARBITRUM.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/AVAX.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BANANA.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BASE.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BNB.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BSC.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/CELO.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/CRONOS.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ETH.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/FANTOM.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/GNANA.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/GNOSIS.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/INEVM.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/IOTA.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/LIGHTLINK.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/LINEA.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/OKX.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/OPTIMISM.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/POLYGON.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/POLYGONZK.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/TLOS.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/MadWallet.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Unstoppable.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/WalletImage.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/ListTag.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/Tag.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/Tag.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Text/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Text/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Text/types.js +0 -0
- /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/index.d.ts +0 -0
- /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/styles.d.ts +0 -0
- /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/types.d.ts +0 -0
- /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/types.js +0 -0
package/dist/theme/colors.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const colors: {
|
|
2
2
|
white1: string;
|
|
3
3
|
white2: string;
|
|
4
4
|
white3: string;
|
|
@@ -7,6 +7,7 @@ declare const abondColors: {
|
|
|
7
7
|
brandPrimary140: string;
|
|
8
8
|
navBar: string;
|
|
9
9
|
primaryButton: string;
|
|
10
|
+
primaryShade: string;
|
|
10
11
|
secondary: string;
|
|
11
12
|
footer: string;
|
|
12
13
|
success: string;
|
|
@@ -85,4 +86,4 @@ declare const abondColors: {
|
|
|
85
86
|
bg2: string;
|
|
86
87
|
progressBar: string;
|
|
87
88
|
};
|
|
88
|
-
export default
|
|
89
|
+
export default colors;
|
package/dist/theme/colors.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
var
|
|
1
|
+
var colors = {
|
|
2
2
|
// main background gradients
|
|
3
|
-
white1: '#0E0D16',
|
|
3
|
+
white1: '#0E0D16', // base site background
|
|
4
4
|
white2: '#161420',
|
|
5
5
|
white3: '#1F1D29',
|
|
6
6
|
white4: '#282632',
|
|
7
7
|
white5: '#312F3A',
|
|
8
8
|
brandPrimary140: '#C1BDE7',
|
|
9
9
|
navBar: 'rgba(22, 20, 32, 0.8)',
|
|
10
|
-
primaryButton: '#6560C5',
|
|
10
|
+
primaryButton: '#6560C5', //this should've been called just "primary"
|
|
11
|
+
primaryShade: '#514CA133',
|
|
11
12
|
secondary: '#E69275',
|
|
12
13
|
footer: '#000000',
|
|
13
14
|
success: '#38A611',
|
|
@@ -89,4 +90,4 @@ var abondColors = {
|
|
|
89
90
|
bg2: 'linear-gradient(180deg, #FEFCEC 27.58%, #EEDFC7 79.74%, #FEFAE0 131.91%, #F5ECDD 154.81%)',
|
|
90
91
|
progressBar: 'linear-gradient(90deg, #312E7A 0%, #5C4FAE 41.5%, #AD6568 74.5%, #AD6E66 100%)',
|
|
91
92
|
};
|
|
92
|
-
export default
|
|
93
|
+
export default colors;
|
package/dist/types/bonds.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChainId } from
|
|
1
|
+
import { ChainId } from '../enum/apeswaplists';
|
|
2
2
|
export interface BondsDataResponse {
|
|
3
3
|
index: number;
|
|
4
4
|
cmcId?: number;
|
|
@@ -30,4 +30,38 @@ export interface BondsDataResponse {
|
|
|
30
30
|
priceUsd: string;
|
|
31
31
|
tags?: string[];
|
|
32
32
|
arr: string;
|
|
33
|
+
shortDescription?: string;
|
|
34
|
+
fullDescription?: string;
|
|
35
|
+
twitter?: string;
|
|
36
|
+
projectLink?: string;
|
|
37
|
+
audit?: string;
|
|
38
|
+
billVersion?: string;
|
|
39
|
+
earnToken: EarnToken;
|
|
40
|
+
lpToken: LpToken;
|
|
41
|
+
}
|
|
42
|
+
export interface EarnToken {
|
|
43
|
+
active: boolean;
|
|
44
|
+
symbol: string;
|
|
45
|
+
address: {
|
|
46
|
+
[chainId: number]: string;
|
|
47
|
+
};
|
|
48
|
+
decimals: {
|
|
49
|
+
[chainId: number]: number;
|
|
50
|
+
};
|
|
51
|
+
liquidityDex: {
|
|
52
|
+
[chainId: number]: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface LpToken {
|
|
56
|
+
active: boolean;
|
|
57
|
+
symbol: string;
|
|
58
|
+
address: {
|
|
59
|
+
[chainId: number]: string;
|
|
60
|
+
};
|
|
61
|
+
decimals: {
|
|
62
|
+
[chainId: number]: number;
|
|
63
|
+
};
|
|
64
|
+
liquidityDex: {
|
|
65
|
+
[chainId: number]: string;
|
|
66
|
+
};
|
|
33
67
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { ChainId } from "../enum/apeswaplists";
|
|
2
|
+
import { BondsDataResponse } from "./bonds";
|
|
3
|
+
export interface UserOwnedBillsData {
|
|
4
|
+
index: number;
|
|
5
|
+
userOwnedBills: UserBill[];
|
|
6
|
+
}
|
|
7
|
+
export interface ownedBillsWithNftData {
|
|
8
|
+
index: number;
|
|
9
|
+
userOwnedBillsNfts: any[];
|
|
10
|
+
}
|
|
11
|
+
export interface UserBill {
|
|
12
|
+
address: string;
|
|
13
|
+
id: string;
|
|
14
|
+
vesting: string;
|
|
15
|
+
payout: string;
|
|
16
|
+
totalPayout?: string;
|
|
17
|
+
truePricePaid: string;
|
|
18
|
+
lastBlockTimestamp: string;
|
|
19
|
+
pendingRewards: string;
|
|
20
|
+
billNftAddress: string;
|
|
21
|
+
nftData?: UserBillNftData;
|
|
22
|
+
bond: BondsDataResponse;
|
|
23
|
+
}
|
|
24
|
+
export interface UserBillNftData {
|
|
25
|
+
id: number;
|
|
26
|
+
data: {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
tokenId: number;
|
|
30
|
+
image: string;
|
|
31
|
+
attributes: {
|
|
32
|
+
trait_type: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[];
|
|
35
|
+
data: {
|
|
36
|
+
billContract: string;
|
|
37
|
+
billNftAddress: string;
|
|
38
|
+
payout: number;
|
|
39
|
+
deposit: number;
|
|
40
|
+
createTransactionHash: string;
|
|
41
|
+
billNftId: number;
|
|
42
|
+
expires: number;
|
|
43
|
+
vestingPeriodSeconds: number;
|
|
44
|
+
payoutToken: string;
|
|
45
|
+
principalToken: string;
|
|
46
|
+
type: string;
|
|
47
|
+
pairName: string;
|
|
48
|
+
payoutTokenData: {
|
|
49
|
+
address: string;
|
|
50
|
+
name: string;
|
|
51
|
+
symbol: string;
|
|
52
|
+
decimals: {
|
|
53
|
+
[chainId: number]: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
token0: {
|
|
57
|
+
address: string;
|
|
58
|
+
symbol: string;
|
|
59
|
+
name: string;
|
|
60
|
+
decimals: {
|
|
61
|
+
[chainId: number]: number;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
token1: {
|
|
65
|
+
address: string;
|
|
66
|
+
symbol: string;
|
|
67
|
+
name: string;
|
|
68
|
+
decimals: {
|
|
69
|
+
[chainId: number]: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
dollarValue: number;
|
|
73
|
+
chainId: ChainId;
|
|
74
|
+
blockNumber: number;
|
|
75
|
+
bondArtCollection: string;
|
|
76
|
+
bondPartner: string;
|
|
77
|
+
bondVersion: string;
|
|
78
|
+
createdAddressOwner: string;
|
|
79
|
+
createdAt: number;
|
|
80
|
+
payoutTokenPrice: string;
|
|
81
|
+
};
|
|
82
|
+
contractAddress: string;
|
|
83
|
+
chainId: ChainId;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
export interface UserBillNft {
|
|
87
|
+
image: string;
|
|
88
|
+
tokenId: string;
|
|
89
|
+
attributes: {
|
|
90
|
+
trait_type: string;
|
|
91
|
+
value: string;
|
|
92
|
+
}[];
|
|
93
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ethers } from 'ethers';
|
|
2
|
+
export function adjustDecimals(numStr) {
|
|
3
|
+
var parts = numStr.split('.');
|
|
4
|
+
if (parts.length < 2) {
|
|
5
|
+
// This means the number doesn't have any decimals
|
|
6
|
+
return numStr;
|
|
7
|
+
}
|
|
8
|
+
if (parts[1].length > 18) {
|
|
9
|
+
parts[1] = parts[1].slice(0, 18); // Take the first 18 decimals
|
|
10
|
+
return parts[0] + '.' + parts[1];
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
return numStr;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
var convertToTokenValue = function (numberString, decimals) {
|
|
17
|
+
if (isNaN(parseFloat(numberString))) {
|
|
18
|
+
console.error('Error: numberString to parse is not a number');
|
|
19
|
+
return ethers.utils.parseUnits('0', decimals);
|
|
20
|
+
}
|
|
21
|
+
var tokenValue = ethers.utils.parseUnits(adjustDecimals(numberString), decimals);
|
|
22
|
+
return tokenValue;
|
|
23
|
+
};
|
|
24
|
+
export default convertToTokenValue;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export var formatNumber = function (number, minPrecision, maxPrecision) {
|
|
2
|
+
if (minPrecision === void 0) { minPrecision = 2; }
|
|
3
|
+
if (maxPrecision === void 0) { maxPrecision = 2; }
|
|
4
|
+
var options = {
|
|
5
|
+
minimumFractionDigits: minPrecision,
|
|
6
|
+
maximumFractionDigits: maxPrecision,
|
|
7
|
+
};
|
|
8
|
+
return number.toLocaleString('en-US', options);
|
|
9
|
+
};
|
|
10
|
+
// Formats a number with SI (International System of Units) sufixes
|
|
11
|
+
export var formatNumberSI = function (number, digits) {
|
|
12
|
+
if (digits === void 0) { digits = 2; }
|
|
13
|
+
var lookupSI = [
|
|
14
|
+
{ value: 1, symbol: '' },
|
|
15
|
+
{ value: 1e6, symbol: 'M' },
|
|
16
|
+
{ value: 1e9, symbol: 'B' },
|
|
17
|
+
{ value: 1e12, symbol: 'T' },
|
|
18
|
+
];
|
|
19
|
+
var regEx = /\.0+$|(\.[0-9]*[1-9])0+$/;
|
|
20
|
+
var formatted;
|
|
21
|
+
if (number >= 1e18) {
|
|
22
|
+
formatted = '∞';
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
var i = void 0;
|
|
26
|
+
for (i = lookupSI.length - 1; i > 0; i--) {
|
|
27
|
+
if (number >= lookupSI[i].value) {
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
formatted = formatNumber(number / lookupSI[i].value, digits, digits).replace(regEx, '$1') + lookupSI[i].symbol;
|
|
32
|
+
}
|
|
33
|
+
return formatted;
|
|
34
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Currency, CurrencyAmount, Price } from '@ape.swap/sdk-core';
|
|
2
|
+
export declare const currencyAmountToPreciseFloat: (currencyAmount: CurrencyAmount<Currency> | undefined) => number | undefined;
|
|
3
|
+
export declare const priceToPreciseFloat: (price: Price<Currency, Currency> | undefined) => number | undefined;
|
|
4
|
+
interface FormatDollarArgs {
|
|
5
|
+
num: number | undefined | null;
|
|
6
|
+
isPrice?: boolean;
|
|
7
|
+
lessPreciseStablecoinValues?: boolean;
|
|
8
|
+
digits?: number;
|
|
9
|
+
round?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns a USD dollar or equivalent denominated numerical value formatted
|
|
13
|
+
* in human readable string for use in template.
|
|
14
|
+
*
|
|
15
|
+
* Adheres to guidelines for prices and other numbers defined here:
|
|
16
|
+
* https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0
|
|
17
|
+
* @param num numerical value denominated in USD or USD equivalent
|
|
18
|
+
* @param isPrice whether the amount represents a price or not
|
|
19
|
+
* @param lessPreciseStablecoinValues whether or not we should show less precise values for
|
|
20
|
+
* stablecoins (around 1$ in value always) for the sake of readability
|
|
21
|
+
* @param digits number of digits after the decimal for non-price amounts
|
|
22
|
+
* @param round whether or not to round up non-price amounts
|
|
23
|
+
*/
|
|
24
|
+
export declare const formatDollar: ({ num, isPrice, lessPreciseStablecoinValues, digits, round, }: FormatDollarArgs) => string;
|
|
25
|
+
export declare const formatValue: ({ num, digits, round }: any) => string;
|
|
26
|
+
/**
|
|
27
|
+
* Returns a numerical amount of any token formatted in human readable string for use in template.
|
|
28
|
+
*
|
|
29
|
+
* For transaction review numbers, such as token quantities, NFT price (token-denominated),
|
|
30
|
+
* network fees, transaction history items. Adheres to guidelines defined here:
|
|
31
|
+
* https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0
|
|
32
|
+
* @param num numerical value denominated in any token
|
|
33
|
+
* @param maxDigits the maximum number of digits that should be shown for the quantity
|
|
34
|
+
*/
|
|
35
|
+
export declare const formatTransactionAmount: (num: number | undefined | null, maxDigits?: number) => string;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import numbro from 'numbro';
|
|
2
|
+
// Convert [CurrencyAmount] to number with necessary precision for price formatting.
|
|
3
|
+
export var currencyAmountToPreciseFloat = function (currencyAmount) {
|
|
4
|
+
if (!currencyAmount)
|
|
5
|
+
return undefined;
|
|
6
|
+
var floatForLargerNumbers = parseFloat(currencyAmount.toExact());
|
|
7
|
+
if (floatForLargerNumbers < 0.1) {
|
|
8
|
+
return parseFloat(currencyAmount.toSignificant(6));
|
|
9
|
+
}
|
|
10
|
+
return floatForLargerNumbers;
|
|
11
|
+
};
|
|
12
|
+
// Convert [Price] to number with necessary precision for price formatting.
|
|
13
|
+
export var priceToPreciseFloat = function (price) {
|
|
14
|
+
if (!price)
|
|
15
|
+
return undefined;
|
|
16
|
+
var floatForLargerNumbers = parseFloat(price.toFixed(9));
|
|
17
|
+
if (floatForLargerNumbers < 0.1) {
|
|
18
|
+
return parseFloat(price.toSignificant(6));
|
|
19
|
+
}
|
|
20
|
+
return floatForLargerNumbers;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Returns a USD dollar or equivalent denominated numerical value formatted
|
|
24
|
+
* in human readable string for use in template.
|
|
25
|
+
*
|
|
26
|
+
* Adheres to guidelines for prices and other numbers defined here:
|
|
27
|
+
* https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0
|
|
28
|
+
* @param num numerical value denominated in USD or USD equivalent
|
|
29
|
+
* @param isPrice whether the amount represents a price or not
|
|
30
|
+
* @param lessPreciseStablecoinValues whether or not we should show less precise values for
|
|
31
|
+
* stablecoins (around 1$ in value always) for the sake of readability
|
|
32
|
+
* @param digits number of digits after the decimal for non-price amounts
|
|
33
|
+
* @param round whether or not to round up non-price amounts
|
|
34
|
+
*/
|
|
35
|
+
export var formatDollar = function (_a) {
|
|
36
|
+
var num = _a.num, _b = _a.isPrice, isPrice = _b === void 0 ? false : _b, _c = _a.lessPreciseStablecoinValues, lessPreciseStablecoinValues = _c === void 0 ? false : _c, _d = _a.digits, digits = _d === void 0 ? 2 : _d, _e = _a.round, round = _e === void 0 ? true : _e;
|
|
37
|
+
// For USD dollar denominated prices.
|
|
38
|
+
if (isPrice) {
|
|
39
|
+
if (num === 0)
|
|
40
|
+
return '$0.00';
|
|
41
|
+
if (!num)
|
|
42
|
+
return '-';
|
|
43
|
+
if (num < 0.000001) {
|
|
44
|
+
return "$".concat(num.toExponential(2));
|
|
45
|
+
}
|
|
46
|
+
if ((num >= 0.000001 && num < 0.1) || num > 1000000) {
|
|
47
|
+
return "$".concat(Number(num).toPrecision(3));
|
|
48
|
+
}
|
|
49
|
+
// We only show 2 decimal places in explore table for stablecoin value ranges
|
|
50
|
+
// for the sake of readability (as opposed to the usual 3 elsewhere).
|
|
51
|
+
if (num >= 0.1 && num < (lessPreciseStablecoinValues ? 0.9995 : 1.05)) {
|
|
52
|
+
return "$".concat(num.toFixed(3));
|
|
53
|
+
}
|
|
54
|
+
return "$".concat(Number(num.toFixed(2)).toLocaleString('en-US', { minimumFractionDigits: 2 }));
|
|
55
|
+
}
|
|
56
|
+
// For volume dollar amounts, like market cap, total value locked, etc.
|
|
57
|
+
else {
|
|
58
|
+
if (num === 0)
|
|
59
|
+
return '$0.00';
|
|
60
|
+
if (!num)
|
|
61
|
+
return '-';
|
|
62
|
+
if (num < 0.000001) {
|
|
63
|
+
return '$<0.000001';
|
|
64
|
+
}
|
|
65
|
+
if (num >= 0.000001 && num < 0.1) {
|
|
66
|
+
return "$".concat(Number(num).toPrecision(3));
|
|
67
|
+
}
|
|
68
|
+
if (num >= 0.1 && num < 1.05) {
|
|
69
|
+
return "$".concat(num.toFixed(3));
|
|
70
|
+
}
|
|
71
|
+
return numbro(num)
|
|
72
|
+
.formatCurrency({
|
|
73
|
+
average: round,
|
|
74
|
+
mantissa: num > 1000 ? 2 : digits,
|
|
75
|
+
abbreviations: {
|
|
76
|
+
million: 'M',
|
|
77
|
+
billion: 'B',
|
|
78
|
+
},
|
|
79
|
+
})
|
|
80
|
+
.toUpperCase();
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
export var formatValue = function (_a) {
|
|
84
|
+
var num = _a.num, _b = _a.digits, digits = _b === void 0 ? 2 : _b, _c = _a.round, round = _c === void 0 ? true : _c;
|
|
85
|
+
if (num === 0)
|
|
86
|
+
return '0.00';
|
|
87
|
+
if (!num)
|
|
88
|
+
return '-';
|
|
89
|
+
if (num < 0.000001) {
|
|
90
|
+
return '<0.000001';
|
|
91
|
+
}
|
|
92
|
+
if (num >= 0.000001 && num < 0.1) {
|
|
93
|
+
return "".concat(Number(num).toPrecision(3));
|
|
94
|
+
}
|
|
95
|
+
if (num >= 0.1 && num < 1.05) {
|
|
96
|
+
return "".concat(num.toFixed(3));
|
|
97
|
+
}
|
|
98
|
+
return numbro(num)
|
|
99
|
+
.format({
|
|
100
|
+
average: round,
|
|
101
|
+
mantissa: num > 1000 ? 2 : digits,
|
|
102
|
+
abbreviations: {
|
|
103
|
+
million: 'M',
|
|
104
|
+
billion: 'B',
|
|
105
|
+
},
|
|
106
|
+
})
|
|
107
|
+
.toUpperCase();
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Returns a numerical amount of any token formatted in human readable string for use in template.
|
|
111
|
+
*
|
|
112
|
+
* For transaction review numbers, such as token quantities, NFT price (token-denominated),
|
|
113
|
+
* network fees, transaction history items. Adheres to guidelines defined here:
|
|
114
|
+
* https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0
|
|
115
|
+
* @param num numerical value denominated in any token
|
|
116
|
+
* @param maxDigits the maximum number of digits that should be shown for the quantity
|
|
117
|
+
*/
|
|
118
|
+
export var formatTransactionAmount = function (num, maxDigits) {
|
|
119
|
+
if (maxDigits === void 0) { maxDigits = 9; }
|
|
120
|
+
if (num === 0)
|
|
121
|
+
return '0.00';
|
|
122
|
+
if (!num)
|
|
123
|
+
return '';
|
|
124
|
+
if (num < 0.00001) {
|
|
125
|
+
return '<0.00001';
|
|
126
|
+
}
|
|
127
|
+
if (num >= 0.00001 && num < 1) {
|
|
128
|
+
return "".concat(Number(num.toFixed(5)).toLocaleString('en-US', {
|
|
129
|
+
minimumFractionDigits: 2,
|
|
130
|
+
maximumFractionDigits: 5,
|
|
131
|
+
}));
|
|
132
|
+
}
|
|
133
|
+
if (num >= 1 && num < 10000) {
|
|
134
|
+
return "".concat(Number(num.toPrecision(6)).toLocaleString('en-US', {
|
|
135
|
+
minimumFractionDigits: 2,
|
|
136
|
+
maximumFractionDigits: 6,
|
|
137
|
+
}));
|
|
138
|
+
}
|
|
139
|
+
if (num >= 10000 && num < 1000000) {
|
|
140
|
+
return "".concat(Number(num.toFixed(2)).toLocaleString('en-US', { minimumFractionDigits: 2 }));
|
|
141
|
+
}
|
|
142
|
+
// For very large numbers, switch to scientific notation and show as much precision
|
|
143
|
+
// as permissible by maxDigits param.
|
|
144
|
+
if (num >= Math.pow(10, maxDigits - 1)) {
|
|
145
|
+
return "".concat(num.toExponential(maxDigits - 3));
|
|
146
|
+
}
|
|
147
|
+
return "".concat(Number(num.toFixed(2)).toLocaleString('en-US', { minimumFractionDigits: 2 }));
|
|
148
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
export declare const getBalanceNumber: (balance: BigNumber, decimals?: number) => number;
|
|
3
|
+
export declare const getFullDisplayBalance: (balance: BigNumber, decimals?: number) => string;
|
|
4
|
+
export declare const getBNWithDecimals: (balance: BigNumber | string | undefined, decimals?: number) => undefined | BigNumber;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
export var getBalanceNumber = function (balance, decimals) {
|
|
3
|
+
if (decimals === void 0) { decimals = 18; }
|
|
4
|
+
// use with caution. JS can only safely represent up to 15-17 digits of precision
|
|
5
|
+
// so you will lose precision in decimals and really big numbers, for those cases use getBNWithDecimals
|
|
6
|
+
var displayBalance = new BigNumber(balance).dividedBy(new BigNumber(10).pow(decimals));
|
|
7
|
+
return displayBalance.toNumber();
|
|
8
|
+
};
|
|
9
|
+
export var getFullDisplayBalance = function (balance, decimals) {
|
|
10
|
+
if (decimals === void 0) { decimals = 18; }
|
|
11
|
+
return balance.dividedBy(new BigNumber(10).pow(decimals)).toFixed();
|
|
12
|
+
};
|
|
13
|
+
export var getBNWithDecimals = function (balance, decimals) {
|
|
14
|
+
if (decimals === void 0) { decimals = 18; }
|
|
15
|
+
if (!balance)
|
|
16
|
+
return undefined;
|
|
17
|
+
return new BigNumber(balance).dividedBy(new BigNumber(10).pow(decimals));
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Contract } from '@ethersproject/contracts';
|
|
2
|
+
import type { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
|
+
import { ChainId } from '../config/constants/chains';
|
|
4
|
+
export declare function isAddress(value: any): string | false;
|
|
5
|
+
export declare function getContract(address: string, ABI: any, provider: JsonRpcProvider, account?: string): Contract;
|
|
6
|
+
export declare function isSupportedChain(chainId: number | null | undefined): chainId is ChainId;
|
|
7
|
+
export declare function getEtherscanLink(data: string | number, type: 'transaction' | 'token' | 'address' | 'block' | 'countdown', chainId: ChainId): string;
|
|
8
|
+
/**
|
|
9
|
+
* Prompt the user to add a custom token to metamask
|
|
10
|
+
* @param tokenAddress
|
|
11
|
+
* @param tokenSymbol
|
|
12
|
+
* @param tokenDecimals
|
|
13
|
+
* @param tokenImage
|
|
14
|
+
* @returns {boolean} true if the token has been added, false otherwise
|
|
15
|
+
*/
|
|
16
|
+
export declare const registerToken: (tokenAddress: string, tokenSymbol: string | undefined, tokenDecimals: number, tokenImage: string | undefined) => Promise<any>;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { getAddress } from '@ethersproject/address';
|
|
38
|
+
import { AddressZero } from '@ethersproject/constants';
|
|
39
|
+
import { Contract } from '@ethersproject/contracts';
|
|
40
|
+
import { BLOCK_EXPLORER, ChainId } from '../config/constants/chains';
|
|
41
|
+
// returns the checksummed address if the address is valid, otherwise returns false
|
|
42
|
+
export function isAddress(value) {
|
|
43
|
+
try {
|
|
44
|
+
// Alphabetical letters must be made lowercase for getAddress to work.
|
|
45
|
+
// See documentation here: https://docs.ethers.io/v5/api/utils/address/
|
|
46
|
+
return getAddress(value.toLowerCase());
|
|
47
|
+
}
|
|
48
|
+
catch (_a) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
// account is not optional
|
|
53
|
+
function getSigner(provider, account) {
|
|
54
|
+
return provider.getSigner(account).connectUnchecked();
|
|
55
|
+
}
|
|
56
|
+
// account is optional
|
|
57
|
+
function getProviderOrSigner(provider, account) {
|
|
58
|
+
return account ? getSigner(provider, account) : provider;
|
|
59
|
+
}
|
|
60
|
+
// account is optional
|
|
61
|
+
export function getContract(address, ABI, provider, account) {
|
|
62
|
+
if (!isAddress(address) || address === AddressZero) {
|
|
63
|
+
throw Error("Invalid 'address' parameter '".concat(address, "'."));
|
|
64
|
+
}
|
|
65
|
+
return new Contract(address, ABI, getProviderOrSigner(provider, account));
|
|
66
|
+
}
|
|
67
|
+
export function isSupportedChain(chainId) {
|
|
68
|
+
return !!chainId && !!ChainId[chainId];
|
|
69
|
+
}
|
|
70
|
+
export function getEtherscanLink(data, type, chainId) {
|
|
71
|
+
switch (type) {
|
|
72
|
+
case 'transaction': {
|
|
73
|
+
return "".concat(BLOCK_EXPLORER[chainId], "/tx/").concat(data);
|
|
74
|
+
}
|
|
75
|
+
case 'token': {
|
|
76
|
+
return "".concat(BLOCK_EXPLORER[chainId], "/token/").concat(data);
|
|
77
|
+
}
|
|
78
|
+
case 'block': {
|
|
79
|
+
return "".concat(BLOCK_EXPLORER[chainId], "/block/").concat(data);
|
|
80
|
+
}
|
|
81
|
+
case 'countdown': {
|
|
82
|
+
return "".concat(BLOCK_EXPLORER[chainId], "/block/countdown/").concat(data);
|
|
83
|
+
}
|
|
84
|
+
default: {
|
|
85
|
+
return "".concat(BLOCK_EXPLORER[chainId], "/address/").concat(data);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Prompt the user to add a custom token to metamask
|
|
91
|
+
* @param tokenAddress
|
|
92
|
+
* @param tokenSymbol
|
|
93
|
+
* @param tokenDecimals
|
|
94
|
+
* @param tokenImage
|
|
95
|
+
* @returns {boolean} true if the token has been added, false otherwise
|
|
96
|
+
*/
|
|
97
|
+
export var registerToken = function (tokenAddress, tokenSymbol, tokenDecimals, tokenImage) { return __awaiter(void 0, void 0, void 0, function () {
|
|
98
|
+
var tokenAdded, _a;
|
|
99
|
+
var _b;
|
|
100
|
+
return __generator(this, function (_c) {
|
|
101
|
+
switch (_c.label) {
|
|
102
|
+
case 0:
|
|
103
|
+
if (!((_b = window === null || window === void 0 ? void 0 : window.ethereum) === null || _b === void 0 ? void 0 : _b.request)) return [3 /*break*/, 2];
|
|
104
|
+
return [4 /*yield*/, window.ethereum.request({
|
|
105
|
+
method: 'wallet_watchAsset',
|
|
106
|
+
params: {
|
|
107
|
+
type: 'ERC20',
|
|
108
|
+
options: {
|
|
109
|
+
address: tokenAddress,
|
|
110
|
+
symbol: tokenSymbol,
|
|
111
|
+
decimals: tokenDecimals,
|
|
112
|
+
image: tokenImage,
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
})];
|
|
116
|
+
case 1:
|
|
117
|
+
_a = _c.sent();
|
|
118
|
+
return [3 /*break*/, 3];
|
|
119
|
+
case 2:
|
|
120
|
+
_a = null;
|
|
121
|
+
_c.label = 3;
|
|
122
|
+
case 3:
|
|
123
|
+
tokenAdded = _a;
|
|
124
|
+
return [2 /*return*/, tokenAdded];
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
}); };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export var getLocalStorage = function (key) {
|
|
2
|
+
if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.self) === (window === null || window === void 0 ? void 0 : window.top)) {
|
|
3
|
+
// Not in an iframe, safe to access localStorage
|
|
4
|
+
try {
|
|
5
|
+
var item = localStorage.getItem(key);
|
|
6
|
+
return item ? JSON.parse(item) : null;
|
|
7
|
+
}
|
|
8
|
+
catch (error) {
|
|
9
|
+
console.error('Failed to get value from localStorage:', error);
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
// Inside an iframe, don't access localStorage
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export var setLocalStorage = function (key, value) {
|
|
19
|
+
if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.self) === (window === null || window === void 0 ? void 0 : window.top)) {
|
|
20
|
+
// Not in an iframe, safe to access localStorage
|
|
21
|
+
try {
|
|
22
|
+
localStorage.setItem(key, JSON.stringify(value));
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
console.error('Failed to set value in localStorage:', error);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
// Inside an iframe, don't access localStorage
|
|
30
|
+
console.log('Running inside an iframe');
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export var removeLocalStorage = function (key) {
|
|
34
|
+
if (window.self === window.top) {
|
|
35
|
+
// Not in an iframe, safe to access localStorage
|
|
36
|
+
try {
|
|
37
|
+
localStorage.removeItem(key);
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
console.error('Failed to remove value from localStorage:', error);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
// Inside an iframe, don't access localStorage
|
|
45
|
+
console.log('Running inside an iframe');
|
|
46
|
+
}
|
|
47
|
+
};
|