mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
lint
This commit is contained in:
parent
21c8879efe
commit
b29f340658
@ -5,7 +5,7 @@ import { Ocean } from './ocean/Ocean'
|
||||
import { LoggerInstance as Logger } from './utils/Logger'
|
||||
import { Aquarius } from './aquarius/Aquarius'
|
||||
import { DataTokens } from './datatokens/Datatokens'
|
||||
import { ConfigHelper} from './utils/ConfigHelper'
|
||||
import { ConfigHelper } from './utils/ConfigHelper'
|
||||
|
||||
import * as utils from './utils'
|
||||
|
||||
@ -21,4 +21,4 @@ export {
|
||||
OceanPlatformVersions
|
||||
} from './ocean/Versions'
|
||||
|
||||
export { Ocean, Account, Config, DID, Logger, Aquarius, DataTokens, utils , ConfigHelper}
|
||||
export { Ocean, Account, Config, DID, Logger, Aquarius, DataTokens, utils, ConfigHelper }
|
||||
|
||||
@ -1,23 +1,27 @@
|
||||
export interface ConfigHelper {
|
||||
network: string,
|
||||
url: string,
|
||||
network: string
|
||||
url: string
|
||||
factoryAddress: string
|
||||
}
|
||||
|
||||
|
||||
const configs = [
|
||||
{ network: 'development', url: 'http://localhost:8545', factoryAddress: null },
|
||||
{ network: 'pacific', url: 'https://pacific.oceanprotocol.com', factoryAddress: '0x1234' },
|
||||
{ network: 'mainnet', url: 'https://mainnet.infura.io/v3/YOUR-PROJECT-ID', factoryAddress: '0x1234' }
|
||||
|
||||
{
|
||||
network: 'pacific',
|
||||
url: 'https://pacific.oceanprotocol.com',
|
||||
factoryAddress: '0x1234'
|
||||
},
|
||||
{
|
||||
network: 'mainnet',
|
||||
url: 'https://mainnet.infura.io/v3/YOUR-PROJECT-ID',
|
||||
factoryAddress: '0x1234'
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
|
||||
export class ConfigHelper {
|
||||
public getConfig(network: string): ConfigHelper {
|
||||
const confighelp = new ConfigHelper
|
||||
//fill unknown values
|
||||
const confighelp = new ConfigHelper()
|
||||
// fill unknown values
|
||||
confighelp.factoryAddress = null
|
||||
confighelp.url = null
|
||||
confighelp.network = network
|
||||
@ -27,7 +31,6 @@ export class ConfigHelper {
|
||||
confighelp.url = knownconfig.url
|
||||
confighelp.network = knownconfig.network
|
||||
}
|
||||
return (confighelp)
|
||||
|
||||
return confighelp
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user