@ape.swap/bonds-sdk 1.0.76 → 1.0.77-4.0
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/BondMenu/BondMenu.d.ts +12 -0
- package/dist/components/BondMenu/BondMenu.js +51 -0
- package/dist/components/BondMenu/useChainFilterOption.d.ts +4 -0
- package/dist/components/BondMenu/useChainFilterOption.js +30 -0
- package/dist/components/BondRows/BondRow.d.ts +10 -0
- package/dist/components/BondRows/BondRow.js +92 -0
- package/dist/components/BondRows/BondRowHeader.d.ts +16 -0
- package/dist/components/BondRows/BondRowHeader.js +23 -0
- package/dist/components/BondRows/BondRowsByChain.d.ts +10 -0
- package/dist/components/BondRows/BondRowsByChain.js +24 -0
- package/dist/components/BondRows/BondRowsWithTitle.d.ts +10 -0
- package/dist/components/BondRows/BondRowsWithTitle.js +31 -0
- package/dist/components/BondRows/ChainTitle.d.ts +8 -0
- package/dist/components/BondRows/ChainTitle.js +29 -0
- package/dist/components/MenuSelect/MenuSelect.d.ts +4 -0
- package/dist/components/{uikit/Tabs/TabPanel.js → MenuSelect/MenuSelect.js} +12 -5
- package/dist/components/MenuSelect/RecommendationSelector.d.ts +7 -0
- package/dist/components/MenuSelect/RecommendationSelector.js +43 -0
- package/dist/components/MenuSelect/types.d.ts +22 -0
- package/dist/components/Modals/BondModal/BondModal.d.ts +13 -0
- package/dist/components/Modals/BondModal/BondModal.js +276 -0
- package/dist/components/Modals/BondModal/helper.d.ts +10 -0
- package/dist/components/Modals/BondModal/helper.js +54 -0
- package/dist/components/Modals/YourBondsModal/YourBondsModal.d.ts +10 -0
- package/dist/components/Modals/YourBondsModal/YourBondsModal.js +184 -0
- package/dist/components/Modals/YourBondsModal/styles.d.ts +2 -0
- package/dist/components/Modals/YourBondsModal/styles.js +12 -0
- package/dist/components/NetworkFilter/index.d.ts +6 -0
- package/dist/components/NetworkFilter/index.js +77 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +8 -0
- package/dist/components/ProgressBar/ProgressBar.js +21 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.d.ts +14 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.js +20 -0
- package/dist/components/ProgressBar/styles.d.ts +2 -0
- package/dist/components/ProgressBar/styles.js +82 -0
- package/dist/components/TokenInfoAndName/index.d.ts +8 -0
- package/dist/components/TokenInfoAndName/index.js +72 -0
- package/dist/components/Tooltip/ButtonsRow.d.ts +8 -0
- package/dist/components/Tooltip/ButtonsRow.js +21 -0
- package/dist/components/Tooltip/Tooltip.d.ts +18 -0
- package/dist/components/Tooltip/Tooltip.js +24 -0
- package/dist/components/Tooltip/styles.d.ts +2 -0
- package/dist/components/Tooltip/styles.js +44 -0
- package/dist/components/{uikit → uikit-sdk}/Checkbox/index.js +1 -1
- package/dist/components/{uikit → uikit-sdk}/Input/Input.js +2 -2
- package/dist/components/{uikit → uikit-sdk}/Input/NumericInput.d.ts +1 -1
- package/dist/components/{uikit/Svg → uikit-sdk/Skeleton}/styles.d.ts +2 -1
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +17 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hot.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hot.js +17 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js +27 -0
- package/dist/components/{uikit → uikit-sdk}/Svg/Icons/index.d.ts +3 -0
- package/dist/components/{uikit → uikit-sdk}/Svg/Icons/index.js +3 -0
- package/dist/components/{uikit → uikit-sdk}/Svg/index.js +7 -1
- package/dist/components/{uikit → uikit-sdk}/Svg/types.d.ts +4 -1
- package/dist/components/{uikit → uikit-sdk}/Svg/types.js +3 -0
- package/dist/components/uikit-sdk/Tag/styles.d.ts +9 -0
- package/dist/components/{uikit → uikit-sdk}/Tag/types.js +1 -1
- package/dist/components/uikit-sdk/TokenImage/index.d.ts +7 -0
- package/dist/components/uikit-sdk/TokenImage/index.js +29 -0
- package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/styles.js +1 -1
- package/dist/components/uikit-sdk/index.d.ts +9 -0
- package/dist/components/uikit-sdk/index.js +11 -0
- package/dist/config/abi/bond.json +450 -0
- package/dist/config/abi/erc20.json +117 -0
- package/dist/config/abi/multicallv2.json +143 -0
- package/dist/config/abi/types/Banana.d.ts +417 -0
- package/dist/config/abi/types/Bond.d.ts +803 -0
- package/dist/config/abi/types/Bond.js +1 -0
- package/dist/config/abi/types/BondNft.d.ts +603 -0
- package/dist/config/abi/types/BondNft.js +1 -0
- package/dist/config/abi/types/EnsPublicResolver.d.ts +513 -0
- package/dist/config/abi/types/EnsPublicResolver.js +1 -0
- package/dist/config/abi/types/EnsRegistrar.d.ts +274 -0
- package/dist/config/abi/types/EnsRegistrar.js +1 -0
- package/dist/config/abi/types/Erc20.d.ts +168 -0
- package/dist/config/abi/types/Erc20.js +1 -0
- package/dist/config/abi/types/Erc20_bytes32.d.ts +50 -0
- package/dist/config/abi/types/Erc20_bytes32.js +1 -0
- package/dist/config/abi/types/JungleChef.d.ts +260 -0
- package/dist/config/abi/types/JungleChef.js +1 -0
- package/dist/config/abi/types/LaunchBonds.d.ts +1362 -0
- package/dist/config/abi/types/LaunchBonds.js +1 -0
- package/dist/config/abi/types/LensContract.d.ts +295 -0
- package/dist/config/abi/types/LensContract.js +1 -0
- package/dist/config/abi/types/LockVeAbond.d.ts +1279 -0
- package/dist/config/abi/types/LockVeAbond.js +1 -0
- package/dist/config/abi/types/MigrationBond.d.ts +1136 -0
- package/dist/config/abi/types/MigrationBond.js +1 -0
- package/dist/config/abi/types/MigrationFveAbond.d.ts +290 -0
- package/dist/config/abi/types/MigrationFveAbond.js +1 -0
- package/dist/config/abi/types/MiniComplexRewarder.d.ts +469 -0
- package/dist/config/abi/types/MiniComplexRewarder.js +1 -0
- package/dist/config/abi/types/Multicallv2.d.ts +150 -0
- package/dist/config/abi/types/Multicallv2.js +1 -0
- package/dist/config/abi/types/Multicallv3.d.ts +98 -0
- package/dist/config/abi/types/Multicallv3.js +1 -0
- package/dist/config/abi/types/NonFungibleApes.d.ts +532 -0
- package/dist/config/abi/types/NonFungibleApes.js +1 -0
- package/dist/config/abi/types/NonFungibleBananas.d.ts +505 -0
- package/dist/config/abi/types/NonFungibleBananas.js +1 -0
- package/dist/config/abi/types/PriceGetter.d.ts +713 -0
- package/dist/config/abi/types/PriceGetter.js +1 -0
- package/dist/config/abi/types/PriceGetterLinea.d.ts +789 -0
- package/dist/config/abi/types/PriceGetterLinea.js +1 -0
- package/dist/config/abi/types/PriceGetterV2.d.ts +729 -0
- package/dist/config/abi/types/PriceGetterV2.js +1 -0
- package/dist/config/abi/types/SousChef.d.ts +579 -0
- package/dist/config/abi/types/SousChef.js +1 -0
- package/dist/config/abi/types/Treasury.d.ts +277 -0
- package/dist/config/abi/types/Treasury.js +1 -0
- package/dist/config/abi/types/Weth.d.ts +221 -0
- package/dist/config/abi/types/Weth.js +1 -0
- package/dist/config/abi/types/Zap.d.ts +528 -0
- package/dist/config/abi/types/Zap.js +1 -0
- package/dist/config/abi/types/common.d.ts +22 -0
- package/dist/config/abi/types/common.js +1 -0
- package/dist/config/abi/types/factories/Banana__factory.d.ts +475 -0
- package/dist/config/abi/types/factories/Banana__factory.js +627 -0
- package/dist/config/abi/types/factories/BondNft__factory.d.ts +723 -0
- package/dist/config/abi/types/factories/BondNft__factory.js +950 -0
- package/dist/config/abi/types/factories/Bond__factory.d.ts +799 -0
- package/dist/config/abi/types/factories/Bond__factory.js +1041 -0
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +649 -0
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +832 -0
- package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +338 -0
- package/dist/config/abi/types/factories/EnsRegistrar__factory.js +438 -0
- package/dist/config/abi/types/factories/Erc20__factory.d.ts +175 -0
- package/dist/config/abi/types/factories/Erc20__factory.js +238 -0
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +30 -0
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +46 -0
- package/dist/config/abi/types/factories/JungleChef__factory.d.ts +247 -0
- package/dist/config/abi/types/factories/JungleChef__factory.js +325 -0
- package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +1560 -0
- package/dist/config/abi/types/factories/LaunchBonds__factory.js +2030 -0
- package/dist/config/abi/types/factories/LensContract__factory.d.ts +254 -0
- package/dist/config/abi/types/factories/LensContract__factory.js +337 -0
- package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +1698 -0
- package/dist/config/abi/types/factories/LockVeAbond__factory.js +2214 -0
- package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +1268 -0
- package/dist/config/abi/types/factories/MigrationBond__factory.js +1655 -0
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +262 -0
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +345 -0
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +448 -0
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +585 -0
- package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +115 -0
- package/dist/config/abi/types/factories/Multicallv2__factory.js +159 -0
- package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +76 -0
- package/dist/config/abi/types/factories/Multicallv3__factory.js +108 -0
- package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +617 -0
- package/dist/config/abi/types/factories/NonFungibleApes__factory.js +809 -0
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +576 -0
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +755 -0
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +1105 -0
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +1464 -0
- package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +1027 -0
- package/dist/config/abi/types/factories/PriceGetterV2__factory.js +1363 -0
- package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +999 -0
- package/dist/config/abi/types/factories/PriceGetter__factory.js +1325 -0
- package/dist/config/abi/types/factories/SousChef__factory.d.ts +511 -0
- package/dist/config/abi/types/factories/SousChef__factory.js +665 -0
- package/dist/config/abi/types/factories/Treasury__factory.d.ts +235 -0
- package/dist/config/abi/types/factories/Treasury__factory.js +308 -0
- package/dist/config/abi/types/factories/Weth__factory.d.ts +220 -0
- package/dist/config/abi/types/factories/Weth__factory.js +295 -0
- package/dist/config/abi/types/factories/Zap__factory.d.ts +695 -0
- package/dist/config/abi/types/factories/Zap__factory.js +888 -0
- package/dist/config/abi/types/factories/index.d.ts +25 -0
- package/dist/config/abi/types/factories/index.js +28 -0
- package/dist/config/abi/types/index.d.ts +51 -0
- package/dist/config/abi/types/index.js +26 -0
- package/dist/config/constants/addresses.d.ts +20 -0
- package/dist/config/constants/addresses.js +116 -0
- package/dist/config/constants/api.d.ts +6 -0
- package/dist/config/constants/api.js +6 -0
- package/dist/config/constants/chains.d.ts +48 -0
- package/dist/config/constants/chains.js +436 -0
- package/dist/config/constants/lifiRouting.d.ts +2 -0
- package/dist/config/constants/lifiRouting.js +6 -0
- package/dist/config/constants/lists.d.ts +10 -0
- package/dist/config/constants/lists.js +21 -0
- package/dist/config/constants/meta.d.ts +11 -0
- package/dist/config/constants/meta.js +92 -0
- package/dist/config/constants/misc.d.ts +3 -0
- package/dist/config/constants/misc.js +4 -0
- package/dist/config/constants/networks.d.ts +2 -0
- package/dist/config/constants/networks.js +44 -0
- package/dist/config/constants/products.d.ts +21 -0
- package/dist/config/constants/products.js +58 -0
- package/dist/config/constants/queryKeys.d.ts +24 -0
- package/dist/config/constants/queryKeys.js +24 -0
- package/dist/config/constants/tokens.d.ts +6 -0
- package/dist/config/constants/tokens.js +452 -0
- package/dist/config/constants/tutorials.d.ts +7 -0
- package/dist/config/constants/tutorials.js +80 -0
- package/dist/config/localization/languages.d.ts +11 -0
- package/dist/config/localization/languages.js +83 -0
- package/dist/config/localization/translations.json +918 -0
- package/dist/contexts/Localization/Provider.d.ts +7 -0
- package/dist/contexts/Localization/Provider.js +134 -0
- package/dist/contexts/Localization/helpers.d.ts +3 -0
- package/dist/contexts/Localization/helpers.js +63 -0
- package/dist/contexts/Localization/index.d.ts +3 -0
- package/dist/contexts/Localization/index.js +2 -0
- package/dist/contexts/Localization/types.d.ts +21 -0
- package/dist/contexts/Localization/types.js +1 -0
- package/dist/contexts/Localization/useTranslation.d.ts +2 -0
- package/dist/contexts/Localization/useTranslation.js +10 -0
- package/dist/contexts/ModalContext.js +1 -1
- package/dist/contexts/RefreshContext.d.ts +10 -0
- package/dist/contexts/RefreshContext.js +89 -0
- package/dist/enum/apeswaplists.d.ts +418 -0
- package/dist/enum/apeswaplists.js +152 -0
- package/dist/enum/tooltips.d.ts +13 -0
- package/dist/enum/tooltips.js +13 -0
- package/dist/hooks/useCookie.d.ts +9 -0
- package/dist/hooks/useCookie.js +29 -0
- package/dist/hooks/usePendingVesting.d.ts +5 -0
- package/dist/hooks/usePendingVesting.js +13 -0
- package/dist/hooks/useRefresh.d.ts +6 -0
- package/dist/hooks/useRefresh.js +7 -0
- package/dist/hooks/useTimer.d.ts +2 -0
- package/dist/hooks/useTimer.js +13 -0
- package/dist/hooks/useTopThreeTags.d.ts +2 -0
- package/dist/hooks/useTopThreeTags.js +25 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +5 -3
- package/dist/{components → pages}/Bonds/Bonds.d.ts +6 -2
- package/dist/pages/Bonds/Bonds.js +185 -0
- package/dist/pages/YourBonds/YourBonds.d.ts +15 -0
- package/dist/pages/YourBonds/YourBonds.js +287 -0
- package/dist/pages/YourBonds/fetchBillsUser.d.ts +17 -0
- package/dist/pages/YourBonds/fetchBillsUser.js +237 -0
- package/dist/pages/YourBonds/getBillNftData.d.ts +9 -0
- package/dist/pages/YourBonds/getBillNftData.js +109 -0
- package/dist/scss/BondMenu.scss +29 -0
- package/dist/scss/BondModal.scss +409 -0
- package/dist/scss/BondRow.scss +98 -0
- package/dist/scss/BondRowHeader.scss +124 -0
- package/dist/scss/BondRowsByChain.scss +5 -0
- package/dist/scss/BondRowsWithTitle.scss +4 -0
- package/dist/scss/Bonds.scss +17 -0
- package/dist/scss/ProgressBar.scss +13 -0
- package/dist/scss/YourBonds.scss +198 -0
- package/dist/scss/YourBondsModal.scss +314 -0
- package/dist/theme/colors.d.ts +3 -2
- package/dist/theme/colors.js +3 -2
- package/dist/types/bonds.d.ts +35 -1
- package/dist/types/yourbonds.d.ts +93 -0
- package/dist/types/yourbonds.js +1 -0
- package/dist/utils/convertToTokenValue.d.ts +4 -0
- package/dist/utils/convertToTokenValue.js +24 -0
- package/dist/utils/formatNumber.d.ts +2 -0
- package/dist/utils/formatNumber.js +34 -0
- package/dist/utils/formatNumbers.d.ts +36 -0
- package/dist/utils/formatNumbers.js +148 -0
- package/dist/utils/getBalanceNumber.d.ts +4 -0
- package/dist/utils/getBalanceNumber.js +18 -0
- package/dist/utils/index.d.ts +16 -0
- package/dist/utils/index.js +127 -0
- package/dist/utils/localStorageHelpers.d.ts +3 -0
- package/dist/utils/localStorageHelpers.js +47 -0
- package/dist/utils/multicall.d.ts +7 -0
- package/dist/utils/multicall.js +90 -0
- package/dist/utils/roundNumber.d.ts +7 -0
- package/dist/utils/roundNumber.js +14 -0
- package/dist/utils/track.d.ts +7 -0
- package/dist/utils/track.js +17 -0
- package/package.json +35 -12
- package/dist/components/BondModal/BondModal.d.ts +0 -10
- package/dist/components/BondModal/BondModal.js +0 -31
- package/dist/components/BondSingle/BondSingle.d.ts +0 -5
- package/dist/components/BondSingle/BondSingle.js +0 -45
- package/dist/components/Bonds/Bonds.js +0 -152
- package/dist/components/Bonds/styles.d.ts +0 -4
- package/dist/components/Bonds/styles.js +0 -75
- package/dist/components/uikit/Dropdown/Dropdown.d.ts +0 -4
- package/dist/components/uikit/Dropdown/Dropdown.js +0 -58
- package/dist/components/uikit/Dropdown/DropdownItem.d.ts +0 -4
- package/dist/components/uikit/Dropdown/DropdownItem.js +0 -47
- package/dist/components/uikit/Dropdown/index.d.ts +0 -3
- package/dist/components/uikit/Dropdown/index.js +0 -2
- package/dist/components/uikit/Dropdown/styles.js +0 -16
- package/dist/components/uikit/Dropdown/types.d.ts +0 -58
- package/dist/components/uikit/Dropdown/types.js +0 -22
- package/dist/components/uikit/Link/index.d.ts +0 -9
- package/dist/components/uikit/Link/index.js +0 -29
- package/dist/components/uikit/Modal/ModalFooter.d.ts +0 -4
- package/dist/components/uikit/Modal/ModalFooter.js +0 -32
- package/dist/components/uikit/Modal/ModalHeader.d.ts +0 -4
- package/dist/components/uikit/Modal/ModalHeader.js +0 -31
- package/dist/components/uikit/Modal/index.d.ts +0 -4
- package/dist/components/uikit/Modal/index.js +0 -55
- package/dist/components/uikit/Modal/styles.d.ts +0 -3
- package/dist/components/uikit/Modal/styles.js +0 -62
- package/dist/components/uikit/Modal/types.d.ts +0 -17
- package/dist/components/uikit/Skeleton/styles.d.ts +0 -5
- package/dist/components/uikit/Spinner/apeSpinner.json +0 -2764
- package/dist/components/uikit/Spinner/index.d.ts +0 -5
- package/dist/components/uikit/Spinner/index.js +0 -20
- package/dist/components/uikit/SwiperDots/index.d.ts +0 -6
- package/dist/components/uikit/SwiperDots/index.js +0 -14
- package/dist/components/uikit/Tabs/Tab.d.ts +0 -4
- package/dist/components/uikit/Tabs/Tab.js +0 -34
- package/dist/components/uikit/Tabs/TabPanel.d.ts +0 -4
- package/dist/components/uikit/Tabs/Tabs.d.ts +0 -4
- package/dist/components/uikit/Tabs/Tabs.js +0 -67
- package/dist/components/uikit/Tabs/index.d.ts +0 -2
- package/dist/components/uikit/Tabs/index.js +0 -2
- package/dist/components/uikit/Tabs/styles.d.ts +0 -3
- package/dist/components/uikit/Tabs/styles.js +0 -40
- package/dist/components/uikit/Tabs/types.d.ts +0 -54
- package/dist/components/uikit/Tabs/types.js +0 -22
- package/dist/components/uikit/Tag/styles.d.ts +0 -5
- package/dist/components/uikit/Toggle/index.d.ts +0 -4
- package/dist/components/uikit/Toggle/index.js +0 -63
- package/dist/components/uikit/Toggle/styles.d.ts +0 -3
- package/dist/components/uikit/Toggle/styles.js +0 -39
- package/dist/components/uikit/Toggle/types.d.ts +0 -31
- package/dist/components/uikit/Toggle/types.js +0 -17
- package/dist/components/uikit/TutorialModal/index.d.ts +0 -4
- package/dist/components/uikit/TutorialModal/index.js +0 -52
- package/dist/components/uikit/TutorialModal/styles.d.ts +0 -8
- package/dist/components/uikit/TutorialModal/styles.js +0 -86
- package/dist/components/uikit/TutorialModal/types.d.ts +0 -22
- package/dist/components/uikit/TutorialModal/useTutorialModal.d.ts +0 -6
- package/dist/components/uikit/TutorialModal/useTutorialModal.js +0 -20
- package/dist/components/uikit/index.d.ts +0 -18
- package/dist/components/uikit/index.js +0 -20
- package/dist/scss/bondmodal.scss +0 -92
- package/dist/scss/bonds.scss +0 -70
- package/dist/scss/bondsingle.scss +0 -70
- /package/dist/components/{uikit/Modal → MenuSelect}/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/Button.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/Button.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/IconButton.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/IconButton.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/styles.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Button/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Checkbox/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Checkbox/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Checkbox/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Flex/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Flex/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Input/Input.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Input/NumericInput.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Input/StyledInput.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Input/StyledInput.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Input/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Input/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/Select.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/Select.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/SelectItem.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/SelectItem.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/styles.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Select/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Skeleton/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Skeleton/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Skeleton/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Skeleton/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Skeleton/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AbondFullLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AbondFullLogo.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AbondSmallLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AbondSmallLogo.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AccountMonkey.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/AccountMonkey.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ApebondLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ApebondLogo.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ApeswapSmallLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ApeswapSmallLogo.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Arrow.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Arrow.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Audit.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Audit.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BananaIcon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BananaIcon.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM1.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM1.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM2.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM2.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM3.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/BillsM3.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Bridge.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Bridge.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Bubble.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Bubble.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Calculator.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Calculator.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Calendar.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Calendar.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Cancelled.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Cancelled.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Card.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Card.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Caret.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Caret.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chain.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chain.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chart.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chart.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chat.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Chat.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Close.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Close.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Cog.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Cog.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Collapse.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Collapse.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Copy.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Copy.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Discord.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Discord.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/DiscordNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/DiscordNew.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Docs.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Docs.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/DocsV2.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/DocsV2.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Ellipse.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Ellipse.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Error.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Error.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Expand.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Expand.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Explorer.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Explorer.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/External.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/External.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Farm.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Farm.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Fav.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Fav.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/FilledURL.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/FilledURL.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Fire.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Fire.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Frame.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Frame.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/FullLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/FullLogo.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Gnana.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Gnana.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/GreenShield.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/GreenShield.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Hamburger.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Hamburger.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/HamburgerClosed.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/HamburgerClosed.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Home.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Home.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Info.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Info.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/InfoSolid.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/InfoSolid.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Insight.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Insight.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Instagram.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Instagram.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Island.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Island.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Language.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Language.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LanguageIcon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LanguageIcon.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LineChart.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LineChart.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LiquidityIcon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/LiquidityIcon.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Logout.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Logout.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Medium.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Medium.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/MenuSettings.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/MenuSettings.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Message.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Message.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Migrate.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Migrate.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Moon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Moon.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/More.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/More.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/NFA.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/NFA.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/NavCaret.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/NavCaret.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/PlaceholderMonkey.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/PlaceholderMonkey.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Play.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Play.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Pool.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Pool.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Positions.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Positions.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileDark.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileDark.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileIcon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileIcon.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileLight.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ProfileLight.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Question.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Question.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/QuestionCircle.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/QuestionCircle.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/QuestionFill.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/QuestionFill.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Quiz.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Quiz.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Receipt.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Receipt.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Reddit.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Reddit.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Rocket.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Rocket.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ScrollTop.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ScrollTop.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Search.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Search.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Send.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Send.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Settings.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Settings.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Share.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Share.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Success.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Success.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/SuccessOutline.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/SuccessOutline.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/SwapArrows.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/SwapArrows.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/SwitchArrows.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/SwitchArrows.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Tag.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Tag.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Telegram.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Telegram.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TelegramNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TelegramNew.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TextLogo.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TextLogo.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TickShield.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/TickShield.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Trade.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Trade.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Trash.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Trash.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Twitter.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Twitter.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/URL.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/URL.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Vaults.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Vaults.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Verified.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Verified.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Wallet.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Wallet.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Warning.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Warning.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Watch.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Watch.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Website.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/Website.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/WebsiteNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/WebsiteNew.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/WhitepaperNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/WhitepaperNew.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/XNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/XNew.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/YellowQuestionMark.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/YellowQuestionMark.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ZapArrow.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ZapArrow.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ZapIcon.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/ZapIcon.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/polygonNew.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/polygonNew.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/Icons/types.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/index.d.ts +0 -0
- /package/dist/components/{uikit/Dropdown → uikit-sdk/Svg}/styles.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ABOND.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ABOND.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ARBITRUM.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ARBITRUM.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/AVAX.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/AVAX.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BANANA.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BANANA.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BASE.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BASE.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BNB.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BNB.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BSC.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/BSC.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/CELO.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/CELO.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/CRONOS.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/CRONOS.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ETH.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/ETH.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/FANTOM.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/FANTOM.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/GNANA.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/GNANA.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/GNOSIS.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/GNOSIS.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/INEVM.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/INEVM.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/IOTA.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/IOTA.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/LIGHTLINK.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/LIGHTLINK.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/LINEA.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/LINEA.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/OKX.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/OKX.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/OPTIMISM.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/OPTIMISM.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/POLYGON.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/POLYGON.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/POLYGONZK.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/POLYGONZK.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/TLOS.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/TLOS.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/tokens/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/BinanceChain.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/BinanceChain.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Bitkeep.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Bitkeep.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Brave.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Brave.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Coinbase.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Coinbase.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/MadWallet.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/MadWallet.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/MathWallet.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/MathWallet.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Metamask.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Metamask.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Nabox.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Nabox.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/OKX.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/OKX.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/OntoWallet.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/OntoWallet.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/SafePalWallet.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/SafePalWallet.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/SocialLogin.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/SocialLogin.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/TokenPocket.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/TokenPocket.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/TorusWallet.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/TorusWallet.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/TrustWallet.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/TrustWallet.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Unstoppable.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/Unstoppable.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/WalletConnect.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/WalletConnect.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/WalletImage.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/WalletImage.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Svg/walletIcons/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/ListTag.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/ListTag.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/Tag.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/Tag.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/styles.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Tag/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Text/index.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Text/index.js +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Text/types.d.ts +0 -0
- /package/dist/components/{uikit → uikit-sdk}/Text/types.js +0 -0
- /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/index.d.ts +0 -0
- /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/index.js +0 -0
- /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/styles.d.ts +0 -0
- /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/types.d.ts +0 -0
- /package/dist/components/{uikit/Tooltip → uikit-sdk/TooltipBubble}/types.js +0 -0
- /package/dist/{components/uikit/TutorialModal/types.js → config/abi/types/Banana.js} +0 -0
|
@@ -0,0 +1,276 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
|
|
49
|
+
/** @jsxImportSource theme-ui */
|
|
50
|
+
import React, { useEffect, useState } from 'react';
|
|
51
|
+
import { Flex, Input, ThemeUIProvider } from 'theme-ui';
|
|
52
|
+
import { defaultTheme } from '../../../theme';
|
|
53
|
+
import getTimePeriods from '../../../utils/getTimePeriods';
|
|
54
|
+
import axios from 'axios';
|
|
55
|
+
import { BigNumber } from 'bignumber.js';
|
|
56
|
+
import { getFirstNonZeroDigits } from '../../../utils/roundNumber';
|
|
57
|
+
import { isNumber } from '../../../utils/numbers';
|
|
58
|
+
import { TooltipBubble, Button, Svg, ListTag } from '../../uikit-sdk';
|
|
59
|
+
import { TooltipText } from '../../../enum/tooltips';
|
|
60
|
+
import { ethers } from 'ethers';
|
|
61
|
+
import convertToTokenValue, { adjustDecimals } from "../../../utils/convertToTokenValue";
|
|
62
|
+
import TokenImage from '../../uikit-sdk/TokenImage';
|
|
63
|
+
import BOND_ABI from '../../../config/abi/bond.json';
|
|
64
|
+
import ERC_20_ABI from '../../../config/abi/erc20.json';
|
|
65
|
+
import { NETWORK_ICONS, NETWORK_LABEL } from '../../../config/constants/chains';
|
|
66
|
+
import { formatUSDNumber, getPremiumColor, premium, youGet, youGetUSD, youSpend, youSpendUSD } from './helper';
|
|
67
|
+
import '../../../scss/BondModal.scss';
|
|
68
|
+
import { useChainId, useSwitchChain, useWaitForTransactionReceipt, useWriteContract } from "wagmi";
|
|
69
|
+
import { PUBLIC_RPC_URLS } from "../../../config/constants/networks";
|
|
70
|
+
var BondModal = function (_a) {
|
|
71
|
+
var account = _a.account, isActive = _a.isActive, isOpen = _a.isOpen, accountChainId = _a.accountChainId, onClose = _a.onClose, bondAddress = _a.bondAddress;
|
|
72
|
+
if (!isOpen)
|
|
73
|
+
return null;
|
|
74
|
+
var chainId = useChainId();
|
|
75
|
+
var _b = useSwitchChain(), chains = _b.chains, switchChain = _b.switchChain;
|
|
76
|
+
var _c = useState([]), bondData = _c[0], setBondData = _c[1];
|
|
77
|
+
var _d = useWriteContract(), hash = _d.data, isPending = _d.isPending, writeContract = _d.writeContract, writeContractAsync = _d.writeContractAsync;
|
|
78
|
+
var _e = useWaitForTransactionReceipt({
|
|
79
|
+
confirmations: 4,
|
|
80
|
+
chainId: chainId !== null && chainId !== void 0 ? chainId : accountChainId,
|
|
81
|
+
hash: hash,
|
|
82
|
+
}), isConfirming = _e.isLoading, isConfirmed = _e.isSuccess;
|
|
83
|
+
var _f = useState(null), approveTx = _f[0], setApproveTx = _f[1];
|
|
84
|
+
var _g = useState(null), toastMessage = _g[0], setToastMessage = _g[1];
|
|
85
|
+
var _h = useState(null), buyTx = _h[0], setBuyTx = _h[1];
|
|
86
|
+
var _j = useState(null), tokenBalance = _j[0], setTokenBalance = _j[1];
|
|
87
|
+
var _k = useState(null), tokenDecimals = _k[0], setTokenDecimals = _k[1];
|
|
88
|
+
var _l = useState(''), inputValue = _l[0], setInputValue = _l[1];
|
|
89
|
+
var handleInputChange = function (event) {
|
|
90
|
+
setInputValue(event.target.value);
|
|
91
|
+
};
|
|
92
|
+
var handleBuy = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
93
|
+
var billAddress, decimals, maxPrice, rawAmount, amount, tx, data, response, error_1;
|
|
94
|
+
return __generator(this, function (_a) {
|
|
95
|
+
switch (_a.label) {
|
|
96
|
+
case 0:
|
|
97
|
+
billAddress = bondData[0].billAddress;
|
|
98
|
+
decimals = tokenDecimals !== null && tokenDecimals !== void 0 ? tokenDecimals : 18;
|
|
99
|
+
_a.label = 1;
|
|
100
|
+
case 1:
|
|
101
|
+
_a.trys.push([1, 5, , 6]);
|
|
102
|
+
maxPrice = new BigNumber(bondData[0].trueBillPrice).times(102).div(100).toFixed(0);
|
|
103
|
+
rawAmount = adjustDecimals(inputValue);
|
|
104
|
+
amount = new BigNumber(rawAmount).times(new BigNumber(10).pow(decimals !== null && decimals !== void 0 ? decimals : 18)).toString();
|
|
105
|
+
return [4 /*yield*/, writeContractAsync({
|
|
106
|
+
address: billAddress,
|
|
107
|
+
abi: BOND_ABI,
|
|
108
|
+
functionName: 'deposit',
|
|
109
|
+
args: [amount, maxPrice, account],
|
|
110
|
+
})];
|
|
111
|
+
case 2:
|
|
112
|
+
tx = _a.sent();
|
|
113
|
+
if (!tx) return [3 /*break*/, 4];
|
|
114
|
+
setBuyTx(tx);
|
|
115
|
+
data = {
|
|
116
|
+
chainId: chainId,
|
|
117
|
+
transactionHash: tx,
|
|
118
|
+
referenceId: 'cgpt-sdk',
|
|
119
|
+
billContract: billAddress
|
|
120
|
+
};
|
|
121
|
+
return [4 /*yield*/, axios.post("https://api-v2.apeswap.finance/bills/widget", data)];
|
|
122
|
+
case 3:
|
|
123
|
+
response = _a.sent();
|
|
124
|
+
console.log(response);
|
|
125
|
+
_a.label = 4;
|
|
126
|
+
case 4: return [3 /*break*/, 6];
|
|
127
|
+
case 5:
|
|
128
|
+
error_1 = _a.sent();
|
|
129
|
+
console.error('Buy error', error_1);
|
|
130
|
+
return [3 /*break*/, 6];
|
|
131
|
+
case 6: return [2 /*return*/];
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}); };
|
|
135
|
+
//You approve the token, not the contract (this code will have to be updated for zap)
|
|
136
|
+
var handleApprove = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
137
|
+
var tokenAddress, decimals, amount, tx, error_2;
|
|
138
|
+
return __generator(this, function (_a) {
|
|
139
|
+
switch (_a.label) {
|
|
140
|
+
case 0:
|
|
141
|
+
tokenAddress = bondData[0].lpToken.address[chainId];
|
|
142
|
+
decimals = tokenDecimals !== null && tokenDecimals !== void 0 ? tokenDecimals : 18;
|
|
143
|
+
_a.label = 1;
|
|
144
|
+
case 1:
|
|
145
|
+
_a.trys.push([1, 3, , 4]);
|
|
146
|
+
amount = convertToTokenValue(inputValue, decimals);
|
|
147
|
+
return [4 /*yield*/, writeContractAsync({
|
|
148
|
+
address: tokenAddress,
|
|
149
|
+
abi: ERC_20_ABI,
|
|
150
|
+
functionName: 'approve',
|
|
151
|
+
args: [bondData[0].billAddress, amount]
|
|
152
|
+
})];
|
|
153
|
+
case 2:
|
|
154
|
+
tx = _a.sent();
|
|
155
|
+
if (tx) {
|
|
156
|
+
setApproveTx(tx);
|
|
157
|
+
}
|
|
158
|
+
return [3 /*break*/, 4];
|
|
159
|
+
case 3:
|
|
160
|
+
error_2 = _a.sent();
|
|
161
|
+
console.error('Approval failed:', error_2);
|
|
162
|
+
return [3 /*break*/, 4];
|
|
163
|
+
case 4: return [2 /*return*/];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}); };
|
|
167
|
+
// Confirmation message
|
|
168
|
+
useEffect(function () {
|
|
169
|
+
if (isConfirmed) {
|
|
170
|
+
setToastMessage("Transaction Complete.");
|
|
171
|
+
setTimeout(function () { return setToastMessage(null); }, 10000);
|
|
172
|
+
}
|
|
173
|
+
}, [approveTx, buyTx, isConfirmed]);
|
|
174
|
+
useEffect(function () {
|
|
175
|
+
if (isActive && account && bondData.length > 0) {
|
|
176
|
+
getTokenBalance(chainId, bondData[0].lpToken.address[chainId], account).then(function (_a) {
|
|
177
|
+
var roundedBalance = _a.roundedBalance, decimals = _a.decimals;
|
|
178
|
+
setTokenBalance(roundedBalance);
|
|
179
|
+
setTokenDecimals(decimals);
|
|
180
|
+
}).catch(function (error) {
|
|
181
|
+
console.error('Error fetching token balance', error);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}, [isActive, account, bondData]);
|
|
185
|
+
var getTokenBalance = function (chainId, tokenAddress, walletAddress) { return __awaiter(void 0, void 0, void 0, function () {
|
|
186
|
+
var urls, provider, contract, decimals, balance, balanceInEther, roundedBalance, error_3;
|
|
187
|
+
return __generator(this, function (_a) {
|
|
188
|
+
switch (_a.label) {
|
|
189
|
+
case 0:
|
|
190
|
+
_a.trys.push([0, 3, , 4]);
|
|
191
|
+
urls = PUBLIC_RPC_URLS;
|
|
192
|
+
provider = new ethers.providers.JsonRpcProvider(urls[chainId][0]);
|
|
193
|
+
if (!provider) {
|
|
194
|
+
throw new Error("No provider found for chainId: ".concat(chainId));
|
|
195
|
+
}
|
|
196
|
+
contract = new ethers.Contract(tokenAddress, ERC_20_ABI, provider);
|
|
197
|
+
return [4 /*yield*/, contract.decimals()];
|
|
198
|
+
case 1:
|
|
199
|
+
decimals = _a.sent();
|
|
200
|
+
return [4 /*yield*/, contract.balanceOf(walletAddress)];
|
|
201
|
+
case 2:
|
|
202
|
+
balance = _a.sent();
|
|
203
|
+
balanceInEther = ethers.utils.formatUnits(balance, decimals);
|
|
204
|
+
roundedBalance = Number(balanceInEther).toFixed(4).toString();
|
|
205
|
+
return [2 /*return*/, { roundedBalance: roundedBalance, decimals: decimals }];
|
|
206
|
+
case 3:
|
|
207
|
+
error_3 = _a.sent();
|
|
208
|
+
console.error('Error fetching token balance', error_3);
|
|
209
|
+
return [2 /*return*/, { roundedBalance: '0', decimals: 0 }];
|
|
210
|
+
case 4: return [2 /*return*/];
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}); };
|
|
214
|
+
// Fetch data
|
|
215
|
+
useEffect(function () {
|
|
216
|
+
axios.get('https://realtime-api.ape.bond/bonds').then(function (response) {
|
|
217
|
+
var bond = response.data.bonds.filter(function (x) {
|
|
218
|
+
return x.billAddress.toLowerCase() === (bondAddress === null || bondAddress === void 0 ? void 0 : bondAddress.toLowerCase());
|
|
219
|
+
});
|
|
220
|
+
setBondData(bond);
|
|
221
|
+
});
|
|
222
|
+
}, [bondAddress]);
|
|
223
|
+
// Functions for calculations
|
|
224
|
+
var getDiscountColor = function (discount) {
|
|
225
|
+
return discount < 0 ? 'discount-negative' : 'discount-positive';
|
|
226
|
+
};
|
|
227
|
+
var discountEarnTokenPrice = function (bond) {
|
|
228
|
+
var _a, _b;
|
|
229
|
+
var earnTokenPrice = parseFloat((_a = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0');
|
|
230
|
+
return getFirstNonZeroDigits(earnTokenPrice - earnTokenPrice * (((_b = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _b !== void 0 ? _b : 0) / 100));
|
|
231
|
+
};
|
|
232
|
+
var earnTokenPrice = function (bond) {
|
|
233
|
+
var _a;
|
|
234
|
+
return getFirstNonZeroDigits(parseFloat((_a = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0'));
|
|
235
|
+
};
|
|
236
|
+
var vestingTime = function (vestingTerm) { return getTimePeriods(vestingTerm !== null && vestingTerm !== void 0 ? vestingTerm : 0, true); };
|
|
237
|
+
var maxBuy = function (bond) {
|
|
238
|
+
var _a, _b, _c, _d;
|
|
239
|
+
var available = new BigNumber((_a = bond === null || bond === void 0 ? void 0 : bond.tokensRemaining) !== null && _a !== void 0 ? _a : '0');
|
|
240
|
+
var threshold = 5;
|
|
241
|
+
var thresholdToShow = new BigNumber(threshold).div((_b = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _b !== void 0 ? _b : 0);
|
|
242
|
+
var safeAvailable = available.minus(thresholdToShow);
|
|
243
|
+
var singlePurchaseLimit = new BigNumber((_c = bond === null || bond === void 0 ? void 0 : bond.maxPayout) !== null && _c !== void 0 ? _c : 0).div(new BigNumber(10).pow((_d = bond === null || bond === void 0 ? void 0 : bond.earnToken.decimals[chainId]) !== null && _d !== void 0 ? _d : 18));
|
|
244
|
+
return !available ? 0 : (singlePurchaseLimit.lt(safeAvailable) ? singlePurchaseLimit : safeAvailable);
|
|
245
|
+
};
|
|
246
|
+
return (_jsx(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: bondData.map(function (bond) {
|
|
247
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
248
|
+
return (_jsx(React.Fragment, { children: _jsx(Flex, __assign({ className: "modal-backdrop", onClick: onClose }, { children: _jsxs(Flex, __assign({ className: "modal-content", onClick: function (event) { return event.stopPropagation(); } }, { children: [toastMessage && (_jsx(Flex, __assign({ className: "toast" }, { children: toastMessage }))), _jsx(Flex, __assign({ className: "modal-header" }, { children: _jsx(Flex, __assign({ className: "svg-close", onClick: onClose }, { children: _jsx(Svg, { icon: "close" }) })) })), _jsxs(Flex, __assign({ className: "modaltable-container" }, { children: [_jsxs(Flex, __assign({ className: "modaltable-container title-container" }, { children: [_jsx(Flex, __assign({ className: "title-container bondicon" }, { children: _jsxs("div", __assign({ className: "icon-container" }, { children: [_jsx(Svg, { width: 20, height: 20, icon: (_a = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bond.chainId]) !== null && _a !== void 0 ? _a : 'question' }), _jsx(TokenImage, { symbol: (_b = bond.showcaseTokenName) !== null && _b !== void 0 ? _b : bond.earnToken.symbol, size: 50 })] })) })), _jsx(Flex, __assign({ className: "title-container bondname" }, { children: bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName })), _jsxs(Flex, __assign({ className: "title-container price-container" }, { children: [_jsxs(Flex, __assign({ className: "price-container price" }, { children: ["$", earnTokenPrice(bond)] })), _jsxs(Flex, __assign({ className: "price-container discounted" }, { children: ["$", discountEarnTokenPrice(bond)] }))] })), _jsx(Flex, __assign({ className: "title-container tokentags" }, { children: _jsx(ListTag, { text: (_c = bond === null || bond === void 0 ? void 0 : bond.tags) === null || _c === void 0 ? void 0 : _c[0], variant: ((_d = bond === null || bond === void 0 ? void 0 : bond.tags) === null || _d === void 0 ? void 0 : _d[0]) === 'Cex Fund' ? 'cex_fund' : 'liquidity' }) }))] })), _jsx(Flex, __assign({ className: "modaltable-container description-container" }, { children: bond === null || bond === void 0 ? void 0 : bond.shortDescription })), _jsxs(Flex, __assign({ className: "modaltable-container blocks-container" }, { children: [_jsxs(Flex, __assign({ className: "modal-block block-discount ".concat(getDiscountColor(bond === null || bond === void 0 ? void 0 : bond.discount)) }, { children: [_jsxs(Flex, __assign({ className: "block-header" }, { children: ["Discount", _jsx(TooltipBubble, __assign({ className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Discount }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) }))] })), _jsx(Flex, __assign({ className: "block-content" }, { children: "".concat((_e = bond === null || bond === void 0 ? void 0 : bond.discount) === null || _e === void 0 ? void 0 : _e.toFixed(2), "%") }))] })), _jsxs(Flex, __assign({ className: "modal-block block-arr" }, { children: [_jsxs(Flex, __assign({ className: "block-header" }, { children: ["ARR", _jsx(TooltipBubble, __assign({ className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.ARR }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) }))] })), _jsx(Flex, __assign({ className: "block-content" }, { children: "".concat(((((_f = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _f !== void 0 ? _f : 0) * 365) / vestingTime((_g = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _g !== void 0 ? _g : 0).days).toFixed(2), "%") }))] })), _jsxs(Flex, __assign({ className: "modal-block block-term" }, { children: [_jsxs(Flex, __assign({ className: "block-header" }, { children: ["Terms", _jsx(TooltipBubble, __assign({ className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Terms }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) }))] })), _jsx(Flex, __assign({ className: "block-content" }, { children: vestingTime((_h = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _h !== void 0 ? _h : 0).days ? "".concat(vestingTime((_j = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _j !== void 0 ? _j : 0).days, " D") : '-' }))] })), _jsxs(Flex, __assign({ className: "modal-block block-maxbuy" }, { children: [_jsxs(Flex, __assign({ className: "block-header" }, { children: ["Max Buy", _jsx(TooltipBubble, __assign({ className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.MaxBuy(bond.earnToken.symbol) }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "header-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) }))] })), _jsx(Flex, __assign({ className: "block-content" }, { children: (_k = parseFloat(maxBuy(bond).toFixed(0))) === null || _k === void 0 ? void 0 : _k.toLocaleString('en-US') }))] }))] })), _jsxs(Flex, __assign({ className: "modaltable-container text-container" }, { children: [_jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsx(Flex, __assign({ className: "row-container spend" }, { children: "You spend:" })), _jsxs(Flex, __assign({ className: "row-container spend-val" }, { children: [youSpend(inputValue), " ", bond.lpToken.symbol, " = $ ", formatUSDNumber(youSpendUSD(bond, inputValue))] }))] })), _jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsxs(Flex, __assign({ className: "row-container premium" }, { children: ["Premium:", _jsx(TooltipBubble, __assign({ className: "tooltip-bubble", body: _jsx(Flex, { children: TooltipText.Premium }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "row-container premium-icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) }))] })), _jsxs(Flex, __assign({ className: "row-container premium-val ".concat(getPremiumColor(bond, inputValue)) }, { children: ["$ ", premium(bond, inputValue)] }))] })), _jsxs(Flex, __assign({ className: "text-container row" }, { children: [_jsxs(Flex, __assign({ className: "row-container get" }, { children: ["You get (over ", vestingTime((_l = bond === null || bond === void 0 ? void 0 : bond.vestingTerm) !== null && _l !== void 0 ? _l : 0).days, " days):"] })), _jsxs(Flex, __assign({ className: "row-container get-val" }, { children: [youGet(bond, inputValue), " ", bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName, " = $ ", formatUSDNumber(youGetUSD(bond, inputValue))] }))] }))] })), _jsxs(Flex, __assign({ className: "modaltable-container buy-container" }, { children: [_jsxs(Flex, __assign({ className: "input-container inputrow" }, { children: [_jsx(Flex, __assign({ className: "input-container input" }, { children: _jsx(Input, { placeholder: "0.0", value: inputValue, pattern: "^[0-9]*[.,]?[0-9]*$", onChange: handleInputChange, onInput: function (v) {
|
|
249
|
+
if (v.currentTarget.value.includes(',')) {
|
|
250
|
+
v.currentTarget.value = v.currentTarget.value.replace(/,/g, '.');
|
|
251
|
+
}
|
|
252
|
+
if (v.currentTarget.value.includes('%')) {
|
|
253
|
+
v.currentTarget.value = v.currentTarget.value.replace(/[^0-9]/g, '');
|
|
254
|
+
}
|
|
255
|
+
if (v.currentTarget.value === '.') {
|
|
256
|
+
v.currentTarget.value = '0.';
|
|
257
|
+
}
|
|
258
|
+
v.currentTarget.value =
|
|
259
|
+
!!v.currentTarget.value && isNumber(v.currentTarget.value) && parseFloat(v.currentTarget.value) >= 0
|
|
260
|
+
? v.currentTarget.value
|
|
261
|
+
: v.currentTarget.value.slice(0, v.currentTarget.value.length - 1);
|
|
262
|
+
} }) })), _jsxs(Flex, __assign({ className: "input-container token" }, { children: [_jsx(Flex, __assign({ className: "input-container bondicon" }, { children: _jsxs("div", __assign({ className: "icon-container-small" }, { children: [_jsx(Svg, { width: 12, height: 12, icon: (_m = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[bond.chainId]) !== null && _m !== void 0 ? _m : 'question' }), _jsx(TokenImage, { symbol: (_o = bond.lpToken.symbol) !== null && _o !== void 0 ? _o : bond.earnToken.symbol, size: 30 })] })) })), _jsx(Flex, __assign({ className: "title-container tokenname-small" }, { children: bond === null || bond === void 0 ? void 0 : bond.lpToken.symbol }))] }))] })), isActive && account && (_jsxs(Flex, __assign({ className: "input-container balancerow" }, { children: [_jsxs(Flex, __assign({ className: "balancerow text" }, { children: ["Balance: ", tokenBalance] })), _jsx(Flex, __assign({ className: "balancerow max" }, { children: _jsx(Button, __assign({ className: "max-button", onClick: function () { setInputValue(tokenBalance !== null && tokenBalance !== void 0 ? tokenBalance : '0'); } }, { children: "Max" })) }))] })))] })), _jsxs(Flex, __assign({ className: "modaltable-container button-container" }, { children: [_jsx(Flex, __assign({ className: "button-container get" }, { children: _jsxs(Button, __assign({ className: "action-button", onClick: function () { window.open('https://ape.bond/swap', '_blank'); } }, { children: ["Get ", bond === null || bond === void 0 ? void 0 : bond.lpToken.symbol] })) })), _jsx(Flex, __assign({ className: "button-container buy" }, { children: chainId !== bond.chainId
|
|
263
|
+
?
|
|
264
|
+
_jsxs(Button, __assign({ className: "switch-button", disabled: isPending || isConfirming || (bond === null || bond === void 0 ? void 0 : bond.soldOut), onClick: function (event) {
|
|
265
|
+
event.stopPropagation();
|
|
266
|
+
// Add your claim logic here
|
|
267
|
+
switchChain({ chainId: bond.chainId });
|
|
268
|
+
} }, { children: ["Switch to ", NETWORK_LABEL[bond.chainId]] }))
|
|
269
|
+
:
|
|
270
|
+
approveTx != null && isConfirmed ?
|
|
271
|
+
_jsx(Button, __assign({ className: "action-button", disabled: isPending || isConfirming || (bond === null || bond === void 0 ? void 0 : bond.soldOut), onClick: handleBuy }, { children: isConfirming ? 'Confirming...' : "Buy ".concat(bond === null || bond === void 0 ? void 0 : bond.showcaseTokenName) }))
|
|
272
|
+
:
|
|
273
|
+
_jsx(Button, __assign({ className: "action-button", disabled: isPending || isConfirming || (bond === null || bond === void 0 ? void 0 : bond.soldOut), onClick: handleApprove }, { children: isConfirming ? 'Confirming...' : 'Approve' })) }))] }))] }))] })) })) }, bond.billAddress));
|
|
274
|
+
}) })));
|
|
275
|
+
};
|
|
276
|
+
export default BondModal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BondsDataResponse } from "../../../types/bonds";
|
|
2
|
+
declare function formatNumber(input: string): string;
|
|
3
|
+
declare function formatUSDNumber(input: string): string;
|
|
4
|
+
declare const youSpend: (inputValue: string) => string;
|
|
5
|
+
declare const youSpendUSD: (bond: BondsDataResponse, inputValue: string) => string;
|
|
6
|
+
declare const youGet: (bond: BondsDataResponse, inputValue: string) => string;
|
|
7
|
+
declare const youGetUSD: (bond: BondsDataResponse, inputValue: string) => string;
|
|
8
|
+
declare const premium: (bond: BondsDataResponse, inputValue: string) => string;
|
|
9
|
+
declare const getPremiumColor: (bond: BondsDataResponse, inputValue: string) => string;
|
|
10
|
+
export { formatNumber, formatUSDNumber, youSpend, youSpendUSD, youGet, youGetUSD, premium, getPremiumColor };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import BigNumber from "bignumber.js";
|
|
2
|
+
import { formatNumberSI } from "../../../utils/formatNumber";
|
|
3
|
+
function formatNumber(input) {
|
|
4
|
+
var number = new BigNumber(input);
|
|
5
|
+
if (number.isNaN())
|
|
6
|
+
return '0';
|
|
7
|
+
return number.gt(1000000)
|
|
8
|
+
? formatNumberSI(number.toNumber())
|
|
9
|
+
: number.gt(1000)
|
|
10
|
+
? number.toNumber().toLocaleString(undefined, { maximumFractionDigits: 0 })
|
|
11
|
+
: number.gt(0.01)
|
|
12
|
+
? parseFloat(number.toFixed(2)).toLocaleString(undefined)
|
|
13
|
+
: parseFloat(number.toPrecision(5)).toLocaleString(undefined);
|
|
14
|
+
}
|
|
15
|
+
function formatUSDNumber(input) {
|
|
16
|
+
var number = new BigNumber(input);
|
|
17
|
+
if (number.isNaN())
|
|
18
|
+
return '0';
|
|
19
|
+
// If the number is greater than 0 but less than 0.01
|
|
20
|
+
if (number.gt(0) && number.lt(0.01)) {
|
|
21
|
+
return '< 0.01';
|
|
22
|
+
}
|
|
23
|
+
// If the number is greater than 1k, round to no decimals.
|
|
24
|
+
if (number.gt(1000)) {
|
|
25
|
+
return number.toNumber().toLocaleString(undefined, { maximumFractionDigits: 0 });
|
|
26
|
+
}
|
|
27
|
+
// Note: Between 1k and 0.01 show 2 decimals
|
|
28
|
+
return parseFloat(number.toFixed(2)).toLocaleString(undefined);
|
|
29
|
+
}
|
|
30
|
+
var youSpend = function (inputValue) { return formatNumber(inputValue); };
|
|
31
|
+
var youSpendUSD = function (bond, inputValue) {
|
|
32
|
+
return (parseFloat(inputValue) * parseFloat(bond.principalTokenPrice)).toString();
|
|
33
|
+
};
|
|
34
|
+
var youGet = function (bond, inputValue) {
|
|
35
|
+
var _a;
|
|
36
|
+
var bigValue = new BigNumber(inputValue).times(new BigNumber(10).pow(18));
|
|
37
|
+
var billValue = bigValue.div(new BigNumber((_a = bond.trueBillPrice) !== null && _a !== void 0 ? _a : 0));
|
|
38
|
+
return formatNumber(billValue.toString());
|
|
39
|
+
};
|
|
40
|
+
var youGetUSD = function (bond, inputValue) {
|
|
41
|
+
var _a;
|
|
42
|
+
var bigValue = new BigNumber(inputValue).times(new BigNumber(10).pow(18));
|
|
43
|
+
var billValue = bigValue.div(new BigNumber((_a = bond.trueBillPrice) !== null && _a !== void 0 ? _a : 0));
|
|
44
|
+
return (billValue.toNumber() * parseFloat(bond.payoutTokenPrice)).toString();
|
|
45
|
+
};
|
|
46
|
+
var premium = function (bond, inputValue) {
|
|
47
|
+
var premiumUSD = parseFloat(youGetUSD(bond, inputValue)) - parseFloat(youSpendUSD(bond, inputValue));
|
|
48
|
+
return formatUSDNumber(premiumUSD.toString());
|
|
49
|
+
};
|
|
50
|
+
var getPremiumColor = function (bond, inputValue) {
|
|
51
|
+
var getPremium = premium(bond, inputValue);
|
|
52
|
+
return parseFloat(getPremium) < 0 ? 'premium-negative' : 'premium-positive';
|
|
53
|
+
};
|
|
54
|
+
export { formatNumber, formatUSDNumber, youSpend, youSpendUSD, youGet, youGetUSD, premium, getPremiumColor };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** @jsxImportSource theme-ui */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { UserBill } from '../../../types/yourbonds';
|
|
4
|
+
import '../../../scss/YourBondsModal.scss';
|
|
5
|
+
declare const YourBondsModal: ({ isOpen, onClose, userBill }: {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
userBill: UserBill | undefined;
|
|
9
|
+
}) => React.JSX.Element | null;
|
|
10
|
+
export default YourBondsModal;
|
|
@@ -0,0 +1,184 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "theme-ui/jsx-runtime";
|
|
49
|
+
/** @jsxImportSource theme-ui */
|
|
50
|
+
import React, { useEffect, useState } from 'react';
|
|
51
|
+
import { Flex, Spinner } from 'theme-ui';
|
|
52
|
+
import { BigNumber } from 'bignumber.js';
|
|
53
|
+
import { AnimatePresence, motion } from 'framer-motion';
|
|
54
|
+
import { NETWORK_ICONS, NETWORK_LABEL } from '../../../config/constants/chains';
|
|
55
|
+
import { getBalanceNumber } from '../../../utils/getBalanceNumber';
|
|
56
|
+
import { getFirstNonZeroDigits } from '../../../utils/roundNumber';
|
|
57
|
+
import TokenImage from '../../uikit-sdk/TokenImage';
|
|
58
|
+
import { Button, ListTag, Skeleton, Svg, Text, TooltipBubble } from '../../uikit-sdk';
|
|
59
|
+
import { UserBillTooltipText } from '../../../enum/tooltips';
|
|
60
|
+
import { getPendingVesting } from '../../../hooks/usePendingVesting';
|
|
61
|
+
import { formatNumberSI } from '../../../utils/formatNumber';
|
|
62
|
+
import { StyledHeadingText, TraitsContentContainer } from './styles';
|
|
63
|
+
import '../../../scss/YourBondsModal.scss';
|
|
64
|
+
import { useChainId, useSwitchChain, useWaitForTransactionReceipt, useWriteContract } from 'wagmi';
|
|
65
|
+
import BOND_ABI from '../../../config/abi/bond.json';
|
|
66
|
+
var YourBondsModal = function (_a) {
|
|
67
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
68
|
+
var isOpen = _a.isOpen, onClose = _a.onClose, userBill = _a.userBill;
|
|
69
|
+
if (!isOpen)
|
|
70
|
+
return null;
|
|
71
|
+
var chainId = useChainId();
|
|
72
|
+
var _r = useSwitchChain(), chains = _r.chains, switchChain = _r.switchChain;
|
|
73
|
+
var _s = useWriteContract(), hash = _s.data, isPending = _s.isPending, writeContract = _s.writeContract, writeContractAsync = _s.writeContractAsync;
|
|
74
|
+
var _t = useWaitForTransactionReceipt({
|
|
75
|
+
confirmations: 4,
|
|
76
|
+
chainId: userBill === null || userBill === void 0 ? void 0 : userBill.bond.chainId,
|
|
77
|
+
hash: hash,
|
|
78
|
+
}), isConfirming = _t.isLoading, isConfirmed = _t.isSuccess;
|
|
79
|
+
var _u = useState(null), claimTx = _u[0], setClaimTx = _u[1];
|
|
80
|
+
var _v = useState(null), toastMessage = _v[0], setToastMessage = _v[1];
|
|
81
|
+
var handleClaim = function (billId, billAddress) { return __awaiter(void 0, void 0, void 0, function () {
|
|
82
|
+
var address, tx, error_1;
|
|
83
|
+
return __generator(this, function (_a) {
|
|
84
|
+
switch (_a.label) {
|
|
85
|
+
case 0:
|
|
86
|
+
address = billAddress;
|
|
87
|
+
_a.label = 1;
|
|
88
|
+
case 1:
|
|
89
|
+
_a.trys.push([1, 3, , 4]);
|
|
90
|
+
return [4 /*yield*/, writeContractAsync({
|
|
91
|
+
address: address,
|
|
92
|
+
abi: BOND_ABI,
|
|
93
|
+
functionName: 'redeem',
|
|
94
|
+
args: [billId],
|
|
95
|
+
})];
|
|
96
|
+
case 2:
|
|
97
|
+
tx = _a.sent();
|
|
98
|
+
if (tx) {
|
|
99
|
+
setClaimTx(tx);
|
|
100
|
+
}
|
|
101
|
+
return [3 /*break*/, 4];
|
|
102
|
+
case 3:
|
|
103
|
+
error_1 = _a.sent();
|
|
104
|
+
console.error('Approval failed:', error_1);
|
|
105
|
+
return [3 /*break*/, 4];
|
|
106
|
+
case 4: return [2 /*return*/];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}); };
|
|
110
|
+
// Confirmation message
|
|
111
|
+
useEffect(function () {
|
|
112
|
+
if (isConfirmed) {
|
|
113
|
+
setToastMessage("Transaction Complete.");
|
|
114
|
+
setTimeout(function () { return setToastMessage(null); }, 10000);
|
|
115
|
+
}
|
|
116
|
+
}, [claimTx, isConfirmed]);
|
|
117
|
+
// Functions to calculate display values for modal
|
|
118
|
+
var totalPending = function (userBill) {
|
|
119
|
+
var _a, _b, _c, _d;
|
|
120
|
+
return getBalanceNumber(new BigNumber((_a = userBill === null || userBill === void 0 ? void 0 : userBill.payout) !== null && _a !== void 0 ? _a : 0), (_d = (_c = (_b = userBill.bond.earnToken) === null || _b === void 0 ? void 0 : _b.decimals) === null || _c === void 0 ? void 0 : _c[chainId]) !== null && _d !== void 0 ? _d : 18);
|
|
121
|
+
};
|
|
122
|
+
var claimable = function (userBill) {
|
|
123
|
+
var _a, _b, _c;
|
|
124
|
+
return getBalanceNumber(new BigNumber(userBill.pendingRewards), (_c = (_b = (_a = userBill.bond.earnToken) === null || _a === void 0 ? void 0 : _a.decimals) === null || _b === void 0 ? void 0 : _b[chainId]) !== null && _c !== void 0 ? _c : 18);
|
|
125
|
+
};
|
|
126
|
+
var earnTokenPrice = function (bond) {
|
|
127
|
+
var _a;
|
|
128
|
+
return getFirstNonZeroDigits(parseFloat((_a = bond === null || bond === void 0 ? void 0 : bond.payoutTokenPrice) !== null && _a !== void 0 ? _a : '0'));
|
|
129
|
+
};
|
|
130
|
+
var BILL_ATTRIBUTES = ['The Legend', 'The Location', 'The Moment', 'The Trend', 'The Innovation'];
|
|
131
|
+
var _w = useState(false), isOpenTraits = _w[0], setIsOpenTraits = _w[1];
|
|
132
|
+
var attributes = (_c = (_b = userBill.nftData) === null || _b === void 0 ? void 0 : _b.data.attributes) === null || _c === void 0 ? void 0 : _c.filter(function (attrib) { return BILL_ATTRIBUTES.includes(attrib.trait_type); });
|
|
133
|
+
var _x = useState(false), isImageLoaded = _x[0], setIsImageLoaded = _x[1];
|
|
134
|
+
var _y = useState(null), imageSrc = _y[0], setImageSrc = _y[1];
|
|
135
|
+
useEffect(function () {
|
|
136
|
+
var loadImage = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
137
|
+
var image_1, error_2;
|
|
138
|
+
var _a;
|
|
139
|
+
return __generator(this, function (_b) {
|
|
140
|
+
switch (_b.label) {
|
|
141
|
+
case 0:
|
|
142
|
+
_b.trys.push([0, 2, , 3]);
|
|
143
|
+
image_1 = new Image();
|
|
144
|
+
image_1.src = (_a = userBill.nftData) === null || _a === void 0 ? void 0 : _a.data.image;
|
|
145
|
+
return [4 /*yield*/, new Promise(function (resolve, reject) {
|
|
146
|
+
image_1.onload = resolve;
|
|
147
|
+
image_1.onerror = reject;
|
|
148
|
+
})];
|
|
149
|
+
case 1:
|
|
150
|
+
_b.sent();
|
|
151
|
+
setImageSrc(image_1.src);
|
|
152
|
+
setIsImageLoaded(true);
|
|
153
|
+
return [3 /*break*/, 3];
|
|
154
|
+
case 2:
|
|
155
|
+
error_2 = _b.sent();
|
|
156
|
+
console.error('Error loading image:', error_2);
|
|
157
|
+
setIsImageLoaded(false);
|
|
158
|
+
return [3 /*break*/, 3];
|
|
159
|
+
case 3: return [2 /*return*/];
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
}); };
|
|
163
|
+
loadImage();
|
|
164
|
+
}, [userBill]);
|
|
165
|
+
return (_jsx(_Fragment, { children: _jsx(React.Fragment, { children: _jsx(Flex, __assign({ className: "yourbondsmodal-backdrop", onClick: onClose }, { children: !isImageLoaded ? (_jsxs(Flex, __assign({ className: "yourbondsmodal-spinner" }, { children: [" ", _jsx(Spinner, { size: 100 }), " "] })))
|
|
166
|
+
: (_jsxs(Flex, __assign({ className: "yourbondsmodal-content", onClick: function (event) { return event.stopPropagation(); } }, { children: [toastMessage && (_jsx(Flex, __assign({ className: "toast" }, { children: toastMessage }))), _jsx(Flex, __assign({ className: "yourbondsmodal-header" }, { children: _jsx(Flex, __assign({ className: "svg-close", onClick: onClose }, { children: _jsx(Svg, { icon: "close" }) })) })), _jsxs(Flex, __assign({ className: "yourbondsmodal table-container" }, { children: [_jsx(Flex, __assign({ className: "yourbondsmodal bondimage" }, { children: _jsx("img", { src: imageSrc, style: { display: isImageLoaded ? "block" : "none" } }) })), _jsxs(Flex, __assign({ className: "yourbondsmodal yourbondinfo" }, { children: [_jsxs(Flex, __assign({ className: "yourbondinfo title-container" }, { children: [_jsx(Flex, __assign({ className: "title-container bondicon" }, { children: _jsxs("div", __assign({ className: "icon-container" }, { children: [_jsx(Svg, { width: 18, height: 18, icon: (_d = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[userBill.bond.chainId]) !== null && _d !== void 0 ? _d : 'question' }), _jsx(TokenImage, { symbol: (_e = userBill.bond.showcaseTokenName) !== null && _e !== void 0 ? _e : userBill.bond.earnToken.symbol, size: 40 })] })) })), _jsx(Flex, __assign({ className: "title-container tokenname" }, { children: _jsx(StyledHeadingText, { children: (_f = userBill.bond) === null || _f === void 0 ? void 0 : _f.showcaseTokenName }) })), _jsx(Flex, __assign({ className: "title-container tokentags" }, { children: (_g = userBill.bond.tags) === null || _g === void 0 ? void 0 : _g.slice(0, 1).map(function (tag) {
|
|
167
|
+
return (_jsx(Flex, __assign({ sx: { marginRight: '10px' } }, { children: _jsx(ListTag, { variant: tag === 'Cex Fund' ? 'cex_fund' : 'liquidity', text: tag === null || tag === void 0 ? void 0 : tag.toUpperCase() }) }), tag));
|
|
168
|
+
}) })), _jsxs(Text, __assign({ sx: { color: 'text', opacity: '0.6', fontSize: ['12px', '12px', '12px', '16px'] } }, { children: ["#", userBill.id] }))] })), _jsxs(Flex, __assign({ className: "yourbondinfo blocks-container" }, { children: [_jsxs(Flex, __assign({ className: "attributes-container" }, { children: [_jsxs(Flex, __assign({ className: "attributes-header", sx: { borderRadius: "".concat(isOpenTraits ? '6px 6px 0px 0px' : 'normal'),
|
|
169
|
+
display: ['none', 'none', 'none', 'flex'] }, onClick: function () { return setIsOpenTraits(!isOpenTraits); } }, { children: [_jsxs(Flex, __assign({ sx: { gap: '10px', alignItems: 'center' } }, { children: [_jsx(Svg, { icon: "tag", direction: "down" }), _jsx(Text, __assign({ sx: { fontSize: '12px', fontWeight: 400, color: 'text', opacity: '0.6' } }, { children: "Traits" }))] })), _jsx(Svg, { icon: "caret", direction: isOpenTraits ? 'up' : 'down' })] })), _jsx(AnimatePresence, { children: isOpenTraits && (_jsx(motion.div, __assign({ initial: { height: 0 }, animate: { height: 'fit-content' }, transition: { opacity: { duration: 0.2 } }, exit: { height: 0 }, sx: { overflow: 'hidden', width: '100%' } }, { children: _jsx(Flex, __assign({ sx: { flexDirection: 'column', gap: '1px' } }, { children: attributes
|
|
170
|
+
? attributes.map(function (a) { return (_jsxs(TraitsContentContainer, { children: [_jsx(Text, __assign({ sx: { fontSize: '10px', fontWeight: 500 } }, { children: a === null || a === void 0 ? void 0 : a.trait_type })), _jsx(Text, __assign({ sx: { fontSize: '10px', fontWeight: 500 } }, { children: a === null || a === void 0 ? void 0 : a.value }))] }, a.value)); })
|
|
171
|
+
: BILL_ATTRIBUTES.map(function (attrib) {
|
|
172
|
+
return (_jsxs(TraitsContentContainer, { children: [_jsx(Text, __assign({ sx: { fontSize: '10px', fontWeight: 500 } }, { children: attrib })), _jsx(Skeleton, { width: "150px" })] }, attrib));
|
|
173
|
+
}) })) }))) })] })), _jsxs(Flex, __assign({ className: "yourbondinfo-block row-vested" }, { children: [_jsxs(Flex, __assign({ className: "yourbondinfo-block header" }, { children: [_jsx(Flex, __assign({ className: "yourbondinfo-block header-title" }, { children: "Fully Vested" })), _jsx(Flex, __assign({ className: "yourbondinfo-block header-tooltip" }, { children: _jsx(TooltipBubble, __assign({ className: "tooltip-bubble", body: _jsx(Flex, { children: UserBillTooltipText.FullyVested }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) })) }))] })), _jsxs(Flex, __assign({ className: "yourbondinfo-block info" }, { children: [_jsx(Flex, { className: "block-info icon" }), _jsx(Flex, __assign({ className: "block-info text" }, { children: _jsx(Text, __assign({ sx: { fontSize: ['12px', '12px', '12px', '19px'], fontWeight: 700 } }, { children: getPendingVesting((_h = userBill.lastBlockTimestamp) !== null && _h !== void 0 ? _h : '', (_j = userBill.vesting) !== null && _j !== void 0 ? _j : '') })) }))] }))] })), _jsxs(Flex, __assign({ className: "yourbondinfo-block row-pending" }, { children: [_jsxs(Flex, __assign({ className: "yourbondinfo-block header" }, { children: [_jsx(Flex, __assign({ className: "yourbondinfo-block header-title" }, { children: "Pending" })), _jsx(Flex, __assign({ className: "yourbondinfo-block header-tooltip" }, { children: _jsx(TooltipBubble, __assign({ className: "tooltip-bubble", body: _jsx(Flex, { children: UserBillTooltipText.Pending }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) })) }))] })), _jsxs(Flex, __assign({ className: "yourbondinfo-block info" }, { children: [_jsx(Flex, __assign({ className: "block-info icon" }, { children: _jsxs("div", __assign({ className: "icon-container-small" }, { children: [_jsx(Svg, { width: 10, height: 10, icon: (_k = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[userBill.bond.chainId]) !== null && _k !== void 0 ? _k : 'question' }), _jsx(TokenImage, { symbol: (_l = userBill.bond.showcaseTokenName) !== null && _l !== void 0 ? _l : userBill.bond.earnToken.symbol, size: 25 })] })) })), _jsxs(Flex, __assign({ className: "block-info text" }, { children: [_jsx(Text, __assign({ sx: { fontSize: ['12px', '12px', '12px', '19px'], fontWeight: 700 } }, { children: formatNumberSI(parseFloat(totalPending(userBill).toFixed(4)), 4) })), _jsx(Text, __assign({ sx: { fontSize: ['10px', '10px', '10px', '12px'], fontWeight: [500, 500, 500, 400], paddingLeft: '10px' } }, { children: "($".concat((totalPending(userBill) * ((_m = parseFloat(earnTokenPrice(userBill.bond))) !== null && _m !== void 0 ? _m : 0)).toFixed(2), ")") }))] }))] }))] })), _jsxs(Flex, __assign({ className: "yourbondinfo-block row-claimable" }, { children: [_jsxs(Flex, __assign({ className: "yourbondinfo-block header" }, { children: [_jsx(Flex, __assign({ className: "yourbondinfo-block header-title" }, { children: "Claimable" })), _jsx(Flex, __assign({ className: "yourbondinfo-block header-tooltip" }, { children: _jsx(TooltipBubble, __assign({ className: "tooltip-bubble", body: _jsx(Flex, { children: UserBillTooltipText.Claimable }), width: "230px", placement: "bottomLeft", transformTip: "translate(-5%, -5%)" }, { children: _jsx(Flex, __assign({ className: "block-header icon" }, { children: _jsx(Svg, { icon: "questionCircle", width: "12px" }) })) })) }))] })), _jsxs(Flex, __assign({ className: "yourbondinfo-block info" }, { children: [_jsx(Flex, __assign({ className: "block-info icon" }, { children: _jsxs("div", __assign({ className: "icon-container-small" }, { children: [_jsx(Svg, { width: 10, height: 10, icon: (_o = NETWORK_ICONS === null || NETWORK_ICONS === void 0 ? void 0 : NETWORK_ICONS[userBill.bond.chainId]) !== null && _o !== void 0 ? _o : 'question' }), _jsx(TokenImage, { symbol: (_p = userBill.bond.showcaseTokenName) !== null && _p !== void 0 ? _p : userBill.bond.earnToken.symbol, size: 25 })] })) })), _jsxs(Flex, __assign({ className: "block-info text" }, { children: [_jsx(Text, __assign({ sx: { fontSize: ['12px', '12px', '12px', '19px'], fontWeight: 700 } }, { children: formatNumberSI(parseFloat(claimable(userBill).toFixed(4)), 4) })), _jsx(Text, __assign({ sx: { fontSize: ['10px', '10px', '10px', '12px'], fontWeight: [500, 500, 500, 400], paddingLeft: '10px' } }, { children: "($".concat((claimable(userBill) * ((_q = parseFloat(earnTokenPrice(userBill.bond))) !== null && _q !== void 0 ? _q : 0)).toFixed(2), ")") }))] }))] }))] }))] })), _jsxs(Flex, __assign({ className: "yourbondinfo button-container" }, { children: [_jsx(Flex, __assign({ className: "button-container claim" }, { children: chainId !== (userBill === null || userBill === void 0 ? void 0 : userBill.bond.chainId) ?
|
|
174
|
+
_jsxs(Button, __assign({ className: "switch-button", disabled: claimable(userBill) === 0 || isPending, onClick: function (event) {
|
|
175
|
+
event.stopPropagation();
|
|
176
|
+
switchChain({ chainId: userBill.bond.chainId });
|
|
177
|
+
} }, { children: ["Switch to ", NETWORK_LABEL[userBill.bond.chainId]] }))
|
|
178
|
+
:
|
|
179
|
+
_jsx(Button, __assign({ className: "claim-button", disabled: claimable(userBill) === 0 || isPending, onClick: function (event) {
|
|
180
|
+
event.stopPropagation();
|
|
181
|
+
handleClaim(userBill.id, userBill.address);
|
|
182
|
+
} }, { children: "Claim" })) })), _jsx(Flex, __assign({ className: "button-container transfer" }, { children: _jsx(Button, __assign({ className: "transfer-button", variant: "secondary", disabled: true, onClick: function () { window.open('https://ape.bond/swap', '_blank'); } }, { children: "TRANSFER" })) }))] }))] }))] }))] }))) })) }, userBill.address) }));
|
|
183
|
+
};
|
|
184
|
+
export default YourBondsModal;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import styled from "@emotion/styled";
|
|
6
|
+
import { Flex, Text } from "../../uikit-sdk";
|
|
7
|
+
export var StyledHeadingText = styled(Text)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: 12px;\n align-self: center;\n @media screen and (min-width: 1180px) {\n font-size: 22px;\n }\n"], ["\n font-size: 12px;\n align-self: center;\n @media screen and (min-width: 1180px) {\n font-size: 22px;\n }\n"])));
|
|
8
|
+
export var TraitsContentContainer = styled(Flex)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n justify-content: space-between;\n background: ", ";\n padding: 0px 15px;\n &:last-child {\n border-radius: 0px 0px 6px 6px;\n }\n @media screen and (max-width: 667px) {\n :first-of-type {\n border-radius: 6px 6px 0px 0px;\n }\n }\n"], ["\n justify-content: space-between;\n background: ", ";\n padding: 0px 15px;\n &:last-child {\n border-radius: 0px 0px 6px 6px;\n }\n @media screen and (max-width: 667px) {\n :first-of-type {\n border-radius: 6px 6px 0px 0px;\n }\n }\n"])), function (_a) {
|
|
9
|
+
var theme = _a.theme;
|
|
10
|
+
return theme.colors.white4;
|
|
11
|
+
});
|
|
12
|
+
var templateObject_1, templateObject_2;
|