forked from swaap-labs/swaap-proxy-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
77 lines (74 loc) · 1.75 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
require("dotenv").config();
const HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
plugins: ["truffle-contract-size"],
networks: {
dev: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
gas: "80000000"
},
polygon: {
provider: () => new HDWalletProvider(
//private keys array
process.env.MNEMONIC,
//url to ethereum node
"https://matic-mainnet.chainstacklabs.com",
//account index
process.env.ACCOUNT_INDEX
),
network_id: 137,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true,
chainId: 137,
networkCheckTimeoutnetworkCheckTimeout: 10000,
timeoutBlocks: 200
},
mumbai: {
provider: function() {
return new HDWalletProvider(
//private keys array
process.env.MNEMONIC,
//url to polygon node
"https://matic-mumbai.chainstacklabs.com",
//account index
process.env.ACCOUNT_INDEX
);
},
network_id: 80001,
gasPrice: 7000000000,
confirmations: 2,
timeoutBlocks: 1000,
skipDryRun: true,
timeoutBlocks: 50000,
networkCheckTimeout: 1000000
},
},
compilers: {
solc: {
version: "0.8.12",
settings: {
optimizer: {
enabled: true,
runs: 1000
},
evmVersion: "london",
outputSelection: {
"*": {
"": ["ast"],
"*": [
"evm.bytecode.object",
"evm.deployedBytecode.object",
"abi",
"evm.bytecode.sourceMap",
"evm.deployedBytecode.sourceMap",
"metadata"
]
}
}
}
}
}
};