-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
37 lines (36 loc) · 1.08 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
require('babel-register')
require('babel-polyfill')
require('dotenv').config()
const HDWalletProvider = require('@truffle/hdwallet-provider')
module.exports = {
// Configure networks (Localhost, Sepolia, etc.)
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*', // Match any network id
},
sepolia: {
provider: () => new HDWalletProvider('surge recall stuff inspire you dumb identify north hazard royal chapter flock', `https://sepolia.infura.io/v3/e60b8dd190884a309227227648c183d4`),
network_id: 11155111,
gas: 5500000,
gasPrice: 10000000000, // Set the desired gas price in Wei (10 Gwei in this example)
confirmations: 2,
timeoutBlocks: 300,
skipDryRun: true,
},
},
contracts_directory: './src/contracts/',
contracts_build_directory: './src/abis/',
migrations_directory: './migrations',
// Configure your compilers
compilers: {
solc: {
version: '0.8.11',
optimizer: {
enabled: true,
runs: 200,
},
},
},
}