From be29bcaeb1b67bcba61950c855298e772421595e Mon Sep 17 00:00:00 2001 From: Trajan0x Date: Thu, 18 May 2023 16:45:07 +0100 Subject: [PATCH] renames --- packages/explorer-ui/apollo-client.ts | 1 + .../BridgeTransactionTable.js | 107 ---------- .../BridgeTransactionTable.ts | 149 ++++++++++++++ .../{ChartFull.js => ChartFull.tsx} | 0 .../ChainChart/{index.js => index.tsx} | 0 .../components/Chart/{index.js => index.ts} | 15 ++ .../explorer-ui/components/ContainerCard.js | 50 ----- .../explorer-ui/components/ContainerCard.ts | 65 ++++++ .../CopyButtonIcon/{index.js => index.tsx} | 0 .../explorer-ui/components/Error/index.js | 26 --- .../explorer-ui/components/Error/index.ts | 39 ++++ .../GetCsvButton/{index.js => index.tsx} | 0 .../components/Pagination/index.js | 37 ---- .../components/Pagination/index.ts | 55 +++++ .../{ScrollToTop.js => ScrollToTop.ts} | 0 .../{Table.stories.js => Table.stories.tsx} | 0 .../TransactionTable/{Table.js => Table.ts} | 8 + ...eBody.stories.js => TableBody.stories.tsx} | 0 .../{TableBody.js => TableBody.ts} | 2 + .../TransactionTable/TableHeader.js | 16 -- ...der.stories.js => TableHeader.stories.tsx} | 0 .../TransactionTable/TableHeader.ts | 22 ++ ...bleRow.stories.js => TableRow.stories.tsx} | 0 .../{TableRow.js => TableRow.ts} | 3 + .../explorer-ui/components/icons/ArrowIcon.js | 17 -- .../explorer-ui/components/icons/ArrowIcon.ts | 27 +++ .../icons/{BridgeIcon.js => BridgeIcon.ts} | 18 ++ .../components/icons/ChartBarIcon.js | 20 -- .../components/icons/ChartBarIcon.ts | 31 +++ .../components/icons/ChartPieIcon.js | 25 --- .../components/icons/ChartPieIcon.ts | 41 ++++ .../explorer-ui/components/icons/ClockIcon.js | 18 -- .../explorer-ui/components/icons/ClockIcon.ts | 29 +++ .../explorer-ui/components/icons/CloseIcon.js | 18 -- .../explorer-ui/components/icons/CloseIcon.ts | 29 +++ ...nityHappyIcon.js => CommunityHappyIcon.ts} | 18 ++ .../components/icons/ContractsIcon.js | 18 -- .../components/icons/ContractsIcon.ts | 29 +++ .../explorer-ui/components/icons/CopyIcon.js | 17 -- .../explorer-ui/components/icons/CopyIcon.ts | 26 +++ .../icons/{DiscordIcon.js => DiscordIcon.ts} | 5 + .../icons/{DocsIcon.js => DocsIcon.ts} | 0 .../components/icons/DollarIcon.js | 18 -- .../components/icons/DollarIcon.ts | 29 +++ .../icons/{EarningIcon.js => EarningIcon.ts} | 21 ++ .../components/icons/ExternalLinkIcon.js | 18 -- .../components/icons/ExternalLinkIcon.ts | 27 +++ .../explorer-ui/components/icons/ForumIcon.js | 17 -- .../explorer-ui/components/icons/ForumIcon.ts | 27 +++ .../icons/{GitHubIcon.js => GitHubIcon.ts} | 5 + .../icons/{HomeIcon.js => HomeIcon.ts} | 6 + .../explorer-ui/components/icons/InfoIcon.js | 15 -- .../explorer-ui/components/icons/InfoIcon.ts | 23 +++ .../components/icons/MigrateIcon.js | 13 -- .../components/icons/MigrateIcon.ts | 16 ++ .../explorer-ui/components/icons/MinusIcon.js | 17 -- .../explorer-ui/components/icons/MinusIcon.ts | 27 +++ .../components/icons/NarrowArrowIcon.js | 17 -- .../components/icons/NarrowArrowIcon.ts | 27 +++ .../{NerveLogoSvg.js => NerveLogoSvg.ts} | 71 +++++++ .../explorer-ui/components/icons/PlusIcon.js | 17 -- .../explorer-ui/components/icons/PlusIcon.ts | 27 +++ .../explorer-ui/components/icons/PoolsIcon.js | 18 -- .../explorer-ui/components/icons/PoolsIcon.ts | 29 +++ .../icons/{SavingIcon.js => SavingIcon.ts} | 18 ++ .../explorer-ui/components/icons/StackIcon.js | 18 -- .../explorer-ui/components/icons/StackIcon.ts | 29 +++ .../explorer-ui/components/icons/StakeIcon.js | 18 -- .../explorer-ui/components/icons/StakeIcon.ts | 29 +++ .../explorer-ui/components/icons/SwapIcon.js | 19 -- .../explorer-ui/components/icons/SwapIcon.ts | 30 +++ .../{SynapseLogoSvg.js => SynapseLogoSvg.ts} | 65 ++++++ .../{TelegramIcon.js => TelegramIcon.ts} | 2 + .../icons/{TwitterIcon.js => TwitterIcon.ts} | 2 + .../{CloseButton.js => CloseButton.ts} | 4 + .../{MoreButton.js => MoreButton.ts} | 9 + .../{PageFooter.js => PageFooter.ts} | 23 +++ .../layouts/MainLayout/SynapseLogoSvg.js | 107 ---------- .../layouts/MainLayout/SynapseLogoSvg.ts | 188 ++++++++++++++++++ .../{TopBarNavLink.js => TopBarNavLink.ts} | 6 + ...workSection.js => WalletNetworkSection.ts} | 0 .../MainLayout/{index.js => index.tsx} | 0 ...eContainer.js => StandardPageContainer.ts} | 7 + .../misc/{AssetImage.js => AssetImage.ts} | 7 + .../misc/{ChainImage.js => ChainImage.ts} | 5 + .../misc/{ChainInfo.js => ChainInfo.ts} | 21 ++ .../misc/{CopyTitle.js => CopyTitle.tsx} | 0 .../{HolisticStats.js => HolisticStats.tsx} | 0 .../components/misc/HorizontalDivider.js | 8 - .../components/misc/HorizontalDivider.ts | 11 + .../{IconAndAmount.js => IconAndAmount.ts} | 8 + .../explorer-ui/components/misc/InfoBlock.js | 13 -- .../explorer-ui/components/misc/InfoBlock.ts | 19 ++ .../explorer-ui/components/misc/MostActive.js | 61 ------ .../explorer-ui/components/misc/MostActive.ts | 83 ++++++++ .../misc/{PageLink.js => PageLink.ts} | 8 + .../components/misc/StatusIndicators.js | 60 ------ .../components/misc/StatusIndicators.ts | 86 ++++++++ .../misc/{StyleAddress.js => StyleAddress.ts} | 5 + .../misc/{StyleHash.js => StyleHash.ts} | 8 + ...dChainAndLink.js => StyledChainAndLink.ts} | 4 + .../misc/{TokenOnChain.js => TokenOnChain.ts} | 9 + .../misc/{ToolTip.js => ToolTip.ts} | 34 ++++ .../pages/Home/{Stats.js => Stats.tsx} | 0 .../{SearchBox.js => SearchBox.ts} | 10 + .../UniversalSearch/{index.js => index.tsx} | 0 .../pages/Home/{index.js => index.tsx} | 0 .../{AddressRanking.js => AddressRanking.ts} | 5 + .../{LeaderCard.js => LeaderCard.ts} | 25 +++ .../{TopChains.js => TopChains.tsx} | 0 .../{TopTokens.js => TopTokens.tsx} | 0 .../{constants.js => constants.ts} | 0 .../components/pages/Leaderboard/index.js | 34 ---- .../components/pages/Leaderboard/index.ts | 50 +++++ .../tailwind/{Button.js => Button.ts} | 6 + .../components/tailwind/{Card.js => Card.ts} | 5 + .../components/tailwind/{Col.js => Col.ts} | 1 + .../components/tailwind/{Grid.js => Grid.ts} | 1 + .../components/tailwind/LoadingSpinner.js | 23 --- .../components/tailwind/LoadingSpinner.ts | 38 ++++ .../tailwind/{Modal.js => Modal.tsx} | 0 .../{ModalHeadline.js => ModalHeadline.ts} | 9 + .../tailwind/{TabItem.js => TabItem.ts} | 4 + .../explorer-ui/components/tailwind/Table.js | 7 - .../explorer-ui/components/tailwind/Table.ts | 9 + .../tailwind/{TableBody.js => TableBody.ts} | 1 + .../components/tailwind/TableCell.js | 10 - .../components/tailwind/TableCell.ts | 15 ++ .../{TableHeader.js => TableHeader.ts} | 2 + ...{TableHeaderCell.js => TableHeaderCell.ts} | 3 + .../explorer-ui/components/tailwind/Tabs.js | 9 - .../explorer-ui/components/tailwind/Tabs.ts | 11 + .../tailwind/{Tooltip.js => Tooltip.tsx} | 0 .../constants/{index.js => index.ts} | 0 .../constants/{networks.js => networks.ts} | 0 .../constants/tokens/{basic.js => basic.ts} | 85 +++++--- .../tokens/{mintable.js => mintable.ts} | 152 +++++++------- .../{craco.config.js => craco.config.ts} | 1 + .../{apollo-client.js => apollo-client.ts} | 0 .../graphql/{index.js => index.ts} | 0 .../graphql/queries/{index.js => index.ts} | 0 .../{next.config.js => next.config.ts} | 0 packages/explorer-ui/pages/_app.js | 16 -- packages/explorer-ui/pages/_app.ts | 19 ++ .../address/{[address].js => [address].tsx} | 0 .../chain/{[chainId].js => [chainId].tsx} | 0 .../explorer-ui/pages/{index.js => index.ts} | 2 + .../pages/privacy/{index.js => index.ts} | 28 +++ .../pages/terms/{index.js => index.ts} | 61 ++++++ .../{[tokenAddress].js => [tokenAddress].tsx} | 0 .../pages/tx/{[kappa].js => [kappa].ts} | 99 +++++++++ .../pages/txs/{index.js => index.tsx} | 0 .../{postcss.config.js => postcss.config.ts} | 0 packages/explorer-ui/public/_document.js | 20 -- packages/explorer-ui/public/_document.ts | 29 +++ ...{tailwind.config.js => tailwind.config.ts} | 2 + ...{addressToSymbol.js => addressToSymbol.ts} | 0 ...inAutocomplete.js => chainAutocomplete.ts} | 0 .../utils/{checksum.js => checksum.ts} | 0 .../utils/classes/{Token.js => Token.ts} | 23 +++ ...{ellipsizeString.js => ellipsizeString.ts} | 0 packages/explorer-ui/utils/fetcher.js | 1 - packages/explorer-ui/utils/fetcher.ts | 2 + .../{formatAmount.js => formatAmount.ts} | 0 .../utils/{formatDate.js => formatDate.ts} | 0 .../utils/{formatUSD.js => formatUSD.ts} | 0 .../math/{statistics.js => statistics.ts} | 0 .../utils/styles/{coins.js => coins.ts} | 1 + .../styles/{muiStyles.js => muiStyles.ts} | 0 .../utils/styles/{networks.js => networks.ts} | 0 .../utils/{timeAgo.js => timeAgo.ts} | 0 .../utils/{toHexStr.js => toHexStr.ts} | 0 ...CString.js => unixTimestampToUTCString.ts} | 0 .../utils/urls/{index.js => index.ts} | 0 ...eAddress.js => validateAndParseAddress.ts} | 0 ...ndParseHash.js => validateAndParseHash.ts} | 0 176 files changed, 2267 insertions(+), 1042 deletions(-) delete mode 100644 packages/explorer-ui/components/BridgeTransaction/BridgeTransactionTable.js create mode 100644 packages/explorer-ui/components/BridgeTransaction/BridgeTransactionTable.ts rename packages/explorer-ui/components/ChainChart/{ChartFull.js => ChartFull.tsx} (100%) rename packages/explorer-ui/components/ChainChart/{index.js => index.tsx} (100%) rename packages/explorer-ui/components/Chart/{index.js => index.ts} (65%) delete mode 100644 packages/explorer-ui/components/ContainerCard.js create mode 100644 packages/explorer-ui/components/ContainerCard.ts rename packages/explorer-ui/components/CopyButtonIcon/{index.js => index.tsx} (100%) delete mode 100644 packages/explorer-ui/components/Error/index.js create mode 100644 packages/explorer-ui/components/Error/index.ts rename packages/explorer-ui/components/GetCsvButton/{index.js => index.tsx} (100%) delete mode 100644 packages/explorer-ui/components/Pagination/index.js create mode 100644 packages/explorer-ui/components/Pagination/index.ts rename packages/explorer-ui/components/{ScrollToTop.js => ScrollToTop.ts} (100%) rename packages/explorer-ui/components/TransactionTable/{Table.stories.js => Table.stories.tsx} (100%) rename packages/explorer-ui/components/TransactionTable/{Table.js => Table.ts} (53%) rename packages/explorer-ui/components/TransactionTable/{TableBody.stories.js => TableBody.stories.tsx} (100%) rename packages/explorer-ui/components/TransactionTable/{TableBody.js => TableBody.ts} (54%) delete mode 100644 packages/explorer-ui/components/TransactionTable/TableHeader.js rename packages/explorer-ui/components/TransactionTable/{TableHeader.stories.js => TableHeader.stories.tsx} (100%) create mode 100644 packages/explorer-ui/components/TransactionTable/TableHeader.ts rename packages/explorer-ui/components/TransactionTable/{TableRow.stories.js => TableRow.stories.tsx} (100%) rename packages/explorer-ui/components/TransactionTable/{TableRow.js => TableRow.ts} (86%) delete mode 100644 packages/explorer-ui/components/icons/ArrowIcon.js create mode 100644 packages/explorer-ui/components/icons/ArrowIcon.ts rename packages/explorer-ui/components/icons/{BridgeIcon.js => BridgeIcon.ts} (76%) delete mode 100644 packages/explorer-ui/components/icons/ChartBarIcon.js create mode 100644 packages/explorer-ui/components/icons/ChartBarIcon.ts delete mode 100644 packages/explorer-ui/components/icons/ChartPieIcon.js create mode 100644 packages/explorer-ui/components/icons/ChartPieIcon.ts delete mode 100644 packages/explorer-ui/components/icons/ClockIcon.js create mode 100644 packages/explorer-ui/components/icons/ClockIcon.ts delete mode 100644 packages/explorer-ui/components/icons/CloseIcon.js create mode 100644 packages/explorer-ui/components/icons/CloseIcon.ts rename packages/explorer-ui/components/icons/{CommunityHappyIcon.js => CommunityHappyIcon.ts} (82%) delete mode 100644 packages/explorer-ui/components/icons/ContractsIcon.js create mode 100644 packages/explorer-ui/components/icons/ContractsIcon.ts delete mode 100644 packages/explorer-ui/components/icons/CopyIcon.js create mode 100644 packages/explorer-ui/components/icons/CopyIcon.ts rename packages/explorer-ui/components/icons/{DiscordIcon.js => DiscordIcon.ts} (79%) rename packages/explorer-ui/components/icons/{DocsIcon.js => DocsIcon.ts} (100%) delete mode 100644 packages/explorer-ui/components/icons/DollarIcon.js create mode 100644 packages/explorer-ui/components/icons/DollarIcon.ts rename packages/explorer-ui/components/icons/{EarningIcon.js => EarningIcon.ts} (62%) delete mode 100644 packages/explorer-ui/components/icons/ExternalLinkIcon.js create mode 100644 packages/explorer-ui/components/icons/ExternalLinkIcon.ts delete mode 100644 packages/explorer-ui/components/icons/ForumIcon.js create mode 100644 packages/explorer-ui/components/icons/ForumIcon.ts rename packages/explorer-ui/components/icons/{GitHubIcon.js => GitHubIcon.ts} (75%) rename packages/explorer-ui/components/icons/{HomeIcon.js => HomeIcon.ts} (53%) delete mode 100644 packages/explorer-ui/components/icons/InfoIcon.js create mode 100644 packages/explorer-ui/components/icons/InfoIcon.ts delete mode 100644 packages/explorer-ui/components/icons/MigrateIcon.js create mode 100644 packages/explorer-ui/components/icons/MigrateIcon.ts delete mode 100644 packages/explorer-ui/components/icons/MinusIcon.js create mode 100644 packages/explorer-ui/components/icons/MinusIcon.ts delete mode 100644 packages/explorer-ui/components/icons/NarrowArrowIcon.js create mode 100644 packages/explorer-ui/components/icons/NarrowArrowIcon.ts rename packages/explorer-ui/components/icons/{NerveLogoSvg.js => NerveLogoSvg.ts} (73%) delete mode 100644 packages/explorer-ui/components/icons/PlusIcon.js create mode 100644 packages/explorer-ui/components/icons/PlusIcon.ts delete mode 100644 packages/explorer-ui/components/icons/PoolsIcon.js create mode 100644 packages/explorer-ui/components/icons/PoolsIcon.ts rename packages/explorer-ui/components/icons/{SavingIcon.js => SavingIcon.ts} (66%) delete mode 100644 packages/explorer-ui/components/icons/StackIcon.js create mode 100644 packages/explorer-ui/components/icons/StackIcon.ts delete mode 100644 packages/explorer-ui/components/icons/StakeIcon.js create mode 100644 packages/explorer-ui/components/icons/StakeIcon.ts delete mode 100644 packages/explorer-ui/components/icons/SwapIcon.js create mode 100644 packages/explorer-ui/components/icons/SwapIcon.ts rename packages/explorer-ui/components/icons/{SynapseLogoSvg.js => SynapseLogoSvg.ts} (73%) rename packages/explorer-ui/components/icons/{TelegramIcon.js => TelegramIcon.ts} (81%) rename packages/explorer-ui/components/icons/{TwitterIcon.js => TwitterIcon.ts} (82%) rename packages/explorer-ui/components/layouts/MainLayout/{CloseButton.js => CloseButton.ts} (73%) rename packages/explorer-ui/components/layouts/MainLayout/{MoreButton.js => MoreButton.ts} (50%) rename packages/explorer-ui/components/layouts/MainLayout/{PageFooter.js => PageFooter.ts} (63%) delete mode 100644 packages/explorer-ui/components/layouts/MainLayout/SynapseLogoSvg.js create mode 100644 packages/explorer-ui/components/layouts/MainLayout/SynapseLogoSvg.ts rename packages/explorer-ui/components/layouts/MainLayout/{TopBarNavLink.js => TopBarNavLink.ts} (73%) rename packages/explorer-ui/components/layouts/MainLayout/{WalletNetworkSection.js => WalletNetworkSection.ts} (100%) rename packages/explorer-ui/components/layouts/MainLayout/{index.js => index.tsx} (100%) rename packages/explorer-ui/components/layouts/{StandardPageContainer.js => StandardPageContainer.ts} (57%) rename packages/explorer-ui/components/misc/{AssetImage.js => AssetImage.ts} (60%) rename packages/explorer-ui/components/misc/{ChainImage.js => ChainImage.ts} (60%) rename packages/explorer-ui/components/misc/{ChainInfo.js => ChainInfo.ts} (51%) rename packages/explorer-ui/components/misc/{CopyTitle.js => CopyTitle.tsx} (100%) rename packages/explorer-ui/components/misc/{HolisticStats.js => HolisticStats.tsx} (100%) delete mode 100644 packages/explorer-ui/components/misc/HorizontalDivider.js create mode 100644 packages/explorer-ui/components/misc/HorizontalDivider.ts rename packages/explorer-ui/components/misc/{IconAndAmount.js => IconAndAmount.ts} (73%) delete mode 100644 packages/explorer-ui/components/misc/InfoBlock.js create mode 100644 packages/explorer-ui/components/misc/InfoBlock.ts delete mode 100644 packages/explorer-ui/components/misc/MostActive.js create mode 100644 packages/explorer-ui/components/misc/MostActive.ts rename packages/explorer-ui/components/misc/{PageLink.js => PageLink.ts} (53%) delete mode 100644 packages/explorer-ui/components/misc/StatusIndicators.js create mode 100644 packages/explorer-ui/components/misc/StatusIndicators.ts rename packages/explorer-ui/components/misc/{StyleAddress.js => StyleAddress.ts} (55%) rename packages/explorer-ui/components/misc/{StyleHash.js => StyleHash.ts} (51%) rename packages/explorer-ui/components/misc/{StyledChainAndLink.js => StyledChainAndLink.ts} (54%) rename packages/explorer-ui/components/misc/{TokenOnChain.js => TokenOnChain.ts} (58%) rename packages/explorer-ui/components/misc/{ToolTip.js => ToolTip.ts} (59%) rename packages/explorer-ui/components/pages/Home/{Stats.js => Stats.tsx} (100%) rename packages/explorer-ui/components/pages/Home/UniversalSearch/{SearchBox.js => SearchBox.ts} (54%) rename packages/explorer-ui/components/pages/Home/UniversalSearch/{index.js => index.tsx} (100%) rename packages/explorer-ui/components/pages/Home/{index.js => index.tsx} (100%) rename packages/explorer-ui/components/pages/Leaderboard/{AddressRanking.js => AddressRanking.ts} (69%) rename packages/explorer-ui/components/pages/Leaderboard/{LeaderCard.js => LeaderCard.ts} (58%) rename packages/explorer-ui/components/pages/Leaderboard/{TopChains.js => TopChains.tsx} (100%) rename packages/explorer-ui/components/pages/Leaderboard/{TopTokens.js => TopTokens.tsx} (100%) rename packages/explorer-ui/components/pages/Leaderboard/{constants.js => constants.ts} (100%) delete mode 100644 packages/explorer-ui/components/pages/Leaderboard/index.js create mode 100644 packages/explorer-ui/components/pages/Leaderboard/index.ts rename packages/explorer-ui/components/tailwind/{Button.js => Button.ts} (72%) rename packages/explorer-ui/components/tailwind/{Card.js => Card.ts} (61%) rename packages/explorer-ui/components/tailwind/{Col.js => Col.ts} (97%) rename packages/explorer-ui/components/tailwind/{Grid.js => Grid.ts} (97%) delete mode 100644 packages/explorer-ui/components/tailwind/LoadingSpinner.js create mode 100644 packages/explorer-ui/components/tailwind/LoadingSpinner.ts rename packages/explorer-ui/components/tailwind/{Modal.js => Modal.tsx} (100%) rename packages/explorer-ui/components/tailwind/{ModalHeadline.js => ModalHeadline.ts} (58%) rename packages/explorer-ui/components/tailwind/{TabItem.js => TabItem.ts} (63%) delete mode 100644 packages/explorer-ui/components/tailwind/Table.js create mode 100644 packages/explorer-ui/components/tailwind/Table.ts rename packages/explorer-ui/components/tailwind/{TableBody.js => TableBody.ts} (61%) delete mode 100644 packages/explorer-ui/components/tailwind/TableCell.js create mode 100644 packages/explorer-ui/components/tailwind/TableCell.ts rename packages/explorer-ui/components/tailwind/{TableHeader.js => TableHeader.ts} (54%) rename packages/explorer-ui/components/tailwind/{TableHeaderCell.js => TableHeaderCell.ts} (55%) delete mode 100644 packages/explorer-ui/components/tailwind/Tabs.js create mode 100644 packages/explorer-ui/components/tailwind/Tabs.ts rename packages/explorer-ui/components/tailwind/{Tooltip.js => Tooltip.tsx} (100%) rename packages/explorer-ui/constants/{index.js => index.ts} (100%) rename packages/explorer-ui/constants/{networks.js => networks.ts} (100%) rename packages/explorer-ui/constants/tokens/{basic.js => basic.ts} (81%) rename packages/explorer-ui/constants/tokens/{mintable.js => mintable.ts} (70%) rename packages/explorer-ui/{craco.config.js => craco.config.ts} (74%) rename packages/explorer-ui/graphql/{apollo-client.js => apollo-client.ts} (100%) rename packages/explorer-ui/graphql/{index.js => index.ts} (100%) rename packages/explorer-ui/graphql/queries/{index.js => index.ts} (100%) rename packages/explorer-ui/{next.config.js => next.config.ts} (100%) delete mode 100644 packages/explorer-ui/pages/_app.js create mode 100644 packages/explorer-ui/pages/_app.ts rename packages/explorer-ui/pages/address/{[address].js => [address].tsx} (100%) rename packages/explorer-ui/pages/chain/{[chainId].js => [chainId].tsx} (100%) rename packages/explorer-ui/pages/{index.js => index.ts} (68%) rename packages/explorer-ui/pages/privacy/{index.js => index.ts} (76%) rename packages/explorer-ui/pages/terms/{index.js => index.ts} (84%) rename packages/explorer-ui/pages/token/{[tokenAddress].js => [tokenAddress].tsx} (100%) rename packages/explorer-ui/pages/tx/{[kappa].js => [kappa].ts} (53%) rename packages/explorer-ui/pages/txs/{index.js => index.tsx} (100%) rename packages/explorer-ui/{postcss.config.js => postcss.config.ts} (100%) delete mode 100644 packages/explorer-ui/public/_document.js create mode 100644 packages/explorer-ui/public/_document.ts rename packages/explorer-ui/{tailwind.config.js => tailwind.config.ts} (70%) rename packages/explorer-ui/utils/{addressToSymbol.js => addressToSymbol.ts} (100%) rename packages/explorer-ui/utils/{chainAutocomplete.js => chainAutocomplete.ts} (100%) rename packages/explorer-ui/utils/{checksum.js => checksum.ts} (100%) rename packages/explorer-ui/utils/classes/{Token.js => Token.ts} (89%) rename packages/explorer-ui/utils/{ellipsizeString.js => ellipsizeString.ts} (100%) delete mode 100644 packages/explorer-ui/utils/fetcher.js create mode 100644 packages/explorer-ui/utils/fetcher.ts rename packages/explorer-ui/utils/{formatAmount.js => formatAmount.ts} (100%) rename packages/explorer-ui/utils/{formatDate.js => formatDate.ts} (100%) rename packages/explorer-ui/utils/{formatUSD.js => formatUSD.ts} (100%) rename packages/explorer-ui/utils/math/{statistics.js => statistics.ts} (100%) rename packages/explorer-ui/utils/styles/{coins.js => coins.ts} (99%) rename packages/explorer-ui/utils/styles/{muiStyles.js => muiStyles.ts} (100%) rename packages/explorer-ui/utils/styles/{networks.js => networks.ts} (100%) rename packages/explorer-ui/utils/{timeAgo.js => timeAgo.ts} (100%) rename packages/explorer-ui/utils/{toHexStr.js => toHexStr.ts} (100%) rename packages/explorer-ui/utils/{unixTimestampToUTCString.js => unixTimestampToUTCString.ts} (100%) rename packages/explorer-ui/utils/urls/{index.js => index.ts} (100%) rename packages/explorer-ui/utils/{validateAndParseAddress.js => validateAndParseAddress.ts} (100%) rename packages/explorer-ui/utils/{validateAndParseHash.js => validateAndParseHash.ts} (100%) diff --git a/packages/explorer-ui/apollo-client.ts b/packages/explorer-ui/apollo-client.ts index 0c17993c8a..0edc24536b 100644 --- a/packages/explorer-ui/apollo-client.ts +++ b/packages/explorer-ui/apollo-client.ts @@ -9,6 +9,7 @@ const link = new HttpLink({ const client = new ApolloClient({ link, cache: new InMemoryCache(), + // @ts-expect-error TS(2345): Argument of type '{ link: HttpLink; cache: InMemor... Remove this comment to see the full error message fetchPolicy: 'network-only', fetchOptions: { mode: 'no-cors', diff --git a/packages/explorer-ui/components/BridgeTransaction/BridgeTransactionTable.js b/packages/explorer-ui/components/BridgeTransaction/BridgeTransactionTable.js deleted file mode 100644 index 79355b04ed..0000000000 --- a/packages/explorer-ui/components/BridgeTransaction/BridgeTransactionTable.js +++ /dev/null @@ -1,107 +0,0 @@ -import _ from 'lodash' - -import { Table } from '@components/TransactionTable/Table' -import { StyleAddress } from "@components/misc/StyleAddress"; -import { IconAndAmount } from "@components/misc/IconAndAmount"; -import { ChainInfo } from "@components/misc/ChainInfo"; -import { timeAgo } from "@utils/timeAgo"; -import { getBridgeTransactionUrl } from "@urls"; -import { ellipsizeString } from "@utils/ellipsizeString"; - -export function BridgeTransactionTable({ queryResult }) { - const handlePending = (date) => { - let now = new Date().getTime() - let timeDiff = now - date *1000 - if (timeDiff > 86400000) { - return

Indexing

- } else { - return

Pending

- } - - } - let headers = [ - 'Initial', - 'Final', - 'Origin', - 'Destination', - 'From', - 'To', - 'Age', - 'TXID' - ] - - - let tableRows = [] - queryResult?.map((txn) => { - const { kappa, pending, fromInfo, toInfo } = txn - - let items = [ - - , - pending ? handlePending(fromInfo.time) : - , - , - pending ? : - , - , - pending ? handlePending(fromInfo.time) : - , - fromInfo.time - ? timeAgo({ timestamp: fromInfo.time }) - : timeAgo({ timestamp: toInfo?.time }), - - {ellipsizeString({ string: txn.kappa, limiter: 4 })} - - ] - - let row = { - items, - key: kappa - } - tableRows.push(row); - }) - return ( - - ) -} diff --git a/packages/explorer-ui/components/BridgeTransaction/BridgeTransactionTable.ts b/packages/explorer-ui/components/BridgeTransaction/BridgeTransactionTable.ts new file mode 100644 index 0000000000..722cb7bc66 --- /dev/null +++ b/packages/explorer-ui/components/BridgeTransaction/BridgeTransactionTable.ts @@ -0,0 +1,149 @@ +import _ from 'lodash' + +import { Table } from '@components/TransactionTable/Table' +import { StyleAddress } from "@components/misc/StyleAddress"; +import { IconAndAmount } from "@components/misc/IconAndAmount"; +import { ChainInfo } from "@components/misc/ChainInfo"; +import { timeAgo } from "@utils/timeAgo"; +import { getBridgeTransactionUrl } from "@urls"; +import { ellipsizeString } from "@utils/ellipsizeString"; + +export function BridgeTransactionTable({ queryResult }) { + const handlePending = (date) => { + let now = new Date().getTime() + let timeDiff = now - date *1000 + if (timeDiff > 86400000) { + // @ts-expect-error TS(2304): Cannot find name 'p'. + return

Indexing

+ } else { + // @ts-expect-error TS(2304): Cannot find name 'p'. + return

Pending

+ } + + } + let headers = [ + 'Initial', + 'Final', + 'Origin', + 'Destination', + 'From', + 'To', + 'Age', + 'TXID' + ] + + + let tableRows = [] + queryResult?.map((txn) => { + const { kappa, pending, fromInfo, toInfo } = txn + + let items = [ + + // @ts-expect-error TS(2749): 'IconAndAmount' refers to a value, but is being us... Remove this comment to see the full error message + , + pending ? handlePending(fromInfo.time) : + // @ts-expect-error TS(2749): 'IconAndAmount' refers to a value, but is being us... Remove this comment to see the full error message + , + // @ts-expect-error TS(2749): 'ChainInfo' refers to a value, but is being used a... Remove this comment to see the full error message + , + // @ts-expect-error TS(2749): 'ChainInfo' refers to a value, but is being used a... Remove this comment to see the full error message + pending ? : + // @ts-expect-error TS(2749): 'ChainInfo' refers to a value, but is being used a... Remove this comment to see the full error message + , + // @ts-expect-error TS(2749): 'StyleAddress' refers to a value, but is being use... Remove this comment to see the full error message + , + pending ? handlePending(fromInfo.time) : + // @ts-expect-error TS(2749): 'StyleAddress' refers to a value, but is being use... Remove this comment to see the full error message + , + fromInfo.time + ? timeAgo({ timestamp: fromInfo.time }) + : timeAgo({ timestamp: toInfo?.time }), + // @ts-expect-error TS(2304): Cannot find name 'a'. + + {ellipsizeString({ string: txn.kappa, limiter: 4 })} + + ] + + let row = { + // @ts-expect-error TS(18004): No value exists in scope for the shorthand propert... Remove this comment to see the full error message + items, + // @ts-expect-error TS(2304): Cannot find name 'kappa'. + key: kappa + } + // @ts-expect-error TS(2304): Cannot find name 'tableRows'. + tableRows.push(row); + }) + return ( + // @ts-expect-error TS(2304): Cannot find name 'body'. +
+ ) +} diff --git a/packages/explorer-ui/components/ChainChart/ChartFull.js b/packages/explorer-ui/components/ChainChart/ChartFull.tsx similarity index 100% rename from packages/explorer-ui/components/ChainChart/ChartFull.js rename to packages/explorer-ui/components/ChainChart/ChartFull.tsx diff --git a/packages/explorer-ui/components/ChainChart/index.js b/packages/explorer-ui/components/ChainChart/index.tsx similarity index 100% rename from packages/explorer-ui/components/ChainChart/index.js rename to packages/explorer-ui/components/ChainChart/index.tsx diff --git a/packages/explorer-ui/components/Chart/index.js b/packages/explorer-ui/components/Chart/index.ts similarity index 65% rename from packages/explorer-ui/components/Chart/index.js rename to packages/explorer-ui/components/Chart/index.ts index efe08446fa..ede3fd6f04 100644 --- a/packages/explorer-ui/components/Chart/index.js +++ b/packages/explorer-ui/components/Chart/index.ts @@ -4,9 +4,12 @@ export function Chart({ data }) { if (data) { const numbers = normalize(data) return ( + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
{numbers.map(({ value, normalizedValue, date }, i) => ( + // @ts-expect-error TS(2749): 'BarMaker' refers to a value, but is being used as... Remove this comment to see the full error message ))}
@@ -19,13 +22,18 @@ function BarMaker({ value, height, date }) { let showValue = numeral(value).format('0,0') return ( + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'span'. {showValue} + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'span'. {date}
@@ -34,9 +42,12 @@ function BarMaker({ value, height, date }) { export function ChartLoading() { return ( + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
{[...Array(30).keys()].map((i) => ( + // @ts-expect-error TS(2749): 'BarMakerLoading' refers to a value, but is being ... Remove this comment to see the full error message ))}
@@ -46,9 +57,13 @@ export function ChartLoading() { function BarMakerLoading() { return ( + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
) diff --git a/packages/explorer-ui/components/ContainerCard.js b/packages/explorer-ui/components/ContainerCard.js deleted file mode 100644 index 36dbcddc49..0000000000 --- a/packages/explorer-ui/components/ContainerCard.js +++ /dev/null @@ -1,50 +0,0 @@ -import Card from '@components/tailwind/Card' - -export function ContainerCard({ - title, - subtitle, - icon, - children, - className, - subtitleClassName, - titleClassName, - ...props -}) { - return ( - - - {children} - - ) -} - -function ContainerTitle({ - icon, - title, - subtitle, - subtitleClassName, - titleClassName = 'text-transparent bg-clip-text bg-gradient-to-r from-purple-600 to-blue-600', -}) { - return ( -
-
{icon}
-
{title}
- - {subtitle} - -
- ) -} diff --git a/packages/explorer-ui/components/ContainerCard.ts b/packages/explorer-ui/components/ContainerCard.ts new file mode 100644 index 0000000000..216394e664 --- /dev/null +++ b/packages/explorer-ui/components/ContainerCard.ts @@ -0,0 +1,65 @@ +import Card from '@components/tailwind/Card' + +export function ContainerCard({ + title, + subtitle, + icon, + children, + className, + subtitleClassName, + titleClassName, + ...props +}) { + return ( + // @ts-expect-error TS(2749): 'Card' refers to a value, but is being used as a t... Remove this comment to see the full error message + + // @ts-expect-error TS(2749): 'ContainerTitle' refers to a value, but is being u... Remove this comment to see the full error message + + // @ts-expect-error TS(18004): No value exists in scope for the shorthand propert... Remove this comment to see the full error message + {children} + + ) +} + +function ContainerTitle({ + icon, + title, + subtitle, + subtitleClassName, + titleClassName = 'text-transparent bg-clip-text bg-gradient-to-r from-purple-600 to-blue-600', +}) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'div'. +
+ // @ts-expect-error TS(2304): Cannot find name 'div'. +
{icon}
+ // @ts-expect-error TS(2304): Cannot find name 'div'. +
{title}
+ // @ts-expect-error TS(2304): Cannot find name 'span'. + + // @ts-expect-error TS(18004): No value exists in scope for the shorthand propert... Remove this comment to see the full error message + {subtitle} + +
+ ) +} diff --git a/packages/explorer-ui/components/CopyButtonIcon/index.js b/packages/explorer-ui/components/CopyButtonIcon/index.tsx similarity index 100% rename from packages/explorer-ui/components/CopyButtonIcon/index.js rename to packages/explorer-ui/components/CopyButtonIcon/index.tsx diff --git a/packages/explorer-ui/components/Error/index.js b/packages/explorer-ui/components/Error/index.js deleted file mode 100644 index d6d4d9b0fd..0000000000 --- a/packages/explorer-ui/components/Error/index.js +++ /dev/null @@ -1,26 +0,0 @@ -import {ContainerCard} from '@components/ContainerCard' -import {ExclamationIcon} from '@heroicons/react/outline' - -export const Error = ({ text, param, subtitle }) => { - return ( - } - subtitle={subtitle} - > -
-
{text}
-
- {param} -
-
- Please click{' '} - - here - {' '} - to go back to the main page. -
-
-
- ) -} diff --git a/packages/explorer-ui/components/Error/index.ts b/packages/explorer-ui/components/Error/index.ts new file mode 100644 index 0000000000..65eed782d3 --- /dev/null +++ b/packages/explorer-ui/components/Error/index.ts @@ -0,0 +1,39 @@ +import {ContainerCard} from '@components/ContainerCard' +import {ExclamationIcon} from '@heroicons/react/outline' + +export const Error = ({ text, param, subtitle }) => { + return ( + // @ts-expect-error TS(2749): 'ContainerCard' refers to a value, but is being us... Remove this comment to see the full error message + } + // @ts-expect-error TS(2304): Cannot find name 'subtitle'. + subtitle={subtitle} + > + // @ts-expect-error TS(2304): Cannot find name 'div'. +
+ // @ts-expect-error TS(2304): Cannot find name 'div'. +
{text}
+ // @ts-expect-error TS(2304): Cannot find name 'div'. +
+ // @ts-expect-error TS(18004): No value exists in scope for the shorthand propert... Remove this comment to see the full error message + {param} +
+ // @ts-expect-error TS(2304): Cannot find name 'div'. +
+ // @ts-expect-error TS(2304): Cannot find name 'Please'. + Please click{' '} + // @ts-expect-error TS(2304): Cannot find name 'a'. + + // @ts-expect-error TS(2304): Cannot find name 'here'. + here + {' '} + // @ts-expect-error TS(2304): Cannot find name 'to'. + to go back to the main page. +
+
+
+ ) +} diff --git a/packages/explorer-ui/components/GetCsvButton/index.js b/packages/explorer-ui/components/GetCsvButton/index.tsx similarity index 100% rename from packages/explorer-ui/components/GetCsvButton/index.js rename to packages/explorer-ui/components/GetCsvButton/index.tsx diff --git a/packages/explorer-ui/components/Pagination/index.js b/packages/explorer-ui/components/Pagination/index.js deleted file mode 100644 index a70f8c3744..0000000000 --- a/packages/explorer-ui/components/Pagination/index.js +++ /dev/null @@ -1,37 +0,0 @@ -import {ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronLeftIcon, ChevronRightIcon,} from '@heroicons/react/outline' - -import {useRouter} from "next/router"; -import Link from 'next/link'; - - -export function Pagination({ -}) { - const router = useRouter() - let { p } = router.query - p = p ?? 1 - - return ( -
- - - - - - - Page {p} - - - -
- ) -} diff --git a/packages/explorer-ui/components/Pagination/index.ts b/packages/explorer-ui/components/Pagination/index.ts new file mode 100644 index 0000000000..c69b9ed015 --- /dev/null +++ b/packages/explorer-ui/components/Pagination/index.ts @@ -0,0 +1,55 @@ +import {ChevronDoubleLeftIcon, ChevronDoubleRightIcon, ChevronLeftIcon, ChevronRightIcon,} from '@heroicons/react/outline' + +import {useRouter} from "next/router"; +import Link from 'next/link'; + + +export function Pagination({ +}) { + const router = useRouter() + let { p } = router.query + // @ts-expect-error TS(2322): Type 'string | string[] | 1' is not assignable to ... Remove this comment to see the full error message + p = p ?? 1 + + return ( + // @ts-expect-error TS(2304): Cannot find name 'div'. +
+ // @ts-expect-error TS(2749): 'Link' refers to a value, but is being used as a t... Remove this comment to see the full error message + + // @ts-expect-error TS(2749): 'ChevronDoubleLeftIcon' refers to a value, but is ... Remove this comment to see the full error message + + + // @ts-expect-error TS(2304): Cannot find name 'href'. + + // @ts-expect-error TS(2749): 'ChevronLeftIcon' refers to a value, but is being ... Remove this comment to see the full error message + + + // @ts-expect-error TS(2304): Cannot find name 'span'. + Page {p} + // @ts-expect-error TS(2304): Cannot find name 'href'. + + // @ts-expect-error TS(2749): 'ChevronRightIcon' refers to a value, but is being... Remove this comment to see the full error message + + +
+ ) +} diff --git a/packages/explorer-ui/components/ScrollToTop.js b/packages/explorer-ui/components/ScrollToTop.ts similarity index 100% rename from packages/explorer-ui/components/ScrollToTop.js rename to packages/explorer-ui/components/ScrollToTop.ts diff --git a/packages/explorer-ui/components/TransactionTable/Table.stories.js b/packages/explorer-ui/components/TransactionTable/Table.stories.tsx similarity index 100% rename from packages/explorer-ui/components/TransactionTable/Table.stories.js rename to packages/explorer-ui/components/TransactionTable/Table.stories.tsx diff --git a/packages/explorer-ui/components/TransactionTable/Table.js b/packages/explorer-ui/components/TransactionTable/Table.ts similarity index 53% rename from packages/explorer-ui/components/TransactionTable/Table.js rename to packages/explorer-ui/components/TransactionTable/Table.ts index b4d0a660cf..43dfde3188 100644 --- a/packages/explorer-ui/components/TransactionTable/Table.js +++ b/packages/explorer-ui/components/TransactionTable/Table.ts @@ -3,13 +3,21 @@ import { TableBody} from "./TableBody"; export function Table({header, body}) { return ( + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'table'.
+ // @ts-expect-error TS(2749): 'TableHeader' refers to a value, but is being used... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'rows'.
diff --git a/packages/explorer-ui/components/TransactionTable/TableBody.stories.js b/packages/explorer-ui/components/TransactionTable/TableBody.stories.tsx similarity index 100% rename from packages/explorer-ui/components/TransactionTable/TableBody.stories.js rename to packages/explorer-ui/components/TransactionTable/TableBody.stories.tsx diff --git a/packages/explorer-ui/components/TransactionTable/TableBody.js b/packages/explorer-ui/components/TransactionTable/TableBody.ts similarity index 54% rename from packages/explorer-ui/components/TransactionTable/TableBody.js rename to packages/explorer-ui/components/TransactionTable/TableBody.ts index a4301ebf54..d45c91acd3 100644 --- a/packages/explorer-ui/components/TransactionTable/TableBody.js +++ b/packages/explorer-ui/components/TransactionTable/TableBody.ts @@ -3,10 +3,12 @@ import { TableRow } from "./TableRow"; export function TableBody({ rows }) { return ( + // @ts-expect-error TS(2552): Cannot find name 'tbody'. Did you mean 'Body'? {rows.map((row) => ( + // @ts-expect-error TS(2749): 'TableRow' refers to a value, but is being used as... Remove this comment to see the full error message )) diff --git a/packages/explorer-ui/components/TransactionTable/TableHeader.js b/packages/explorer-ui/components/TransactionTable/TableHeader.js deleted file mode 100644 index e8904178fc..0000000000 --- a/packages/explorer-ui/components/TransactionTable/TableHeader.js +++ /dev/null @@ -1,16 +0,0 @@ -export function TableHeader({headers}) { - return( - - - {headers.map((header) => ( - - {header} - - ))} - - - ) -} diff --git a/packages/explorer-ui/components/TransactionTable/TableHeader.stories.js b/packages/explorer-ui/components/TransactionTable/TableHeader.stories.tsx similarity index 100% rename from packages/explorer-ui/components/TransactionTable/TableHeader.stories.js rename to packages/explorer-ui/components/TransactionTable/TableHeader.stories.tsx diff --git a/packages/explorer-ui/components/TransactionTable/TableHeader.ts b/packages/explorer-ui/components/TransactionTable/TableHeader.ts new file mode 100644 index 0000000000..b3237c55e6 --- /dev/null +++ b/packages/explorer-ui/components/TransactionTable/TableHeader.ts @@ -0,0 +1,22 @@ +export function TableHeader({headers}) { + return( + // @ts-expect-error TS(2304): Cannot find name 'thead'. + + // @ts-expect-error TS(2304): Cannot find name 'tr'. + + {headers.map((header) => ( + // @ts-expect-error TS(2304): Cannot find name 'th'. + + // @ts-expect-error TS(2552): Cannot find name 'header'. Did you mean 'headers'? + {header} + + ))} + + + ) +} diff --git a/packages/explorer-ui/components/TransactionTable/TableRow.stories.js b/packages/explorer-ui/components/TransactionTable/TableRow.stories.tsx similarity index 100% rename from packages/explorer-ui/components/TransactionTable/TableRow.stories.js rename to packages/explorer-ui/components/TransactionTable/TableRow.stories.tsx diff --git a/packages/explorer-ui/components/TransactionTable/TableRow.js b/packages/explorer-ui/components/TransactionTable/TableRow.ts similarity index 86% rename from packages/explorer-ui/components/TransactionTable/TableRow.js rename to packages/explorer-ui/components/TransactionTable/TableRow.ts index b616f36cb0..f44c669227 100644 --- a/packages/explorer-ui/components/TransactionTable/TableRow.js +++ b/packages/explorer-ui/components/TransactionTable/TableRow.ts @@ -3,11 +3,14 @@ export function TableRow({ items, key }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'tr'. {items.map((item) => + // @ts-expect-error TS(2304): Cannot find name 'td'. + // @ts-expect-error TS(2552): Cannot find name 'item'. Did you mean 'items'? {item} ) diff --git a/packages/explorer-ui/components/icons/ArrowIcon.js b/packages/explorer-ui/components/icons/ArrowIcon.js deleted file mode 100644 index 83fe963877..0000000000 --- a/packages/explorer-ui/components/icons/ArrowIcon.js +++ /dev/null @@ -1,17 +0,0 @@ -export default function ArrowIcon({ className }) { - return ( - - - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/ArrowIcon.ts b/packages/explorer-ui/components/icons/ArrowIcon.ts new file mode 100644 index 0000000000..f1a65dd45a --- /dev/null +++ b/packages/explorer-ui/components/icons/ArrowIcon.ts @@ -0,0 +1,27 @@ +export default function ArrowIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/BridgeIcon.js b/packages/explorer-ui/components/icons/BridgeIcon.ts similarity index 76% rename from packages/explorer-ui/components/icons/BridgeIcon.js rename to packages/explorer-ui/components/icons/BridgeIcon.ts index 06f53a2f58..cddc5b3109 100644 --- a/packages/explorer-ui/components/icons/BridgeIcon.js +++ b/packages/explorer-ui/components/icons/BridgeIcon.ts @@ -1,30 +1,48 @@ export default function BridgeIcon({ className }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + // @ts-expect-error TS(2304): Cannot find name 'defs'. + // @ts-expect-error TS(2304): Cannot find name 'radialGradient'. + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'path'. diff --git a/packages/explorer-ui/components/icons/ChartBarIcon.js b/packages/explorer-ui/components/icons/ChartBarIcon.js deleted file mode 100644 index 2bf4b27446..0000000000 --- a/packages/explorer-ui/components/icons/ChartBarIcon.js +++ /dev/null @@ -1,20 +0,0 @@ -export default function ChartBarIcon({ className }) { - return ( - - ) -} - - diff --git a/packages/explorer-ui/components/icons/ChartBarIcon.ts b/packages/explorer-ui/components/icons/ChartBarIcon.ts new file mode 100644 index 0000000000..0baefd559d --- /dev/null +++ b/packages/explorer-ui/components/icons/ChartBarIcon.ts @@ -0,0 +1,31 @@ +export default function ChartBarIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + ) +} + + diff --git a/packages/explorer-ui/components/icons/ChartPieIcon.js b/packages/explorer-ui/components/icons/ChartPieIcon.js deleted file mode 100644 index bf7263b871..0000000000 --- a/packages/explorer-ui/components/icons/ChartPieIcon.js +++ /dev/null @@ -1,25 +0,0 @@ -export default function ChartPieIcon({ className }) { - return ( - - ) -} - diff --git a/packages/explorer-ui/components/icons/ChartPieIcon.ts b/packages/explorer-ui/components/icons/ChartPieIcon.ts new file mode 100644 index 0000000000..7b544af059 --- /dev/null +++ b/packages/explorer-ui/components/icons/ChartPieIcon.ts @@ -0,0 +1,41 @@ +export default function ChartPieIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + ) +} + diff --git a/packages/explorer-ui/components/icons/ClockIcon.js b/packages/explorer-ui/components/icons/ClockIcon.js deleted file mode 100644 index 54d17d1bd0..0000000000 --- a/packages/explorer-ui/components/icons/ClockIcon.js +++ /dev/null @@ -1,18 +0,0 @@ -export function ClockIcon({ className }) { - return ( - - - - ) -} diff --git a/packages/explorer-ui/components/icons/ClockIcon.ts b/packages/explorer-ui/components/icons/ClockIcon.ts new file mode 100644 index 0000000000..fd2290915c --- /dev/null +++ b/packages/explorer-ui/components/icons/ClockIcon.ts @@ -0,0 +1,29 @@ +export function ClockIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ) +} diff --git a/packages/explorer-ui/components/icons/CloseIcon.js b/packages/explorer-ui/components/icons/CloseIcon.js deleted file mode 100644 index 9dd847a48f..0000000000 --- a/packages/explorer-ui/components/icons/CloseIcon.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function CloseIcon({className}){ - return ( - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/CloseIcon.ts b/packages/explorer-ui/components/icons/CloseIcon.ts new file mode 100644 index 0000000000..eab8a78835 --- /dev/null +++ b/packages/explorer-ui/components/icons/CloseIcon.ts @@ -0,0 +1,29 @@ +export default function CloseIcon({className}){ + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/CommunityHappyIcon.js b/packages/explorer-ui/components/icons/CommunityHappyIcon.ts similarity index 82% rename from packages/explorer-ui/components/icons/CommunityHappyIcon.js rename to packages/explorer-ui/components/icons/CommunityHappyIcon.ts index 1caa12f8ce..576d047f2c 100644 --- a/packages/explorer-ui/components/icons/CommunityHappyIcon.js +++ b/packages/explorer-ui/components/icons/CommunityHappyIcon.ts @@ -1,31 +1,49 @@ export default function CommunityHappyIcon({ className }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + // @ts-expect-error TS(2304): Cannot find name 'defs'. + // @ts-expect-error TS(2304): Cannot find name 'radialGradient'. + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'fill'. + // @ts-expect-error TS(2304): Cannot find name 'path'. diff --git a/packages/explorer-ui/components/icons/ContractsIcon.js b/packages/explorer-ui/components/icons/ContractsIcon.js deleted file mode 100644 index 5aee17df43..0000000000 --- a/packages/explorer-ui/components/icons/ContractsIcon.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function ContractsIcon({ className }) { - return ( - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/ContractsIcon.ts b/packages/explorer-ui/components/icons/ContractsIcon.ts new file mode 100644 index 0000000000..c6f5bb2fb3 --- /dev/null +++ b/packages/explorer-ui/components/icons/ContractsIcon.ts @@ -0,0 +1,29 @@ +export default function ContractsIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/CopyIcon.js b/packages/explorer-ui/components/icons/CopyIcon.js deleted file mode 100644 index aed5ff7c28..0000000000 --- a/packages/explorer-ui/components/icons/CopyIcon.js +++ /dev/null @@ -1,17 +0,0 @@ -export default function CopyIcon({ ...props }) { - return ( - - - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/CopyIcon.ts b/packages/explorer-ui/components/icons/CopyIcon.ts new file mode 100644 index 0000000000..89d6164041 --- /dev/null +++ b/packages/explorer-ui/components/icons/CopyIcon.ts @@ -0,0 +1,26 @@ +export default function CopyIcon({ ...props }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/DiscordIcon.js b/packages/explorer-ui/components/icons/DiscordIcon.ts similarity index 79% rename from packages/explorer-ui/components/icons/DiscordIcon.js rename to packages/explorer-ui/components/icons/DiscordIcon.ts index 54f61b011d..effbbabf2a 100644 --- a/packages/explorer-ui/components/icons/DiscordIcon.js +++ b/packages/explorer-ui/components/icons/DiscordIcon.ts @@ -1,10 +1,15 @@ export default function DiscordIcon(props) { return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. diff --git a/packages/explorer-ui/components/icons/DocsIcon.js b/packages/explorer-ui/components/icons/DocsIcon.ts similarity index 100% rename from packages/explorer-ui/components/icons/DocsIcon.js rename to packages/explorer-ui/components/icons/DocsIcon.ts diff --git a/packages/explorer-ui/components/icons/DollarIcon.js b/packages/explorer-ui/components/icons/DollarIcon.js deleted file mode 100644 index 3642c4d679..0000000000 --- a/packages/explorer-ui/components/icons/DollarIcon.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function DollarIcon({ className }) { - return ( - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/DollarIcon.ts b/packages/explorer-ui/components/icons/DollarIcon.ts new file mode 100644 index 0000000000..140b0316f1 --- /dev/null +++ b/packages/explorer-ui/components/icons/DollarIcon.ts @@ -0,0 +1,29 @@ +export default function DollarIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/EarningIcon.js b/packages/explorer-ui/components/icons/EarningIcon.ts similarity index 62% rename from packages/explorer-ui/components/icons/EarningIcon.js rename to packages/explorer-ui/components/icons/EarningIcon.ts index 648bedb3ca..ec48141515 100644 --- a/packages/explorer-ui/components/icons/EarningIcon.js +++ b/packages/explorer-ui/components/icons/EarningIcon.ts @@ -1,33 +1,54 @@ export default function EarningIcon({ className }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + // @ts-expect-error TS(2304): Cannot find name 'defs'. + // @ts-expect-error TS(2304): Cannot find name 'radialGradient'. + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. ) diff --git a/packages/explorer-ui/components/icons/ExternalLinkIcon.js b/packages/explorer-ui/components/icons/ExternalLinkIcon.js deleted file mode 100644 index 91e8c6acfe..0000000000 --- a/packages/explorer-ui/components/icons/ExternalLinkIcon.js +++ /dev/null @@ -1,18 +0,0 @@ - -export default function ExternalLinkIcon(props) { - return ( - - - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/ExternalLinkIcon.ts b/packages/explorer-ui/components/icons/ExternalLinkIcon.ts new file mode 100644 index 0000000000..f47a00ea22 --- /dev/null +++ b/packages/explorer-ui/components/icons/ExternalLinkIcon.ts @@ -0,0 +1,27 @@ + +export default function ExternalLinkIcon(props) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/ForumIcon.js b/packages/explorer-ui/components/icons/ForumIcon.js deleted file mode 100644 index 3573956252..0000000000 --- a/packages/explorer-ui/components/icons/ForumIcon.js +++ /dev/null @@ -1,17 +0,0 @@ -export default function ForumIcon({ className }) { - return ( - - - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/ForumIcon.ts b/packages/explorer-ui/components/icons/ForumIcon.ts new file mode 100644 index 0000000000..2d33bbc506 --- /dev/null +++ b/packages/explorer-ui/components/icons/ForumIcon.ts @@ -0,0 +1,27 @@ +export default function ForumIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/GitHubIcon.js b/packages/explorer-ui/components/icons/GitHubIcon.ts similarity index 75% rename from packages/explorer-ui/components/icons/GitHubIcon.js rename to packages/explorer-ui/components/icons/GitHubIcon.ts index 29b17ca9fe..a6239ab4a1 100644 --- a/packages/explorer-ui/components/icons/GitHubIcon.js +++ b/packages/explorer-ui/components/icons/GitHubIcon.ts @@ -1,9 +1,14 @@ export default function GitHubIcon(props) { return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + // @ts-expect-error TS(2304): Cannot find name 'path'. diff --git a/packages/explorer-ui/components/icons/HomeIcon.js b/packages/explorer-ui/components/icons/HomeIcon.ts similarity index 53% rename from packages/explorer-ui/components/icons/HomeIcon.js rename to packages/explorer-ui/components/icons/HomeIcon.ts index 9c5d791d6f..331a4970f0 100644 --- a/packages/explorer-ui/components/icons/HomeIcon.js +++ b/packages/explorer-ui/components/icons/HomeIcon.ts @@ -1,11 +1,17 @@ export default function HomeIcon({ className }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. ) diff --git a/packages/explorer-ui/components/icons/InfoIcon.js b/packages/explorer-ui/components/icons/InfoIcon.js deleted file mode 100644 index 167cba3ff5..0000000000 --- a/packages/explorer-ui/components/icons/InfoIcon.js +++ /dev/null @@ -1,15 +0,0 @@ -export default function InfoIcon() { - return ( - - - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/InfoIcon.ts b/packages/explorer-ui/components/icons/InfoIcon.ts new file mode 100644 index 0000000000..fc10fb2b3b --- /dev/null +++ b/packages/explorer-ui/components/icons/InfoIcon.ts @@ -0,0 +1,23 @@ +export default function InfoIcon() { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/MigrateIcon.js b/packages/explorer-ui/components/icons/MigrateIcon.js deleted file mode 100644 index edc9796e1f..0000000000 --- a/packages/explorer-ui/components/icons/MigrateIcon.js +++ /dev/null @@ -1,13 +0,0 @@ -import {LibraryIcon} from '@heroicons/react/outline' - - -export default function MigrateIcon({ className, ...props }) { - return ( - - ) -} - - diff --git a/packages/explorer-ui/components/icons/MigrateIcon.ts b/packages/explorer-ui/components/icons/MigrateIcon.ts new file mode 100644 index 0000000000..52e4aefd5a --- /dev/null +++ b/packages/explorer-ui/components/icons/MigrateIcon.ts @@ -0,0 +1,16 @@ +import {LibraryIcon} from '@heroicons/react/outline' + + +export default function MigrateIcon({ className, ...props }) { + return ( + // @ts-expect-error TS(2749): 'LibraryIcon' refers to a value, but is being used... Remove this comment to see the full error message + + ) +} + + diff --git a/packages/explorer-ui/components/icons/MinusIcon.js b/packages/explorer-ui/components/icons/MinusIcon.js deleted file mode 100644 index e1c4321643..0000000000 --- a/packages/explorer-ui/components/icons/MinusIcon.js +++ /dev/null @@ -1,17 +0,0 @@ -export default function MinusIcon({ className }){ - return ( - - - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/MinusIcon.ts b/packages/explorer-ui/components/icons/MinusIcon.ts new file mode 100644 index 0000000000..f6dd2d263c --- /dev/null +++ b/packages/explorer-ui/components/icons/MinusIcon.ts @@ -0,0 +1,27 @@ +export default function MinusIcon({ className }){ + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/NarrowArrowIcon.js b/packages/explorer-ui/components/icons/NarrowArrowIcon.js deleted file mode 100644 index 03524d3730..0000000000 --- a/packages/explorer-ui/components/icons/NarrowArrowIcon.js +++ /dev/null @@ -1,17 +0,0 @@ -export default function NarrowArrowIcon({ className }) { - return ( - - - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/NarrowArrowIcon.ts b/packages/explorer-ui/components/icons/NarrowArrowIcon.ts new file mode 100644 index 0000000000..7a79c17b34 --- /dev/null +++ b/packages/explorer-ui/components/icons/NarrowArrowIcon.ts @@ -0,0 +1,27 @@ +export default function NarrowArrowIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/NerveLogoSvg.js b/packages/explorer-ui/components/icons/NerveLogoSvg.ts similarity index 73% rename from packages/explorer-ui/components/icons/NerveLogoSvg.js rename to packages/explorer-ui/components/icons/NerveLogoSvg.ts index 7b1c520d86..47c1ef8873 100644 --- a/packages/explorer-ui/components/icons/NerveLogoSvg.js +++ b/packages/explorer-ui/components/icons/NerveLogoSvg.ts @@ -1,79 +1,150 @@ export default function NerveLogoSvg({ className="" }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + // @ts-expect-error TS(2304): Cannot find name 'defs'. + // @ts-expect-error TS(2304): Cannot find name 'radialGradient'. + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'id'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. diff --git a/packages/explorer-ui/components/icons/PlusIcon.js b/packages/explorer-ui/components/icons/PlusIcon.js deleted file mode 100644 index cfa12cc582..0000000000 --- a/packages/explorer-ui/components/icons/PlusIcon.js +++ /dev/null @@ -1,17 +0,0 @@ -export default function PlusIcon({className}) { - return ( - - - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/PlusIcon.ts b/packages/explorer-ui/components/icons/PlusIcon.ts new file mode 100644 index 0000000000..ed6190064f --- /dev/null +++ b/packages/explorer-ui/components/icons/PlusIcon.ts @@ -0,0 +1,27 @@ +export default function PlusIcon({className}) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/PoolsIcon.js b/packages/explorer-ui/components/icons/PoolsIcon.js deleted file mode 100644 index 6618e2b7f0..0000000000 --- a/packages/explorer-ui/components/icons/PoolsIcon.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function PoolsIcon({ className }) { - return ( - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/PoolsIcon.ts b/packages/explorer-ui/components/icons/PoolsIcon.ts new file mode 100644 index 0000000000..e3bac3135b --- /dev/null +++ b/packages/explorer-ui/components/icons/PoolsIcon.ts @@ -0,0 +1,29 @@ +export default function PoolsIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/SavingIcon.js b/packages/explorer-ui/components/icons/SavingIcon.ts similarity index 66% rename from packages/explorer-ui/components/icons/SavingIcon.js rename to packages/explorer-ui/components/icons/SavingIcon.ts index c0adcd62f8..9ad2015bc8 100644 --- a/packages/explorer-ui/components/icons/SavingIcon.js +++ b/packages/explorer-ui/components/icons/SavingIcon.ts @@ -1,30 +1,48 @@ export default function SavingIcon({ className }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + // @ts-expect-error TS(2304): Cannot find name 'defs'. + // @ts-expect-error TS(2304): Cannot find name 'radialGradient'. + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'id'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. diff --git a/packages/explorer-ui/components/icons/StackIcon.js b/packages/explorer-ui/components/icons/StackIcon.js deleted file mode 100644 index c10b36f80b..0000000000 --- a/packages/explorer-ui/components/icons/StackIcon.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function StackIcon({ className }) { - return ( - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/StackIcon.ts b/packages/explorer-ui/components/icons/StackIcon.ts new file mode 100644 index 0000000000..d77aab4f1b --- /dev/null +++ b/packages/explorer-ui/components/icons/StackIcon.ts @@ -0,0 +1,29 @@ +export default function StackIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/StakeIcon.js b/packages/explorer-ui/components/icons/StakeIcon.js deleted file mode 100644 index 58f455b06b..0000000000 --- a/packages/explorer-ui/components/icons/StakeIcon.js +++ /dev/null @@ -1,18 +0,0 @@ -export default function StakeIcon({ className }) { - return ( - - ) -} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/StakeIcon.ts b/packages/explorer-ui/components/icons/StakeIcon.ts new file mode 100644 index 0000000000..92901b60ee --- /dev/null +++ b/packages/explorer-ui/components/icons/StakeIcon.ts @@ -0,0 +1,29 @@ +export default function StakeIcon({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + ) +} \ No newline at end of file diff --git a/packages/explorer-ui/components/icons/SwapIcon.js b/packages/explorer-ui/components/icons/SwapIcon.js deleted file mode 100644 index 9cc23cb669..0000000000 --- a/packages/explorer-ui/components/icons/SwapIcon.js +++ /dev/null @@ -1,19 +0,0 @@ -export default function SwapIcon({ className, ...props }) { - return ( - - - - ); -} - diff --git a/packages/explorer-ui/components/icons/SwapIcon.ts b/packages/explorer-ui/components/icons/SwapIcon.ts new file mode 100644 index 0000000000..ab459ca2b8 --- /dev/null +++ b/packages/explorer-ui/components/icons/SwapIcon.ts @@ -0,0 +1,30 @@ +export default function SwapIcon({ className, ...props }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ); +} + diff --git a/packages/explorer-ui/components/icons/SynapseLogoSvg.js b/packages/explorer-ui/components/icons/SynapseLogoSvg.ts similarity index 73% rename from packages/explorer-ui/components/icons/SynapseLogoSvg.js rename to packages/explorer-ui/components/icons/SynapseLogoSvg.ts index 0de15f9a95..9b9127cd37 100644 --- a/packages/explorer-ui/components/icons/SynapseLogoSvg.js +++ b/packages/explorer-ui/components/icons/SynapseLogoSvg.ts @@ -1,73 +1,138 @@ export default function SynapseLogoSvg({ className="" }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + // @ts-expect-error TS(2304): Cannot find name 'defs'. + // @ts-expect-error TS(2304): Cannot find name 'radialGradient'. + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2749): 'stop' refers to a value, but is being used as a t... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'id'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. + // @ts-expect-error TS(2304): Cannot find name 'path'. diff --git a/packages/explorer-ui/components/icons/TelegramIcon.js b/packages/explorer-ui/components/icons/TelegramIcon.ts similarity index 81% rename from packages/explorer-ui/components/icons/TelegramIcon.js rename to packages/explorer-ui/components/icons/TelegramIcon.ts index f9d55dde7a..63196899c7 100644 --- a/packages/explorer-ui/components/icons/TelegramIcon.js +++ b/packages/explorer-ui/components/icons/TelegramIcon.ts @@ -1,6 +1,8 @@ export default function TelegramIcon(props) { return ( +// @ts-expect-error TS(2304): Cannot find name 'svg'. +// @ts-expect-error TS(2304): Cannot find name 'path'. ) diff --git a/packages/explorer-ui/components/icons/TwitterIcon.js b/packages/explorer-ui/components/icons/TwitterIcon.ts similarity index 82% rename from packages/explorer-ui/components/icons/TwitterIcon.js rename to packages/explorer-ui/components/icons/TwitterIcon.ts index 59ff735994..dc9593e558 100644 --- a/packages/explorer-ui/components/icons/TwitterIcon.js +++ b/packages/explorer-ui/components/icons/TwitterIcon.ts @@ -1,6 +1,8 @@ export default function TwitterIcon(props) { return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + // @ts-expect-error TS(2304): Cannot find name 'path'. ) diff --git a/packages/explorer-ui/components/layouts/MainLayout/CloseButton.js b/packages/explorer-ui/components/layouts/MainLayout/CloseButton.ts similarity index 73% rename from packages/explorer-ui/components/layouts/MainLayout/CloseButton.js rename to packages/explorer-ui/components/layouts/MainLayout/CloseButton.ts index 58ff065c6a..596103f5ee 100644 --- a/packages/explorer-ui/components/layouts/MainLayout/CloseButton.js +++ b/packages/explorer-ui/components/layouts/MainLayout/CloseButton.ts @@ -2,8 +2,10 @@ import CloseIcon from '@components/icons/CloseIcon' export default function CloseButton({ onClick }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'button'. Close sidebar + // @ts-expect-error TS(2304): Cannot find name 'className'. ) diff --git a/packages/explorer-ui/components/layouts/MainLayout/MoreButton.js b/packages/explorer-ui/components/layouts/MainLayout/MoreButton.ts similarity index 50% rename from packages/explorer-ui/components/layouts/MainLayout/MoreButton.js rename to packages/explorer-ui/components/layouts/MainLayout/MoreButton.ts index 7eb6dbabe6..ba398dce8b 100644 --- a/packages/explorer-ui/components/layouts/MainLayout/MoreButton.js +++ b/packages/explorer-ui/components/layouts/MainLayout/MoreButton.ts @@ -3,23 +3,32 @@ import {DotsHorizontalIcon} from '@heroicons/react/outline' export default function MoreButton({ open, onClick, className, ...props }) { return ( + // @ts-expect-error TS(2749): 'Button' refers to a value, but is being used as a... Remove this comment to see the full error message ) diff --git a/packages/explorer-ui/components/tailwind/Card.js b/packages/explorer-ui/components/tailwind/Card.ts similarity index 61% rename from packages/explorer-ui/components/tailwind/Card.js rename to packages/explorer-ui/components/tailwind/Card.ts index 47bbb6f831..044581d27a 100644 --- a/packages/explorer-ui/components/tailwind/Card.js +++ b/packages/explorer-ui/components/tailwind/Card.ts @@ -13,19 +13,24 @@ export default function Card({ `) let titleContent = '' if (title) { + // @ts-expect-error TS(2322): Type 'boolean' is not assignable to type 'string'. titleContent = ( <> + // @ts-expect-error TS(2304): Cannot find name 'div'.
' cannot be applied to types '{ 'font-m... Remove this comment to see the full error message className={'font-medium text-lg mb-2 text-gray-400 ' + titleClassName} > {title}
+ // @ts-expect-error TS(2304): Cannot find name 'hr'. {divider ?
: ''} ) } return ( + // @ts-expect-error TS(2304): Cannot find name 'div'.
{titleContent} {children} diff --git a/packages/explorer-ui/components/tailwind/Col.js b/packages/explorer-ui/components/tailwind/Col.ts similarity index 97% rename from packages/explorer-ui/components/tailwind/Col.js rename to packages/explorer-ui/components/tailwind/Col.ts index d5cc1bc7a1..d21a42aabb 100644 --- a/packages/explorer-ui/components/tailwind/Col.js +++ b/packages/explorer-ui/components/tailwind/Col.ts @@ -126,6 +126,7 @@ export default function Col({ } return ( + // @ts-expect-error TS(2304): Cannot find name 'div'.
{children}
diff --git a/packages/explorer-ui/components/tailwind/Grid.js b/packages/explorer-ui/components/tailwind/Grid.ts similarity index 97% rename from packages/explorer-ui/components/tailwind/Grid.js rename to packages/explorer-ui/components/tailwind/Grid.ts index c545ab88d5..7887ac4650 100644 --- a/packages/explorer-ui/components/tailwind/Grid.js +++ b/packages/explorer-ui/components/tailwind/Grid.ts @@ -261,6 +261,7 @@ export default function Grid({ const BaseComponent = as ?? 'div' return ( + // @ts-expect-error TS(2749): 'BaseComponent' refers to a value, but is being us... Remove this comment to see the full error message {children} diff --git a/packages/explorer-ui/components/tailwind/LoadingSpinner.js b/packages/explorer-ui/components/tailwind/LoadingSpinner.js deleted file mode 100644 index ed854642b2..0000000000 --- a/packages/explorer-ui/components/tailwind/LoadingSpinner.js +++ /dev/null @@ -1,23 +0,0 @@ -export default function LoadingSpinner({ className }) { - return ( - - - - - ) -} diff --git a/packages/explorer-ui/components/tailwind/LoadingSpinner.ts b/packages/explorer-ui/components/tailwind/LoadingSpinner.ts new file mode 100644 index 0000000000..4ce87794c6 --- /dev/null +++ b/packages/explorer-ui/components/tailwind/LoadingSpinner.ts @@ -0,0 +1,38 @@ +export default function LoadingSpinner({ className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'svg'. + + // @ts-expect-error TS(2304): Cannot find name 'circle'. + + // @ts-expect-error TS(2304): Cannot find name 'path'. + + + ) +} diff --git a/packages/explorer-ui/components/tailwind/Modal.js b/packages/explorer-ui/components/tailwind/Modal.tsx similarity index 100% rename from packages/explorer-ui/components/tailwind/Modal.js rename to packages/explorer-ui/components/tailwind/Modal.tsx diff --git a/packages/explorer-ui/components/tailwind/ModalHeadline.js b/packages/explorer-ui/components/tailwind/ModalHeadline.ts similarity index 58% rename from packages/explorer-ui/components/tailwind/ModalHeadline.js rename to packages/explorer-ui/components/tailwind/ModalHeadline.ts index 32177bcfa8..23343763e9 100644 --- a/packages/explorer-ui/components/tailwind/ModalHeadline.js +++ b/packages/explorer-ui/components/tailwind/ModalHeadline.ts @@ -7,15 +7,22 @@ export default function ModalHeadline({ closeIconClassName, }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'h3'. + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2749): 'CloseIcon' refers to a value, but is being used a... Remove this comment to see the full error message
diff --git a/packages/explorer-ui/components/tailwind/TabItem.js b/packages/explorer-ui/components/tailwind/TabItem.ts similarity index 63% rename from packages/explorer-ui/components/tailwind/TabItem.js rename to packages/explorer-ui/components/tailwind/TabItem.ts index e510f5b082..95594e29f3 100644 --- a/packages/explorer-ui/components/tailwind/TabItem.js +++ b/packages/explorer-ui/components/tailwind/TabItem.ts @@ -11,8 +11,10 @@ export default function TabItem({ onClick, children, isActive }) { ` } return ( + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(18004): No value exists in scope for the shorthand propert... Remove this comment to see the full error message {children}
) diff --git a/packages/explorer-ui/components/tailwind/Table.js b/packages/explorer-ui/components/tailwind/Table.js deleted file mode 100644 index f5d23a411f..0000000000 --- a/packages/explorer-ui/components/tailwind/Table.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function Table({ children, className }) { - return ( - - {children} -
- ) -} diff --git a/packages/explorer-ui/components/tailwind/Table.ts b/packages/explorer-ui/components/tailwind/Table.ts new file mode 100644 index 0000000000..e3a04ac689 --- /dev/null +++ b/packages/explorer-ui/components/tailwind/Table.ts @@ -0,0 +1,9 @@ +export default function Table({ children, className }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'table'. + + // @ts-expect-error TS(18004): No value exists in scope for the shorthand propert... Remove this comment to see the full error message + {children} +
+ ) +} diff --git a/packages/explorer-ui/components/tailwind/TableBody.js b/packages/explorer-ui/components/tailwind/TableBody.ts similarity index 61% rename from packages/explorer-ui/components/tailwind/TableBody.js rename to packages/explorer-ui/components/tailwind/TableBody.ts index 559bc3496e..55e5a5a973 100644 --- a/packages/explorer-ui/components/tailwind/TableBody.js +++ b/packages/explorer-ui/components/tailwind/TableBody.ts @@ -1,3 +1,4 @@ export default function TableBody({ children }) { + // @ts-expect-error TS(2552): Cannot find name 'tbody'. Did you mean 'Body'? return {children} } diff --git a/packages/explorer-ui/components/tailwind/TableCell.js b/packages/explorer-ui/components/tailwind/TableCell.js deleted file mode 100644 index 2b0ae11a90..0000000000 --- a/packages/explorer-ui/components/tailwind/TableCell.js +++ /dev/null @@ -1,10 +0,0 @@ -export default function TableCell({ className, children, ...props }) { - return ( - - {children} - - ) -} diff --git a/packages/explorer-ui/components/tailwind/TableCell.ts b/packages/explorer-ui/components/tailwind/TableCell.ts new file mode 100644 index 0000000000..199628d714 --- /dev/null +++ b/packages/explorer-ui/components/tailwind/TableCell.ts @@ -0,0 +1,15 @@ +export default function TableCell({ className, children, ...props }) { + return ( + // @ts-expect-error TS(2304): Cannot find name 'td'. + + // @ts-expect-error TS(18004): No value exists in scope for the shorthand propert... Remove this comment to see the full error message + {children} + + ) +} diff --git a/packages/explorer-ui/components/tailwind/TableHeader.js b/packages/explorer-ui/components/tailwind/TableHeader.ts similarity index 54% rename from packages/explorer-ui/components/tailwind/TableHeader.js rename to packages/explorer-ui/components/tailwind/TableHeader.ts index 67c05d9018..04e5e1659c 100644 --- a/packages/explorer-ui/components/tailwind/TableHeader.js +++ b/packages/explorer-ui/components/tailwind/TableHeader.ts @@ -1,6 +1,8 @@ export default function TableHeader({ children }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'thead'. + // @ts-expect-error TS(2304): Cannot find name 'tr'. {children} ) diff --git a/packages/explorer-ui/components/tailwind/TableHeaderCell.js b/packages/explorer-ui/components/tailwind/TableHeaderCell.ts similarity index 55% rename from packages/explorer-ui/components/tailwind/TableHeaderCell.js rename to packages/explorer-ui/components/tailwind/TableHeaderCell.ts index a04d61810c..fb9b281d8a 100644 --- a/packages/explorer-ui/components/tailwind/TableHeaderCell.js +++ b/packages/explorer-ui/components/tailwind/TableHeaderCell.ts @@ -1,7 +1,10 @@ export default function TableHeaderCell({ children }) { return ( + // @ts-expect-error TS(2304): Cannot find name 'th'. {children} diff --git a/packages/explorer-ui/components/tailwind/Tabs.js b/packages/explorer-ui/components/tailwind/Tabs.js deleted file mode 100644 index afb92f86e3..0000000000 --- a/packages/explorer-ui/components/tailwind/Tabs.js +++ /dev/null @@ -1,9 +0,0 @@ -import Grid from '@components/tailwind/Grid' - -export default function Tabs({ children, numTabs = 2, ...props }) { - return ( - - {children} - - ) -} diff --git a/packages/explorer-ui/components/tailwind/Tabs.ts b/packages/explorer-ui/components/tailwind/Tabs.ts new file mode 100644 index 0000000000..6f77eb51e8 --- /dev/null +++ b/packages/explorer-ui/components/tailwind/Tabs.ts @@ -0,0 +1,11 @@ +import Grid from '@components/tailwind/Grid' + +export default function Tabs({ children, numTabs = 2, ...props }) { + return ( + // @ts-expect-error TS(2749): 'Grid' refers to a value, but is being used as a t... Remove this comment to see the full error message + + // @ts-expect-error TS(18004): No value exists in scope for the shorthand propert... Remove this comment to see the full error message + {children} + + ) +} diff --git a/packages/explorer-ui/components/tailwind/Tooltip.js b/packages/explorer-ui/components/tailwind/Tooltip.tsx similarity index 100% rename from packages/explorer-ui/components/tailwind/Tooltip.js rename to packages/explorer-ui/components/tailwind/Tooltip.tsx diff --git a/packages/explorer-ui/constants/index.js b/packages/explorer-ui/constants/index.ts similarity index 100% rename from packages/explorer-ui/constants/index.js rename to packages/explorer-ui/constants/index.ts diff --git a/packages/explorer-ui/constants/networks.js b/packages/explorer-ui/constants/networks.ts similarity index 100% rename from packages/explorer-ui/constants/networks.js rename to packages/explorer-ui/constants/networks.ts diff --git a/packages/explorer-ui/constants/tokens/basic.js b/packages/explorer-ui/constants/tokens/basic.ts similarity index 81% rename from packages/explorer-ui/constants/tokens/basic.js rename to packages/explorer-ui/constants/tokens/basic.ts index e341d53723..03f6742779 100644 --- a/packages/explorer-ui/constants/tokens/basic.js +++ b/packages/explorer-ui/constants/tokens/basic.ts @@ -40,9 +40,10 @@ import { AGEUR, PLS, LINK, - UNIDX + UNIDX, } from '@constants/tokens/mintable' +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const BUSD = new Token({ addresses: { [ChainId.BSC]: '0xe9e7cea3dedca5984780bafc599bd69add087d56', @@ -59,6 +60,7 @@ export const BUSD = new Token({ swapableType: 'USD', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const USDC = new Token({ addresses: { [ChainId.BSC]: '0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d', @@ -103,6 +105,7 @@ export const USDC = new Token({ swapableType: 'USD', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const KLAYTN_USDC = new Token({ addresses: { [ChainId.ETH]: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', @@ -125,6 +128,7 @@ export const KLAYTN_USDC = new Token({ swapableType: 'KLAYTN_USDC', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const KLAYTN_USDT = new Token({ addresses: { [ChainId.ETH]: '0xdac17f958d2ee523a2206206994597c13d831ec7', @@ -142,6 +146,7 @@ export const KLAYTN_USDT = new Token({ swapableType: 'KLAYTN_USDT', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const KLAYTN_oUSDT = new Token({ addresses: { [ChainId.KLAYTN]: '0xceE8FAF64bB97a73bb51E115Aa89C17FfA8dD167', @@ -155,6 +160,7 @@ export const KLAYTN_oUSDT = new Token({ swapableType: 'KLAYTN_USDT', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const KLAYTN_DAI = new Token({ addresses: { [ChainId.ETH]: '0x6b175474e89094c44da98b954eedeac495271d0f', @@ -172,8 +178,7 @@ export const KLAYTN_DAI = new Token({ swapableType: 'KLAYTN_DAI', }) - - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const DOGECHAIN_BUSD = new Token({ addresses: { [ChainId.BSC]: '0xe9e7cea3dedca5984780bafc599bd69add087d56', @@ -189,6 +194,7 @@ export const DOGECHAIN_BUSD = new Token({ swapableType: 'DOGECHAIN_BUSD', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const USDT = new Token({ addresses: { [ChainId.BSC]: '0x55d398326f99059ff775485246999027b3197955', @@ -203,7 +209,7 @@ export const USDT = new Token({ [ChainId.BOBA]: '0x5DE1677344D3Cb0D7D465c10b72A8f60699C062d', [ChainId.AURORA]: '0x4988a896b1227218e4A686fdE5EabdcAbd91571f', [ChainId.KLAYTN]: '0xd6dAb4CfF47dF175349e6e7eE2BF7c40Bb8C05A3', - [ChainId.CANTO]: '0xd567B3d7B8FE3C79a1AD8dA978812cfC4Fa05e75' + [ChainId.CANTO]: '0xd567B3d7B8FE3C79a1AD8dA978812cfC4Fa05e75', }, decimals: { [ChainId.BSC]: 18, @@ -216,7 +222,7 @@ export const USDT = new Token({ [ChainId.BOBA]: 6, [ChainId.AURORA]: 6, [ChainId.CRONOS]: 6, - [ChainId.CANTO]: 6 + [ChainId.CANTO]: 6, }, symbol: 'USDT', name: 'USD Tether', @@ -229,6 +235,7 @@ export const USDT = new Token({ swapableType: 'USD', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const DAI = new Token({ addresses: { [ChainId.BSC]: '0x1af3f329e8be154074d8769d1ffa4ee058b1dbc3', @@ -248,6 +255,7 @@ export const DAI = new Token({ swapableType: 'USD', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const WBTC = new Token({ addresses: { [ChainId.ETH]: '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599', @@ -265,6 +273,7 @@ export const WBTC = new Token({ swapableType: 'WBTC', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const UST = new Token({ addresses: { // [ChainId.BSC]: '0x23396cf899ca06c4472205fc903bdb4de249d6fc', @@ -296,6 +305,7 @@ export const UST = new Token({ swapableType: 'UST', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const MIM = new Token({ addresses: { [ChainId.FANTOM]: '0x82f0b8b456c1a451378467398982d4834b6829c1', @@ -308,6 +318,7 @@ export const MIM = new Token({ swapableType: 'USD', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const WETH = new Token({ addresses: { [ChainId.ETH]: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', @@ -324,6 +335,7 @@ export const WETH = new Token({ swapableType: 'ETH', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const WETHE = new Token({ addresses: { [ChainId.AVALANCHE]: '0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab', @@ -340,6 +352,7 @@ export const WETHE = new Token({ * WETH on Moonbeam is nETH on moonbeam. * is this stupid & annoying - yes */ +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const WETHBEAM = new Token({ addresses: { [ChainId.MOONBEAM]: '0x3192Ae73315c3634Ffa217f71CF6CBc30FeE349A', @@ -352,6 +365,7 @@ export const WETHBEAM = new Token({ swapableType: 'ETH', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const AVWETH = new Token({ addresses: { [ChainId.AVALANCHE]: '0x53f7c5869a859f0aec3d334ee8b4cf01e3492f21', @@ -364,6 +378,7 @@ export const AVWETH = new Token({ swapableType: 'ETH', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const ONEETH = new Token({ addresses: { [ChainId.HARMONY]: '0x6983d1e6def3690c4d616b13597a09e6193ea013', @@ -376,6 +391,7 @@ export const ONEETH = new Token({ swapableType: 'ETH', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const FTMETH = new Token({ addresses: { [ChainId.FANTOM]: '0x74b23882a30290451A17c44f4F05243b6b58C76d', @@ -388,6 +404,7 @@ export const FTMETH = new Token({ swapableType: 'ETH', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const CANTOETH = new Token({ addresses: { [ChainId.CANTO]: '0x5FD55A1B9FC24967C4dB09C513C3BA0DFa7FF687', @@ -400,7 +417,7 @@ export const CANTOETH = new Token({ swapableType: 'ETH', }) - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const METISETH = new Token({ addresses: { [ChainId.METIS]: '0x420000000000000000000000000000000000000A', @@ -413,6 +430,7 @@ export const METISETH = new Token({ swapableType: 'ETH', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const SYN = new Token({ addresses: { [ChainId.ETH]: '0x0f2d719407fdbeff09d87557abb7232601fd9f29', @@ -430,7 +448,7 @@ export const SYN = new Token({ [ChainId.CRONOS]: '0xFD0F80899983b8D46152aa1717D76cba71a31616', [ChainId.AURORA]: '0xd80d8688b02B3FD3afb81cDb124F188BB5aD0445', [ChainId.DOGECHAIN]: '0xDfA53EeBA61D69E1D2b56b36d78449368F0265c1', - [ChainId.CANTO]: '0x555982d2E211745b96736665e19D9308B615F78e' + [ChainId.CANTO]: '0x555982d2E211745b96736665e19D9308B615F78e', }, decimals: 18, symbol: 'SYN', @@ -440,6 +458,7 @@ export const SYN = new Token({ swapableType: 'SYN', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const FRAX = new Token({ addresses: { [ChainId.ETH]: '0x853d955acef822db058eb8505911ed77f175b99e', @@ -456,6 +475,7 @@ export const FRAX = new Token({ swapableType: 'FRAX', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const SYN_FRAX = new Token({ addresses: { // [ChainId.FANTOM]: '0x1852F70512298d56e9c8FDd905e02581E04ddb2a', @@ -473,6 +493,7 @@ export const SYN_FRAX = new Token({ /** * nUSD is the token involved in the bridge. */ +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const NUSD = new Token({ addresses: { [ChainId.BSC]: '0x23b891e5c62e0955ae2bd185990103928ab817b3', @@ -488,7 +509,7 @@ export const NUSD = new Token({ [ChainId.AURORA]: '0x07379565cD8B0CaE7c60Dc78e7f601b34AF2A21c', [ChainId.METIS]: '0x961318Fc85475E125B99Cc9215f62679aE5200aB', [ChainId.DFK]: '0x3AD9DFE640E1A9Cc1D9B0948620820D975c3803a', - [ChainId.CANTO]: '0xD8836aF2e565D3Befce7D906Af63ee45a57E8f80' + [ChainId.CANTO]: '0xD8836aF2e565D3Befce7D906Af63ee45a57E8f80', }, decimals: 18, symbol: 'nUSD', @@ -498,9 +519,10 @@ export const NUSD = new Token({ swapableType: 'USD', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const NOTE = new Token({ addresses: { - [ChainId.CANTO]: '0x4e71a2e537b7f9d9413d3991d37958c0b5e1e503' + [ChainId.CANTO]: '0x4e71a2e537b7f9d9413d3991d37958c0b5e1e503', }, decimals: 18, symbol: 'NOTE', @@ -510,6 +532,7 @@ export const NOTE = new Token({ swapableType: 'USD', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: any;... Remove this comment to see the full error message export const DFK_USDC = new Token({ addresses: { [ChainId.DFK]: NUSD.addresses[ChainId.DFK], @@ -527,6 +550,7 @@ export const DFK_USDC = new Token({ /** * nETH is the token involved in the bridge. it is backed by internet monies... */ +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const NETH = new Token({ addresses: { [ChainId.FANTOM]: '0x67C10C397dD0Ba417329543c1a40eb48AAa7cd00', @@ -539,7 +563,7 @@ export const NETH = new Token({ [ChainId.METIS]: '0x931B8f17764362A3325D30681009f0eDd6211231', [ChainId.KLAYTN]: '0xCD6f29dC9Ca217d0973d3D21bF58eDd3CA871a86', [ChainId.DOGECHAIN]: '0x9F4614E4Ea4A0D7c4B1F946057eC030beE416cbB', - [ChainId.CANTO]: '0x09fEC30669d63A13c666d2129230dD5588E2e240' + [ChainId.CANTO]: '0x09fEC30669d63A13c666d2129230dD5588E2e240', }, decimals: 18, symbol: 'nETH', @@ -549,6 +573,7 @@ export const NETH = new Token({ swapableType: 'ETH', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: any;... Remove this comment to see the full error message export const KLAYTN_WETH = new Token({ addresses: { [ChainId.KLAYTN]: NETH.addresses[ChainId.KLAYTN], @@ -565,6 +590,7 @@ export const KLAYTN_WETH = new Token({ swapableType: 'ETH', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const ETH = new Token({ addresses: { [ChainId.ETH]: '', @@ -581,6 +607,7 @@ export const ETH = new Token({ swapableType: 'ETH', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const MOVR = new Token({ addresses: { [ChainId.MOONRIVER]: '', @@ -594,6 +621,7 @@ export const MOVR = new Token({ swapableType: 'MOVR', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const AVAX = new Token({ addresses: { [ChainId.AVALANCHE]: '', @@ -607,6 +635,7 @@ export const AVAX = new Token({ swapableType: 'AVAX', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const WMOVR = new Token({ addresses: { [ChainId.MOONBEAM]: '0x1d4C2a246311bB9f827F4C768e277FF5787B7D7E', @@ -620,6 +649,7 @@ export const WMOVR = new Token({ swapableType: 'MOVR', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const WAVAX = new Token({ addresses: { [ChainId.AVALANCHE]: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7', @@ -635,6 +665,7 @@ export const WAVAX = new Token({ swapableType: 'AVAX', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const SYNAVAX = new Token({ addresses: { [ChainId.AVALANCHE]: '0xD9eAA386cCD65F30b77FF175F6b52115FE454fD6', @@ -648,6 +679,7 @@ export const SYNAVAX = new Token({ swapableType: 'AVAX', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const MULTIAVAX = new Token({ addresses: { [ChainId.HARMONY]: '0xb12c13e66ade1f72f71834f2fc5082db8c091358', @@ -660,6 +692,7 @@ export const MULTIAVAX = new Token({ swapableType: 'AVAX', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const JEWEL = new Token({ addresses: { [ChainId.DFK]: '', @@ -673,6 +706,7 @@ export const JEWEL = new Token({ swapableType: 'JEWEL', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const WJEWEL = new Token({ addresses: { [ChainId.DFK]: '0xCCb93dABD71c8Dad03Fc4CE5559dC3D89F67a260', // from actual jewl @@ -687,6 +721,7 @@ export const WJEWEL = new Token({ swapableType: 'JEWEL', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const KLAY = new Token({ addresses: { [ChainId.KLAYTN]: '', @@ -700,6 +735,7 @@ export const KLAY = new Token({ swapableType: 'KLAY', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const WKLAY = new Token({ addresses: { [ChainId.DFK]: '0x97855Ba65aa7ed2F65Ed832a776537268158B78a', @@ -713,6 +749,7 @@ export const WKLAY = new Token({ swapableType: 'KLAY', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const SYNJEWEL = new Token({ addresses: { [ChainId.AVALANCHE]: '0x997Ddaa07d716995DE90577C123Db411584E5E46', @@ -726,6 +763,7 @@ export const SYNJEWEL = new Token({ swapableType: 'JEWEL', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const XJEWEL = new Token({ addresses: { [ChainId.DFK]: '0x77f2656d04E158f915bC22f07B779D94c1DC47Ff', @@ -761,6 +799,7 @@ export const XJEWEL = new Token({ // xJEWEL DFK Chain // AVAX DFKChain +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const WMATIC = new Token({ addresses: { [ChainId.POLYGON]: '0x9b17bAADf0f21F03e35249e0e59723F34994F806', @@ -773,6 +812,7 @@ export const WMATIC = new Token({ logo: maticLogo, }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const MATIC = new Token({ addresses: { [ChainId.DFK]: '0xD17a41Cd199edF1093A9Be4404EaDe52Ec19698e', @@ -785,6 +825,7 @@ export const MATIC = new Token({ logo: maticLogo, }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const WBNB = new Token({ addresses: { [ChainId.BSC]: '0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c', @@ -797,17 +838,19 @@ export const WBNB = new Token({ swapableType: 'BNB', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const DEPRECATED_WKLAY = new Token({ addresses: { - [ChainId.KLAYTN]: '0x5819b6af194a78511c79c85ea68d2377a7e9335f' + [ChainId.KLAYTN]: '0x5819b6af194a78511c79c85ea68d2377a7e9335f', }, decimals: 18, symbol: 'WKLAY', name: 'Deprecated Wrapped Klay', description: 'ERC-20 Wrapped form of KLAY', - swapableType: 'KLAY' + swapableType: 'KLAY', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const PEPE = new Token({ addresses: { [ChainId.ETH]: '0x6982508145454ce325ddbe47a25d4ec3d2311933', @@ -819,7 +862,7 @@ export const PEPE = new Token({ name: 'Pepe', logo: pepeLogo, description: 'PEPE', - swapableType: "PEPE", + swapableType: 'PEPE', }) export const BASIC_TOKENS_BY_CHAIN = { [ChainId.ETH]: [ @@ -848,7 +891,7 @@ export const BASIC_TOKENS_BY_CHAIN = { KLAYTN_DAI, LINK, PEPE, - UNIDX + UNIDX, ], [ChainId.BSC]: [ BUSD, @@ -952,7 +995,7 @@ export const BASIC_TOKENS_BY_CHAIN = { PLS, AGEUR, UNIDX, - PEPE + PEPE, ], [ChainId.AVALANCHE]: [ USDC, @@ -1051,17 +1094,9 @@ export const BASIC_TOKENS_BY_CHAIN = { KLAYTN_WETH, WBTC, DOGECHAIN_BUSD, - NFD + NFD, ], - [ChainId.CANTO]: [ - SYN, - NUSD, - CANTOETH, - NETH, - NOTE, - USDC, - USDT - ] + [ChainId.CANTO]: [SYN, NUSD, CANTOETH, NETH, NOTE, USDC, USDT], } const TOKEN_HASH_MAP = {} diff --git a/packages/explorer-ui/constants/tokens/mintable.js b/packages/explorer-ui/constants/tokens/mintable.ts similarity index 70% rename from packages/explorer-ui/constants/tokens/mintable.js rename to packages/explorer-ui/constants/tokens/mintable.ts index ef97fdfeb9..871af20a64 100644 --- a/packages/explorer-ui/constants/tokens/mintable.js +++ b/packages/explorer-ui/constants/tokens/mintable.ts @@ -15,11 +15,11 @@ import h2oLogo from '@assets/icons/h2o.svg' import l2daoLogo from '@assets/icons/l2dao.svg' import plsLogo from '@assets/icons/pls.svg' import ageurLogo from '@assets/icons/ageur.svg' -import chainlinkLogo from "@assets/icons/chainlink.svg" -import unidexLogo from "@assets/icons/unidex.png" +import chainlinkLogo from '@assets/icons/chainlink.svg' +import unidexLogo from '@assets/icons/unidex.png' import { Token } from '@utils/classes/Token' - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const GOHM = new Token({ addresses: { [ChainId.ETH]: '0x0ab87046fBb341D058F17CBC4c1133F25a20a52f', @@ -41,22 +41,24 @@ export const GOHM = new Token({ name: 'Olympus DAO', logo: ohmLogo, description: 'OHM', - swapableType: "OHM", + swapableType: 'OHM', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const LINK = new Token({ addresses: { [ChainId.ETH]: '0x514910771af9ca656af840dff83e8264ecf986ca', - [ChainId.KLAYTN]: '0xfbed1abb3ad0f8c467068de9fde905887e8c9118' + [ChainId.KLAYTN]: '0xfbed1abb3ad0f8c467068de9fde905887e8c9118', }, decimals: 18, symbol: 'LINK', name: 'ChainLink Token', logo: chainlinkLogo, description: 'LINK', - swapableType: "LINK", + swapableType: 'LINK', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const HIGHSTREET = new Token({ addresses: { [ChainId.ETH]: '0x71Ab77b7dbB4fa7e017BC15090b2163221420282', @@ -67,15 +69,15 @@ export const HIGHSTREET = new Token({ name: 'Highstreet', logo: highstreetLogo, description: 'HIGH is the token behind Highstreet', - swapableType: "HIGHSTREET", + swapableType: 'HIGHSTREET', }) - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const JUMP = new Token({ addresses: { - [ChainId.BSC]: '0x130025ee738a66e691e6a7a62381cb33c6d9ae83', // redeem - [ChainId.FANTOM]: '0x78DE9326792ce1d6eCA0c978753c6953Cdeedd73', // deposit - [ChainId.METIS]: '0xE3c82A836Ec85311a433fBd9486EfAF4b1AFbF48', // redeem + [ChainId.BSC]: '0x130025ee738a66e691e6a7a62381cb33c6d9ae83', // redeem + [ChainId.FANTOM]: '0x78DE9326792ce1d6eCA0c978753c6953Cdeedd73', // deposit + [ChainId.METIS]: '0xE3c82A836Ec85311a433fBd9486EfAF4b1AFbF48', // redeem }, decimals: 18, symbol: 'JUMP', @@ -83,14 +85,14 @@ export const JUMP = new Token({ logo: hyperjumpLogo, description: 'JUMP is the token behind Hyperjump', docUrl: '', - swapableType: "JUMP", + swapableType: 'JUMP', }) - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const SFI = new Token({ addresses: { [ChainId.ETH]: '0xb753428af26e81097e7fd17f40c88aaa3e04902c', - [ChainId.AVALANCHE]: '0xc2Bf0A1f7D8Da50D608bc96CF701110d4A438312', // deposit + [ChainId.AVALANCHE]: '0xc2Bf0A1f7D8Da50D608bc96CF701110d4A438312', // deposit }, decimals: 18, symbol: 'SFI', @@ -98,11 +100,10 @@ export const SFI = new Token({ logo: sfiLogo, description: '', docUrl: '', - swapableType: "SFI", + swapableType: 'SFI', }) - - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const DOG = new Token({ addresses: { [ChainId.ETH]: '0xBAac2B4491727D78D2b78815144570b9f2Fe8899', @@ -116,16 +117,16 @@ export const DOG = new Token({ logo: dogLogo, description: 'DOG is the token behind the Doge NFT', docUrl: '', - swapableType: "DOG", + swapableType: 'DOG', }) - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const NFD = new Token({ addresses: { - [ChainId.BSC]: '0x0fe9778c005a5a6115cbe12b0568a2d50b765a51', // redeem - [ChainId.AVALANCHE]: '0xf1293574ee43950e7a8c9f1005ff097a9a713959', // redeem - [ChainId.DOGECHAIN]: '0x868055ADFA27D331d5b69b1BF3469aDAAc3ba7f2', // redeem - [ChainId.POLYGON]: '0x0a5926027d407222f8fe20f24cb16e103f617046', // deposit + [ChainId.BSC]: '0x0fe9778c005a5a6115cbe12b0568a2d50b765a51', // redeem + [ChainId.AVALANCHE]: '0xf1293574ee43950e7a8c9f1005ff097a9a713959', // redeem + [ChainId.DOGECHAIN]: '0x868055ADFA27D331d5b69b1BF3469aDAAc3ba7f2', // redeem + [ChainId.POLYGON]: '0x0a5926027d407222f8fe20f24cb16e103f617046', // deposit }, decimals: 18, symbol: 'NFD', @@ -133,14 +134,14 @@ export const NFD = new Token({ logo: nfdLogo, description: 'Feisty Doge NFT', docUrl: '', - swapableType: "NFD", + swapableType: 'NFD', }) - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const SOLAR = new Token({ addresses: { - [ChainId.MOONBEAM]: '0x0DB6729C03C85B0708166cA92801BcB5CAc781fC', // redeem - [ChainId.MOONRIVER]: '0x76906411D07815491A5E577022757aD941fb5066', // deposit + [ChainId.MOONBEAM]: '0x0DB6729C03C85B0708166cA92801BcB5CAc781fC', // redeem + [ChainId.MOONRIVER]: '0x76906411D07815491A5E577022757aD941fb5066', // deposit }, decimals: 18, symbol: 'veSOLAR', @@ -148,17 +149,17 @@ export const SOLAR = new Token({ logo: solarbeamLogo, description: 'Vested SolarBeam', docUrl: '', - swapableType: "SOLAR", + swapableType: 'SOLAR', }) - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const GMX = new Token({ addresses: { - [ChainId.ARBITRUM]: '0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a', // deposit - [ChainId.AVALANCHE]: '0x62edc0692bd897d2295872a9ffcac5425011c661', // redeem + [ChainId.ARBITRUM]: '0xfc5a1a6eb076a2c7ad06ed22c90d7e710e35ad0a', // deposit + [ChainId.AVALANCHE]: '0x62edc0692bd897d2295872a9ffcac5425011c661', // redeem }, wrapperAddresses: { - [ChainId.AVALANCHE]: "0x20A9DC684B4d0407EF8C9A302BEAaA18ee15F656" + [ChainId.AVALANCHE]: '0x20A9DC684B4d0407EF8C9A302BEAaA18ee15F656', }, decimals: 18, symbol: 'GMX', @@ -166,17 +167,17 @@ export const GMX = new Token({ logo: gmxLogo, description: 'GMX Financial', docUrl: '', - swapableType: "GMX", + swapableType: 'GMX', }) - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const SDT = new Token({ addresses: { - [ChainId.ETH]: '0x73968b9a57c6e53d41345fd57a6e6ae27d6cdb2f', // deposit - [ChainId.AVALANCHE]: '0xCCBf7c451F81752F7d2237F2c18C371E6e089E69', // redeem + [ChainId.ETH]: '0x73968b9a57c6e53d41345fd57a6e6ae27d6cdb2f', // deposit + [ChainId.AVALANCHE]: '0xCCBf7c451F81752F7d2237F2c18C371E6e089E69', // redeem [ChainId.ARBITRUM]: '0x087d18A77465c34CDFd3a081a2504b7E86CE4EF8', - [ChainId.FANTOM]: '0xE3c82A836Ec85311a433fBd9486EfAF4b1AFbF48', // redeem - [ChainId.HARMONY]: '0xE3c82A836Ec85311a433fBd9486EfAF4b1AFbF48', // redeem + [ChainId.FANTOM]: '0xE3c82A836Ec85311a433fBd9486EfAF4b1AFbF48', // redeem + [ChainId.HARMONY]: '0xE3c82A836Ec85311a433fBd9486EfAF4b1AFbF48', // redeem }, decimals: 18, symbol: 'SDT', @@ -184,15 +185,15 @@ export const SDT = new Token({ logo: sdtLogo, description: 'Stake DAO', docUrl: '', - swapableType: "SDT", + swapableType: 'SDT', }) - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const NEWO = new Token({ addresses: { - [ChainId.ETH]: '0x98585dFc8d9e7D48F0b1aE47ce33332CF4237D96', // deposit - [ChainId.AVALANCHE]: '0x4Bfc90322dD638F81F034517359BD447f8E0235a', // redeem - [ChainId.ARBITRUM]: '0x0877154a755B24D499B8e2bD7ecD54d3c92BA433', // redeem + [ChainId.ETH]: '0x98585dFc8d9e7D48F0b1aE47ce33332CF4237D96', // deposit + [ChainId.AVALANCHE]: '0x4Bfc90322dD638F81F034517359BD447f8E0235a', // redeem + [ChainId.ARBITRUM]: '0x0877154a755B24D499B8e2bD7ecD54d3c92BA433', // redeem }, decimals: 18, symbol: 'NEWO', @@ -200,9 +201,10 @@ export const NEWO = new Token({ logo: newoLogo, description: 'New Order', docUrl: '', - swapableType: "NEWO", + swapableType: 'NEWO', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const USDB = new Token({ addresses: { [ChainId.ETH]: '0x02b5453d92b730f29a86a0d5ef6e930c4cf8860b', @@ -218,14 +220,14 @@ export const USDB = new Token({ logo: usdbLogo, description: 'USDB', docUrl: '', - swapableType: "USDB", + swapableType: 'USDB', }) - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const VSTA = new Token({ addresses: { - [ChainId.ETH]: '0xA8d7F5e7C78ed0Fa097Cc5Ec66C1DC3104c9bbeb', // redeem - [ChainId.ARBITRUM]: '0xa684cd057951541187f288294a1e1c2646aa2d24', // deposit + [ChainId.ETH]: '0xA8d7F5e7C78ed0Fa097Cc5Ec66C1DC3104c9bbeb', // redeem + [ChainId.ARBITRUM]: '0xa684cd057951541187f288294a1e1c2646aa2d24', // deposit }, decimals: 18, symbol: 'VSTA', @@ -233,19 +235,20 @@ export const VSTA = new Token({ logo: vstaLogo, description: 'Vesta Finance', docUrl: '', - swapableType: "VSTA", + swapableType: 'VSTA', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const H2O = new Token({ addresses: { - [ChainId.ETH]: '0x0642026e7f0b6ccac5925b4e7fa61384250e1701', // deposit - [ChainId.ARBITRUM]: '0xD1c6f989e9552DB523aBAE2378227fBb059a3976', // redeem - [ChainId.AVALANCHE]: '0xC6b11a4Fd833d1117E9D312c02865647cd961107', // redeem - [ChainId.BSC]: '0x03eFca7CEb108734D3777684F3C0A0d8ad652f79', // redeem - [ChainId.MOONBEAM]: '0xA46aDF6D5881ca0b8596EDadF8f058F8c16d8B68', // redeem - [ChainId.MOONRIVER]: '0x9c0a820bb01e2807aCcd1c682d359e92DDd41403', // redeem - [ChainId.OPTIMISM]: '0xE3c82A836Ec85311a433fBd9486EfAF4b1AFbF48', // redeem - [ChainId.POLYGON]: '0x32ba7cF7d681357529013de6a2CDF93933C0dF3f', // redeem + [ChainId.ETH]: '0x0642026e7f0b6ccac5925b4e7fa61384250e1701', // deposit + [ChainId.ARBITRUM]: '0xD1c6f989e9552DB523aBAE2378227fBb059a3976', // redeem + [ChainId.AVALANCHE]: '0xC6b11a4Fd833d1117E9D312c02865647cd961107', // redeem + [ChainId.BSC]: '0x03eFca7CEb108734D3777684F3C0A0d8ad652f79', // redeem + [ChainId.MOONBEAM]: '0xA46aDF6D5881ca0b8596EDadF8f058F8c16d8B68', // redeem + [ChainId.MOONRIVER]: '0x9c0a820bb01e2807aCcd1c682d359e92DDd41403', // redeem + [ChainId.OPTIMISM]: '0xE3c82A836Ec85311a433fBd9486EfAF4b1AFbF48', // redeem + [ChainId.POLYGON]: '0x32ba7cF7d681357529013de6a2CDF93933C0dF3f', // redeem }, decimals: 18, symbol: 'H2O', @@ -253,13 +256,14 @@ export const H2O = new Token({ logo: h2oLogo, description: 'H2O', docUrl: '', - swapableType: "H2O", + swapableType: 'H2O', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const L2DAO = new Token({ addresses: { - [ChainId.ARBITRUM]: '0x2CaB3abfC1670D1a452dF502e216a66883cDf079', // deposit - [ChainId.OPTIMISM]: '0xd52f94DF742a6F4B4C8b033369fE13A41782Bf44', // redeem + [ChainId.ARBITRUM]: '0x2CaB3abfC1670D1a452dF502e216a66883cDf079', // deposit + [ChainId.OPTIMISM]: '0xd52f94DF742a6F4B4C8b033369fE13A41782Bf44', // redeem }, decimals: 18, symbol: 'L2DAO', @@ -267,13 +271,14 @@ export const L2DAO = new Token({ logo: l2daoLogo, description: 'Layer2DAO', docUrl: '', - swapableType: "L2DAO", + swapableType: 'L2DAO', }) +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const PLS = new Token({ addresses: { - [ChainId.ARBITRUM]: '0x51318b7d00db7acc4026c88c3952b66278b6a67f', // deposit - [ChainId.OPTIMISM]: '0xD9eAA386cCD65F30b77FF175F6b52115FE454fD6', // redeem + [ChainId.ARBITRUM]: '0x51318b7d00db7acc4026c88c3952b66278b6a67f', // deposit + [ChainId.OPTIMISM]: '0xD9eAA386cCD65F30b77FF175F6b52115FE454fD6', // redeem }, decimals: 18, symbol: 'PLS', @@ -281,15 +286,15 @@ export const PLS = new Token({ logo: plsLogo, description: 'PlutusDao', docUrl: '', - swapableType: "PLS", + swapableType: 'PLS', }) - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const AGEUR = new Token({ addresses: { - [ChainId.ETH]: '0x1a7e4e63778B4f12a199C062f3eFdD288afCBce8', // deposit - [ChainId.ARBITRUM]: '0x16BFc5fe024980124bEf51d1D792dC539d1B5Bf0', // redeem - [ChainId.OPTIMISM]: '0xa0554607e477cdC9d0EE2A6b087F4b2DC2815C22', // redeem + [ChainId.ETH]: '0x1a7e4e63778B4f12a199C062f3eFdD288afCBce8', // deposit + [ChainId.ARBITRUM]: '0x16BFc5fe024980124bEf51d1D792dC539d1B5Bf0', // redeem + [ChainId.OPTIMISM]: '0xa0554607e477cdC9d0EE2A6b087F4b2DC2815C22', // redeem }, decimals: 18, symbol: 'agEUR', @@ -297,15 +302,14 @@ export const AGEUR = new Token({ logo: ageurLogo, description: 'Angle Euro', docUrl: '', - swapableType: "AGEUR", + swapableType: 'AGEUR', }) - - +// @ts-expect-error TS(2345): Argument of type '{ addresses: { [x: number]: stri... Remove this comment to see the full error message export const UNIDX = new Token({ addresses: { - [ChainId.ETH]: '0x95b3497bbcccc46a8f45f5cf54b0878b39f8d96c', // deposit - [ChainId.ARBITRUM]: '0x5429706887FCb58a595677B73E9B0441C25d993D', // redeem + [ChainId.ETH]: '0x95b3497bbcccc46a8f45f5cf54b0878b39f8d96c', // deposit + [ChainId.ARBITRUM]: '0x5429706887FCb58a595677B73E9B0441C25d993D', // redeem }, decimals: 18, symbol: 'UNIDX', @@ -313,5 +317,5 @@ export const UNIDX = new Token({ logo: unidexLogo, description: 'Unidex', docUrl: '', - swapableType: "UNIDX", + swapableType: 'UNIDX', }) diff --git a/packages/explorer-ui/craco.config.js b/packages/explorer-ui/craco.config.ts similarity index 74% rename from packages/explorer-ui/craco.config.js rename to packages/explorer-ui/craco.config.ts index 8078ab29ff..ffdcd0658e 100644 --- a/packages/explorer-ui/craco.config.js +++ b/packages/explorer-ui/craco.config.ts @@ -1,4 +1,5 @@ // craco.config.js +// @ts-expect-error TS(1208): 'craco.config.ts' cannot be compiled under '--isol... Remove this comment to see the full error message const CracoAlias = require('craco-alias') module.exports = { diff --git a/packages/explorer-ui/graphql/apollo-client.js b/packages/explorer-ui/graphql/apollo-client.ts similarity index 100% rename from packages/explorer-ui/graphql/apollo-client.js rename to packages/explorer-ui/graphql/apollo-client.ts diff --git a/packages/explorer-ui/graphql/index.js b/packages/explorer-ui/graphql/index.ts similarity index 100% rename from packages/explorer-ui/graphql/index.js rename to packages/explorer-ui/graphql/index.ts diff --git a/packages/explorer-ui/graphql/queries/index.js b/packages/explorer-ui/graphql/queries/index.ts similarity index 100% rename from packages/explorer-ui/graphql/queries/index.js rename to packages/explorer-ui/graphql/queries/index.ts diff --git a/packages/explorer-ui/next.config.js b/packages/explorer-ui/next.config.ts similarity index 100% rename from packages/explorer-ui/next.config.js rename to packages/explorer-ui/next.config.ts diff --git a/packages/explorer-ui/pages/_app.js b/packages/explorer-ui/pages/_app.js deleted file mode 100644 index 0c14816c90..0000000000 --- a/packages/explorer-ui/pages/_app.js +++ /dev/null @@ -1,16 +0,0 @@ -import {ApolloProvider} from '@apollo/client' -import client from '../apollo-client' -import {PageWrapper} from '@components/layouts//MainLayout' -import '../styles/global.css' - -function MyApp({ Component, pageProps }) { - return ( - - - - - - ) -} - -export default MyApp diff --git a/packages/explorer-ui/pages/_app.ts b/packages/explorer-ui/pages/_app.ts new file mode 100644 index 0000000000..0545d2ec84 --- /dev/null +++ b/packages/explorer-ui/pages/_app.ts @@ -0,0 +1,19 @@ +import {ApolloProvider} from '@apollo/client' +import client from '../apollo-client' +import {PageWrapper} from '@components/layouts//MainLayout' +import '../styles/global.css' + +function MyApp({ Component, pageProps }) { + return ( + // @ts-expect-error TS(2749): 'ApolloProvider' refers to a value, but is being u... Remove this comment to see the full error message + + // @ts-expect-error TS(2749): 'PageWrapper' refers to a value, but is being used... Remove this comment to see the full error message + + // @ts-expect-error TS(2749): 'Component' refers to a value, but is being used a... Remove this comment to see the full error message + + + + ) +} + +export default MyApp diff --git a/packages/explorer-ui/pages/address/[address].js b/packages/explorer-ui/pages/address/[address].tsx similarity index 100% rename from packages/explorer-ui/pages/address/[address].js rename to packages/explorer-ui/pages/address/[address].tsx diff --git a/packages/explorer-ui/pages/chain/[chainId].js b/packages/explorer-ui/pages/chain/[chainId].tsx similarity index 100% rename from packages/explorer-ui/pages/chain/[chainId].js rename to packages/explorer-ui/pages/chain/[chainId].tsx diff --git a/packages/explorer-ui/pages/index.js b/packages/explorer-ui/pages/index.ts similarity index 68% rename from packages/explorer-ui/pages/index.js rename to packages/explorer-ui/pages/index.ts index 8b75bbd76c..662a334d42 100644 --- a/packages/explorer-ui/pages/index.js +++ b/packages/explorer-ui/pages/index.ts @@ -16,6 +16,7 @@ const client = new ApolloClient({ link: link, ssrMode: true, cache: new InMemoryCache(), + // @ts-expect-error TS(2345): Argument of type '{ link: HttpLink; ssrMode: true;... Remove this comment to see the full error message fetchPolicy: 'cache-and-network', fetchOptions: { mode: 'no-cors', @@ -24,6 +25,7 @@ const client = new ApolloClient({ function Index() { return ( + // @ts-expect-error TS(2749): 'Home' refers to a value, but is being used as a t... Remove this comment to see the full error message ) } diff --git a/packages/explorer-ui/pages/privacy/index.js b/packages/explorer-ui/pages/privacy/index.ts similarity index 76% rename from packages/explorer-ui/pages/privacy/index.js rename to packages/explorer-ui/pages/privacy/index.ts index 27919e93b1..c552571db4 100644 --- a/packages/explorer-ui/pages/privacy/index.js +++ b/packages/explorer-ui/pages/privacy/index.ts @@ -7,35 +7,63 @@ export default function Privacy() { return ( + // @ts-expect-error TS(2749): 'StandardPageContainer' refers to a value, but is ... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'p'.

Last updated: January, 2023

+ // @ts-expect-error TS(2304): Cannot find name 'div'.

+ // @ts-expect-error TS(2304): Cannot find name 'Interoperability'. Interoperability Inc. ("Interoperability") is committed to protecting and respecting your privacy. This Privacy Policy describes how your personal or behavioral data is collected, used and stored when you access https://synapseprotocol.com/ (the "Site"). + // @ts-expect-error TS(2365): Operator '>' cannot be applied to types 'boolean' ... Remove this comment to see the full error message
This Privacy Policy may be modified from time to time which will be indicated by changing the date at the top of this page. Your use of the Site is at all times subject to the Terms of Service, which incorporates this Privacy Policy. + // @ts-expect-error TS(2304): Cannot find name 'br'.
1. Acceptance of the Privacy Policy + // @ts-expect-error TS(2304): Cannot find name 'br'.
By accessing the Site, you signify acceptance to the terms of this Privacy Policy. Where required by law, you will be asked for your consent to the collection and use of your information as described further below. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
Additional "just-in-time" disclosures or information about the data processing practices of specific services may be provided. These notices may supplement or clarify the privacy practices applicable to the Site or may provide you with additional choices about how your data is processed. If you do not agree with or you are not comfortable with any aspect of this Privacy Policy, you should immediately discontinue access or use of the Site. You may only access the Site if you are above the age of majority in your jurisdiction of residence. + // @ts-expect-error TS(2304): Cannot find name 'br'.
2. What does this Privacy Policy cover? + // @ts-expect-error TS(2365): Operator '>' cannot be applied to types 'boolean' ... Remove this comment to see the full error message
This Privacy Policy sets forth our policy for collecting or using personal or behavioral data in connection with users access and using of the Site. + // @ts-expect-error TS(2304): Cannot find name 'br'.
3. The Information We Collect + // @ts-expect-error TS(2304): Cannot find name 'br'.
Interoperability does not collect your personal information and does not use any automatic tracking technologies. The Interoperability application leverages blockchain technologies that use only public information available on the blockchain. You are not required to provide any personal information to the Site. However, the transactions conducted from your wallets are publicly accessible on blockchain networks access through the Site. + // @ts-expect-error TS(2304): Cannot find name 'br'.
Interoperability does not track IP addresses. Where third parties collect IP addresses by default: (1) manual removal of IP tracking is requested, and (2) IP data is anonymization to prevent product analytics services from receiving IP data. + // @ts-expect-error TS(2304): Cannot find name 'br'.
Interoperability uses Google Analytics for purposes of monitoring action on the Site. All IP addresses are anonymized. + // @ts-expect-error TS(2304): Cannot find name 'br'.
Interoperability does not store personal or message information or in any way use information to associate or cross-associate wallet data is not possible. + // @ts-expect-error TS(2304): Cannot find name 'br'.
Some Internet browsers include the ability to transmit "Do Not Track" or "DNT" signals. Since uniform standards for "DNT" signals have not been adopted, the Site does not currently process or respond to "DNT" signals. + // @ts-expect-error TS(2304): Cannot find name 'br'.
Interoperability will never collect your seed phrase or private keys. We will never ask you to share your wallet private keys or seed phrase. Never trust anyone or any site that asks you to enter your private keys or similar security information. + // @ts-expect-error TS(2304): Cannot find name 'br'.
Interoperability may collect publicly available blockchain information relevant to your transactions for the purpose of utilizing such information in, or providing such information to third-parties building or maintaining, analytics pages and block explorers. Such information will always be anonymous and never tied to any personal information, and will only be maintained for as long as necessary for the stated purpose. + // @ts-expect-error TS(2304): Cannot find name 'br'.
4. Sharing of the Personal Information + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
We do not share or sell the personal information that you provide us with other organizations without your express consent, except as described in this Privacy Policy. + // @ts-expect-error TS(2304): Cannot find name 'br'.
5. How we Protect and Store Information + // @ts-expect-error TS(2304): Cannot find name 'br'.
The safety and security of your personal information also depends on you. Unauthorized entry or use, hardware or software failure, and other factors, may compromise the security of user information at any time. Your wallet is protected by your password, private key, and/or seed phrase, and we urge you to take steps to keep this and other Personal Information safe by not disclosing your security credentials or leaving your wallet open in an unsecured manner. We seek to protect personal information by refraining from collecting personal information where possible. However, these measures do not guarantee that your personal information will not be accessed, disclosed, altered or destroyed by breach of such firewalls and secure server software. By using the Site, you acknowledge that you understand and agree to assume these risks. + // @ts-expect-error TS(2304): Cannot find name 'br'.
6. International Transfers Of Personal Data + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
If you are a resident of the European Economic Area ("EEA") or Switzerland, you may have additional rights under the General Data Protection Regulation (the "GDPR") and other applicable law with respect to your Personal Data, as outlined below. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
For this section, we use the terms "Personal Data" and "processing" as they are defined in the GDPR, but "Personal Data" generally means information that can be used to individually identify a person, and "processing" generally covers actions that can be performed in connection with data such as collection, use, storage and disclosure. Interoperability will be the controller of your Personal Data processed in connection with the Site. + // @ts-expect-error TS(2304): Cannot find name 'Social'.
7. Social Media + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
We may use social and developer networks such as Discord, Twitter, Gitbook and Github. When you use them, the operators of the respective social and developer networks and may record that you are on such networks. This processing of your personal data lays in the responsibility of these networks and occurs according to their privacy policy. Please check with these individual social and developer networks regarding their privacy policies. Interoperability is not responsible for data collected by these networks. We only use these platforms to inform our community of updates and answer user questions. + // @ts-expect-error TS(2304): Cannot find name 'br'.
If you have any questions about this page or our data practices generally, please contact notices@interoperability.institute.

diff --git a/packages/explorer-ui/pages/terms/index.js b/packages/explorer-ui/pages/terms/index.ts similarity index 84% rename from packages/explorer-ui/pages/terms/index.js rename to packages/explorer-ui/pages/terms/index.ts index 42e83b48bd..8079124bf6 100644 --- a/packages/explorer-ui/pages/terms/index.js +++ b/packages/explorer-ui/pages/terms/index.ts @@ -4,66 +4,127 @@ export default function Terms() { return ( + // @ts-expect-error TS(2749): 'StandardPageContainer' refers to a value, but is ... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'p'.

Last updated: February, 2023

+ // @ts-expect-error TS(2304): Cannot find name 'div'.

+ // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode. This website-hosted interface (the "Site") is provided by Interoperability Inc. ("Interoperability", "we", "our", or "us"). The Site provides users with an informational interface relating to a decentralized protocol on the Synapse messaging application that allows users to bridge, stake, and pool certain digital assets (the "Synapse Protocol" or the "Protocol"). The Site is one, but not the exclusive, means of constructing data inputs for purposes of accessing the Protocol. These Terms of Use ("Terms") explain the terms and conditions by which you may access and use the Site. By accessing or using the Site, you signify that you have read, understand, and agree to be bound by these Terms in their entirety. If you do not agree, you are not authorized to access or use the Site and should not use the Site. + // @ts-expect-error TS(2304): Cannot find name 'br'.
PLEASE NOTE: THE "DISPUTE RESOLUTION" SECTION OF THESE TERMS CONTAINS AN ARBITRATION CLAUSE THAT REQUIRES DISPUTES TO BE ARBITRATED ON AN INDIVIDUAL BASIS, AND PROHIBITS CLASS ACTION CLAIMS. IT AFFECTS HOW DISPUTES BETWEEN YOU AND THE INTEROPERABILITY ARE RESOLVED. BY ACCEPTING THESE TERMS, YOU AGREE TO BE BOUND BY THIS ARBITRATION PROVISION. PLEASE READ IT CAREFULLY. + // @ts-expect-error TS(2304): Cannot find name 'br'.
1. Modification of these Terms
+ // @ts-expect-error TS(2304): Cannot find name 'Interoperability'. Interoperability reserves the right, in its sole discretion, to modify these Terms from time to time. If any modifications are made, we will be notified by an updated to the date at the top of the Terms. A current version of the Terms is maintained at https://synapseprotocol.com. All modifications will be effective when they are posted, and your continued accessing of the Site will serve as confirmation of your acceptance of those modifications. If you do not agree with any modifications to these Terms, you must immediately stop accessing the Site. + // @ts-expect-error TS(2304): Cannot find name 'br'.
2. Eligibility + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
To access or use the Site, you must be able to form a legally binding contract with us. Accordingly, you represent that you are at least the age of majority in your jurisdiction and have the full right, power, and authority to enter into and comply with the terms and conditions of these Terms on behalf of yourself and any company or legal entity for which you may access or use the Site. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
You represent that your access and use of the Site will fully comply with all applicable laws and regulations, and that you will not access or use the Site to conduct, promote, or otherwise facilitate any illegal activity. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
You further represent that you are not (a) the subject of economic or trade sanctions administered or enforced by any governmental authority or otherwise designated on any list of prohibited or restricted parties (including but not limited to the list maintained by the Office of Foreign Assets Control of the U.S. Department of the Treasury, “OFAC”) or (b) a citizen, resident, or organized in a jurisdiction or territory that is the subject of comprehensive country-wide, territory-wide, or regional economic sanctions by the United States. Finally, you represent that your access and use of the Site will fully comply with all applicable laws and regulations, and that you will not access or use the Site to conduct, promote, or otherwise facilitate any illegal activity. We reserve the right to utilize software or other means to restrict access to the Site for compliance purposes with no advance warning, including, but not limited to, restricting access to any individual or entity on the Specially Designated Nationals and Blocked Persons (“SDN”) List maintained by OFAC. We are under no obligation to make such restrictions, or the rationale underlying such restrictions, public. If we determine in our sole and absolute discretion that you have breached your representations and/or obligations under this section, we will block your access to the Site if continued access to the Site could result in Interoperability being in violation, or subject to negative consequences, under any sanctions laws or other law or regulation. While the Site does not custody or hold any assets of users, rendering Interoperability incapable of “blocking” any interests in property, to the extent (in our sole and absolute discretion) you breach your representations and/or obligations under this section, Interoperability reserves the right to notify any relevant identifiable persons of such breach to enable the blocking of interests in property as required under relevant rules and regulations. + // @ts-expect-error TS(2304): Cannot find name 'br'.
3. Proprietary Rights + // @ts-expect-error TS(2304): Cannot find name 'br'.
Interoperability and its related entities own all intellectual property and other rights in the Site and its contents, including (but not limited to) software, text, images, trademarks, service marks, copyrights, patents, and designs. The Synapse Protocol is comprised of source-available software running on public distributed blockchains. + // @ts-expect-error TS(2304): Cannot find name 'br'.
4. Additional Rights + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
Interoperability reserves the following rights: (a) with or without notice to you, to modify, substitute, eliminate or add to the Site; (b) to review, modify, filter, disable, delete and remove any and all content and information from the Site; and (c) to cooperate with any law enforcement, court or government investigation or order or third party requesting or directing that we disclose information or content or information that you provide. + // @ts-expect-error TS(2304): Cannot find name 'br'.
5. Privacy + // @ts-expect-error TS(2304): Cannot find name 'br'.
When you use the Site, the only information we collect from you is your blockchain wallet address and your transaction send information. We do not collect any personal information from you (e.g., your name or other identifiers that can be linked to you). Please see the Privacy Policy for further information. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
When you utilize any data inputs provided by the Site to execute transactions, you are interacting with public blockchains, which provide transparency into your transactions. Interoperability does not control and is not responsible for any information you make public on any public blockchain by taking actions utilizing data provided by the Site. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
Interoperability may share the information collected with blockchain analytics providers to promote the safety, security, and integrity of the Site. Interoperability does not retain any information collected any longer than necessary for this purpose. + // @ts-expect-error TS(2304): Cannot find name 'br'.
6. Prohibited Activity + // @ts-expect-error TS(2304): Cannot find name 'br'.
You agree not to engage in, or attempt to engage in, any of the following categories of prohibited activity in relation to your access and use of the Site: + // @ts-expect-error TS(2304): Cannot find name 'br'.
Intellectual Property Infringement. Activity that infringes on or violates any copyright, trademark, service mark, patent, right of publicity, right of privacy, or other proprietary or intellectual property rights under the law. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
Cyberattack. Activity that seeks to interfere with or compromise the integrity, security, or proper functioning of any computer, server, network, personal device, or other information technology system, including (but not limited to) the deployment of viruses and denial of service attacks. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
Fraud and Misrepresentation. Activity that seeks to defraud us or any other person or entity, including (but not limited to) providing any false, inaccurate, or misleading information in order to unlawfully obtain the property of another, and impersonating any person or entity or otherwise misrepresenting your affiliation with a person or entity. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
Circumventing Security/Compliance Measures. The use of any means, including masking your IP address or using a proxy IP address or virtual private network, to bypass or circumvent any security and/or compliance measures taken by Interoperability with respect to Site access. + // @ts-expect-error TS(2304): Cannot find name 'br'.
Violation of Law. Violate any applicable federal, state, local, national, or international law, or any regulations having the force of law, including any laws or regulations concerning the integrity of trading markets (e.g., manipulative tactics commonly known as spoofing and wash trading) or trading of securities or derivatives and furthering or promoting any criminal activity or enterprise or providing instructional information about illegal activities. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
7. Not Registered with FinCEN or any agency + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
Interoperability is not registered with the Financial Crimes Enforcement Network as a money services business or in any other capacity, or with any other regulatory body in any capacity. You understand and acknowledge that we do not broker trading orders on your behalf, match orders for buyers and sellers of securities. We also do not facilitate the execution or settlement of your transactions, which occur entirely on public distributed blockchains. The Site is strictly a means by which users may construct transaction data to be utilized by the individual user by executing transactions utilizing third-party blockchain wallet applications. + // @ts-expect-error TS(2304): Cannot find name 'br'.
8. Non-Solicitation; No Investment Advice; No Fiduciary Duties + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
You agree and understand that all transfers, pools, staking or other actions you perform utilizing transaction data provided by the Site are considered unsolicited, which means that you have not received any investment advice from us in connection with any such action, and that we do not conduct a suitability review of any such action. + // @ts-expect-error TS(2304): Cannot find name 'br'.
All information provided by the Site is for informational purposes only and should not be construed as investment advice. You should not take, or refrain from taking, any action based on any information contained in the Site. We do not make any investment recommendations to you or opine on the merits of any investment transaction or opportunity. You alone are responsible for determining whether any investment, investment strategy or related transaction is appropriate for you based on your personal investment objectives, financial circumstances, and risk tolerance. + // @ts-expect-error TS(2304): Cannot find name 'br'.
9. No Warranties + // @ts-expect-error TS(2304): Cannot find name 'br'.
THE SITE IS PROVIDED ON AN "AS-IS" AND "AS-AVAILABLE" BASIS. TO THE MAXIMUM EXTENT PERMITTED BY LAW, INTEROPERABILITY WILL NOT BE LIABLE FOR ANY DAMAGES OF ANY KIND ARISING FROM THE USE OF THE SITE, INCLUDING, BUT NOT LIMITED TO INDIRECT, INCIDENTAL, PUNITIVE, EXEMPLARY, SPECIAL OR CONSEQUENTIAL DAMAGES, EVEN IF WE HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. YOU AGREE THAT YOUR USE OF THE SITE WILL BE AT YOUR SOLE RISK. INTEROPERABILITY IS NOT RESPONSIBLE FOR ANY DAMAGES OR LOSSES THAT RESULT FROM YOUR USE OF THE SITE, INCLUDING, BUT NOT LIMITED TO, YOUR USE OR INABILITY TO USE THE SITE; ANY CHANGES TO OR INACCESSIBILITY OR TERMINATION OF THE SITE; ANY DELAY, FAILURE, UNAUTHORIZED ACCESS TO, OR ALTERATION OF ANY TRANSMISSION OR DATA; ANY TRANSACTION OR AGREEMENT ENTERED INTO THROUGH THE SITE; ANY ACTIVITIES OR COMMUNICATIONS OF THIRD PARTIES; OR ANY DATA OR MATERIAL FROM A THIRD PERSON ACCESSED ON OR THROUGH THE SITE. WE MAKE NO WARRANTIES OR REPRESENTATIONS ABOUT THE ACCURACY OR COMPLETENESS OF THE SITE'S CONTENT OR THE CONTENT OF ANY WEBSITES LINKED TO THE SITE. + // @ts-expect-error TS(2304): Cannot find name 'br'.
INTEROPERABILITY ASSUMES NO LIABILITY OR RESPONSIBILITY FOR ANY (1) ERRORS, MISTAKES, OR INACCURACIES OF CONTENT AND MATERIALS, (2) PERSONAL INJURY OR PROPERTY DAMAGE, OF ANY NATURE WHATSOEVER, RESULTING FROM YOUR ACCESS TO AND USE OF THE SITE, (3) ANY UNAUTHORIZED ACCESS TO OR USE OF OUR SECURE SERVERS AND/OR ANY AND ALL PERSONAL INFORMATION AND/OR FINANCIAL INFORMATION STORED THEREIN, (4) ANY INTERRUPTION OR CESSATION OF TRANSMISSION TO OR FROM THE SITE, (5) ANY BUGS, VIRUSES, TROJAN HORSES, OR THE LIKE WHICH MAY BE TRANSMITTED TO OR THROUGH THE SITE BY ANY THIRD PARTY, AND/OR (6) ANY ERRORS OR OMISSIONS IN ANY CONTENT AND MATERIALS OR FOR ANY LOSS OR DAMAGE OF ANY KIND INCURRED AS A RESULT OF THE USE OF ANY CONTENT POSTED, TRANSMITTED, OR OTHERWISE MADE AVAILABLE VIA THE SITE. IF YOU ARE DISSATISFIED WITH THE SITE, YOU AGREE THAT YOUR SOLE AND EXCLUSIVE REMEDY SHALL BE FOR YOU TO DISCONTINUE YOUR USE OF THE SITE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATION AND EXCLUSIONS MAY NOT APPLY TO YOU. + // @ts-expect-error TS(2304): Cannot find name 'br'.
10. Non-Custodial and No Fiduciary Duties + // @ts-expect-error TS(2304): Cannot find name 'br'.
The Site is a purely non-custodial interface, meaning you are solely responsible for the custody of the cryptographic private keys to the digital asset wallets you hold. These Terms is not intended to, and does not, create or impose any fiduciary duties on us. To the fullest extent permitted by law, you acknowledge and agree that we owe no fiduciary duties or liabilities to you or any other party, and that to the extent any such duties or liabilities may exist at law or in equity, those duties and liabilities are hereby irrevocably disclaimed, waived, and eliminated. You further agree that the only duties and obligations that we owe you are those set out expressly in these Terms. + // @ts-expect-error TS(2304): Cannot find name 'br'.
11. Compliance Obligations + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
By accessing or using the Site, you agree that you are solely and entirely responsible for compliance with all laws and regulations that may apply to you. + // @ts-expect-error TS(2304): Cannot find name 'br'.
12. Assumption of Risk + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
By accessing and using the Site, you represent that you are financially and technically sophisticated enough to understand the inherent risks associated with using cryptographic and blockchain-based systems, and that you have a working knowledge of the usage and intricacies of digital assets. You understand that blockchain-based transactions are irreversible. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
You further understand that the markets for these digital assets are highly volatile due to factors including (but not limited to) adoption, speculation, technology, security, and regulation. You acknowledge and accept that the cost and speed of transacting with cryptographic and blockchain-based systems are variable and may increase dramatically at any time. You further acknowledge and accept the risk that your digital assets may lose some or all of their value while they are supplied to the Protocol through the Site, you may suffer loss due to the fluctuation of prices of tokens in a trading pair or liquidity pool, and, especially in expert modes, experience significant price slippage and cost. You understand that anyone can create a token, including fake versions of existing tokens and tokens that falsely claim to represent projects, and acknowledge and accept the risk that you may mistakenly trade those or other tokens. You further acknowledge that we are not responsible for any of these variables or risks, do not own or control the Protocol, and cannot be held liable for any resulting losses that you experience while accessing or using the Site. Accordingly, you understand and agree to assume full responsibility for all of the risks of accessing and using the Site for the purpose of interacting with the Protocol. + // @ts-expect-error TS(2304): Cannot find name 'Third'.
13. Third-Party Resources and Promotions + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
The Site may contain references or links to third-party resources, including (but not limited to) information, materials, products, or services, that we do not own or control. In addition, third parties may offer promotions related to your access and use of the Site. We do not endorse or assume any responsibility for any such resources or promotions. If you access any such resources or participate in any such promotions, you do so at your own risk, and you understand that these Terms does not apply to your dealings or relationships with any third parties. You expressly relieve us of any and all liability arising from your use of any such resources or participation in any such promotions. + // @ts-expect-error TS(2304): Cannot find name 'br'.
14. Release of Claims + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
You expressly agree that you assume all risks in connection with your access and use of the Site and your interaction with the Protocol. You further expressly waive and release us from any and all liability, claims, causes of action, or damages arising from or in any way relating to your use of the Site and your interaction with the Protocol. If you are a California resident, you waive the benefits and protections of California Civil Code § 1542, which provides: "[a] general release does not extend to claims that the creditor or releasing party does not know or suspect to exist in his or her favor at the time of executing the release and that, if known by him or her, would have materially affected his or her settlement with the debtor or released party." + // @ts-expect-error TS(2304): Cannot find name 'br'.
15. Indemnity + // @ts-expect-error TS(2304): Cannot find name 'br'.
You agree to hold harmless, release, defend, and indemnify us and our officers, directors, employees, contractors, agents, affiliates, and subsidiaries from and against all claims, damages, obligations, losses, liabilities, costs, and expenses arising from: (a) your access and use of the Site; (b) your violation of any term or condition of these Terms, the right of any third party, or any other applicable law, rule, or regulation; and (c) any other party's access and use of the Site with your assistance or using any device or account that you own or control. + // @ts-expect-error TS(2304): Cannot find name 'br'.
16. Limitation of Liability + // @ts-expect-error TS(2304): Cannot find name 'br'.
Under no circumstances shall we or any of our officers, directors, employees, contractors, agents, affiliates, or subsidiaries be liable to you for any indirect, punitive, incidental, special, consequential, or exemplary damages, including (but not limited to) damages for loss of profits, goodwill, use, data, or other intangible property, arising out of or relating to any access or use of the Site, nor will we be responsible for any damage, loss, or injury resulting from hacking, tampering, or other unauthorized access or use of the Site or the information contained within it. We assume no liability or responsibility for any: (a) errors, mistakes, or inaccuracies of content; (b) personal injury or property damage, of any nature whatsoever, resulting from any access or use of the Site; (c) unauthorized access or use of any secure server or database in our control, or the use of any information or data stored therein; (d) interruption or cessation of function related to the Site; (e) bugs, viruses, trojan horses, or the like that may be transmitted to or through the Site; (f) errors or omissions in, or loss or damage incurred as a result of the use of, any content made available through the Site; and (g) the defamatory, offensive, or illegal conduct of any third party. Under no circumstances shall we or any of our officers, directors, employees, contractors, agents, affiliates, or subsidiaries be liable to you for any claims, proceedings, liabilities, obligations, damages, losses, or costs in an amount exceeding the amount you paid to us in exchange for access to and use of the Site, or USD$50.00, whichever is greater. This limitation of liability applies regardless of whether the alleged liability is based on contract, tort, negligence, strict liability, or any other basis, and even if we have been advised of the possibility of such liability. Some jurisdictions do not allow the exclusion of certain warranties or the limitation or exclusion of certain liabilities and damages. Accordingly, some of the disclaimers and limitations set forth in these Terms may not apply to you. This limitation of liability shall apply to the fullest extent permitted by law. + // @ts-expect-error TS(2304): Cannot find name 'br'.
17. Dispute Resolution + // @ts-expect-error TS(2304): Cannot find name 'br'.
Interoperability will use our best efforts to resolve any potential disputes through informal, good faith negotiations. If a potential dispute arises, you must contact us by sending an email to notices@Interoperability.com so that we can attempt to resolve it without resorting to formal dispute resolution. If we aren't able to reach an informal resolution within sixty days of your email, then you and we both agree to resolve the potential dispute according to the process set forth below. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
Any claim or controversy arising out of or relating to the Site, these Terms, or any other acts or omissions for which you may contend that we are liable, including (but not limited to) any claim or controversy as to arbitrability ("Dispute"), shall be finally and exclusively settled by arbitration under the JAMS Optional Expedited Arbitration Procedures. You understand that you are required to resolve all Disputes by binding arbitration. The arbitration shall be held on a confidential basis before a single arbitrator, who shall be selected pursuant to JAMS rules. The arbitration will be held in Kent County, Delaware, unless you and we both agree to hold it elsewhere. Unless we agree otherwise, the arbitrator may not consolidate your claims with those of any other party. Any judgment on the award rendered by the arbitrator may be entered in any court of competent jurisdiction. + // @ts-expect-error TS(2304): Cannot find name 'br'.
18. Class Action and Jury Trial Waiver + // @ts-expect-error TS(2304): Cannot find name 'br'.
You must bring any and all disputes against us in your individual capacity and not as a plaintiff in or member of any purported class action, collective action, private attorney general action, or other representative proceeding. This provision applies to class arbitration. You and Interoperability both agree to waive the right to demand a trial by jury. + // @ts-expect-error TS(2304): Cannot find name 'br'.
19. Governing Law + // @ts-expect-error TS(2304): Cannot find name 'br'.
You agree that the laws of the State of Delaware, without regard to principles of conflict of laws, govern these Terms and any Dispute between you and us. You further agree that for purposes of venue the Site shall be deemed to be based solely in Kent County, Delaware, and that although the Site may be available in other jurisdictions, its availability does not give rise to general or specific personal jurisdiction in any forum outside of Kent County, Delaware. Any arbitration conducted pursuant to these Terms shall be governed by the JAMS Comprehensive Arbitration Rules and Procedures. You agree that the federal courts of Delaware are the proper forum for any appeals of an arbitration award or for court proceedings in the event that the binding arbitration clause of these Terms is found to be unenforceable. + // @ts-expect-error TS(2304): Cannot find name 'br'.
All aspects of the arbitration proceeding, and any ruling, decision, or award by the arbitrator, will be strictly confidential for the benefit of all parties. + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
For the avoidance of doubt, you agree you are solely responsible for all interactions with any other user in connection with the Services, and Interoperability will have no liability or responsibility with respect thereto. Interoperability reserves the right, but has no obligation, to become involved in any way in disputes between you and any other user of the Site. + // @ts-expect-error TS(2304): Cannot find name 'br'.
20. Entire Agreement + // @ts-expect-error TS(1101): 'with' statements are not allowed in strict mode.
These Terms and the Privacy Policy constitute the entire agreement between you and us with respect to the subject matter hereof. These Terms supersedes any and all prior or contemporaneous written and oral agreements, communications and other understandings (if any) relating to the subject matter of the terms. The information provided on the Site is not intended for distribution to or use by any person or entity in any jurisdiction or country where such distribution or use would be contrary to law or regulation or which would subject us to any registration requirement within such jurisdiction or country. Accordingly, those persons who choose to access the Site from other locations do so on their own initiative and are solely responsible for compliance with local laws, if and to the extent local laws are applicable. + // @ts-expect-error TS(2304): Cannot find name 'br'.


diff --git a/packages/explorer-ui/pages/token/[tokenAddress].js b/packages/explorer-ui/pages/token/[tokenAddress].tsx similarity index 100% rename from packages/explorer-ui/pages/token/[tokenAddress].js rename to packages/explorer-ui/pages/token/[tokenAddress].tsx diff --git a/packages/explorer-ui/pages/tx/[kappa].js b/packages/explorer-ui/pages/tx/[kappa].ts similarity index 53% rename from packages/explorer-ui/pages/tx/[kappa].js rename to packages/explorer-ui/pages/tx/[kappa].ts index 5f737d120f..369ef25b8f 100644 --- a/packages/explorer-ui/pages/tx/[kappa].js +++ b/packages/explorer-ui/pages/tx/[kappa].ts @@ -24,6 +24,7 @@ const link = new HttpLink({ const client = new ApolloClient({ link: link, cache: new InMemoryCache(), + // @ts-expect-error TS(2345): Argument of type '{ link: HttpLink; cache: InMemor... Remove this comment to see the full error message fetchPolicy: 'no-cache', fetchOptions: { mode: 'no-cors', @@ -61,150 +62,248 @@ export default function BridgeTransaction({ queryResult }) { if (!!transaction) { content = <> + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'h3'.

TXID

+ // @ts-expect-error TS(2304): Cannot find name 'title'.
+ // @ts-expect-error TS(2304): Cannot find name 'br'.
+ // @ts-expect-error TS(2749): 'HorizontalDivider' refers to a value, but is bein... Remove this comment to see the full error message {/* */} + // @ts-expect-error TS(2749): 'BridgeTransactionTable' refers to a value, but is... Remove this comment to see the full error message + // @ts-expect-error TS(2362): The left-hand side of an arithmetic operation must... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'h3'.

{fromInfo.time ? timeAgo({ timestamp: fromInfo.time }) + // @ts-expect-error TS(2304): Cannot find name 'ago'. : timeAgo({ timestamp: toInfo?.time })} ago

+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

Requested

+ // @ts-expect-error TS(2304): Cannot find name 'p'.

{formatDateTime(new Date(fromInfo.time * 1000))}

+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

Confirmed

+ // @ts-expect-error TS(2304): Cannot find name 'p'.

{toInfo ? formatDateTime(new Date(toInfo.time * 1000)) : pendingContent}

+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

Total Time

+ // @ts-expect-error TS(2304): Cannot find name 'p'.

{toInfo ? getTimeDifference(fromInfo.time, toInfo.time) + " seconds" : pendingContent}

+ // @ts-expect-error TS(2304): Cannot find name 'br'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2749): 'HorizontalDivider' refers to a value, but is bein... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

Origin

+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

From

+ // @ts-expect-error TS(2304): Cannot find name 'a'. {fromInfo.address}
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

TX Hash

+ // @ts-expect-error TS(2304): Cannot find name 'a'. {fromInfo.hash}
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

Contract

+ // @ts-expect-error TS(2304): Cannot find name 'a'. Origin Bridge Contract
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'h1'.

Sent

+ // @ts-expect-error TS(2304): Cannot find name 'br'.
+ // @ts-expect-error TS(2749): 'HorizontalDivider' refers to a value, but is bein... Remove this comment to see the full error message + // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

Destination

+ // @ts-expect-error TS(2304): Cannot find name 'toInfo'. {toInfo ? + // @ts-expect-error TS(2749): 'ChainInfo' refers to a value, but is being used a... Remove this comment to see the full error message : }
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

To

+ // @ts-expect-error TS(2304): Cannot find name 'a'. {toInfo ? toInfo.address : pendingContent}
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

TX Hash

+ // @ts-expect-error TS(2304): Cannot find name 'toInfo'. {toInfo ? + // @ts-expect-error TS(2304): Cannot find name 'a'. {toInfo.hash} :

{pendingContent}

}
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'p'.

Contract

+ // @ts-expect-error TS(2304): Cannot find name 'a'. Destination Bridge Contract
+ // @ts-expect-error TS(2304): Cannot find name 'div'.
+ // @ts-expect-error TS(2304): Cannot find name 'h1'.

+ // @ts-expect-error TS(2304): Cannot find name 'Received'. Received

+ // @ts-expect-error TS(2304): Cannot find name 'toInfo'. {toInfo ? + // @ts-expect-error TS(2749): 'IconAndAmount' refers to a value, but is being us... Remove this comment to see the full error message : null} + // @ts-expect-error TS(2365): Operator '<' cannot be applied to types 'boolean' ... Remove this comment to see the full error message
+ // @ts-expect-error TS(2304): Cannot find name 'br'.
+ // @ts-expect-error TS(2749): 'HorizontalDivider' refers to a value, but is bein... Remove this comment to see the full error message
} else { + // @ts-expect-error TS(2304): Cannot find name 'content'. content = ( ) diff --git a/packages/explorer-ui/pages/txs/index.js b/packages/explorer-ui/pages/txs/index.tsx similarity index 100% rename from packages/explorer-ui/pages/txs/index.js rename to packages/explorer-ui/pages/txs/index.tsx diff --git a/packages/explorer-ui/postcss.config.js b/packages/explorer-ui/postcss.config.ts similarity index 100% rename from packages/explorer-ui/postcss.config.js rename to packages/explorer-ui/postcss.config.ts diff --git a/packages/explorer-ui/public/_document.js b/packages/explorer-ui/public/_document.js deleted file mode 100644 index d57f77e8a1..0000000000 --- a/packages/explorer-ui/public/_document.js +++ /dev/null @@ -1,20 +0,0 @@ -import {Head, Html} from 'next/document' - -export default function Document() { - return ( - - - - - - - - - Synapse Explorer - - - ) -} diff --git a/packages/explorer-ui/public/_document.ts b/packages/explorer-ui/public/_document.ts new file mode 100644 index 0000000000..5de9bec21e --- /dev/null +++ b/packages/explorer-ui/public/_document.ts @@ -0,0 +1,29 @@ +import {Head, Html} from 'next/document' + +export default function Document() { + return ( + // @ts-expect-error TS(2749): 'Html' refers to a value, but is being used as a t... Remove this comment to see the full error message + + + // @ts-expect-error TS(2304): Cannot find name 'meta'. + + // @ts-expect-error TS(2304): Cannot find name 'link'. + + // @ts-expect-error TS(2304): Cannot find name 'meta'. + + // @ts-expect-error TS(2304): Cannot find name 'meta'. + + // @ts-expect-error TS(2304): Cannot find name 'meta'. + + // @ts-expect-error TS(2304): Cannot find name 'link'. + + // @ts-expect-error TS(2304): Cannot find name 'title'. + Synapse Explorer + + + ) +} diff --git a/packages/explorer-ui/tailwind.config.js b/packages/explorer-ui/tailwind.config.ts similarity index 70% rename from packages/explorer-ui/tailwind.config.js rename to packages/explorer-ui/tailwind.config.ts index a58021a174..b5c8e4de45 100644 --- a/packages/explorer-ui/tailwind.config.js +++ b/packages/explorer-ui/tailwind.config.ts @@ -1,6 +1,7 @@ module.exports = { darkMode: 'class', content: ['./**/*.{js,jsx,ts,tsx}'], + // @ts-expect-error TS(1117): An object literal cannot have multiple properties ... Remove this comment to see the full error message content: [ './pages/**/*.{js,ts,jsx,tsx}', './components/**/*.{js,ts,jsx,tsx}', @@ -19,5 +20,6 @@ module.exports = { }, }, plugins: [], + // @ts-expect-error TS(2802): Type 'IterableIterator' can only be iterat... Remove this comment to see the full error message safelist: [...Array(300).keys()].map((i) => `h-[${i + 1}px]`), } diff --git a/packages/explorer-ui/utils/addressToSymbol.js b/packages/explorer-ui/utils/addressToSymbol.ts similarity index 100% rename from packages/explorer-ui/utils/addressToSymbol.js rename to packages/explorer-ui/utils/addressToSymbol.ts diff --git a/packages/explorer-ui/utils/chainAutocomplete.js b/packages/explorer-ui/utils/chainAutocomplete.ts similarity index 100% rename from packages/explorer-ui/utils/chainAutocomplete.js rename to packages/explorer-ui/utils/chainAutocomplete.ts diff --git a/packages/explorer-ui/utils/checksum.js b/packages/explorer-ui/utils/checksum.ts similarity index 100% rename from packages/explorer-ui/utils/checksum.js rename to packages/explorer-ui/utils/checksum.ts diff --git a/packages/explorer-ui/utils/classes/Token.js b/packages/explorer-ui/utils/classes/Token.ts similarity index 89% rename from packages/explorer-ui/utils/classes/Token.js rename to packages/explorer-ui/utils/classes/Token.ts index 6d88b5177a..2d03793408 100644 --- a/packages/explorer-ui/utils/classes/Token.js +++ b/packages/explorer-ui/utils/classes/Token.ts @@ -5,6 +5,29 @@ import { ChainId } from '@constants/networks' * Represents an ERC20-like token with a unique address, chainId, and some metadata. */ export class Token { + addresses: any + decimals: any + depositTokens: any + description: any + docUrl: any + icon: any + isEthSwap: any + isMeta: any + isNative: any + name: any + nativeTokens: any + poolId: any + poolName: any + poolTokens: any + poolType: any + routerIndex: any + swapAddresses: any + swapDepositAddresses: any + swapEthAddresses: any + swapWrapperAddresses: any + swapableType: any + symbol: any + wrapperAddresses: any /** * @param {Object} obj - An object. * @param {Object.} obj.addresses - addresses of the actual token diff --git a/packages/explorer-ui/utils/ellipsizeString.js b/packages/explorer-ui/utils/ellipsizeString.ts similarity index 100% rename from packages/explorer-ui/utils/ellipsizeString.js rename to packages/explorer-ui/utils/ellipsizeString.ts diff --git a/packages/explorer-ui/utils/fetcher.js b/packages/explorer-ui/utils/fetcher.js deleted file mode 100644 index a9f5f54125..0000000000 --- a/packages/explorer-ui/utils/fetcher.js +++ /dev/null @@ -1 +0,0 @@ -export const fetcher = (...args) => fetch(...args).then((res) => res.json()) diff --git a/packages/explorer-ui/utils/fetcher.ts b/packages/explorer-ui/utils/fetcher.ts new file mode 100644 index 0000000000..2c7129e5e4 --- /dev/null +++ b/packages/explorer-ui/utils/fetcher.ts @@ -0,0 +1,2 @@ +// @ts-expect-error TS(2556): A spread argument must either have a tuple type or... Remove this comment to see the full error message +export const fetcher = (...args) => fetch(...args).then((res) => res.json()) diff --git a/packages/explorer-ui/utils/formatAmount.js b/packages/explorer-ui/utils/formatAmount.ts similarity index 100% rename from packages/explorer-ui/utils/formatAmount.js rename to packages/explorer-ui/utils/formatAmount.ts diff --git a/packages/explorer-ui/utils/formatDate.js b/packages/explorer-ui/utils/formatDate.ts similarity index 100% rename from packages/explorer-ui/utils/formatDate.js rename to packages/explorer-ui/utils/formatDate.ts diff --git a/packages/explorer-ui/utils/formatUSD.js b/packages/explorer-ui/utils/formatUSD.ts similarity index 100% rename from packages/explorer-ui/utils/formatUSD.js rename to packages/explorer-ui/utils/formatUSD.ts diff --git a/packages/explorer-ui/utils/math/statistics.js b/packages/explorer-ui/utils/math/statistics.ts similarity index 100% rename from packages/explorer-ui/utils/math/statistics.js rename to packages/explorer-ui/utils/math/statistics.ts diff --git a/packages/explorer-ui/utils/styles/coins.js b/packages/explorer-ui/utils/styles/coins.ts similarity index 99% rename from packages/explorer-ui/utils/styles/coins.js rename to packages/explorer-ui/utils/styles/coins.ts index 944920189b..cfe0a24637 100644 --- a/packages/explorer-ui/utils/styles/coins.js +++ b/packages/explorer-ui/utils/styles/coins.ts @@ -358,6 +358,7 @@ export function getCoinTextColorCombined(coin) { * @param {string} poolName */ export function getCardStyleByPool(poolName) { + // @ts-expect-error TS(2304): Cannot find name 'SWAP_COIN_COLORS'. switch (SWAP_COIN_COLORS[poolName]) { case 'gray': return 'shadow-lg hover:shadow-2xl' diff --git a/packages/explorer-ui/utils/styles/muiStyles.js b/packages/explorer-ui/utils/styles/muiStyles.ts similarity index 100% rename from packages/explorer-ui/utils/styles/muiStyles.js rename to packages/explorer-ui/utils/styles/muiStyles.ts diff --git a/packages/explorer-ui/utils/styles/networks.js b/packages/explorer-ui/utils/styles/networks.ts similarity index 100% rename from packages/explorer-ui/utils/styles/networks.js rename to packages/explorer-ui/utils/styles/networks.ts diff --git a/packages/explorer-ui/utils/timeAgo.js b/packages/explorer-ui/utils/timeAgo.ts similarity index 100% rename from packages/explorer-ui/utils/timeAgo.js rename to packages/explorer-ui/utils/timeAgo.ts diff --git a/packages/explorer-ui/utils/toHexStr.js b/packages/explorer-ui/utils/toHexStr.ts similarity index 100% rename from packages/explorer-ui/utils/toHexStr.js rename to packages/explorer-ui/utils/toHexStr.ts diff --git a/packages/explorer-ui/utils/unixTimestampToUTCString.js b/packages/explorer-ui/utils/unixTimestampToUTCString.ts similarity index 100% rename from packages/explorer-ui/utils/unixTimestampToUTCString.js rename to packages/explorer-ui/utils/unixTimestampToUTCString.ts diff --git a/packages/explorer-ui/utils/urls/index.js b/packages/explorer-ui/utils/urls/index.ts similarity index 100% rename from packages/explorer-ui/utils/urls/index.js rename to packages/explorer-ui/utils/urls/index.ts diff --git a/packages/explorer-ui/utils/validateAndParseAddress.js b/packages/explorer-ui/utils/validateAndParseAddress.ts similarity index 100% rename from packages/explorer-ui/utils/validateAndParseAddress.js rename to packages/explorer-ui/utils/validateAndParseAddress.ts diff --git a/packages/explorer-ui/utils/validateAndParseHash.js b/packages/explorer-ui/utils/validateAndParseHash.ts similarity index 100% rename from packages/explorer-ui/utils/validateAndParseHash.js rename to packages/explorer-ui/utils/validateAndParseHash.ts