diff --git a/integration/config.ts b/integration/config.ts index f4d5f92..1878c10 100644 --- a/integration/config.ts +++ b/integration/config.ts @@ -10,6 +10,16 @@ const configJson: Config = { verbose: false } +if (process.env.NETWORK_NAME === 'pacific') { + Object.assign(configJson, { + nodeUri: 'https://pacific.oceanprotocol.com', + aquariusUri: 'https://aquarius.pacific.dev-ocean.com', + brizoUri: 'https://brizo.pacific.dev-ocean.com', + secretStoreUri: 'https://secret-store.pacific.oceanprotocol.com', + brizoAddress: '0x008c25ed3594e094db4592f4115d5fa74c4f41ea' + }) +} + if (process.env.NETWORK_NAME === 'nile') { Object.assign(configJson, { nodeUri: 'https://nile.dev-ocean.com', @@ -42,4 +52,6 @@ if (process.env.SEED_WORDS) { ) } -export const config: Config = configJson as any +export const config: Config & {forceVerbose: Config} = configJson as any + +(config as any).forceVerbose = {...configJson, verbose: true} diff --git a/package.json b/package.json index 6527a3f..d4fb049 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "test:watch": "mocha -w --watch-extensions js,ts,json", "test:cover": "nyc --report-dir coverage/unit mocha", "integration": "mocha --opts integration/mocha.opts", + "integration:pacific": "export NETWORK_NAME=pacific; mocha --opts integration/mocha.opts", "integration:nile": "export NETWORK_NAME=nile; mocha --opts integration/mocha.opts", "integration:duero": "export NETWORK_NAME=duero; mocha --opts integration/mocha.opts", "integration:watch": "mocha -w --watch-extensions js,ts,json --opts integration/mocha.opts",