Clean up npm package (#904)
* ignore everything but official contracts for npm * add tests to npm package * remove truffle migrations stuff * remove seemingly unused npm dependency * clean up dependenciespull/881/merge
parent
90413e75f1
commit
0e5799c93b
@ -0,0 +1,2 @@ |
||||
mocks |
||||
examples |
@ -1,21 +0,0 @@ |
||||
pragma solidity ^0.4.21; |
||||
|
||||
import "../ownership/Ownable.sol"; |
||||
|
||||
|
||||
/** |
||||
* @title Migrations |
||||
* @dev This is a truffle contract, needed for truffle integration, not meant for use by Zeppelin users. |
||||
*/ |
||||
contract Migrations is Ownable { |
||||
uint256 public lastCompletedMigration; |
||||
|
||||
function setCompleted(uint256 completed) onlyOwner public { |
||||
lastCompletedMigration = completed; |
||||
} |
||||
|
||||
function upgrade(address newAddress) onlyOwner public { |
||||
Migrations upgraded = Migrations(newAddress); |
||||
upgraded.setCompleted(lastCompletedMigration); |
||||
} |
||||
} |
@ -1,5 +0,0 @@ |
||||
var Migrations = artifacts.require('Migrations'); |
||||
|
||||
module.exports = function (deployer) { |
||||
deployer.deploy(Migrations); |
||||
}; |
@ -1,9 +0,0 @@ |
||||
// var Ownable = artifacts.require("Ownable");
|
||||
|
||||
// NOTE: Use this file to easily deploy the contracts you're writing.
|
||||
// (but make sure to reset this file before committing
|
||||
// with `git checkout HEAD -- migrations/2_deploy_contracts.js`)
|
||||
|
||||
module.exports = function (deployer) { |
||||
// deployer.deploy(Ownable);
|
||||
}; |
Loading…
Reference in new issue