Unverified Commit 0e5799c9 by Francisco Giordano Committed by GitHub

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 dependencies
parent 90413e75
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);
}
}
var Migrations = artifacts.require('Migrations');
module.exports = function (deployer) {
deployer.deploy(Migrations);
};
// 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);
};
...@@ -1974,7 +1974,8 @@ ...@@ -1974,7 +1974,8 @@
"dotenv": { "dotenv": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-4.0.0.tgz", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-4.0.0.tgz",
"integrity": "sha1-hk7xN5rO1Vzm+V3r7NzhefegzR0=" "integrity": "sha1-hk7xN5rO1Vzm+V3r7NzhefegzR0=",
"dev": true
}, },
"drbg.js": { "drbg.js": {
"version": "1.0.1", "version": "1.0.1",
...@@ -6205,12 +6206,6 @@ ...@@ -6205,12 +6206,6 @@
} }
} }
}, },
"mocha-lcov-reporter": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/mocha-lcov-reporter/-/mocha-lcov-reporter-1.3.0.tgz",
"integrity": "sha1-Rpve9PivyaEWBW8HnfYYLQr7A4Q=",
"dev": true
},
"ms": { "ms": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
......
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
"name": "zeppelin-solidity", "name": "zeppelin-solidity",
"version": "1.8.0", "version": "1.8.0",
"description": "Secure Smart Contract library for Solidity", "description": "Secure Smart Contract library for Solidity",
"files": [
"contracts",
"test"
],
"scripts": { "scripts": {
"test": "scripts/test.sh", "test": "scripts/test.sh",
"lint": "eslint .", "lint": "eslint .",
...@@ -42,6 +46,7 @@ ...@@ -42,6 +46,7 @@
"chai-as-promised": "^7.0.0", "chai-as-promised": "^7.0.0",
"chai-bignumber": "^2.0.0", "chai-bignumber": "^2.0.0",
"coveralls": "^2.13.1", "coveralls": "^2.13.1",
"dotenv": "^4.0.0",
"eslint": "^4.11.0", "eslint": "^4.11.0",
"eslint-config-standard": "^10.2.1", "eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.8.0", "eslint-plugin-import": "^2.8.0",
...@@ -51,13 +56,9 @@ ...@@ -51,13 +56,9 @@
"ethereumjs-util": "^5.1.2", "ethereumjs-util": "^5.1.2",
"ethjs-abi": "^0.2.1", "ethjs-abi": "^0.2.1",
"ganache-cli": "6.1.0", "ganache-cli": "6.1.0",
"mocha-lcov-reporter": "^1.3.0",
"solidity-coverage": "^0.4.15", "solidity-coverage": "^0.4.15",
"solium": "^1.1.6", "solium": "^1.1.6",
"truffle": "^4.1.5", "truffle": "^4.1.5",
"truffle-hdwallet-provider": "0.0.3" "truffle-hdwallet-provider": "0.0.3"
},
"dependencies": {
"dotenv": "^4.0.0"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment