@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
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
export declare enum QuoteToken {
|
|
2
|
-
'BNB' = "BNB",
|
|
3
|
-
'BANANA' = "BANANA",
|
|
4
|
-
'BUSD' = "BUSD",
|
|
5
|
-
'TWT' = "TWT",
|
|
6
|
-
'UST' = "UST",
|
|
7
|
-
'ETH' = "ETH",
|
|
8
|
-
'USDT' = "USDT"
|
|
9
|
-
}
|
|
10
|
-
export declare enum PoolCategory {
|
|
11
|
-
'COMMUNITY' = "Community",
|
|
12
|
-
'APEZONE' = "ApeZone",
|
|
13
|
-
'CORE' = "Core",
|
|
14
|
-
'REAL_YIELD' = "Real Yield",
|
|
15
|
-
'JUNGLE' = "Jungle"
|
|
16
|
-
}
|
|
17
|
-
export declare enum ChainId {
|
|
18
|
-
MAINNET = 1,
|
|
19
|
-
MATIC = 137,
|
|
20
|
-
MATIC_TESTNET = 80001,
|
|
21
|
-
BSC = 56,
|
|
22
|
-
BSC_TESTNET = 97,
|
|
23
|
-
TLOS = 40,
|
|
24
|
-
ARBITRUM = 42161,
|
|
25
|
-
INEVM_TESTNET = 2424,
|
|
26
|
-
INEVM = 2525,
|
|
27
|
-
SEPOLIA = 11155111,
|
|
28
|
-
LINEA = 59144,
|
|
29
|
-
LIGHTLINK = 1890,
|
|
30
|
-
IOTA_TESTNET = 1075,
|
|
31
|
-
IOTA = 8822,
|
|
32
|
-
BASE = 8453
|
|
33
|
-
}
|
|
34
|
-
export declare enum LiquidityDex {
|
|
35
|
-
ApeSwapV2 = "ApeSwapV2",
|
|
36
|
-
ApeSwapV3 = "ApeSwapV3",
|
|
37
|
-
PancakeSwapV2 = "PancakeSwapV2",
|
|
38
|
-
PancakeSwapV3 = "PancakeSwapV3",
|
|
39
|
-
SushiSwapV3 = "SushiSwapV3",
|
|
40
|
-
UniswapV2 = "UniswapV2",
|
|
41
|
-
ThenaV1 = "ThenaV1",
|
|
42
|
-
/**
|
|
43
|
-
* Initially, LiquidityDex was for the price getter and that checks algebra pricing
|
|
44
|
-
* (gamma wraps over it so no pricing there).
|
|
45
|
-
* Now we use it for zapVersion as well where Gamma is better.
|
|
46
|
-
*/
|
|
47
|
-
Algebra = "Algebra",
|
|
48
|
-
QuickswapV2 = "QuickswapV2",
|
|
49
|
-
UniswapV3 = "UniswapV3",
|
|
50
|
-
External = "External",
|
|
51
|
-
Spartadex = "Spartadex",
|
|
52
|
-
Nile = "Nile",
|
|
53
|
-
XFAI = "XFAI",
|
|
54
|
-
Lynex = "Lynex",
|
|
55
|
-
Metavault = "Metavault",
|
|
56
|
-
Elektrik = "Elektrik",
|
|
57
|
-
Synthswap = "Synthswap",
|
|
58
|
-
Aerodrome = "Aerodrome",
|
|
59
|
-
SmarDex = "SmarDex"
|
|
60
|
-
}
|
|
61
|
-
export declare enum IchiSupportedDex {
|
|
62
|
-
Ascent = "Ascent",
|
|
63
|
-
Blueprint = "Blueprint",
|
|
64
|
-
Cleo = "Cleo",
|
|
65
|
-
Equalizer = "Equalizer",
|
|
66
|
-
Fenix = "Fenix",
|
|
67
|
-
Forge = "Forge",
|
|
68
|
-
Henjin = "Henjin",
|
|
69
|
-
Kinetix = "Kinetix",
|
|
70
|
-
Linehub = "Linehub",
|
|
71
|
-
Lynex = "Lynex",
|
|
72
|
-
Metavault = "Metavault",
|
|
73
|
-
Nile = "Nile",
|
|
74
|
-
Pancakeswap = "PancakeSwap",
|
|
75
|
-
Quickswap = "QuickSwap",
|
|
76
|
-
Ramses = "Ramses",
|
|
77
|
-
Retro = "Retro",
|
|
78
|
-
SaucerSwap = "SaucerSwap",
|
|
79
|
-
SpiritSwap = "SpiritSwap",
|
|
80
|
-
Sushiswap = "SushiSwap",
|
|
81
|
-
Thena = "Thena",
|
|
82
|
-
Thirdfy = "Thirdfy",
|
|
83
|
-
UniswapV3 = "Uniswap V3",
|
|
84
|
-
Velocore = "Velocore",
|
|
85
|
-
XSwap = "XSwap"
|
|
86
|
-
}
|
|
87
|
-
export declare enum ZapVersion {
|
|
88
|
-
External = "External",
|
|
89
|
-
ZapV1 = "ZapV1",
|
|
90
|
-
Wido = "Wido",
|
|
91
|
-
SoulZap = "SoulZap",
|
|
92
|
-
SoulZapApi = "SoulZapApi"
|
|
93
|
-
}
|
|
94
|
-
export declare enum Protocols {
|
|
95
|
-
Both = 1,
|
|
96
|
-
V2 = 2,
|
|
97
|
-
V3 = 3,
|
|
98
|
-
Algebra = 4,
|
|
99
|
-
Gamma = 5,
|
|
100
|
-
Steer = 6,
|
|
101
|
-
Solidly = 7,
|
|
102
|
-
XFAI = 8
|
|
103
|
-
}
|
|
104
|
-
export interface FarmStyles {
|
|
105
|
-
deprecated: string;
|
|
106
|
-
warning: string;
|
|
107
|
-
featured: string;
|
|
108
|
-
inactive: string;
|
|
109
|
-
}
|
|
110
|
-
export interface Token {
|
|
111
|
-
symbol: string;
|
|
112
|
-
address: Partial<Record<ChainId, string>>;
|
|
113
|
-
active: boolean;
|
|
114
|
-
decimals?: Partial<Record<ChainId, number | null>>;
|
|
115
|
-
dontFetch?: boolean;
|
|
116
|
-
lpToken?: boolean;
|
|
117
|
-
price?: number;
|
|
118
|
-
liquidityDex?: Partial<Record<ChainId, LiquidityDex>>;
|
|
119
|
-
getLpUrl?: Partial<Record<ChainId, string>>;
|
|
120
|
-
ichiUnderlyingDex?: IchiSupportedDex;
|
|
121
|
-
}
|
|
122
|
-
export interface MasterChef {
|
|
123
|
-
pid: Partial<Record<ChainId, number>>;
|
|
124
|
-
address: Partial<Record<ChainId, string>>;
|
|
125
|
-
rewardsPerBlock: Partial<Record<ChainId, string>>;
|
|
126
|
-
rewardToken: Token;
|
|
127
|
-
}
|
|
128
|
-
export declare enum BillVersion {
|
|
129
|
-
V1 = "V1",
|
|
130
|
-
V2 = "V2",
|
|
131
|
-
FixedPrice = "FixedPrice",
|
|
132
|
-
V3 = "V3",
|
|
133
|
-
TieredSale = "TieredSale",
|
|
134
|
-
FlashTieredSale = "FlashTieredSale"
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* This enum defines the art collection used to generate the art for a bill (bond).
|
|
138
|
-
*
|
|
139
|
-
* NOTE: Collections start at 1. The collection number provides a method to make new releases around
|
|
140
|
-
* the same theme or project.
|
|
141
|
-
*/
|
|
142
|
-
export declare enum BillArtCollection {
|
|
143
|
-
ApeSwap_Collection1 = "ApeSwap_Collection1",
|
|
144
|
-
Quickswap_Collection1 = "Quickswap_Collection1",
|
|
145
|
-
ApeBond_Collection1 = "ApeBond_Collection1",
|
|
146
|
-
CexFundBond_Collection1 = "CexFundBond_Collection1",
|
|
147
|
-
PlanetIX_Collection1 = "PlanetIX_Collection1",
|
|
148
|
-
ETH_Collection1 = "ETH_Collection1",
|
|
149
|
-
inEVM_Collection1 = "inEVM_Collection1",
|
|
150
|
-
AITECH_Collection1 = "AITECH_Collection1"
|
|
151
|
-
}
|
|
152
|
-
export declare const defaultBillArtCollection = BillArtCollection.ApeSwap_Collection1;
|
|
153
|
-
export declare const MigrationVestingTerms: {
|
|
154
|
-
readonly '60d': 5184000;
|
|
155
|
-
readonly '120d': 10368000;
|
|
156
|
-
readonly '180d': 15552000;
|
|
157
|
-
readonly '360d': 31104000;
|
|
158
|
-
};
|
|
159
|
-
export type MigrationVestingTermType = typeof MigrationVestingTerms[keyof typeof MigrationVestingTerms];
|
|
160
|
-
export interface LaunchProjectConfig {
|
|
161
|
-
index: number;
|
|
162
|
-
projectId: string;
|
|
163
|
-
projectName: string;
|
|
164
|
-
bonds: TieredSaleBondConfig[];
|
|
165
|
-
saleStartTime: string;
|
|
166
|
-
totalAllocation: string;
|
|
167
|
-
salePriceString: string;
|
|
168
|
-
vestingTimeString: string;
|
|
169
|
-
projectInfo: {
|
|
170
|
-
shortDescription: string;
|
|
171
|
-
fullDescription: string;
|
|
172
|
-
tags: string[];
|
|
173
|
-
socials: {
|
|
174
|
-
twitter: string;
|
|
175
|
-
discord?: string;
|
|
176
|
-
website: string;
|
|
177
|
-
whitepaper: string;
|
|
178
|
-
tokenomicsURL: string;
|
|
179
|
-
teaserVideo: string;
|
|
180
|
-
telegram?: string;
|
|
181
|
-
};
|
|
182
|
-
images: {
|
|
183
|
-
launchpadImg: string;
|
|
184
|
-
launchpadSmallImg: string;
|
|
185
|
-
launchpadIcon: string;
|
|
186
|
-
headerImg: string;
|
|
187
|
-
headerImgMobile: string;
|
|
188
|
-
websiteImg: string;
|
|
189
|
-
whitepaperImg: string;
|
|
190
|
-
partnersImg: string;
|
|
191
|
-
tokenomicsImg: string;
|
|
192
|
-
teaserImg: string;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
export interface TieredSaleBondConfig {
|
|
197
|
-
index: number;
|
|
198
|
-
contractAddress: Partial<Record<ChainId, string>>;
|
|
199
|
-
billVersion: BillVersion;
|
|
200
|
-
billType: 'fcfs' | 'oversubscription';
|
|
201
|
-
token: Token;
|
|
202
|
-
earnToken: Token;
|
|
203
|
-
billNnftAddress: Partial<Record<ChainId, string>>;
|
|
204
|
-
soldOut: boolean;
|
|
205
|
-
billArt: {
|
|
206
|
-
collection: BillArtCollection;
|
|
207
|
-
};
|
|
208
|
-
initTime: Partial<Record<ChainId, number>>;
|
|
209
|
-
finishTime: Partial<Record<ChainId, number>>;
|
|
210
|
-
redeemTime?: Partial<Record<ChainId, number>>;
|
|
211
|
-
startVestingTimestamp: Partial<Record<ChainId, number>>;
|
|
212
|
-
initPrice: Partial<Record<ChainId, number>>;
|
|
213
|
-
initialRelease: number;
|
|
214
|
-
}
|
|
215
|
-
export interface FlashBondConfig extends TieredSaleBondConfig {
|
|
216
|
-
round: string;
|
|
217
|
-
totalRaiseString: string;
|
|
218
|
-
discountString: string;
|
|
219
|
-
tierString: string;
|
|
220
|
-
}
|
|
221
|
-
export declare enum LaunchBondTiers {
|
|
222
|
-
Bronze = 0,
|
|
223
|
-
Silver = 1,
|
|
224
|
-
Gold = 2,
|
|
225
|
-
Diamond = 3,
|
|
226
|
-
Legend = 4
|
|
227
|
-
}
|
|
228
|
-
export interface BillsConfig {
|
|
229
|
-
index: number;
|
|
230
|
-
cmcId?: number;
|
|
231
|
-
chainId: ChainId;
|
|
232
|
-
contractAddress: Partial<Record<ChainId, string>>;
|
|
233
|
-
billVersion: BillVersion;
|
|
234
|
-
billType: 'liquidity' | 'reserve' | 'launch' | 'migration' | 'cex';
|
|
235
|
-
token: Token;
|
|
236
|
-
quoteToken: Token;
|
|
237
|
-
lpToken: Token;
|
|
238
|
-
earnToken: Token;
|
|
239
|
-
billNnftAddress: Partial<Record<ChainId, string>>;
|
|
240
|
-
inactive?: boolean;
|
|
241
|
-
projectLink?: string;
|
|
242
|
-
twitter?: string;
|
|
243
|
-
initTime?: Partial<Record<ChainId, number>>;
|
|
244
|
-
initPrice?: Partial<Record<ChainId, number>>;
|
|
245
|
-
audit?: string;
|
|
246
|
-
soldOut?: boolean;
|
|
247
|
-
billArt?: {
|
|
248
|
-
collection: BillArtCollection;
|
|
249
|
-
};
|
|
250
|
-
showcaseToken?: Token;
|
|
251
|
-
bondPartner?: string;
|
|
252
|
-
shortDescription?: string;
|
|
253
|
-
fullDescription?: string;
|
|
254
|
-
featuredURLS?: string[];
|
|
255
|
-
partnersURLS?: string[];
|
|
256
|
-
tags?: string[];
|
|
257
|
-
vestingTerm?: number;
|
|
258
|
-
multiplier?: number;
|
|
259
|
-
onlyPartner?: boolean;
|
|
260
|
-
}
|
|
261
|
-
export declare enum VaultVersion {
|
|
262
|
-
V1 = "V1",
|
|
263
|
-
V2 = "V2",
|
|
264
|
-
V3 = "V3"
|
|
265
|
-
}
|
|
266
|
-
export interface VaultConfig {
|
|
267
|
-
id: number;
|
|
268
|
-
pid: number;
|
|
269
|
-
type: 'MAX' | 'AUTO' | 'BURN';
|
|
270
|
-
version: VaultVersion;
|
|
271
|
-
availableChains: number[];
|
|
272
|
-
stratAddress: Partial<Record<ChainId, string>>;
|
|
273
|
-
platform: string;
|
|
274
|
-
token: Token;
|
|
275
|
-
quoteToken?: Token;
|
|
276
|
-
stakeToken: Token;
|
|
277
|
-
rewardToken: Token;
|
|
278
|
-
masterchef: MasterChef;
|
|
279
|
-
inactive?: boolean;
|
|
280
|
-
depositFee?: number;
|
|
281
|
-
rewardsInSeconds?: boolean;
|
|
282
|
-
fee?: string;
|
|
283
|
-
}
|
|
284
|
-
export interface FarmConfig {
|
|
285
|
-
pid: number;
|
|
286
|
-
lpSymbol: string;
|
|
287
|
-
lpAddresses: Partial<Record<ChainId, string>>;
|
|
288
|
-
tokenSymbol: string;
|
|
289
|
-
style?: keyof FarmStyles;
|
|
290
|
-
image?: string;
|
|
291
|
-
disableApr?: boolean;
|
|
292
|
-
tokenAddresses: Partial<Record<ChainId, string>>;
|
|
293
|
-
quoteTokenSymbol: QuoteToken;
|
|
294
|
-
quoteTokenAdresses: Partial<Record<ChainId, string>>;
|
|
295
|
-
multiplier?: string;
|
|
296
|
-
isCommunity?: boolean;
|
|
297
|
-
dual?: {
|
|
298
|
-
rewardPerBlock: number;
|
|
299
|
-
earnLabel: string;
|
|
300
|
-
endBlock: number;
|
|
301
|
-
};
|
|
302
|
-
projectLink?: string;
|
|
303
|
-
}
|
|
304
|
-
export interface PoolConfig {
|
|
305
|
-
sousId: number;
|
|
306
|
-
image?: string;
|
|
307
|
-
tokenName: string;
|
|
308
|
-
stakingToken: Token;
|
|
309
|
-
stakingLimit?: number;
|
|
310
|
-
bonusEndBlock?: number;
|
|
311
|
-
bonusEndTime?: number;
|
|
312
|
-
rewardToken: Token | null;
|
|
313
|
-
contractAddress: Partial<Record<ChainId, string>>;
|
|
314
|
-
poolCategory?: PoolCategory;
|
|
315
|
-
projectLink: string;
|
|
316
|
-
twitter?: string;
|
|
317
|
-
tokenPerBlock?: string;
|
|
318
|
-
rewardsPerSecond?: string;
|
|
319
|
-
sortOrder?: number;
|
|
320
|
-
harvest?: boolean;
|
|
321
|
-
reflect?: boolean;
|
|
322
|
-
isFinished?: boolean;
|
|
323
|
-
tokenDecimals: number;
|
|
324
|
-
displayDecimals?: number;
|
|
325
|
-
lpStaking?: boolean;
|
|
326
|
-
lpTokens?: {
|
|
327
|
-
token: Token;
|
|
328
|
-
quoteToken: Token;
|
|
329
|
-
};
|
|
330
|
-
forAdmins?: boolean;
|
|
331
|
-
emergencyWithdraw?: boolean;
|
|
332
|
-
isEarnTokenLp?: boolean;
|
|
333
|
-
zapable?: boolean;
|
|
334
|
-
audit?: string;
|
|
335
|
-
}
|
|
336
|
-
export interface DualFarmConfig {
|
|
337
|
-
pid: number;
|
|
338
|
-
network: number;
|
|
339
|
-
stakeTokenAddress: string;
|
|
340
|
-
rewarderAddress: string;
|
|
341
|
-
dualImage?: boolean;
|
|
342
|
-
stakeTokens: {
|
|
343
|
-
token0: Token;
|
|
344
|
-
token1: Token;
|
|
345
|
-
};
|
|
346
|
-
rewardTokens: {
|
|
347
|
-
token0: Token;
|
|
348
|
-
token1?: Token;
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
export interface JungleFarmConfig {
|
|
352
|
-
jungleId: number;
|
|
353
|
-
image?: string;
|
|
354
|
-
tokenName: string;
|
|
355
|
-
stakingToken: Token;
|
|
356
|
-
stakingLimit?: number;
|
|
357
|
-
bonusEndBlock?: number;
|
|
358
|
-
bonusEndTime?: number;
|
|
359
|
-
rewardToken: Token;
|
|
360
|
-
contractAddress: Partial<Record<ChainId, string>>;
|
|
361
|
-
projectLink: string;
|
|
362
|
-
twitter?: string;
|
|
363
|
-
tokenPerBlock?: string;
|
|
364
|
-
sortOrder?: number;
|
|
365
|
-
harvest?: boolean;
|
|
366
|
-
reflect?: boolean;
|
|
367
|
-
isFinished?: boolean;
|
|
368
|
-
tokenDecimals: number;
|
|
369
|
-
displayDecimals?: number;
|
|
370
|
-
lpStaking?: boolean;
|
|
371
|
-
lpTokens?: {
|
|
372
|
-
token: Token;
|
|
373
|
-
quoteToken: Token;
|
|
374
|
-
};
|
|
375
|
-
forAdmins?: boolean;
|
|
376
|
-
emergencyWithdraw?: boolean;
|
|
377
|
-
isEarnTokenLp?: boolean;
|
|
378
|
-
network: number;
|
|
379
|
-
unZapable?: boolean;
|
|
380
|
-
rewardsPerSecond?: string;
|
|
381
|
-
audit?: string;
|
|
382
|
-
}
|
|
383
|
-
export interface NfaStakingPoolConfig {
|
|
384
|
-
sousId: number;
|
|
385
|
-
tier: number;
|
|
386
|
-
rewardToken: Token;
|
|
387
|
-
contractAddress: Partial<Record<ChainId, string>>;
|
|
388
|
-
tokenPerBlock: string;
|
|
389
|
-
isFinished: boolean;
|
|
390
|
-
endBlock: number;
|
|
391
|
-
}
|
|
392
|
-
export interface IaoConfig {
|
|
393
|
-
id: string;
|
|
394
|
-
isActive: boolean;
|
|
395
|
-
isLinear: boolean;
|
|
396
|
-
address: string;
|
|
397
|
-
name: string;
|
|
398
|
-
subTitle?: string;
|
|
399
|
-
description?: string;
|
|
400
|
-
launchDate: string;
|
|
401
|
-
launchTime: string;
|
|
402
|
-
saleAmount: string;
|
|
403
|
-
raiseAmount: string;
|
|
404
|
-
totalAmountRaised?: string;
|
|
405
|
-
bananaToBurn?: string;
|
|
406
|
-
projectSiteUrl: string;
|
|
407
|
-
currency: string;
|
|
408
|
-
currencyAddress: string;
|
|
409
|
-
offeringCurrency: string;
|
|
410
|
-
tokenDecimals: number;
|
|
411
|
-
releaseBlockNumber: number;
|
|
412
|
-
vestingTime?: string;
|
|
413
|
-
vesting?: boolean;
|
|
414
|
-
startBlock?: number;
|
|
415
|
-
burnedTxUrl?: string;
|
|
416
|
-
expires?: number;
|
|
417
|
-
vestingTimeSeconds?: number;
|
|
418
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
// Manually copied from @ape.swap/apeswap-lists due to error when importing from package
|
|
2
|
-
export var QuoteToken;
|
|
3
|
-
(function (QuoteToken) {
|
|
4
|
-
QuoteToken["BNB"] = "BNB";
|
|
5
|
-
QuoteToken["BANANA"] = "BANANA";
|
|
6
|
-
QuoteToken["BUSD"] = "BUSD";
|
|
7
|
-
QuoteToken["TWT"] = "TWT";
|
|
8
|
-
QuoteToken["UST"] = "UST";
|
|
9
|
-
QuoteToken["ETH"] = "ETH";
|
|
10
|
-
QuoteToken["USDT"] = "USDT";
|
|
11
|
-
})(QuoteToken || (QuoteToken = {}));
|
|
12
|
-
export var PoolCategory;
|
|
13
|
-
(function (PoolCategory) {
|
|
14
|
-
PoolCategory["COMMUNITY"] = "Community";
|
|
15
|
-
PoolCategory["APEZONE"] = "ApeZone";
|
|
16
|
-
PoolCategory["CORE"] = "Core";
|
|
17
|
-
PoolCategory["REAL_YIELD"] = "Real Yield";
|
|
18
|
-
PoolCategory["JUNGLE"] = "Jungle";
|
|
19
|
-
})(PoolCategory || (PoolCategory = {}));
|
|
20
|
-
export var ChainId;
|
|
21
|
-
(function (ChainId) {
|
|
22
|
-
ChainId[ChainId["MAINNET"] = 1] = "MAINNET";
|
|
23
|
-
ChainId[ChainId["MATIC"] = 137] = "MATIC";
|
|
24
|
-
ChainId[ChainId["MATIC_TESTNET"] = 80001] = "MATIC_TESTNET";
|
|
25
|
-
ChainId[ChainId["BSC"] = 56] = "BSC";
|
|
26
|
-
ChainId[ChainId["BSC_TESTNET"] = 97] = "BSC_TESTNET";
|
|
27
|
-
ChainId[ChainId["TLOS"] = 40] = "TLOS";
|
|
28
|
-
ChainId[ChainId["ARBITRUM"] = 42161] = "ARBITRUM";
|
|
29
|
-
ChainId[ChainId["INEVM_TESTNET"] = 2424] = "INEVM_TESTNET";
|
|
30
|
-
ChainId[ChainId["INEVM"] = 2525] = "INEVM";
|
|
31
|
-
ChainId[ChainId["SEPOLIA"] = 11155111] = "SEPOLIA";
|
|
32
|
-
ChainId[ChainId["LINEA"] = 59144] = "LINEA";
|
|
33
|
-
ChainId[ChainId["LIGHTLINK"] = 1890] = "LIGHTLINK";
|
|
34
|
-
ChainId[ChainId["IOTA_TESTNET"] = 1075] = "IOTA_TESTNET";
|
|
35
|
-
ChainId[ChainId["IOTA"] = 8822] = "IOTA";
|
|
36
|
-
ChainId[ChainId["BASE"] = 8453] = "BASE";
|
|
37
|
-
})(ChainId || (ChainId = {}));
|
|
38
|
-
export var LiquidityDex;
|
|
39
|
-
(function (LiquidityDex) {
|
|
40
|
-
LiquidityDex["ApeSwapV2"] = "ApeSwapV2";
|
|
41
|
-
LiquidityDex["ApeSwapV3"] = "ApeSwapV3";
|
|
42
|
-
LiquidityDex["PancakeSwapV2"] = "PancakeSwapV2";
|
|
43
|
-
LiquidityDex["PancakeSwapV3"] = "PancakeSwapV3";
|
|
44
|
-
LiquidityDex["SushiSwapV3"] = "SushiSwapV3";
|
|
45
|
-
LiquidityDex["UniswapV2"] = "UniswapV2";
|
|
46
|
-
LiquidityDex["ThenaV1"] = "ThenaV1";
|
|
47
|
-
/**
|
|
48
|
-
* Initially, LiquidityDex was for the price getter and that checks algebra pricing
|
|
49
|
-
* (gamma wraps over it so no pricing there).
|
|
50
|
-
* Now we use it for zapVersion as well where Gamma is better.
|
|
51
|
-
*/
|
|
52
|
-
LiquidityDex["Algebra"] = "Algebra";
|
|
53
|
-
LiquidityDex["QuickswapV2"] = "QuickswapV2";
|
|
54
|
-
LiquidityDex["UniswapV3"] = "UniswapV3";
|
|
55
|
-
LiquidityDex["External"] = "External";
|
|
56
|
-
LiquidityDex["Spartadex"] = "Spartadex";
|
|
57
|
-
LiquidityDex["Nile"] = "Nile";
|
|
58
|
-
LiquidityDex["XFAI"] = "XFAI";
|
|
59
|
-
LiquidityDex["Lynex"] = "Lynex";
|
|
60
|
-
LiquidityDex["Metavault"] = "Metavault";
|
|
61
|
-
LiquidityDex["Elektrik"] = "Elektrik";
|
|
62
|
-
LiquidityDex["Synthswap"] = "Synthswap";
|
|
63
|
-
LiquidityDex["Aerodrome"] = "Aerodrome";
|
|
64
|
-
LiquidityDex["SmarDex"] = "SmarDex";
|
|
65
|
-
})(LiquidityDex || (LiquidityDex = {}));
|
|
66
|
-
export var IchiSupportedDex;
|
|
67
|
-
(function (IchiSupportedDex) {
|
|
68
|
-
IchiSupportedDex["Ascent"] = "Ascent";
|
|
69
|
-
IchiSupportedDex["Blueprint"] = "Blueprint";
|
|
70
|
-
IchiSupportedDex["Cleo"] = "Cleo";
|
|
71
|
-
IchiSupportedDex["Equalizer"] = "Equalizer";
|
|
72
|
-
IchiSupportedDex["Fenix"] = "Fenix";
|
|
73
|
-
IchiSupportedDex["Forge"] = "Forge";
|
|
74
|
-
IchiSupportedDex["Henjin"] = "Henjin";
|
|
75
|
-
IchiSupportedDex["Kinetix"] = "Kinetix";
|
|
76
|
-
IchiSupportedDex["Linehub"] = "Linehub";
|
|
77
|
-
IchiSupportedDex["Lynex"] = "Lynex";
|
|
78
|
-
IchiSupportedDex["Metavault"] = "Metavault";
|
|
79
|
-
IchiSupportedDex["Nile"] = "Nile";
|
|
80
|
-
IchiSupportedDex["Pancakeswap"] = "PancakeSwap";
|
|
81
|
-
IchiSupportedDex["Quickswap"] = "QuickSwap";
|
|
82
|
-
IchiSupportedDex["Ramses"] = "Ramses";
|
|
83
|
-
IchiSupportedDex["Retro"] = "Retro";
|
|
84
|
-
IchiSupportedDex["SaucerSwap"] = "SaucerSwap";
|
|
85
|
-
IchiSupportedDex["SpiritSwap"] = "SpiritSwap";
|
|
86
|
-
IchiSupportedDex["Sushiswap"] = "SushiSwap";
|
|
87
|
-
IchiSupportedDex["Thena"] = "Thena";
|
|
88
|
-
IchiSupportedDex["Thirdfy"] = "Thirdfy";
|
|
89
|
-
IchiSupportedDex["UniswapV3"] = "Uniswap V3";
|
|
90
|
-
IchiSupportedDex["Velocore"] = "Velocore";
|
|
91
|
-
IchiSupportedDex["XSwap"] = "XSwap";
|
|
92
|
-
})(IchiSupportedDex || (IchiSupportedDex = {}));
|
|
93
|
-
export var ZapVersion;
|
|
94
|
-
(function (ZapVersion) {
|
|
95
|
-
ZapVersion["External"] = "External";
|
|
96
|
-
ZapVersion["ZapV1"] = "ZapV1";
|
|
97
|
-
ZapVersion["Wido"] = "Wido";
|
|
98
|
-
ZapVersion["SoulZap"] = "SoulZap";
|
|
99
|
-
ZapVersion["SoulZapApi"] = "SoulZapApi";
|
|
100
|
-
})(ZapVersion || (ZapVersion = {}));
|
|
101
|
-
export var Protocols;
|
|
102
|
-
(function (Protocols) {
|
|
103
|
-
Protocols[Protocols["Both"] = 1] = "Both";
|
|
104
|
-
Protocols[Protocols["V2"] = 2] = "V2";
|
|
105
|
-
Protocols[Protocols["V3"] = 3] = "V3";
|
|
106
|
-
Protocols[Protocols["Algebra"] = 4] = "Algebra";
|
|
107
|
-
Protocols[Protocols["Gamma"] = 5] = "Gamma";
|
|
108
|
-
Protocols[Protocols["Steer"] = 6] = "Steer";
|
|
109
|
-
Protocols[Protocols["Solidly"] = 7] = "Solidly";
|
|
110
|
-
Protocols[Protocols["XFAI"] = 8] = "XFAI";
|
|
111
|
-
})(Protocols || (Protocols = {}));
|
|
112
|
-
export var BillVersion;
|
|
113
|
-
(function (BillVersion) {
|
|
114
|
-
BillVersion["V1"] = "V1";
|
|
115
|
-
BillVersion["V2"] = "V2";
|
|
116
|
-
BillVersion["FixedPrice"] = "FixedPrice";
|
|
117
|
-
BillVersion["V3"] = "V3";
|
|
118
|
-
BillVersion["TieredSale"] = "TieredSale";
|
|
119
|
-
BillVersion["FlashTieredSale"] = "FlashTieredSale";
|
|
120
|
-
})(BillVersion || (BillVersion = {}));
|
|
121
|
-
/**
|
|
122
|
-
* This enum defines the art collection used to generate the art for a bill (bond).
|
|
123
|
-
*
|
|
124
|
-
* NOTE: Collections start at 1. The collection number provides a method to make new releases around
|
|
125
|
-
* the same theme or project.
|
|
126
|
-
*/
|
|
127
|
-
export var BillArtCollection;
|
|
128
|
-
(function (BillArtCollection) {
|
|
129
|
-
BillArtCollection["ApeSwap_Collection1"] = "ApeSwap_Collection1";
|
|
130
|
-
BillArtCollection["Quickswap_Collection1"] = "Quickswap_Collection1";
|
|
131
|
-
BillArtCollection["ApeBond_Collection1"] = "ApeBond_Collection1";
|
|
132
|
-
BillArtCollection["CexFundBond_Collection1"] = "CexFundBond_Collection1";
|
|
133
|
-
BillArtCollection["PlanetIX_Collection1"] = "PlanetIX_Collection1";
|
|
134
|
-
BillArtCollection["ETH_Collection1"] = "ETH_Collection1";
|
|
135
|
-
BillArtCollection["inEVM_Collection1"] = "inEVM_Collection1";
|
|
136
|
-
BillArtCollection["AITECH_Collection1"] = "AITECH_Collection1";
|
|
137
|
-
})(BillArtCollection || (BillArtCollection = {}));
|
|
138
|
-
export var defaultBillArtCollection = BillArtCollection.ApeSwap_Collection1;
|
|
139
|
-
export var LaunchBondTiers;
|
|
140
|
-
(function (LaunchBondTiers) {
|
|
141
|
-
LaunchBondTiers[LaunchBondTiers["Bronze"] = 0] = "Bronze";
|
|
142
|
-
LaunchBondTiers[LaunchBondTiers["Silver"] = 1] = "Silver";
|
|
143
|
-
LaunchBondTiers[LaunchBondTiers["Gold"] = 2] = "Gold";
|
|
144
|
-
LaunchBondTiers[LaunchBondTiers["Diamond"] = 3] = "Diamond";
|
|
145
|
-
LaunchBondTiers[LaunchBondTiers["Legend"] = 4] = "Legend";
|
|
146
|
-
})(LaunchBondTiers || (LaunchBondTiers = {}));
|
|
147
|
-
export var VaultVersion;
|
|
148
|
-
(function (VaultVersion) {
|
|
149
|
-
VaultVersion["V1"] = "V1";
|
|
150
|
-
VaultVersion["V2"] = "V2";
|
|
151
|
-
VaultVersion["V3"] = "V3";
|
|
152
|
-
})(VaultVersion || (VaultVersion = {}));
|
package/dist/enum/tooltips.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export var TooltipText = {
|
|
2
|
-
Discount: "This is the percentage discount relative to the token's current market price.",
|
|
3
|
-
ARR: "This is the Annualized Rate of Return you would receive considering the current discount, adjusted for APR.",
|
|
4
|
-
Terms: "This is the amount of days it will take for all tokens in the Bond to fully vest.",
|
|
5
|
-
TokensRemaining: "This is the amount of remaining tokens for sale in this Bond.",
|
|
6
|
-
MaxBuy: function (payoutToken) { return "This is the maximum amount of ".concat(payoutToken, " you can currently purchase through this Bond."); },
|
|
7
|
-
Premium: "This is the dollar value of the additional tokens you’ll receive at current market price.",
|
|
8
|
-
};
|
|
9
|
-
export var UserBillTooltipText = {
|
|
10
|
-
FullyVested: "This is the time remaining until all tokens from the bond are available to claim.",
|
|
11
|
-
Pending: "This is the amount of unvested tokens that cannot be claimed yet.",
|
|
12
|
-
Claimable: "This is the amount of tokens that have vested and are available to claim."
|
|
13
|
-
};
|
package/dist/hooks/useCookie.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { useCallback, useState } from 'react';
|
|
2
|
-
function useCookie(key, defaultValue) {
|
|
3
|
-
var getCookie = function () {
|
|
4
|
-
var cookie = typeof window !== 'undefined' ? window.document.cookie.split('; ').find(function (row) { return row.startsWith(key); }) : null;
|
|
5
|
-
if (cookie)
|
|
6
|
-
return JSON.parse(cookie.slice(key.length + 1));
|
|
7
|
-
return defaultValue;
|
|
8
|
-
};
|
|
9
|
-
var _a = useState(getCookie), cookie = _a[0], setCookieState = _a[1];
|
|
10
|
-
var updateCookie = useCallback(function (value) {
|
|
11
|
-
if (typeof window === 'undefined')
|
|
12
|
-
return;
|
|
13
|
-
var defaultExpiry = 6 * 30; // Default to approximately six months
|
|
14
|
-
var str = "".concat(key, "=").concat(JSON.stringify(value));
|
|
15
|
-
var date = new Date();
|
|
16
|
-
date.setTime(date.getTime() + defaultExpiry * 24 * 60 * 60 * 1000);
|
|
17
|
-
str += "; expires=".concat(date.toUTCString());
|
|
18
|
-
window.document.cookie = str;
|
|
19
|
-
setCookieState(value);
|
|
20
|
-
}, [key]);
|
|
21
|
-
var removeCookie = useCallback(function () {
|
|
22
|
-
if (typeof window === 'undefined')
|
|
23
|
-
return;
|
|
24
|
-
document.cookie = "".concat(key, "=; Expires=Thu, 01 Jan 1970 00:00:01 GMT;");
|
|
25
|
-
setCookieState(defaultValue);
|
|
26
|
-
}, [defaultValue, key]);
|
|
27
|
-
return { cookie: cookie, updateCookie: updateCookie, removeCookie: removeCookie };
|
|
28
|
-
}
|
|
29
|
-
export default useCookie;
|
package/dist/hooks/useIsAbond.js
DELETED
package/dist/hooks/useModal.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
-
if (ar || !(i in from)) {
|
|
4
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
-
ar[i] = from[i];
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
-
};
|
|
10
|
-
import { useCallback, useContext, useEffect } from 'react';
|
|
11
|
-
import get from 'lodash/get';
|
|
12
|
-
import { Context } from '../contexts/ModalContext';
|
|
13
|
-
var useModal = function (modal, closeOnOverlayClick, updateOnPropsChange, modalId, clearModalStack) {
|
|
14
|
-
if (closeOnOverlayClick === void 0) { closeOnOverlayClick = true; }
|
|
15
|
-
if (updateOnPropsChange === void 0) { updateOnPropsChange = false; }
|
|
16
|
-
if (modalId === void 0) { modalId = 'defaultNodeId'; }
|
|
17
|
-
if (clearModalStack === void 0) { clearModalStack = false; }
|
|
18
|
-
// Clear modal stack will not update props if the parent modal gets unmounted
|
|
19
|
-
var _a = useContext(Context), nodeId = _a.nodeId, modalNode = _a.modalNode, setModalNode = _a.setModalNode, onPresent = _a.onPresent, handleClose = _a.handleClose, setCloseOnOverlayClick = _a.setCloseOnOverlayClick;
|
|
20
|
-
var onPresentCallback = useCallback(function () {
|
|
21
|
-
onPresent(modal, modalId, clearModalStack);
|
|
22
|
-
}, [modal, modalId, clearModalStack, onPresent]);
|
|
23
|
-
var nodeIdIndex = nodeId.indexOf(modalId);
|
|
24
|
-
useEffect(function () {
|
|
25
|
-
// NodeId is needed in case there are 2 useModal hooks on the same page and one has updateOnPropsChange
|
|
26
|
-
if (updateOnPropsChange) {
|
|
27
|
-
var modalProps = get(modal, 'props');
|
|
28
|
-
var oldModalProps = get(modalNode[nodeIdIndex], 'props');
|
|
29
|
-
if (modalProps && oldModalProps && JSON.stringify(modalProps) !== JSON.stringify(oldModalProps)) {
|
|
30
|
-
setModalNode(function (prev) { return __spreadArray(__spreadArray([], prev.filter(function (_, i) { return i !== nodeIdIndex; }), true), [modal], false); });
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}, [updateOnPropsChange, nodeId, modalId, modal, nodeIdIndex, modalNode, setModalNode]);
|
|
34
|
-
useEffect(function () {
|
|
35
|
-
setCloseOnOverlayClick(closeOnOverlayClick);
|
|
36
|
-
}, [closeOnOverlayClick, setCloseOnOverlayClick]);
|
|
37
|
-
return [onPresentCallback, handleClose];
|
|
38
|
-
};
|
|
39
|
-
export default useModal;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import getTimePeriods from '../utils/getTimePeriods';
|
|
2
|
-
import useCurrentTime from './useTimer';
|
|
3
|
-
export var usePendingVesting = function (_a) {
|
|
4
|
-
var lastBlockTimestamp = _a.lastBlockTimestamp, vesting = _a.vesting;
|
|
5
|
-
var currentTime = useCurrentTime() / 1000;
|
|
6
|
-
var vestingTime = getTimePeriods(parseInt(lastBlockTimestamp) + parseInt(vesting) - currentTime, true);
|
|
7
|
-
return "".concat(vestingTime.days, "d, ").concat(vestingTime.hours, "h, ").concat(vestingTime.minutes, "m");
|
|
8
|
-
};
|
|
9
|
-
export var getPendingVesting = function (lastBlockTimestamp, vesting) {
|
|
10
|
-
var currentTime = new Date().getTime() / 1000;
|
|
11
|
-
var vestingTime = getTimePeriods(parseInt(lastBlockTimestamp) + parseInt(vesting) - currentTime, true);
|
|
12
|
-
return "".concat(vestingTime.days, "d, ").concat(vestingTime.hours, "h, ").concat(vestingTime.minutes, "m");
|
|
13
|
-
};
|
package/dist/hooks/useRefresh.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { useContext } from 'react';
|
|
2
|
-
import { RefreshContext } from '../contexts/RefreshContext';
|
|
3
|
-
var useRefresh = function () {
|
|
4
|
-
var _a = useContext(RefreshContext), fast = _a.fast, slow = _a.slow, veryFast = _a.veryFast;
|
|
5
|
-
return { veryFastRefresh: veryFast, fastRefresh: fast, slowRefresh: slow };
|
|
6
|
-
};
|
|
7
|
-
export default useRefresh;
|