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