-
Notifications
You must be signed in to change notification settings - Fork 11
/
truffle-config.js
110 lines (110 loc) · 3.06 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
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
const web3 = require('web3');
const HDWalletProvider = require('@truffle/hdwallet-provider');
const {INFURA_PROJECT_ID, TEST_PRIVATE_KEYS, MAINNET_PRIVATE_KEYS, RINKEBY_PRIVATE_KEYS, ROPSTEN_PRIVATE_KEYS, KOVAN_PRIVATE_KEYS, GOERLI_PRIVATE_KEYS} = require('./.secrets.json');
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
test: {
provider: function () {
return new HDWalletProvider({
privateKeys: TEST_PRIVATE_KEYS,
providerOrUrl: "http://127.0.0.1:8545",
addressIndex: 0,
numberOfAddresses: 3
});
},
network_id: 2017,
skipDryRun: false,
proxyAdminOwner: "0xC74C5aaA34fa9F3e70D421D88D6b30a13dA7fAe2"
},
mainnet: {
provider: function () {
return new HDWalletProvider({
privateKeys: MAINNET_PRIVATE_KEYS,
providerOrUrl: "https://mainnet.infura.io/v3/" + INFURA_PROJECT_ID,
numberOfAddresses: 3,
derivationPath: "m/44'/60'/0'/0"
});
},
network_id: 1,
proxyAdminOwner: "0x06b978B64BcC3180C4d429592CEDe387f8Eb6E48",
gasPrice: web3.utils.toWei("25", "gwei"),
skipDryRun: false,
},
ropsten: {
provider: function () {
return new HDWalletProvider({
privateKeys: ROPSTEN_PRIVATE_KEYS,
providerOrUrl: "https://ropsten.infura.io/v3/" + INFURA_PROJECT_ID,
numberOfAddresses: 3,
derivationPath: "m/44'/60'/0'/0"
});
},
network_id: 3,
gas: 5500000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: false
},
rinkeby: {
provider: function () {
return new HDWalletProvider({
privateKeys: RINKEBY_PRIVATE_KEYS,
providerOrUrl: "https://rinkeby.infura.io/v3/" + INFURA_PROJECT_ID,
numberOfAddresses: 3,
derivationPath: "m/44'/60'/0'/0"
});
},
network_id: 4,
skipDryRun: false
},
kovan: {
provider: function () {
return new HDWalletProvider({
privateKeys: KOVAN_PRIVATE_KEYS,
providerOrUrl: "https://kovan.infura.io/v3/" + INFURA_PROJECT_ID,
addressIndex: 0,
numberOfAddresses: 3
});
},
network_id: 42,
skipDryRun: false
},
goerli: {
provider: function () {
return new HDWalletProvider({
privateKeys: GOERLI_PRIVATE_KEYS,
providerOrUrl: "https://goerli.infura.io/v3/" + INFURA_PROJECT_ID,
addressIndex: 0,
numberOfAddresses: 3,
});
},
network_id: 5,
proxyAdminOwner: "0xD67Ac189DAbc24FA566699B60F011CE150992698",
gasPrice: web3.utils.toWei("1", "gwei"),
skipDryRun: false
},
loc_development_development: {
network_id: "*",
port: 8546,
host: "127.0.0.1"
}
},
mocha: {},
compilers: {
solc: {
version: "0.6.2",
settings: {
optimizer: {
enabled: true,
runs: 1337
}
}
}
},
plugins: ['truffle-flatten']
};