Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed May 28, 2020
1 parent 21c8879 commit b29f340
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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 }
29 changes: 16 additions & 13 deletions src/utils/ConfigHelper.ts
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -27,7 +31,6 @@ export class ConfigHelper {
confighelp.url = knownconfig.url
confighelp.network = knownconfig.network
}
return (confighelp)

return confighelp
}
}
}

0 comments on commit b29f340

Please sign in to comment.