-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtruffle-config.js
105 lines (103 loc) · 2.42 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
const HDWalletProvider = require('@truffle/hdwallet-provider');
require('dotenv').config();
const {
NEXT_PUBLIC_MNEMONIC,
INFURA_BSC_TESTNET_PROVIDER,
INFURA_BSC_PROVIDER,
INFURA_POLYGON_PROVIDER,
INFURA_POLYGON_TESTNET_PROVIDER,
INFURA_ETHEREUM_PROVIDER,
INFURA_ETHEREUM_TESTNET_PROVIDER,
} = process.env;
module.exports = {
networks: {
bsc_testnet: {
provider: () =>
new HDWalletProvider({
mnemonic: {
phrase: NEXT_PUBLIC_MNEMONIC,
},
providerOrUrl: INFURA_BSC_TESTNET_PROVIDER,
}),
network_id: 97,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true,
},
bsc: {
provider: () =>
new HDWalletProvider({
mnemonic: {
phrase: NEXT_PUBLIC_MNEMONIC,
},
providerOrUrl: INFURA_BSC_PROVIDER,
}),
network_id: 56,
gasPrice: 20000000000,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true,
},
polygon_testnet: {
provider: () =>
new HDWalletProvider({
mnemonic: {
phrase: NEXT_PUBLIC_MNEMONIC,
},
providerOrUrl: INFURA_POLYGON_TESTNET_PROVIDER,
}),
network_id: 80001,
gasPrice: 1000000000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
},
polygon: {
provider: () =>
new HDWalletProvider({
mnemonic: {
phrase: NEXT_PUBLIC_MNEMONIC,
},
providerOrUrl: INFURA_POLYGON_PROVIDER,
}),
network_id: 137,
gasPrice: 1000000000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
},
ethereum_testnet: {
provider: () =>
new HDWalletProvider({
mnemonic: {
phrase: NEXT_PUBLIC_MNEMONIC,
},
providerOrUrl: INFURA_ETHEREUM_TESTNET_PROVIDER,
}),
network_id: 11155111,
gasPrice: 1000000000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
},
ethereum: {
provider: () =>
new HDWalletProvider({
mnemonic: {
phrase: NEXT_PUBLIC_MNEMONIC,
},
providerOrUrl: INFURA_ETHEREUM_PROVIDER,
}),
network_id: 1,
gasPrice: 1000000000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
},
},
compilers: {
solc: {
version: '0.8.19',
},
},
};