@ape.swap/bonds-sdk 1.0.779 → 1.1.0-seedify
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AccordionText/index.d.ts +9 -0
- package/dist/components/BondRows/BondRow.d.ts +3 -2
- package/dist/components/BondRows/BondRowHeader.d.ts +2 -3
- package/dist/components/BondRows/BondRowsByChain.d.ts +3 -3
- package/dist/components/BondRows/BondRowsWithTitle.d.ts +3 -3
- package/dist/components/DisconnectedPlaceholder/index.d.ts +3 -0
- package/dist/components/SlippageModal/index.d.ts +3 -0
- package/dist/components/TokenInfoAndName/index.d.ts +3 -2
- package/dist/components/TokenSelectorModal/TokenRow.d.ts +8 -0
- package/dist/components/TokenSelectorModal/index.d.ts +11 -0
- package/dist/components/TokenSelectorPanel/index.d.ts +15 -0
- package/dist/components/uikit-sdk/Modal/index.d.ts +1 -1
- package/dist/components/uikit-sdk/Toggle/index.d.ts +8 -0
- package/dist/components/uikit-sdk/Toggle/styles.d.ts +3 -0
- package/dist/components/uikit-sdk/TokenImage/index.d.ts +3 -2
- package/dist/components/uikit-sdk/index.d.ts +1 -0
- package/dist/config/abi/types/Banana.d.ts +103 -126
- package/dist/config/abi/types/Bond.d.ts +176 -221
- package/dist/config/abi/types/BondNft.d.ts +160 -207
- package/dist/config/abi/types/EnsPublicResolver.d.ts +129 -205
- package/dist/config/abi/types/EnsRegistrar.d.ts +62 -82
- package/dist/config/abi/types/Erc20.d.ts +40 -52
- package/dist/config/abi/types/Erc20_bytes32.d.ts +11 -11
- package/dist/config/abi/types/JungleChef.d.ts +64 -79
- package/dist/config/abi/types/LaunchBonds.d.ts +299 -355
- package/dist/config/abi/types/LensContract.d.ts +58 -77
- package/dist/config/abi/types/LockVeAbond.d.ts +328 -434
- package/dist/config/abi/types/MigrationBond.d.ts +268 -330
- package/dist/config/abi/types/MigrationFveAbond.d.ts +83 -89
- package/dist/config/abi/types/MiniComplexRewarder.d.ts +99 -145
- package/dist/config/abi/types/Multicallv2.d.ts +35 -46
- package/dist/config/abi/types/Multicallv3.d.ts +14 -14
- package/dist/config/abi/types/NonFungibleApes.d.ts +130 -170
- package/dist/config/abi/types/NonFungibleBananas.d.ts +135 -172
- package/dist/config/abi/types/PriceGetter.d.ts +218 -255
- package/dist/config/abi/types/PriceGetterLinea.d.ts +254 -287
- package/dist/config/abi/types/PriceGetterV2.d.ts +239 -276
- package/dist/config/abi/types/SousChef.d.ts +140 -177
- package/dist/config/abi/types/Treasury.d.ts +66 -69
- package/dist/config/abi/types/Weth.d.ts +53 -68
- package/dist/config/abi/types/Zap.d.ts +97 -141
- package/dist/config/abi/types/common.d.ts +3 -3
- package/dist/config/abi/types/factories/Banana__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/BondNft__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Bond__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Erc20__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/JungleChef__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/LensContract__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/SousChef__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Treasury__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Weth__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/Zap__factory.d.ts +3 -3
- package/dist/config/abi/types/factories/index.d.ts +25 -25
- package/dist/config/abi/types/index.d.ts +51 -51
- package/dist/config/constants/addresses.d.ts +0 -8
- package/dist/config/constants/queryKeys.d.ts +10 -2
- package/dist/config/constants/tokens.d.ts +3 -6
- package/dist/config/constants/zapInputTokens.d.ts +2 -0
- package/dist/hooks/useTokenFromZapList.d.ts +3 -0
- package/dist/hooks/useTopThreeTags.d.ts +2 -2
- package/dist/main.d.ts +7 -0
- package/dist/main.js +73492 -0
- package/dist/providers/index.d.ts +0 -3
- package/dist/scss/AccordionText.scss +11 -0
- package/dist/scss/BondMenu.scss +2 -2
- package/dist/scss/BondModal.scss +305 -234
- package/dist/scss/BondRow.scss +5 -5
- package/dist/scss/BondRowHeader.scss +7 -7
- package/dist/scss/Bonds.scss +2 -1
- package/dist/scss/TokenInfoName.scss +60 -0
- package/dist/scss/YourBonds.scss +19 -14
- package/dist/scss/YourBondsModal.scss +3 -3
- package/dist/scss/index.scss +12 -0
- package/dist/state/allowance/useAllowance.d.ts +15 -0
- package/dist/state/balance/useCurrencyBalance.d.ts +4 -0
- package/dist/state/bonds/useBondNFTData.d.ts +5 -0
- package/dist/state/bonds/useBondsData.d.ts +4 -0
- package/dist/state/bonds/useBondsList.d.ts +4 -0
- package/dist/state/bonds/useHotBonds.d.ts +3 -0
- package/dist/state/bonds/useUserBonds.d.ts +5 -0
- package/dist/state/price/useCurrencyPrice.d.ts +3 -0
- package/dist/state/slippage/useSlippage.d.ts +1 -0
- package/dist/state/tokenPrices/useTokenPrices.d.ts +29 -0
- package/dist/state/zap/getChainParam.d.ts +12 -0
- package/dist/state/zap/useSoulZapBondQuote.d.ts +4 -0
- package/dist/state/zap/useSoulZapTokenQuote.d.ts +3 -0
- package/dist/types/bonds.d.ts +4 -41
- package/dist/types/yourbonds.d.ts +54 -69
- package/dist/utils/displayHelpers.d.ts +13 -0
- package/dist/utils/getNativeTicker.d.ts +3 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/views/BondModal/BondModal.d.ts +7 -6
- package/dist/views/BondModal/helper.d.ts +6 -6
- package/dist/views/BondModal/index.d.ts +2 -2
- package/dist/views/Bonds/Bonds.d.ts +7 -10
- package/dist/views/Bonds/components/CheckURL/index.d.ts +4 -0
- package/dist/views/Bonds/index.d.ts +4 -0
- package/dist/views/Bonds/utils.d.ts +14 -0
- package/dist/views/FullBondsView/FullBondsView.d.ts +7 -0
- package/dist/views/FullBondsView/index.d.ts +3 -0
- package/dist/views/YourBonds/YourBonds.d.ts +1 -11
- package/dist/views/YourBonds/components/UserBondRow/index.d.ts +6 -0
- package/dist/views/YourBonds/fetchBillsUser.d.ts +4 -5
- package/dist/views/YourBonds/index.d.ts +3 -0
- package/dist/views/YourBondsModal/YourBondsModal.d.ts +4 -5
- package/dist/views/ZapModal/index.d.ts +14 -0
- package/dist/views/ZapModal/styles.d.ts +2 -0
- package/package.json +24 -24
- package/dist/components/BondMenu/BondMenu.js +0 -40
- package/dist/components/BondMenu/useChainFilterOption.js +0 -30
- package/dist/components/BondRows/BondRow.js +0 -81
- package/dist/components/BondRows/BondRowHeader.js +0 -12
- package/dist/components/BondRows/BondRowsByChain.js +0 -13
- package/dist/components/BondRows/BondRowsWithTitle.js +0 -20
- package/dist/components/BondRows/ChainTitle.js +0 -18
- package/dist/components/MenuSelect/MenuSelect.js +0 -36
- package/dist/components/MenuSelect/RecommendationSelector.js +0 -32
- package/dist/components/MenuSelect/types.js +0 -1
- package/dist/components/NetworkFilter/index.js +0 -66
- package/dist/components/ProgressBar/ProgressBar.js +0 -10
- package/dist/components/ProgressBar/ProgressBarWrapper.js +0 -9
- package/dist/components/ProgressBar/styles.js +0 -82
- package/dist/components/TokenInfoAndName/index.js +0 -61
- package/dist/components/Tooltip/ButtonsRow.js +0 -21
- package/dist/components/Tooltip/Tooltip.js +0 -13
- package/dist/components/Tooltip/styles.js +0 -44
- package/dist/components/uikit-sdk/Button/Button.js +0 -91
- package/dist/components/uikit-sdk/Button/IconButton.js +0 -33
- package/dist/components/uikit-sdk/Button/index.js +0 -2
- package/dist/components/uikit-sdk/Button/styles.js +0 -30
- package/dist/components/uikit-sdk/Button/types.js +0 -37
- package/dist/components/uikit-sdk/Checkbox/index.js +0 -46
- package/dist/components/uikit-sdk/Checkbox/types.js +0 -5
- package/dist/components/uikit-sdk/Flex/index.js +0 -29
- package/dist/components/uikit-sdk/Input/Input.js +0 -72
- package/dist/components/uikit-sdk/Input/NumericInput.js +0 -35
- package/dist/components/uikit-sdk/Input/StyledInput.js +0 -26
- package/dist/components/uikit-sdk/Input/index.js +0 -3
- package/dist/components/uikit-sdk/Modal/ModalFooter.js +0 -21
- package/dist/components/uikit-sdk/Modal/ModalHeader.js +0 -31
- package/dist/components/uikit-sdk/Modal/index.js +0 -46
- package/dist/components/uikit-sdk/Modal/styles.js +0 -62
- package/dist/components/uikit-sdk/Modal/types.js +0 -1
- package/dist/components/uikit-sdk/Select/Select.js +0 -61
- package/dist/components/uikit-sdk/Select/SelectItem.js +0 -40
- package/dist/components/uikit-sdk/Select/index.js +0 -2
- package/dist/components/uikit-sdk/Select/styles.js +0 -50
- package/dist/components/uikit-sdk/Select/types.js +0 -37
- package/dist/components/uikit-sdk/Skeleton/index.js +0 -31
- package/dist/components/uikit-sdk/Skeleton/styles.js +0 -40
- package/dist/components/uikit-sdk/Skeleton/types.js +0 -10
- package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js +0 -17
- package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js +0 -17
- package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Bridge.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Bubble.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Calculator.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Calendar.js +0 -5
- package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Card.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Chain.js +0 -9
- package/dist/components/uikit-sdk/Svg/Icons/Chart.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Chat.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Close.js +0 -9
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Collapse.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Copy.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Docs.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Error.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Explorer.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/External.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Farm.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Fav.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Frame.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Gnana.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Home.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Hot.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Info.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Island.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Language.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Logout.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Message.js +0 -9
- package/dist/components/uikit-sdk/Svg/Icons/Migrate.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Moon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/More.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/NFA.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Play.js +0 -5
- package/dist/components/uikit-sdk/Svg/Icons/Pool.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Positions.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/ProfileIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Question.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Quiz.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Receipt.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Rocket.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Search.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Send.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Settings.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Share.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Success.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js +0 -5
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/TickShield.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Trade.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Trash.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/URL.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Vaults.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Verified.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/Wallet.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Warning.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Watch.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/Website.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/XNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js +0 -6
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/index.js +0 -112
- package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js +0 -16
- package/dist/components/uikit-sdk/Svg/Icons/types.js +0 -1
- package/dist/components/uikit-sdk/Svg/index.js +0 -347
- package/dist/components/uikit-sdk/Svg/styles.js +0 -16
- package/dist/components/uikit-sdk/Svg/tokens/ABOND.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BANANA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js +0 -5
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/GNANA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js +0 -5
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +0 -6
- package/dist/components/uikit-sdk/Svg/tokens/index.js +0 -22
- package/dist/components/uikit-sdk/Svg/types.js +0 -165
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js +0 -6
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js +0 -5
- package/dist/components/uikit-sdk/Svg/walletIcons/index.js +0 -18
- package/dist/components/uikit-sdk/Tag/ListTag.js +0 -20
- package/dist/components/uikit-sdk/Tag/Tag.js +0 -42
- package/dist/components/uikit-sdk/Tag/index.js +0 -2
- package/dist/components/uikit-sdk/Tag/styles.js +0 -44
- package/dist/components/uikit-sdk/Tag/types.js +0 -34
- package/dist/components/uikit-sdk/Text/index.js +0 -35
- package/dist/components/uikit-sdk/Text/types.js +0 -13
- package/dist/components/uikit-sdk/TokenImage/index.js +0 -18
- package/dist/components/uikit-sdk/TooltipBubble/index.js +0 -66
- package/dist/components/uikit-sdk/TooltipBubble/styles.js +0 -60
- package/dist/components/uikit-sdk/TooltipBubble/types.js +0 -8
- package/dist/components/uikit-sdk/index.js +0 -12
- package/dist/config/abi/bond.json +0 -450
- package/dist/config/abi/erc20.json +0 -117
- package/dist/config/abi/multicallv2.json +0 -143
- package/dist/config/abi/types/Banana.js +0 -1
- package/dist/config/abi/types/Bond.js +0 -1
- package/dist/config/abi/types/BondNft.js +0 -1
- package/dist/config/abi/types/EnsPublicResolver.js +0 -1
- package/dist/config/abi/types/EnsRegistrar.js +0 -1
- package/dist/config/abi/types/Erc20.js +0 -1
- package/dist/config/abi/types/Erc20_bytes32.js +0 -1
- package/dist/config/abi/types/JungleChef.js +0 -1
- package/dist/config/abi/types/LaunchBonds.js +0 -1
- package/dist/config/abi/types/LensContract.js +0 -1
- package/dist/config/abi/types/LockVeAbond.js +0 -1
- package/dist/config/abi/types/MigrationBond.js +0 -1
- package/dist/config/abi/types/MigrationFveAbond.js +0 -1
- package/dist/config/abi/types/MiniComplexRewarder.js +0 -1
- package/dist/config/abi/types/Multicallv2.js +0 -1
- package/dist/config/abi/types/Multicallv3.js +0 -1
- package/dist/config/abi/types/NonFungibleApes.js +0 -1
- package/dist/config/abi/types/NonFungibleBananas.js +0 -1
- package/dist/config/abi/types/PriceGetter.js +0 -1
- package/dist/config/abi/types/PriceGetterLinea.js +0 -1
- package/dist/config/abi/types/PriceGetterV2.js +0 -1
- package/dist/config/abi/types/SousChef.js +0 -1
- package/dist/config/abi/types/Treasury.js +0 -1
- package/dist/config/abi/types/Weth.js +0 -1
- package/dist/config/abi/types/Zap.js +0 -1
- package/dist/config/abi/types/common.js +0 -1
- package/dist/config/abi/types/factories/Banana__factory.js +0 -628
- package/dist/config/abi/types/factories/BondNft__factory.js +0 -951
- package/dist/config/abi/types/factories/Bond__factory.js +0 -1042
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +0 -833
- package/dist/config/abi/types/factories/EnsRegistrar__factory.js +0 -439
- package/dist/config/abi/types/factories/Erc20__factory.js +0 -239
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +0 -47
- package/dist/config/abi/types/factories/JungleChef__factory.js +0 -326
- package/dist/config/abi/types/factories/LaunchBonds__factory.js +0 -2031
- package/dist/config/abi/types/factories/LensContract__factory.js +0 -338
- package/dist/config/abi/types/factories/LockVeAbond__factory.js +0 -2215
- package/dist/config/abi/types/factories/MigrationBond__factory.js +0 -1656
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +0 -346
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +0 -586
- package/dist/config/abi/types/factories/Multicallv2__factory.js +0 -160
- package/dist/config/abi/types/factories/Multicallv3__factory.js +0 -109
- package/dist/config/abi/types/factories/NonFungibleApes__factory.js +0 -810
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +0 -756
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +0 -1465
- package/dist/config/abi/types/factories/PriceGetterV2__factory.js +0 -1364
- package/dist/config/abi/types/factories/PriceGetter__factory.js +0 -1326
- package/dist/config/abi/types/factories/SousChef__factory.js +0 -666
- package/dist/config/abi/types/factories/Treasury__factory.js +0 -309
- package/dist/config/abi/types/factories/Weth__factory.js +0 -296
- package/dist/config/abi/types/factories/Zap__factory.js +0 -889
- package/dist/config/abi/types/factories/index.js +0 -28
- package/dist/config/abi/types/index.js +0 -26
- package/dist/config/constants/addresses.js +0 -116
- package/dist/config/constants/api.js +0 -6
- package/dist/config/constants/chains.js +0 -436
- package/dist/config/constants/lifiRouting.js +0 -6
- package/dist/config/constants/lists.js +0 -21
- package/dist/config/constants/meta.js +0 -92
- package/dist/config/constants/misc.js +0 -4
- package/dist/config/constants/networks.js +0 -44
- package/dist/config/constants/products.js +0 -58
- package/dist/config/constants/queryKeys.js +0 -24
- package/dist/config/constants/tokens.js +0 -452
- package/dist/config/constants/tutorials.js +0 -80
- package/dist/config/localization/languages.js +0 -83
- package/dist/config/localization/translations.json +0 -918
- package/dist/contexts/Localization/Provider.js +0 -134
- package/dist/contexts/Localization/helpers.js +0 -63
- package/dist/contexts/Localization/index.js +0 -2
- package/dist/contexts/Localization/types.js +0 -1
- package/dist/contexts/Localization/useTranslation.js +0 -10
- package/dist/contexts/ModalContext.js +0 -67
- package/dist/contexts/RefreshContext.js +0 -78
- package/dist/enum/apeswaplists.d.ts +0 -418
- package/dist/enum/apeswaplists.js +0 -152
- package/dist/enum/tooltips.js +0 -13
- package/dist/hooks/useCookie.js +0 -29
- package/dist/hooks/useIsAbond.js +0 -10
- package/dist/hooks/useModal.js +0 -39
- package/dist/hooks/usePendingVesting.js +0 -13
- package/dist/hooks/useRefresh.js +0 -7
- package/dist/hooks/useTimer.js +0 -13
- package/dist/hooks/useTopThreeTags.js +0 -25
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -6
- package/dist/providers/index.js +0 -12
- package/dist/theme/base.js +0 -123
- package/dist/theme/colors.js +0 -93
- package/dist/theme/components.js +0 -338
- package/dist/theme/display.js +0 -2
- package/dist/theme/index.js +0 -15
- package/dist/theme/types.js +0 -1
- package/dist/types/bonds.js +0 -1
- package/dist/types/yourbonds.js +0 -1
- package/dist/utils/convertToTokenValue.js +0 -24
- package/dist/utils/formatNumber.js +0 -34
- package/dist/utils/formatNumbers.js +0 -148
- package/dist/utils/getBalanceNumber.js +0 -18
- package/dist/utils/getTimePeriods.js +0 -44
- package/dist/utils/index.js +0 -127
- package/dist/utils/localStorageHelpers.js +0 -47
- package/dist/utils/multicall.js +0 -90
- package/dist/utils/numbers.js +0 -111
- package/dist/utils/roundNumber.js +0 -14
- package/dist/utils/track.js +0 -17
- package/dist/views/BondModal/BondModal.js +0 -277
- package/dist/views/BondModal/helper.js +0 -54
- package/dist/views/BondModal/index.js +0 -18
- package/dist/views/Bonds/Bonds.js +0 -174
- package/dist/views/YourBonds/YourBonds.js +0 -276
- package/dist/views/YourBonds/fetchBillsUser.js +0 -235
- package/dist/views/YourBonds/getBillNftData.js +0 -109
- package/dist/views/YourBondsModal/YourBondsModal.js +0 -173
- package/dist/views/YourBondsModal/styles.js +0 -12
- /package/dist/{enum → config/constants}/tooltips.d.ts +0 -0
package/dist/hooks/useTimer.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
export var useCurrentTime = function () {
|
|
3
|
-
var _a = useState(new Date().getTime()), currentMillis = _a[0], setCurrentMillis = _a[1];
|
|
4
|
-
useEffect(function () {
|
|
5
|
-
var tick = function () {
|
|
6
|
-
setCurrentMillis(function (prevMillis) { return prevMillis + 1000; });
|
|
7
|
-
};
|
|
8
|
-
var timerID = setInterval(function () { return tick(); }, 1000);
|
|
9
|
-
return function () { return clearInterval(timerID); };
|
|
10
|
-
}, []);
|
|
11
|
-
return currentMillis;
|
|
12
|
-
};
|
|
13
|
-
export default useCurrentTime;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// This basically returns the 2 tags with the higher active bond count
|
|
2
|
-
export var useTopTags = function (initialBondList) {
|
|
3
|
-
var bonds = initialBondList;
|
|
4
|
-
var countTagsInBonds = function (bonds) {
|
|
5
|
-
var tagCount = {};
|
|
6
|
-
bonds === null || bonds === void 0 ? void 0 : bonds.forEach(function (bond) {
|
|
7
|
-
var _a;
|
|
8
|
-
if (bond.soldOut)
|
|
9
|
-
return;
|
|
10
|
-
(_a = bond.tags) === null || _a === void 0 ? void 0 : _a.forEach(function (tag) {
|
|
11
|
-
if (tag in tagCount) {
|
|
12
|
-
tagCount[tag] += 1;
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
tagCount[tag] = 1;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
return tagCount;
|
|
20
|
-
};
|
|
21
|
-
var activeBonds = bonds.filter(function (bond) { return !bond.soldOut; });
|
|
22
|
-
var countedTags = countTagsInBonds(activeBonds);
|
|
23
|
-
var sortedTagsArray = Object.entries(countedTags).sort(function (a, b) { return b[1] - a[1]; });
|
|
24
|
-
return sortedTagsArray.slice(0, 2).map(function (tagCountArray) { return tagCountArray[0]; });
|
|
25
|
-
};
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
import Bonds from './views/Bonds/Bonds';
|
|
3
|
-
import YourBonds from './views/YourBonds/YourBonds';
|
|
4
|
-
import YourBondsModal from './views/YourBondsModal/YourBondsModal';
|
|
5
|
-
import BondModal from './views/BondModal';
|
|
6
|
-
export { Bonds, BondModal, YourBonds, YourBondsModal };
|
package/dist/providers/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "theme-ui/jsx-runtime";
|
|
2
|
-
import ModalProvider from "../contexts/ModalContext";
|
|
3
|
-
import { defaultTheme } from "../theme";
|
|
4
|
-
import { ThemeUIProvider } from "theme-ui";
|
|
5
|
-
/**
|
|
6
|
-
* This is the list of local providers that will be used internally by the SDK
|
|
7
|
-
*/
|
|
8
|
-
var Providers = function (_a) {
|
|
9
|
-
var children = _a.children;
|
|
10
|
-
return (_jsx(ThemeUIProvider, { theme: defaultTheme, children: _jsx(ModalProvider, { children: children }) }));
|
|
11
|
-
};
|
|
12
|
-
export default Providers;
|
package/dist/theme/base.js
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
export var breakpointMap = {
|
|
2
|
-
xs: 370,
|
|
3
|
-
sm: 576,
|
|
4
|
-
md: 852,
|
|
5
|
-
lg: 968,
|
|
6
|
-
xl: 1080,
|
|
7
|
-
xxl: 1200,
|
|
8
|
-
xxxl: 1550,
|
|
9
|
-
};
|
|
10
|
-
var mediaQueries = {
|
|
11
|
-
xs: "@media screen and (min-width: ".concat(breakpointMap.xs, "px)"),
|
|
12
|
-
sm: "@media screen and (min-width: ".concat(breakpointMap.sm, "px)"),
|
|
13
|
-
md: "@media screen and (min-width: ".concat(breakpointMap.md, "px)"),
|
|
14
|
-
lg: "@media screen and (min-width: ".concat(breakpointMap.lg, "px)"),
|
|
15
|
-
xl: "@media screen and (min-width: ".concat(breakpointMap.xl, "px)"),
|
|
16
|
-
xxl: "@media screen and (min-width: ".concat(breakpointMap.xxl, "px)"),
|
|
17
|
-
xxxl: "@media screen and (min-width: ".concat(breakpointMap.xxxl, "px)"),
|
|
18
|
-
nav: "@media screen and (min-width: ".concat(breakpointMap.lg, "px)"),
|
|
19
|
-
};
|
|
20
|
-
var baseTheme = {
|
|
21
|
-
breakpoints: [
|
|
22
|
-
"".concat(breakpointMap.xs, "px"),
|
|
23
|
-
"".concat(breakpointMap.sm, "px"),
|
|
24
|
-
"".concat(breakpointMap.md, "px"),
|
|
25
|
-
"".concat(breakpointMap.lg, "px"),
|
|
26
|
-
"".concat(breakpointMap.xl, "px"),
|
|
27
|
-
"".concat(breakpointMap.xxl, "px"),
|
|
28
|
-
"".concat(breakpointMap.xxxl, "px"),
|
|
29
|
-
],
|
|
30
|
-
space: [0, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 48, 64],
|
|
31
|
-
fontSizes: [12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 48, 64],
|
|
32
|
-
borderWidths: [0, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 48, 64],
|
|
33
|
-
mediaQueries: mediaQueries,
|
|
34
|
-
fontWeights: {
|
|
35
|
-
light: 400,
|
|
36
|
-
normal: 600,
|
|
37
|
-
bold: 700,
|
|
38
|
-
},
|
|
39
|
-
fonts: {
|
|
40
|
-
body: 'Poppins, sans-serif',
|
|
41
|
-
poppins: 'Poppins',
|
|
42
|
-
},
|
|
43
|
-
radii: {
|
|
44
|
-
small: '6px',
|
|
45
|
-
default: '16px',
|
|
46
|
-
normal: '10px',
|
|
47
|
-
card: '32px',
|
|
48
|
-
circle: '50%',
|
|
49
|
-
},
|
|
50
|
-
zIndices: { dropdown: 10, modal: 102 },
|
|
51
|
-
styles: {
|
|
52
|
-
root: {
|
|
53
|
-
fontFamily: 'body',
|
|
54
|
-
webkitFontSmoothing: 'antialiasing',
|
|
55
|
-
fontWeight: 600,
|
|
56
|
-
color: 'text',
|
|
57
|
-
bg: 'white1',
|
|
58
|
-
textDecoration: 'none',
|
|
59
|
-
},
|
|
60
|
-
a: {
|
|
61
|
-
color: 'text',
|
|
62
|
-
textDecoration: 'none',
|
|
63
|
-
':hover': {
|
|
64
|
-
color: 'secondary',
|
|
65
|
-
textDecoration: 'underline',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
nav: {
|
|
69
|
-
textDecoration: 'none',
|
|
70
|
-
breakpoints: ["@media screen and (min-width: ".concat(breakpointMap.lg, "px)")],
|
|
71
|
-
a: {
|
|
72
|
-
textDecoration: 'none',
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
progress: {
|
|
76
|
-
primary: 'primary',
|
|
77
|
-
color: 'green',
|
|
78
|
-
background: '#DAA628',
|
|
79
|
-
height: '20px',
|
|
80
|
-
},
|
|
81
|
-
hr: {
|
|
82
|
-
background: 'dividerColor',
|
|
83
|
-
height: '1px',
|
|
84
|
-
border: 'none',
|
|
85
|
-
},
|
|
86
|
-
h1: {
|
|
87
|
-
variant: 'text.heading',
|
|
88
|
-
fontSize: '30px',
|
|
89
|
-
lineHeight: '45px',
|
|
90
|
-
},
|
|
91
|
-
h2: {
|
|
92
|
-
variant: 'text.heading',
|
|
93
|
-
fontSize: '25px',
|
|
94
|
-
lineHeight: '37px',
|
|
95
|
-
},
|
|
96
|
-
h3: {
|
|
97
|
-
variant: 'text.heading',
|
|
98
|
-
fontSize: '22px',
|
|
99
|
-
lineHeight: '33px',
|
|
100
|
-
},
|
|
101
|
-
h4: {
|
|
102
|
-
variant: 'text.heading',
|
|
103
|
-
fontSize: '20px',
|
|
104
|
-
lineHeight: '30px',
|
|
105
|
-
},
|
|
106
|
-
h5: {
|
|
107
|
-
variant: 'text.heading',
|
|
108
|
-
fontSize: '16px',
|
|
109
|
-
lineHeight: '24px',
|
|
110
|
-
},
|
|
111
|
-
banner: {
|
|
112
|
-
variant: 'text.heading',
|
|
113
|
-
fontWeight: '800',
|
|
114
|
-
fontSize: '60px',
|
|
115
|
-
lineHeight: '66px',
|
|
116
|
-
},
|
|
117
|
-
input: {
|
|
118
|
-
fontFamily: 'base',
|
|
119
|
-
fontWeight: 'base',
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
export default baseTheme;
|
package/dist/theme/colors.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
var colors = {
|
|
2
|
-
// main background gradients
|
|
3
|
-
white1: '#0E0D16', // base site background
|
|
4
|
-
white2: '#161420',
|
|
5
|
-
white3: '#1F1D29',
|
|
6
|
-
white4: '#282632',
|
|
7
|
-
white5: '#312F3A',
|
|
8
|
-
brandPrimary140: '#C1BDE7',
|
|
9
|
-
navBar: 'rgba(22, 20, 32, 0.8)',
|
|
10
|
-
primaryButton: '#6560C5', //this should've been called just "primary"
|
|
11
|
-
primaryShade: '#514CA133',
|
|
12
|
-
secondary: '#E69275',
|
|
13
|
-
footer: '#000000',
|
|
14
|
-
success: '#38A611',
|
|
15
|
-
error: '#DF4141',
|
|
16
|
-
yellow: '#FFB300',
|
|
17
|
-
// Button colors
|
|
18
|
-
primaryButtonDisable: '#48475B',
|
|
19
|
-
primaryButtonHovered: '#8480D1',
|
|
20
|
-
textDisabledButton: '#73728E',
|
|
21
|
-
// Text-related colors
|
|
22
|
-
text: '#FAFAFA',
|
|
23
|
-
textDisabled: '#424242',
|
|
24
|
-
home: {
|
|
25
|
-
c1: 'radial-gradient(50% 50% at 50% 50%, rgba(217, 217, 217, 0) 0%, rgba(217, 217, 217, 0.02) 100%)',
|
|
26
|
-
c2: 'radial-gradient(50% 50% at 50% 50%, rgba(217, 217, 217, 0) 0%, rgba(217, 217, 217, 0.02) 100%)',
|
|
27
|
-
c3: 'radial-gradient(50% 50% at 50% 50%, rgba(217, 217, 217, 0) 0%, rgba(217, 217, 217, 0.02) 100%)',
|
|
28
|
-
cShadow: 'transparent',
|
|
29
|
-
hideCircles: '#0E0D16',
|
|
30
|
-
title: 'linear-gradient(98.79deg, #6560C5 -2.37%, #E07753 100%)',
|
|
31
|
-
shadowImage: 'rgba(101, 96, 197, 0.25)',
|
|
32
|
-
},
|
|
33
|
-
backgroundDisabled: '#3c3742',
|
|
34
|
-
listTagBg: {
|
|
35
|
-
ape: 'linear-gradient(99.09deg, rgba(161, 101, 82, 0.8) 0%, rgba(255, 179, 0, 0.8) 106.96%)',
|
|
36
|
-
launch: 'rgba(213, 49, 49, 0.2)',
|
|
37
|
-
reserve: 'rgba(90, 208, 109, 0.2)',
|
|
38
|
-
liquidity: 'rgba(60, 106, 181, 0.19)',
|
|
39
|
-
ark: 'rgba(208, 126, 90, 0.8)',
|
|
40
|
-
hot: '#DF4141',
|
|
41
|
-
new: '#38A611',
|
|
42
|
-
default: '#38A611',
|
|
43
|
-
auto: '#DF4141',
|
|
44
|
-
beta: '#38A611',
|
|
45
|
-
max: '#38A611',
|
|
46
|
-
real_yield: '#F0B90B',
|
|
47
|
-
bondLp: 'rgba(254, 185, 1, 0.2)',
|
|
48
|
-
migration: '#6F6AC930',
|
|
49
|
-
cex_fund: 'rgba(213, 49, 49, 0.2)',
|
|
50
|
-
expired: '#E07753',
|
|
51
|
-
permatlock: '#38A611',
|
|
52
|
-
},
|
|
53
|
-
listTagTextColor: {
|
|
54
|
-
liquidity: '#3B78D3',
|
|
55
|
-
cex_fund: '#D53131',
|
|
56
|
-
},
|
|
57
|
-
//
|
|
58
|
-
body: '#FDFBF5',
|
|
59
|
-
lvl1: '#F1EADA',
|
|
60
|
-
lvl2: '#EADFC7',
|
|
61
|
-
primaryBright: '#FAFAFA',
|
|
62
|
-
primaryDark: '#0B0B0B',
|
|
63
|
-
info: '#4D4040',
|
|
64
|
-
secondaryButtonDisableBg: '#F1EADA',
|
|
65
|
-
secondaryButtonDisableColor: 'rgba(66, 66, 66, 0.5)',
|
|
66
|
-
buttonDisabledText: '#A09F9C',
|
|
67
|
-
dividerColor: '#E2E2E2',
|
|
68
|
-
textareaColor: '#4D4040',
|
|
69
|
-
heading: '#4D4040',
|
|
70
|
-
black: '#000000',
|
|
71
|
-
gradient: 'linear-gradient(53.53deg, #A16552 15.88%, #E1B242 92.56%)',
|
|
72
|
-
smartGradient: 'linear-gradient(94.44deg, #BA801E -9.73%, #E7CF67 40.14%, #BA801E 93.01%)',
|
|
73
|
-
white2Opacity09: 'rgba(241, 234, 218, 0.50)',
|
|
74
|
-
radioChecked: '#FAFAFA',
|
|
75
|
-
navMenuLogo: '#C8BA9C',
|
|
76
|
-
input: '#4D4040',
|
|
77
|
-
primaryGray: '#4D40407F',
|
|
78
|
-
gray: '#7A7A7A',
|
|
79
|
-
brown: '#4D4040',
|
|
80
|
-
hoveredYellow: '#FFDA00',
|
|
81
|
-
hoveredSuccess: '#38A611B3',
|
|
82
|
-
hoveredDanger: '#DF4141B3',
|
|
83
|
-
modalOverlay: 'rgba(66, 66, 66, 0.5)',
|
|
84
|
-
opacityBadge: 'rgba(66, 66, 66, 0.5)',
|
|
85
|
-
gnanaWarningBackground: '#FFB300',
|
|
86
|
-
moon: '#7A7A7A',
|
|
87
|
-
island: '#4D4040',
|
|
88
|
-
migration: '#6560C5',
|
|
89
|
-
bg1: 'linear-gradient(180deg, #FFFFFF 0%, #EEDFC7 10%, #FFFFFF 40%, #FEFAE0 50%, #EEDFC7 100%), linear-gradient(180deg, #FEFCEC 27.58%, #EEDFC7 79.74%, #FEFAE0 131.91%, #F5ECDD 154.81%)',
|
|
90
|
-
bg2: 'linear-gradient(180deg, #FEFCEC 27.58%, #EEDFC7 79.74%, #FEFAE0 131.91%, #F5ECDD 154.81%)',
|
|
91
|
-
progressBar: 'linear-gradient(90deg, #312E7A 0%, #5C4FAE 41.5%, #AD6568 74.5%, #AD6E66 100%)',
|
|
92
|
-
};
|
|
93
|
-
export default colors;
|
package/dist/theme/components.js
DELETED
|
@@ -1,338 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
export var buttonHover = {
|
|
13
|
-
'&:not([disabled])': {
|
|
14
|
-
borderColor: 'var(--theme-ui-colors-primaryButton)',
|
|
15
|
-
background: 'var(--theme-ui-colors-primaryButton)',
|
|
16
|
-
opacity: 0.6,
|
|
17
|
-
},
|
|
18
|
-
'&:disabled': {},
|
|
19
|
-
};
|
|
20
|
-
export var textUnderlineHover = {
|
|
21
|
-
'::after': {
|
|
22
|
-
content: "''",
|
|
23
|
-
position: 'absolute',
|
|
24
|
-
background: 'text',
|
|
25
|
-
left: '0px',
|
|
26
|
-
bottom: '0px',
|
|
27
|
-
height: '1.5px',
|
|
28
|
-
width: '100%',
|
|
29
|
-
borderRadius: '10px',
|
|
30
|
-
transform: 'scaleX(0)',
|
|
31
|
-
transformOrigin: 'bottom right',
|
|
32
|
-
transition: 'transform 0.25s ease-out',
|
|
33
|
-
backfaceVisibility: 'hidden',
|
|
34
|
-
},
|
|
35
|
-
':hover::after': {
|
|
36
|
-
transform: 'scaleX(1)',
|
|
37
|
-
transformOrigin: 'bottom left',
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
var buttonBaseStyles = {
|
|
41
|
-
padding: '10px 20px 10px 19px',
|
|
42
|
-
fontSize: '16px',
|
|
43
|
-
fontFamily: 'body',
|
|
44
|
-
cursor: 'pointer',
|
|
45
|
-
fontWeight: 700,
|
|
46
|
-
display: 'flex',
|
|
47
|
-
alignItems: 'center',
|
|
48
|
-
'&&': {
|
|
49
|
-
borderRadius: 'normal',
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
var components = {
|
|
53
|
-
text: {
|
|
54
|
-
heading: {
|
|
55
|
-
fontFamily: 'body',
|
|
56
|
-
fontWeight: 'bold',
|
|
57
|
-
},
|
|
58
|
-
lg: { fontSize: 6, lineHeight: '33px' },
|
|
59
|
-
md: { fontSize: 3, lineHeight: '24px' },
|
|
60
|
-
sm: { fontSize: 1, lineHeight: '18px' },
|
|
61
|
-
},
|
|
62
|
-
input: {
|
|
63
|
-
fontFamily: 'body',
|
|
64
|
-
fontWeight: 700,
|
|
65
|
-
sm: {
|
|
66
|
-
background: 'white3',
|
|
67
|
-
borderRadius: 10,
|
|
68
|
-
height: '32px',
|
|
69
|
-
width: '200px',
|
|
70
|
-
},
|
|
71
|
-
md: {
|
|
72
|
-
background: 'white3',
|
|
73
|
-
borderRadius: 10,
|
|
74
|
-
height: '36px',
|
|
75
|
-
width: '200px',
|
|
76
|
-
},
|
|
77
|
-
lg: {
|
|
78
|
-
background: 'white3',
|
|
79
|
-
borderRadius: 14,
|
|
80
|
-
height: '48px',
|
|
81
|
-
width: '200px',
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
textarea: {
|
|
85
|
-
padding: '10px 13px 10px 10px',
|
|
86
|
-
borderRadius: 'normal',
|
|
87
|
-
border: 'none',
|
|
88
|
-
fontWeight: 'normal',
|
|
89
|
-
background: 'lvl1',
|
|
90
|
-
resize: 'none',
|
|
91
|
-
color: 'textareaColor',
|
|
92
|
-
'&:focus': {
|
|
93
|
-
outline: 'none !important',
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
checkbox: {
|
|
97
|
-
background: 'white2',
|
|
98
|
-
borderRadius: '5px',
|
|
99
|
-
borderWidth: '2px',
|
|
100
|
-
borderStyle: 'solid',
|
|
101
|
-
borderColor: 'white3',
|
|
102
|
-
boxShadow: 'none',
|
|
103
|
-
outline: 'none',
|
|
104
|
-
appearance: 'none',
|
|
105
|
-
width: 'inherit',
|
|
106
|
-
height: 'inherit',
|
|
107
|
-
margin: '0px',
|
|
108
|
-
cursor: 'pointer',
|
|
109
|
-
'& + svg': {
|
|
110
|
-
display: 'none',
|
|
111
|
-
position: 'absolute',
|
|
112
|
-
pointerEvents: 'none',
|
|
113
|
-
top: '0',
|
|
114
|
-
left: '0',
|
|
115
|
-
bottom: '0',
|
|
116
|
-
right: '0',
|
|
117
|
-
margin: 'auto',
|
|
118
|
-
},
|
|
119
|
-
'&:checked ': {
|
|
120
|
-
background: 'var(--theme-ui-colors-primaryButton)',
|
|
121
|
-
borderColor: 'var(--theme-ui-colors-primaryButton)',
|
|
122
|
-
'& + svg': {
|
|
123
|
-
display: 'block',
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
'&:focus:not(:checked)': {
|
|
127
|
-
outline: 'none',
|
|
128
|
-
boxShadow: 'none',
|
|
129
|
-
},
|
|
130
|
-
'&:focus': {
|
|
131
|
-
outline: 'none',
|
|
132
|
-
boxShadow: '0px 0px 0px 1px var(--theme-ui-colors-primaryButton), 0px 0px 0px 4px var(--theme-ui-colors-white3)',
|
|
133
|
-
},
|
|
134
|
-
'&:hover:not(:disabled):not(:checked)': {
|
|
135
|
-
borderColor: 'var(--theme-ui-colors-primaryButton)',
|
|
136
|
-
boxShadow: '0px 0px 0px 1px var(--theme-ui-colors-primaryButton), 0px 0px 0px 4px var(--theme-ui-colors-white3)',
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
radio: {
|
|
140
|
-
background: 'lvl1',
|
|
141
|
-
borderRadius: '50px',
|
|
142
|
-
borderWidth: '2px',
|
|
143
|
-
borderStyle: 'solid',
|
|
144
|
-
borderColor: 'lvl2',
|
|
145
|
-
boxShadow: 'none',
|
|
146
|
-
outline: 'none',
|
|
147
|
-
appearance: 'none',
|
|
148
|
-
width: 'inherit',
|
|
149
|
-
height: 'inherit',
|
|
150
|
-
margin: '0px',
|
|
151
|
-
cursor: 'pointer',
|
|
152
|
-
'& + span': {
|
|
153
|
-
display: 'none',
|
|
154
|
-
position: 'absolute',
|
|
155
|
-
pointerEvents: 'none',
|
|
156
|
-
top: '0',
|
|
157
|
-
left: '0',
|
|
158
|
-
bottom: '0',
|
|
159
|
-
right: '0',
|
|
160
|
-
margin: 'auto',
|
|
161
|
-
backgroundColor: 'radioChecked',
|
|
162
|
-
borderRadius: '50px',
|
|
163
|
-
},
|
|
164
|
-
'&:checked ': {
|
|
165
|
-
background: 'var(--theme-ui-colors-yellow)',
|
|
166
|
-
borderColor: 'var(--theme-ui-colors-yellow)',
|
|
167
|
-
'& + span': {
|
|
168
|
-
display: 'block',
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
'&:focus': {
|
|
172
|
-
outline: 'none',
|
|
173
|
-
boxShadow: '0px 0px 0px 1px var(--theme-ui-colors-yellow), 0px 0px 0px 4px rgb(255, 179, 0, .2)',
|
|
174
|
-
},
|
|
175
|
-
'&:hover:not(:disabled):not(:checked)': {
|
|
176
|
-
borderColor: 'var(--theme-ui-colors-yellow)',
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
label: {
|
|
180
|
-
inline: {
|
|
181
|
-
display: 'inline-flex',
|
|
182
|
-
alignItems: 'center',
|
|
183
|
-
columnGap: 2,
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
borders: {
|
|
187
|
-
primaryButton: '3px solid var(--theme-ui-colors-primaryButton)',
|
|
188
|
-
primaryBtnDisable: '3px solid transparent',
|
|
189
|
-
secondaryButton: '3px solid var(--theme-ui-colors-primaryButton)',
|
|
190
|
-
secondaryButtonDisable: '3px solid #FDFBF5',
|
|
191
|
-
mode: {
|
|
192
|
-
dark: {
|
|
193
|
-
secondaryButtonDisable: '3px solid #F9F4E7',
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
},
|
|
197
|
-
buttons: {
|
|
198
|
-
primary: __assign(__assign({}, buttonBaseStyles), { background: 'primaryButton', border: 'primaryButton', color: 'primaryBright', '&:disabled': {
|
|
199
|
-
cursor: 'not-allowed',
|
|
200
|
-
background: 'white3',
|
|
201
|
-
color: 'textDisabledButton',
|
|
202
|
-
border: 'primaryBtnDisable',
|
|
203
|
-
opacity: 0.9,
|
|
204
|
-
}, '&:hover': {
|
|
205
|
-
'&:not([disabled])': {
|
|
206
|
-
borderColor: 'rgba(var(--theme-ui-colors-primaryButton), 0.7)',
|
|
207
|
-
background: 'rgba(var(--theme-ui-colors-primaryButton), 0.7)',
|
|
208
|
-
},
|
|
209
|
-
'&:disabled': {},
|
|
210
|
-
} }),
|
|
211
|
-
secondary: __assign(__assign({}, buttonBaseStyles), { background: 'transparent', border: 'secondaryButton', color: 'var(--theme-ui-colors-primaryButton)', '&:disabled': {
|
|
212
|
-
cursor: 'not-allowed',
|
|
213
|
-
background: 'white3',
|
|
214
|
-
color: 'primaryButtonDisable',
|
|
215
|
-
border: 'primaryBtnDisable',
|
|
216
|
-
}, '&&:hover': {
|
|
217
|
-
'&:not([disabled])': {
|
|
218
|
-
borderColor: 'rgba(var(--theme-ui-colors-primaryButton), 0.7)',
|
|
219
|
-
},
|
|
220
|
-
'&:disabled': {},
|
|
221
|
-
} }),
|
|
222
|
-
tertiary: __assign(__assign({}, buttonBaseStyles), { background: 'white3', border: 'none', color: 'text', '&:disabled': {
|
|
223
|
-
cursor: 'not-allowed',
|
|
224
|
-
background: 'white3',
|
|
225
|
-
color: 'primaryButtonDisable',
|
|
226
|
-
}, '&:hover': {
|
|
227
|
-
'&:not([disabled])': {
|
|
228
|
-
background: 'white4',
|
|
229
|
-
},
|
|
230
|
-
'&:disabled': {},
|
|
231
|
-
} }),
|
|
232
|
-
text: __assign(__assign({}, buttonBaseStyles), { background: 'transparent', color: 'text', '&:hover': {
|
|
233
|
-
'&:not([disabled])': {
|
|
234
|
-
color: 'var(--theme-ui-colors-yellow)',
|
|
235
|
-
},
|
|
236
|
-
'&:disabled': {},
|
|
237
|
-
}, '&:disabled': {
|
|
238
|
-
cursor: 'not-allowed',
|
|
239
|
-
background: 'white3',
|
|
240
|
-
color: 'primaryButtonDisable',
|
|
241
|
-
} }),
|
|
242
|
-
success: __assign(__assign({}, buttonBaseStyles), { background: 'success', color: 'primaryBright', '&:disabled': {
|
|
243
|
-
cursor: 'not-allowed',
|
|
244
|
-
background: 'white3',
|
|
245
|
-
color: 'primaryButtonDisable',
|
|
246
|
-
}, '&:hover': {
|
|
247
|
-
'&:not([disabled])': {
|
|
248
|
-
background: 'hoveredSuccess',
|
|
249
|
-
},
|
|
250
|
-
'&:disabled': {},
|
|
251
|
-
} }),
|
|
252
|
-
danger: __assign(__assign({}, buttonBaseStyles), { background: 'error', color: 'primaryBright', '&:disabled': {
|
|
253
|
-
cursor: 'not-allowed',
|
|
254
|
-
background: 'white3',
|
|
255
|
-
color: 'primaryButtonDisable',
|
|
256
|
-
}, '&:hover': {
|
|
257
|
-
'&:not([disabled])': {
|
|
258
|
-
background: 'hoveredDanger',
|
|
259
|
-
},
|
|
260
|
-
'&:disabled': {},
|
|
261
|
-
} }),
|
|
262
|
-
circular: {
|
|
263
|
-
width: '40px',
|
|
264
|
-
height: '40px',
|
|
265
|
-
background: 'white3',
|
|
266
|
-
borderRadius: '50%',
|
|
267
|
-
display: 'flex',
|
|
268
|
-
justifyContent: 'center',
|
|
269
|
-
alignItems: 'center',
|
|
270
|
-
overflow: 'hidden',
|
|
271
|
-
cursor: 'pointer',
|
|
272
|
-
padding: '1px',
|
|
273
|
-
transition: 'all .3s linear',
|
|
274
|
-
'&:hover': {
|
|
275
|
-
filter: 'brightness(85%)',
|
|
276
|
-
},
|
|
277
|
-
'&:active': {
|
|
278
|
-
transform: 'scale(0.9)',
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
},
|
|
282
|
-
cards: {
|
|
283
|
-
primary: {
|
|
284
|
-
background: 'navbar',
|
|
285
|
-
borderRadius: 'normal',
|
|
286
|
-
},
|
|
287
|
-
},
|
|
288
|
-
flex: {
|
|
289
|
-
dexContainer: {
|
|
290
|
-
width: '100%',
|
|
291
|
-
maxWidth: '420px',
|
|
292
|
-
height: 'fit-content',
|
|
293
|
-
background: 'white2',
|
|
294
|
-
padding: ['15px 5px', '15px 10px', '15px'],
|
|
295
|
-
borderRadius: '10px',
|
|
296
|
-
flexDirection: 'column',
|
|
297
|
-
},
|
|
298
|
-
v3SubDexContainer: {
|
|
299
|
-
width: '100%',
|
|
300
|
-
maxWidth: '600px',
|
|
301
|
-
height: 'fit-content',
|
|
302
|
-
background: 'white2',
|
|
303
|
-
padding: ['15px 5px', '15px 10px', '15px'],
|
|
304
|
-
borderRadius: '10px',
|
|
305
|
-
margin: '0px 10px',
|
|
306
|
-
flexDirection: 'column',
|
|
307
|
-
},
|
|
308
|
-
navContainer: {
|
|
309
|
-
height: '35px',
|
|
310
|
-
padding: '0px 15px',
|
|
311
|
-
background: 'white3',
|
|
312
|
-
borderRadius: '10px',
|
|
313
|
-
alignItems: 'center',
|
|
314
|
-
cursor: 'pointer',
|
|
315
|
-
transition: 'all .3s linear',
|
|
316
|
-
'&:hover': {
|
|
317
|
-
filter: 'brightness(95%)',
|
|
318
|
-
},
|
|
319
|
-
'&:active': {
|
|
320
|
-
transform: 'scale(0.9)',
|
|
321
|
-
},
|
|
322
|
-
},
|
|
323
|
-
link: __assign(__assign({}, textUnderlineHover), { cursor: 'pointer', textDecoration: 'none', display: 'inline-block' }),
|
|
324
|
-
tag: {
|
|
325
|
-
padding: '5px',
|
|
326
|
-
borderRadius: '5px',
|
|
327
|
-
alignItems: 'center',
|
|
328
|
-
justifyContent: 'center',
|
|
329
|
-
},
|
|
330
|
-
},
|
|
331
|
-
switch: {
|
|
332
|
-
backgroundColor: 'white4',
|
|
333
|
-
'input:checked ~ &': {
|
|
334
|
-
backgroundColor: 'var(--theme-ui-colors-yellow)',
|
|
335
|
-
},
|
|
336
|
-
},
|
|
337
|
-
};
|
|
338
|
-
export default components;
|
package/dist/theme/display.js
DELETED
package/dist/theme/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import baseTheme from './base';
|
|
13
|
-
import components from './components';
|
|
14
|
-
import abondColors from './colors';
|
|
15
|
-
export var defaultTheme = __assign(__assign(__assign({}, baseTheme), components), { colors: __assign({}, abondColors) });
|
package/dist/theme/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/bonds.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/yourbonds.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ethers } from 'ethers';
|
|
2
|
-
export function adjustDecimals(numStr) {
|
|
3
|
-
var parts = numStr.split('.');
|
|
4
|
-
if (parts.length < 2) {
|
|
5
|
-
// This means the number doesn't have any decimals
|
|
6
|
-
return numStr;
|
|
7
|
-
}
|
|
8
|
-
if (parts[1].length > 18) {
|
|
9
|
-
parts[1] = parts[1].slice(0, 18); // Take the first 18 decimals
|
|
10
|
-
return parts[0] + '.' + parts[1];
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
return numStr;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
var convertToTokenValue = function (numberString, decimals) {
|
|
17
|
-
if (isNaN(parseFloat(numberString))) {
|
|
18
|
-
console.error('Error: numberString to parse is not a number');
|
|
19
|
-
return ethers.utils.parseUnits('0', decimals);
|
|
20
|
-
}
|
|
21
|
-
var tokenValue = ethers.utils.parseUnits(adjustDecimals(numberString), decimals);
|
|
22
|
-
return tokenValue;
|
|
23
|
-
};
|
|
24
|
-
export default convertToTokenValue;
|