mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
60 lines
2.3 KiB
JavaScript
60 lines
2.3 KiB
JavaScript
|
"use strict";
|
||
|
var __assign = (this && this.__assign) || function () {
|
||
|
__assign = Object.assign || function(t) {
|
||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||
|
s = arguments[i];
|
||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||
|
t[p] = s[p];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
return __assign.apply(this, arguments);
|
||
|
};
|
||
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||
|
};
|
||
|
exports.__esModule = true;
|
||
|
var hdwallet_provider_1 = __importDefault(require("@truffle/hdwallet-provider"));
|
||
|
var configJson = {
|
||
|
nodeUri: 'http://localhost:8545',
|
||
|
aquariusUri: 'http://aquarius:5000',
|
||
|
brizoUri: 'http://localhost:8030',
|
||
|
secretStoreUri: 'http://localhost:12001',
|
||
|
brizoAddress: '0x068ed00cf0441e4829d9784fcbe7b9e26d4bd8d0',
|
||
|
verbose: false
|
||
|
};
|
||
|
if (process.env.NETWORK_NAME === 'pacific') {
|
||
|
Object.assign(configJson, {
|
||
|
nodeUri: 'https://pacific.oceanprotocol.com',
|
||
|
aquariusUri: 'https://aquarius.commons.oceanprotocol.com',
|
||
|
brizoUri: 'https://brizo.commons.oceanprotocol.com',
|
||
|
secretStoreUri: 'https://secret-store.oceanprotocol.com',
|
||
|
brizoAddress: '0x008c25ed3594e094db4592f4115d5fa74c4f41ea'
|
||
|
});
|
||
|
}
|
||
|
if (process.env.NETWORK_NAME === 'nile') {
|
||
|
Object.assign(configJson, {
|
||
|
nodeUri: 'https://nile.dev-ocean.com',
|
||
|
aquariusUri: 'https://aquarius.nile.dev-ocean.com',
|
||
|
brizoUri: 'https://brizo.nile.dev-ocean.com',
|
||
|
secretStoreUri: 'https://secret-store.nile.dev-ocean.com',
|
||
|
brizoAddress: '0x413c9ba0a05b8a600899b41b0c62dd661e689354'
|
||
|
});
|
||
|
}
|
||
|
if (process.env.NETWORK_NAME === 'duero') {
|
||
|
Object.assign(configJson, {
|
||
|
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'
|
||
|
});
|
||
|
}
|
||
|
if (process.env.SEED_WORDS) {
|
||
|
var seedphrase = process.env.SEED_WORDS;
|
||
|
// @ts-ignore
|
||
|
configJson.web3Provider = new hdwallet_provider_1["default"](seedphrase, configJson.nodeUri, 0, 5);
|
||
|
}
|
||
|
exports.config = configJson;
|
||
|
exports.config.forceVerbose = __assign(__assign({}, configJson), { verbose: true });
|