-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename pool manager to pool admin (#81)
- Loading branch information
Showing
25 changed files
with
463 additions
and
499 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
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
18 changes: 9 additions & 9 deletions
18
contracts/permissioned/PermissionedServiceConfiguration.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.16; | ||
|
||
import "./interfaces/IPoolManagerAccessControl.sol"; | ||
import "./interfaces/IPoolAdminAccessControl.sol"; | ||
import "../ServiceConfiguration.sol"; | ||
|
||
/** | ||
* @title PermissionedServiceConfiguration | ||
*/ | ||
contract PermissionedServiceConfiguration is ServiceConfiguration { | ||
/** | ||
* @dev Access Control logic for the Pool Manager role | ||
* @dev Access Control logic for the Pool Admin role | ||
*/ | ||
IPoolManagerAccessControl public poolManagerAccessControl; | ||
IPoolAdminAccessControl public poolAdminAccessControl; | ||
|
||
/** | ||
* @dev Set the PoolManagerAccessControl contract. | ||
* @dev Set the PoolAdminAccessControl contract. | ||
* @dev Emits `AddressSet` event. | ||
*/ | ||
function setPoolManagerAccessControl( | ||
IPoolManagerAccessControl _poolManagerAccessControl | ||
function setPoolAdminAccessControl( | ||
IPoolAdminAccessControl _poolAdminAccessControl | ||
) public onlyOperator { | ||
poolManagerAccessControl = _poolManagerAccessControl; | ||
poolAdminAccessControl = _poolAdminAccessControl; | ||
emit AddressSet( | ||
"POOL_MANAGER_PERMISSION", | ||
address(poolManagerAccessControl) | ||
"POOL_ADMIN_PERMISSION", | ||
address(poolAdminAccessControl) | ||
); | ||
} | ||
} |
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.