@ape.swap/bonds-sdk 1.0.1 → 1.0.2-seedify
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 +46 -1
- package/dist/components/AccordionText/index.d.ts +9 -0
- package/dist/components/BondMenu/BondMenu.d.ts +12 -0
- package/dist/components/BondMenu/useChainFilterOption.d.ts +4 -0
- package/dist/components/DisconnectedPlaceholder/index.d.ts +3 -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/ProgressBar/ProgressBar.d.ts +8 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.d.ts +14 -0
- package/dist/components/ProgressBar/styles.d.ts +2 -0
- package/dist/components/SlippageModal/index.d.ts +3 -0
- package/dist/components/TokenInfoAndName/index.d.ts +9 -0
- package/dist/components/TokenSelectorModal/TokenRow.d.ts +8 -0
- package/dist/components/TokenSelectorModal/index.d.ts +11 -0
- package/dist/components/TokenSelectorPanel/index.d.ts +15 -0
- package/dist/components/Tooltip/ButtonsRow.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.d.ts +18 -0
- package/dist/components/Tooltip/styles.d.ts +2 -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/{cjs/types/components → components/uikit-sdk}/Button/types.d.ts +14 -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/{cjs/types/components → components/uikit-sdk}/Input/Input.d.ts +1 -2
- package/dist/{cjs/types/components → components/uikit-sdk}/Input/NumericInput.d.ts +1 -3
- package/dist/components/uikit-sdk/Input/StyledInput.d.ts +11 -0
- package/dist/{esm/types/components → components/uikit-sdk}/Input/index.d.ts +1 -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/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/{esm/types/components/Dropdown → components/uikit-sdk/Select}/styles.d.ts +1 -1
- 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/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/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/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/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/TickShield.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 +110 -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/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/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/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/INEVM.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.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/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/TLOS.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/tokens/index.d.ts +22 -0
- package/dist/components/uikit-sdk/Svg/types.d.ts +171 -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/Tag/ListTag.d.ts +4 -0
- package/dist/components/uikit-sdk/Tag/Tag.d.ts +4 -0
- package/dist/components/uikit-sdk/Tag/index.d.ts +3 -0
- package/dist/components/uikit-sdk/Tag/styles.d.ts +8 -0
- package/dist/components/uikit-sdk/Tag/types.d.ts +48 -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 +17 -0
- package/dist/components/uikit-sdk/index.d.ts +11 -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 +12 -0
- package/dist/config/constants/api.d.ts +6 -0
- package/dist/config/constants/chains.d.ts +48 -0
- package/dist/config/constants/lifiRouting.d.ts +2 -0
- package/dist/config/constants/lists.d.ts +10 -0
- package/dist/config/constants/meta.d.ts +11 -0
- package/dist/config/constants/misc.d.ts +3 -0
- package/dist/config/constants/networks.d.ts +2 -0
- package/dist/config/constants/products.d.ts +21 -0
- package/dist/config/constants/queryKeys.d.ts +32 -0
- package/dist/config/constants/tokens.d.ts +3 -0
- package/dist/config/constants/tooltips.d.ts +13 -0
- package/dist/config/constants/tutorials.d.ts +7 -0
- package/dist/config/constants/zapInputTokens.d.ts +2 -0
- package/dist/config/localization/languages.d.ts +11 -0
- package/dist/contexts/Localization/Provider.d.ts +7 -0
- package/dist/contexts/Localization/helpers.d.ts +3 -0
- package/dist/contexts/Localization/index.d.ts +3 -0
- package/dist/contexts/Localization/types.d.ts +21 -0
- package/dist/contexts/Localization/useTranslation.d.ts +2 -0
- package/dist/contexts/ModalContext.d.ts +14 -0
- package/dist/contexts/RefreshContext.d.ts +10 -0
- package/dist/hooks/useCookie.d.ts +9 -0
- package/dist/hooks/useIsAbond.d.ts +3 -0
- package/dist/hooks/useModal.d.ts +3 -0
- package/dist/hooks/usePendingVesting.d.ts +5 -0
- package/dist/hooks/useRefresh.d.ts +6 -0
- package/dist/hooks/useTimer.d.ts +2 -0
- package/dist/hooks/useTokenFromZapList.d.ts +3 -0
- package/dist/hooks/useTopThreeTags.d.ts +2 -0
- package/dist/main.d.ts +7 -0
- package/dist/main.js +73325 -0
- package/dist/providers/index.d.ts +5 -0
- package/dist/scss/AccordionText.scss +11 -0
- package/dist/scss/BondMenu.scss +29 -0
- package/dist/scss/BondModal.scss +480 -0
- package/dist/scss/BondRow.scss +98 -0
- package/dist/scss/BondRowHeader.scss +124 -0
- package/dist/scss/BondRowsByChain.scss +5 -0
- package/dist/scss/BondRowsWithTitle.scss +4 -0
- package/dist/scss/Bonds.scss +18 -0
- package/dist/scss/ProgressBar.scss +13 -0
- package/dist/scss/TokenInfoName.scss +60 -0
- package/dist/scss/YourBonds.scss +203 -0
- package/dist/scss/YourBondsModal.scss +314 -0
- package/dist/scss/index.scss +12 -0
- package/dist/state/allowance/useAllowance.d.ts +15 -0
- package/dist/state/balance/useCurrencyBalance.d.ts +4 -0
- package/dist/state/bonds/useBondNFTData.d.ts +5 -0
- package/dist/state/bonds/useBondsData.d.ts +4 -0
- package/dist/state/bonds/useBondsList.d.ts +4 -0
- package/dist/state/bonds/useHotBonds.d.ts +3 -0
- package/dist/state/bonds/useUserBonds.d.ts +5 -0
- package/dist/state/price/useCurrencyPrice.d.ts +3 -0
- package/dist/state/slippage/useSlippage.d.ts +1 -0
- package/dist/state/tokenPrices/useTokenPrices.d.ts +29 -0
- package/dist/state/zap/getChainParam.d.ts +12 -0
- package/dist/state/zap/useSoulZapBondQuote.d.ts +4 -0
- package/dist/state/zap/useSoulZapTokenQuote.d.ts +3 -0
- package/dist/{cjs/types/theme → theme}/colors.d.ts +3 -2
- package/dist/types/bonds.d.ts +30 -0
- package/dist/types/yourbonds.d.ts +78 -0
- package/dist/utils/convertToTokenValue.d.ts +4 -0
- package/dist/utils/displayHelpers.d.ts +13 -0
- package/dist/utils/formatNumber.d.ts +2 -0
- package/dist/utils/formatNumbers.d.ts +36 -0
- package/dist/utils/getBalanceNumber.d.ts +4 -0
- package/dist/utils/getNativeTicker.d.ts +3 -0
- package/dist/utils/getTimePeriods.d.ts +14 -0
- package/dist/utils/index.d.ts +16 -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/roundNumber.d.ts +7 -0
- package/dist/utils/track.d.ts +7 -0
- package/dist/views/BondModal/BondModal.d.ts +14 -0
- package/dist/views/BondModal/helper.d.ts +10 -0
- package/dist/views/BondModal/index.d.ts +4 -0
- package/dist/views/Bonds/Bonds.d.ts +15 -0
- package/dist/views/Bonds/components/BondRows/BondRow.d.ts +11 -0
- package/dist/views/Bonds/components/BondRows/BondRowHeader.d.ts +15 -0
- package/dist/views/Bonds/components/BondRows/BondRowsByChain.d.ts +11 -0
- package/dist/views/Bonds/components/BondRows/BondRowsWithTitle.d.ts +12 -0
- package/dist/views/Bonds/components/BondRows/ChainTitle.d.ts +8 -0
- package/dist/views/Bonds/components/CheckURL/index.d.ts +4 -0
- package/dist/views/Bonds/index.d.ts +4 -0
- package/dist/views/Bonds/utils.d.ts +14 -0
- package/dist/views/FullBondsView/FullBondsView.d.ts +7 -0
- package/dist/views/FullBondsView/index.d.ts +3 -0
- package/dist/views/YourBonds/YourBonds.d.ts +5 -0
- package/dist/views/YourBonds/components/UserBondRow/index.d.ts +6 -0
- package/dist/views/YourBonds/fetchBillsUser.d.ts +16 -0
- package/dist/views/YourBonds/getBillNftData.d.ts +9 -0
- package/dist/views/YourBonds/index.d.ts +3 -0
- package/dist/views/YourBondsModal/YourBondsModal.d.ts +9 -0
- package/dist/views/YourBondsModal/styles.d.ts +2 -0
- package/dist/views/ZapModal/index.d.ts +14 -0
- package/dist/views/ZapModal/styles.d.ts +2 -0
- package/package.json +74 -32
- package/dist/cjs/index.js +0 -15529
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/types/App.d.ts +0 -3
- package/dist/cjs/types/components/Button/index.d.ts +0 -1
- package/dist/cjs/types/components/Dropdown/Dropdown.d.ts +0 -5
- package/dist/cjs/types/components/Dropdown/DropdownItem.d.ts +0 -4
- package/dist/cjs/types/components/Dropdown/index.d.ts +0 -3
- package/dist/cjs/types/components/Dropdown/types.d.ts +0 -58
- package/dist/cjs/types/components/Input/index.d.ts +0 -2
- package/dist/cjs/types/components/index.d.ts +0 -4
- package/dist/cjs/types/index.d.ts +0 -2
- package/dist/cjs/types/main.d.ts +0 -1
- package/dist/cjs/types/utils/numbers.d.ts +0 -1
- package/dist/cjs/types/views/ClaimLifi/ClaimLifi.d.ts +0 -8
- package/dist/cjs/types/views/ClaimLifi/components/ApiKeyInput.d.ts +0 -7
- package/dist/cjs/types/views/ClaimLifi/components/AvailableFeesComponent.d.ts +0 -10
- package/dist/cjs/types/views/ClaimLifi/components/IntegratorSelector.d.ts +0 -8
- package/dist/cjs/types/views/ClaimLifi/index.d.ts +0 -1
- package/dist/cjs/types/views/index.d.ts +0 -1
- package/dist/esm/index.js +0 -15504
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/App.d.ts +0 -3
- package/dist/esm/types/components/Button/Button.d.ts +0 -4
- package/dist/esm/types/components/Button/index.d.ts +0 -1
- package/dist/esm/types/components/Button/types.d.ts +0 -32
- package/dist/esm/types/components/Dropdown/Dropdown.d.ts +0 -5
- package/dist/esm/types/components/Dropdown/DropdownItem.d.ts +0 -4
- package/dist/esm/types/components/Dropdown/index.d.ts +0 -3
- package/dist/esm/types/components/Dropdown/types.d.ts +0 -58
- package/dist/esm/types/components/Flex/index.d.ts +0 -5
- package/dist/esm/types/components/Input/Input.d.ts +0 -10
- package/dist/esm/types/components/Input/NumericInput.d.ts +0 -11
- package/dist/esm/types/components/Text/index.d.ts +0 -4
- package/dist/esm/types/components/Text/types.d.ts +0 -23
- package/dist/esm/types/components/index.d.ts +0 -4
- package/dist/esm/types/index.d.ts +0 -2
- package/dist/esm/types/main.d.ts +0 -1
- package/dist/esm/types/theme/base.d.ts +0 -103
- package/dist/esm/types/theme/colors.d.ts +0 -88
- package/dist/esm/types/theme/components.d.ts +0 -439
- package/dist/esm/types/theme/display.d.ts +0 -2
- package/dist/esm/types/theme/index.d.ts +0 -2
- package/dist/esm/types/theme/types.d.ts +0 -10
- package/dist/esm/types/utils/numbers.d.ts +0 -1
- package/dist/esm/types/views/ClaimLifi/ClaimLifi.d.ts +0 -8
- package/dist/esm/types/views/ClaimLifi/components/ApiKeyInput.d.ts +0 -7
- package/dist/esm/types/views/ClaimLifi/components/AvailableFeesComponent.d.ts +0 -10
- package/dist/esm/types/views/ClaimLifi/components/IntegratorSelector.d.ts +0 -8
- package/dist/esm/types/views/ClaimLifi/index.d.ts +0 -1
- package/dist/esm/types/views/index.d.ts +0 -1
- package/dist/index.d.ts +0 -93
- /package/dist/{cjs/types/components → components/uikit-sdk}/Button/Button.d.ts +0 -0
- /package/dist/{cjs/types/components → components/uikit-sdk}/Button/styles.d.ts +0 -0
- /package/dist/{cjs/types/components → components/uikit-sdk}/Flex/index.d.ts +0 -0
- /package/dist/{esm/types/components/Button → components/uikit-sdk/Modal}/styles.d.ts +0 -0
- /package/dist/{cjs/types/components/Dropdown → components/uikit-sdk/Svg}/styles.d.ts +0 -0
- /package/dist/{cjs/types/components → components/uikit-sdk}/Text/index.d.ts +0 -0
- /package/dist/{cjs/types/components → components/uikit-sdk}/Text/types.d.ts +0 -0
- /package/dist/{cjs/types/theme → theme}/base.d.ts +0 -0
- /package/dist/{cjs/types/theme → theme}/components.d.ts +0 -0
- /package/dist/{cjs/types/theme → theme}/display.d.ts +0 -0
- /package/dist/{cjs/types/theme → theme}/index.d.ts +0 -0
- /package/dist/{cjs/types/theme → theme}/types.d.ts +0 -0
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
.yourbondsmodal-backdrop {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
left: 0;
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background-color: rgba(66, 66, 66, 0.5);
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
z-index: 1000;
|
|
12
|
+
overflow: auto;
|
|
13
|
+
padding: 50px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.yourbondsmodal-content {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
border-radius: 10px;
|
|
20
|
+
background-color: var(--theme-ui-colors-white2);
|
|
21
|
+
padding: 10px;
|
|
22
|
+
border-radius: 10px;
|
|
23
|
+
z-index: 1001;
|
|
24
|
+
max-width: 1200px;
|
|
25
|
+
min-width: 1000px;
|
|
26
|
+
height: auto;
|
|
27
|
+
max-height: 60vh;
|
|
28
|
+
min-height: 400px;
|
|
29
|
+
overflow: auto;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.yourbondsmodal-spinner {
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
height: 100vh;
|
|
37
|
+
width: 100vw;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.yourbondsmodal-header {
|
|
41
|
+
display: flex;
|
|
42
|
+
justify-content: flex-end;
|
|
43
|
+
align-items: center;
|
|
44
|
+
padding: 5px;
|
|
45
|
+
|
|
46
|
+
.svg-close {
|
|
47
|
+
height: 12px;
|
|
48
|
+
width: 12px;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.yourbondsmodal.table-container {
|
|
54
|
+
width: 100%;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: row;
|
|
57
|
+
padding-left: 10px;
|
|
58
|
+
padding-right: 10px;
|
|
59
|
+
padding-bottom: 10px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.yourbondsmodal.bondimage {
|
|
63
|
+
width: 60%;
|
|
64
|
+
height: 100%;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
padding-left: 10px;
|
|
68
|
+
padding-right: 10px;
|
|
69
|
+
padding-bottom: 10px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.yourbondsmodal.yourbondinfo {
|
|
73
|
+
width: 40%;
|
|
74
|
+
height: 100%;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
padding-left: 10px;
|
|
78
|
+
padding-right: 10px;
|
|
79
|
+
padding-bottom: 10px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.yourbondinfo.title-container {
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
font-size: 1.5rem;
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: row;
|
|
87
|
+
align-items: center;
|
|
88
|
+
padding-top: 5px;
|
|
89
|
+
padding-bottom: 5px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.title-container.bondicon {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
align-items: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.icon-container {
|
|
99
|
+
position: relative;
|
|
100
|
+
display: inline-block;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.icon-container svg {
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: -8px;
|
|
106
|
+
right: -5px;
|
|
107
|
+
z-index: 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.icon-container img {
|
|
111
|
+
display: block;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.icon-container-small {
|
|
115
|
+
position: relative;
|
|
116
|
+
display: inline-block;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.icon-container-small svg {
|
|
120
|
+
position: absolute;
|
|
121
|
+
top: -5px;
|
|
122
|
+
right: -4px;
|
|
123
|
+
z-index: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.icon-container-small img {
|
|
127
|
+
display: block;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
.title-container.tokenname {
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: row;
|
|
134
|
+
align-items: center;
|
|
135
|
+
padding-left: 10px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.title-container.tokentags {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
padding-left: 10px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.yourbondinfo.blocks-container {
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
align-items: center;
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 100%;
|
|
150
|
+
justify-content: space-around;
|
|
151
|
+
margin-bottom: 10px;
|
|
152
|
+
margin-top: 5px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.yourbondinfo-block.header {
|
|
156
|
+
color: white;
|
|
157
|
+
align-items: center;
|
|
158
|
+
width: 50%;
|
|
159
|
+
font-size: 12px;
|
|
160
|
+
font-weight: 400;
|
|
161
|
+
opacity: 0.6;
|
|
162
|
+
line-height: 14px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.yourbondinfo-block.header-title {
|
|
166
|
+
align-items: center;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.yourbondinfo-block.header-tooltip {
|
|
170
|
+
align-items: center;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.block-header.icon {
|
|
174
|
+
padding-left: 5px;
|
|
175
|
+
align-items: flex-start;
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.yourbondinfo-block.info {
|
|
180
|
+
flex-direction: row;
|
|
181
|
+
align-items: center;
|
|
182
|
+
justify-content: flex-end;
|
|
183
|
+
width: 50%;
|
|
184
|
+
display: flex;
|
|
185
|
+
background: var(--theme-ui-colors-white3);
|
|
186
|
+
border-radius: 10px;
|
|
187
|
+
padding-top: 10px;
|
|
188
|
+
padding-bottom: 10px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.block-info.icon {
|
|
192
|
+
align-items: center;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.block-info.text {
|
|
196
|
+
padding-left: 10px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.attributes-container {
|
|
200
|
+
flex-direction: column;
|
|
201
|
+
width: 100%;
|
|
202
|
+
padding-bottom: 10px;
|
|
203
|
+
align-items: center;
|
|
204
|
+
|
|
205
|
+
.attributes-header {
|
|
206
|
+
justify-content: space-between;
|
|
207
|
+
height: 24px;
|
|
208
|
+
background-color: var(--theme-ui-colors-white3);
|
|
209
|
+
padding-left: 15px;
|
|
210
|
+
padding-right: 15px;
|
|
211
|
+
width: 100%;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.yourbondinfo-block.row-vested {
|
|
216
|
+
flex-direction: row;
|
|
217
|
+
height: 50px;
|
|
218
|
+
width: 100%;
|
|
219
|
+
margin-bottom: 10px;
|
|
220
|
+
padding-left: 10px;
|
|
221
|
+
padding-right: 10px;
|
|
222
|
+
align-items: center;
|
|
223
|
+
justify-content: space-between;
|
|
224
|
+
background: var(--theme-ui-colors-white3);
|
|
225
|
+
border-radius: 10px;
|
|
226
|
+
padding-top: 10px;
|
|
227
|
+
padding-bottom: 10px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.yourbondinfo-block.row-pending {
|
|
231
|
+
flex-direction: row;
|
|
232
|
+
height: 50px;
|
|
233
|
+
width: 100%;
|
|
234
|
+
margin-bottom: 10px;
|
|
235
|
+
padding-left: 10px;
|
|
236
|
+
padding-right: 10px;
|
|
237
|
+
align-items: center;
|
|
238
|
+
justify-content: space-between;
|
|
239
|
+
background: var(--theme-ui-colors-white3);
|
|
240
|
+
border-radius: 10px;
|
|
241
|
+
padding-top: 10px;
|
|
242
|
+
padding-bottom: 10px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.yourbondinfo-block.row-claimable {
|
|
246
|
+
flex-direction: row;
|
|
247
|
+
height: 50px;
|
|
248
|
+
width: 100%;
|
|
249
|
+
margin-bottom: 10px;
|
|
250
|
+
padding-left: 10px;
|
|
251
|
+
padding-right: 10px;
|
|
252
|
+
align-items: center;
|
|
253
|
+
justify-content: space-between;
|
|
254
|
+
background: var(--theme-ui-colors-white3);
|
|
255
|
+
border-radius: 10px;
|
|
256
|
+
padding-top: 10px;
|
|
257
|
+
padding-bottom: 10px;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.yourbondinfo.button-container {
|
|
261
|
+
width: 100%;
|
|
262
|
+
padding-top: 10px;
|
|
263
|
+
display: flex;
|
|
264
|
+
flex-direction: row;
|
|
265
|
+
justify-content: space-between;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.button-container.claim {
|
|
269
|
+
justify-content: center;
|
|
270
|
+
align-items: center;
|
|
271
|
+
cursor: pointer;
|
|
272
|
+
|
|
273
|
+
.switch-button {
|
|
274
|
+
width: 300px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.claim-button {
|
|
278
|
+
width: 300px;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.button-container.transfer {
|
|
283
|
+
justify-content: center;
|
|
284
|
+
align-items: center;
|
|
285
|
+
|
|
286
|
+
.transfer-button {
|
|
287
|
+
width: 125px;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.toast {
|
|
292
|
+
position: fixed;
|
|
293
|
+
top: 50px;
|
|
294
|
+
right: 20px;
|
|
295
|
+
background-color: var(--theme-ui-colors-white2);
|
|
296
|
+
color: white;
|
|
297
|
+
font-size: 24px;
|
|
298
|
+
padding: 10px 20px;
|
|
299
|
+
border-radius: 5px;
|
|
300
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
301
|
+
z-index: 9999;
|
|
302
|
+
animation: fadein 0.5s, fadeout 0.5s 4.5s;
|
|
303
|
+
cursor: pointer;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
@keyframes fadein {
|
|
307
|
+
from { top: 0; opacity: 0; }
|
|
308
|
+
to { top: 50px; opacity: 1; }
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
@keyframes fadeout {
|
|
312
|
+
from { top: 50px; opacity: 1; }
|
|
313
|
+
to { top: 0; opacity: 0; }
|
|
314
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use 'AccordionText';
|
|
2
|
+
@use 'BondMenu';
|
|
3
|
+
@use 'BondModal';
|
|
4
|
+
@use 'BondRow';
|
|
5
|
+
@use 'BondRowHeader';
|
|
6
|
+
@use 'BondRowsByChain';
|
|
7
|
+
@use 'BondRowsWithTitle';
|
|
8
|
+
@use 'Bonds';
|
|
9
|
+
@use 'ProgressBar';
|
|
10
|
+
@use 'TokenInfoName';
|
|
11
|
+
@use 'YourBonds';
|
|
12
|
+
@use 'YourBondsModal';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
3
|
+
/**
|
|
4
|
+
* useAllowance hook: fetches the amount approved by the user for a given token
|
|
5
|
+
* useApproval hook: returns the approval state (not approved, pending or approved) and a function to approve on chain
|
|
6
|
+
* getTokenAllowance function fetches the allowance on chain
|
|
7
|
+
*/
|
|
8
|
+
export declare enum ApprovalState {
|
|
9
|
+
NOT_APPROVED = "NOT_APPROVED",
|
|
10
|
+
PENDING = "PENDING",
|
|
11
|
+
APPROVED = "APPROVED"
|
|
12
|
+
}
|
|
13
|
+
export default function useAllowance(currency: 'NATIVE' | Token | null, spender: string | null, account: string | null, chainId: ChainId | null): UseQueryResult<number>;
|
|
14
|
+
export declare const getTokenAllowance: (currency: "NATIVE" | Token | null, spender: string | null, account: string | null, chainId: ChainId | null) => Promise<number | null>;
|
|
15
|
+
export declare const useApproval: (amount: string, currency: "NATIVE" | Token | null, spender: string | null, account: string | null, chainId: ChainId | null) => [ApprovalState, () => Promise<string | null | undefined>];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
3
|
+
export default function useCurrencyBalance(currency: 'NATIVE' | Token | null, account: string | null, chainId: ChainId | null): UseQueryResult<string | undefined>;
|
|
4
|
+
export declare const getTokenBalance: (currency: "NATIVE" | Token | null, account: string | null, chainId: ChainId | null) => Promise<string | null>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
3
|
+
import { UserBillNftData } from '../../types/yourbonds';
|
|
4
|
+
export default function useBondNFTData(id?: string, billNftAddress?: string, chainId?: ChainId): UseQueryResult<UserBillNftData>;
|
|
5
|
+
export declare const getBondNFTData: (id: string, billNftAddress: string, chainId: ChainId) => Promise<UserBillNftData | undefined>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { BillsConfig } from '@ape.swap/apeswap-lists';
|
|
3
|
+
import { UserBill } from '../../types/yourbonds';
|
|
4
|
+
export default function useUserBonds(): UseQueryResult<UserBill[]>;
|
|
5
|
+
export declare const getUserBonds: (account: string, bondList: BillsConfig[]) => Promise<UserBill[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useSlippage: () => [number, (newValue: number) => void];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
3
|
+
export interface TokenPrices {
|
|
4
|
+
symbol: string | undefined;
|
|
5
|
+
address: string | undefined;
|
|
6
|
+
price: number | undefined;
|
|
7
|
+
decimals: number | undefined;
|
|
8
|
+
chainId: ChainId | undefined;
|
|
9
|
+
}
|
|
10
|
+
export default function useTokenPrices(): UseQueryResult<TokenPrices[]>;
|
|
11
|
+
export declare const getTokenPrices: () => Promise<TokenPrices[]>;
|
|
12
|
+
export declare const getBatchTokenPriceWithDexscreener: (params: {
|
|
13
|
+
chainId: ChainId;
|
|
14
|
+
tokens: {
|
|
15
|
+
address: string;
|
|
16
|
+
decimals: number;
|
|
17
|
+
lpToken: boolean;
|
|
18
|
+
symbol: string;
|
|
19
|
+
totalSupply?: number;
|
|
20
|
+
}[];
|
|
21
|
+
}) => Promise<TokenPrices[]>;
|
|
22
|
+
export declare const getDexScreenerChainName: (chainId: ChainId) => string | undefined;
|
|
23
|
+
type TokenRecord = {
|
|
24
|
+
[k: string]: Token;
|
|
25
|
+
};
|
|
26
|
+
export declare function getTokenPricesV2FromPriceGetter(tokensToCall: TokenRecord, chain: ChainId, lpTokens?: boolean): Promise<any>;
|
|
27
|
+
export declare function getPriceGetterCallData(tokensToCall: TokenRecord, // replace 'any' with the actual type
|
|
28
|
+
supportedChainId: ChainId, lpTokens: boolean): (string | number | undefined)[][];
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ChainId, Protocols } from '@ape.swap/apeswap-lists';
|
|
2
|
+
declare enum NetworkNames {
|
|
3
|
+
ETHEREUM = "eth",
|
|
4
|
+
BNB = "bnb",
|
|
5
|
+
POLYGON = "pol",
|
|
6
|
+
ARBITRUM = "arb",
|
|
7
|
+
LINEA = "lna",
|
|
8
|
+
BASE = "bas"
|
|
9
|
+
}
|
|
10
|
+
export declare const getChainParam: (chain?: ChainId) => NetworkNames | null;
|
|
11
|
+
export declare const getLpType: (protocol?: Protocols) => "ichi" | "solidly" | "univ2" | null;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Token } from '@ape.swap/apeswap-lists';
|
|
2
|
+
import { BondsData } from '../../types/bonds';
|
|
3
|
+
declare const useSoulZapBondQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, bond: BondsData | undefined, account?: string) => [loading: boolean, response: any, estimateOutput: string];
|
|
4
|
+
export default useSoulZapBondQuote;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
2
|
+
declare const useSoulZapTokenQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, outputToken: Token | undefined, chainId: ChainId, account?: string) => [loading: boolean, response: any, estimateOutput: string];
|
|
3
|
+
export default useSoulZapTokenQuote;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const colors: {
|
|
2
2
|
white1: string;
|
|
3
3
|
white2: string;
|
|
4
4
|
white3: string;
|
|
@@ -7,6 +7,7 @@ declare const abondColors: {
|
|
|
7
7
|
brandPrimary140: string;
|
|
8
8
|
navBar: string;
|
|
9
9
|
primaryButton: string;
|
|
10
|
+
primaryShade: string;
|
|
10
11
|
secondary: string;
|
|
11
12
|
footer: string;
|
|
12
13
|
success: string;
|
|
@@ -85,4 +86,4 @@ declare const abondColors: {
|
|
|
85
86
|
bg2: string;
|
|
86
87
|
progressBar: string;
|
|
87
88
|
};
|
|
88
|
-
export default
|
|
89
|
+
export default colors;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
2
|
+
export interface BondsData {
|
|
3
|
+
index: number;
|
|
4
|
+
cmcId?: number;
|
|
5
|
+
chainId: ChainId;
|
|
6
|
+
type: string;
|
|
7
|
+
discount: number;
|
|
8
|
+
billAddress: string;
|
|
9
|
+
billNftAddress: string;
|
|
10
|
+
soldOut: boolean;
|
|
11
|
+
inactive: boolean;
|
|
12
|
+
trueBillPrice: string;
|
|
13
|
+
maxTotalPayout: string;
|
|
14
|
+
totalPayoutGiven: string;
|
|
15
|
+
maxPayout: string;
|
|
16
|
+
tokensRemaining: string;
|
|
17
|
+
showcaseTokenName: string;
|
|
18
|
+
vestingTerm: number;
|
|
19
|
+
principalTokenPrice: string;
|
|
20
|
+
payoutTokenPrice: string;
|
|
21
|
+
tags?: string[];
|
|
22
|
+
shortDescription?: string;
|
|
23
|
+
fullDescription?: string;
|
|
24
|
+
twitter?: string;
|
|
25
|
+
projectLink?: string;
|
|
26
|
+
audit?: string;
|
|
27
|
+
billVersion?: string;
|
|
28
|
+
earnToken: Token;
|
|
29
|
+
lpToken: Token;
|
|
30
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { BondsData } from './bonds';
|
|
2
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
3
|
+
export interface UserOwnedBillsData {
|
|
4
|
+
index: number;
|
|
5
|
+
userOwnedBills: UserBill[];
|
|
6
|
+
}
|
|
7
|
+
export interface UserBill {
|
|
8
|
+
address: string;
|
|
9
|
+
id: string;
|
|
10
|
+
vesting: string;
|
|
11
|
+
payout: string;
|
|
12
|
+
totalPayout?: string;
|
|
13
|
+
truePricePaid: string;
|
|
14
|
+
lastBlockTimestamp: string;
|
|
15
|
+
pendingRewards: string;
|
|
16
|
+
billNftAddress: string;
|
|
17
|
+
bond: BondsData;
|
|
18
|
+
}
|
|
19
|
+
export interface UserBillNftData {
|
|
20
|
+
id: number;
|
|
21
|
+
tokenId: number;
|
|
22
|
+
attributes: {
|
|
23
|
+
trait_type: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
chainId: ChainId;
|
|
27
|
+
contractAddress: string;
|
|
28
|
+
description: string;
|
|
29
|
+
image: string;
|
|
30
|
+
name: string;
|
|
31
|
+
data: {
|
|
32
|
+
billContract: string;
|
|
33
|
+
billNftAddress: string;
|
|
34
|
+
billNftId: number;
|
|
35
|
+
blockNumber: number;
|
|
36
|
+
bondArtCollection: string;
|
|
37
|
+
bondPartner: string;
|
|
38
|
+
bondVersion: string;
|
|
39
|
+
chainId: ChainId;
|
|
40
|
+
createTransactionHash: string;
|
|
41
|
+
createdAddressOwner: string;
|
|
42
|
+
createdAt: number;
|
|
43
|
+
deposit: number;
|
|
44
|
+
dollarValue: number;
|
|
45
|
+
expires: number;
|
|
46
|
+
pairName: string;
|
|
47
|
+
payout: number;
|
|
48
|
+
payoutToken: string;
|
|
49
|
+
payoutTokenData: {
|
|
50
|
+
address: string;
|
|
51
|
+
name: string;
|
|
52
|
+
symbol: string;
|
|
53
|
+
decimals: {
|
|
54
|
+
[chainId: number]: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
payoutTokenPrice: string;
|
|
58
|
+
principalToken: string;
|
|
59
|
+
token0: {
|
|
60
|
+
address: string;
|
|
61
|
+
symbol: string;
|
|
62
|
+
name: string;
|
|
63
|
+
decimals: {
|
|
64
|
+
[chainId: number]: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
token1: {
|
|
68
|
+
address: string;
|
|
69
|
+
symbol: string;
|
|
70
|
+
name: string;
|
|
71
|
+
decimals: {
|
|
72
|
+
[chainId: number]: number;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type: string;
|
|
76
|
+
vestingPeriodSeconds: number;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UserBill } from '../types/yourbonds';
|
|
2
|
+
import { BondsData } from '../types/bonds';
|
|
3
|
+
export declare const claimable: (userBill: UserBill) => number;
|
|
4
|
+
export declare const earnTokenPrice: (bond: BondsData) => string;
|
|
5
|
+
export declare const totalPending: (userBill: UserBill) => number;
|
|
6
|
+
export declare const vestingTimeRemaining: (userBill: UserBill) => {
|
|
7
|
+
years: number;
|
|
8
|
+
months: number;
|
|
9
|
+
days: number;
|
|
10
|
+
hours: number;
|
|
11
|
+
minutes: number;
|
|
12
|
+
seconds: number;
|
|
13
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Currency, CurrencyAmount, Price } from '@ape.swap/sdk-core';
|
|
2
|
+
export declare const currencyAmountToPreciseFloat: (currencyAmount: CurrencyAmount<Currency> | undefined) => number | undefined;
|
|
3
|
+
export declare const priceToPreciseFloat: (price: Price<Currency, Currency> | undefined) => number | undefined;
|
|
4
|
+
interface FormatDollarArgs {
|
|
5
|
+
num: number | undefined | null;
|
|
6
|
+
isPrice?: boolean;
|
|
7
|
+
lessPreciseStablecoinValues?: boolean;
|
|
8
|
+
digits?: number;
|
|
9
|
+
round?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns a USD dollar or equivalent denominated numerical value formatted
|
|
13
|
+
* in human readable string for use in template.
|
|
14
|
+
*
|
|
15
|
+
* Adheres to guidelines for prices and other numbers defined here:
|
|
16
|
+
* https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0
|
|
17
|
+
* @param num numerical value denominated in USD or USD equivalent
|
|
18
|
+
* @param isPrice whether the amount represents a price or not
|
|
19
|
+
* @param lessPreciseStablecoinValues whether or not we should show less precise values for
|
|
20
|
+
* stablecoins (around 1$ in value always) for the sake of readability
|
|
21
|
+
* @param digits number of digits after the decimal for non-price amounts
|
|
22
|
+
* @param round whether or not to round up non-price amounts
|
|
23
|
+
*/
|
|
24
|
+
export declare const formatDollar: ({ num, isPrice, lessPreciseStablecoinValues, digits, round, }: FormatDollarArgs) => string;
|
|
25
|
+
export declare const formatValue: ({ num, digits, round }: any) => string;
|
|
26
|
+
/**
|
|
27
|
+
* Returns a numerical amount of any token formatted in human readable string for use in template.
|
|
28
|
+
*
|
|
29
|
+
* For transaction review numbers, such as token quantities, NFT price (token-denominated),
|
|
30
|
+
* network fees, transaction history items. Adheres to guidelines defined here:
|
|
31
|
+
* https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0
|
|
32
|
+
* @param num numerical value denominated in any token
|
|
33
|
+
* @param maxDigits the maximum number of digits that should be shown for the quantity
|
|
34
|
+
*/
|
|
35
|
+
export declare const formatTransactionAmount: (num: number | undefined | null, maxDigits?: number) => string;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
export declare const getBalanceNumber: (balance: BigNumber, decimals?: number) => number;
|
|
3
|
+
export declare const getFullDisplayBalance: (balance: BigNumber, decimals?: number) => string;
|
|
4
|
+
export declare const getBNWithDecimals: (balance: BigNumber | string | undefined, decimals?: number) => undefined | BigNumber;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format number of seconds into year, month, day, hour, minute, seconds
|
|
3
|
+
*
|
|
4
|
+
* @param seconds
|
|
5
|
+
*/
|
|
6
|
+
declare const getTimePeriods: (seconds: number, days?: boolean) => {
|
|
7
|
+
years: number;
|
|
8
|
+
months: number;
|
|
9
|
+
days: number;
|
|
10
|
+
hours: number;
|
|
11
|
+
minutes: number;
|
|
12
|
+
seconds: number;
|
|
13
|
+
};
|
|
14
|
+
export default getTimePeriods;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Contract } from '@ethersproject/contracts';
|
|
2
|
+
import type { JsonRpcProvider } from '@ethersproject/providers';
|
|
3
|
+
import { ChainId } from '../config/constants/chains';
|
|
4
|
+
export declare function isAddress(value: any): string | false;
|
|
5
|
+
export declare function getContract(address: string, ABI: any, provider: JsonRpcProvider, account?: string): Contract;
|
|
6
|
+
export declare function isSupportedChain(chainId: number | null | undefined): chainId is ChainId;
|
|
7
|
+
export declare function getEtherscanLink(data: string | number, type: 'transaction' | 'token' | 'address' | 'block' | 'countdown', chainId: ChainId): string;
|
|
8
|
+
/**
|
|
9
|
+
* Prompt the user to add a custom token to metamask
|
|
10
|
+
* @param tokenAddress
|
|
11
|
+
* @param tokenSymbol
|
|
12
|
+
* @param tokenDecimals
|
|
13
|
+
* @param tokenImage
|
|
14
|
+
* @returns {boolean} true if the token has been added, false otherwise
|
|
15
|
+
*/
|
|
16
|
+
export declare const registerToken: (tokenAddress: string, tokenSymbol: string | undefined, tokenDecimals: number, tokenImage: string | undefined) => Promise<void | null>;
|