forked from g2entgroup/poap-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
103 lines (102 loc) · 2.7 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
const HDWalletProvider = require('truffle-hdwallet-provider');
module.exports = {
networks: {
local: {
host: 'localhost',
port: 9545,
gas: 5000000,
gasPrice: 5e9,
network_id: '*',
},
ropsten: {
provider: function() {
if (!process.env.POAP_ROPSTEN_PK) {
console.error('POAP_ROPSTEN_PK env variable is needed');
process.abort();
}
return new HDWalletProvider(
process.env.POAP_ROPSTEN_PK,
'https://ropsten.infura.io/v3/cf7a7eed37254ec4b95670607e76a917'
);
},
gas: 5000000,
gasPrice: 5e9,
network_id: 3,
},
kovan: {
provider: function() {
if (!process.env.POAP_KOVAN_PK) {
console.error('POAP_KOVAN_PK env variable is needed');
process.abort();
}
return new HDWalletProvider(
process.env.POAP_ROPSTEN_PK,
'https://kovan.infura.io/v3/cf7a7eed37254ec4b95670607e76a917'
);
},
gas: 5000000,
gasPrice: 5e9,
network_id: 3,
},
sokol: {
provider: function() {
if (!process.env.POAP_SOKOL_PK) {
console.error('POAP_SOKOL_PK env variable is needed');
process.abort();
}
return new HDWalletProvider(
process.env.POAP_SOKOL_PK,
"https://sokol.poa.network"
);
},
gas: 5000000,
gasPrice: 5e9,
network_id: 77,
},
xdai: {
provider: function() {
if (!process.env.POAP_XDAI_PK) {
console.error('POAP_XDAI_PK env variable is needed');
process.abort();
}
return new HDWalletProvider(
process.env.POAP_XDAI_PK,
"https://dai.poa.network"
);
},
gas: 5000000,
gasPrice: 5e9,
network_id: 100,
},
mainnet: {
provider: function() {
if (!process.env.POAP_MAIN_PK) {
console.error('POAP_MAIN_PK env variable is needed');
process.abort();
}
return new HDWalletProvider(
process.env.POAP_MAIN_PK,
'https://mainnet.infura.io/v3/cf7a7eed37254ec4b95670607e76a917'
);
},
gas: 5000000,
gasPrice: 5e9, // 5 gwei (check https://ethgasstation.info/)
network_id: 1,
},
binancetestnet: {
provider: function() {
if (!process.env.POAP_BINANCE_TEST_PK) {
console.error('POAP_BINANCE_TEST_PK env variable is needed');
process.abort();
}
return new HDWalletProvider(
process.env.POAP_BINANCE_TEST_PK,
'https://data-seed-prebsc-1-s1.binance.org:8545'
);
},
gas: 5000000,
gasPrice: 5e9,
network_id: 97,
},
},
};