@ape.swap/bonds-sdk 1.0.779 → 1.1.0-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/dist/components/AccordionText/index.d.ts +9 -0
- package/dist/components/BondRows/BondRow.d.ts +3 -2
- package/dist/components/BondRows/BondRowHeader.d.ts +2 -3
- package/dist/components/BondRows/BondRowsByChain.d.ts +3 -3
- package/dist/components/BondRows/BondRowsWithTitle.d.ts +3 -3
- package/dist/components/DisconnectedPlaceholder/index.d.ts +3 -0
- package/dist/components/SlippageModal/index.d.ts +3 -0
- package/dist/components/TokenInfoAndName/index.d.ts +3 -2
- 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/uikit-sdk/Modal/index.d.ts +1 -1
- 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 +3 -2
- package/dist/components/uikit-sdk/index.d.ts +1 -0
- package/dist/config/abi/types/Banana.d.ts +103 -126
- package/dist/config/abi/types/Bond.d.ts +176 -221
- package/dist/config/abi/types/BondNft.d.ts +160 -207
- package/dist/config/abi/types/EnsPublicResolver.d.ts +129 -205
- package/dist/config/abi/types/EnsRegistrar.d.ts +62 -82
- package/dist/config/abi/types/Erc20.d.ts +40 -52
- package/dist/config/abi/types/Erc20_bytes32.d.ts +11 -11
- package/dist/config/abi/types/JungleChef.d.ts +64 -79
- package/dist/config/abi/types/LaunchBonds.d.ts +299 -355
- package/dist/config/abi/types/LensContract.d.ts +58 -77
- package/dist/config/abi/types/LockVeAbond.d.ts +328 -434
- package/dist/config/abi/types/MigrationBond.d.ts +268 -330
- package/dist/config/abi/types/MigrationFveAbond.d.ts +83 -89
- package/dist/config/abi/types/MiniComplexRewarder.d.ts +99 -145
- package/dist/config/abi/types/Multicallv2.d.ts +35 -46
- package/dist/config/abi/types/Multicallv3.d.ts +14 -14
- package/dist/config/abi/types/NonFungibleApes.d.ts +130 -170
- package/dist/config/abi/types/NonFungibleBananas.d.ts +135 -172
- package/dist/config/abi/types/PriceGetter.d.ts +218 -255
- package/dist/config/abi/types/PriceGetterLinea.d.ts +254 -287
- package/dist/config/abi/types/PriceGetterV2.d.ts +239 -276
- package/dist/config/abi/types/SousChef.d.ts +140 -177
- package/dist/config/abi/types/Treasury.d.ts +66 -69
- package/dist/config/abi/types/Weth.d.ts +53 -68
- package/dist/config/abi/types/Zap.d.ts +97 -141
- package/dist/config/abi/types/common.d.ts +3 -3
- package/dist/config/abi/types/factories/Banana__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/BondNft__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Bond__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Erc20__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/JungleChef__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/LensContract__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/SousChef__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Treasury__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Weth__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Zap__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/index.d.ts +25 -25
- package/dist/config/abi/types/index.d.ts +51 -51
- package/dist/config/constants/addresses.d.ts +0 -8
- package/dist/config/constants/queryKeys.d.ts +10 -2
- package/dist/config/constants/tokens.d.ts +3 -6
- package/dist/config/constants/zapInputTokens.d.ts +2 -0
- package/dist/hooks/useTokenFromZapList.d.ts +3 -0
- package/dist/hooks/useTopThreeTags.d.ts +2 -2
- package/dist/main.d.ts +7 -0
- package/dist/main.js +73492 -0
- package/dist/providers/index.d.ts +0 -3
- package/dist/scss/AccordionText.scss +11 -0
- package/dist/scss/BondMenu.scss +2 -2
- package/dist/scss/BondModal.scss +305 -234
- package/dist/scss/BondRow.scss +5 -5
- package/dist/scss/BondRowHeader.scss +7 -7
- package/dist/scss/Bonds.scss +2 -1
- package/dist/scss/TokenInfoName.scss +60 -0
- package/dist/scss/YourBonds.scss +19 -14
- package/dist/scss/YourBondsModal.scss +3 -3
- 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/types/bonds.d.ts +4 -41
- package/dist/types/yourbonds.d.ts +54 -69
- package/dist/utils/displayHelpers.d.ts +13 -0
- package/dist/utils/getNativeTicker.d.ts +3 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/views/BondModal/BondModal.d.ts +7 -6
- package/dist/views/BondModal/helper.d.ts +6 -6
- package/dist/views/BondModal/index.d.ts +2 -2
- package/dist/views/Bonds/Bonds.d.ts +7 -10
- 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 +1 -11
- package/dist/views/YourBonds/components/UserBondRow/index.d.ts +6 -0
- package/dist/views/YourBonds/fetchBillsUser.d.ts +4 -5
- package/dist/views/YourBonds/index.d.ts +3 -0
- package/dist/views/YourBondsModal/YourBondsModal.d.ts +4 -5
- package/dist/views/ZapModal/index.d.ts +14 -0
- package/dist/views/ZapModal/styles.d.ts +2 -0
- package/package.json +24 -24
- package/dist/components/BondMenu/BondMenu.js +0 -40
- package/dist/components/BondMenu/useChainFilterOption.js +0 -30
- package/dist/components/BondRows/BondRow.js +0 -81
- package/dist/components/BondRows/BondRowHeader.js +0 -12
- package/dist/components/BondRows/BondRowsByChain.js +0 -13
- package/dist/components/BondRows/BondRowsWithTitle.js +0 -20
- package/dist/components/BondRows/ChainTitle.js +0 -18
- package/dist/components/MenuSelect/MenuSelect.js +0 -36
- package/dist/components/MenuSelect/RecommendationSelector.js +0 -32
- package/dist/components/MenuSelect/types.js +0 -1
- package/dist/components/NetworkFilter/index.js +0 -66
- package/dist/components/ProgressBar/ProgressBar.js +0 -10
- package/dist/components/ProgressBar/ProgressBarWrapper.js +0 -9
- package/dist/components/ProgressBar/styles.js +0 -82
- package/dist/components/TokenInfoAndName/index.js +0 -61
- package/dist/components/Tooltip/ButtonsRow.js +0 -21
- package/dist/components/Tooltip/Tooltip.js +0 -13
- package/dist/components/Tooltip/styles.js +0 -44
- package/dist/components/uikit-sdk/Button/Button.js +0 -91
- package/dist/components/uikit-sdk/Button/IconButton.js +0 -33
- package/dist/components/uikit-sdk/Button/index.js +0 -2
- package/dist/components/uikit-sdk/Button/styles.js +0 -30
- package/dist/components/uikit-sdk/Button/types.js +0 -37
- package/dist/components/uikit-sdk/Checkbox/index.js +0 -46
- package/dist/components/uikit-sdk/Checkbox/types.js +0 -5
- package/dist/components/uikit-sdk/Flex/index.js +0 -29
- package/dist/components/uikit-sdk/Input/Input.js +0 -72
- package/dist/components/uikit-sdk/Input/NumericInput.js +0 -35
- package/dist/components/uikit-sdk/Input/StyledInput.js +0 -26
- package/dist/components/uikit-sdk/Input/index.js +0 -3
- package/dist/components/uikit-sdk/Modal/ModalFooter.js +0 -21
- package/dist/components/uikit-sdk/Modal/ModalHeader.js +0 -31
- package/dist/components/uikit-sdk/Modal/index.js +0 -46
- package/dist/components/uikit-sdk/Modal/styles.js +0 -62
- package/dist/components/uikit-sdk/Modal/types.js +0 -1
- package/dist/components/uikit-sdk/Select/Select.js +0 -61
- package/dist/components/uikit-sdk/Select/SelectItem.js +0 -40
- package/dist/components/uikit-sdk/Select/index.js +0 -2
- package/dist/components/uikit-sdk/Select/styles.js +0 -50
- package/dist/components/uikit-sdk/Select/types.js +0 -37
- package/dist/components/uikit-sdk/Skeleton/index.js +0 -31
- package/dist/components/uikit-sdk/Skeleton/styles.js +0 -40
- package/dist/components/uikit-sdk/Skeleton/types.js +0 -10
- package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js +0 -17
- package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js +0 -17
- package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Bridge.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Bubble.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Calculator.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Calendar.js +0 -5
- package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Card.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Chain.js +0 -9
- package/dist/components/uikit-sdk/Svg/Icons/Chart.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Chat.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Close.js +0 -9
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Collapse.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Copy.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Docs.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Error.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Explorer.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/External.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Farm.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Fav.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Frame.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Gnana.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Home.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Hot.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Info.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Island.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Language.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Logout.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Message.js +0 -9
- package/dist/components/uikit-sdk/Svg/Icons/Migrate.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Moon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/More.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/NFA.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Play.js +0 -5
- package/dist/components/uikit-sdk/Svg/Icons/Pool.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Positions.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/ProfileIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Question.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Quiz.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Receipt.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Rocket.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Search.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Send.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Settings.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Share.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Success.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js +0 -5
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/TickShield.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Trade.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Trash.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/URL.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Vaults.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Verified.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Wallet.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Warning.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Watch.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Website.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/XNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/index.js +0 -112
- package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/types.js +0 -1
- package/dist/components/uikit-sdk/Svg/index.js +0 -347
- package/dist/components/uikit-sdk/Svg/styles.js +0 -16
- package/dist/components/uikit-sdk/Svg/tokens/ABOND.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BANANA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js +0 -5
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/GNANA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js +0 -5
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/index.js +0 -22
- package/dist/components/uikit-sdk/Svg/types.js +0 -165
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js +0 -5
- package/dist/components/uikit-sdk/Svg/walletIcons/index.js +0 -18
- package/dist/components/uikit-sdk/Tag/ListTag.js +0 -20
- package/dist/components/uikit-sdk/Tag/Tag.js +0 -42
- package/dist/components/uikit-sdk/Tag/index.js +0 -2
- package/dist/components/uikit-sdk/Tag/styles.js +0 -44
- package/dist/components/uikit-sdk/Tag/types.js +0 -34
- package/dist/components/uikit-sdk/Text/index.js +0 -35
- package/dist/components/uikit-sdk/Text/types.js +0 -13
- package/dist/components/uikit-sdk/TokenImage/index.js +0 -18
- package/dist/components/uikit-sdk/TooltipBubble/index.js +0 -66
- package/dist/components/uikit-sdk/TooltipBubble/styles.js +0 -60
- package/dist/components/uikit-sdk/TooltipBubble/types.js +0 -8
- package/dist/components/uikit-sdk/index.js +0 -12
- package/dist/config/abi/bond.json +0 -450
- package/dist/config/abi/erc20.json +0 -117
- package/dist/config/abi/multicallv2.json +0 -143
- package/dist/config/abi/types/Banana.js +0 -1
- package/dist/config/abi/types/Bond.js +0 -1
- package/dist/config/abi/types/BondNft.js +0 -1
- package/dist/config/abi/types/EnsPublicResolver.js +0 -1
- package/dist/config/abi/types/EnsRegistrar.js +0 -1
- package/dist/config/abi/types/Erc20.js +0 -1
- package/dist/config/abi/types/Erc20_bytes32.js +0 -1
- package/dist/config/abi/types/JungleChef.js +0 -1
- package/dist/config/abi/types/LaunchBonds.js +0 -1
- package/dist/config/abi/types/LensContract.js +0 -1
- package/dist/config/abi/types/LockVeAbond.js +0 -1
- package/dist/config/abi/types/MigrationBond.js +0 -1
- package/dist/config/abi/types/MigrationFveAbond.js +0 -1
- package/dist/config/abi/types/MiniComplexRewarder.js +0 -1
- package/dist/config/abi/types/Multicallv2.js +0 -1
- package/dist/config/abi/types/Multicallv3.js +0 -1
- package/dist/config/abi/types/NonFungibleApes.js +0 -1
- package/dist/config/abi/types/NonFungibleBananas.js +0 -1
- package/dist/config/abi/types/PriceGetter.js +0 -1
- package/dist/config/abi/types/PriceGetterLinea.js +0 -1
- package/dist/config/abi/types/PriceGetterV2.js +0 -1
- package/dist/config/abi/types/SousChef.js +0 -1
- package/dist/config/abi/types/Treasury.js +0 -1
- package/dist/config/abi/types/Weth.js +0 -1
- package/dist/config/abi/types/Zap.js +0 -1
- package/dist/config/abi/types/common.js +0 -1
- package/dist/config/abi/types/factories/Banana__factory.js +0 -628
- package/dist/config/abi/types/factories/BondNft__factory.js +0 -951
- package/dist/config/abi/types/factories/Bond__factory.js +0 -1042
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +0 -833
- package/dist/config/abi/types/factories/EnsRegistrar__factory.js +0 -439
- package/dist/config/abi/types/factories/Erc20__factory.js +0 -239
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +0 -47
- package/dist/config/abi/types/factories/JungleChef__factory.js +0 -326
- package/dist/config/abi/types/factories/LaunchBonds__factory.js +0 -2031
- package/dist/config/abi/types/factories/LensContract__factory.js +0 -338
- package/dist/config/abi/types/factories/LockVeAbond__factory.js +0 -2215
- package/dist/config/abi/types/factories/MigrationBond__factory.js +0 -1656
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +0 -346
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +0 -586
- package/dist/config/abi/types/factories/Multicallv2__factory.js +0 -160
- package/dist/config/abi/types/factories/Multicallv3__factory.js +0 -109
- package/dist/config/abi/types/factories/NonFungibleApes__factory.js +0 -810
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +0 -756
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +0 -1465
- package/dist/config/abi/types/factories/PriceGetterV2__factory.js +0 -1364
- package/dist/config/abi/types/factories/PriceGetter__factory.js +0 -1326
- package/dist/config/abi/types/factories/SousChef__factory.js +0 -666
- package/dist/config/abi/types/factories/Treasury__factory.js +0 -309
- package/dist/config/abi/types/factories/Weth__factory.js +0 -296
- package/dist/config/abi/types/factories/Zap__factory.js +0 -889
- package/dist/config/abi/types/factories/index.js +0 -28
- package/dist/config/abi/types/index.js +0 -26
- package/dist/config/constants/addresses.js +0 -116
- package/dist/config/constants/api.js +0 -6
- package/dist/config/constants/chains.js +0 -436
- package/dist/config/constants/lifiRouting.js +0 -6
- package/dist/config/constants/lists.js +0 -21
- package/dist/config/constants/meta.js +0 -92
- package/dist/config/constants/misc.js +0 -4
- package/dist/config/constants/networks.js +0 -44
- package/dist/config/constants/products.js +0 -58
- package/dist/config/constants/queryKeys.js +0 -24
- package/dist/config/constants/tokens.js +0 -452
- package/dist/config/constants/tutorials.js +0 -80
- package/dist/config/localization/languages.js +0 -83
- package/dist/config/localization/translations.json +0 -918
- package/dist/contexts/Localization/Provider.js +0 -134
- package/dist/contexts/Localization/helpers.js +0 -63
- package/dist/contexts/Localization/index.js +0 -2
- package/dist/contexts/Localization/types.js +0 -1
- package/dist/contexts/Localization/useTranslation.js +0 -10
- package/dist/contexts/ModalContext.js +0 -67
- package/dist/contexts/RefreshContext.js +0 -78
- package/dist/enum/apeswaplists.d.ts +0 -418
- package/dist/enum/apeswaplists.js +0 -152
- package/dist/enum/tooltips.js +0 -13
- package/dist/hooks/useCookie.js +0 -29
- package/dist/hooks/useIsAbond.js +0 -10
- package/dist/hooks/useModal.js +0 -39
- package/dist/hooks/usePendingVesting.js +0 -13
- package/dist/hooks/useRefresh.js +0 -7
- package/dist/hooks/useTimer.js +0 -13
- package/dist/hooks/useTopThreeTags.js +0 -25
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -6
- package/dist/providers/index.js +0 -12
- package/dist/theme/base.js +0 -123
- package/dist/theme/colors.js +0 -93
- package/dist/theme/components.js +0 -338
- package/dist/theme/display.js +0 -2
- package/dist/theme/index.js +0 -15
- package/dist/theme/types.js +0 -1
- package/dist/types/bonds.js +0 -1
- package/dist/types/yourbonds.js +0 -1
- package/dist/utils/convertToTokenValue.js +0 -24
- package/dist/utils/formatNumber.js +0 -34
- package/dist/utils/formatNumbers.js +0 -148
- package/dist/utils/getBalanceNumber.js +0 -18
- package/dist/utils/getTimePeriods.js +0 -44
- package/dist/utils/index.js +0 -127
- package/dist/utils/localStorageHelpers.js +0 -47
- package/dist/utils/multicall.js +0 -90
- package/dist/utils/numbers.js +0 -111
- package/dist/utils/roundNumber.js +0 -14
- package/dist/utils/track.js +0 -17
- package/dist/views/BondModal/BondModal.js +0 -277
- package/dist/views/BondModal/helper.js +0 -54
- package/dist/views/BondModal/index.js +0 -18
- package/dist/views/Bonds/Bonds.js +0 -174
- package/dist/views/YourBonds/YourBonds.js +0 -276
- package/dist/views/YourBonds/fetchBillsUser.js +0 -235
- package/dist/views/YourBonds/getBillNftData.js +0 -109
- package/dist/views/YourBondsModal/YourBondsModal.js +0 -173
- package/dist/views/YourBondsModal/styles.js +0 -12
- /package/dist/{enum → config/constants}/tooltips.d.ts +0 -0
package/dist/scss/BondRow.scss
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
.column.column-tokens {
|
|
18
18
|
display: flex;
|
|
19
19
|
align-items: center;
|
|
20
|
-
justify-content: start;
|
|
20
|
+
justify-content: flex-start;
|
|
21
21
|
width: 40%;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
width: 100%;
|
|
26
26
|
height: 100%;
|
|
27
27
|
flex-direction: row;
|
|
28
|
-
justify-content: start;
|
|
28
|
+
justify-content: flex-start;
|
|
29
29
|
align-items: center;
|
|
30
30
|
padding-left: 20px;
|
|
31
31
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
.column.column-tokenname {
|
|
34
34
|
width: 100%;
|
|
35
35
|
flex-direction: row;
|
|
36
|
-
justify-content: start;
|
|
36
|
+
justify-content: flex-start;
|
|
37
37
|
align-items: center;
|
|
38
38
|
padding-left: 20px;
|
|
39
39
|
}
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
width: 20%;
|
|
43
43
|
flex-direction: row;
|
|
44
44
|
align-items: center;
|
|
45
|
-
justify-content: start;
|
|
45
|
+
justify-content: flex-start;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.column.column-bondinfo {
|
|
49
49
|
flex-direction: row;
|
|
50
50
|
align-items: center;
|
|
51
|
-
justify-content: end;
|
|
51
|
+
justify-content: flex-end;
|
|
52
52
|
width: 70%;
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: row;
|
|
13
13
|
align-items: center;
|
|
14
|
-
justify-content: end;
|
|
14
|
+
justify-content: flex-end;
|
|
15
15
|
padding-bottom: 5px;
|
|
16
16
|
width: 100%;
|
|
17
17
|
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
.column.column-tokens {
|
|
27
27
|
display: flex;
|
|
28
28
|
align-items: center;
|
|
29
|
-
justify-content: start;
|
|
29
|
+
justify-content: flex-start;
|
|
30
30
|
width: 40%;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
width: 100%;
|
|
39
39
|
height: 100%;
|
|
40
40
|
flex-direction: row;
|
|
41
|
-
justify-content: start;
|
|
41
|
+
justify-content: flex-start;
|
|
42
42
|
align-items: center;
|
|
43
43
|
padding-left: 20px;
|
|
44
44
|
}
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
.column.column-tokenname {
|
|
47
47
|
width: 100%;
|
|
48
48
|
flex-direction: row;
|
|
49
|
-
justify-content: start;
|
|
49
|
+
justify-content: flex-start;
|
|
50
50
|
align-items: center;
|
|
51
51
|
padding-left: 20px;
|
|
52
52
|
}
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
width: 20%;
|
|
56
56
|
flex-direction: row;
|
|
57
57
|
align-items: center;
|
|
58
|
-
justify-content: start;
|
|
58
|
+
justify-content: flex-start;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.column.column-bondinfo {
|
|
62
62
|
flex-direction: row;
|
|
63
63
|
align-items: center;
|
|
64
|
-
justify-content:
|
|
64
|
+
justify-content: flex-end;
|
|
65
65
|
width: 70%;
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
|
|
119
119
|
.column.header-icon {
|
|
120
120
|
padding-left: 5px;
|
|
121
|
-
align-items: start;
|
|
121
|
+
align-items: flex-start;
|
|
122
122
|
justify-content: space-around;
|
|
123
123
|
cursor: pointer;
|
|
124
124
|
}
|
package/dist/scss/Bonds.scss
CHANGED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
.tokeninfoname.container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
margin-right: 10px;
|
|
6
|
+
height: 100%;
|
|
7
|
+
align-items: center;
|
|
8
|
+
margin-left: -20px;
|
|
9
|
+
padding-left: 20px;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
border-radius: 10px;
|
|
12
|
+
|
|
13
|
+
@media (min-width: 576px) {
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
margin-right: 10px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media (min-width: 768px) {
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
margin-right: 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media (min-width: 992px) {
|
|
24
|
+
justify-content: flex-start;
|
|
25
|
+
margin-right: 0px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.tokeninfoname.gradient {
|
|
30
|
+
position: absolute;
|
|
31
|
+
z-index: 0;
|
|
32
|
+
left: 0px;
|
|
33
|
+
width: 30px;
|
|
34
|
+
height: 100%;
|
|
35
|
+
filter: blur(35px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tokeninfoname.chain {
|
|
39
|
+
position: absolute;
|
|
40
|
+
left: 0px;
|
|
41
|
+
top: 0px;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
border-radius: 10px 0px 8px 0px;
|
|
44
|
+
z-index: 5;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.tokeninfoname.tokencontainer {
|
|
48
|
+
padding-left: 6px;
|
|
49
|
+
width: 100%;
|
|
50
|
+
max-width: 170px;
|
|
51
|
+
align-items: center;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.tokeninfoname.tokentext {
|
|
55
|
+
margin-left: 10px;
|
|
56
|
+
font-size: 16px;
|
|
57
|
+
font-weight: 700;
|
|
58
|
+
width: 100%;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
}
|
package/dist/scss/YourBonds.scss
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
.yourbonds-spinner {
|
|
2
|
-
display: flex;
|
|
3
|
-
justify-content: center;
|
|
2
|
+
//display: flex;
|
|
3
|
+
//justify-content: center;
|
|
4
|
+
//align-items: center;
|
|
5
|
+
//padding-top: 100px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
padding-top: 100px;
|
|
9
|
+
padding-bottom: 100px;
|
|
10
|
+
background: var(--theme-ui-colors-white2);
|
|
4
11
|
align-items: center;
|
|
5
|
-
|
|
12
|
+
border-radius: 10px;
|
|
13
|
+
margin-top: 15px;
|
|
6
14
|
}
|
|
7
15
|
|
|
8
16
|
.yourbonds.table-container {
|
|
@@ -47,7 +55,7 @@
|
|
|
47
55
|
.yourbonds.column-tokens {
|
|
48
56
|
display: flex;
|
|
49
57
|
align-items: center;
|
|
50
|
-
justify-content: start;
|
|
58
|
+
justify-content: flex-start;
|
|
51
59
|
width: 40%;
|
|
52
60
|
}
|
|
53
61
|
|
|
@@ -59,7 +67,7 @@
|
|
|
59
67
|
width: 100%;
|
|
60
68
|
height: 100%;
|
|
61
69
|
flex-direction: row;
|
|
62
|
-
justify-content: start;
|
|
70
|
+
justify-content: flex-start;
|
|
63
71
|
align-items: center;
|
|
64
72
|
padding-left: 20px;
|
|
65
73
|
}
|
|
@@ -67,7 +75,7 @@
|
|
|
67
75
|
.yourbonds.column-bondinfo {
|
|
68
76
|
flex-direction: row;
|
|
69
77
|
align-items: center;
|
|
70
|
-
justify-content: end;
|
|
78
|
+
justify-content: flex-end;
|
|
71
79
|
width: 60%;
|
|
72
80
|
}
|
|
73
81
|
|
|
@@ -109,7 +117,7 @@
|
|
|
109
117
|
|
|
110
118
|
.yourbonds.header-icon {
|
|
111
119
|
padding-left: 5px;
|
|
112
|
-
align-items: start;
|
|
120
|
+
align-items: flex-start;
|
|
113
121
|
justify-content: space-around;
|
|
114
122
|
cursor: pointer;
|
|
115
123
|
}
|
|
@@ -139,20 +147,17 @@
|
|
|
139
147
|
flex-direction: column;
|
|
140
148
|
justify-content: center;
|
|
141
149
|
align-items: center;
|
|
142
|
-
width:
|
|
150
|
+
width: 40%;
|
|
151
|
+
max-width: 230px;
|
|
143
152
|
padding-right: 20px;
|
|
144
153
|
|
|
145
154
|
.claim-button {
|
|
146
155
|
|
|
147
|
-
height:
|
|
156
|
+
height: 35px;
|
|
148
157
|
line-height: 12px;
|
|
149
158
|
font-size: 14px;
|
|
150
159
|
font-weight: 600;
|
|
151
160
|
width: 100%;
|
|
152
|
-
|
|
153
|
-
@media (min-width: 1024px) {
|
|
154
|
-
height: 26px;
|
|
155
|
-
}
|
|
156
161
|
|
|
157
162
|
&:disabled {
|
|
158
163
|
filter: brightness(130%)
|
|
@@ -160,7 +165,7 @@
|
|
|
160
165
|
}
|
|
161
166
|
|
|
162
167
|
.switch-button {
|
|
163
|
-
height:
|
|
168
|
+
height: 35px;
|
|
164
169
|
line-height: 20px;
|
|
165
170
|
font-size: 14px;
|
|
166
171
|
font-weight: 600;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
.yourbondsmodal-header {
|
|
41
41
|
display: flex;
|
|
42
|
-
justify-content: end;
|
|
42
|
+
justify-content: flex-end;
|
|
43
43
|
align-items: center;
|
|
44
44
|
padding: 5px;
|
|
45
45
|
|
|
@@ -172,14 +172,14 @@
|
|
|
172
172
|
|
|
173
173
|
.block-header.icon {
|
|
174
174
|
padding-left: 5px;
|
|
175
|
-
align-items: start;
|
|
175
|
+
align-items: flex-start;
|
|
176
176
|
cursor: pointer;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.yourbondinfo-block.info {
|
|
180
180
|
flex-direction: row;
|
|
181
181
|
align-items: center;
|
|
182
|
-
justify-content: end;
|
|
182
|
+
justify-content: flex-end;
|
|
183
183
|
width: 50%;
|
|
184
184
|
display: flex;
|
|
185
185
|
background: var(--theme-ui-colors-white3);
|
|
@@ -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;
|
package/dist/types/bonds.d.ts
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import { ChainId } from '
|
|
2
|
-
export interface
|
|
1
|
+
import { ChainId, Token } from '@ape.swap/apeswap-lists';
|
|
2
|
+
export interface BondsData {
|
|
3
3
|
index: number;
|
|
4
4
|
cmcId?: number;
|
|
5
|
-
label: string;
|
|
6
5
|
chainId: ChainId;
|
|
7
6
|
type: string;
|
|
8
|
-
principalToken: string;
|
|
9
|
-
principalTokenName: string;
|
|
10
|
-
principalTokenDecimals: number;
|
|
11
|
-
payoutToken: string;
|
|
12
|
-
payoutTokenName: string;
|
|
13
|
-
payoutTokenDecimals: number;
|
|
14
7
|
discount: number;
|
|
15
8
|
billAddress: string;
|
|
16
9
|
billNftAddress: string;
|
|
17
|
-
initTime: number;
|
|
18
10
|
soldOut: boolean;
|
|
19
11
|
inactive: boolean;
|
|
20
12
|
trueBillPrice: string;
|
|
@@ -22,46 +14,17 @@ export interface BondsDataResponse {
|
|
|
22
14
|
totalPayoutGiven: string;
|
|
23
15
|
maxPayout: string;
|
|
24
16
|
tokensRemaining: string;
|
|
25
|
-
showcaseToken: string;
|
|
26
17
|
showcaseTokenName: string;
|
|
27
18
|
vestingTerm: number;
|
|
28
19
|
principalTokenPrice: string;
|
|
29
20
|
payoutTokenPrice: string;
|
|
30
|
-
priceUsd: string;
|
|
31
21
|
tags?: string[];
|
|
32
|
-
arr: string;
|
|
33
22
|
shortDescription?: string;
|
|
34
23
|
fullDescription?: string;
|
|
35
24
|
twitter?: string;
|
|
36
25
|
projectLink?: string;
|
|
37
26
|
audit?: string;
|
|
38
27
|
billVersion?: string;
|
|
39
|
-
earnToken:
|
|
40
|
-
lpToken:
|
|
41
|
-
}
|
|
42
|
-
export interface EarnToken {
|
|
43
|
-
active: boolean;
|
|
44
|
-
symbol: string;
|
|
45
|
-
address: {
|
|
46
|
-
[chainId: number]: string;
|
|
47
|
-
};
|
|
48
|
-
decimals: {
|
|
49
|
-
[chainId: number]: number;
|
|
50
|
-
};
|
|
51
|
-
liquidityDex: {
|
|
52
|
-
[chainId: number]: string;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export interface LpToken {
|
|
56
|
-
active: boolean;
|
|
57
|
-
symbol: string;
|
|
58
|
-
address: {
|
|
59
|
-
[chainId: number]: string;
|
|
60
|
-
};
|
|
61
|
-
decimals: {
|
|
62
|
-
[chainId: number]: number;
|
|
63
|
-
};
|
|
64
|
-
liquidityDex: {
|
|
65
|
-
[chainId: number]: string;
|
|
66
|
-
};
|
|
28
|
+
earnToken: Token;
|
|
29
|
+
lpToken: Token;
|
|
67
30
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BondsData } from './bonds';
|
|
2
|
+
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
3
3
|
export interface UserOwnedBillsData {
|
|
4
4
|
index: number;
|
|
5
5
|
userOwnedBills: UserBill[];
|
|
6
6
|
}
|
|
7
|
-
export interface ownedBillsWithNftData {
|
|
8
|
-
index: number;
|
|
9
|
-
userOwnedBillsNfts: any[];
|
|
10
|
-
}
|
|
11
7
|
export interface UserBill {
|
|
12
8
|
address: string;
|
|
13
9
|
id: string;
|
|
@@ -18,76 +14,65 @@ export interface UserBill {
|
|
|
18
14
|
lastBlockTimestamp: string;
|
|
19
15
|
pendingRewards: string;
|
|
20
16
|
billNftAddress: string;
|
|
21
|
-
|
|
22
|
-
bond: BondsDataResponse;
|
|
17
|
+
bond: BondsData;
|
|
23
18
|
}
|
|
24
19
|
export interface UserBillNftData {
|
|
25
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;
|
|
26
31
|
data: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
name: string;
|
|
51
|
-
symbol: string;
|
|
52
|
-
decimals: {
|
|
53
|
-
[chainId: number]: number;
|
|
54
|
-
};
|
|
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
55
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
};
|
|
57
|
+
payoutTokenPrice: string;
|
|
58
|
+
principalToken: string;
|
|
59
|
+
token0: {
|
|
60
|
+
address: string;
|
|
61
|
+
symbol: string;
|
|
62
|
+
name: string;
|
|
63
|
+
decimals: {
|
|
64
|
+
[chainId: number]: number;
|
|
63
65
|
};
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
};
|
|
67
|
+
token1: {
|
|
68
|
+
address: string;
|
|
69
|
+
symbol: string;
|
|
70
|
+
name: string;
|
|
71
|
+
decimals: {
|
|
72
|
+
[chainId: number]: number;
|
|
71
73
|
};
|
|
72
|
-
dollarValue: number;
|
|
73
|
-
chainId: ChainId;
|
|
74
|
-
blockNumber: number;
|
|
75
|
-
bondArtCollection: string;
|
|
76
|
-
bondPartner: string;
|
|
77
|
-
bondVersion: string;
|
|
78
|
-
createdAddressOwner: string;
|
|
79
|
-
createdAt: number;
|
|
80
|
-
payoutTokenPrice: string;
|
|
81
74
|
};
|
|
82
|
-
|
|
83
|
-
|
|
75
|
+
type: string;
|
|
76
|
+
vestingPeriodSeconds: number;
|
|
84
77
|
};
|
|
85
78
|
}
|
|
86
|
-
export interface UserBillNft {
|
|
87
|
-
image: string;
|
|
88
|
-
tokenId: string;
|
|
89
|
-
attributes: {
|
|
90
|
-
trait_type: string;
|
|
91
|
-
value: string;
|
|
92
|
-
}[];
|
|
93
|
-
}
|
|
@@ -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
|
+
};
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -13,4 +13,4 @@ export declare function getEtherscanLink(data: string | number, type: 'transacti
|
|
|
13
13
|
* @param tokenImage
|
|
14
14
|
* @returns {boolean} true if the token has been added, false otherwise
|
|
15
15
|
*/
|
|
16
|
-
export declare const registerToken: (tokenAddress: string, tokenSymbol: string | undefined, tokenDecimals: number, tokenImage: string | undefined) => Promise<
|
|
16
|
+
export declare const registerToken: (tokenAddress: string, tokenSymbol: string | undefined, tokenDecimals: number, tokenImage: string | undefined) => Promise<void | null>;
|