Selaa lähdekoodia

Remove unused files (#1698)

* Remove unused dependencies.

* Remove unused mock contracts.
Nicolás Venturo 6 vuotta sitten
vanhempi
sitoutus
35d8e860ad

+ 0 - 19
contracts/mocks/Acknowledger.sol

@@ -1,19 +0,0 @@
-pragma solidity ^0.5.2;
-
-contract Acknowledger {
-    event AcknowledgeFoo(uint256 a);
-    event AcknowledgeBarSingle(uint256 a);
-    event AcknowledgeBarDouble(uint256 a, uint256 b);
-
-    function foo(uint256 a) public {
-        emit AcknowledgeFoo(a);
-    }
-
-    function bar(uint256 a) public {
-        emit AcknowledgeBarSingle(a);
-    }
-
-    function bar(uint256 a, uint256 b) public {
-        emit AcknowledgeBarDouble(a, b);
-    }
-}

+ 0 - 73
contracts/mocks/EventEmitter.sol

@@ -1,73 +0,0 @@
-pragma solidity ^0.5.2;
-
-contract EventEmitter {
-    event Argumentless();
-    event ShortUint(uint8 value);
-    event ShortInt(int8 value);
-    event LongUint(uint256 value);
-    event LongInt(int256 value);
-    event Address(address value);
-    event Boolean(bool value);
-    event String(string value);
-    event LongUintBooleanString(uint256 uintValue, bool booleanValue, string stringValue);
-
-    constructor (uint8 uintValue, bool booleanValue, string memory stringValue) public {
-        emit ShortUint(uintValue);
-        emit Boolean(booleanValue);
-        emit String(stringValue);
-    }
-
-    function emitArgumentless() public {
-        emit Argumentless();
-    }
-
-    function emitShortUint(uint8 value) public {
-        emit ShortUint(value);
-    }
-
-    function emitShortInt(int8 value) public {
-        emit ShortInt(value);
-    }
-
-    function emitLongUint(uint256 value) public {
-        emit LongUint(value);
-    }
-
-    function emitLongInt(int256 value) public {
-        emit LongInt(value);
-    }
-
-    function emitAddress(address value) public {
-        emit Address(value);
-    }
-
-    function emitBoolean(bool value) public {
-        emit Boolean(value);
-    }
-
-    function emitString(string memory value) public {
-        emit String(value);
-    }
-
-    function emitLongUintBooleanString(uint256 uintValue, bool booleanValue, string memory stringValue) public {
-        emit LongUintBooleanString(uintValue, booleanValue, stringValue);
-    }
-
-    function emitLongUintAndBoolean(uint256 uintValue, bool boolValue) public {
-        emit LongUint(uintValue);
-        emit Boolean(boolValue);
-    }
-
-    function emitStringAndEmitIndirectly(string memory value, IndirectEventEmitter emitter) public {
-        emit String(value);
-        emitter.emitStringIndirectly(value);
-    }
-}
-
-contract IndirectEventEmitter {
-    event IndirectString(string value);
-
-    function emitStringIndirectly(string memory value) public {
-        emit IndirectString(value);
-    }
-}

+ 0 - 23
contracts/mocks/Failer.sol

@@ -1,23 +0,0 @@
-pragma solidity ^0.5.2;
-
-contract Failer {
-    uint256[] private array;
-
-    function dontFail() public pure {
-        // solhint-disable-previous-line no-empty-blocks
-    }
-
-    function failWithRevert() public pure {
-        revert();
-    }
-
-    function failWithThrow() public pure {
-        assert(false);
-    }
-
-    function failWithOutOfGas() public {
-        for (uint256 i = 0; i < 2**200; ++i) {
-            array.push(i);
-        }
-    }
-}

+ 0 - 6
package-lock.json

@@ -6866,12 +6866,6 @@
       "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=",
       "dev": true
     },
-    "pify": {
-      "version": "4.0.1",
-      "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz",
-      "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==",
-      "dev": true
-    },
     "pinkie": {
       "version": "2.0.4",
       "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",

+ 0 - 2
package.json

@@ -50,11 +50,9 @@
     "eslint-plugin-promise": "^3.8.0",
     "eslint-plugin-standard": "^3.1.0",
     "ethereumjs-util": "^6.0.0",
-    "ethjs-abi": "^0.2.1",
     "ganache-cli": "^6.4.1",
     "ganache-cli-coverage": "github:Agusx1211/ganache-cli#c462b3fc48fe9b16756f7799885c0741114d9ed3",
     "openzeppelin-test-helpers": "^0.3.0",
-    "pify": "^4.0.1",
     "solhint": "^1.5.0",
     "solidity-coverage": "github:rotcivegaf/solidity-coverage#5875f5b7bc74d447f3312c9c0e9fc7814b482477",
     "truffle": "^5.0.0"