-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
86 lines (83 loc) · 2.34 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
const HDWalletProvider = require("@truffle/hdwallet-provider");
const mnemonic =
"dawn rent you scissors south abuse once violin unveil birth slice noise";
module.exports = {
networks: {
ethereum_testnet: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://goerli.infura.io/v3/0e88431708fb4d219a28755bf50fb061`
),
network_id: 5, // Goerli's id
chain_id: 5,
skipDryRun: true,
networkCheckTimeout: 40000,
},
bsc_testnet: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://data-seed-prebsc-1-s3.binance.org:8545`
),
skipDryRun: true,
network_id: 97, // Binance Snart Chain testnet's id
chain_id: 97,
networkCheckTimeout: 100000,
},
polygon_testnet: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://polygon-mumbai.infura.io/v3/0e88431708fb4d219a28755bf50fb061`
),
skipDryRun: true,
network_id: 80001, // Binance Snart Chain testnet's id
chain_id: 80001,
networkCheckTimeout: 100000,
},
arbitrum_testnet: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://arbitrum-goerli.infura.io/v3/e3562069a1d44d18aa58a3ea55ccf21a`
),
skipDryRun: true,
network_id: 421613, // Binance Snart Chain testnet's id
chain_id: 421613,
networkCheckTimeout: 100000,
},
optimism_testnet: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://optimism-goerli.infura.io/v3/0e88431708fb4d219a28755bf50fb061`
),
skipDryRun: true,
network_id: 420, // Binance Snart Chain testnet's id
chain_id: 420,
networkCheckTimeout: 100000,
},
avalanche_testnet: {
provider: () =>
new HDWalletProvider(
mnemonic,
`https://avalanche-fuji.infura.io/v3/0e88431708fb4d219a28755bf50fb061`
),
skipDryRun: true,
network_id: 43113, // Binance Snart Chain testnet's id
chain_id: 43113,
networkCheckTimeout: 100000,
},
},
// Set default mocha options here, use special reporters etc.
mocha: {
// timeout: 100000
},
// Configure your compilers
compilers: {
solc: {
version: "0.8.13", // Fetch exact version from solc-bin
},
},
};