mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
downgrade to ethers v5
This commit is contained in:
parent
769d1eef94
commit
cafe4696aa
12807
package-lock.json
generated
12807
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -39,7 +39,7 @@
|
||||
"decimal.js": "^10.4.2",
|
||||
"dom-confetti": "^0.2.2",
|
||||
"dotenv": "^16.0.3",
|
||||
"ethers": "^6.0.0",
|
||||
"ethers": "^5.7.2",
|
||||
"filesize": "^10.0.5",
|
||||
"formik": "^2.2.9",
|
||||
"gray-matter": "^4.0.3",
|
||||
@ -68,7 +68,7 @@
|
||||
"slugify": "^1.6.5",
|
||||
"swr": "^1.3.0",
|
||||
"urql": "^3.0.3",
|
||||
"wagmi": "^0.11.3",
|
||||
"wagmi": "^0.11.4",
|
||||
"yup": "^0.32.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -18,7 +18,7 @@ import {
|
||||
import axios, { CancelToken } from 'axios'
|
||||
import { useMarketMetadata } from '../MarketMetadata'
|
||||
import { getEnsProfile } from '@utils/ens'
|
||||
import { isAddress } from 'ethers'
|
||||
import { isAddress } from 'ethers/lib/utils'
|
||||
|
||||
interface ProfileProviderValue {
|
||||
profile: Profile
|
||||
|
@ -8,7 +8,8 @@ import { configureChains, createClient, erc20ABI } from 'wagmi'
|
||||
import { mainnet, polygon, bsc, goerli, polygonMumbai } from 'wagmi/chains'
|
||||
import { publicProvider } from 'wagmi/providers/public'
|
||||
import { infuraProvider } from 'wagmi/providers/infura'
|
||||
import { ethers, formatEther, Provider } from 'ethers'
|
||||
import { ethers } from 'ethers'
|
||||
import { formatEther } from 'ethers/lib/utils'
|
||||
|
||||
// Wagmi client
|
||||
export const { chains, provider } = configureChains(
|
||||
@ -82,7 +83,7 @@ export async function getTokenBalance(
|
||||
accountId: string,
|
||||
decimals: number,
|
||||
tokenAddress: string,
|
||||
web3Provider: Provider
|
||||
web3Provider: ethers.providers.Provider
|
||||
): Promise<string> {
|
||||
if (!web3Provider) return
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { FileInfo } from '@oceanprotocol/lib'
|
||||
import * as Yup from 'yup'
|
||||
import { isAddress } from 'ethers'
|
||||
import { isAddress } from 'ethers/lib/utils'
|
||||
import { testLinks } from '../../../@utils/yup'
|
||||
|
||||
export const validationSchema = Yup.object().shape({
|
||||
|
@ -27,7 +27,7 @@ import {
|
||||
} from '../../../app.config'
|
||||
import { sanitizeUrl } from '@utils/url'
|
||||
import { getContainerChecksum } from '@utils/docker'
|
||||
import { parseEther } from 'ethers'
|
||||
import { parseEther } from 'ethers/lib/utils'
|
||||
|
||||
function getUrlFileExtension(fileUrl: string): string {
|
||||
const splittedFileUrl = fileUrl.split('.')
|
||||
|
@ -6,7 +6,7 @@ import ProfileProvider from '@context/Profile'
|
||||
import { getEnsAddress, getEnsName } from '@utils/ens'
|
||||
import { useRouter } from 'next/router'
|
||||
import { useAccount, useEnsName } from 'wagmi'
|
||||
import { isAddress } from 'ethers'
|
||||
import { isAddress } from 'ethers/lib/utils'
|
||||
|
||||
export default function PageProfile(): ReactElement {
|
||||
const router = useRouter()
|
||||
|
@ -4,7 +4,7 @@ import Page from '@shared/Page'
|
||||
import { accountTruncate } from '@utils/wallet'
|
||||
import { MAXIMUM_NUMBER_OF_PAGES_WITH_RESULTS } from '@utils/aquarius'
|
||||
import { useRouter } from 'next/router'
|
||||
import { isAddress } from 'ethers'
|
||||
import { isAddress } from 'ethers/lib/utils'
|
||||
|
||||
export default function PageSearch(): ReactElement {
|
||||
const router = useRouter()
|
||||
|
Loading…
Reference in New Issue
Block a user