-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
42 lines (37 loc) · 1.3 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
const HDWalletProvider = require('@truffle/hdwallet-provider');
// The private keys should be stored in another way
var privateKey = ['PUT YOUR PRIVATE KEY HERE'];
module.exports = {
/**
* Networks define how you connect to your ethereum client and let you set the
* defaults web3 uses to send transactions. You can ask a truffle command to use a specific
* network from the command line, e.g
*
* $ truffle test --network <network-name>
*/
networks: {
blockchain: {
network_id: "CHAIN ID",
gas: "GAS VALUE",
provider: () => new HDWalletProvider(privateKey, 'URL_BLOCK_CHAIN'),
from: 'PUBLIC ADDRESS RELATED TO THE PRIVATE KEY'
},
},
// Configure your compilers
compilers: {
solc: {
version: "0.8.12", // Fetch exact version from solc-bin (default: truffle's version)
// docker: true, // Use "0.5.1" you've installed locally with docker (default: false)
settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 1000
},
// evmVersion: "byzantium"
}
}
},
plugins: [
'truffle-contract-size'
]
};