forked from urbit/azimuth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
63 lines (59 loc) · 1.27 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Allows us to use ES6 in migrations and tests.
require('babel-register')
require('babel-polyfill')
require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider');
const mnemonic = process.env.MNEMONIC;
const es_key = process.env.ETHERSCAN_KEY;
const infuraProjectId = "6b38131efce6467ca32aec6ebe619b68";
const provider = new HDWalletProvider({
mnemonic: {
phrase: mnemonic
},
providerOrUrl: `https://goerli.infura.io/v3/${infuraProjectId}`,
numberOfAddresses: 1,
addressIndex: 9,
shareNone: true,
derivationPath: "m/44'/60'/0'/0"
})
module.exports = {
plugins: [
'truffle-plugin-verify',
],
networks: {
development: {
host: "localhost",
port: 8545,
gas: 6000000,
network_id: "*" // Match any network id
},
goerli: {
provider: () => provider,
network_id: 5, // Goerli's network ID
gas: 5500000, // Adjust the gas limit according to your contracts
},
},
api_keys: {
etherscan: es_key,
},
compilers: {
solc: {
version: "pragma",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
mocha: {
enableTimeouts: false,
}
};