-
Notifications
You must be signed in to change notification settings - Fork 5
/
app.config.js
72 lines (58 loc) · 3.35 KB
/
app.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
const { getDefaultChainIds, getSupportedChainIds } = require('./chains.config')
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://aquarius.pontus-x.eu',
complianceUri: process.env.NEXT_PUBLIC_COMPLIANCE_URI,
complianceApiVersion: process.env.NEXT_PUBLIC_COMPLIANCE_API_VERSION,
// List of chainIds which metadata cache queries will return by default.
// This preselects the Chains user preferences.
chainIds: getDefaultChainIds(),
// List of all supported chainIds. Used to populate the Chains user preferences list.
chainIdsSupported: getSupportedChainIds(),
infuraProjectId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID,
defaultDatatokenTemplateIndex: Number(
process.env.NEXT_PUBLIC_DEFAULT_DATATOKEN_TEMPLATE_INDEX
),
// The ETH address the marketplace fee will be sent to.
marketFeeAddress: process.env.NEXT_PUBLIC_MARKET_FEE_ADDRESS,
// 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,
// 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,
// 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,
// 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,
// Config for https://github.com/oceanprotocol/use-dark-mode
darkModeConfig: {
classNameDark: 'dark',
classNameLight: 'light',
storageKey: 'oceanDarkMode'
},
// 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,
allowDynamicPricing: process.env.NEXT_PUBLIC_ALLOW_DYNAMIC_PRICING,
allowFreePricing: process.env.NEXT_PUBLIC_ALLOW_FREE_PRICING,
// Set the default privacy policy to initially display
// this should be the slug of your default policy markdown file
defaultPrivacyPolicySlug: process.env.NEXT_PUBLIC_DEFAULT_PRIVACY_POLICY_SLUG,
// 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,
// Default terms to be used for service offerings made on this marketplace
defaultAccessTerms: process.env.NEXT_PUBLIC_DEFAULT_ACCESS_TERMS,
// Purgatory URI, leave as an empty string to disable the API call
purgatoryUrl: process.env.NEXT_PUBLIC_PURGATORY_URI
}