@@ -20,7 +20,7 @@ abstract contract Authorizable is IAuthorizable {
2020 uint256 public immutable REVOKE_AUTHORIZATION_THAWING_PERIOD;
2121
2222 /// @notice Authorization details for authorizer-signer pairs
23- mapping (address signer = > Authorization authorization ) private _authorizations ;
23+ mapping (address signer = > Authorization authorization ) public authorizations ;
2424
2525 /**
2626 * @dev Revert if the caller has not authorized the signer
@@ -43,52 +43,52 @@ abstract contract Authorizable is IAuthorizable {
4343 */
4444 function authorizeSigner (address signer , uint256 proofDeadline , bytes calldata proof ) external {
4545 require (
46- _authorizations [signer].authorizer == address (0 ),
46+ authorizations [signer].authorizer == address (0 ),
4747 AuthorizableSignerAlreadyAuthorized (
48- _authorizations [signer].authorizer,
48+ authorizations [signer].authorizer,
4949 signer,
50- _authorizations [signer].revoked
50+ authorizations [signer].revoked
5151 )
5252 );
5353 _verifyAuthorizationProof (proof, proofDeadline, signer);
54- _authorizations [signer].authorizer = msg .sender ;
54+ authorizations [signer].authorizer = msg .sender ;
5555 emit SignerAuthorized (msg .sender , signer);
5656 }
5757
5858 /**
5959 * See {IAuthorizable.thawSigner}.
6060 */
6161 function thawSigner (address signer ) external onlyAuthorized (signer) {
62- _authorizations [signer].thawEndTimestamp = block .timestamp + REVOKE_AUTHORIZATION_THAWING_PERIOD;
63- emit SignerThawing (msg .sender , signer, _authorizations [signer].thawEndTimestamp);
62+ authorizations [signer].thawEndTimestamp = block .timestamp + REVOKE_AUTHORIZATION_THAWING_PERIOD;
63+ emit SignerThawing (msg .sender , signer, authorizations [signer].thawEndTimestamp);
6464 }
6565
6666 /**
6767 * See {IAuthorizable.cancelThawSigner}.
6868 */
6969 function cancelThawSigner (address signer ) external onlyAuthorized (signer) {
70- require (_authorizations [signer].thawEndTimestamp > 0 , AuthorizableSignerNotThawing (signer));
71- uint256 thawEnd = _authorizations [signer].thawEndTimestamp;
72- _authorizations [signer].thawEndTimestamp = 0 ;
70+ require (authorizations [signer].thawEndTimestamp > 0 , AuthorizableSignerNotThawing (signer));
71+ uint256 thawEnd = authorizations [signer].thawEndTimestamp;
72+ authorizations [signer].thawEndTimestamp = 0 ;
7373 emit SignerThawCanceled (msg .sender , signer, thawEnd);
7474 }
7575
7676 /**
7777 * See {IAuthorizable.revokeAuthorizedSigner}.
7878 */
7979 function revokeAuthorizedSigner (address signer ) external onlyAuthorized (signer) {
80- uint256 thawEndTimestamp = _authorizations [signer].thawEndTimestamp;
80+ uint256 thawEndTimestamp = authorizations [signer].thawEndTimestamp;
8181 require (thawEndTimestamp > 0 , AuthorizableSignerNotThawing (signer));
8282 require (thawEndTimestamp <= block .timestamp , AuthorizableSignerStillThawing (block .timestamp , thawEndTimestamp));
83- _authorizations [signer].revoked = true ;
83+ authorizations [signer].revoked = true ;
8484 emit SignerRevoked (msg .sender , signer);
8585 }
8686
8787 /**
8888 * See {IAuthorizable.getThawEnd}.
8989 */
9090 function getThawEnd (address signer ) external view returns (uint256 ) {
91- return _authorizations [signer].thawEndTimestamp;
91+ return authorizations [signer].thawEndTimestamp;
9292 }
9393
9494 /**
@@ -103,8 +103,8 @@ abstract contract Authorizable is IAuthorizable {
103103 */
104104 function _isAuthorized (address _authorizer , address _signer ) internal view returns (bool ) {
105105 return (_authorizer != address (0 ) &&
106- _authorizations [_signer].authorizer == _authorizer &&
107- ! _authorizations [_signer].revoked);
106+ authorizations [_signer].authorizer == _authorizer &&
107+ ! authorizations [_signer].revoked);
108108 }
109109
110110 /**
0 commit comments