forked from Consensys/permissioning-smart-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PIE-1515: Rules contract with linked list library (Consensys#39)
- Loading branch information
1 parent
643f4bb
commit 672dbb1
Showing
12 changed files
with
475 additions
and
490 deletions.
There are no files selected for viewing
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
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,31 @@ | ||
pragma solidity >=0.4.22 <0.6.0; | ||
|
||
import "./RulesList.sol"; | ||
|
||
|
||
contract ExposedRulesList is RulesList { | ||
|
||
function _calculateKey(bytes32 _enodeHigh, bytes32 _enodeLow, bytes16 _ip, uint16 _port) public pure returns(uint256) { | ||
return calculateKey(_enodeHigh, _enodeLow, _ip, _port); | ||
} | ||
|
||
function _size() public view returns (uint256) { | ||
return size(); | ||
} | ||
|
||
function _exists(bytes32 _enodeHigh, bytes32 _enodeLow, bytes16 _ip, uint16 _port) public view returns (bool) { | ||
return exists(_enodeHigh, _enodeLow, _ip, _port); | ||
} | ||
|
||
function _add(bytes32 _enodeHigh, bytes32 _enodeLow, bytes16 _ip, uint16 _port) public returns (bool) { | ||
return add(_enodeHigh, _enodeLow, _ip, _port); | ||
} | ||
|
||
function _remove(bytes32 _enodeHigh, bytes32 _enodeLow, bytes16 _ip, uint16 _port) public returns (bool) { | ||
return remove(_enodeHigh, _enodeLow, _ip, _port); | ||
} | ||
|
||
function _get(uint _index) public view returns (bool _found, bytes32 _enodeHigh, bytes32 _enodeLow, bytes16 _ip, uint16 _port) { | ||
return get(_index); | ||
} | ||
} |
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
Oops, something went wrong.