@ape.swap/bonds-sdk 1.0.77 → 1.0.78-2.test.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BondMenu/BondMenu.d.ts +11 -0
- package/dist/components/BondMenu/BondMenu.js +39 -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 +8 -0
- package/dist/components/BondRows/BondRow.js +80 -0
- package/dist/components/BondRows/BondRowHeader.d.ts +15 -0
- package/dist/components/BondRows/BondRowHeader.js +11 -0
- package/dist/components/BondRows/BondRowsByChain.d.ts +8 -0
- package/dist/components/BondRows/BondRowsByChain.js +12 -0
- package/dist/components/BondRows/BondRowsWithTitle.d.ts +8 -0
- package/dist/components/BondRows/BondRowsWithTitle.js +19 -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 +7 -0
- package/dist/components/ProgressBar/ProgressBar.js +9 -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 +8 -0
- package/dist/components/TokenInfoAndName/index.js +61 -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/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 +12 -0
- package/dist/views/BondModal/BondModal.js +276 -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 +16 -0
- package/dist/views/Bonds/Bonds.js +173 -0
- package/dist/views/YourBonds/YourBonds.d.ts +14 -0
- package/dist/views/YourBonds/YourBonds.js +275 -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 +9 -0
- package/dist/views/YourBondsModal/YourBondsModal.js +172 -0
- package/dist/views/YourBondsModal/styles.d.ts +2 -0
- package/dist/views/YourBondsModal/styles.js +12 -0
- package/package.json +37 -12
- 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
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { Interface } from '@ethersproject/abi';
|
|
38
|
+
import multicallV2Abi from '../config/abi/multicallv2.json';
|
|
39
|
+
import { ethers } from 'ethers';
|
|
40
|
+
import { chunk, flatten } from 'lodash';
|
|
41
|
+
import { PUBLIC_RPC_URLS } from '../config/constants/networks';
|
|
42
|
+
import { MULTICALL_V2 } from '../config/constants/addresses';
|
|
43
|
+
// This is the legacy multicall
|
|
44
|
+
// Try to use multicall hooks
|
|
45
|
+
var multicall = function (chainId, abi, calls, batch, batchSize) { return __awaiter(void 0, void 0, void 0, function () {
|
|
46
|
+
var multicallAddress, provider, multi_1, itf_1, calldata, chunkedCalls, chunkedCallNames_1, chunkedData, resolveCall, flattenCalls, returnData, e_1;
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0:
|
|
50
|
+
_a.trys.push([0, 5, , 6]);
|
|
51
|
+
multicallAddress = MULTICALL_V2[chainId];
|
|
52
|
+
provider = new ethers.providers.JsonRpcProvider(PUBLIC_RPC_URLS[chainId][0], chainId);
|
|
53
|
+
multi_1 = new ethers.Contract(multicallAddress, multicallV2Abi, provider);
|
|
54
|
+
itf_1 = new Interface(abi);
|
|
55
|
+
calldata = calls.map(function (call) { return [call.address.toLowerCase(), itf_1.encodeFunctionData(call.name, call.params)]; });
|
|
56
|
+
if (!batch) return [3 /*break*/, 2];
|
|
57
|
+
chunkedCalls = chunk(calldata, batchSize);
|
|
58
|
+
chunkedCallNames_1 = chunk(calls, batchSize);
|
|
59
|
+
chunkedData = chunkedCalls.flatMap(function (chunkedCallSet, i) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
+
var returnData;
|
|
61
|
+
return __generator(this, function (_a) {
|
|
62
|
+
switch (_a.label) {
|
|
63
|
+
case 0: return [4 /*yield*/, multi_1.aggregate(chunkedCallSet)];
|
|
64
|
+
case 1:
|
|
65
|
+
returnData = (_a.sent()).returnData;
|
|
66
|
+
return [2 /*return*/, returnData.map(function (call, j) { return itf_1.decodeFunctionResult(chunkedCallNames_1[i][j].name, call); })];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}); });
|
|
70
|
+
return [4 /*yield*/, Promise.all(chunkedData)];
|
|
71
|
+
case 1:
|
|
72
|
+
resolveCall = _a.sent();
|
|
73
|
+
flattenCalls = flatten(resolveCall);
|
|
74
|
+
return [2 /*return*/, flattenCalls];
|
|
75
|
+
case 2: return [4 /*yield*/, multi_1.aggregate(calldata)];
|
|
76
|
+
case 3:
|
|
77
|
+
returnData = (_a.sent()).returnData;
|
|
78
|
+
return [2 /*return*/, returnData.map(function (call, i) { return itf_1.decodeFunctionResult(calls[i].name, call); })];
|
|
79
|
+
case 4: return [3 /*break*/, 6];
|
|
80
|
+
case 5:
|
|
81
|
+
e_1 = _a.sent();
|
|
82
|
+
console.error(e_1);
|
|
83
|
+
console.error(chainId);
|
|
84
|
+
console.error(calls);
|
|
85
|
+
return [3 /*break*/, 6];
|
|
86
|
+
case 6: return [2 /*return*/];
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
}); };
|
|
90
|
+
export default multicall;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rounds a number to precision amount of signifant numbers
|
|
3
|
+
* @param n the number
|
|
4
|
+
* @param precision how many significant numbers to show
|
|
5
|
+
* @returns @number
|
|
6
|
+
*/
|
|
7
|
+
export declare const getFirstNonZeroDigits: (numberToParse: number, precision?: number) => string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rounds a number to precision amount of signifant numbers
|
|
3
|
+
* @param n the number
|
|
4
|
+
* @param precision how many significant numbers to show
|
|
5
|
+
* @returns @number
|
|
6
|
+
*/
|
|
7
|
+
export var getFirstNonZeroDigits = function (numberToParse, precision) {
|
|
8
|
+
if (precision === void 0) { precision = 3; }
|
|
9
|
+
var n = parseFloat(numberToParse.toFixed(18));
|
|
10
|
+
var amountToShow = precision - 1;
|
|
11
|
+
if (n !== 0)
|
|
12
|
+
amountToShow -= Math.floor(Math.log(n) / Math.log(10));
|
|
13
|
+
return n.toFixed(amountToShow < 0 ? 0 : amountToShow);
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
function track(_a) {
|
|
13
|
+
var _b;
|
|
14
|
+
var event = _a.event, chain = _a.chain, data = _a.data, value = _a.value;
|
|
15
|
+
(_b = window.dataLayer) === null || _b === void 0 ? void 0 : _b.push(__assign({ event: event, value: value, chain: chain }, data));
|
|
16
|
+
}
|
|
17
|
+
export default track;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** @jsxImportSource theme-ui */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface BondModalProps {
|
|
4
|
+
account: string;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
bondAddress: string | null;
|
|
9
|
+
accountChainId: number;
|
|
10
|
+
}
|
|
11
|
+
declare const BondModal: React.FC<BondModalProps>;
|
|
12
|
+
export default BondModal;
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
38
|
+
/** @jsxImportSource theme-ui */
|
|
39
|
+
import React, { useEffect, useState } from 'react';
|
|
40
|
+
import { Flex, Input } from 'theme-ui';
|
|
41
|
+
import getTimePeriods from '../../utils/getTimePeriods';
|
|
42
|
+
import axios from 'axios';
|
|
43
|
+
import { BigNumber } from 'bignumber.js';
|
|
44
|
+
import { getFirstNonZeroDigits } from '../../utils/roundNumber';
|
|
45
|
+
import { isNumber } from '../../utils/numbers';
|
|
46
|
+
import { TooltipBubble, Button, Svg, ListTag, Modal } from '../../components/uikit-sdk';
|
|
47
|
+
import { TooltipText } from '../../enum/tooltips';
|
|
48
|
+
import { ethers } from 'ethers';
|
|
49
|
+
import convertToTokenValue, { adjustDecimals } from "../../utils/convertToTokenValue";
|
|
50
|
+
import TokenImage from '../../components/uikit-sdk/TokenImage';
|
|
51
|
+
import BOND_ABI from '../../config/abi/bond.json';
|
|
52
|
+
import ERC_20_ABI from '../../config/abi/erc20.json';
|
|
53
|
+
import { NETWORK_ICONS, NETWORK_LABEL } from '../../config/constants/chains';
|
|
54
|
+
import { formatUSDNumber, getPremiumColor, premium, youGet, youGetUSD, youSpend, youSpendUSD } from './helper';
|
|
55
|
+
import { useChainId, useSwitchChain, useWaitForTransactionReceipt, useWriteContract } from "wagmi";
|
|
56
|
+
import { PUBLIC_RPC_URLS } from "../../config/constants/networks";
|
|
57
|
+
import useModal from "../../hooks/useModal";
|
|
58
|
+
var BondModal = function (_a) {
|
|
59
|
+
var account = _a.account, isActive = _a.isActive, isOpen = _a.isOpen, accountChainId = _a.accountChainId, onClose = _a.onClose, bondAddress = _a.bondAddress;
|
|
60
|
+
if (!isOpen)
|
|
61
|
+
return null;
|
|
62
|
+
var chainId = useChainId();
|
|
63
|
+
var _b = useSwitchChain(), chains = _b.chains, switchChain = _b.switchChain;
|
|
64
|
+
var _c = useState([]), bondData = _c[0], setBondData = _c[1];
|
|
65
|
+
var _d = useWriteContract(), hash = _d.data, isPending = _d.isPending, writeContract = _d.writeContract, writeContractAsync = _d.writeContractAsync;
|
|
66
|
+
var _e = useWaitForTransactionReceipt({
|
|
67
|
+
confirmations: 4,
|
|
68
|
+
chainId: chainId !== null && chainId !== void 0 ? chainId : accountChainId,
|
|
69
|
+
hash: hash,
|
|
70
|
+
}), isConfirming = _e.isLoading, isConfirmed = _e.isSuccess;
|
|
71
|
+
var _f = useState(null), approveTx = _f[0], setApproveTx = _f[1];
|
|
72
|
+
var _g = useState(null), toastMessage = _g[0], setToastMessage = _g[1];
|
|
73
|
+
var _h = useState(null), buyTx = _h[0], setBuyTx = _h[1];
|
|
74
|
+
var _j = useState(null), tokenBalance = _j[0], setTokenBalance = _j[1];
|
|
75
|
+
var _k = useState(null), tokenDecimals = _k[0], setTokenDecimals = _k[1];
|
|
76
|
+
var _l = useState(''), inputValue = _l[0], setInputValue = _l[1];
|
|
77
|
+
var handleInputChange = function (event) {
|
|
78
|
+
setInputValue(event.target.value);
|
|
79
|
+
};
|
|
80
|
+
var handleBuy = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
81
|
+
var billAddress, decimals, maxPrice, rawAmount, amount, tx, data, response, error_1;
|
|
82
|
+
return __generator(this, function (_a) {
|
|
83
|
+
switch (_a.label) {
|
|
84
|
+
case 0:
|
|
85
|
+
billAddress = bondData[0].billAddress;
|
|
86
|
+
decimals = tokenDecimals !== null && tokenDecimals !== void 0 ? tokenDecimals : 18;
|
|
87
|
+
_a.label = 1;
|
|
88
|
+
case 1:
|
|
89
|
+
_a.trys.push([1, 5, , 6]);
|
|
90
|
+
maxPrice = new BigNumber(bondData[0].trueBillPrice).times(102).div(100).toFixed(0);
|
|
91
|
+
rawAmount = adjustDecimals(inputValue);
|
|
92
|
+
amount = new BigNumber(rawAmount).times(new BigNumber(10).pow(decimals !== null && decimals !== void 0 ? decimals : 18)).toString();
|
|
93
|
+
return [4 /*yield*/, writeContractAsync({
|
|
94
|
+
address: billAddress,
|
|
95
|
+
abi: BOND_ABI,
|
|
96
|
+
functionName: 'deposit',
|
|
97
|
+
args: [amount, maxPrice, account],
|
|
98
|
+
})];
|
|
99
|
+
case 2:
|
|
100
|
+
tx = _a.sent();
|
|
101
|
+
if (!tx) return [3 /*break*/, 4];
|
|
102
|
+
setBuyTx(tx);
|
|
103
|
+
data = {
|
|
104
|
+
chainId: chainId,
|
|
105
|
+
transactionHash: tx,
|
|
106
|
+
referenceId: 'cgpt-sdk',
|
|
107
|
+
billContract: billAddress
|
|
108
|
+
};
|
|
109
|
+
return [4 /*yield*/, axios.post("https://api-v2.apeswap.finance/bills/widget", data)];
|
|
110
|
+
case 3:
|
|
111
|
+
response = _a.sent();
|
|
112
|
+
console.log(response);
|
|
113
|
+
_a.label = 4;
|
|
114
|
+
case 4: return [3 /*break*/, 6];
|
|
115
|
+
case 5:
|
|
116
|
+
error_1 = _a.sent();
|
|
117
|
+
console.error('Buy error', error_1);
|
|
118
|
+
return [3 /*break*/, 6];
|
|
119
|
+
case 6: return [2 /*return*/];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}); };
|
|
123
|
+
//You approve the token, not the contract (this code will have to be updated for zap)
|
|
124
|
+
var handleApprove = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
125
|
+
var tokenAddress, decimals, amount, tx, error_2;
|
|
126
|
+
return __generator(this, function (_a) {
|
|
127
|
+
switch (_a.label) {
|
|
128
|
+
case 0:
|
|
129
|
+
tokenAddress = bondData[0].lpToken.address[chainId];
|
|
130
|
+
decimals = tokenDecimals !== null && tokenDecimals !== void 0 ? tokenDecimals : 18;
|
|
131
|
+
_a.label = 1;
|
|
132
|
+
case 1:
|
|
133
|
+
_a.trys.push([1, 3, , 4]);
|
|
134
|
+
amount = convertToTokenValue(inputValue, decimals);
|
|
135
|
+
return [4 /*yield*/, writeContractAsync({
|
|
136
|
+
address: tokenAddress,
|
|
137
|
+
abi: ERC_20_ABI,
|
|
138
|
+
functionName: 'approve',
|
|
139
|
+
args: [bondData[0].billAddress, amount]
|
|
140
|
+
})];
|
|
141
|
+
case 2:
|
|
142
|
+
tx = _a.sent();
|
|
143
|
+
if (tx) {
|
|
144
|
+
setApproveTx(tx);
|
|
145
|
+
}
|
|
146
|
+
return [3 /*break*/, 4];
|
|
147
|
+
case 3:
|
|
148
|
+
error_2 = _a.sent();
|
|
149
|
+
console.error('Approval failed:', error_2);
|
|
150
|
+
return [3 /*break*/, 4];
|
|
151
|
+
case 4: return [2 /*return*/];
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}); };
|
|
155
|
+
// Confirmation message
|
|
156
|
+
useEffect(function () {
|
|
157
|
+
if (isConfirmed) {
|
|
158
|
+
setToastMessage("Transaction Complete.");
|
|
159
|
+
setTimeout(function () { return setToastMessage(null); }, 10000);
|
|
160
|
+
}
|
|
161
|
+
}, [approveTx, buyTx, isConfirmed]);
|
|
162
|
+
useEffect(function () {
|
|
163
|
+
if (isActive && account && bondData.length > 0) {
|
|
164
|
+
getTokenBalance(chainId, bondData[0].lpToken.address[chainId], account).then(function (_a) {
|
|
165
|
+
var roundedBalance = _a.roundedBalance, decimals = _a.decimals;
|
|
166
|
+
setTokenBalance(roundedBalance);
|
|
167
|
+
setTokenDecimals(decimals);
|
|
168
|
+
}).catch(function (error) {
|
|
169
|
+
console.error('Error fetching token balance', error);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
}, [isActive, account, bondData]);
|
|
173
|
+
var getTokenBalance = function (chainId, tokenAddress, walletAddress) { return __awaiter(void 0, void 0, void 0, function () {
|
|
174
|
+
var urls, provider, contract, decimals, balance, balanceInEther, roundedBalance, error_3;
|
|
175
|
+
return __generator(this, function (_a) {
|
|
176
|
+
switch (_a.label) {
|
|
177
|
+
case 0:
|
|
178
|
+
_a.trys.push([0, 3, , 4]);
|
|
179
|
+
urls = PUBLIC_RPC_URLS;
|
|
180
|
+
provider = new ethers.providers.JsonRpcProvider(urls[chainId][0]);
|
|
181
|
+
if (!provider) {
|
|
182
|
+
throw new Error("No provider found for chainId: ".concat(chainId));
|
|
183
|
+
}
|
|
184
|
+
contract = new ethers.Contract(tokenAddress, ERC_20_ABI, provider);
|
|
185
|
+
return [4 /*yield*/, contract.decimals()];
|
|
186
|
+
case 1:
|
|
187
|
+
decimals = _a.sent();
|
|
188
|
+
return [4 /*yield*/, contract.balanceOf(walletAddress)];
|
|
189
|
+
case 2:
|
|
190
|
+
balance = _a.sent();
|
|
191
|
+
balanceInEther = ethers.utils.formatUnits(balance, decimals);
|
|
192
|
+
roundedBalance = Number(balanceInEther).toFixed(4).toString();
|
|
193
|
+
return [2 /*return*/, { roundedBalance: roundedBalance, decimals: decimals }];
|
|
194
|
+
case 3:
|
|
195
|
+
error_3 = _a.sent();
|
|
196
|
+
console.error('Error fetching token balance', error_3);
|
|
197
|
+
return [2 /*return*/, { roundedBalance: '0', decimals: 0 }];
|
|
198
|
+
case 4: return [2 /*return*/];
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}); };
|
|
202
|
+
// Fetch data
|
|
203
|
+
useEffect(function () {
|
|
204
|
+
axios.get('https://realtime-api.ape.bond/bonds').then(function (response) {
|
|
205
|
+
var bond = response.data.bonds.filter(function (x) {
|
|
206
|
+
return x.billAddress.toLowerCase() === (bondAddress === null || bondAddress === void 0 ? void 0 : bondAddress.toLowerCase());
|
|
207
|
+
});
|
|
208
|
+
setBondData(bond);
|
|
209
|
+
});
|
|
210
|
+
}, [bondAddress]);
|
|
211
|
+
// Functions for calculations
|
|
212
|
+
var getDiscountColor = function (discount) {
|
|
213
|
+
return discount < 0 ? 'discount-negative' : 'discount-positive';
|
|
214
|
+
};
|
|
215
|
+
var discountEarnTokenPrice = function (bond) {
|
|
216
|
+
var _a, _b;
|
|
217
|
+
var earnTokenPrice = parseFloat((_a = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0');
|
|
218
|
+
return getFirstNonZeroDigits(earnTokenPrice - earnTokenPrice * (((_b = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _b !== void 0 ? _b : 0) / 100));
|
|
219
|
+
};
|
|
220
|
+
var earnTokenPrice = function (bond) {
|
|
221
|
+
var _a;
|
|
222
|
+
return getFirstNonZeroDigits(parseFloat((_a = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0'));
|
|
223
|
+
};
|
|
224
|
+
var vestingTime = function (vestingTerm) { return getTimePeriods(vestingTerm !== null && vestingTerm !== void 0 ? vestingTerm : 0, true); };
|
|
225
|
+
var maxBuy = function (bond) {
|
|
226
|
+
var _a, _b, _c, _d;
|
|
227
|
+
var available = new BigNumber((_a = bond === null || bond === void 0 ? void 0 : bond.tokensRemaining) !== null && _a !== void 0 ? _a : '0');
|
|
228
|
+
var threshold = 5;
|
|
229
|
+
var thresholdToShow = new BigNumber(threshold).div((_b = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _b !== void 0 ? _b : 0);
|
|
230
|
+
var safeAvailable = available.minus(thresholdToShow);
|
|
231
|
+
var singlePurchaseLimit = new BigNumber((_c = bond === null || bond === void 0 ? void 0 : bond.maxPayout) !== null && _c !== void 0 ? _c : 0).div(new BigNumber(10).pow((_d = bond === null || bond === void 0 ? void 0 : bond.earnToken.decimals[chainId]) !== null && _d !== void 0 ? _d : 18));
|
|
232
|
+
return !available ? 0 : (singlePurchaseLimit.lt(safeAvailable) ? singlePurchaseLimit : safeAvailable);
|
|
233
|
+
};
|
|
234
|
+
var onAsd = useModal(_jsx(Modal, { sx: { zIndex: 5000 }, children: _jsx(_Fragment, { children: "asd!" }) }))[0];
|
|
235
|
+
// const ref = React.useRef<boolean>(false);
|
|
236
|
+
//
|
|
237
|
+
// useEffect(() => {
|
|
238
|
+
// if (!ref.current) {
|
|
239
|
+
// console.log('open modal!!')
|
|
240
|
+
// onAsd();
|
|
241
|
+
// ref.current = true;
|
|
242
|
+
// }
|
|
243
|
+
// }, []);
|
|
244
|
+
return (_jsx(_Fragment, { children: bondData.map(function (bond) {
|
|
245
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
246
|
+
return (_jsx(React.Fragment, { children: _jsx(Flex, { className: "modal-backdrop", onClick: onClose, children: _jsxs(Flex, { className: "modal-content", onClick: function (event) { return event.stopPropagation(); }, children: [toastMessage && (_jsx(Flex, { className: "toast", children: toastMessage })), _jsx(Flex, { className: "modal-header", children: _jsx(Flex, { className: "svg-close", onClick: onClose, children: _jsx(Svg, { icon: "close" }) }) }), _jsxs(Flex, { className: "modaltable-container", children: [_jsxs(Flex, { className: "modaltable-container title-container", children: [_jsx(Flex, { className: "title-container bondicon", children: _jsxs("div", { className: "icon-container", children: [_jsx(Svg, { width: 20, height: 20, icon: (_a = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bond.chainId]) !== null && _a !== void 0 ? _a : 'question' }), _jsx(TokenImage, { symbol: (_b = bond.showcaseTokenName) !== null && _b !== void 0 ? _b : bond.earnToken.symbol, size: 50 })] }) }), _jsx(Flex, { className: "title-container bondname", children: bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName }), _jsxs(Flex, { className: "title-container price-container", children: [_jsxs(Flex, { className: "price-container price", children: ["$", earnTokenPrice(bond)] }), _jsxs(Flex, { className: "price-container discounted", children: ["$", discountEarnTokenPrice(bond)] })] }), _jsx(Flex, { className: "title-container tokentags", children: _jsx(ListTag, { text: (_c = bond === null || bond === void 0 ? void 0 : bond.tags) === null || _c === void 0 ? void 0 : _c[0], variant: ((_d = bond === null || bond === void 0 ? void 0 : bond.tags) === null || _d === void 0 ? void 0 : _d[0]) === 'Cex Fund' ? 'cex_fund' : 'liquidity' }) })] }), _jsx(Flex, { className: "modaltable-container description-container", children: bond === null || bond === void 0 ? void 0 : bond.shortDescription }), _jsxs(Flex, { className: "modaltable-container blocks-container", children: [_jsxs(Flex, { className: "modal-block block-discount ".concat(getDiscountColor(bond === null || bond === void 0 ? void 0 : bond.discount)), children: [_jsxs(Flex, { className: "block-header", children: ["Discount", _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Discount }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: _jsx(Flex, { className: "header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), _jsx(Flex, { className: "block-content", children: "".concat((_e = bond === null || bond === void 0 ? void 0 : bond.discount) === null || _e === void 0 ? void 0 : _e.toFixed(2), "%") })] }), _jsxs(Flex, { className: "modal-block block-arr", children: [_jsxs(Flex, { className: "block-header", children: ["ARR", _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.ARR }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: _jsx(Flex, { className: "header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), _jsx(Flex, { className: "block-content", children: "".concat(((((_f = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _f !== void 0 ? _f : 0) * 365) / vestingTime((_g = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _g !== void 0 ? _g : 0).days).toFixed(2), "%") })] }), _jsxs(Flex, { className: "modal-block block-term", children: [_jsxs(Flex, { className: "block-header", children: ["Terms", _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Terms }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: _jsx(Flex, { className: "header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), _jsx(Flex, { className: "block-content", children: vestingTime((_h = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _h !== void 0 ? _h : 0).days ? "".concat(vestingTime((_j = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _j !== void 0 ? _j : 0).days, " D") : '-' })] }), _jsxs(Flex, { className: "modal-block block-maxbuy", children: [_jsxs(Flex, { className: "block-header", children: ["Max Buy", _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.MaxBuy(bond.earnToken.symbol) }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: _jsx(Flex, { className: "header-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), _jsx(Flex, { className: "block-content", children: (_k = parseFloat(maxBuy(bond).toFixed(0))) === null || _k === void 0 ? void 0 : _k.toLocaleString('en-US') })] })] }), _jsxs(Flex, { className: "modaltable-container text-container", children: [_jsxs(Flex, { className: "text-container row", children: [_jsx(Flex, { className: "row-container spend", children: "You spend:" }), _jsxs(Flex, { className: "row-container spend-val", children: [youSpend(inputValue), " ", bond.lpToken.symbol, " = $ ", formatUSDNumber(youSpendUSD(bond, inputValue))] })] }), _jsxs(Flex, { className: "text-container row", children: [_jsxs(Flex, { className: "row-container premium", children: ["Premium:", _jsx(TooltipBubble, { className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Premium }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)", children: _jsx(Flex, { className: "row-container premium-icon", children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) }) })] }), _jsxs(Flex, { className: "row-container premium-val ".concat(getPremiumColor(bond, inputValue)), children: ["$ ", premium(bond, inputValue)] })] }), _jsxs(Flex, { className: "text-container row", children: [_jsxs(Flex, { className: "row-container get", children: ["You get (over ", vestingTime((_l = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _l !== void 0 ? _l : 0).days, " days):"] }), _jsxs(Flex, { className: "row-container get-val", children: [youGet(bond, inputValue), " ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName, " = $ ", formatUSDNumber(youGetUSD(bond, inputValue))] })] })] }), _jsxs(Flex, { className: "modaltable-container buy-container", children: [_jsxs(Flex, { className: "input-container inputrow", children: [_jsx(Flex, { className: "input-container input", children: _jsx(Input, { placeholder: "0.0", value: inputValue, pattern: "^[0-9]*[.,]?[0-9]*$", onChange: handleInputChange, onInput: function (v) {
|
|
247
|
+
if (v.currentTarget.value.includes(',')) {
|
|
248
|
+
v.currentTarget.value = v.currentTarget.value.replace(/,/g, '.');
|
|
249
|
+
}
|
|
250
|
+
if (v.currentTarget.value.includes('%')) {
|
|
251
|
+
v.currentTarget.value = v.currentTarget.value.replace(/[^0-9]/g, '');
|
|
252
|
+
}
|
|
253
|
+
if (v.currentTarget.value === '.') {
|
|
254
|
+
v.currentTarget.value = '0.';
|
|
255
|
+
}
|
|
256
|
+
v.currentTarget.value =
|
|
257
|
+
!!v.currentTarget.value && isNumber(v.currentTarget.value) && parseFloat(v.currentTarget.value) >= 0
|
|
258
|
+
? v.currentTarget.value
|
|
259
|
+
: v.currentTarget.value.slice(0, v.currentTarget.value.length - 1);
|
|
260
|
+
} }) }), _jsxs(Flex, { className: "input-container token", children: [_jsx(Flex, { className: "input-container bondicon", children: _jsxs("div", { className: "icon-container-small", children: [_jsx(Svg, { width: 12, height: 12, icon: (_m = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bond.chainId]) !== null && _m !== void 0 ? _m : 'question' }), _jsx(TokenImage, { symbol: (_o = bond.lpToken.symbol) !== null && _o !== void 0 ? _o : bond.earnToken.symbol, size: 30 })] }) }), _jsx(Flex, { className: "title-container tokenname-small", children: bond === null || bond === void 0 ? void 0 : bond.lpToken.symbol })] })] }), isActive && account && (_jsxs(Flex, { className: "input-container balancerow", children: [_jsxs(Flex, { className: "balancerow text", children: ["Balance: ", tokenBalance] }), _jsx(Flex, { className: "balancerow max", children: _jsx(Button, { className: "max-button", onClick: function () {
|
|
261
|
+
setInputValue(tokenBalance !== null && tokenBalance !== void 0 ? tokenBalance : '0');
|
|
262
|
+
}, children: "Max" }) })] }))] }), _jsxs(Flex, { className: "modaltable-container button-container", children: [_jsx(Flex, { className: "button-container get", children: _jsxs(Button, { className: "action-button", onClick: onAsd, children: ["Get ", bond === null || bond === void 0 ? void 0 : bond.lpToken.symbol] }) }), _jsx(Flex, { className: "button-container buy", children: chainId !== bond.chainId
|
|
263
|
+
?
|
|
264
|
+
_jsxs(Button, { className: "switch-button", disabled: isPending || isConfirming || (bond === null || bond === void 0 ? void 0 : bond.soldOut), onClick: function (event) {
|
|
265
|
+
event.stopPropagation();
|
|
266
|
+
// Add your claim logic here
|
|
267
|
+
switchChain({ chainId: bond.chainId });
|
|
268
|
+
}, children: ["Switch to ", NETWORK_LABEL[bond.chainId]] })
|
|
269
|
+
:
|
|
270
|
+
approveTx != null && isConfirmed ?
|
|
271
|
+
_jsx(Button, { className: "action-button", disabled: isPending || isConfirming || (bond === null || bond === void 0 ? void 0 : bond.soldOut), onClick: handleBuy, children: isConfirming ? 'Confirming...' : "Buy ".concat(bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName) })
|
|
272
|
+
:
|
|
273
|
+
_jsx(Button, { className: "action-button", disabled: isPending || isConfirming || (bond === null || bond === void 0 ? void 0 : bond.soldOut), onClick: handleApprove, children: isConfirming ? 'Confirming...' : 'Approve' }) })] })] })] }) }) }, bond.billAddress));
|
|
274
|
+
}) }));
|
|
275
|
+
};
|
|
276
|
+
export default BondModal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BondsDataResponse } from "../../types/bonds";
|
|
2
|
+
declare function formatNumber(input: string): string;
|
|
3
|
+
declare function formatUSDNumber(input: string): string;
|
|
4
|
+
declare const youSpend: (inputValue: string) => string;
|
|
5
|
+
declare const youSpendUSD: (bond: BondsDataResponse, inputValue: string) => string;
|
|
6
|
+
declare const youGet: (bond: BondsDataResponse, inputValue: string) => string;
|
|
7
|
+
declare const youGetUSD: (bond: BondsDataResponse, inputValue: string) => string;
|
|
8
|
+
declare const premium: (bond: BondsDataResponse, inputValue: string) => string;
|
|
9
|
+
declare const getPremiumColor: (bond: BondsDataResponse, inputValue: string) => string;
|
|
10
|
+
export { formatNumber, formatUSDNumber, youSpend, youSpendUSD, youGet, youGetUSD, premium, getPremiumColor };
|