-
Notifications
You must be signed in to change notification settings - Fork 375
/
Copy pathtruffle-config.js
47 lines (43 loc) · 990 Bytes
/
truffle-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
const SOLC_VERSION = '0.5.13'
const parent = require('./truffle-config-parent.js')
const networks = { ...parent.networks }
const { celoScanApiKey } = require('./.env.json')
console.log(`Using truffle version for Solidity ${SOLC_VERSION}`)
module.exports = {
plugins: ['truffle-plugin-verify'],
api_keys: {
celoscan: celoScanApiKey,
},
compilers: {
solc: {
version: SOLC_VERSION,
settings: {
metadata: { useLiteralContent: true },
evmVersion: 'istanbul',
},
},
},
networks,
}
if (process.argv.includes('--gas')) {
module.exports = {
compilers: {
solc: {
version: SOLC_VERSION,
settings: {
metadata: { useLiteralContent: true },
evmVersion: 'istanbul',
},
},
},
plugins: ['truffle-plugin-verify'],
api_keys: {
celoscan: celoScanApiKey,
},
networks,
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD',
},
}
}