-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move contracts to subdirectories (#1253)
* Move contracts to subdirectories Fixes #1177. This Change also removes the LimitBalance contract. * fix import * move MerkleProof to cryptography * Fix import
- Loading branch information
Showing
21 changed files
with
64 additions
and
161 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
contracts/Bounty.sol → contracts/bounties/BreakInvariantBounty.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
contracts/mocks/ECRecoveryMock.sol → contracts/mocks/ECDSAMock.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pragma solidity ^0.4.24; | ||
|
||
// When this line is split, truffle parsing fails. | ||
// See: https://github.com/ethereum/solidity/issues/4871 | ||
// solium-disable-next-line max-len | ||
import {BreakInvariantBounty, Target} from "../../contracts/bounties/BreakInvariantBounty.sol"; | ||
|
||
|
||
contract InsecureInvariantTargetMock is Target { | ||
function checkInvariant() public returns(bool) { | ||
return false; | ||
} | ||
} | ||
|
||
|
||
contract InsecureInvariantTargetBounty is BreakInvariantBounty { | ||
function deployContract() internal returns (address) { | ||
return new InsecureInvariantTargetMock(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pragma solidity ^0.4.24; | ||
|
||
// When this line is split, truffle parsing fails. | ||
// See: https://github.com/ethereum/solidity/issues/4871 | ||
// solium-disable-next-line max-len | ||
import {BreakInvariantBounty, Target} from "../../contracts/bounties/BreakInvariantBounty.sol"; | ||
|
||
|
||
contract SecureInvariantTargetMock is Target { | ||
function checkInvariant() public returns(bool) { | ||
return true; | ||
} | ||
} | ||
|
||
|
||
contract SecureInvariantTargetBounty is BreakInvariantBounty { | ||
function deployContract() internal returns (address) { | ||
return new SecureInvariantTargetMock(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters