-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
81 lines (77 loc) · 2.04 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
const HDWalletProvider = require("@truffle/hdwallet-provider");
const testenv = require('./testenv.json');
const mainenv = require('./env.json');
const mumbai = require('./mumbai.json');
module.exports = {
// Uncommenting the defaults below
// provides for an easier quick-start with Ganache.
// You can also follow this format for other networks;
// see <http://truffleframework.com/docs/advanced/configuration>
// for more details on how to specify configuration options!
//
networks: {
development: {
host: "127.0.0.1",
port: 9545,
network_id: "*",
gasPrice: 50000000000,
},
test: {
host: "graph-node",
port: 8545,
network_id: "1010",
gasPrice: 5000000000,
gas: 7000000
},
bsc: {
provider: function () {
return new HDWalletProvider(mainenv.mnemonic, "https://bsc-dataseed1.binance.org/");
},
network_id: '56',
gasPrice: 6000000000,
},
bscTestnet: {
provider: function () {
return new HDWalletProvider(testenv.mnemonic, "https://data-seed-prebsc-1-s1.binance.org:8545/");
},
network_id: '97',
gasPrice: 10000000000,
production: true
},
polytest: {
provider: function () {
return new HDWalletProvider(mumbai.mnemonic, "https://polygon-mumbai.infura.io/v3/d7aa2a84a44548819617058aa0a3e347");
},
network_id: '80001',
gasPrice: 2000000000,
production: false
},
goerli: {
provider: function () {
return new HDWalletProvider(mumbai.mnemonic, "http://16.162.164.27:8545");
},
network_id: '5',
gasPrice: 2000000000,
production: false
}
},
compilers: {
solc: {
version: "0.8.6",
parser: "solcjs",
settings: {
optimizer: {
enabled: true, // Default: false
runs: 200 // Default: 200
},
}
}
},
plugins: [
//truffle run verify Token --network bsc
'truffle-plugin-verify'
],
api_keys: {
etherscan: "MQ6Z41BD628EJBVU28ZP3S2ACYXBEDA9IC"
}
};