mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
e412dc10d6
* feat: add v3 assets redirect * feat: add fallback return value to checkV3Asset * fix: rename env variables for v3 related uris
99 lines
3.8 KiB
JavaScript
99 lines
3.8 KiB
JavaScript
module.exports = {
|
|
// 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.
|
|
// In components can be accessed with the useMarketMetadata hook:
|
|
// const { appConfig } = useMarketMetadata()
|
|
// return appConfig.metadataCacheUri
|
|
metadataCacheUri:
|
|
process.env.NEXT_PUBLIC_METADATACACHE_URI ||
|
|
'https://v4.aquarius.oceanprotocol.com',
|
|
|
|
v3MetadataCacheUri:
|
|
process.env.NEXT_PUBLIC_V3_METADATACACHE_URI ||
|
|
'https://aquarius.oceanprotocol.com',
|
|
|
|
v3MarketUri:
|
|
process.env.NEXT_PUBLIC_V3_MARKET_URI ||
|
|
'https://v3.market.oceanprotocol.com',
|
|
|
|
// List of chainIds which metadata cache queries will return by default.
|
|
// This preselects the Chains user preferences.
|
|
chainIds: [3, 4, 80001, 1287],
|
|
|
|
// List of all supported chainIds. Used to populate the Chains user preferences list.
|
|
chainIdsSupported: [3, 4, 80001, 1287],
|
|
|
|
infuraProjectId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID || 'xxx',
|
|
|
|
// The ETH address the marketplace fee will be sent to.
|
|
marketFeeAddress:
|
|
process.env.NEXT_PUBLIC_MARKET_FEE_ADDRESS ||
|
|
'0x9984b2453eC7D99a73A5B3a46Da81f197B753C8d',
|
|
// 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 swaped from a pool, percent
|
|
publisherMarketPoolSwapFee:
|
|
process.env.NEXT_PUBLIC_PUBLISHER_MARKET_POOL_SWAP_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 swaped from a pool, percent
|
|
consumeMarketPoolSwapFee:
|
|
process.env.NEXT_PUBLIC_CONSUME_MARKET_POOL_SWAP_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',
|
|
|
|
// Used for conversion display, can be whatever coingecko API supports
|
|
// see: https://api.coingecko.com/api/v3/simple/supported_vs_currencies
|
|
currencies: [
|
|
'EUR',
|
|
'USD',
|
|
'CAD',
|
|
'GBP',
|
|
'SGD',
|
|
'HKD',
|
|
'CNY',
|
|
'JPY',
|
|
'INR',
|
|
'RUB',
|
|
'ETH',
|
|
'BTC',
|
|
'LINK'
|
|
],
|
|
|
|
// Config for https://github.com/donavon/use-dark-mode
|
|
darkModeConfig: {
|
|
classNameDark: 'dark',
|
|
classNameLight: 'light',
|
|
storageKey: 'oceanDarkMode'
|
|
},
|
|
|
|
// Wallets
|
|
portisId: process.env.NEXT_PUBLIC_PORTIS_ID || 'xxx',
|
|
|
|
// Used to show or hide the fixed, dynamic or free price options
|
|
// tab to publishers during the price creation.
|
|
allowFixedPricing: process.env.NEXT_PUBLIC_ALLOW_FIXED_PRICING || 'true',
|
|
allowDynamicPricing: process.env.NEXT_PUBLIC_ALLOW_DYNAMIC_PRICING || 'true',
|
|
allowFreePricing: process.env.NEXT_PUBLIC_ALLOW_FREE_PRICING || 'true',
|
|
|
|
// 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
|
|
privacyPreferenceCenter:
|
|
process.env.NEXT_PUBLIC_PRIVACY_PREFERENCE_CENTER || 'false'
|
|
}
|