-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
59 lines (58 loc) · 1.45 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
var HDWalletProvider = require('@truffle/hdwallet-provider');
require('dotenv').config();
module.exports = {
plugins: [
'truffle-plugin-verify'
],
compilers: {
solc: {
version: "0.6.7"
}
},
networks: {
development: {
host: "local-node",
port: 8545,
network_id: "*" // Match any network id
},
moonbase: {
provider: function() {
return new HDWalletProvider({
privateKeys: [process.env.MOONBASE_PRIV_KEY],
providerOrUrl: process.env.MOONBASE_NODE_URL,
addressIndex: 0
})
},
network_id: 1287
},
moonbeam: {
provider: function() {
return new HDWalletProvider({
privateKeys: [process.env.MOONBEAM_PRIV_KEY],
providerOrUrl: process.env.MOONBEAM_NODE_URL,
addressIndex: 0
})
},
network_id:1284
},
moonriver : {
provider: function() {
return new HDWalletProvider({
privateKeys: [""],
providerOrUrl: "https://moonriver.api.onfinality.io/public",
addressIndex: 0
})
},
network_id:1285
}
// rinkeby: {
// provider: function() {
// return new HDWalletProvider({
// privateKeys: [],
// providerOrUrl: "",
// addressIndex: 0
// })
// }
// }
}
};