-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtruffle.js
More file actions
25 lines (22 loc) · 769 Bytes
/
truffle.js
File metadata and controls
25 lines (22 loc) · 769 Bytes
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
require('dotenv').config();
const WalletProvider = require("truffle-wallet-provider");
const Wallet = require('ethereumjs-wallet');
module.exports = {
networks: {
development: {
host: "localhost",
port: 7545,
network_id: "*" // Match any network id
},
aerum: {
provider: function () {
const aerumPrivateKey = new Buffer(process.env["AERUM_PRIVATE_KEY"], "hex");
const aerumWallet = Wallet.fromPrivateKey(aerumPrivateKey);
const aerumProvider = new WalletProvider(aerumWallet, "http://52.51.85.249:8545/");
return aerumProvider;
},
network_id: '418313827693',
gas: 2900000
}
}
};