-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtruffle.js
44 lines (43 loc) · 1.58 KB
/
truffle.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
var TestRPC = require("ganache-cli");
// var ganache = require("ganache-cli");
// var Web3 = require("web3")
// var TestRPC = require("ethereumjs-testrpc");
// Allows us to use ES6 in our migrations and tests.
require('babel-register')
require('babel-polyfill')
module.exports = {
networks: {
// development: {
// host: '127.0.0.1',
// port: 8545,
// network_id: '*', // Match any network id
// // optional config values:
// gas: 7984452,
// gasPrice: 200000000000,
// // from - default address to use for any transaction Truffle makes during migrations
// // provider - web3 provider instance Truffle should use to talk to the Ethereum network.
// // - function that returns a web3 provider instance (see below.)
// // - if specified, host and port are ignored.
// },
// add a new network definition that will self host TestRPC
localtest: {
provider: TestRPC.provider(),
// provider: web3.setProvider(ganache.provider()),
network_id:"*",
// optional config values:
gas: 7984452,
gasPrice: 200000000000,
// from - default address to use for any transaction Truffle makes during migrations
// provider - web3 provider instance Truffle should use to talk to the Ethereum network.
// - function that returns a web3 provider instance (see below.)
// - if specified, host and port are ignored.
}
},
// add a section for mocha defaults
mocha: {
reporter: "spec",
reporterOptions: {
mochaFile: 'TEST-truffle.xml'
}
}
};