@ape.swap/bonds-sdk 1.0.780 → 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/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 +2 -2
- package/dist/components/TokenSelectorPanel/index.d.ts +1 -2
- 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 +1 -1
- 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 +7 -2
- package/dist/config/constants/tokens.d.ts +2 -2
- package/dist/hooks/useTokenFromZapList.d.ts +1 -1
- package/dist/hooks/useTopThreeTags.d.ts +2 -2
- package/dist/main.d.ts +7 -0
- package/dist/main.js +73492 -0
- package/dist/scss/BondMenu.scss +2 -2
- package/dist/scss/BondModal.scss +74 -73
- package/dist/scss/BondRow.scss +5 -5
- package/dist/scss/BondRowHeader.scss +7 -7
- package/dist/scss/Bonds.scss +2 -1
- 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 +8 -4
- 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 +1 -17
- 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 +1 -1
- package/dist/state/zap/useSoulZapBondQuote.d.ts +2 -2
- 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 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/views/BondModal/BondModal.d.ts +4 -7
- 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 +6 -9
- package/dist/views/Bonds/components/CheckURL/index.d.ts +4 -0
- package/dist/views/Bonds/index.d.ts +2 -2
- 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/package.json +19 -24
- package/dist/components/AccordionText/index.js +0 -17
- 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 -34
- package/dist/components/TokenSelectorModal/TokenRow.js +0 -18
- package/dist/components/TokenSelectorModal/index.js +0 -56
- package/dist/components/TokenSelectorPanel/index.js +0 -36
- 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 -41
- 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/price-getter-linea.json +0 -1448
- package/dist/config/abi/price-getter.json +0 -1309
- 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 -47
- package/dist/config/constants/tokens.js +0 -64
- package/dist/config/constants/tutorials.js +0 -80
- package/dist/config/constants/zapInputTokens.js +0 -356
- 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/useTokenFromZapList.js +0 -10
- 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 -18
- package/dist/state/allowance/useAllowance.js +0 -148
- package/dist/state/balance/useCurrencyBalance.js +0 -80
- package/dist/state/price/useCurrencyPrice.js +0 -397
- package/dist/state/zap/getChainParam.js +0 -34
- package/dist/state/zap/useSoulZapBondQuote.js +0 -177
- package/dist/state/zap/useSoulZapTokenQuote.js +0 -167
- 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/getNativeTicker.js +0 -8
- 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 -300
- 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/Bonds/index.js +0 -18
- 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/views/ZapModal/index.js +0 -150
- package/dist/views/ZapModal/styles.js +0 -35
- /package/dist/{enum → config/constants}/tooltips.d.ts +0 -0
package/dist/scss/BondMenu.scss
CHANGED
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
.filters.desktop-rec {
|
|
14
14
|
display: flex;
|
|
15
15
|
width: 100%;
|
|
16
|
-
justify-content: end;
|
|
16
|
+
justify-content: flex-end;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.filters.mobile-rec {
|
|
20
20
|
display: flex;
|
|
21
21
|
width: 100%;
|
|
22
|
-
justify-content:
|
|
22
|
+
justify-content: flex-end;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.filters.clear-all {
|
package/dist/scss/BondModal.scss
CHANGED
|
@@ -11,41 +11,38 @@
|
|
|
11
11
|
z-index: 100;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
.modal {
|
|
15
|
+
width: fit-content !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
14
18
|
.modal-content {
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
border-radius: 10px;
|
|
18
|
-
background-color: var(--theme-ui-colors-white2);
|
|
19
|
-
padding: 10px;
|
|
20
|
-
border-radius: 10px;
|
|
21
|
-
z-index: 1001;
|
|
22
|
-
max-width: 1100px;
|
|
23
|
-
min-width: 700px;
|
|
24
|
-
height: auto;
|
|
25
|
-
max-height: 80vh;
|
|
26
|
-
overflow-y: auto;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.modal-header {
|
|
30
19
|
display: flex;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
border-radius: 10px;
|
|
22
|
+
background-color: var(--theme-ui-colors-white2);
|
|
23
|
+
border-radius: 10px;
|
|
24
|
+
z-index: 1001;
|
|
25
|
+
width: 100%;
|
|
26
|
+
max-width: 700px;
|
|
27
|
+
min-width: 700px;
|
|
28
|
+
}
|
|
34
29
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
width: 12px;
|
|
38
|
-
cursor: pointer;
|
|
39
|
-
}
|
|
30
|
+
.gpt {
|
|
31
|
+
max-width: 1100px;
|
|
40
32
|
}
|
|
41
33
|
|
|
42
34
|
.modaltable-container {
|
|
43
35
|
width: 100%;
|
|
44
36
|
display: flex;
|
|
45
37
|
flex-direction: column;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.slippage-cog {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 3px;
|
|
44
|
+
right: -3px;
|
|
45
|
+
cursor: pointer;
|
|
49
46
|
}
|
|
50
47
|
|
|
51
48
|
.modaltable-container.title-container {
|
|
@@ -97,17 +94,17 @@
|
|
|
97
94
|
}
|
|
98
95
|
|
|
99
96
|
.title-container.bondname {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: row;
|
|
99
|
+
align-items: center;
|
|
100
|
+
padding-left: 10px;
|
|
104
101
|
}
|
|
105
102
|
|
|
106
103
|
.title-container.bondname-small {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: row;
|
|
106
|
+
align-items: center;
|
|
107
|
+
padding-left: 10px;
|
|
111
108
|
}
|
|
112
109
|
|
|
113
110
|
.title-container.price-container {
|
|
@@ -135,7 +132,7 @@
|
|
|
135
132
|
|
|
136
133
|
.modaltable-container.description-container {
|
|
137
134
|
display: flex;
|
|
138
|
-
align-items: start;
|
|
135
|
+
align-items: flex-start;
|
|
139
136
|
padding-top: 10px;
|
|
140
137
|
padding-bottom: 10px;
|
|
141
138
|
font-weight: normal;
|
|
@@ -172,7 +169,7 @@
|
|
|
172
169
|
|
|
173
170
|
.header-icon {
|
|
174
171
|
padding-left: 5px;
|
|
175
|
-
align-items: start;
|
|
172
|
+
align-items: flex-start;
|
|
176
173
|
cursor: pointer;
|
|
177
174
|
}
|
|
178
175
|
|
|
@@ -241,7 +238,7 @@
|
|
|
241
238
|
|
|
242
239
|
.row-container.premium-icon {
|
|
243
240
|
padding-left: 5px;
|
|
244
|
-
align-items: start;
|
|
241
|
+
align-items: flex-start;
|
|
245
242
|
cursor: pointer;
|
|
246
243
|
}
|
|
247
244
|
|
|
@@ -345,7 +342,6 @@
|
|
|
345
342
|
width: 190px;
|
|
346
343
|
height: 40px;
|
|
347
344
|
justify-content: space-between;
|
|
348
|
-
cursor: pointer;
|
|
349
345
|
}
|
|
350
346
|
|
|
351
347
|
.modaltable-container.button-container {
|
|
@@ -384,26 +380,26 @@
|
|
|
384
380
|
}
|
|
385
381
|
|
|
386
382
|
.modaltable-container.accordion-container {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
383
|
+
display: flex;
|
|
384
|
+
width: 100%;
|
|
385
|
+
padding-top: 10px;
|
|
390
386
|
}
|
|
391
387
|
|
|
392
388
|
.toast {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
389
|
+
position: fixed;
|
|
390
|
+
top: 50px;
|
|
391
|
+
right: 20px;
|
|
392
|
+
background-color: var(--theme-ui-colors-white2);
|
|
393
|
+
color: white;
|
|
394
|
+
font-size: 24px;
|
|
395
|
+
padding: 10px 20px;
|
|
396
|
+
border-radius: 5px;
|
|
397
|
+
height: 75px;
|
|
398
|
+
align-items: center;
|
|
399
|
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
400
|
+
z-index: 9999;
|
|
401
|
+
animation: fadein 0.5s, fadeout 0.5s 4.5s;
|
|
402
|
+
cursor: pointer;
|
|
407
403
|
}
|
|
408
404
|
|
|
409
405
|
@keyframes fadein {
|
|
@@ -437,43 +433,48 @@
|
|
|
437
433
|
}
|
|
438
434
|
|
|
439
435
|
.font-small {
|
|
440
|
-
|
|
436
|
+
font-size: 14px;
|
|
441
437
|
}
|
|
442
438
|
|
|
443
439
|
.font-x-small {
|
|
444
|
-
|
|
440
|
+
font-size: 12px;
|
|
445
441
|
}
|
|
446
442
|
|
|
447
443
|
.text-highlight {
|
|
448
|
-
|
|
444
|
+
color: #38A611;
|
|
449
445
|
}
|
|
450
446
|
|
|
451
447
|
.paragraph-spaced {
|
|
452
|
-
|
|
448
|
+
line-height: 150%;
|
|
453
449
|
}
|
|
454
450
|
|
|
455
451
|
.button-narrow {
|
|
456
|
-
|
|
452
|
+
width: 190px !important;
|
|
457
453
|
}
|
|
458
454
|
|
|
459
455
|
.fading-hr {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
456
|
+
border: none;
|
|
457
|
+
height: 1px; /* Adjust thickness */
|
|
458
|
+
background: linear-gradient(to right, transparent, white, transparent); /* White fades to transparent */
|
|
459
|
+
width: 100%; /* Full width */
|
|
460
|
+
margin: 20px 0; /* Adjust margin for spacing */
|
|
465
461
|
}
|
|
466
462
|
|
|
467
463
|
span.flex-inline {
|
|
468
|
-
|
|
464
|
+
display: contents;
|
|
469
465
|
}
|
|
470
466
|
|
|
471
467
|
.footer-details {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
468
|
+
margin-left: -10px !important;
|
|
469
|
+
margin-right: -10px !important;
|
|
470
|
+
margin-bottom: -10px !important;
|
|
471
|
+
margin-top: 20px !important;
|
|
472
|
+
height: 50px;
|
|
473
|
+
align-items: center;
|
|
474
|
+
border-top: 1px solid #FFFFFF;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.expand-icon {
|
|
478
|
+
height: 20px;
|
|
479
|
+
fill: #38A611;;
|
|
479
480
|
}
|
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
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';
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
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
|
+
*/
|
|
3
8
|
export declare enum ApprovalState {
|
|
4
|
-
UNKNOWN = "UNKNOWN",
|
|
5
9
|
NOT_APPROVED = "NOT_APPROVED",
|
|
6
10
|
PENDING = "PENDING",
|
|
7
11
|
APPROVED = "APPROVED"
|
|
8
12
|
}
|
|
9
|
-
export default function useAllowance(
|
|
10
|
-
export declare const getTokenAllowance: (
|
|
11
|
-
export declare const useApproval: (amount: string, currency: "NATIVE" | Token | null, spender: string | null, account: string | null, chainId: ChainId | null) => [ApprovalState, () => Promise<null | undefined>];
|
|
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,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[]>;
|
|
@@ -1,19 +1,3 @@
|
|
|
1
1
|
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
2
|
import { Token } from '@ape.swap/apeswap-lists';
|
|
3
|
-
export
|
|
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 useCurrencyPrice(currency: 'NATIVE' | Token | null, chainId: ChainId | null): import("@tanstack/react-query").UseQueryResult<TokenPrice | null, Error>;
|
|
11
|
-
export declare const getTokenPrice: (currency: "NATIVE" | Token | null, chainId: ChainId | null) => Promise<TokenPrice | null>;
|
|
12
|
-
export declare const getDexScreenerChainName: (chainId: ChainId) => string | undefined;
|
|
13
|
-
type TokenRecord = {
|
|
14
|
-
[k: string]: Token;
|
|
15
|
-
};
|
|
16
|
-
export declare function getTokenPricesV2FromPriceGetter(tokensToCall: TokenRecord, chain: ChainId, lpTokens?: boolean): Promise<any>;
|
|
17
|
-
export declare function getPriceGetterCallData(tokensToCall: TokenRecord, // replace 'any' with the actual type
|
|
18
|
-
supportedChainId: ChainId, lpTokens: boolean): (string | number | undefined)[][];
|
|
19
|
-
export {};
|
|
3
|
+
export default function useCurrencyPrice(currency: 'NATIVE' | Token | null, chainId: ChainId | null): import("../tokenPrices/useTokenPrices").TokenPrices | undefined;
|
|
@@ -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 {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Token } from '@ape.swap/apeswap-lists';
|
|
2
|
-
import {
|
|
3
|
-
declare const useSoulZapBondQuote: (typedValue: string, inputCurrency: "NATIVE" | Token | undefined, bond:
|
|
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
4
|
export default useSoulZapBondQuote;
|
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
|
}
|