1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-16 02:04:54 +01:00

config typing updates

This commit is contained in:
Matthias Kretschmann 2020-09-09 15:37:29 +02:00
parent f1812b389b
commit 5152165f89
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -1,11 +1,17 @@
import React, { ReactElement } from 'react'
import { OceanProvider } from '@oceanprotocol/react'
import { ConfigHelper } from '@oceanprotocol/lib'
import { ConfigHelper, Config } from '@oceanprotocol/lib'
import { web3ModalOpts } from '../utils/wallet'
import { NetworkMonitor } from './NetworkMonitor'
import appConfig from '../../app.config'
import {
ConfigHelperNetworkName,
ConfigHelperNetworkId
} from '@oceanprotocol/lib/dist/node/utils/ConfigHelper'
export function getOceanConfig(network: string): ConfigHelper {
export function getOceanConfig(
network: ConfigHelperNetworkName | ConfigHelperNetworkId
): Config {
return new ConfigHelper().getConfig(
network,
process.env.GATSBY_INFURA_PROJECT_ID