forked from DexKit/dexkitcontracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuidler.config.js
29 lines (26 loc) · 846 Bytes
/
buidler.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
const HDWalletProvider = require('@truffle/hdwallet-provider');
require('dotenv').config();
const infuraProjectId = process.env.INFURA_PROJECT_ID;
usePlugin("@nomiclabs/buidler-etherscan");
const privateKeys = [process.env.PRIVATE_KEY];
const providerOrUrl = `https://ropsten.infura.io/v3/${infuraProjectId}`;
module.exports = {
networks: {
ropsten: {
url: `https://ropsten.infura.io/v3/${infuraProjectId}`,
provider: () => new HDWalletProvider(
privateKeys, providerOrUrl
),
networkId: 3,
gasPrice: 10e9
}
},
solc: {
version: "0.6.12"
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: "STWA5GG71NEJ7QZETMM7Y6MS9B322BHPV6"
}
};