-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
52 lines (46 loc) · 1.47 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
const { projectId, privateKey, etherscanAPI } = require('./secrets.json');
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
mocha: {
enableTimeouts: false
},
networks: {
arbitrum: {
// provider: () => new HDWalletProvider([privateKey], `https://arbitrum-mainnet.infura.io/v3/${projectId}`),
provider: () => new HDWalletProvider([privateKey], `https://arb-mainnet.g.alchemy.com/v2/-qZsYxHU3k-SSsZgQGQK1sHysM8s_Lw8`),
network_id: 42161,
gas: 9000000,
timeoutBlocks: 2000,
skipDryRun: true,
},
sepolia: {
// provider: () => new HDWalletProvider([privateKey], `https://sepolia.infura.io/v3/${projectId}`),
provider: () => new HDWalletProvider([privateKey], `https://eth-sepolia.g.alchemy.com/v2/-T9BRNyVyymLfcu447YlPJQNOpPD0UAf`),
network_id: 11155111,
gas: 5500000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
},
},
// Configure your compilers
compilers: {
solc: {
version: "0.8.3", // Fetch exact version from solc-bin (default: truffle's version)
settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200
},
}
},
},
plugins: [
'truffle-plugin-verify'
],
// truffle deploy --network sepolia
// truffle run verify NetworkStateGenesis --network sepolia
api_keys: {
etherscan: etherscanAPI
}
};