-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
54 lines (53 loc) · 1.3 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
const Web3 = require("web3");
const HDWallerProvider = require("@truffle/hdwallet-provider");
const protocol = "http";
const host = "localhost";
module.exports = {
networks: {
avax_avash: {
provider: function () {
return new Web3.providers.HttpProvider(
`${protocol}://${host}:9650/ext/bc/C/rpc`
);
},
network_id: "*",
gas: 8000000,
gasPrice: 470000000000,
},
avax_geth: {
provider: function () {
return new HDWallerProvider({
mnemonic: {
phrase:
"upper smile pigeon prison include expect open update hub enrich shine devote",
},
numberOfAddresses: 5,
providerOrUrl: `${protocol}://${host}:9650`,
});
},
network_id: "*",
gas: 8000000,
gasPrice: 20000000,
},
eth: {
provider: function () {
return new HDWallerProvider({
mnemonic: {
phrase:
"upper smile pigeon prison include expect open update hub enrich shine devote",
},
numberOfAddresses: 5,
providerOrUrl: `${protocol}://${host}:8545`,
});
},
network_id: "*",
gas: 8000000,
gasPrice: 20000000,
},
},
compilers: {
solc: {
version: "^0.8.0",
},
},
};