-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
120 lines (115 loc) · 2.98 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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
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-s2.bnbchain.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'
},
};