You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.4 KiB
47 lines
1.4 KiB
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.20;
|
|
|
|
import "../patched/access/AccessControlDefaultAdminRules.sol";
|
|
|
|
contract AccessControlDefaultAdminRulesHarness is AccessControlDefaultAdminRules {
|
|
uint48 private _delayIncreaseWait;
|
|
|
|
constructor(
|
|
uint48 initialDelay,
|
|
address initialDefaultAdmin,
|
|
uint48 delayIncreaseWait
|
|
) AccessControlDefaultAdminRules(initialDelay, initialDefaultAdmin) {
|
|
_delayIncreaseWait = delayIncreaseWait;
|
|
}
|
|
|
|
// FV
|
|
function pendingDefaultAdmin_() external view returns (address) {
|
|
(address newAdmin, ) = pendingDefaultAdmin();
|
|
return newAdmin;
|
|
}
|
|
|
|
function pendingDefaultAdminSchedule_() external view returns (uint48) {
|
|
(, uint48 schedule) = pendingDefaultAdmin();
|
|
return schedule;
|
|
}
|
|
|
|
function pendingDelay_() external view returns (uint48) {
|
|
(uint48 newDelay, ) = pendingDefaultAdminDelay();
|
|
return newDelay;
|
|
}
|
|
|
|
function pendingDelaySchedule_() external view returns (uint48) {
|
|
(, uint48 schedule) = pendingDefaultAdminDelay();
|
|
return schedule;
|
|
}
|
|
|
|
function delayChangeWait_(uint48 newDelay) external view returns (uint48) {
|
|
return _delayChangeWait(newDelay);
|
|
}
|
|
|
|
// Overrides
|
|
function defaultAdminDelayIncreaseWait() public view override returns (uint48) {
|
|
return _delayIncreaseWait;
|
|
}
|
|
}
|
|
|