@goodaofi/bonds-sdk 3.0.123
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/README.md +156 -0
- package/dist/assets/output-2LTDuc8n.css +174 -0
- package/dist/components/AccordionText/index.d.ts +6 -0
- package/dist/components/BondFilters/BondFilters.d.ts +11 -0
- package/dist/components/ChainOptionList/ChainOptionsButtons.d.ts +8 -0
- package/dist/components/ChainOptionList/ChainOptionsList.d.ts +7 -0
- package/dist/components/ChainOptionList/constants.d.ts +5 -0
- package/dist/components/ChainOptionList/styles.d.ts +2 -0
- package/dist/components/ConnectButton/RainbowKitButton.d.ts +3 -0
- package/dist/components/ConnectButton/index.d.ts +3 -0
- package/dist/components/CountdownTimer/CountdownTimer.d.ts +4 -0
- package/dist/components/FavIcons/AddFavToken.d.ts +6 -0
- package/dist/components/FavIcons/FavFilter.d.ts +6 -0
- package/dist/components/LoadingSpinner/index.d.ts +6 -0
- package/dist/components/MenuSelect/MenuSelect.d.ts +8 -0
- package/dist/components/MenuSelect/RecommendationSelector.d.ts +7 -0
- package/dist/components/MenuSelect/types.d.ts +22 -0
- package/dist/components/NetworkFilter/index.d.ts +6 -0
- package/dist/components/PlaceholderMonkey/index.d.ts +5 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +7 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.d.ts +14 -0
- package/dist/components/ProgressBar/styles.d.ts +2 -0
- package/dist/components/RestrictedRegionModal/index.d.ts +5 -0
- package/dist/components/SafeHTMLComponent/index.d.ts +5 -0
- package/dist/components/SlippageModal/index.d.ts +3 -0
- package/dist/components/StepBubble/index.d.ts +9 -0
- package/dist/components/Toast/index.d.ts +7 -0
- package/dist/components/Toast/styles.d.ts +3 -0
- package/dist/components/TokenInfoAndName/index.d.ts +9 -0
- package/dist/components/TokenSelectorModal/TokenRow.d.ts +9 -0
- package/dist/components/TokenSelectorModal/index.d.ts +11 -0
- package/dist/components/TokenSelectorPanel/index.d.ts +16 -0
- package/dist/components/Tooltip/ButtonsRow.d.ts +10 -0
- package/dist/components/Tooltip/Tooltip.d.ts +13 -0
- package/dist/components/Tooltip/styles.d.ts +2 -0
- package/dist/components/YouTooltip/YouTooltip.d.ts +3 -0
- package/dist/components/uikit-sdk/Button/Button.d.ts +4 -0
- package/dist/components/uikit-sdk/Button/IconButton.d.ts +4 -0
- package/dist/components/uikit-sdk/Button/index.d.ts +2 -0
- package/dist/components/uikit-sdk/Button/styles.d.ts +3 -0
- package/dist/components/uikit-sdk/Button/types.d.ts +46 -0
- package/dist/components/uikit-sdk/Checkbox/index.d.ts +3 -0
- package/dist/components/uikit-sdk/Checkbox/types.d.ts +11 -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/NumericInput.d.ts +9 -0
- package/dist/components/uikit-sdk/Input/index.d.ts +2 -0
- package/dist/components/uikit-sdk/LoadingDots/index.d.ts +2 -0
- package/dist/components/uikit-sdk/Modal/ModalFooter.d.ts +4 -0
- package/dist/components/uikit-sdk/Modal/ModalHeader.d.ts +4 -0
- package/dist/components/uikit-sdk/Modal/index.d.ts +4 -0
- package/dist/components/uikit-sdk/Modal/styles.d.ts +3 -0
- package/dist/components/uikit-sdk/Modal/types.d.ts +17 -0
- package/dist/components/uikit-sdk/Select/Select.d.ts +4 -0
- package/dist/components/uikit-sdk/Select/SelectItem.d.ts +3 -0
- package/dist/components/uikit-sdk/Select/index.d.ts +2 -0
- package/dist/components/uikit-sdk/Select/styles.d.ts +4 -0
- package/dist/components/uikit-sdk/Select/types.d.ts +55 -0
- package/dist/components/uikit-sdk/Skeleton/index.d.ts +4 -0
- package/dist/components/uikit-sdk/Skeleton/styles.d.ts +5 -0
- package/dist/components/uikit-sdk/Skeleton/types.d.ts +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Audit.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/BillsM1.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/BillsM2.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/BillsM3.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Bridge.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Bubble.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Calculator.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Calendar.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cancelled.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Card.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Caret.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Chain.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Chart.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Chat.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Close.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cog.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/Icons/Collapse.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Copy.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Discord.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Docs.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/DocsV2.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Ellipse.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Error.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Expand.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Explorer.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/External.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Farcaster.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Farm.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Fav.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/FilledURL.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Fire.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/FirePink.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Frame.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/FullLogo.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Gnana.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/GreenShield.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Home.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hot.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Info.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Insight.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Island.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Language.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Logout.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Medium.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Message.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Migrate.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Moon.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/More.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/NFA.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/NavCaret.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkeyAlt.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/Icons/Play.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Pool.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Positions.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/ProfileIcon.d.ts +7 -0
- package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Question.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Quiz.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Receipt.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Rocket.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Search.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Send.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Settings.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Share.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Star.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/StarFilled.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Success.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tag.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/TextLogo.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tick.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/TickShield.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Timer.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Trade.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Trash.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/URL.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Vaults.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Verified.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Wallet.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Warning.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Watch.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Website.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/XNew.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/index.d.ts +117 -0
- package/dist/components/uikit-sdk/Svg/Icons/polygonNew.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/types.d.ts +16 -0
- package/dist/components/uikit-sdk/Svg/index.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/styles.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/ABOND.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/BANANA.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/BASE.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/BERA.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/BLAST.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/BNB.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/BSC.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/CELO.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/CROSSFI.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/ETH.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/GNANA.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/GraphLinq.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/KATANA.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/MONAD.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/OKX.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/SONIC.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/UNICHAIN.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/index.d.ts +29 -0
- package/dist/components/uikit-sdk/Svg/types.d.ts +186 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.d.ts +3 -0
- package/dist/components/uikit-sdk/Svg/walletIcons/index.d.ts +18 -0
- package/dist/components/uikit-sdk/SwiperDots/index.d.ts +6 -0
- package/dist/components/uikit-sdk/TabNav/index.d.ts +8 -0
- package/dist/components/uikit-sdk/Tag/ListTag.d.ts +4 -0
- package/dist/components/uikit-sdk/Tag/index.d.ts +1 -0
- package/dist/components/uikit-sdk/Tag/types.d.ts +3 -0
- package/dist/components/uikit-sdk/Text/index.d.ts +4 -0
- package/dist/components/uikit-sdk/Text/types.d.ts +23 -0
- package/dist/components/uikit-sdk/Toggle/index.d.ts +8 -0
- package/dist/components/uikit-sdk/Toggle/styles.d.ts +3 -0
- package/dist/components/uikit-sdk/TokenImage/index.d.ts +8 -0
- package/dist/components/uikit-sdk/TooltipBubble/index.d.ts +4 -0
- package/dist/components/uikit-sdk/TooltipBubble/styles.d.ts +4 -0
- package/dist/components/uikit-sdk/TooltipBubble/types.d.ts +18 -0
- package/dist/components/uikit-sdk/index.d.ts +15 -0
- package/dist/config/abi/types/Banana.d.ts +394 -0
- package/dist/config/abi/types/Bond.d.ts +758 -0
- package/dist/config/abi/types/BondNft.d.ts +556 -0
- package/dist/config/abi/types/EnsPublicResolver.d.ts +437 -0
- package/dist/config/abi/types/EnsRegistrar.d.ts +254 -0
- package/dist/config/abi/types/Erc20.d.ts +156 -0
- package/dist/config/abi/types/Erc20_bytes32.d.ts +50 -0
- package/dist/config/abi/types/JungleChef.d.ts +245 -0
- package/dist/config/abi/types/LaunchBonds.d.ts +1306 -0
- package/dist/config/abi/types/LensContract.d.ts +276 -0
- package/dist/config/abi/types/LockVeAbond.d.ts +1173 -0
- package/dist/config/abi/types/MigrationBond.d.ts +1074 -0
- package/dist/config/abi/types/MigrationFveAbond.d.ts +284 -0
- package/dist/config/abi/types/MiniComplexRewarder.d.ts +423 -0
- package/dist/config/abi/types/Multicallv2.d.ts +139 -0
- package/dist/config/abi/types/Multicallv3.d.ts +98 -0
- package/dist/config/abi/types/NonFungibleApes.d.ts +492 -0
- package/dist/config/abi/types/NonFungibleBananas.d.ts +468 -0
- package/dist/config/abi/types/PriceGetter.d.ts +676 -0
- package/dist/config/abi/types/PriceGetterLinea.d.ts +756 -0
- package/dist/config/abi/types/PriceGetterV2.d.ts +692 -0
- package/dist/config/abi/types/SousChef.d.ts +542 -0
- package/dist/config/abi/types/Treasury.d.ts +274 -0
- package/dist/config/abi/types/Weth.d.ts +206 -0
- package/dist/config/abi/types/Zap.d.ts +484 -0
- package/dist/config/abi/types/common.d.ts +22 -0
- package/dist/config/abi/types/factories/Banana__factory.d.ts +475 -0
- package/dist/config/abi/types/factories/BondNft__factory.d.ts +723 -0
- package/dist/config/abi/types/factories/Bond__factory.d.ts +799 -0
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +649 -0
- package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +338 -0
- package/dist/config/abi/types/factories/Erc20__factory.d.ts +175 -0
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +30 -0
- package/dist/config/abi/types/factories/JungleChef__factory.d.ts +247 -0
- package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +1560 -0
- package/dist/config/abi/types/factories/LensContract__factory.d.ts +254 -0
- package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +1698 -0
- package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +1268 -0
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +262 -0
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +448 -0
- package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +115 -0
- package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +76 -0
- package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +617 -0
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +576 -0
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +1105 -0
- package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +1027 -0
- package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +999 -0
- package/dist/config/abi/types/factories/SousChef__factory.d.ts +511 -0
- package/dist/config/abi/types/factories/Treasury__factory.d.ts +235 -0
- package/dist/config/abi/types/factories/Weth__factory.d.ts +220 -0
- package/dist/config/abi/types/factories/Zap__factory.d.ts +695 -0
- package/dist/config/abi/types/factories/index.d.ts +25 -0
- package/dist/config/abi/types/index.d.ts +51 -0
- package/dist/config/constants/addresses.d.ts +10 -0
- package/dist/config/constants/chains.d.ts +7 -0
- package/dist/config/constants/networks.d.ts +2 -0
- package/dist/config/constants/queryKeys.d.ts +47 -0
- package/dist/config/constants/tokens.d.ts +5 -0
- package/dist/config/constants/tooltips.d.ts +17 -0
- package/dist/config/constants/variables.d.ts +6 -0
- package/dist/contexts/ModalContext.d.ts +14 -0
- package/dist/contexts/Popups.d.ts +5 -0
- package/dist/contexts/RefreshContext.d.ts +10 -0
- package/dist/contexts/SwiperProvider.d.ts +12 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useIsMobile.d.ts +1 -0
- package/dist/hooks/useModal.d.ts +3 -0
- package/dist/hooks/useMonitorTxHash.d.ts +25 -0
- package/dist/hooks/useRefresh.d.ts +6 -0
- package/dist/hooks/useSendReferenceId.d.ts +2 -0
- package/dist/hooks/useSortedZapList.d.ts +9 -0
- package/dist/hooks/useSwiper.d.ts +2 -0
- package/dist/hooks/useTimer.d.ts +2 -0
- package/dist/hooks/useTokenFromZapList.d.ts +3 -0
- package/dist/hooks/useTopTags.d.ts +2 -0
- package/dist/main.d.ts +10 -0
- package/dist/main.js +96120 -0
- package/dist/providers/index.d.ts +6 -0
- package/dist/state/abtesting/useABTesting.d.ts +11 -0
- package/dist/state/abtesting/useCookie.d.ts +9 -0
- package/dist/state/activeView/index.d.ts +9 -0
- package/dist/state/allowance/useAllowance.d.ts +15 -0
- package/dist/state/balance/useCurrencyBalance.d.ts +4 -0
- package/dist/state/balance/useUserTokensBalance.d.ts +10 -0
- package/dist/state/bondApiStats/useGetBondApiStats.d.ts +25 -0
- package/dist/state/bondApiStats/useUserApiStats.d.ts +22 -0
- package/dist/state/bonds/useBondNFTData.d.ts +5 -0
- package/dist/state/bonds/useBondsData.d.ts +9 -0
- package/dist/state/bonds/useBondsList.d.ts +4 -0
- package/dist/state/bonds/useGetBondRecommendations.d.ts +28 -0
- package/dist/state/bonds/useHotBonds.d.ts +6 -0
- package/dist/state/bonds/useTierProofSignature.d.ts +4 -0
- package/dist/state/bonds/useUserBonds.d.ts +6 -0
- package/dist/state/bonds/utils.d.ts +4 -0
- package/dist/state/chainFilterOption/useChainFilterOption.d.ts +4 -0
- package/dist/state/favoriteTokens/useFavoriteTokens.d.ts +4 -0
- package/dist/state/geoFencing/useGeoFencing.d.ts +5 -0
- package/dist/state/popups/usePopups.d.ts +14 -0
- package/dist/state/preTGEBonds/usePreTGEList.d.ts +4 -0
- package/dist/state/preTGEBonds/usePreTGEUserBonds.d.ts +26 -0
- package/dist/state/price/useCurrencyPrice.d.ts +3 -0
- package/dist/state/slippage/useSlippage.d.ts +1 -0
- package/dist/state/tiers/useTierPoints.d.ts +35 -0
- package/dist/state/tokenPrices/useTokenPrices.d.ts +11 -0
- package/dist/state/useSDKConfig.d.ts +35 -0
- package/dist/state/zap/getChainParam.d.ts +16 -0
- package/dist/state/zap/useSoulZapBondQuote.d.ts +4 -0
- package/dist/state/zap/useSoulZapTokenQuote.d.ts +3 -0
- package/dist/styles.css +1989 -0
- package/dist/theme/base.d.ts +112 -0
- package/dist/theme/colors.d.ts +20 -0
- package/dist/theme/components.d.ts +431 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/types/bonds.d.ts +30 -0
- package/dist/types/yourbonds.d.ts +81 -0
- package/dist/utils/convertToTokenValue.d.ts +4 -0
- package/dist/utils/dates/formatDate.d.ts +1 -0
- package/dist/utils/displayHelpers.d.ts +31 -0
- package/dist/utils/formatNumber.d.ts +3 -0
- package/dist/utils/formatNumbers.d.ts +33 -0
- package/dist/utils/getBalanceNumber.d.ts +2 -0
- package/dist/utils/getDotPos.d.ts +1 -0
- package/dist/utils/getNativeTicker.d.ts +2 -0
- package/dist/utils/getTimePeriods.d.ts +14 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/localStorageHelpers.d.ts +3 -0
- package/dist/utils/multicall.d.ts +7 -0
- package/dist/utils/numbers.d.ts +5 -0
- package/dist/utils/remove0xPrefix.d.ts +1 -0
- package/dist/utils/reportError.d.ts +8 -0
- package/dist/utils/roundNumber.d.ts +7 -0
- package/dist/utils/track.d.ts +7 -0
- package/dist/views/Bonds/Bonds.d.ts +9 -0
- package/dist/views/Bonds/components/BannerTestnet/BannerTestnet.d.ts +6 -0
- package/dist/views/Bonds/components/BondRows/BondRow.d.ts +24 -0
- package/dist/views/Bonds/components/BondRows/BondRowsByChain.d.ts +9 -0
- package/dist/views/Bonds/components/BondRows/BondRowsWithTitle.d.ts +10 -0
- package/dist/views/Bonds/components/BondRows/ChainTitle.d.ts +8 -0
- package/dist/views/Bonds/components/BondRows/ModalHandler.d.ts +7 -0
- package/dist/views/Bonds/components/BondsMenu/BondsMenu.d.ts +13 -0
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.d.ts +11 -0
- package/dist/views/Bonds/components/BonusComponents/BonusContainer.d.ts +11 -0
- package/dist/views/Bonds/components/BonusComponents/BonusTable.d.ts +9 -0
- package/dist/views/Bonds/components/BuyAgainRow/index.d.ts +3 -0
- package/dist/views/Bonds/components/CheckURL/index.d.ts +4 -0
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.d.ts +6 -0
- package/dist/views/Bonds/components/HotBondCards/index.d.ts +4 -0
- package/dist/views/Bonds/components/HotBondCards/styles.d.ts +2 -0
- package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.d.ts +13 -0
- package/dist/views/Bonds/components/RecommendationCards/index.d.ts +11 -0
- package/dist/views/Bonds/components/RecommendationCards/styles.d.ts +2 -0
- package/dist/views/Bonds/index.d.ts +4 -0
- package/dist/views/Bonds/utils.d.ts +18 -0
- package/dist/views/BuyBond/BuyBond.d.ts +10 -0
- package/dist/views/BuyBond/BuyBondModal.d.ts +4 -0
- package/dist/views/BuyBond/components/BondCards.d.ts +6 -0
- package/dist/views/BuyBond/components/BondModalHeader.d.ts +8 -0
- package/dist/views/BuyBond/components/BondModalMinTierHeader.d.ts +5 -0
- package/dist/views/BuyBond/components/Estimations.d.ts +11 -0
- package/dist/views/BuyBond/components/ExpandedViewButton.d.ts +6 -0
- package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.d.ts +8 -0
- package/dist/views/BuyBond/components/NewRateModal/NewRateModal.d.ts +12 -0
- package/dist/views/BuyBond/components/NoBonusModal/NoBonusModal.d.ts +7 -0
- package/dist/views/BuyBond/components/ProjectDescription.d.ts +6 -0
- package/dist/views/BuyBond/findHighestTrueBondPrice.d.ts +15 -0
- package/dist/views/BuyBond/index.d.ts +7 -0
- package/dist/views/FullBondsView/FullBondsView.d.ts +7 -0
- package/dist/views/FullBondsView/index.d.ts +4 -0
- package/dist/views/GooSale/GooSale.d.ts +7 -0
- package/dist/views/GooSale/bondsList.d.ts +554 -0
- package/dist/views/GooSale/components/BannerTestnet/BannerTestnet.d.ts +6 -0
- package/dist/views/GooSale/components/BondFilters/BondFilters.d.ts +7 -0
- package/dist/views/GooSale/components/BondRows/BondRow.d.ts +16 -0
- package/dist/views/GooSale/components/BondRows/BondRowsByChain.d.ts +7 -0
- package/dist/views/GooSale/components/BondRows/BondRowsWithTitle.d.ts +8 -0
- package/dist/views/GooSale/components/BondRows/ChainTitle.d.ts +7 -0
- package/dist/views/GooSale/components/BondRows/ModalHandler.d.ts +7 -0
- package/dist/views/GooSale/components/BondsMenu/BondsMenu.d.ts +12 -0
- package/dist/views/GooSale/components/BonusComponents/BonusComponent.d.ts +11 -0
- package/dist/views/GooSale/components/BonusComponents/BonusContainer.d.ts +11 -0
- package/dist/views/GooSale/components/BonusComponents/BonusTable.d.ts +9 -0
- package/dist/views/GooSale/components/BuyBond/BuyBond.d.ts +19 -0
- package/dist/views/GooSale/components/BuyBond/BuyBondModal.d.ts +4 -0
- package/dist/views/GooSale/components/BuyBond/components/BondCards.d.ts +9 -0
- package/dist/views/GooSale/components/BuyBond/components/BondModalHeader.d.ts +9 -0
- package/dist/views/GooSale/components/BuyBond/components/BondModalMinTierHeader.d.ts +5 -0
- package/dist/views/GooSale/components/BuyBond/components/Estimations.d.ts +13 -0
- package/dist/views/GooSale/components/BuyBond/components/ExpandedViewButton.d.ts +6 -0
- package/dist/views/GooSale/components/BuyBond/components/GetUpToComponent/GetUpToComponent.d.ts +8 -0
- package/dist/views/GooSale/components/BuyBond/components/NewRateModal/NewRateModal.d.ts +12 -0
- package/dist/views/GooSale/components/BuyBond/components/NoBonusModal/NoBonusModal.d.ts +7 -0
- package/dist/views/GooSale/components/BuyBond/components/ProjectDescription.d.ts +6 -0
- package/dist/views/GooSale/components/BuyBond/findHighestTrueBondPrice.d.ts +15 -0
- package/dist/views/GooSale/components/BuyBond/index.d.ts +7 -0
- package/dist/views/GooSale/components/CheckURL/index.d.ts +4 -0
- package/dist/views/GooSale/components/HotBondCards/HotBondCard.d.ts +6 -0
- package/dist/views/GooSale/components/HotBondCards/index.d.ts +4 -0
- package/dist/views/GooSale/components/HotBondCards/styles.d.ts +2 -0
- package/dist/views/GooSale/components/NetworkFilter/index.d.ts +5 -0
- package/dist/views/GooSale/components/ProgressBar/ProgressBar.d.ts +7 -0
- package/dist/views/GooSale/components/ProgressBar/styles.d.ts +2 -0
- package/dist/views/GooSale/components/RecommendationCards/SmallRecommendationCard.d.ts +13 -0
- package/dist/views/GooSale/components/RecommendationCards/index.d.ts +11 -0
- package/dist/views/GooSale/components/RecommendationCards/styles.d.ts +2 -0
- package/dist/views/GooSale/components/TokenInfoAndName/index.d.ts +9 -0
- package/dist/views/GooSale/components/Tooltip/ButtonsRow.d.ts +7 -0
- package/dist/views/GooSale/components/Tooltip/Tooltip.d.ts +12 -0
- package/dist/views/GooSale/components/Tooltip/styles.d.ts +2 -0
- package/dist/views/GooSale/components/TransactionModal/TransactionModal.d.ts +19 -0
- package/dist/views/GooSale/components/YourGoo/YourGoo.d.ts +1 -0
- package/dist/views/GooSale/hooks/preTGEGooBonds/usePreTGEList.d.ts +4 -0
- package/dist/views/GooSale/hooks/preTGEGooBonds/usePreTGEUserBonds.d.ts +30 -0
- package/dist/views/GooSale/hooks/useGooEligibility.d.ts +7 -0
- package/dist/views/GooSale/hooks/useSaleInfo.d.ts +41 -0
- package/dist/views/GooSale/hooks/useUserInfo.d.ts +12 -0
- package/dist/views/GooSale/hooks/useYourGoo.d.ts +19 -0
- package/dist/views/GooSale/index.d.ts +4 -0
- package/dist/views/GooSale/utils.d.ts +31 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/BondCards.d.ts +6 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/ParticipationSuccessful.d.ts +8 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/PreTGEBuyComponent.d.ts +8 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/PreTGEModalHandler.d.ts +7 -0
- package/dist/views/PreTGEBonds/components/BuyComponent/styles.d.ts +22 -0
- package/dist/views/PreTGEBonds/components/PreTGEUserRows/PreTGEActions.d.ts +6 -0
- package/dist/views/PreTGEBonds/components/PreTGEUserRows/PreTGEUserRow.d.ts +7 -0
- package/dist/views/ProjectView/ProjectView.d.ts +13 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/SalesTable.d.ts +6 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopSaleCard.d.ts +7 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopThreeSalesCards.d.ts +6 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/styles.d.ts +2 -0
- package/dist/views/ProjectView/components/BondLeaderboard/index.d.ts +6 -0
- package/dist/views/ProjectView/components/BondStats/index.d.ts +6 -0
- package/dist/views/ProjectView/components/BondStats/styles.d.ts +2 -0
- package/dist/views/ProjectView/components/BondStats/types.d.ts +43 -0
- package/dist/views/ProjectView/components/BondStats/utils.d.ts +1 -0
- package/dist/views/ProjectView/components/NavPanel/index.d.ts +5 -0
- package/dist/views/ProjectView/components/PriceChart/components/CandleStickChart.d.ts +9 -0
- package/dist/views/ProjectView/components/PriceChart/components/LineChart.d.ts +9 -0
- package/dist/views/ProjectView/components/PriceChart/components/utils.d.ts +1 -0
- package/dist/views/ProjectView/components/PriceChart/index.d.ts +8 -0
- package/dist/views/ProjectView/components/PriceChart/styles.d.ts +2 -0
- package/dist/views/ProjectView/components/ProjectInfo/index.d.ts +6 -0
- package/dist/views/ProjectView/components/ProjectInfo/styles.d.ts +2 -0
- package/dist/views/ProjectView/components/RecommendationCards/index.d.ts +3 -0
- package/dist/views/ProjectView/index.d.ts +7 -0
- package/dist/views/ProjectView/styles.d.ts +2 -0
- package/dist/views/SingleBond/SingleBond.d.ts +6 -0
- package/dist/views/SingleBond/SoldOutBuyBondPlaceholder.d.ts +8 -0
- package/dist/views/SingleBond/index.d.ts +7 -0
- package/dist/views/TransactionModal/TransactionModal.d.ts +19 -0
- package/dist/views/YourBonds/YourBonds.d.ts +7 -0
- package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.d.ts +3 -0
- package/dist/views/YourBonds/components/ClaimAll/index.d.ts +3 -0
- package/dist/views/YourBonds/components/UserBondRow/index.d.ts +6 -0
- package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.d.ts +12 -0
- package/dist/views/YourBonds/fetchBillsUser.d.ts +5 -0
- package/dist/views/YourBonds/getBillNftData.d.ts +9 -0
- package/dist/views/YourBonds/index.d.ts +4 -0
- package/dist/views/YourBondsModal/YourBondsModal.d.ts +7 -0
- package/dist/views/YourBondsModal/components/LinkShare/LinkShare.d.ts +7 -0
- package/dist/views/YourBondsModal/components/LinkShare/styles.d.ts +2 -0
- package/dist/views/YourBondsModal/components/LinkShare/templateImageShare.d.ts +2 -0
- package/dist/views/YourBondsModal/components/LinkShare/utils.d.ts +2 -0
- package/dist/views/YourBondsModal/components/Recommendations/CardRecommendation.d.ts +7 -0
- package/dist/views/YourBondsModal/components/Recommendations/CardRecommendationsMobile.d.ts +6 -0
- package/dist/views/YourBondsModal/components/Recommendations/Recommendations.d.ts +6 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferAction.d.ts +8 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/index.d.ts +8 -0
- package/dist/views/ZapModal/index.d.ts +13 -0
- package/dist/views/ZapModal/styles.d.ts +2 -0
- package/package.json +100 -0
package/README.md
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# @ape.swap/bonds-sdk
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@ape.swap/bonds-sdk)
|
|
4
|
+
|
|
5
|
+
The `@ape.swap/bonds-sdk` package provides an embeddable set of tools and UI components to integrate and manage bond-related functionalities for multi-chain environments. This SDK simplifies the process of displaying, interacting with, and customizing bond-related user interfaces in your projects.
|
|
6
|
+
|
|
7
|
+
## Key Features
|
|
8
|
+
|
|
9
|
+
- Fully customizable bond views powered by the following components: `<FullBondsView />`, `<Bonds/>` & `<YourBonds />`.
|
|
10
|
+
- Multi-chain support for a ever-growing array of Blockchains that currently include BNB Chain, Ethereum, Base, Polygon, Arbitrum, Lightlink, Linea, Graphlinq, IOTA and Crossfi.
|
|
11
|
+
- Prebuilt styles and layouts optimized for embedding.
|
|
12
|
+
- Compatibility with the most popular web3 development library: Wagmi.
|
|
13
|
+
- Plug-and-play configuration to fit various project requirements.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
To install the package via npm or yarn, run the following command:
|
|
20
|
+
|
|
21
|
+
```textmate
|
|
22
|
+
# With npm
|
|
23
|
+
npm install @ape.swap/bonds-sdk
|
|
24
|
+
|
|
25
|
+
# With yarn
|
|
26
|
+
yarn add @ape.swap/bonds-sdk
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Basic Usage
|
|
32
|
+
|
|
33
|
+
Here's an example of how to integrate the `@ape.swap/bonds-sdk` package into your project:
|
|
34
|
+
|
|
35
|
+
```textmate
|
|
36
|
+
import React from 'react'
|
|
37
|
+
import { FullBondsView, ChainId } from '@ape.swap/bonds-sdk'
|
|
38
|
+
import '@ape.swap/bonds-sdk/dist/styles.css'
|
|
39
|
+
import 'swiper/swiper.min.css'
|
|
40
|
+
|
|
41
|
+
const MyBondsComponent = () => {
|
|
42
|
+
return (
|
|
43
|
+
<FullBondsView
|
|
44
|
+
referenceId="yourProjectId"
|
|
45
|
+
chains={[
|
|
46
|
+
ChainId.BSC,
|
|
47
|
+
ChainId.BASE,
|
|
48
|
+
ChainId.MATIC,
|
|
49
|
+
ChainId.MAINNET,
|
|
50
|
+
ChainId.ARBITRUM,
|
|
51
|
+
ChainId.LIGHTLINK,
|
|
52
|
+
ChainId.LINEA,
|
|
53
|
+
ChainId.GRAPHLINQ,
|
|
54
|
+
ChainId.IOTA,
|
|
55
|
+
ChainId.CROSSFI,
|
|
56
|
+
]}
|
|
57
|
+
useRainbowKit={true}
|
|
58
|
+
useHotBonds={true}
|
|
59
|
+
theme={{
|
|
60
|
+
"radii": "10px",
|
|
61
|
+
customFont: 'Poppins',
|
|
62
|
+
"colors": {
|
|
63
|
+
"primaryButton": "#6560C5",
|
|
64
|
+
"white1": "#0E0D16",
|
|
65
|
+
"white2": "#161420",
|
|
66
|
+
"white3": "#1F1D29",
|
|
67
|
+
"white4": "#282632",
|
|
68
|
+
"white5": "#312F3A",
|
|
69
|
+
"text": "#FAFAFA",
|
|
70
|
+
"primaryBright": "#FFF"
|
|
71
|
+
}
|
|
72
|
+
}}
|
|
73
|
+
/>
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export default MyBondsComponent
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Configuration
|
|
83
|
+
|
|
84
|
+
The core of the SDK lies in its config object params, passed as a prop to its components. Below is a breakdown of key options:
|
|
85
|
+
|
|
86
|
+
| Property | Type | Description |
|
|
87
|
+
|-----------------|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
88
|
+
| `referenceId` | `string` | A unique identifier for the bonds, shall be provided by ApeBond team. |
|
|
89
|
+
| `chains` | `Array` | An array of supported chain IDs (e.g., `56`, `1`, `137`, etc). It also determines the order of the chains on the bond list. |
|
|
90
|
+
| `useRainbowKit` | `boolean` | Whether to enable RainbowKit for wallet connections. Might be replaced for an enum in the near future. |
|
|
91
|
+
| `useHotBonds` | `boolean` | Whether to show the "hot bonds" component. |
|
|
92
|
+
| `theme` | `Object (optional)` | This is how you can customize the styles of the SDK. Override styles like colors, typography, and layout settings to match your project's branding. |
|
|
93
|
+
| `tokenSymbol` | `string[]` | This parameter is specific to the `<SingleBond />` component. It defines the token(s) to display in the UI. Currently, only a single token (one element in the array) is supported.|
|
|
94
|
+
|
|
95
|
+
### Chain Support
|
|
96
|
+
|
|
97
|
+
The SDK currently supports the following chains:
|
|
98
|
+
|
|
99
|
+
- Binance Smart Chain (BSC)
|
|
100
|
+
- Ethereum (MAINNET)
|
|
101
|
+
- Polygon (MATIC)
|
|
102
|
+
- Arbitrum
|
|
103
|
+
- Base
|
|
104
|
+
- Lightlink
|
|
105
|
+
- Linea
|
|
106
|
+
- Graphlinq
|
|
107
|
+
- IOTA
|
|
108
|
+
- CrossFi
|
|
109
|
+
|
|
110
|
+
The list get updated constantly, so make sure to use latest version of the SDK.
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Customizing Styles
|
|
115
|
+
|
|
116
|
+
The package comes with prebuilt styles that you must import in your project. Make sure to include the following CSS files:
|
|
117
|
+
|
|
118
|
+
```javascript
|
|
119
|
+
import '@ape.swap/bonds-sdk/dist/styles.css'
|
|
120
|
+
import 'swiper/swiper.min.css'
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
These styles ensure that the components render correctly and include all necessary design details. You can customize or override styles using your own branding.
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
You can test and visualize the different customization options on the SDK styling playground (beta):
|
|
127
|
+
|
|
128
|
+
https://sdk.ape.bond/
|
|
129
|
+
|
|
130
|
+
Once you are happy with the styles, make sure to copy the output styles object and paste it under the `theme` param on the SDK component you will be using.
|
|
131
|
+
|
|
132
|
+
To use a custom font in the theme, include the `customFont` property with the name of your desired font family. Please note that you will need to manually download the font and embed it in your project using a `<script>` or `<link>` tag in your HTML file.
|
|
133
|
+
|
|
134
|
+
Bear in mind, that the components of the SDK will use the width and height provided by the parent component.
|
|
135
|
+
|
|
136
|
+
---
|
|
137
|
+
|
|
138
|
+
## Dependencies
|
|
139
|
+
|
|
140
|
+
The following are some key dependencies you must have for the SDK to work properly:
|
|
141
|
+
|
|
142
|
+
- **React**: Required to build the UI. Ensure your project uses React v18 or later.
|
|
143
|
+
- **Wagmi**: Used for handling wallet connections and blockchain interactions.
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## 🦍 Built and Maintained by ApeSwap | ApeBond
|
|
149
|
+
|
|
150
|
+
For questions, issues, or contributions, reach out to [ApeBond](https://ape.bond/) or contact us on [Telegram](https://t.me/ape_bond) .
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## License
|
|
155
|
+
|
|
156
|
+
This package is licensed under the MIT License.
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swiper 8.4.7
|
|
3
|
+
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4
|
+
* https://swiperjs.com
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2014-2023 Vladimir Kharlampidi
|
|
7
|
+
*
|
|
8
|
+
* Released under the MIT License
|
|
9
|
+
*
|
|
10
|
+
* Released on: January 30, 2023
|
|
11
|
+
*/
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: swiper-icons;
|
|
14
|
+
src: url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA");
|
|
15
|
+
font-weight: 400;
|
|
16
|
+
font-style: normal;
|
|
17
|
+
}
|
|
18
|
+
:root {
|
|
19
|
+
--swiper-theme-color:#007aff;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.swiper {
|
|
23
|
+
margin-left: auto;
|
|
24
|
+
margin-right: auto;
|
|
25
|
+
position: relative;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
list-style: none;
|
|
28
|
+
padding: 0;
|
|
29
|
+
z-index: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.swiper-vertical > .swiper-wrapper {
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.swiper-wrapper {
|
|
37
|
+
position: relative;
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
z-index: 1;
|
|
41
|
+
display: flex;
|
|
42
|
+
transition-property: transform;
|
|
43
|
+
box-sizing: content-box;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.swiper-android .swiper-slide, .swiper-wrapper {
|
|
47
|
+
transform: translate3d(0px, 0, 0);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.swiper-pointer-events {
|
|
51
|
+
touch-action: pan-y;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.swiper-pointer-events.swiper-vertical {
|
|
55
|
+
touch-action: pan-x;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.swiper-slide {
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
position: relative;
|
|
63
|
+
transition-property: transform;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.swiper-slide-invisible-blank {
|
|
67
|
+
visibility: hidden;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.swiper-autoheight, .swiper-autoheight .swiper-slide {
|
|
71
|
+
height: auto;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.swiper-autoheight .swiper-wrapper {
|
|
75
|
+
align-items: flex-start;
|
|
76
|
+
transition-property: transform, height;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.swiper-backface-hidden .swiper-slide {
|
|
80
|
+
transform: translateZ(0);
|
|
81
|
+
-webkit-backface-visibility: hidden;
|
|
82
|
+
backface-visibility: hidden;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.swiper-3d, .swiper-3d.swiper-css-mode .swiper-wrapper {
|
|
86
|
+
perspective: 1200px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.swiper-3d .swiper-cube-shadow, .swiper-3d .swiper-slide, .swiper-3d .swiper-slide-shadow, .swiper-3d .swiper-slide-shadow-bottom, .swiper-3d .swiper-slide-shadow-left, .swiper-3d .swiper-slide-shadow-right, .swiper-3d .swiper-slide-shadow-top, .swiper-3d .swiper-wrapper {
|
|
90
|
+
transform-style: preserve-3d;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.swiper-3d .swiper-slide-shadow, .swiper-3d .swiper-slide-shadow-bottom, .swiper-3d .swiper-slide-shadow-left, .swiper-3d .swiper-slide-shadow-right, .swiper-3d .swiper-slide-shadow-top {
|
|
94
|
+
position: absolute;
|
|
95
|
+
left: 0;
|
|
96
|
+
top: 0;
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
pointer-events: none;
|
|
100
|
+
z-index: 10;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.swiper-3d .swiper-slide-shadow {
|
|
104
|
+
background: rgba(0, 0, 0, 0.15);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.swiper-3d .swiper-slide-shadow-left {
|
|
108
|
+
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.swiper-3d .swiper-slide-shadow-right {
|
|
112
|
+
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.swiper-3d .swiper-slide-shadow-top {
|
|
116
|
+
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.swiper-3d .swiper-slide-shadow-bottom {
|
|
120
|
+
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.swiper-css-mode > .swiper-wrapper {
|
|
124
|
+
overflow: auto;
|
|
125
|
+
scrollbar-width: none;
|
|
126
|
+
-ms-overflow-style: none;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {
|
|
130
|
+
display: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.swiper-css-mode > .swiper-wrapper > .swiper-slide {
|
|
134
|
+
scroll-snap-align: start start;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.swiper-horizontal.swiper-css-mode > .swiper-wrapper {
|
|
138
|
+
scroll-snap-type: x mandatory;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.swiper-vertical.swiper-css-mode > .swiper-wrapper {
|
|
142
|
+
scroll-snap-type: y mandatory;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.swiper-centered > .swiper-wrapper::before {
|
|
146
|
+
content: "";
|
|
147
|
+
flex-shrink: 0;
|
|
148
|
+
order: 9999;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
|
|
152
|
+
margin-inline-start: var(--swiper-centered-offset-before);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.swiper-centered.swiper-horizontal > .swiper-wrapper::before {
|
|
156
|
+
height: 100%;
|
|
157
|
+
min-height: 1px;
|
|
158
|
+
width: var(--swiper-centered-offset-after);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {
|
|
162
|
+
margin-block-start: var(--swiper-centered-offset-before);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.swiper-centered.swiper-vertical > .swiper-wrapper::before {
|
|
166
|
+
width: 100%;
|
|
167
|
+
min-width: 1px;
|
|
168
|
+
height: var(--swiper-centered-offset-after);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.swiper-centered > .swiper-wrapper > .swiper-slide {
|
|
172
|
+
scroll-snap-align: center center;
|
|
173
|
+
scroll-snap-stop: always;
|
|
174
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface BondMenuProps {
|
|
3
|
+
setChainFilterOption: (newValue: string[]) => void;
|
|
4
|
+
chainFilterOption: string[];
|
|
5
|
+
filterOptions: string[];
|
|
6
|
+
filterOption: string;
|
|
7
|
+
setFilterOption: (newOption: string) => void;
|
|
8
|
+
onHandleQueryChange: (value: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const BondFilters: React.FC<BondMenuProps>;
|
|
11
|
+
export default BondFilters;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
|
+
declare const ChainOptionsButtons: ({ selectedChain, setSelectedChain, setViewAllChains, chainList, }: {
|
|
3
|
+
selectedChain?: number;
|
|
4
|
+
setSelectedChain: (chain: ChainId) => void;
|
|
5
|
+
setViewAllChains: (viewAllChains: boolean) => void;
|
|
6
|
+
chainList: ChainId[];
|
|
7
|
+
}) => import("react").JSX.Element;
|
|
8
|
+
export default ChainOptionsButtons;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
|
+
declare const ChainOptionsList: ({ setSelectedChain, setViewAllChains, chainList, }: {
|
|
3
|
+
setSelectedChain: (chain: ChainId) => void;
|
|
4
|
+
setViewAllChains: (viewAllChains: boolean) => void;
|
|
5
|
+
chainList: ChainId[];
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
|
+
export default ChainOptionsList;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Option } from './types';
|
|
3
|
+
declare const MenuSelect: ({ selectedOption, setOption, options, ...props }: {
|
|
4
|
+
selectedOption: string;
|
|
5
|
+
setOption: (option: string) => void;
|
|
6
|
+
options: Option[] | undefined;
|
|
7
|
+
} | any) => React.JSX.Element;
|
|
8
|
+
export default MenuSelect;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const RecommendationSelector: ({ options, activeOption, setActiveOption, }: {
|
|
3
|
+
options: string[];
|
|
4
|
+
activeOption: string;
|
|
5
|
+
setActiveOption: (activeOption: string) => void;
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
|
+
export default RecommendationSelector;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
export interface ListMenuProps {
|
|
3
|
+
onHandleQueryChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
4
|
+
setFilterOption?: Dispatch<SetStateAction<string>>;
|
|
5
|
+
setIsActive: Dispatch<SetStateAction<boolean>>;
|
|
6
|
+
filterOption?: string;
|
|
7
|
+
setSortOption: Dispatch<SetStateAction<string>>;
|
|
8
|
+
sortOption?: string;
|
|
9
|
+
query: string;
|
|
10
|
+
checkboxLabel: string;
|
|
11
|
+
showOnlyCheckbox: boolean;
|
|
12
|
+
setShowOnlyCheckbox: (value: boolean) => void;
|
|
13
|
+
toogleLabels: string[];
|
|
14
|
+
filterOptions?: Option[];
|
|
15
|
+
sortOptions?: Option[];
|
|
16
|
+
actionButton?: React.ReactNode;
|
|
17
|
+
showMonkeyImage?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export type Option = {
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeUIStyleObject } from 'theme-ui';
|
|
3
|
+
export interface ProgressBarWrapperProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
value?: React.ReactNode;
|
|
6
|
+
value2Direction?: 'column' | 'row';
|
|
7
|
+
toolTip?: string;
|
|
8
|
+
toolTipPlacement?: 'topLeft' | 'topRight' | 'bottomRight' | 'bottomLeft';
|
|
9
|
+
toolTipTransform?: string;
|
|
10
|
+
style?: ThemeUIStyleObject;
|
|
11
|
+
showTooltip?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.NamedExoticComponent<ProgressBarWrapperProps>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ThemeUIStyleObject } from 'theme-ui';
|
|
2
|
+
export declare const styles: Record<'listCardContainer' | 'listViewContainer' | 'titleContainer' | 'infoContentMobile' | 'tokensContainer' | 'titleText' | 'skeleton' | 'valueText' | 'secondaryText' | 'cardContentContainer' | 'animationDiv' | 'expandedWrapper', ThemeUIStyleObject>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const StepBubble: ({ number, title, currentStep, hideBar, loading, }: {
|
|
3
|
+
number: number;
|
|
4
|
+
title: string;
|
|
5
|
+
currentStep: number;
|
|
6
|
+
hideBar?: boolean;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export default StepBubble;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const NETWORK_COLORS: Partial<Record<number, string>>;
|
|
2
|
+
declare const TokenInfoAndName: ({ tokenSymbol, tag, vestEnds, isHotBond, }: {
|
|
3
|
+
tokenSymbol?: string;
|
|
4
|
+
chain?: number;
|
|
5
|
+
tag?: string;
|
|
6
|
+
vestEnds?: string;
|
|
7
|
+
isHotBond?: boolean;
|
|
8
|
+
}) => import("react").JSX.Element;
|
|
9
|
+
export default TokenInfoAndName;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
3
|
+
declare const TokenRow: ({ token, chainId, handleTokenSelect, tokenBalance, }: {
|
|
4
|
+
token: "NATIVE" | Token;
|
|
5
|
+
chainId: ChainId;
|
|
6
|
+
handleTokenSelect: (currency: string) => void;
|
|
7
|
+
tokenBalance?: string;
|
|
8
|
+
}) => React.JSX.Element;
|
|
9
|
+
export default TokenRow;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
3
|
+
import { Token } from '@ape.swap/apeswap-lists';
|
|
4
|
+
interface TokenSelectorModalProps {
|
|
5
|
+
bondPrincipalToken?: Token;
|
|
6
|
+
handleCurrencySelect: (currency: string) => void;
|
|
7
|
+
chainId: ChainId;
|
|
8
|
+
onDismiss?: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const TokenSelectorModal: React.FC<TokenSelectorModalProps>;
|
|
11
|
+
export default TokenSelectorModal;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
3
|
+
declare const TokenSelectorPanel: ({ typedValue, setTypedValue, selectedToken, chainId, handleValueBtn, handleCurrencySelect, enableZap, tokenBalance, selectedTokenPrice, bondPrincipalToken, inputDisabled, }: {
|
|
4
|
+
typedValue: string;
|
|
5
|
+
setTypedValue: (value: React.SetStateAction<string>) => void;
|
|
6
|
+
selectedToken?: "NATIVE" | Token;
|
|
7
|
+
chainId: ChainId;
|
|
8
|
+
handleValueBtn?: (value: string) => void;
|
|
9
|
+
handleCurrencySelect: (value: string) => void;
|
|
10
|
+
enableZap?: boolean;
|
|
11
|
+
tokenBalance?: string;
|
|
12
|
+
selectedTokenPrice?: number;
|
|
13
|
+
bondPrincipalToken?: Token;
|
|
14
|
+
inputDisabled?: boolean;
|
|
15
|
+
}) => React.JSX.Element;
|
|
16
|
+
export default TokenSelectorPanel;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface TooltipProps {
|
|
3
|
+
earnTokenContract: string;
|
|
4
|
+
earnTokenSymbol: string;
|
|
5
|
+
bondContract: string;
|
|
6
|
+
projectLink?: string;
|
|
7
|
+
twitter?: string;
|
|
8
|
+
audit?: string;
|
|
9
|
+
chain: number;
|
|
10
|
+
isSoldOut?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const BondInfoTooltip: React.FunctionComponent<TooltipProps>;
|
|
13
|
+
export default BondInfoTooltip;
|