forked from formless-eng/share-v1-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
74 lines (70 loc) · 1.66 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
const HDWalletProvider = require("@truffle/hdwallet-provider");
const mnemonicPhrase = process.env.MNEMONIC_PHRASE;
const RPC_ENDPOINT_OPTIMISM_GOERLI =
process.env.RPC_ENDPOINT_OPTIMISM_GOERLI;
const RPC_ENDPOINT_POLYGON_MUMBAI =
process.env.RPC_ENDPOINT_POLYGON_MUMBAI;
const RPC_ENDPOINT_POLYGON_MAINNET =
process.env.RPC_ENDPOINT_POLYGON_MAINNET;
const SOLIDITY_COMPILER_VERSION = "0.8.11";
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
gas: 800000000,
},
optimism_goerli: {
provider: () =>
new HDWalletProvider(
mnemonicPhrase,
RPC_ENDPOINT_OPTIMISM_GOERLI
),
network_id: 420,
gas: 5500000,
confirmations: 2,
timeoutBlocks: 2000,
networkCheckTimeout: 1000000,
skipDryRun: true,
},
mumbai: {
provider: () =>
new HDWalletProvider(
mnemonicPhrase,
RPC_ENDPOINT_POLYGON_MUMBAI
),
network_id: 80001,
gas: 5500000,
confirmations: 2,
timeoutBlocks: 200,
networkCheckTimeout: 1000000,
skipDryRun: true,
},
polygon: {
provider: () =>
new HDWalletProvider(
mnemonicPhrase,
RPC_ENDPOINT_POLYGON_MAINNET
),
network_id: 137,
gas: 5000000,
gasPrice: 250000000000,
timeoutBlocks: 200,
networkCheckTimeout: 10000,
skipDryRun: true,
},
},
mocha: {},
compilers: {
solc: {
version: SOLIDITY_COMPILER_VERSION,
settings: {
optimizer: {
enabled: false,
},
},
},
},
test_directory: "contracts/test",
};