migrate to truffle 3

This commit is contained in:
Manuel Araoz
2017-02-14 17:57:37 -03:00
parent 60b48b0235
commit a69333e2b8
4 changed files with 21 additions and 5 deletions

View File

@ -1,3 +1,9 @@
var Ownable = artifacts.require("ownership/Ownable.sol");
var Claimable = artifacts.require("ownership/Claimable.sol");
var LimitBalance = artifacts.require("LimitBalance.sol");
var SecureTargetBounty = artifacts.require("test-helpers/SecureTargetBounty.sol");
var InsecureTargetBounty = artifacts.require("test-helpers/InsecureTargetBounty.sol");
module.exports = function(deployer) {
deployer.deploy(Ownable);
deployer.deploy(Claimable);

View File

@ -8,10 +8,10 @@
"babel-preset-stage-2": "^6.18.0",
"babel-preset-stage-3": "^6.17.0",
"ethereumjs-testrpc": "^3.0.2",
"truffle": "^2.1.1"
"truffle": "^3.1.1"
},
"scripts": {
"test": "truffle test",
"test": "scripts/test.sh",
"console": "truffle console",
"install": "scripts/install.sh"
},

7
scripts/test.sh Executable file
View File

@ -0,0 +1,7 @@
#! /bin/bash
testrpc &
trpc_pid=$!
node_modules/truffle/cli.js test
kill -9 $trpc_pid

View File

@ -1,6 +1,9 @@
module.exports = {
rpc: {
networks: {
development: {
host: "localhost",
port: 8545
port: 8545,
network_id: "*"
}
}
};