generated from deltaDAO/mvg-portal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.config.js
129 lines (106 loc) · 4.9 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
const {
getDefaultChainIds,
getSupportedChainIds
} = require('./chains.config.js')
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.main.pontus-x.eu',
complianceUri:
process.env.NEXT_PUBLIC_COMPLIANCE_URI ||
'https://www.delta-dao.com/compliance',
complianceApiVersion:
process.env.NEXT_PUBLIC_COMPLIANCE_API_VERSION || '2210',
// 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(),
customProviderUrl:
process.env.NEXT_PUBLIC_PROVIDER_URL || 'https://provider.main.pontus-x.eu',
infuraProjectId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID || 'xxx',
defaultDatatokenTemplateIndex: 2,
// 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 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',
// 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 || 'true',
allowDynamicPricing: process.env.NEXT_PUBLIC_ALLOW_DYNAMIC_PRICING || 'false',
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 || 'true',
// Default terms to be used for service offerings made on this marketplace
defaultTermsAndConditionsUrl: 'https://portal.main.pontus-x.eu/terms',
// Purgatory URI, leave as an empty string to disable the API call
purgatoryUrl: process.env.NEXT_PUBLIC_PURGATORY_URI || '',
// The url used to fetch docker hub image info
dockerHubProxyUrl:
process.env.NEXT_PUBLIC_DOCKER_HUB_PROXY_URL ||
'https://dockerhub-proxy.delta-dao.com',
automationConfig: {
enableAutomation: process.env.NEXT_PUBLIC_ENABLE_AUTOMATION || 'true',
networkTokenFundDefaultValue: '2',
erc20ApprovalDefaultValue: '50',
roughTxGasEstimate: 0.02
},
// Display alert banner for the developer preview deployment
showPreviewAlert: process.env.NEXT_PUBLIC_SHOW_PREVIEW_ALERT || 'false',
contractingProvider: {
enable: true,
endpoint: 'https://contracting.main.delta-dao.com'
},
networkAlertConfig: {
// Refresh interval for network status - 30 sec
refreshInterval: 30000,
// Margin of error for block count (how much difference between min / max block numbers before showing an alert)
errorMargin: 10,
// Map chainIds to their respective status endpoints
statusEndpoints: {
32456: 'https://status.dev.pontus-x.eu/'
}
},
faucet: {
enabled: process.env.NEXT_PUBLIC_FAUCET_ENABLED || 'false',
baseUri: 'https://faucet.api.pontus-x.eu'
},
showOnboardingModuleByDefault:
process.env.NEXT_PUBLIC_SHOW_ONBOARDING_MODULE_BY_DEFAULT === 'true',
allowedGaiaXRegistryDomains: [
'https://registry.gaia-x.eu/v2206',
'https://registry.lab.gaia-x.eu/v2206'
]
}