@ape.swap/bonds-sdk 3.3.0-test.4 → 3.3.0-test.6
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/BondFilters/BondFilters.js +1 -1
- package/dist/components/BondFilters/BondFilters.js.map +1 -1
- package/dist/components/ChainOptionList/ChainOptionsButtons.js +3 -3
- package/dist/components/ChainOptionList/ChainOptionsButtons.js.map +1 -1
- package/dist/components/ChainOptionList/ChainOptionsList.js +5 -5
- package/dist/components/ChainOptionList/ChainOptionsList.js.map +1 -1
- package/dist/components/FavIcons/AddFavToken.js +4 -2
- package/dist/components/FavIcons/AddFavToken.js.map +1 -1
- package/dist/components/FavIcons/FavFilter.js +3 -2
- package/dist/components/FavIcons/FavFilter.js.map +1 -1
- package/dist/components/NetworkFilter/index.js +7 -4
- package/dist/components/NetworkFilter/index.js.map +1 -1
- package/dist/components/PlaceholderMonkey/index.js +2 -2
- package/dist/components/PlaceholderMonkey/index.js.map +1 -1
- package/dist/components/SlippageModal/index.js +0 -1
- package/dist/components/SlippageModal/index.js.map +1 -1
- package/dist/components/StepBubble/index.js +2 -2
- package/dist/components/StepBubble/index.js.map +1 -1
- package/dist/components/Toast/index.js +7 -3
- package/dist/components/Toast/index.js.map +1 -1
- package/dist/components/TokenInfoAndName/index.js +3 -3
- package/dist/components/TokenInfoAndName/index.js.map +1 -1
- package/dist/components/TokenSelectorModal/index.js +0 -1
- package/dist/components/TokenSelectorModal/index.js.map +1 -1
- package/dist/components/TokenSelectorPanel/index.js +2 -2
- package/dist/components/TokenSelectorPanel/index.js.map +1 -1
- package/dist/components/Tooltip/ButtonsRow.js +5 -2
- package/dist/components/Tooltip/ButtonsRow.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/uikit-sdk/Button/IconButton.js +3 -4
- package/dist/components/uikit-sdk/Button/IconButton.js.map +1 -1
- package/dist/components/uikit-sdk/Button/types.d.ts +3 -3
- package/dist/components/uikit-sdk/Button/types.js.map +1 -1
- package/dist/components/uikit-sdk/Input/Input.js +2 -2
- package/dist/components/uikit-sdk/Input/Input.js.map +1 -1
- package/dist/components/uikit-sdk/Modal/ModalHeader.js +1 -1
- package/dist/components/uikit-sdk/Modal/ModalHeader.js.map +1 -1
- package/dist/components/uikit-sdk/Select/Select.js +2 -2
- package/dist/components/uikit-sdk/Select/Select.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Bubble.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Bubble.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Close.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Close.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Cog.d.ts +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Error.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Error.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/External.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/External.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/More.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/More.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.d.ts +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkeyAlt.d.ts +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Search.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Search.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Success.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Success.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.d.ts +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Tick.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Tick.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Timer.js +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Timer.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/URL.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/URL.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +3 -2
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js.map +1 -1
- package/dist/components/uikit-sdk/Svg/Icons/types.d.ts +1 -4
- package/dist/components/uikit-sdk/Svg/types.d.ts +0 -170
- package/dist/components/uikit-sdk/TokenImage/index.js +4 -4
- package/dist/components/uikit-sdk/TokenImage/index.js.map +1 -1
- package/dist/config/constants/chains.d.ts +4 -2
- package/dist/config/constants/chains.js +43 -23
- package/dist/config/constants/chains.js.map +1 -1
- package/dist/utils/formatNumbers.d.ts +0 -1
- package/dist/utils/formatNumbers.js +19 -13
- package/dist/utils/formatNumbers.js.map +1 -1
- package/dist/utils/numbers.d.ts +0 -4
- package/dist/utils/numbers.js +0 -2
- package/dist/utils/numbers.js.map +1 -1
- package/dist/views/Bonds/Bonds.js +2 -2
- package/dist/views/Bonds/Bonds.js.map +1 -1
- package/dist/views/Bonds/components/BondRows/BondRow.js +4 -3
- package/dist/views/Bonds/components/BondRows/BondRow.js.map +1 -1
- package/dist/views/Bonds/components/BondRows/ChainTitle.js +3 -2
- package/dist/views/Bonds/components/BondRows/ChainTitle.js.map +1 -1
- package/dist/views/Bonds/components/BondsMenu/BondsMenu.js +2 -3
- package/dist/views/Bonds/components/BondsMenu/BondsMenu.js.map +1 -1
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.js +2 -2
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.js.map +1 -1
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.js +2 -2
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.js.map +1 -1
- package/dist/views/BuyBond/BuyBond.js +2 -2
- package/dist/views/BuyBond/BuyBond.js.map +1 -1
- package/dist/views/BuyBond/components/BondCards.js +6 -5
- package/dist/views/BuyBond/components/BondCards.js.map +1 -1
- package/dist/views/BuyBond/components/BondModalHeader.js +3 -2
- package/dist/views/BuyBond/components/BondModalHeader.js.map +1 -1
- package/dist/views/BuyBond/components/Estimations.js +3 -3
- package/dist/views/BuyBond/components/Estimations.js.map +1 -1
- package/dist/views/BuyBond/components/ExpandedViewButton.js +2 -2
- package/dist/views/BuyBond/components/ExpandedViewButton.js.map +1 -1
- package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.js +2 -2
- package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.js.map +1 -1
- package/dist/views/BuyBond/components/NewRateModal/NewRateModal.js +2 -2
- package/dist/views/BuyBond/components/NewRateModal/NewRateModal.js.map +1 -1
- package/dist/views/PreTGEBonds/components/BuyComponent/BondCards.js +5 -5
- package/dist/views/PreTGEBonds/components/BuyComponent/BondCards.js.map +1 -1
- package/dist/views/PreTGEBonds/components/BuyComponent/ParticipationSuccessful.js +3 -3
- package/dist/views/PreTGEBonds/components/BuyComponent/ParticipationSuccessful.js.map +1 -1
- package/dist/views/PreTGEBonds/components/BuyComponent/PreTGEBuyComponent.js +3 -3
- package/dist/views/PreTGEBonds/components/BuyComponent/PreTGEBuyComponent.js.map +1 -1
- package/dist/views/PreTGEBonds/components/PreTGEUserRows/PreTGEUserRow.js +2 -2
- package/dist/views/PreTGEBonds/components/PreTGEUserRows/PreTGEUserRow.js.map +1 -1
- package/dist/views/TransactionModal/TransactionModal.js +3 -3
- package/dist/views/TransactionModal/TransactionModal.js.map +1 -1
- package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.js +2 -2
- package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.js.map +1 -1
- package/dist/views/YourBonds/components/UserBondRow/index.js +2 -2
- package/dist/views/YourBonds/components/UserBondRow/index.js.map +1 -1
- package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.js +2 -3
- package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.js.map +1 -1
- package/dist/views/YourBondsModal/YourBondsModal.js +7 -6
- package/dist/views/YourBondsModal/YourBondsModal.js.map +1 -1
- package/dist/views/YourBondsModal/components/NFTImage/NFTImage.js +5 -3
- package/dist/views/YourBondsModal/components/NFTImage/NFTImage.js.map +1 -1
- package/dist/views/YourBondsModal/components/TransferBondModal/index.js +0 -1
- package/dist/views/YourBondsModal/components/TransferBondModal/index.js.map +1 -1
- package/dist/views/YourBondsModal/components/YourBondModalHeader/YourBondModalHeader.js +2 -2
- package/dist/views/YourBondsModal/components/YourBondModalHeader/YourBondModalHeader.js.map +1 -1
- package/dist/views/ZapModal/index.js +4 -2
- package/dist/views/ZapModal/index.js.map +1 -1
- package/package.json +6 -7
- package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/AbondFullLogo.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/AbondSmallLogo.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/AccountMonkey.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js +0 -19
- package/dist/components/uikit-sdk/Svg/Icons/ApebondLogo.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/ApeswapSmallLogo.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/BananaIcon.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/BillsM1.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js +0 -19
- package/dist/components/uikit-sdk/Svg/Icons/BillsM2.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/BillsM3.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Bridge.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Bridge.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Calculator.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Calculator.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Calendar.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/Calendar.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Cancelled.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Card.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Card.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Chain.js +0 -10
- package/dist/components/uikit-sdk/Svg/Icons/Chain.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Chart.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Chart.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Chat.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Chat.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Collapse.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Collapse.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Copy.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Copy.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/DiscordNew.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Docs.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Docs.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/DocsV2.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Ellipse.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Explorer.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Explorer.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Farcaster.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/Farcaster.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Farm.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Farm.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Fav.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Fav.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/FilledURL.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Frame.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Frame.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/FullLogo.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Gnana.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Gnana.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/GreenShield.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/HamburgerClosed.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Home.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Home.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Hot.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/Hot.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Info.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Info.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/InfoSolid.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Island.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Island.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/LanguageIcon.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/LiquidityIcon.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Logout.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Logout.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/MenuSettings.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Message.js +0 -11
- package/dist/components/uikit-sdk/Svg/Icons/Message.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Migrate.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Migrate.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Moon.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Moon.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/NFA.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/NFA.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/NavCaret.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkeyAlt.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkeyAlt.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Play.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/Play.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Pool.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Pool.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Positions.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Positions.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/ProfileDark.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/ProfileIcon.js +0 -15
- package/dist/components/uikit-sdk/Svg/Icons/ProfileIcon.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/ProfileLight.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/QuestionFill.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Quiz.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Quiz.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Receipt.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Receipt.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Rocket.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Rocket.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/ScrollTop.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Send.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Send.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Settings.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Settings.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Share.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Share.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/SuccessOutline.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/SwapArrows.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/SwitchArrows.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/TelegramNew.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/TextLogo.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/TickShield.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/TickShield.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Trade.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Trade.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Trash.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Trash.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Vaults.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Vaults.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Verified.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/Verified.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Wallet.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Wallet.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Warning.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Warning.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Watch.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Watch.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/Website.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/Website.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/WebsiteNew.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/WhitepaperNew.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/XNew.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/XNew.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js +0 -8
- package/dist/components/uikit-sdk/Svg/Icons/YellowQuestionMark.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/Icons/index.d.ts +0 -117
- package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js +0 -18
- package/dist/components/uikit-sdk/Svg/Icons/polygonNew.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/index.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/index.js +0 -515
- package/dist/components/uikit-sdk/Svg/index.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/ABOND.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/ABOND.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/ABOND.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/BANANA.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/BANANA.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/BANANA.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/BSC.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/CELO.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/GNANA.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/GNANA.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/GNANA.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/OKX.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +0 -10
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +0 -8
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/tokens/index.d.ts +0 -29
- package/dist/components/uikit-sdk/Svg/types.js +0 -183
- package/dist/components/uikit-sdk/Svg/types.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/BinanceChain.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/Bitkeep.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/Brave.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/Coinbase.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/MadWallet.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/MathWallet.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/Metamask.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/Nabox.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/OKX.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/OntoWallet.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/SafePalWallet.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/SocialLogin.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/TokenPocket.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/TorusWallet.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/TrustWallet.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.d.ts +0 -4
- package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/Unstoppable.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletConnect.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.d.ts +0 -3
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js +0 -8
- package/dist/components/uikit-sdk/Svg/walletIcons/WalletImage.js.map +0 -1
- package/dist/components/uikit-sdk/Svg/walletIcons/index.d.ts +0 -18
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZapArrow.js","sources":["../../../../../src/components/uikit-sdk/Svg/Icons/ZapArrow.tsx"],"sourcesContent":["import React from 'react'\nimport { rotation, SvgProps } from './types'\n\nconst Arrow: React.FC<SvgProps> = ({ direction = 'down', color = 'text', width
|
|
1
|
+
{"version":3,"file":"ZapArrow.js","sources":["../../../../../src/components/uikit-sdk/Svg/Icons/ZapArrow.tsx"],"sourcesContent":["import React from 'react'\nimport { rotation, SvgProps } from './types'\nimport { dynamicStyles } from '../styles'\n\nconst Arrow: React.FC<SvgProps> = ({ direction = 'down', color = 'text', width }) => {\n const deg: rotation = {\n left: 90,\n up: 180,\n right: 270,\n down: 0,\n }\n const style = dynamicStyles.generic({\n degree: deg[direction as keyof rotation],\n color,\n })\n return (\n <svg width={width || '30'} height=\"30\" viewBox=\"0 0 30 30\" fill=\"none\" sx={style}>\n <rect\n x=\"1\"\n y=\"1\"\n width=\"28\"\n height=\"28\"\n rx=\"14\"\n fill=\"var(--theme-ui-colors-primaryButton)\"\n stroke=\"#F9F4E7\"\n strokeWidth=\"0\"\n />\n <path\n d=\"M15.0037 15.5939C15.7767 15.5939 16.4765 15.6395 16.907 15.7243C16.9137 15.7243 17.3076 15.8084 17.4389 15.8626C17.6285 15.9475 17.7889 16.1008 17.8911 16.2925C17.9642 16.4458 18 16.6077 18 16.7766C17.9933 16.9527 17.8836 17.2835 17.8321 17.414C17.5121 18.2738 16.4616 19.917 15.8207 20.5473C15.7185 20.6542 15.5946 20.7697 15.5655 20.8004C15.4044 20.9308 15.2082 21 14.997 21C14.8068 21 14.6173 20.9387 14.4643 20.8153C14.3849 20.7564 14.2689 20.6391 14.2159 20.5841L14.1875 20.5544C13.5235 19.91 12.5252 18.3044 12.2044 17.4902C12.1976 17.4902 12.0378 17.0841 12.0054 16.839L12 16.7766V16.746C12 16.3923 12.1895 16.0623 12.4961 15.8933C12.664 15.8013 13.152 15.7165 13.1594 15.7086C13.5966 15.6395 14.2673 15.5939 15.0037 15.5939ZM15.0004 10C15.3935 10 15.7164 10.3143 15.7552 10.7175L15.7591 10.7992L15.5957 13.8288C15.5957 14.1754 15.3294 14.456 15.0004 14.456C14.6949 14.456 14.4434 14.2141 14.409 13.902L14.405 13.8288L14.2409 10.7992C14.2409 10.3576 14.5811 10 15.0004 10Z\"\n fill=\"#fff\"\n />\n </svg>\n )\n}\n\nexport default Arrow\n"],"names":["_jsxs","_jsx"],"mappings":";;;AAIA,MAAM,KAAK,GAAuB,CAAC,EAAE,SAAS,GAAG,MAAM,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,KAAI;AAClF,IAAA,MAAM,GAAG,GAAa;AACpB,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,EAAE,EAAE,GAAG;AACP,QAAA,KAAK,EAAE,GAAG;AACV,QAAA,IAAI,EAAE,CAAC;KACR;AACD,IAAA,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC;AAClC,QAAA,MAAM,EAAE,GAAG,CAAC,SAA2B,CAAC;QACxC,KAAK;AACN,KAAA,CAAC;AACF,IAAA,QACEA,IAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,KAAK,IAAI,IAAI,EAAE,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,EAAE,EAAE,KAAK,EAAA,QAAA,EAAA,CAC9EC,GAAA,CAAA,MAAA,EAAA,EACE,CAAC,EAAC,GAAG,EACL,CAAC,EAAC,GAAG,EACL,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,EAAE,EAAC,IAAI,EACP,IAAI,EAAC,sCAAsC,EAC3C,MAAM,EAAC,SAAS,EAChB,WAAW,EAAC,GAAG,EAAA,CACf,EACFA,cACE,CAAC,EAAC,q9BAAq9B,EACv9B,IAAI,EAAC,MAAM,EAAA,CACX,CAAA,EAAA,CACE;AAEV;;;;"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { jsx } from 'theme-ui/jsx-runtime';
|
|
2
|
+
import { dynamicStyles } from '../styles.js';
|
|
2
3
|
|
|
3
|
-
const Arrow = ({ direction = 'down', color = 'text', width
|
|
4
|
+
const Arrow = ({ direction = 'down', color = 'text', width }) => {
|
|
4
5
|
const deg = {
|
|
5
6
|
left: 90,
|
|
6
7
|
up: 180,
|
|
7
8
|
right: 270,
|
|
8
9
|
down: 0,
|
|
9
10
|
};
|
|
10
|
-
const style =
|
|
11
|
+
const style = dynamicStyles.generic({
|
|
11
12
|
degree: deg[direction],
|
|
12
13
|
color,
|
|
13
14
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZapIcon.js","sources":["../../../../../src/components/uikit-sdk/Svg/Icons/ZapIcon.tsx"],"sourcesContent":["import React from 'react'\nimport { rotation, SvgProps } from './types'\n\nconst Arrow: React.FC<SvgProps> = ({ direction = 'down', color = 'text', width
|
|
1
|
+
{"version":3,"file":"ZapIcon.js","sources":["../../../../../src/components/uikit-sdk/Svg/Icons/ZapIcon.tsx"],"sourcesContent":["import React from 'react'\nimport { rotation, SvgProps } from './types'\nimport { dynamicStyles } from '../styles'\n\nconst Arrow: React.FC<SvgProps> = ({ direction = 'down', color = 'text', width }) => {\n const deg: rotation = {\n left: 90,\n up: 180,\n right: 270,\n down: 0,\n }\n const style = dynamicStyles.generic({\n degree: deg[direction as keyof rotation],\n color,\n })\n return (\n <svg width={width || '11'} height=\"18\" viewBox=\"0 0 11 18\" sx={style}>\n <path\n xmlns=\"http://www.w3.org/2000/svg\"\n d=\"M4.05315 18C3.66071 18 3.36083 17.6498 3.4212 17.2621L4.40395 10.95H0.495277C0.298951 10.95 0.156169 10.8667 0.0669294 10.7C-0.0223098 10.5333 -0.0223098 10.375 0.0669294 10.225L6.43712 0.294459C6.55483 0.110964 6.75784 0 6.97584 0C7.36872 0 7.66886 0.350677 7.60821 0.738842L6.62601 7.025H10.4811C10.6775 7.025 10.8247 7.10833 10.9229 7.275C11.021 7.44167 11.0255 7.6 10.9363 7.75L4.59249 17.7042C4.47505 17.8884 4.27166 18 4.05315 18Z\"\n />\n </svg>\n )\n}\n\nexport default Arrow\n"],"names":["_jsx"],"mappings":";;;AAIA,MAAM,KAAK,GAAuB,CAAC,EAAE,SAAS,GAAG,MAAM,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,KAAI;AAClF,IAAA,MAAM,GAAG,GAAa;AACpB,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,EAAE,EAAE,GAAG;AACP,QAAA,KAAK,EAAE,GAAG;AACV,QAAA,IAAI,EAAE,CAAC;KACR;AACD,IAAA,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC;AAClC,QAAA,MAAM,EAAE,GAAG,CAAC,SAA2B,CAAC;QACxC,KAAK;AACN,KAAA,CAAC;AACF,IAAA,QACEA,GAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,KAAK,IAAI,IAAI,EAAE,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,EAAE,EAAE,KAAK,EAAA,QAAA,EAClEA,GAAA,CAAA,MAAA,EAAA,EACE,KAAK,EAAC,4BAA4B,EAClC,CAAC,EAAC,sbAAsb,EAAA,CACxb,EAAA,CACE;AAEV;;;;"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { ThemeUIStyleObject } from 'theme-ui';
|
|
2
1
|
import { SvgProps as Props, directions } from '../types';
|
|
3
|
-
export
|
|
4
|
-
getStyles: (props: any) => ThemeUIStyleObject;
|
|
5
|
-
}
|
|
2
|
+
export type SvgProps = Props;
|
|
6
3
|
export interface rotation {
|
|
7
4
|
[directions.LEFT]: number;
|
|
8
5
|
[directions.RIGHT]: number;
|
|
@@ -1,181 +1,11 @@
|
|
|
1
|
-
export declare enum icons {
|
|
2
|
-
CARET = "caret",
|
|
3
|
-
EXTERNAL = "external",
|
|
4
|
-
HOME = "home",
|
|
5
|
-
CALCULATOR = "calculator",
|
|
6
|
-
FARM = "farm",
|
|
7
|
-
FRAME = "frame",
|
|
8
|
-
GNANA = "gnana",
|
|
9
|
-
INFO = "info",
|
|
10
|
-
MORE = "more",
|
|
11
|
-
NFA = "nfa",
|
|
12
|
-
POOL = "pool",
|
|
13
|
-
ROCKET = "rocket",
|
|
14
|
-
TRADE = "trade",
|
|
15
|
-
VAULT = "vault",
|
|
16
|
-
ELLIPSE = "ellipse",
|
|
17
|
-
TWITTER = "twitter",
|
|
18
|
-
SEND = "send",
|
|
19
|
-
ERROR = "error",
|
|
20
|
-
CLOSE = "close",
|
|
21
|
-
COLLAPSE = "collapse",
|
|
22
|
-
TEXTLOGO = "textLogo",
|
|
23
|
-
PROFILELIGHT = "profileLight",
|
|
24
|
-
PROFILEDARK = "profileDark",
|
|
25
|
-
PROFILEICON = "profileIcon",
|
|
26
|
-
HAMBURGER = "hamburger",
|
|
27
|
-
SEARCH = "search",
|
|
28
|
-
SUCCESS = "success",
|
|
29
|
-
QUESTION_CIRCLE = "questionCircle",
|
|
30
|
-
QUESTION = "question",
|
|
31
|
-
SETTINGS = "settings",
|
|
32
|
-
CHART = "chart",
|
|
33
|
-
BNB_TOKEN = "bnb_token",
|
|
34
|
-
BANANA_TOKEN = "banana_token",
|
|
35
|
-
ETH_TOKEN = "eth_token",
|
|
36
|
-
GNANA_TOKEN = "gnana_token",
|
|
37
|
-
POLYGON_TOKEN = "polygon_token",
|
|
38
|
-
TLOS_TOKEN = "tlos_token",
|
|
39
|
-
BSC_TOKEN = "bsc_token",
|
|
40
|
-
ARBITRUM_TOKEN = "arbitrum_token",
|
|
41
|
-
AVAX_TOKEN = "avax_token",
|
|
42
|
-
OPTIMISM_TOKEN = "optimism_token",
|
|
43
|
-
FANTOM_TOKEN = "fantom_token",
|
|
44
|
-
CRONOS_TOKEN = "cronos_token",
|
|
45
|
-
POLYGONZK_TOKEN = "polygonzk_token",
|
|
46
|
-
CELO_TOKEN = "celo_token",
|
|
47
|
-
GNOSIS_TOKEN = "gnosis_token",
|
|
48
|
-
OKX_TOKEN = "okx_token",
|
|
49
|
-
INEVM = "inEvm",
|
|
50
|
-
LINEA = "linea",
|
|
51
|
-
LIGHTLINK = "lightlink",
|
|
52
|
-
IOTA = "iota",
|
|
53
|
-
BASE = "base",
|
|
54
|
-
BLAST = "blast",
|
|
55
|
-
CROSSFI = "crossfi",
|
|
56
|
-
MONAD = "monad",
|
|
57
|
-
SONIC = "sonic",
|
|
58
|
-
BERA = "bera",
|
|
59
|
-
KATANA = "katana",
|
|
60
|
-
UNICHAIN = "unichain",
|
|
61
|
-
DISCORD = "discord",
|
|
62
|
-
REDDIT = "reddit",
|
|
63
|
-
MEDIUM = "medium",
|
|
64
|
-
INSTAGRAM = "instagram",
|
|
65
|
-
WEBSITE = "website",
|
|
66
|
-
TELEGRAM = "telegram",
|
|
67
|
-
ARROW = "arrow",
|
|
68
|
-
SWAP_ARROWS = "swapArrows",
|
|
69
|
-
INFO_SOLID = "infoSolid",
|
|
70
|
-
CANCELLED = "cancelled",
|
|
71
|
-
SUCCESS_OUTLINE = "successOutline",
|
|
72
|
-
TRASH = "trash",
|
|
73
|
-
Warning = "warning",
|
|
74
|
-
ZAP_ARROW = "ZapArrow",
|
|
75
|
-
ZAP_ICON = "ZapIcon",
|
|
76
|
-
MIGRATE = "Migrate",
|
|
77
|
-
MESSAGE = "message",
|
|
78
|
-
POSITIONS = "Positions",
|
|
79
|
-
MENU_SETTINGS = "MenuSettings",
|
|
80
|
-
FAV = "Fav",
|
|
81
|
-
ABOND_SMALL_LOGO = "abondSmallLogo",
|
|
82
|
-
APESWAP_SMALL_LOGO = "apeswapSmallLogo",
|
|
83
|
-
APESWAP_FULL_LOGO = "apeswapFullLogo",
|
|
84
|
-
ABOND_FULL_LOGO = "abondFullLogo",
|
|
85
|
-
ISLAND = "island",
|
|
86
|
-
MOON = "moon",
|
|
87
|
-
CARD = "card",
|
|
88
|
-
ACCOUNT_MONKEY = "accountMonkey",
|
|
89
|
-
LANGUAGE_ICON = "languageIcon",
|
|
90
|
-
BINANCE_CHAIN = "binanceChain",
|
|
91
|
-
BITKEEP = "bitkeep",
|
|
92
|
-
BRAVE = "brave",
|
|
93
|
-
COINBASE = "coinbase",
|
|
94
|
-
MATH_WALLET = "mathWallet",
|
|
95
|
-
METAMASK = "metamask",
|
|
96
|
-
NABOX = "nabox",
|
|
97
|
-
ONTO_WALLET = "ontoWallet",
|
|
98
|
-
SAFE_PAL_WALLET = "safePalWallet",
|
|
99
|
-
SOCIAL_LOGIN = "socialLogin",
|
|
100
|
-
TOKEN_POCKET = "tokenPocket",
|
|
101
|
-
TORUS_WALLET = "torusWallet",
|
|
102
|
-
TRUST_WALLET = "trustWallet",
|
|
103
|
-
OKX = "okx",
|
|
104
|
-
MAD_WALLET = "madWallet",
|
|
105
|
-
UNSTOPPABLE = "unstoppable",
|
|
106
|
-
WALLET_CONNECT = "walletConnect",
|
|
107
|
-
WALLET_IMAGE = "walletImage",
|
|
108
|
-
COG = "cog",
|
|
109
|
-
BRIDGE = "bridge",
|
|
110
|
-
DOCS = "docs",
|
|
111
|
-
QUIZ = "quiz",
|
|
112
|
-
PLACEHOLDER_MONKEY = "placeholderMonkey",
|
|
113
|
-
PLACEHOLDER_MONKEY_ALT = "placeholderMonkeyAlt",
|
|
114
|
-
SWITCH_ARROWS = "switchArrows",
|
|
115
|
-
COPY = "copy",
|
|
116
|
-
INSIGHT = "insight",
|
|
117
|
-
EXPAND = "expand",
|
|
118
|
-
LINE_CHART = "lineChart",
|
|
119
|
-
HAMBURGER_CLOSED = "hamburgerClosed",
|
|
120
|
-
BILLS_M1 = "billsM1",
|
|
121
|
-
BILLS_M2 = "billsM2",
|
|
122
|
-
BILLS_M3 = "billsM3",
|
|
123
|
-
URL = "URL",
|
|
124
|
-
BUBBLE = "bubble",
|
|
125
|
-
AUDIT = "audit",
|
|
126
|
-
GREEN_SHIELD = "greenShield",
|
|
127
|
-
CHAIN = "chain",
|
|
128
|
-
VERIFIED = "verified",
|
|
129
|
-
TICK_SHIELD = "tickShield",
|
|
130
|
-
SHARE = "share",
|
|
131
|
-
FILLED_URL = "filledURL",
|
|
132
|
-
YELLOW_QUESTION = "yellowQuestion",
|
|
133
|
-
BANANA_ICON = "bananaIcon",
|
|
134
|
-
SCROLL_TOP = "scrollTop",
|
|
135
|
-
EXPLORER = "explorer",
|
|
136
|
-
LIQUIDITY_ICON = "liquidity",
|
|
137
|
-
POLYGON_NEW = "polygonNew",
|
|
138
|
-
FIRE = "fire",
|
|
139
|
-
HOT = "hot",
|
|
140
|
-
NAV_CARET = "navCaret",
|
|
141
|
-
LOGOUT = "logout",
|
|
142
|
-
WALLET = "wallet",
|
|
143
|
-
RECEIPT = "receipt",
|
|
144
|
-
ABOND = "abond",
|
|
145
|
-
APEBOND_LOGO = "apebondLogo",
|
|
146
|
-
CHAT = "chat",
|
|
147
|
-
DOCSV2 = "docsv2",
|
|
148
|
-
WHITE = "white",
|
|
149
|
-
TAG = "tag",
|
|
150
|
-
Play = "play",
|
|
151
|
-
Watch = "watch",
|
|
152
|
-
XNew = "xnew",
|
|
153
|
-
DiscordNew = "discordnew",
|
|
154
|
-
WebsiteNew = "websitenew",
|
|
155
|
-
WhitepaperNew = "whitepapernew",
|
|
156
|
-
TelegramNew = "telegramnew",
|
|
157
|
-
CALENDAR = "calendar",
|
|
158
|
-
QuestionFill = "questionFill",
|
|
159
|
-
SORT = "sort",
|
|
160
|
-
AllChains = "AllChains",
|
|
161
|
-
Star = "Star",
|
|
162
|
-
StarFilled = "StarFilled",
|
|
163
|
-
FirePink = "FirePink",
|
|
164
|
-
GRAPHLINQ = "GRAPHLINQ",
|
|
165
|
-
Farcaster = "Farcaster",
|
|
166
|
-
TIMER = "Timer",
|
|
167
|
-
TICK = "TICK"
|
|
168
|
-
}
|
|
169
1
|
export declare enum directions {
|
|
170
2
|
LEFT = "left",
|
|
171
3
|
RIGHT = "right",
|
|
172
4
|
UP = "up",
|
|
173
5
|
DOWN = "down"
|
|
174
6
|
}
|
|
175
|
-
export type iconTypes = `${icons}`;
|
|
176
7
|
type directionTypes = `${directions}`;
|
|
177
8
|
export interface SvgProps {
|
|
178
|
-
icon?: iconTypes;
|
|
179
9
|
direction?: directionTypes;
|
|
180
10
|
color?: string;
|
|
181
11
|
width?: string | number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'theme-ui/jsx-runtime';
|
|
2
2
|
import Flex from '../Flex/index.js';
|
|
3
|
-
import {
|
|
4
|
-
import Svg from '../Svg/index.js';
|
|
3
|
+
import { getChainIcon } from '../../../config/constants/chains.js';
|
|
5
4
|
import { APEBOND } from '../../../config/constants/variables.js';
|
|
6
5
|
|
|
7
6
|
const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
8
7
|
const token1 = symbol === 'USDC.e' ? 'USDC' : symbol;
|
|
9
8
|
const token2 = symbol2 === 'USDC.e' ? 'USDC' : symbol2;
|
|
9
|
+
const ChainIcon = getChainIcon(chain);
|
|
10
10
|
return token2 ? (jsxs(Flex, { sx: {
|
|
11
11
|
minWidth: size * 1.5 - 2,
|
|
12
12
|
height: size - 2,
|
|
@@ -21,7 +21,7 @@ const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
|
21
21
|
right: `-${size / 5}px`,
|
|
22
22
|
overflow: 'hidden',
|
|
23
23
|
borderRadius: '50px',
|
|
24
|
-
}, children: jsx(
|
|
24
|
+
}, children: jsx(ChainIcon, { width: size / 2.5, height: size / 2.5 }) }))] })) : (jsxs(Flex, { sx: {
|
|
25
25
|
width: size - 2,
|
|
26
26
|
height: size - 2,
|
|
27
27
|
justifyContent: 'center',
|
|
@@ -37,7 +37,7 @@ const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
|
37
37
|
borderRadius: '50px',
|
|
38
38
|
width: `${size / 2.5}px`,
|
|
39
39
|
height: `${size / 2.5}px`,
|
|
40
|
-
}, children: jsx(
|
|
40
|
+
}, children: jsx(ChainIcon, { width: size / 2.5, height: size / 2.5 }) }))] }));
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
export { TokenImage as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/uikit-sdk/TokenImage/index.tsx"],"sourcesContent":["import React from 'react'\nimport Flex from '../Flex'\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/uikit-sdk/TokenImage/index.tsx"],"sourcesContent":["import React from 'react'\nimport Flex from '../Flex'\nimport { getChainIcon } from '../../../config/constants/chains'\nimport { APEBOND } from '../../../config/constants/variables'\n\nconst TokenImage = ({\n symbol,\n symbol2,\n size,\n chain,\n}: {\n symbol?: string\n symbol2?: string\n size: number\n chain?: number\n}) => {\n const token1 = symbol === 'USDC.e' ? 'USDC' : symbol\n const token2 = symbol2 === 'USDC.e' ? 'USDC' : symbol2\n const ChainIcon = getChainIcon(chain)\n return token2 ? (\n <Flex\n sx={{\n minWidth: size * 1.5 - 2,\n height: size - 2,\n justifyContent: 'center',\n alignItems: 'center',\n borderRadius: '55px',\n position: 'relative',\n }}\n >\n <img\n src={`${APEBOND}/tokenImages/${token1?.toUpperCase()}.png`}\n alt={`tokenImgFor:${token1}`}\n width={size}\n height={size}\n style={{ position: 'absolute', zIndex: 4001, left: 0 }}\n />\n <img\n src={`${APEBOND}/tokenImages/${token2.toUpperCase()}.png`}\n alt={`tokenImgFor:${token2}`}\n width={size}\n height={size}\n style={{ position: 'absolute', zIndex: 4000, left: '33%' }}\n />\n {chain && (\n <Flex\n sx={{\n zIndex: 4002,\n position: 'absolute',\n top: '-2px',\n right: `-${size / 5}px`,\n overflow: 'hidden',\n borderRadius: '50px',\n }}\n >\n <ChainIcon width={size / 2.5} height={size / 2.5} />\n </Flex>\n )}\n </Flex>\n ) : (\n <Flex\n sx={{\n width: size - 2,\n height: size - 2,\n justifyContent: 'center',\n alignItems: 'center',\n borderRadius: '55px',\n position: 'relative',\n }}\n >\n <img\n src={`${APEBOND}/tokenImages/${token1?.toUpperCase()}.png`}\n alt={`tokenImgFor:${token1}`}\n width={size}\n height={token1 === 'BNB-ICHI' ? 19 : size}\n />\n {chain && (\n <Flex\n sx={{\n zIndex: 5,\n position: 'absolute',\n top: '-2px',\n right: '-4px',\n overflow: 'hidden',\n borderRadius: '50px',\n width: `${size / 2.5}px`,\n height: `${size / 2.5}px`,\n }}\n >\n <ChainIcon width={size / 2.5} height={size / 2.5} />\n </Flex>\n )}\n </Flex>\n )\n}\n\nexport default TokenImage\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;AAKA,MAAM,UAAU,GAAG,CAAC,EAClB,MAAM,EACN,OAAO,EACP,IAAI,EACJ,KAAK,GAMN,KAAI;AACH,IAAA,MAAM,MAAM,GAAG,MAAM,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM;AACpD,IAAA,MAAM,MAAM,GAAG,OAAO,KAAK,QAAQ,GAAG,MAAM,GAAG,OAAO;AACtD,IAAA,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC;IACrC,OAAO,MAAM,IACXA,IAAA,CAAC,IAAI,EAAA,EACH,EAAE,EAAE;AACF,YAAA,QAAQ,EAAE,IAAI,GAAG,GAAG,GAAG,CAAC;YACxB,MAAM,EAAE,IAAI,GAAG,CAAC;AAChB,YAAA,cAAc,EAAE,QAAQ;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IAAI,EAAA,EACH,EAAE,EAAE;YACF,KAAK,EAAE,IAAI,GAAG,CAAC;YACf,MAAM,EAAE,IAAI,GAAG,CAAC;AAChB,YAAA,cAAc,EAAE,QAAQ;AACxB,YAAA,UAAU,EAAE,QAAQ;AACpB,YAAA,YAAY,EAAE,MAAM;AACpB,YAAA,QAAQ,EAAE,UAAU;SACrB,EAAA,QAAA,EAAA,CAEDC,GAAA,CAAA,KAAA,EAAA,EACE,GAAG,EAAE,CAAA,EAAG,OAAO,CAAA,aAAA,EAAgB,MAAM,EAAE,WAAW,EAAE,MAAM,EAC1D,GAAG,EAAE,CAAA,YAAA,EAAe,MAAM,EAAE,EAC5B,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,MAAM,KAAK,UAAU,GAAG,EAAE,GAAG,IAAI,EAAA,CACzC,EACD,KAAK,KACJA,IAAC,IAAI,EAAA,EACH,EAAE,EAAE;AACF,oBAAA,MAAM,EAAE,CAAC;AACT,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,GAAG,EAAE,MAAM;AACX,oBAAA,KAAK,EAAE,MAAM;AACb,oBAAA,QAAQ,EAAE,QAAQ;AAClB,oBAAA,YAAY,EAAE,MAAM;AACpB,oBAAA,KAAK,EAAE,CAAA,EAAG,IAAI,GAAG,GAAG,CAAA,EAAA,CAAI;AACxB,oBAAA,MAAM,EAAE,CAAA,EAAG,IAAI,GAAG,GAAG,CAAA,EAAA,CAAI;AAC1B,iBAAA,EAAA,QAAA,EAEDA,IAAC,SAAS,EAAA,EAAC,KAAK,EAAE,IAAI,GAAG,GAAG,EAAE,MAAM,EAAE,IAAI,GAAG,GAAG,EAAA,CAAI,GAC/C,CACR,CAAA,EAAA,CACI,CACR;AACH;;;;"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SvgProps } from '../../components/uikit-sdk/Svg/types';
|
|
2
3
|
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
3
4
|
export declare const MAINNET_CHAINS: ChainId[];
|
|
4
5
|
export declare const TESTNET_CHAINS: ChainId[];
|
|
5
|
-
export declare const NETWORK_ICONS: Partial<Record<number,
|
|
6
|
+
export declare const NETWORK_ICONS: Partial<Record<number, React.ComponentType<SvgProps>>>;
|
|
7
|
+
export declare const getChainIcon: (chain?: number) => React.ComponentType<SvgProps>;
|
|
6
8
|
export declare const NETWORK_LABEL: Record<number, string>;
|
|
7
9
|
export declare const BLOCK_EXPLORER: Record<number, string>;
|
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
import { icons } from '../../components/uikit-sdk/Svg/types.js';
|
|
2
1
|
import { ChainId } from '@ape.swap/apeswap-lists';
|
|
2
|
+
import BNB from '../../components/uikit-sdk/Svg/tokens/BNB.js';
|
|
3
|
+
import POLYGON from '../../components/uikit-sdk/Svg/tokens/POLYGON.js';
|
|
4
|
+
import ETH from '../../components/uikit-sdk/Svg/tokens/ETH.js';
|
|
5
|
+
import TLOS from '../../components/uikit-sdk/Svg/tokens/TLOS.js';
|
|
6
|
+
import ARBITRUM from '../../components/uikit-sdk/Svg/tokens/ARBITRUM.js';
|
|
7
|
+
import INEVM from '../../components/uikit-sdk/Svg/tokens/INEVM.js';
|
|
8
|
+
import LINEA from '../../components/uikit-sdk/Svg/tokens/LINEA.js';
|
|
9
|
+
import LIGHTLINK from '../../components/uikit-sdk/Svg/tokens/LIGHTLINK.js';
|
|
10
|
+
import IOTA from '../../components/uikit-sdk/Svg/tokens/IOTA.js';
|
|
11
|
+
import BASE from '../../components/uikit-sdk/Svg/tokens/BASE.js';
|
|
12
|
+
import GRAPHLINQ from '../../components/uikit-sdk/Svg/tokens/GraphLinq.js';
|
|
13
|
+
import AVAX from '../../components/uikit-sdk/Svg/tokens/AVAX.js';
|
|
14
|
+
import BLAST from '../../components/uikit-sdk/Svg/tokens/BLAST.js';
|
|
15
|
+
import CROSSFI from '../../components/uikit-sdk/Svg/tokens/CROSSFI.js';
|
|
16
|
+
import MONAD$1 from '../../components/uikit-sdk/Svg/tokens/MONAD.js';
|
|
17
|
+
import MONAD from '../../components/uikit-sdk/Svg/tokens/SONIC.js';
|
|
18
|
+
import BERA from '../../components/uikit-sdk/Svg/tokens/BERA.js';
|
|
19
|
+
import KATANA from '../../components/uikit-sdk/Svg/tokens/KATANA.js';
|
|
20
|
+
import UNICHAIN from '../../components/uikit-sdk/Svg/tokens/UNICHAIN.js';
|
|
21
|
+
import Question from '../../components/uikit-sdk/Svg/Icons/Question.js';
|
|
3
22
|
|
|
4
|
-
// Network chain ids
|
|
5
23
|
// These are the lists we will display to the user
|
|
6
24
|
const MAINNET_CHAINS = [
|
|
7
25
|
ChainId.MAINNET,
|
|
@@ -25,27 +43,29 @@ const MAINNET_CHAINS = [
|
|
|
25
43
|
const TESTNET_CHAINS = [ChainId.MONAD_TESTNET];
|
|
26
44
|
// Network Icons
|
|
27
45
|
const NETWORK_ICONS = {
|
|
28
|
-
[ChainId.BSC]:
|
|
29
|
-
[ChainId.MATIC]:
|
|
30
|
-
[ChainId.MAINNET]:
|
|
31
|
-
[ChainId.TLOS]:
|
|
32
|
-
[ChainId.ARBITRUM]:
|
|
33
|
-
[ChainId.INEVM]:
|
|
34
|
-
[ChainId.SEPOLIA]:
|
|
35
|
-
[ChainId.LINEA]:
|
|
36
|
-
[ChainId.LIGHTLINK]:
|
|
37
|
-
[ChainId.IOTA]:
|
|
38
|
-
[ChainId.BASE]:
|
|
39
|
-
[ChainId.GRAPHLINQ]:
|
|
40
|
-
[ChainId.AVAX]:
|
|
41
|
-
[ChainId.BLAST]:
|
|
42
|
-
[ChainId.CROSSFI]:
|
|
43
|
-
[ChainId.MONAD_TESTNET]:
|
|
44
|
-
[ChainId.SONIC]:
|
|
45
|
-
[ChainId.BERACHAIN]:
|
|
46
|
-
[ChainId.KATANA]:
|
|
47
|
-
[ChainId.UNICHAIN]:
|
|
46
|
+
[ChainId.BSC]: BNB,
|
|
47
|
+
[ChainId.MATIC]: POLYGON,
|
|
48
|
+
[ChainId.MAINNET]: ETH,
|
|
49
|
+
[ChainId.TLOS]: TLOS,
|
|
50
|
+
[ChainId.ARBITRUM]: ARBITRUM,
|
|
51
|
+
[ChainId.INEVM]: INEVM,
|
|
52
|
+
[ChainId.SEPOLIA]: ETH,
|
|
53
|
+
[ChainId.LINEA]: LINEA,
|
|
54
|
+
[ChainId.LIGHTLINK]: LIGHTLINK,
|
|
55
|
+
[ChainId.IOTA]: IOTA,
|
|
56
|
+
[ChainId.BASE]: BASE,
|
|
57
|
+
[ChainId.GRAPHLINQ]: GRAPHLINQ,
|
|
58
|
+
[ChainId.AVAX]: AVAX,
|
|
59
|
+
[ChainId.BLAST]: BLAST,
|
|
60
|
+
[ChainId.CROSSFI]: CROSSFI,
|
|
61
|
+
[ChainId.MONAD_TESTNET]: MONAD$1,
|
|
62
|
+
[ChainId.SONIC]: MONAD,
|
|
63
|
+
[ChainId.BERACHAIN]: BERA,
|
|
64
|
+
[ChainId.KATANA]: KATANA,
|
|
65
|
+
[ChainId.UNICHAIN]: UNICHAIN,
|
|
48
66
|
};
|
|
67
|
+
// Falls back to a generic question-mark icon for chains without a configured logo
|
|
68
|
+
const getChainIcon = (chain) => (chain !== undefined && NETWORK_ICONS[chain]) || Question;
|
|
49
69
|
// Network labels
|
|
50
70
|
const NETWORK_LABEL = {
|
|
51
71
|
[ChainId.BSC]: 'BNB',
|
|
@@ -97,5 +117,5 @@ const BLOCK_EXPLORER = {
|
|
|
97
117
|
[ChainId.UNICHAIN]: 'https://uniscan.xyz',
|
|
98
118
|
};
|
|
99
119
|
|
|
100
|
-
export { BLOCK_EXPLORER, MAINNET_CHAINS, NETWORK_ICONS, NETWORK_LABEL, TESTNET_CHAINS };
|
|
120
|
+
export { BLOCK_EXPLORER, MAINNET_CHAINS, NETWORK_ICONS, NETWORK_LABEL, TESTNET_CHAINS, getChainIcon };
|
|
101
121
|
//# sourceMappingURL=chains.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chains.js","sources":["../../../src/config/constants/chains.ts"],"sourcesContent":["// Network chain ids\nimport {
|
|
1
|
+
{"version":3,"file":"chains.js","sources":["../../../src/config/constants/chains.ts"],"sourcesContent":["// Network chain ids\nimport React from 'react'\nimport { SvgProps } from '../../components/uikit-sdk/Svg/types'\nimport { ChainId } from '@ape.swap/apeswap-lists'\nimport BNB from '../../components/uikit-sdk/Svg/tokens/BNB'\nimport POLYGON from '../../components/uikit-sdk/Svg/tokens/POLYGON'\nimport ETH from '../../components/uikit-sdk/Svg/tokens/ETH'\nimport TLOS from '../../components/uikit-sdk/Svg/tokens/TLOS'\nimport ARBITRUM from '../../components/uikit-sdk/Svg/tokens/ARBITRUM'\nimport INEVM from '../../components/uikit-sdk/Svg/tokens/INEVM'\nimport LINEA from '../../components/uikit-sdk/Svg/tokens/LINEA'\nimport LIGHTLINK from '../../components/uikit-sdk/Svg/tokens/LIGHTLINK'\nimport IOTA from '../../components/uikit-sdk/Svg/tokens/IOTA'\nimport BASE from '../../components/uikit-sdk/Svg/tokens/BASE'\nimport GRAPHLINQ from '../../components/uikit-sdk/Svg/tokens/GraphLinq'\nimport AVAX from '../../components/uikit-sdk/Svg/tokens/AVAX'\nimport BLAST from '../../components/uikit-sdk/Svg/tokens/BLAST'\nimport CROSSFI from '../../components/uikit-sdk/Svg/tokens/CROSSFI'\nimport MONAD from '../../components/uikit-sdk/Svg/tokens/MONAD'\nimport SONIC from '../../components/uikit-sdk/Svg/tokens/SONIC'\nimport BERA from '../../components/uikit-sdk/Svg/tokens/BERA'\nimport KATANA from '../../components/uikit-sdk/Svg/tokens/KATANA'\nimport UNICHAIN from '../../components/uikit-sdk/Svg/tokens/UNICHAIN'\nimport Question from '../../components/uikit-sdk/Svg/Icons/Question'\n\n// These are the lists we will display to the user\nexport const MAINNET_CHAINS = [\n ChainId.MAINNET,\n ChainId.BSC,\n ChainId.MATIC,\n ChainId.BASE,\n ChainId.IOTA,\n ChainId.LINEA,\n ChainId.ARBITRUM,\n ChainId.LIGHTLINK,\n ChainId.GRAPHLINQ,\n ChainId.AVAX,\n ChainId.BLAST,\n ChainId.CROSSFI,\n ChainId.SONIC,\n ChainId.MONAD_TESTNET,\n ChainId.BERACHAIN,\n ChainId.KATANA,\n ChainId.UNICHAIN,\n]\n\nexport const TESTNET_CHAINS = [ChainId.MONAD_TESTNET]\n\n// Network Icons\nexport const NETWORK_ICONS: Partial<Record<number, React.ComponentType<SvgProps>>> = {\n [ChainId.BSC]: BNB,\n [ChainId.MATIC]: POLYGON,\n [ChainId.MAINNET]: ETH,\n [ChainId.TLOS]: TLOS,\n [ChainId.ARBITRUM]: ARBITRUM,\n [ChainId.INEVM]: INEVM,\n [ChainId.SEPOLIA]: ETH,\n [ChainId.LINEA]: LINEA,\n [ChainId.LIGHTLINK]: LIGHTLINK,\n [ChainId.IOTA]: IOTA,\n [ChainId.BASE]: BASE,\n [ChainId.GRAPHLINQ]: GRAPHLINQ,\n [ChainId.AVAX]: AVAX,\n [ChainId.BLAST]: BLAST,\n [ChainId.CROSSFI]: CROSSFI,\n [ChainId.MONAD_TESTNET]: MONAD,\n [ChainId.SONIC]: SONIC,\n [ChainId.BERACHAIN]: BERA,\n [ChainId.KATANA]: KATANA,\n [ChainId.UNICHAIN]: UNICHAIN,\n}\n\n// Falls back to a generic question-mark icon for chains without a configured logo\nexport const getChainIcon = (chain?: number): React.ComponentType<SvgProps> =>\n (chain !== undefined && NETWORK_ICONS[chain]) || Question\n\n// Network labels\nexport const NETWORK_LABEL: Record<number, string> = {\n [ChainId.BSC]: 'BNB',\n [ChainId.BSC_TESTNET]: 'BNB Testnet',\n [ChainId.MATIC]: 'Polygon',\n [ChainId.MAINNET]: 'Ethereum',\n [ChainId.TLOS]: 'Telos',\n [ChainId.ARBITRUM]: 'Arbitrum',\n [ChainId.INEVM]: 'inEVM',\n [ChainId.SEPOLIA]: 'Sepolia',\n [ChainId.LINEA]: 'Linea',\n [ChainId.LIGHTLINK]: 'Lightlink',\n [ChainId.IOTA]: 'Iota',\n [ChainId.IOTA_TESTNET]: 'Iota Testnet',\n [ChainId.BASE]: 'Base',\n [ChainId.GRAPHLINQ]: 'GraphLinq',\n [ChainId.AVAX]: 'Avalanche',\n [ChainId.BLAST]: 'Blast',\n [ChainId.CROSSFI]: 'Crossfi',\n [ChainId.MONAD_TESTNET]: 'Monad Testnet',\n [ChainId.SONIC]: 'Sonic',\n [ChainId.BERACHAIN]: 'Berachain',\n [ChainId.KATANA]: 'Katana',\n [ChainId.UNICHAIN]: 'Unichain',\n}\n\n// Network block explorers\nexport const BLOCK_EXPLORER: Record<number, string> = {\n [ChainId.MAINNET]: 'https://etherscan.io',\n [ChainId.ARBITRUM]: 'https://arbiscan.io',\n [ChainId.MATIC]: 'https://polygonscan.com',\n [ChainId.BSC]: 'https://bscscan.com',\n [ChainId.BSC_TESTNET]: 'https://testnet.bscscan.com',\n [ChainId.TLOS]: 'https://www.teloscan.io',\n [ChainId.INEVM]: 'https://explorer.inevm.com',\n [ChainId.SEPOLIA]: 'https://sepolia.etherscan.io',\n [ChainId.LINEA]: 'https://lineascan.build',\n [ChainId.LIGHTLINK]: 'https://phoenix.lightlink.io',\n [ChainId.IOTA]: 'https://explorer.evm.iota.org',\n [ChainId.IOTA_TESTNET]: 'https://explorer.evm.testnet.iotaledger.net/',\n [ChainId.BASE]: 'https://basescan.org',\n [ChainId.GRAPHLINQ]: 'https://graphlinq.dex.guru',\n [ChainId.AVAX]: 'https://snowscan.xyz',\n [ChainId.BLAST]: 'https://blastscan.io',\n [ChainId.CROSSFI]: 'https://xfiscan.com',\n [ChainId.MONAD_TESTNET]: 'https://testnet.monadexplorer.com/',\n [ChainId.SONIC]: 'https://sonicscan.org',\n [ChainId.BERACHAIN]: 'https://berascan.com',\n [ChainId.KATANA]: 'https://explorer.katanarpc.com',\n [ChainId.UNICHAIN]: 'https://uniscan.xyz',\n}\n"],"names":["MONAD","SONIC"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAyBA;AACO,MAAM,cA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C,aAAa,GAAG,oCAAoC;AAC7D,IAAA,CAAC,OAAO,CAAC,KAAK,GAAG,uBAAuB;AACxC,IAAA,CAAC,OAAO,CAAC,SAAS,GAAG,sBAAsB;AAC3C,IAAA,CAAC,OAAO,CAAC,MAAM,GAAG,gCAAgC;AAClD,IAAA,CAAC,OAAO,CAAC,QAAQ,GAAG,qBAAqB;;;;;"}
|
|
@@ -19,7 +19,6 @@ interface FormatDollarArgs {
|
|
|
19
19
|
* @param round whether or not to round up non-price amounts
|
|
20
20
|
*/
|
|
21
21
|
export declare const formatDollar: ({ num, isPrice, lessPreciseStablecoinValues, digits, round, }: FormatDollarArgs) => string;
|
|
22
|
-
export declare const formatValue: ({ num, digits, round }: any) => string;
|
|
23
22
|
/**
|
|
24
23
|
* Returns a numerical amount of any token formatted in human readable string for use in template.
|
|
25
24
|
*
|
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const dollarAbbreviations = [
|
|
2
|
+
{ value: 1e12, suffix: 'T' },
|
|
3
|
+
{ value: 1e9, suffix: 'B' },
|
|
4
|
+
{ value: 1e6, suffix: 'M' },
|
|
5
|
+
// { value: 1e3, suffix: 'K' },
|
|
6
|
+
];
|
|
7
|
+
const formatDollarAmount = (num, digits, round) => {
|
|
8
|
+
const mantissa = num > 1000 ? 2 : digits;
|
|
9
|
+
const sign = num < 0 ? '-' : '';
|
|
10
|
+
const absoluteNum = Math.abs(num);
|
|
11
|
+
if (round) {
|
|
12
|
+
const abbreviation = dollarAbbreviations.find(({ value }) => absoluteNum >= value);
|
|
13
|
+
if (abbreviation) {
|
|
14
|
+
return `${sign}$${(absoluteNum / abbreviation.value).toFixed(mantissa)}${abbreviation.suffix}`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return `${sign}$${absoluteNum.toFixed(mantissa)}`;
|
|
18
|
+
};
|
|
4
19
|
/**
|
|
5
20
|
* Returns a USD dollar or equivalent denominated numerical value formatted
|
|
6
21
|
* in human readable string for use in template.
|
|
@@ -49,16 +64,7 @@ const formatDollar = ({ num, isPrice = false, lessPreciseStablecoinValues = fals
|
|
|
49
64
|
if (num >= 0.1 && num < 1.05) {
|
|
50
65
|
return `$${num.toFixed(3)}`;
|
|
51
66
|
}
|
|
52
|
-
return
|
|
53
|
-
.formatCurrency({
|
|
54
|
-
average: round,
|
|
55
|
-
mantissa: num > 1000 ? 2 : digits,
|
|
56
|
-
abbreviations: {
|
|
57
|
-
million: 'M',
|
|
58
|
-
billion: 'B',
|
|
59
|
-
},
|
|
60
|
-
})
|
|
61
|
-
.toUpperCase();
|
|
67
|
+
return formatDollarAmount(num, digits, round);
|
|
62
68
|
}
|
|
63
69
|
};
|
|
64
70
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatNumbers.js","sources":["../../src/utils/formatNumbers.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"formatNumbers.js","sources":["../../src/utils/formatNumbers.ts"],"sourcesContent":["interface FormatDollarArgs {\n num: number | undefined | null\n isPrice?: boolean\n lessPreciseStablecoinValues?: boolean\n digits?: number\n round?: boolean\n}\n\nconst dollarAbbreviations = [\n { value: 1e12, suffix: 'T' },\n { value: 1e9, suffix: 'B' },\n { value: 1e6, suffix: 'M' },\n // { value: 1e3, suffix: 'K' },\n]\n\nconst formatDollarAmount = (num: number, digits: number, round: boolean): string => {\n const mantissa = num > 1000 ? 2 : digits\n const sign = num < 0 ? '-' : ''\n const absoluteNum = Math.abs(num)\n\n if (round) {\n const abbreviation = dollarAbbreviations.find(({ value }) => absoluteNum >= value)\n\n if (abbreviation) {\n return `${sign}$${(absoluteNum / abbreviation.value).toFixed(mantissa)}${abbreviation.suffix}`\n }\n }\n\n return `${sign}$${absoluteNum.toFixed(mantissa)}`\n}\n\n/**\n * Returns a USD dollar or equivalent denominated numerical value formatted\n * in human readable string for use in template.\n *\n * Adheres to guidelines for prices and other numbers defined here:\n * https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0\n * @param num numerical value denominated in USD or USD equivalent\n * @param isPrice whether the amount represents a price or not\n * @param lessPreciseStablecoinValues whether or not we should show less precise values for\n * stablecoins (around 1$ in value always) for the sake of readability\n * @param digits number of digits after the decimal for non-price amounts\n * @param round whether or not to round up non-price amounts\n */\nexport const formatDollar = ({\n num,\n isPrice = false,\n lessPreciseStablecoinValues = false,\n digits = 2,\n round = true,\n}: FormatDollarArgs): string => {\n // For USD dollar denominated prices.\n if (isPrice) {\n if (num === 0) return '$0.00'\n if (!num) return '-'\n if (num < 0.000001) {\n return `$${num.toExponential(2)}`\n }\n if ((num >= 0.000001 && num < 0.1) || num > 1000000) {\n return `$${Number(num).toPrecision(3)}`\n }\n // We only show 2 decimal places in explore table for stablecoin value ranges\n // for the sake of readability (as opposed to the usual 3 elsewhere).\n if (num >= 0.1 && num < (lessPreciseStablecoinValues ? 0.9995 : 1.05)) {\n return `$${num.toFixed(3)}`\n }\n return `$${Number(num.toFixed(2)).toLocaleString('en-US', { minimumFractionDigits: 2 })}`\n }\n // For volume dollar amounts, like market cap, total value locked, etc.\n else {\n if (num === 0) return '$0.00'\n if (!num) return '-'\n if (num < 0.000001) {\n return '$<0.000001'\n }\n if (num >= 0.000001 && num < 0.1) {\n return `$${Number(num).toPrecision(3)}`\n }\n if (num >= 0.1 && num < 1.05) {\n return `$${num.toFixed(3)}`\n }\n\n return formatDollarAmount(num, digits, round)\n }\n}\n\n/**\n * Returns a numerical amount of any token formatted in human readable string for use in template.\n *\n * For transaction review numbers, such as token quantities, NFT price (token-denominated),\n * network fees, transaction history items. Adheres to guidelines defined here:\n * https://www.notion.so/uniswaplabs/Number-standards-fbb9f533f10e4e22820722c2f66d23c0\n * @param num numerical value denominated in any token\n * @param maxDigits the maximum number of digits that should be shown for the quantity\n */\nexport const formatTransactionAmount = (num: number | undefined | null, maxDigits = 9) => {\n if (num === 0) return '0.00'\n if (!num) return ''\n if (num < 0.00001) {\n return '<0.00001'\n }\n if (num >= 0.00001 && num < 1) {\n return `${Number(num.toFixed(5)).toLocaleString('en-US', {\n minimumFractionDigits: 2,\n maximumFractionDigits: 5,\n })}`\n }\n if (num >= 1 && num < 10000) {\n return `${Number(num.toPrecision(6)).toLocaleString('en-US', {\n minimumFractionDigits: 2,\n maximumFractionDigits: 6,\n })}`\n }\n if (num >= 10000 && num < 1000000) {\n return `${Number(num.toFixed(2)).toLocaleString('en-US', { minimumFractionDigits: 2 })}`\n }\n // For very large numbers, switch to scientific notation and show as much precision\n // as permissible by maxDigits param.\n if (num >= Math.pow(10, maxDigits - 1)) {\n return `${num.toExponential(maxDigits - 3)}`\n }\n return `${Number(num.toFixed(2)).toLocaleString('en-US', { minimumFractionDigits: 2 })}`\n}\n"],"names":[],"mappings":"AAQA,MAAM,mBAAmB,GAAG;AAC1B,IAAA,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE;AAC5B,IAAA,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE;AAC3B,IAAA,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE;;CAE5B;AAED,MAAM,kBAAkB,GAAG,CAAC,GAAW,EAAE,MAAc,EAAE,KAAc,KAAY;AACjF,IAAA,MAAM,QAAQ,GAAG,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,MAAM;AACxC,IAAA,MAAM,IAAI,GAAG,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,EAAE;IAC/B,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;IAEjC,IAAI,KAAK,EAAE;AACT,QAAA,MAAM,YAAY,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,WAAW,IAAI,KAAK,CAAC;QAElF,IAAI,YAAY,EAAE;YAChB,OAAO,CAAA,EAAG,IAAI,CAAA,CAAA,EAAI,CAAC,WAAW,GAAG,YAAY,CA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AO;AAC7B,QAAA,IAAI,CAAC,GAAG;AAAE,YAAA,OAAO,GAAG;AACpB,QAAA,IAAI,GAAG,GAAG,QAAQ,EAAE;AAClB,YAAA,OAAO,YAAY;QACrB;QACA,IAAI,GAAG,IAAI,QAAQ,IAAI,GAAG,GAAG,GAAG,EAAE;YAChC,OAAO,CAAA,CAAA,EAAI,MAAM,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAA,CAAE;QACzC;QACA,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,IAAI,EAAE;YAC5B,OAAO,CAAA,CAAA,EAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QAC7B;QAEA,OAAO,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC;IAC/C;AACF;;;;"}
|
package/dist/utils/numbers.d.ts
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
1
|
export declare const isNumber: (s: string) => boolean;
|
|
2
|
-
export declare const floorFormatter: (n: number) => string;
|
|
3
|
-
export declare const volumeFormatter: (n: number) => string;
|
|
4
|
-
export declare const quantityFormatter: (n: number) => string;
|
|
5
|
-
export declare const roundWholePercentage: (n: number) => string;
|
package/dist/utils/numbers.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.js","sources":["../../src/utils/numbers.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"numbers.js","sources":["../../src/utils/numbers.ts"],"sourcesContent":["export const isNumber = (s: string): boolean => {\n const reg = /^-?\\d+\\.?\\d*$/\n return reg.test(s) && !isNaN(parseFloat(s)) && isFinite(parseFloat(s))\n}\n"],"names":[],"mappings":"AAAO,MAAM,QAAQ,GAAG,CAAC,CAAS,KAAa;IAC7C,MAAM,GAAG,GAAG,eAAe;IAC3B,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AACxE;;;;"}
|
|
@@ -13,7 +13,7 @@ import useBondsList from '../../state/bonds/useBondsList.js';
|
|
|
13
13
|
import useHotBonds from '../../state/bonds/useHotBonds.js';
|
|
14
14
|
import RecommendationCards from './components/RecommendationCards/index.js';
|
|
15
15
|
import BondsMenu from './components/BondsMenu/BondsMenu.js';
|
|
16
|
-
import
|
|
16
|
+
import StarFilled from '../../components/uikit-sdk/Svg/Icons/StarFilled.js';
|
|
17
17
|
import useTokenPrices from '../../state/tokenPrices/useTokenPrices.js';
|
|
18
18
|
import { useSDKConfig } from '../../state/useSDKConfig.js';
|
|
19
19
|
import BuyAgainRow from './components/BuyAgainRow/index.js';
|
|
@@ -128,7 +128,7 @@ const Bonds = () => {
|
|
|
128
128
|
alignItems: 'center',
|
|
129
129
|
flexDirection: 'column',
|
|
130
130
|
mt: '10px',
|
|
131
|
-
}, children: [jsx(
|
|
131
|
+
}, children: [jsx(StarFilled, { width: 75, height: 75 }), jsx(Flex, { sx: { mt: '10px' }, children: `You don't have any Favorite Bonds yet!` }), jsx(Flex, { sx: { fontSize: '12px', fontWeight: 400, color: 'textDisabledButton', mt: '10px' }, children: `Click on the 'star' or 'fire' icon to add Bonds to the list.` })] })) : (jsx(PlaceholderMonkey, { text: 'No available bonds at the moment.', loading: loadingBonds })), SDKConfig.useHotBonds && jsx(RecommendationCards, {}), jsx(Flex, { sx: { width: '100%', justifyContent: 'center', my: '15px' }, className: "powered-by-apebond-sdk", children: jsx("img", { src: "https://res.cloudinary.com/dswmrqgwy/image/upload/v1741643990/poweredbyapebondsdk_cxiouj.png", alt: "powered-by-apebond", className: "powered-by-apebond-sdk-img", style: { width: '200px', height: 'auto', cursor: 'pointer' }, onClick: () => window.open('https://ape.bond', '_blank') }) })] }));
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
export { Bonds as default };
|