forked from FairCrypto/XENFT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
123 lines (121 loc) · 3.49 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
121
122
123
const HDWalletProvider = require('@truffle/hdwallet-provider')
const dotenv = require("dotenv")
dotenv.config()
const infuraKey = process.env.INFURA_KEY || ''
const infuraSecret = process.env.INFURA_SECRET || ''
const liveNetworkPK = process.env.LIVE_PK || ''
const privKeysRinkeby = [ liveNetworkPK ]
const etherscanApiKey = process.env.ETHERS_SCAN_API_KEY || ''
const polygonApiKey = process.env.POLYGON_SCAN_API_KEY || ''
const bscApiKey = process.env.BSC_SCAN_API_KEY || ''
module.exports = {
networks: {
test: {
gasLimit: 15_000_000_000,
},
ganache: {
host: "127.0.0.1",
port: 8545,
network_id: "222222222",
websocket: true,
gasLimit: 15_000_000_000,
//from: '0x0E4F1eB5c6c1ae7D6B7B2A8FcbCB4627644ad51E'
},
goerli: {
provider: () => new HDWalletProvider({
privateKeys: privKeysRinkeby,
providerOrUrl: `https://:${infuraSecret}@goerli.infura.io/v3/${infuraKey}`,
//providerOrUrl: `wss://:${infuraSecret}@goerli.infura.io/ws/v3/${infuraKey}`,
pollingInterval: 56000
}),
network_id: 5,
confirmations: 2,
timeoutBlocks: 100,
gas: 12_000_000,
maxPriorityFeePerGas: 2_000_000_000,
maxFeePerGas: 30_000_000_000,
skipDryRun: true,
// from: '0x6B889Dcfad1a6ddf7dE3bC9417F5F51128efc964',
networkCheckTimeout: 999999
},
bsc_testnet: {
provider: () => new HDWalletProvider({
privateKeys: privKeysRinkeby,
providerOrUrl: `https://data-seed-prebsc-1-s1.binance.org:8545`,
pollingInterval: 56000
}),
network_id: 97,
confirmations: 2,
timeoutBlocks: 100,
from: '0x6B889Dcfad1a6ddf7dE3bC9417F5F51128efc964',
skipDryRun: true,
networkCheckTimeout: 999999
},
pulsechain_testnet: {
provider: () => new HDWalletProvider({
privateKeys: privKeysRinkeby,
providerOrUrl: `https://rpc.v2b.testnet.pulsechain.com`,
pollingInterval: 56000
}),
network_id: 941,
confirmations: 2,
timeoutBlocks: 100,
skipDryRun: true,
from: '0x6B889Dcfad1a6ddf7dE3bC9417F5F51128efc964',
networkCheckTimeout: 999999
},
ethw_testnet: {
provider: () => new HDWalletProvider({
privateKeys: privKeysRinkeby,
providerOrUrl: `https://iceberg.ethereumpow.org/`,
pollingInterval: 56000
}),
network_id: 10002,
confirmations: 2,
timeoutBlocks: 100,
skipDryRun: true,
from: '0x6B889Dcfad1a6ddf7dE3bC9417F5F51128efc964',
networkCheckTimeout: 999999
},
mumbai: {
provider: () => new HDWalletProvider({
privateKeys: privKeysRinkeby,
providerOrUrl: `https://rpc-mumbai.maticvigil.com/v1/53a113316e0a9e20bcf02b13dd504ac33aeea3ba`,
//providerOrUrl: `https://rpc.ankr.com/polygon_mumbai`,
pollingInterval: 56000
}),
network_id: 80001,
confirmations: 2,
timeoutBlocks: 200,
pollingInterval: 1000,
skipDryRun: true,
from: '0x6B889Dcfad1a6ddf7dE3bC9417F5F51128efc964',
networkCheckTimeout: 999999
//websockets: true
},
},
mocha: {
timeout: 100_000
},
compilers: {
solc: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 20
},
evmVersion: "london"
}
}
},
db: {
enabled: false
},
plugins: ['truffle-plugin-verify'],
api_keys: {
etherscan: etherscanApiKey,
bscscan: bscApiKey,
polygonscan: polygonApiKey
}
};