2019-06-20 00:20:09 +02:00
|
|
|
import { Config } from '../src'
|
2019-11-11 12:27:18 +01:00
|
|
|
import HDWalletProvider from '@truffle/hdwallet-provider'
|
2019-04-01 12:40:45 +02:00
|
|
|
|
|
|
|
const configJson: Config = {
|
2019-06-20 00:20:09 +02:00
|
|
|
nodeUri: 'http://localhost:8545',
|
2019-11-11 12:27:18 +01:00
|
|
|
aquariusUri: 'http://aquarius:5000',
|
2019-06-20 00:20:09 +02:00
|
|
|
brizoUri: 'http://localhost:8030',
|
|
|
|
secretStoreUri: 'http://localhost:12001',
|
2019-08-29 13:55:38 +02:00
|
|
|
brizoAddress: '0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0',
|
2019-06-20 00:20:09 +02:00
|
|
|
verbose: false
|
2019-04-01 14:36:44 +02:00
|
|
|
}
|
|
|
|
|
2019-06-25 12:13:01 +02:00
|
|
|
if (process.env.NETWORK_NAME === 'pacific') {
|
|
|
|
Object.assign(configJson, {
|
|
|
|
nodeUri: 'https://pacific.oceanprotocol.com',
|
2019-06-28 13:01:02 +02:00
|
|
|
aquariusUri: 'https://aquarius.commons.oceanprotocol.com',
|
|
|
|
brizoUri: 'https://brizo.commons.oceanprotocol.com',
|
|
|
|
secretStoreUri: 'https://secret-store.oceanprotocol.com',
|
2019-06-25 12:13:01 +02:00
|
|
|
brizoAddress: '0x008c25ed3594e094db4592f4115d5fa74c4f41ea'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2019-06-20 00:20:09 +02:00
|
|
|
if (process.env.NETWORK_NAME === 'nile') {
|
2019-04-01 14:36:44 +02:00
|
|
|
Object.assign(configJson, {
|
2019-06-20 00:20:09 +02:00
|
|
|
nodeUri: 'https://nile.dev-ocean.com',
|
2019-06-28 13:01:02 +02:00
|
|
|
aquariusUri: 'https://aquarius.nile.dev-ocean.com',
|
|
|
|
brizoUri: 'https://brizo.nile.dev-ocean.com',
|
|
|
|
secretStoreUri: 'https://secret-store.nile.dev-ocean.com',
|
2019-06-20 00:20:09 +02:00
|
|
|
brizoAddress: '0x413c9ba0a05b8a600899b41b0c62dd661e689354'
|
2019-04-01 14:36:44 +02:00
|
|
|
})
|
2019-04-01 12:40:45 +02:00
|
|
|
}
|
2019-02-10 20:03:38 +01:00
|
|
|
|
2019-06-20 00:20:09 +02:00
|
|
|
if (process.env.NETWORK_NAME === 'duero') {
|
2019-05-17 10:59:12 +02:00
|
|
|
Object.assign(configJson, {
|
2019-06-20 00:20:09 +02:00
|
|
|
nodeUri: 'https://duero.dev-ocean.com',
|
|
|
|
aquariusUri: 'https://aquarius.duero.dev-ocean.com',
|
|
|
|
brizoUri: 'https://brizo.duero.dev-ocean.com',
|
|
|
|
secretStoreUri: 'https://secret-store.duero.dev-ocean.com',
|
|
|
|
brizoAddress: '0x9d4ed58293f71122ad6a733c1603927a150735d0'
|
2019-05-17 10:59:12 +02:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2019-02-10 20:03:38 +01:00
|
|
|
if (process.env.SEED_WORDS) {
|
|
|
|
const seedphrase = process.env.SEED_WORDS
|
|
|
|
|
|
|
|
// @ts-ignore
|
2019-09-09 12:18:54 +02:00
|
|
|
configJson.web3Provider = new HDWalletProvider(seedphrase, configJson.nodeUri, 0, 5)
|
2019-02-10 20:03:38 +01:00
|
|
|
}
|
|
|
|
|
2019-06-26 20:57:50 +02:00
|
|
|
export const config: Config & { forceVerbose: Config } = configJson as any
|
|
|
|
;(config as any).forceVerbose = { ...configJson, verbose: true }
|