-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
35 lines (33 loc) · 957 Bytes
/
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
require('dotenv').config();
const path = require("path");
const HDWalletProvider = require('@truffle/hdwallet-provider');
const SEPOLIA_RPC_URL = process.env.SEPOLIA_RPC_URL;
const MNEMONIC = process.env.MNEMONIC;
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
contracts_build_directory: path.join(__dirname, "client/contracts"),
networks: {
development: {
network_id: "*",
host: "127.0.0.1",
port: 7545, // for ganache gui
// port: 8545, // for ganache-cli
gas: 6721975,
gasPrice: 20000000000,
},
sepolia: {
provider: () => new HDWalletProvider(MNEMONIC, SEPOLIA_RPC_URL),
network_id: 11155111,
gas: 5500000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
},
},
compilers: {
solc: {
version: "0.7.6", // Specify the Solidity compiler version
}
}
};