-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
39 lines (39 loc) · 1.29 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
const { createProvider } = require("@rarible/trezor-provider");
const HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
networks: {
polygon_trezor: {
provider: () => {
return createProvider({
url: process.env.POLYGON_NODE,
path: "m/44'/60'/0'/0/0",
chainId: 137,
});
},
network_id: 137, // Ropsten's id
gasPrice: 45 * 10 ** 9,
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets )
},
mumbai: {
provider: () =>
new HDWalletProvider(process.env.MNEMONIC, process.env.MUMBAI_NODE),
network_id: 80001, // Ropsten's id
gasPrice: 45 * 10 ** 9,
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true, // Skip dry run before migrations? (default: false for public nets )
},
},
compilers: {
solc: {
version: "0.8.5",
settings: {
optimizer: {
enabled: false,
},
},
},
},
};