2021-10-27 19:33:57 +02:00
|
|
|
module.exports = {
|
2021-07-27 16:12:54 +02:00
|
|
|
// URI of single metadata cache instance for all networks.
|
|
|
|
// While ocean.js includes this value for each network as part of its ConfigHelper,
|
|
|
|
// it is assumed to be the same for all networks.
|
2022-04-22 02:38:35 +02:00
|
|
|
// In components can be accessed with the useMarketMetadata hook:
|
|
|
|
// const { appConfig } = useMarketMetadata()
|
2021-07-27 16:12:54 +02:00
|
|
|
// return appConfig.metadataCacheUri
|
2021-06-04 15:50:24 +02:00
|
|
|
metadataCacheUri:
|
2021-10-27 19:07:11 +02:00
|
|
|
process.env.NEXT_PUBLIC_METADATACACHE_URI ||
|
2022-02-16 19:42:35 +01:00
|
|
|
'https://v4.aquarius.oceanprotocol.com',
|
2022-11-16 10:39:28 +01:00
|
|
|
calicaUri: 'https://calica.xyz/ocean/contracts',
|
2021-06-09 11:45:36 +02:00
|
|
|
// List of chainIds which metadata cache queries will return by default.
|
|
|
|
// This preselects the Chains user preferences.
|
2022-06-08 10:46:46 +02:00
|
|
|
chainIds: [1, 137, 56, 246, 1285],
|
2021-06-09 11:45:36 +02:00
|
|
|
|
|
|
|
// List of all supported chainIds. Used to populate the Chains user preferences list.
|
2022-10-31 12:08:38 +01:00
|
|
|
chainIdsSupported: [1, 137, 56, 246, 1285, 5, 80001],
|
2021-03-04 18:16:20 +01:00
|
|
|
|
2021-10-27 19:07:11 +02:00
|
|
|
infuraProjectId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID || 'xxx',
|
2021-03-04 18:16:20 +01:00
|
|
|
|
2022-11-15 15:35:26 +01:00
|
|
|
defaultDatatokenTemplateIndex: 2,
|
2020-10-09 21:31:57 +02:00
|
|
|
// The ETH address the marketplace fee will be sent to.
|
2020-08-06 14:39:56 +02:00
|
|
|
marketFeeAddress:
|
2021-10-27 19:07:11 +02:00
|
|
|
process.env.NEXT_PUBLIC_MARKET_FEE_ADDRESS ||
|
2021-10-04 09:43:52 +02:00
|
|
|
'0x9984b2453eC7D99a73A5B3a46Da81f197B753C8d',
|
2022-02-14 17:27:36 +01:00
|
|
|
// publisher market fee that is taken upon ordering an asset, it is an absolute value, it is declared on erc20 creation
|
|
|
|
publisherMarketOrderFee:
|
|
|
|
process.env.NEXT_PUBLIC_PUBLISHER_MARKET_ORDER_FEE || '0',
|
|
|
|
// fee recieved by the publisher market when a dt is bought from a fixed rate exchange, percent
|
|
|
|
publisherMarketFixedSwapFee:
|
|
|
|
process.env.NEXT_PUBLIC_PUBLISHER_MARKET_FIXED_SWAP_FEE || '0',
|
|
|
|
|
|
|
|
// consume market fee that is taken upon ordering an asset, it is an absolute value, it is specified on order
|
|
|
|
consumeMarketOrderFee:
|
|
|
|
process.env.NEXT_PUBLIC_CONSUME_MARKET_ORDER_FEE || '0',
|
|
|
|
// fee recieved by the consume market when a dt is bought from a fixed rate exchange, percent
|
|
|
|
consumeMarketFixedSwapFee:
|
|
|
|
process.env.NEXT_PUBLIC_CONSUME_MARKET_FIXED_SWAP_FEE || '0',
|
2021-03-04 18:16:20 +01:00
|
|
|
|
2020-09-10 14:21:10 +02:00
|
|
|
// Used for conversion display, can be whatever coingecko API supports
|
|
|
|
// see: https://api.coingecko.com/api/v3/simple/supported_vs_currencies
|
2020-10-31 20:18:45 +01:00
|
|
|
currencies: [
|
|
|
|
'EUR',
|
|
|
|
'USD',
|
|
|
|
'CAD',
|
|
|
|
'GBP',
|
|
|
|
'SGD',
|
|
|
|
'HKD',
|
|
|
|
'CNY',
|
|
|
|
'JPY',
|
|
|
|
'INR',
|
|
|
|
'RUB',
|
|
|
|
'ETH',
|
|
|
|
'BTC',
|
|
|
|
'LINK'
|
|
|
|
],
|
2020-10-30 21:28:20 +01:00
|
|
|
|
2022-08-12 15:11:33 +02:00
|
|
|
// Tokens to fetch the spot prices from coingecko, against above currencies.
|
|
|
|
// Refers to Coingecko API tokenIds.
|
|
|
|
coingeckoTokenIds: ['ocean-protocol', 'h2o', 'ethereum', 'matic-network'],
|
|
|
|
|
2022-09-21 13:58:28 +02:00
|
|
|
// Config for https://github.com/oceanprotocol/use-dark-mode
|
2020-10-30 21:28:20 +01:00
|
|
|
darkModeConfig: {
|
|
|
|
classNameDark: 'dark',
|
|
|
|
classNameLight: 'light',
|
|
|
|
storageKey: 'oceanDarkMode'
|
2021-01-29 13:40:54 +01:00
|
|
|
},
|
|
|
|
|
2022-08-02 11:53:22 +02:00
|
|
|
// Used to show or hide the fixed or free price options
|
2021-03-24 13:27:32 +01:00
|
|
|
// tab to publishers during the price creation.
|
2021-10-27 19:07:11 +02:00
|
|
|
allowFixedPricing: process.env.NEXT_PUBLIC_ALLOW_FIXED_PRICING || 'true',
|
|
|
|
allowFreePricing: process.env.NEXT_PUBLIC_ALLOW_FREE_PRICING || 'true',
|
2021-10-12 10:00:57 +02:00
|
|
|
|
|
|
|
// Set the default privacy policy to initially display
|
|
|
|
// this should be the slug of your default policy markdown file
|
|
|
|
defaultPrivacyPolicySlug: '/privacy/en',
|
|
|
|
|
|
|
|
// This enables / disables the use of a GDPR compliant
|
|
|
|
// privacy preference center to manage cookies on the market
|
|
|
|
// If set to true a gdpr.json file inside the content directory
|
|
|
|
// is used to create and show a privacy preference center / cookie banner
|
|
|
|
// To learn more about how to configure and use this, please refer to the readme
|
2021-10-27 19:07:11 +02:00
|
|
|
privacyPreferenceCenter:
|
|
|
|
process.env.NEXT_PUBLIC_PRIVACY_PREFERENCE_CENTER || 'false'
|
2020-07-08 15:15:02 +02:00
|
|
|
}
|