2020-07-22 12:27:57 +02:00
|
|
|
const { ConfigHelper } = require('@oceanprotocol/lib')
|
2020-07-20 17:04:38 +02:00
|
|
|
|
2020-07-22 13:56:42 +02:00
|
|
|
const network = process.env.GATSBY_NETWORK || 'rinkeby'
|
|
|
|
|
2020-07-22 13:36:49 +02:00
|
|
|
function getDefaultOceanConfig() {
|
|
|
|
return new ConfigHelper().getConfig(
|
2020-07-22 13:56:42 +02:00
|
|
|
network,
|
2020-07-22 13:36:49 +02:00
|
|
|
process.env.GATSBY_INFURA_PROJECT_ID
|
|
|
|
)
|
|
|
|
}
|
2020-07-20 17:04:38 +02:00
|
|
|
|
2020-07-22 13:36:49 +02:00
|
|
|
const appConfig = {
|
2020-07-08 15:15:02 +02:00
|
|
|
oceanConfig: {
|
2020-07-22 13:36:49 +02:00
|
|
|
...getDefaultOceanConfig(),
|
2020-07-08 15:15:02 +02:00
|
|
|
verbose: 3
|
2020-07-14 17:41:45 +02:00
|
|
|
},
|
2020-07-22 13:56:42 +02:00
|
|
|
network,
|
2020-08-05 15:32:55 +02:00
|
|
|
infuraProjectId: process.env.GATSBY_INFURA_PROJECT_ID || 'xxx',
|
|
|
|
marketFeeAddress: process.env.GATSBY_MARKET_FEE_ADDRESS || '0xxxx',
|
|
|
|
marketFeeAmount: process.env.GATSBY_MARKET_FEE_AMOUNT || '0.03' // in %
|
2020-07-08 15:15:02 +02:00
|
|
|
}
|
2020-07-22 13:36:49 +02:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
getDefaultOceanConfig,
|
|
|
|
appConfig
|
|
|
|
}
|