-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtruffle-config.js
More file actions
101 lines (96 loc) · 2.8 KB
/
Copy pathtruffle-config.js
File metadata and controls
101 lines (96 loc) · 2.8 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
const HDWalletProvider = require('@truffle/hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync('.secret').toString().trim();
const infuraId = 'fc70ab71d9c44a6fbd3ad9477c52e893';
module.exports = {
contracts_build_directory: './src/contracts/',
networks: {
development: {
host: '127.0.0.1', // Localhost (default: none)
port: 8545, // Standard BSC port (default: none)
network_id: '*', // Any network (default: none)
},
bsc_testnet: {
provider: () =>
new HDWalletProvider(mnemonic, `https://data-seed-prebsc-1-s1.binance.org:8545`),
network_id: 97,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true,
},
bsc: {
provider: () => new HDWalletProvider(mnemonic, `https://bsc-dataseed1.binance.org`),
network_id: 56,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true,
},
ropsten: {
provider: function () {
return new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/${infuraId}`);
},
networkCheckTimeoutnetworkCheckTimeout: 10000,
timeoutBlocks: 200,
network_id: 3,
skipDryRun: true,
},
rinkeby: {
provider: function () {
return new HDWalletProvider(mnemonic, `https://rinkeby.infura.io/v3/${infuraId}`);
},
network_id: 4,
networkCheckTimeoutnetworkCheckTimeout: 10000,
timeoutBlocks: 200,
skipDryRun: true,
},
goerli: {
provider: function () {
return new HDWalletProvider(mnemonic, `https://goerli.infura.io/v3/${infuraId}`);
},
network_id: 5,
confirmations: 3,
networkCheckTimeoutnetworkCheckTimeout: 10000,
timeoutBlocks: 200,
skipDryRun: true,
},
nsc: {
provider: function () {
return new HDWalletProvider(mnemonic, `https://rpc.nextsmartchain.com`);
},
network_id: 96,
networkCheckTimeoutnetworkCheckTimeout: 10000,
timeoutBlocks: 200,
skipDryRun: true,
},
kek: {
provider: function () {
return new HDWalletProvider(mnemonic, `https://mainnet.kekchain.com`);
},
network_id: 103090,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
},
},
// Set default mocha options here, use special reporters etc.
mocha: {
// timeout: 100000
},
// Configure your compilers
compilers: {
solc: {
version: '^0.8.0', // A version or constraint - Ex. "^0.5.0"
parser: 'solcjs', // Leverages solc-js purely for speedy parsing
settings: {
optimizer: {
enabled: true,
runs: 99999, // Optimize for how many times you intend to run the code
},
},
},
},
plugins: ['truffle-plugin-verify'],
api_keys: {
etherscan: 'X88AP9B52SENYPTR31W5SGRK5EGJZD2BJC',
},
};