-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtruffle-config.js
More file actions
35 lines (34 loc) · 796 Bytes
/
Copy pathtruffle-config.js
File metadata and controls
35 lines (34 loc) · 796 Bytes
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
require("babel-register");
require("babel-polyfill");
const HDWalletProvider = require("@truffle/hdwallet-provider");
const privateKeyTest = "<private key>"; // Add your private key here
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*",
},
testnet: {
provider: () => {
return new HDWalletProvider({
providerOrUrl: "https://api.s0.b.hmny.io",
privateKeys: [privateKeyTest],
});
},
network_id: 1666700000,
gas: 20000000,
gasPrice: 10000000000,
},
},
contracts_directory: "./src/contracts/",
contracts_build_directory: "./src/abis/",
compilers: {
solc: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
};