-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* acl: optimize internal calls * acl: allow knowing original user when set to any * acl: move grant permission modifier to internal method * ACL: Apply suggestions from @sohkai Co-authored-by: Brett Sun <[email protected]> * acl: move grant permission modifier to external methods * acl: clarify ACL oracle interface * acl: improve internal logic eval functions naming * acl: inline internal oracle helper function * acl: add more test cases for oracles * acl: add previous acl oracle interface * ACL: update complex ACLOracle tests to be separate tests Co-authored-by: Brett Sun <[email protected]>
- Loading branch information
1 parent
d068879
commit a70d806
Showing
7 changed files
with
317 additions
and
143 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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,15 @@ | ||
/* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
pragma solidity ^0.4.24; | ||
|
||
|
||
/** | ||
* @title Previous version of the ACL Oracle interface | ||
* @dev This interface simply defines a check method that must be implemented by smart contracts to be plugged in as ACL oracles. | ||
* ACL oracles are the most suitable way to have external contracts validating ACL permissions with custom logic. | ||
*/ | ||
interface IACLOracleV1 { | ||
function canPerform(address who, address where, bytes32 what, uint256[] how) external view returns (bool); | ||
} |
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
Oops, something went wrong.