{"file_path":"src/v0.8/mcm/RBACTimelock/RBACTimelock.sol","creation_status":"success","source_code":"// SPDX-License-Identifier: BUSL-1.1\npragma solidity =0.8.19;\n\nimport \"openzeppelin-contracts/access/AccessControlEnumerable.sol\";\nimport \"openzeppelin-contracts/token/ERC721/IERC721Receiver.sol\";\nimport \"openzeppelin-contracts/token/ERC1155/IERC1155Receiver.sol\";\nimport \"openzeppelin-contracts/utils/Address.sol\";\nimport \"openzeppelin-contracts/utils/structs/EnumerableSet.sol\";\n\n/**\n * @notice Contract module which acts as a timelocked controller with role-based\n * access control. When set as the owner of an `Ownable` smart contract, it\n * can enforce a timelock on `onlyOwner` maintenance operations and prevent\n * a list of blocked functions from being called. The timelock can be bypassed\n * by a bypasser or an admin in emergency situations that require quick action.\n *\n * Non-emergency actions are expected to follow the timelock.\n *\n * The contract has five roles. Each role can be inhabited by multiple\n * (potentially overlapping) addresses.\n *\n * 1) Admin: The admin manages membership for all roles (including the admin\n *    role itself). The admin automatically inhabits all other roles. The admin\n *    can call the bypasserExecuteBatch function to bypass any restrictions like\n *    the delay imposed by the timelock and the list of blocked functions. The\n *    admin can manage the list of blocked functions. In practice, the admin\n *    role is expected to (1) be inhabited by a contract requiring a secure\n *    quorum of votes before taking any action and (2) to be used rarely, namely\n *    only for emergency actions or configuration of the RBACTimelock.\n *\n * 2) Proposer: The proposer can schedule delayed operations that don't use any\n *    blocked function selector.\n *\n * 3) Executor: The executor can execute previously scheduled operations once\n *    their delay has expired. The contract enforces that the calls in an\n *    operation are executed with the correct args (target, data, value), but\n *    the executor can freely choose the gas limit. Since the executor is\n *    typically not particularly trusted, we recommend that (transitive) callees\n *    implement standard behavior of simply reverting if insufficient gas is\n *    provided. In particular, this means callees should not have non-reverting\n *    gas-dependent branches.\n *\n * 4) Canceller: The canceller can cancel operations that have been scheduled\n *    but not yet executed.\n *\n * 5) Bypasser: The bypasser can bypass any restrictions like the delay imposed\n *    by the timelock and the list of blocked functions to immediately execute\n *    operations, e.g. in case of emergencies.\n *\n * Note that this contract doesn't place any restrictions on the gas limit used\n * when executing operations. See the above comment on the executor role for\n * more details.\n *\n * @dev This contract is a modified version of OpenZeppelin's\n * contracts/governance/TimelockController.sol contract from v4.7.0, accessed in\n * commit 561d1061fc568f04c7a65853538e834a889751e8 of\n * github.com/OpenZeppelin/openzeppelin-contracts\n * Said contract is under \"Copyright (c) 2016-2023 zOS Global Limited and\n * contributors\" and its original MIT license can be found at\n * https://github.com/OpenZeppelin/openzeppelin-contracts/blob/561d1061fc568f04c7a65853538e834a889751e8/LICENSE\n */\ncontract RBACTimelock is AccessControlEnumerable, IERC721Receiver, IERC1155Receiver {\n    using EnumerableSet for EnumerableSet.Bytes32Set;\n\n    struct Call {\n        address target;\n        uint256 value;\n        bytes data;\n    }\n\n    bytes32 public constant ADMIN_ROLE = keccak256(\"ADMIN_ROLE\");\n    bytes32 public constant PROPOSER_ROLE = keccak256(\"PROPOSER_ROLE\");\n    bytes32 public constant EXECUTOR_ROLE = keccak256(\"EXECUTOR_ROLE\");\n    bytes32 public constant CANCELLER_ROLE = keccak256(\"CANCELLER_ROLE\");\n    bytes32 public constant BYPASSER_ROLE = keccak256(\"BYPASSER_ROLE\");\n    uint256 internal constant _DONE_TIMESTAMP = uint256(1);\n\n    mapping(bytes32 => uint256) private _timestamps;\n    uint256 private _minDelay;\n    EnumerableSet.Bytes32Set private _blockedFunctionSelectors;\n\n    /**\n     * @dev Emitted when a call is scheduled as part of operation `id`.\n     */\n    event CallScheduled(\n        bytes32 indexed id,\n        uint256 indexed index,\n        address target,\n        uint256 value,\n        bytes data,\n        bytes32 predecessor,\n        bytes32 salt,\n        uint256 delay\n    );\n\n    /**\n     * @dev Emitted when a call is performed as part of operation `id`.\n     */\n    event CallExecuted(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data);\n\n    /**\n     * @dev Emitted when a call is performed via bypasser.\n     */\n    event BypasserCallExecuted(uint256 indexed index, address target, uint256 value, bytes data);\n\n    /**\n     * @dev Emitted when operation `id` is cancelled.\n     */\n    event Cancelled(bytes32 indexed id);\n\n    /**\n     * @dev Emitted when the minimum delay for future operations is modified.\n     */\n    event MinDelayChange(uint256 oldDuration, uint256 newDuration);\n\n    /**\n     * @dev Emitted when a function selector is blocked.\n     */\n    event FunctionSelectorBlocked(bytes4 indexed selector);\n\n    /**\n     * @dev Emitted when a function selector is unblocked.\n     */\n    event FunctionSelectorUnblocked(bytes4 indexed selector);\n\n\n    /**\n     * @dev Initializes the contract with the following parameters:\n     *\n     * - `minDelay`: initial minimum delay for operations\n     * - `admin`: account to be granted admin role\n     * - `proposers`: accounts to be granted proposer role\n     * - `executors`: accounts to be granted executor role\n     * - `cancellers`: accounts to be granted canceller role\n     * - `bypassers`: accounts to be granted bypasser role\n     */\n    constructor(\n        uint256 minDelay,\n        address admin,\n        address[] memory proposers,\n        address[] memory executors,\n        address[] memory cancellers,\n        address[] memory bypassers\n    ) {\n        _setRoleAdmin(ADMIN_ROLE, ADMIN_ROLE);\n        _setRoleAdmin(PROPOSER_ROLE, ADMIN_ROLE);\n        _setRoleAdmin(EXECUTOR_ROLE, ADMIN_ROLE);\n        _setRoleAdmin(CANCELLER_ROLE, ADMIN_ROLE);\n        _setRoleAdmin(BYPASSER_ROLE, ADMIN_ROLE);\n\n        _setupRole(ADMIN_ROLE, admin);\n\n        // register proposers\n        for (uint256 i = 0; i < proposers.length; ++i) {\n            _setupRole(PROPOSER_ROLE, proposers[i]);\n        }\n\n        // register executors\n        for (uint256 i = 0; i < executors.length; ++i) {\n            _setupRole(EXECUTOR_ROLE, executors[i]);\n        }\n\n        // register cancellers\n        for (uint256 i = 0; i < cancellers.length; ++i) {\n            _setupRole(CANCELLER_ROLE, cancellers[i]);\n        }\n\n        // register bypassers\n        for (uint256 i = 0; i < bypassers.length; ++i) {\n            _setupRole(BYPASSER_ROLE, bypassers[i]);\n        }\n\n        _minDelay = minDelay;\n        emit MinDelayChange(0, minDelay);\n    }\n\n    /**\n     * @dev Modifier to make a function callable only by a certain role or the\n     * admin role.\n     */\n    modifier onlyRoleOrAdminRole(bytes32 role) {\n        address sender = _msgSender();\n        if (!hasRole(ADMIN_ROLE, sender)) {\n            _checkRole(role, sender);\n        }\n        _;\n    }\n\n    /**\n     * @dev Contract might receive/hold ETH as part of the maintenance process.\n     */\n    receive() external payable {}\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, AccessControlEnumerable) returns (bool) {\n        return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev Returns whether an id correspond to a registered operation. This\n     * includes both Pending, Ready and Done operations.\n     */\n    function isOperation(bytes32 id) public view virtual returns (bool registered) {\n        return getTimestamp(id) > 0;\n    }\n\n    /**\n     * @dev Returns whether an operation is pending or not.\n     */\n    function isOperationPending(bytes32 id) public view virtual returns (bool pending) {\n        return getTimestamp(id) > _DONE_TIMESTAMP;\n    }\n\n    /**\n     * @dev Returns whether an operation is ready or not.\n     */\n    function isOperationReady(bytes32 id) public view virtual returns (bool ready) {\n        uint256 timestamp = getTimestamp(id);\n        return timestamp > _DONE_TIMESTAMP && timestamp <= block.timestamp;\n    }\n\n    /**\n     * @dev Returns whether an operation is done or not.\n     */\n    function isOperationDone(bytes32 id) public view virtual returns (bool done) {\n        return getTimestamp(id) == _DONE_TIMESTAMP;\n    }\n\n    /**\n     * @dev Returns the timestamp at with an operation becomes ready (0 for\n     * unset operations, 1 for done operations).\n     */\n    function getTimestamp(bytes32 id) public view virtual returns (uint256 timestamp) {\n        return _timestamps[id];\n    }\n\n    /**\n     * @dev Returns the minimum delay for an operation to become valid.\n     *\n     * This value can be changed by executing an operation that calls `updateDelay`.\n     */\n    function getMinDelay() public view virtual returns (uint256 duration) {\n        return _minDelay;\n    }\n\n    /**\n     * @dev Returns the identifier of an operation containing a batch of\n     * transactions.\n     */\n    function hashOperationBatch(\n        Call[] calldata calls,\n        bytes32 predecessor,\n        bytes32 salt\n    ) public pure virtual returns (bytes32 hash) {\n        return keccak256(abi.encode(calls, predecessor, salt));\n    }\n\n    /**\n     * @dev Schedule an operation containing a batch of transactions.\n     *\n     * Emits one {CallScheduled} event per transaction in the batch.\n     *\n     * Requirements:\n     *\n     * - the caller must have the 'proposer' or 'admin' role.\n     * - all payloads must not start with a blocked function selector.\n     */\n    function scheduleBatch(\n        Call[] calldata calls,\n        bytes32 predecessor,\n        bytes32 salt,\n        uint256 delay\n    ) public virtual onlyRoleOrAdminRole(PROPOSER_ROLE) {\n        bytes32 id = hashOperationBatch(calls, predecessor, salt);\n        _schedule(id, delay);\n        for (uint256 i = 0; i < calls.length; ++i) {\n            _checkFunctionSelectorNotBlocked(calls[i].data);\n            emit CallScheduled(id, i, calls[i].target, calls[i].value, calls[i].data, predecessor, salt, delay);\n        }\n    }\n\n    /**\n     * @dev Schedule an operation that becomes valid after a given delay.\n     */\n    function _schedule(bytes32 id, uint256 delay) private {\n        require(!isOperation(id), \"RBACTimelock: operation already scheduled\");\n        require(delay >= getMinDelay(), \"RBACTimelock: insufficient delay\");\n        _timestamps[id] = block.timestamp + delay;\n    }\n\n    /**\n     * @dev Cancel an operation.\n     *\n     * Requirements:\n     *\n     * - the caller must have the 'canceller' or 'admin' role.\n     */\n    function cancel(bytes32 id) public virtual onlyRoleOrAdminRole(CANCELLER_ROLE) {\n        require(isOperationPending(id), \"RBACTimelock: operation cannot be cancelled\");\n        delete _timestamps[id];\n\n        emit Cancelled(id);\n    }\n\n    /**\n     * @dev Execute an (ready) operation containing a batch of transactions.\n     * Note that we perform a raw call to each target. Raw calls to targets that\n     * don't have associated contract code will always succeed regardless of\n     * payload.\n     *\n     * Emits one {CallExecuted} event per transaction in the batch.\n     *\n     * Requirements:\n     *\n     * - the caller must have the 'executor' or 'admin' role.\n     */\n    function executeBatch(\n        Call[] calldata calls,\n        bytes32 predecessor,\n        bytes32 salt\n    ) public payable virtual onlyRoleOrAdminRole(EXECUTOR_ROLE) {\n        bytes32 id = hashOperationBatch(calls, predecessor, salt);\n\n        _beforeCall(id, predecessor);\n        for (uint256 i = 0; i < calls.length; ++i) {\n            _execute(calls[i]);\n            emit CallExecuted(id, i, calls[i].target, calls[i].value, calls[i].data);\n        }\n        _afterCall(id);\n    }\n\n    /**\n     * @dev Execute an operation's call.\n     */\n    function _execute(\n        Call calldata call\n    ) internal virtual {\n        (bool success, ) = call.target.call{value: call.value}(call.data);\n        require(success, \"RBACTimelock: underlying transaction reverted\");\n    }\n\n    /**\n     * @dev Checks before execution of an operation's calls.\n     */\n    function _beforeCall(bytes32 id, bytes32 predecessor) private view {\n        require(isOperationReady(id), \"RBACTimelock: operation is not ready\");\n        require(predecessor == bytes32(0) || isOperationDone(predecessor), \"RBACTimelock: missing dependency\");\n    }\n\n    /**\n     * @dev Checks after execution of an operation's calls.\n     */\n    function _afterCall(bytes32 id) private {\n        require(isOperationReady(id), \"RBACTimelock: operation is not ready\");\n        _timestamps[id] = _DONE_TIMESTAMP;\n    }\n\n    /**\n     * @dev Changes the minimum timelock duration for future operations.\n     *\n     * Emits a {MinDelayChange} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have the 'admin' role.\n     */\n    function updateDelay(uint256 newDelay) external virtual onlyRole(ADMIN_ROLE) {\n        emit MinDelayChange(_minDelay, newDelay);\n        _minDelay = newDelay;\n    }\n\n    /**\n     * @dev See {IERC721Receiver-onERC721Received}.\n     */\n    function onERC721Received(\n        address,\n        address,\n        uint256,\n        bytes memory\n    ) public virtual override returns (bytes4) {\n        return this.onERC721Received.selector;\n    }\n\n    /**\n     * @dev See {IERC1155Receiver-onERC1155Received}.\n     */\n    function onERC1155Received(\n        address,\n        address,\n        uint256,\n        uint256,\n        bytes memory\n    ) public virtual override returns (bytes4) {\n        return this.onERC1155Received.selector;\n    }\n\n    /**\n     * @dev See {IERC1155Receiver-onERC1155BatchReceived}.\n     */\n    function onERC1155BatchReceived(\n        address,\n        address,\n        uint256[] memory,\n        uint256[] memory,\n        bytes memory\n    ) public virtual override returns (bytes4) {\n        return this.onERC1155BatchReceived.selector;\n    }\n\n    /*\n     * New functions not present in original OpenZeppelin TimelockController\n     */\n\n     /**\n     * @dev Blocks a function selector from being used, i.e. schedule\n     * operations with this function selector will revert.\n     * Note that blocked selectors are only checked when an operation is being\n     * scheduled, not when it is executed. You may want to check any pending\n     * operations for whether they contain the blocked selector and cancel them.\n     *\n     * Requirements:\n     *\n     * - the caller must have the 'admin' role.\n     */\n    function blockFunctionSelector(bytes4 selector) external onlyRole(ADMIN_ROLE) {\n        if (_blockedFunctionSelectors.add(selector)) {\n            emit FunctionSelectorBlocked(selector);\n        }\n    }\n\n    /**\n     * @dev Unblocks a previously blocked function selector so it can be used again.\n     * Requirements:\n     *\n     * - the caller must have the 'admin' role.\n     */\n    function unblockFunctionSelector(bytes4 selector) external onlyRole(ADMIN_ROLE) {\n        if (_blockedFunctionSelectors.remove(selector)) {\n            emit FunctionSelectorUnblocked(selector);\n        }\n    }\n\n    /**\n     * @dev Returns the number of blocked function selectors.\n     */\n    function getBlockedFunctionSelectorCount() external view returns (uint256) {\n        return _blockedFunctionSelectors.length();\n    }\n\n   /**\n     * @dev Returns the blocked function selector with the given index. Function\n     * selectors are not sorted in any particular way, and their ordering may\n     * change at any point.\n     *\n     * WARNING: When using {getBlockedFunctionSelectorCount} and\n     * {getBlockedFunctionSelectorAt} via RPC, make sure you perform all queries\n     * on the same block. When using these functions within an onchain\n     * transaction, make sure that the state of this contract hasn't changed in\n     * between invocations to avoid time-of-check time-of-use bugs.\n     * See the following\n     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum\n     * post] for more information.\n     */\n    function getBlockedFunctionSelectorAt(uint256 index) external view returns (bytes4) {\n        return bytes4(_blockedFunctionSelectors.at(index));\n    }\n\n    /**\n     * @dev Directly execute a batch of transactions, bypassing any other\n     * checks.\n     * Note that we perform a raw call to each target. Raw calls to targets that\n     * don't have associated contract code will always succeed regardless of\n     * payload.\n     *\n     * Emits one {BypasserCallExecuted} event per transaction in the batch.\n     *\n     * Requirements:\n     *\n     * - the caller must have the 'bypasser' or 'admin' role.\n     */\n    function bypasserExecuteBatch(\n        Call[] calldata calls\n    ) public payable virtual onlyRoleOrAdminRole(BYPASSER_ROLE) {\n        for (uint256 i = 0; i < calls.length; ++i) {\n            _execute(calls[i]);\n            emit BypasserCallExecuted(i, calls[i].target, calls[i].value, calls[i].data);\n        }\n    }\n\n    /**\n    * @dev Checks to see if the function being scheduled is blocked.  This\n    * is used when trying to schedule or batch schedule an operation.\n    */ \n    function _checkFunctionSelectorNotBlocked(bytes calldata data) private view {\n        if (data.length < 4) {\n            return;\n        }\n        bytes4 selector = bytes4(data[:4]);\n        require(!_blockedFunctionSelectors.contains(bytes32(selector)), \"RBACTimelock: selector is blocked\");\n    }\n}\n","deployed_bytecode":"0x6080604052600436106101f25760003560e01c806364d623531161010d578063a944142d116100a0578063ca15c8731161006f578063ca15c8731461075e578063d45c44351461079b578063d547741f146107d8578063f23a6e6114610801578063f27a0c921461083e576101f9565b8063a944142d146106a4578063b08e51c0146106cd578063bc197c81146106f8578063c4d252f514610735576101f9565b80639010d07c116100dc5780639010d07c146105d657806391d14854146106135780639f5a23f714610650578063a217fddf14610679576101f9565b806364d623531461053b5780636ceef4801461056457806375b238fc146105805780638f61f4f5146105ab576101f9565b806326bb2ec51161018557806336568abe1161015457806336568abe1461046f5780633a98b4e414610498578063515a3db3146104c1578063584b153e146104fe576101f9565b806326bb2ec5146103a15780632ab0f529146103cc5780632f2ff15d1461040957806331d5075014610432576101f9565b806313bc9f20116101c157806313bc9f20146102bf578063150b7a02146102fc578063191cb7b314610339578063248a9ca314610364576101f9565b806301ffc9a7146101fe57806303e561551461023b57806307bd0265146102785780630db866b1146102a3576101f9565b366101f957005b600080fd5b34801561020a57600080fd5b506102256004803603810190610220919061214a565b610869565b6040516102329190612192565b60405180910390f35b34801561024757600080fd5b50610262600480360381019061025d91906121e3565b6108e3565b60405161026f919061221f565b60405180910390f35b34801561028457600080fd5b5061028d610900565b60405161029a9190612253565b60405180910390f35b6102bd60048036038101906102b891906122d3565b610924565b005b3480156102cb57600080fd5b506102e660048036038101906102e1919061234c565b610aab565b6040516102f39190612192565b60405180910390f35b34801561030857600080fd5b50610323600480360381019061031e9190612518565b610ad1565b604051610330919061221f565b60405180910390f35b34801561034557600080fd5b5061034e610ae5565b60405161035b9190612253565b60405180910390f35b34801561037057600080fd5b5061038b6004803603810190610386919061234c565b610b09565b6040516103989190612253565b60405180910390f35b3480156103ad57600080fd5b506103b6610b28565b6040516103c391906125aa565b60405180910390f35b3480156103d857600080fd5b506103f360048036038101906103ee919061234c565b610b39565b6040516104009190612192565b60405180910390f35b34801561041557600080fd5b50610430600480360381019061042b91906125c5565b610b4e565b005b34801561043e57600080fd5b506104596004803603810190610454919061234c565b610b6f565b6040516104669190612192565b60405180910390f35b34801561047b57600080fd5b50610496600480360381019061049191906125c5565b610b83565b005b3480156104a457600080fd5b506104bf60048036038101906104ba919061214a565b610c06565b005b3480156104cd57600080fd5b506104e860048036038101906104e39190612605565b610cb9565b6040516104f59190612253565b60405180910390f35b34801561050a57600080fd5b506105256004803603810190610520919061234c565b610cf2565b6040516105329190612192565b60405180910390f35b34801561054757600080fd5b50610562600480360381019061055d91906121e3565b610d07565b005b61057e60048036038101906105799190612605565b610d77565b005b34801561058c57600080fd5b50610595610f25565b6040516105a29190612253565b60405180910390f35b3480156105b757600080fd5b506105c0610f49565b6040516105cd9190612253565b60405180910390f35b3480156105e257600080fd5b506105fd60048036038101906105f89190612679565b610f6d565b60405161060a91906126c8565b60405180910390f35b34801561061f57600080fd5b5061063a600480360381019061063591906125c5565b610f9c565b6040516106479190612192565b60405180910390f35b34801561065c57600080fd5b506106776004803603810190610672919061214a565b611006565b005b34801561068557600080fd5b5061068e6110b9565b60405161069b9190612253565b60405180910390f35b3480156106b057600080fd5b506106cb60048036038101906106c691906126e3565b6110c0565b005b3480156106d957600080fd5b506106e261127b565b6040516106ef9190612253565b60405180910390f35b34801561070457600080fd5b5061071f600480360381019061071a919061282e565b61129f565b60405161072c919061221f565b60405180910390f35b34801561074157600080fd5b5061075c6004803603810190610757919061234c565b6112b4565b005b34801561076a57600080fd5b506107856004803603810190610780919061234c565b6113ab565b60405161079291906125aa565b60405180910390f35b3480156107a757600080fd5b506107c260048036038101906107bd919061234c565b6113cf565b6040516107cf91906125aa565b60405180910390f35b3480156107e457600080fd5b506107ff60048036038101906107fa91906125c5565b6113ec565b005b34801561080d57600080fd5b50610828600480360381019061082391906128fd565b61140d565b604051610835919061221f565b60405180910390f35b34801561084a57600080fd5b50610853611422565b60405161086091906125aa565b60405180910390f35b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108dc57506108db8261142c565b5b9050919050565b60006108f98260046114a690919063ffffffff16565b9050919050565b7fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6381565b7fa1b2b8005de234c4b8ce8cd0be058239056e0d54f6097825b5117101469d5a8d600061094f6114bd565b905061097b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582610f9c565b61098a5761098982826114c5565b5b60005b84849050811015610aa4576109c58585838181106109ae576109ad612994565b5b90506020028101906109c091906129d2565b61154a565b807f6b983f337bab73dfe37faca733adf3ea35b45b8b144ec8ee2de3a1b224564b0c8686848181106109fa576109f9612994565b5b9050602002810190610a0c91906129d2565b6000016020810190610a1e91906129fa565b878785818110610a3157610a30612994565b5b9050602002810190610a4391906129d2565b60200135888886818110610a5a57610a59612994565b5b9050602002810190610a6c91906129d2565b8060400190610a7b9190612a27565b604051610a8b9493929190612ac8565b60405180910390a280610a9d90612b37565b905061098d565b5050505050565b600080610ab7836113cf565b9050600181118015610ac95750428111155b915050919050565b600063150b7a0260e01b9050949350505050565b7fa1b2b8005de234c4b8ce8cd0be058239056e0d54f6097825b5117101469d5a8d81565b6000806000838152602001908152602001600020600101549050919050565b6000610b346004611622565b905090565b60006001610b46836113cf565b149050919050565b610b5782610b09565b610b6081611637565b610b6a838361164b565b505050565b600080610b7b836113cf565b119050919050565b610b8b6114bd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bef90612c02565b60405180910390fd5b610c02828261167f565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610c3081611637565b610c63827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660046116b390919063ffffffff16565b15610cb557817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167fd91859a8d88193a56a2983deb65a5253985141c49c70bf016880b5243bd432e160405160405180910390a25b5050565b600084848484604051602001610cd29493929190612e60565b604051602081830303815290604052805190602001209050949350505050565b60006001610cff836113cf565b119050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610d3181611637565b7f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d560035483604051610d64929190612ea0565b60405180910390a1816003819055505050565b7fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e636000610da26114bd565b9050610dce7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582610f9c565b610ddd57610ddc82826114c5565b5b6000610deb87878787610cb9565b9050610df781866116ca565b60005b87879050811015610f1257610e32888883818110610e1b57610e1a612994565b5b9050602002810190610e2d91906129d2565b61154a565b80827fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b588a8a85818110610e6857610e67612994565b5b9050602002810190610e7a91906129d2565b6000016020810190610e8c91906129fa565b8b8b86818110610e9f57610e9e612994565b5b9050602002810190610eb191906129d2565b602001358c8c87818110610ec857610ec7612994565b5b9050602002810190610eda91906129d2565b8060400190610ee99190612a27565b604051610ef99493929190612ac8565b60405180910390a380610f0b90612b37565b9050610dfa565b50610f1c8161176b565b50505050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc181565b6000610f9482600160008681526020019081526020016000206117cf90919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561103081611637565b611063827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660046117e990919063ffffffff16565b156110b557817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f15b40cf8ed4c95cd3c0e1dedfdb3987c3f9bf3d3770d13ddf6dc4daa5ffae9ef60405160405180910390a25b5050565b6000801b81565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc160006110eb6114bd565b90506111177fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582610f9c565b6111265761112582826114c5565b5b600061113488888888610cb9565b90506111408185611800565b60005b888890508110156112705761118a89898381811061116457611163612994565b5b905060200281019061117691906129d2565b80604001906111859190612a27565b6118ba565b80827f4f4da6666f52e3b6dbc3638d8eae4017722678fe58bca79cd8320817807a65be8b8b858181106111c0576111bf612994565b5b90506020028101906111d291906129d2565b60000160208101906111e491906129fa565b8c8c868181106111f7576111f6612994565b5b905060200281019061120991906129d2565b602001358d8d878181106112205761121f612994565b5b905060200281019061123291906129d2565b80604001906112419190612a27565b8d8d8d6040516112579796959493929190612ec9565b60405180910390a38061126990612b37565b9050611143565b505050505050505050565b7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78381565b600063bc197c8160e01b905095945050505050565b7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78360006112df6114bd565b905061130b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582610f9c565b61131a5761131982826114c5565b5b61132383610cf2565b611362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135990612fa5565b60405180910390fd5b6002600084815260200190815260200160002060009055827fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7060405160405180910390a2505050565b60006113c860016000848152602001908152602001600020611961565b9050919050565b600060026000838152602001908152602001600020549050919050565b6113f582610b09565b6113fe81611637565b611408838361167f565b505050565b600063f23a6e6160e01b905095945050505050565b6000600354905090565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061149f575061149e82611976565b5b9050919050565b60006114b583600001836119f0565b905092915050565b600033905090565b6114cf8282610f9c565b611546576114dc81611a1b565b6114ea8360001c6020611a48565b6040516020016114fb9291906130ce565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153d9190613141565b60405180910390fd5b5050565b600081600001602081019061155f91906129fa565b73ffffffffffffffffffffffffffffffffffffffff16826020013583806040019061158a9190612a27565b604051611598929190613193565b60006040518083038185875af1925050503d80600081146115d5576040519150601f19603f3d011682016040523d82523d6000602084013e6115da565b606091505b505090508061161e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116159061321e565b60405180910390fd5b5050565b600061163082600001611c84565b9050919050565b611648816116436114bd565b6114c5565b50565b6116558282611c95565b61167a8160016000858152602001908152602001600020611d7590919063ffffffff16565b505050565b6116898282611da5565b6116ae8160016000858152602001908152602001600020611e8690919063ffffffff16565b505050565b60006116c28360000183611eb6565b905092915050565b6116d382610aab565b611712576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611709906132b0565b60405180910390fd5b6000801b811480611728575061172781610b39565b5b611767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175e9061331c565b60405180910390fd5b5050565b61177481610aab565b6117b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117aa906132b0565b60405180910390fd5b6001600260008381526020019081526020016000208190555050565b60006117de83600001836119f0565b60001c905092915050565b60006117f88360000183611fca565b905092915050565b61180982610b6f565b15611849576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611840906133ae565b60405180910390fd5b611851611422565b811015611893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188a9061341a565b60405180910390fd5b804261189f919061343a565b60026000848152602001908152602001600020819055505050565b6004828290501061195d57600082826000906004926118db93929190613478565b906118e691906134cb565b905061191b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916600461203a90919063ffffffff16565b1561195b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119529061359c565b60405180910390fd5b505b5050565b600061196f82600001611c84565b9050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119e957506119e882612051565b5b9050919050565b6000826000018281548110611a0857611a07612994565b5b9060005260206000200154905092915050565b6060611a418273ffffffffffffffffffffffffffffffffffffffff16601460ff16611a48565b9050919050565b606060006002836002611a5b91906135bc565b611a65919061343a565b67ffffffffffffffff811115611a7e57611a7d6123ed565b5b6040519080825280601f01601f191660200182016040528015611ab05781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611ae857611ae7612994565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611b4c57611b4b612994565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611b8c91906135bc565b611b96919061343a565b90505b6001811115611c36577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611bd857611bd7612994565b5b1a60f81b828281518110611bef57611bee612994565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611c2f906135fe565b9050611b99565b5060008414611c7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7190613673565b60405180910390fd5b8091505092915050565b600081600001805490509050919050565b611c9f8282610f9c565b611d7157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611d166114bd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000611d9d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611fca565b905092915050565b611daf8282610f9c565b15611e8257600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611e276114bd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000611eae836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611eb6565b905092915050565b60008083600101600084815260200190815260200160002054905060008114611fbe576000600182611ee89190613693565b9050600060018660000180549050611f009190613693565b9050818114611f6f576000866000018281548110611f2157611f20612994565b5b9060005260206000200154905080876000018481548110611f4557611f44612994565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611f8357611f826136c7565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611fc4565b60009150505b92915050565b6000611fd683836120bb565b61202f578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612034565b600090505b92915050565b600061204983600001836120bb565b905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080836001016000848152602001908152602001600020541415905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612127816120f2565b811461213257600080fd5b50565b6000813590506121448161211e565b92915050565b6000602082840312156121605761215f6120e8565b5b600061216e84828501612135565b91505092915050565b60008115159050919050565b61218c81612177565b82525050565b60006020820190506121a76000830184612183565b92915050565b6000819050919050565b6121c0816121ad565b81146121cb57600080fd5b50565b6000813590506121dd816121b7565b92915050565b6000602082840312156121f9576121f86120e8565b5b6000612207848285016121ce565b91505092915050565b612219816120f2565b82525050565b60006020820190506122346000830184612210565b92915050565b6000819050919050565b61224d8161223a565b82525050565b60006020820190506122686000830184612244565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126122935761229261226e565b5b8235905067ffffffffffffffff8111156122b0576122af612273565b5b6020830191508360208202830111156122cc576122cb612278565b5b9250929050565b600080602083850312156122ea576122e96120e8565b5b600083013567ffffffffffffffff811115612308576123076120ed565b5b6123148582860161227d565b92509250509250929050565b6123298161223a565b811461233457600080fd5b50565b60008135905061234681612320565b92915050565b600060208284031215612362576123616120e8565b5b600061237084828501612337565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006123a482612379565b9050919050565b6123b481612399565b81146123bf57600080fd5b50565b6000813590506123d1816123ab565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612425826123dc565b810181811067ffffffffffffffff82111715612444576124436123ed565b5b80604052505050565b60006124576120de565b9050612463828261241c565b919050565b600067ffffffffffffffff821115612483576124826123ed565b5b61248c826123dc565b9050602081019050919050565b82818337600083830152505050565b60006124bb6124b684612468565b61244d565b9050828152602081018484840111156124d7576124d66123d7565b5b6124e2848285612499565b509392505050565b600082601f8301126124ff576124fe61226e565b5b813561250f8482602086016124a8565b91505092915050565b60008060008060808587031215612532576125316120e8565b5b6000612540878288016123c2565b9450506020612551878288016123c2565b9350506040612562878288016121ce565b925050606085013567ffffffffffffffff811115612583576125826120ed565b5b61258f878288016124ea565b91505092959194509250565b6125a4816121ad565b82525050565b60006020820190506125bf600083018461259b565b92915050565b600080604083850312156125dc576125db6120e8565b5b60006125ea85828601612337565b92505060206125fb858286016123c2565b9150509250929050565b6000806000806060858703121561261f5761261e6120e8565b5b600085013567ffffffffffffffff81111561263d5761263c6120ed565b5b6126498782880161227d565b9450945050602061265c87828801612337565b925050604061266d87828801612337565b91505092959194509250565b600080604083850312156126905761268f6120e8565b5b600061269e85828601612337565b92505060206126af858286016121ce565b9150509250929050565b6126c281612399565b82525050565b60006020820190506126dd60008301846126b9565b92915050565b6000806000806000608086880312156126ff576126fe6120e8565b5b600086013567ffffffffffffffff81111561271d5761271c6120ed565b5b6127298882890161227d565b9550955050602061273c88828901612337565b935050604061274d88828901612337565b925050606061275e888289016121ce565b9150509295509295909350565b600067ffffffffffffffff821115612786576127856123ed565b5b602082029050602081019050919050565b60006127aa6127a58461276b565b61244d565b905080838252602082019050602084028301858111156127cd576127cc612278565b5b835b818110156127f657806127e288826121ce565b8452602084019350506020810190506127cf565b5050509392505050565b600082601f8301126128155761281461226e565b5b8135612825848260208601612797565b91505092915050565b600080600080600060a0868803121561284a576128496120e8565b5b6000612858888289016123c2565b9550506020612869888289016123c2565b945050604086013567ffffffffffffffff81111561288a576128896120ed565b5b61289688828901612800565b935050606086013567ffffffffffffffff8111156128b7576128b66120ed565b5b6128c388828901612800565b925050608086013567ffffffffffffffff8111156128e4576128e36120ed565b5b6128f0888289016124ea565b9150509295509295909350565b600080600080600060a08688031215612919576129186120e8565b5b6000612927888289016123c2565b9550506020612938888289016123c2565b9450506040612949888289016121ce565b935050606061295a888289016121ce565b925050608086013567ffffffffffffffff81111561297b5761297a6120ed565b5b612987888289016124ea565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b6000823560016060038336030381126129ee576129ed6129c3565b5b80830191505092915050565b600060208284031215612a1057612a0f6120e8565b5b6000612a1e848285016123c2565b91505092915050565b60008083356001602003843603038112612a4457612a436129c3565b5b80840192508235915067ffffffffffffffff821115612a6657612a656129c8565b5b602083019250600182023603831315612a8257612a816129cd565b5b509250929050565b600082825260208201905092915050565b6000612aa78385612a8a565b9350612ab4838584612499565b612abd836123dc565b840190509392505050565b6000606082019050612add60008301876126b9565b612aea602083018661259b565b8181036040830152612afd818486612a9b565b905095945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612b42826121ad565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612b7457612b73612b08565b5b600182019050919050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612bec602f83612b7f565b9150612bf782612b90565b604082019050919050565b60006020820190508181036000830152612c1b81612bdf565b9050919050565b600082825260208201905092915050565b6000819050919050565b6000612c4c60208401846123c2565b905092915050565b612c5d81612399565b82525050565b6000612c7260208401846121ce565b905092915050565b612c83816121ad565b82525050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112612cb557612cb4612c93565b5b83810192508235915060208301925067ffffffffffffffff821115612cdd57612cdc612c89565b5b600182023603831315612cf357612cf2612c8e565b5b509250929050565b600082825260208201905092915050565b6000612d188385612cfb565b9350612d25838584612499565b612d2e836123dc565b840190509392505050565b600060608301612d4c6000840184612c3d565b612d596000860182612c54565b50612d676020840184612c63565b612d746020860182612c7a565b50612d826040840184612c98565b8583036040870152612d95838284612d0c565b925050508091505092915050565b6000612daf8383612d39565b905092915050565b600082356001606003833603038112612dd357612dd2612c93565b5b82810191505092915050565b6000602082019050919050565b6000612df88385612c22565b935083602084028501612e0a84612c33565b8060005b87811015612e4e578484038952612e258284612db7565b612e2f8582612da3565b9450612e3a83612ddf565b925060208a01995050600181019050612e0e565b50829750879450505050509392505050565b60006060820190508181036000830152612e7b818688612dec565b9050612e8a6020830185612244565b612e976040830184612244565b95945050505050565b6000604082019050612eb5600083018561259b565b612ec2602083018461259b565b9392505050565b600060c082019050612ede600083018a6126b9565b612eeb602083018961259b565b8181036040830152612efe818789612a9b565b9050612f0d6060830186612244565b612f1a6080830185612244565b612f2760a083018461259b565b98975050505050505050565b7f5242414354696d656c6f636b3a206f7065726174696f6e2063616e6e6f74206260008201527f652063616e63656c6c6564000000000000000000000000000000000000000000602082015250565b6000612f8f602b83612b7f565b9150612f9a82612f33565b604082019050919050565b60006020820190508181036000830152612fbe81612f82565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613006601783612fc5565b915061301182612fd0565b601782019050919050565b600081519050919050565b60005b8381101561304557808201518184015260208101905061302a565b60008484015250505050565b600061305c8261301c565b6130668185612fc5565b9350613076818560208601613027565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006130b8601183612fc5565b91506130c382613082565b601182019050919050565b60006130d982612ff9565b91506130e58285613051565b91506130f0826130ab565b91506130fc8284613051565b91508190509392505050565b60006131138261301c565b61311d8185612b7f565b935061312d818560208601613027565b613136816123dc565b840191505092915050565b6000602082019050818103600083015261315b8184613108565b905092915050565b600081905092915050565b600061317a8385613163565b9350613187838584612499565b82840190509392505050565b60006131a082848661316e565b91508190509392505050565b7f5242414354696d656c6f636b3a20756e6465726c79696e67207472616e73616360008201527f74696f6e20726576657274656400000000000000000000000000000000000000602082015250565b6000613208602d83612b7f565b9150613213826131ac565b604082019050919050565b60006020820190508181036000830152613237816131fb565b9050919050565b7f5242414354696d656c6f636b3a206f7065726174696f6e206973206e6f74207260008201527f6561647900000000000000000000000000000000000000000000000000000000602082015250565b600061329a602483612b7f565b91506132a58261323e565b604082019050919050565b600060208201905081810360008301526132c98161328d565b9050919050565b7f5242414354696d656c6f636b3a206d697373696e6720646570656e64656e6379600082015250565b6000613306602083612b7f565b9150613311826132d0565b602082019050919050565b60006020820190508181036000830152613335816132f9565b9050919050565b7f5242414354696d656c6f636b3a206f7065726174696f6e20616c72656164792060008201527f7363686564756c65640000000000000000000000000000000000000000000000602082015250565b6000613398602983612b7f565b91506133a38261333c565b604082019050919050565b600060208201905081810360008301526133c78161338b565b9050919050565b7f5242414354696d656c6f636b3a20696e73756666696369656e742064656c6179600082015250565b6000613404602083612b7f565b915061340f826133ce565b602082019050919050565b60006020820190508181036000830152613433816133f7565b9050919050565b6000613445826121ad565b9150613450836121ad565b925082820190508082111561346857613467612b08565b5b92915050565b600080fd5b600080fd5b6000808585111561348c5761348b61346e565b5b8386111561349d5761349c613473565b5b6001850283019150848603905094509492505050565b600082905092915050565b600082821b905092915050565b60006134d783836134b3565b826134e281356120f2565b925060048210156135225761351d7fffffffff00000000000000000000000000000000000000000000000000000000836004036008026134be565b831692505b505092915050565b7f5242414354696d656c6f636b3a2073656c6563746f7220697320626c6f636b6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000613586602183612b7f565b91506135918261352a565b604082019050919050565b600060208201905081810360008301526135b581613579565b9050919050565b60006135c7826121ad565b91506135d2836121ad565b92508282026135e0816121ad565b915082820484148315176135f7576135f6612b08565b5b5092915050565b6000613609826121ad565b91506000820361361c5761361b612b08565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061365d602083612b7f565b915061366882613627565b602082019050919050565b6000602082019050818103600083015261368c81613650565b9050919050565b600061369e826121ad565b91506136a9836121ad565b92508282039050818111156136c1576136c0612b08565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea164736f6c6343000813000a","optimization_enabled":false,"verified_twin_address_hash":null,"is_verified":true,"compiler_settings":{"evmVersion":"london","libraries":{},"metadata":{"appendCBOR":true,"bytecodeHash":"none"},"optimizer":{"enabled":false,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["@eth-optimism/=node_modules/@eth-optimism/","@openzeppelin/=node_modules/@openzeppelin/","ds-test/=foundry-lib/forge-std/lib/ds-test/src/","erc4626-tests/=foundry-lib/openzeppelin-contracts/lib/erc4626-tests/","forge-std/=foundry-lib/forge-std/src/","hardhat/=node_modules/hardhat/","openzeppelin-contracts/=foundry-lib/openzeppelin-contracts/contracts/"]},"optimization_runs":null,"sourcify_repo_url":null,"decoded_constructor_args":[["10800",{"internalType":"uint256","name":"minDelay","type":"uint256"}],["0x68ad36Ad55bc29eE5a4C4781d9640DD47c8675Bc",{"internalType":"address","name":"admin","type":"address"}],[["0x9c65F4bf2da23892345505EB92823E0ec30018a6"],{"internalType":"address[]","name":"proposers","type":"address[]"}],[[],{"internalType":"address[]","name":"executors","type":"address[]"}],[["0x6eF6B1049D93E5E7C0F8Cf63d3A76BDc754A637f","0x8d9001Df517fD5F88D8bBb8efed5B08DE174386e","0x9c65F4bf2da23892345505EB92823E0ec30018a6","0xAa2B6500981c8a05b7a391c526ff0DD77AB8748f"],{"internalType":"address[]","name":"cancellers","type":"address[]"}],[["0x8d9001Df517fD5F88D8bBb8efed5B08DE174386e"],{"internalType":"address[]","name":"bypassers","type":"address[]"}]],"compiler_version":"v0.8.19+commit.7dd6d404","is_verified_via_verifier_alliance":false,"verified_at":"2025-01-30T07:50:54.853375Z","implementations":[],"proxy_type":null,"external_libraries":[],"creation_bytecode":"0x60806040523480156200001157600080fd5b506040516200428e3803806200428e83398181016040528101906200003791906200092d565b620000697fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177580620003f660201b60201c565b620000bb7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc17fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775620003f660201b60201c565b6200010d7fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e637fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775620003f660201b60201c565b6200015f7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f7837fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775620003f660201b60201c565b620001b17fa1b2b8005de234c4b8ce8cd0be058239056e0d54f6097825b5117101469d5a8d7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775620003f660201b60201c565b620001e37fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775866200045960201b60201c565b60005b845181101562000253576200023f7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc18683815181106200022b576200022a62000a45565b5b60200260200101516200045960201b60201c565b806200024b9062000aa3565b9050620001e6565b5060005b8351811015620002c457620002b07fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e638583815181106200029c576200029b62000a45565b5b60200260200101516200045960201b60201c565b80620002bc9062000aa3565b905062000257565b5060005b82518110156200033557620003217ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f7838483815181106200030d576200030c62000a45565b5b60200260200101516200045960201b60201c565b806200032d9062000aa3565b9050620002c8565b5060005b8151811015620003a657620003927fa1b2b8005de234c4b8ce8cd0be058239056e0d54f6097825b5117101469d5a8d8383815181106200037e576200037d62000a45565b5b60200260200101516200045960201b60201c565b806200039e9062000aa3565b905062000339565b50856003819055507f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d5600087604051620003e292919062000b4e565b60405180910390a150505050505062000b7b565b600062000409836200046f60201b60201c565b905081600080858152602001908152602001600020600101819055508181847fbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff60405160405180910390a4505050565b6200046b82826200048e60201b60201c565b5050565b6000806000838152602001908152602001600020600101549050919050565b620004a08282620004cc60201b60201c565b620004c78160016000858152602001908152602001600020620005bd60201b90919060201c565b505050565b620004de8282620005f560201b60201c565b620005b957600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506200055e6200065f60201b60201c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000620005ed836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6200066760201b60201c565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600033905090565b60006200067b8383620006e160201b60201c565b620006d6578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050620006db565b600090505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6200072d8162000718565b81146200073957600080fd5b50565b6000815190506200074d8162000722565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620007808262000753565b9050919050565b620007928162000773565b81146200079e57600080fd5b50565b600081519050620007b28162000787565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6200080882620007bd565b810181811067ffffffffffffffff821117156200082a5762000829620007ce565b5b80604052505050565b60006200083f62000704565b90506200084d8282620007fd565b919050565b600067ffffffffffffffff82111562000870576200086f620007ce565b5b602082029050602081019050919050565b600080fd5b60006200089d620008978462000852565b62000833565b90508083825260208201905060208402830185811115620008c357620008c262000881565b5b835b81811015620008f05780620008db8882620007a1565b845260208401935050602081019050620008c5565b5050509392505050565b600082601f830112620009125762000911620007b8565b5b81516200092484826020860162000886565b91505092915050565b60008060008060008060c087890312156200094d576200094c6200070e565b5b60006200095d89828a016200073c565b96505060206200097089828a01620007a1565b955050604087015167ffffffffffffffff81111562000994576200099362000713565b5b620009a289828a01620008fa565b945050606087015167ffffffffffffffff811115620009c657620009c562000713565b5b620009d489828a01620008fa565b935050608087015167ffffffffffffffff811115620009f857620009f762000713565b5b62000a0689828a01620008fa565b92505060a087015167ffffffffffffffff81111562000a2a5762000a2962000713565b5b62000a3889828a01620008fa565b9150509295509295509295565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600062000ab08262000718565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820362000ae55762000ae462000a74565b5b600182019050919050565b6000819050919050565b6000819050919050565b600062000b2562000b1f62000b198462000af0565b62000afa565b62000718565b9050919050565b62000b378162000b04565b82525050565b62000b488162000718565b82525050565b600060408201905062000b65600083018562000b2c565b62000b74602083018462000b3d565b9392505050565b6137038062000b8b6000396000f3fe6080604052600436106101f25760003560e01c806364d623531161010d578063a944142d116100a0578063ca15c8731161006f578063ca15c8731461075e578063d45c44351461079b578063d547741f146107d8578063f23a6e6114610801578063f27a0c921461083e576101f9565b8063a944142d146106a4578063b08e51c0146106cd578063bc197c81146106f8578063c4d252f514610735576101f9565b80639010d07c116100dc5780639010d07c146105d657806391d14854146106135780639f5a23f714610650578063a217fddf14610679576101f9565b806364d623531461053b5780636ceef4801461056457806375b238fc146105805780638f61f4f5146105ab576101f9565b806326bb2ec51161018557806336568abe1161015457806336568abe1461046f5780633a98b4e414610498578063515a3db3146104c1578063584b153e146104fe576101f9565b806326bb2ec5146103a15780632ab0f529146103cc5780632f2ff15d1461040957806331d5075014610432576101f9565b806313bc9f20116101c157806313bc9f20146102bf578063150b7a02146102fc578063191cb7b314610339578063248a9ca314610364576101f9565b806301ffc9a7146101fe57806303e561551461023b57806307bd0265146102785780630db866b1146102a3576101f9565b366101f957005b600080fd5b34801561020a57600080fd5b506102256004803603810190610220919061214a565b610869565b6040516102329190612192565b60405180910390f35b34801561024757600080fd5b50610262600480360381019061025d91906121e3565b6108e3565b60405161026f919061221f565b60405180910390f35b34801561028457600080fd5b5061028d610900565b60405161029a9190612253565b60405180910390f35b6102bd60048036038101906102b891906122d3565b610924565b005b3480156102cb57600080fd5b506102e660048036038101906102e1919061234c565b610aab565b6040516102f39190612192565b60405180910390f35b34801561030857600080fd5b50610323600480360381019061031e9190612518565b610ad1565b604051610330919061221f565b60405180910390f35b34801561034557600080fd5b5061034e610ae5565b60405161035b9190612253565b60405180910390f35b34801561037057600080fd5b5061038b6004803603810190610386919061234c565b610b09565b6040516103989190612253565b60405180910390f35b3480156103ad57600080fd5b506103b6610b28565b6040516103c391906125aa565b60405180910390f35b3480156103d857600080fd5b506103f360048036038101906103ee919061234c565b610b39565b6040516104009190612192565b60405180910390f35b34801561041557600080fd5b50610430600480360381019061042b91906125c5565b610b4e565b005b34801561043e57600080fd5b506104596004803603810190610454919061234c565b610b6f565b6040516104669190612192565b60405180910390f35b34801561047b57600080fd5b50610496600480360381019061049191906125c5565b610b83565b005b3480156104a457600080fd5b506104bf60048036038101906104ba919061214a565b610c06565b005b3480156104cd57600080fd5b506104e860048036038101906104e39190612605565b610cb9565b6040516104f59190612253565b60405180910390f35b34801561050a57600080fd5b506105256004803603810190610520919061234c565b610cf2565b6040516105329190612192565b60405180910390f35b34801561054757600080fd5b50610562600480360381019061055d91906121e3565b610d07565b005b61057e60048036038101906105799190612605565b610d77565b005b34801561058c57600080fd5b50610595610f25565b6040516105a29190612253565b60405180910390f35b3480156105b757600080fd5b506105c0610f49565b6040516105cd9190612253565b60405180910390f35b3480156105e257600080fd5b506105fd60048036038101906105f89190612679565b610f6d565b60405161060a91906126c8565b60405180910390f35b34801561061f57600080fd5b5061063a600480360381019061063591906125c5565b610f9c565b6040516106479190612192565b60405180910390f35b34801561065c57600080fd5b506106776004803603810190610672919061214a565b611006565b005b34801561068557600080fd5b5061068e6110b9565b60405161069b9190612253565b60405180910390f35b3480156106b057600080fd5b506106cb60048036038101906106c691906126e3565b6110c0565b005b3480156106d957600080fd5b506106e261127b565b6040516106ef9190612253565b60405180910390f35b34801561070457600080fd5b5061071f600480360381019061071a919061282e565b61129f565b60405161072c919061221f565b60405180910390f35b34801561074157600080fd5b5061075c6004803603810190610757919061234c565b6112b4565b005b34801561076a57600080fd5b506107856004803603810190610780919061234c565b6113ab565b60405161079291906125aa565b60405180910390f35b3480156107a757600080fd5b506107c260048036038101906107bd919061234c565b6113cf565b6040516107cf91906125aa565b60405180910390f35b3480156107e457600080fd5b506107ff60048036038101906107fa91906125c5565b6113ec565b005b34801561080d57600080fd5b50610828600480360381019061082391906128fd565b61140d565b604051610835919061221f565b60405180910390f35b34801561084a57600080fd5b50610853611422565b60405161086091906125aa565b60405180910390f35b60007f4e2312e0000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108dc57506108db8261142c565b5b9050919050565b60006108f98260046114a690919063ffffffff16565b9050919050565b7fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e6381565b7fa1b2b8005de234c4b8ce8cd0be058239056e0d54f6097825b5117101469d5a8d600061094f6114bd565b905061097b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582610f9c565b61098a5761098982826114c5565b5b60005b84849050811015610aa4576109c58585838181106109ae576109ad612994565b5b90506020028101906109c091906129d2565b61154a565b807f6b983f337bab73dfe37faca733adf3ea35b45b8b144ec8ee2de3a1b224564b0c8686848181106109fa576109f9612994565b5b9050602002810190610a0c91906129d2565b6000016020810190610a1e91906129fa565b878785818110610a3157610a30612994565b5b9050602002810190610a4391906129d2565b60200135888886818110610a5a57610a59612994565b5b9050602002810190610a6c91906129d2565b8060400190610a7b9190612a27565b604051610a8b9493929190612ac8565b60405180910390a280610a9d90612b37565b905061098d565b5050505050565b600080610ab7836113cf565b9050600181118015610ac95750428111155b915050919050565b600063150b7a0260e01b9050949350505050565b7fa1b2b8005de234c4b8ce8cd0be058239056e0d54f6097825b5117101469d5a8d81565b6000806000838152602001908152602001600020600101549050919050565b6000610b346004611622565b905090565b60006001610b46836113cf565b149050919050565b610b5782610b09565b610b6081611637565b610b6a838361164b565b505050565b600080610b7b836113cf565b119050919050565b610b8b6114bd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610bf8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bef90612c02565b60405180910390fd5b610c02828261167f565b5050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610c3081611637565b610c63827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660046116b390919063ffffffff16565b15610cb557817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167fd91859a8d88193a56a2983deb65a5253985141c49c70bf016880b5243bd432e160405160405180910390a25b5050565b600084848484604051602001610cd29493929190612e60565b604051602081830303815290604052805190602001209050949350505050565b60006001610cff836113cf565b119050919050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775610d3181611637565b7f11c24f4ead16507c69ac467fbd5e4eed5fb5c699626d2cc6d66421df253886d560035483604051610d64929190612ea0565b60405180910390a1816003819055505050565b7fd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e636000610da26114bd565b9050610dce7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582610f9c565b610ddd57610ddc82826114c5565b5b6000610deb87878787610cb9565b9050610df781866116ca565b60005b87879050811015610f1257610e32888883818110610e1b57610e1a612994565b5b9050602002810190610e2d91906129d2565b61154a565b80827fc2617efa69bab66782fa219543714338489c4e9e178271560a91b82c3f612b588a8a85818110610e6857610e67612994565b5b9050602002810190610e7a91906129d2565b6000016020810190610e8c91906129fa565b8b8b86818110610e9f57610e9e612994565b5b9050602002810190610eb191906129d2565b602001358c8c87818110610ec857610ec7612994565b5b9050602002810190610eda91906129d2565b8060400190610ee99190612a27565b604051610ef99493929190612ac8565b60405180910390a380610f0b90612b37565b9050610dfa565b50610f1c8161176b565b50505050505050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc181565b6000610f9482600160008681526020019081526020016000206117cf90919063ffffffff16565b905092915050565b600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177561103081611637565b611063827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191660046117e990919063ffffffff16565b156110b557817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167f15b40cf8ed4c95cd3c0e1dedfdb3987c3f9bf3d3770d13ddf6dc4daa5ffae9ef60405160405180910390a25b5050565b6000801b81565b7fb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc160006110eb6114bd565b90506111177fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582610f9c565b6111265761112582826114c5565b5b600061113488888888610cb9565b90506111408185611800565b60005b888890508110156112705761118a89898381811061116457611163612994565b5b905060200281019061117691906129d2565b80604001906111859190612a27565b6118ba565b80827f4f4da6666f52e3b6dbc3638d8eae4017722678fe58bca79cd8320817807a65be8b8b858181106111c0576111bf612994565b5b90506020028101906111d291906129d2565b60000160208101906111e491906129fa565b8c8c868181106111f7576111f6612994565b5b905060200281019061120991906129d2565b602001358d8d878181106112205761121f612994565b5b905060200281019061123291906129d2565b80604001906112419190612a27565b8d8d8d6040516112579796959493929190612ec9565b60405180910390a38061126990612b37565b9050611143565b505050505050505050565b7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78381565b600063bc197c8160e01b905095945050505050565b7ffd643c72710c63c0180259aba6b2d05451e3591a24e58b62239378085726f78360006112df6114bd565b905061130b7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177582610f9c565b61131a5761131982826114c5565b5b61132383610cf2565b611362576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135990612fa5565b60405180910390fd5b6002600084815260200190815260200160002060009055827fbaa1eb22f2a492ba1a5fea61b8df4d27c6c8b5f3971e63bb58fa14ff72eedb7060405160405180910390a2505050565b60006113c860016000848152602001908152602001600020611961565b9050919050565b600060026000838152602001908152602001600020549050919050565b6113f582610b09565b6113fe81611637565b611408838361167f565b505050565b600063f23a6e6160e01b905095945050505050565b6000600354905090565b60007f5a05180f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061149f575061149e82611976565b5b9050919050565b60006114b583600001836119f0565b905092915050565b600033905090565b6114cf8282610f9c565b611546576114dc81611a1b565b6114ea8360001c6020611a48565b6040516020016114fb9291906130ce565b6040516020818303038152906040526040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161153d9190613141565b60405180910390fd5b5050565b600081600001602081019061155f91906129fa565b73ffffffffffffffffffffffffffffffffffffffff16826020013583806040019061158a9190612a27565b604051611598929190613193565b60006040518083038185875af1925050503d80600081146115d5576040519150601f19603f3d011682016040523d82523d6000602084013e6115da565b606091505b505090508061161e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116159061321e565b60405180910390fd5b5050565b600061163082600001611c84565b9050919050565b611648816116436114bd565b6114c5565b50565b6116558282611c95565b61167a8160016000858152602001908152602001600020611d7590919063ffffffff16565b505050565b6116898282611da5565b6116ae8160016000858152602001908152602001600020611e8690919063ffffffff16565b505050565b60006116c28360000183611eb6565b905092915050565b6116d382610aab565b611712576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611709906132b0565b60405180910390fd5b6000801b811480611728575061172781610b39565b5b611767576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161175e9061331c565b60405180910390fd5b5050565b61177481610aab565b6117b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117aa906132b0565b60405180910390fd5b6001600260008381526020019081526020016000208190555050565b60006117de83600001836119f0565b60001c905092915050565b60006117f88360000183611fca565b905092915050565b61180982610b6f565b15611849576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611840906133ae565b60405180910390fd5b611851611422565b811015611893576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188a9061341a565b60405180910390fd5b804261189f919061343a565b60026000848152602001908152602001600020819055505050565b6004828290501061195d57600082826000906004926118db93929190613478565b906118e691906134cb565b905061191b817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916600461203a90919063ffffffff16565b1561195b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119529061359c565b60405180910390fd5b505b5050565b600061196f82600001611c84565b9050919050565b60007f7965db0b000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119e957506119e882612051565b5b9050919050565b6000826000018281548110611a0857611a07612994565b5b9060005260206000200154905092915050565b6060611a418273ffffffffffffffffffffffffffffffffffffffff16601460ff16611a48565b9050919050565b606060006002836002611a5b91906135bc565b611a65919061343a565b67ffffffffffffffff811115611a7e57611a7d6123ed565b5b6040519080825280601f01601f191660200182016040528015611ab05781602001600182028036833780820191505090505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110611ae857611ae7612994565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110611b4c57611b4b612994565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535060006001846002611b8c91906135bc565b611b96919061343a565b90505b6001811115611c36577f3031323334353637383961626364656600000000000000000000000000000000600f861660108110611bd857611bd7612994565b5b1a60f81b828281518110611bef57611bee612994565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600485901c945080611c2f906135fe565b9050611b99565b5060008414611c7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c7190613673565b60405180910390fd5b8091505092915050565b600081600001805490509050919050565b611c9f8282610f9c565b611d7157600160008084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611d166114bd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6000611d9d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611fca565b905092915050565b611daf8282610f9c565b15611e8257600080600084815260200190815260200160002060000160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550611e276114bd565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6000611eae836000018373ffffffffffffffffffffffffffffffffffffffff1660001b611eb6565b905092915050565b60008083600101600084815260200190815260200160002054905060008114611fbe576000600182611ee89190613693565b9050600060018660000180549050611f009190613693565b9050818114611f6f576000866000018281548110611f2157611f20612994565b5b9060005260206000200154905080876000018481548110611f4557611f44612994565b5b90600052602060002001819055508387600101600083815260200190815260200160002081905550505b85600001805480611f8357611f826136c7565b5b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050611fc4565b60009150505b92915050565b6000611fd683836120bb565b61202f578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050612034565b600090505b92915050565b600061204983600001836120bb565b905092915050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600080836001016000848152602001908152602001600020541415905092915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b612127816120f2565b811461213257600080fd5b50565b6000813590506121448161211e565b92915050565b6000602082840312156121605761215f6120e8565b5b600061216e84828501612135565b91505092915050565b60008115159050919050565b61218c81612177565b82525050565b60006020820190506121a76000830184612183565b92915050565b6000819050919050565b6121c0816121ad565b81146121cb57600080fd5b50565b6000813590506121dd816121b7565b92915050565b6000602082840312156121f9576121f86120e8565b5b6000612207848285016121ce565b91505092915050565b612219816120f2565b82525050565b60006020820190506122346000830184612210565b92915050565b6000819050919050565b61224d8161223a565b82525050565b60006020820190506122686000830184612244565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126122935761229261226e565b5b8235905067ffffffffffffffff8111156122b0576122af612273565b5b6020830191508360208202830111156122cc576122cb612278565b5b9250929050565b600080602083850312156122ea576122e96120e8565b5b600083013567ffffffffffffffff811115612308576123076120ed565b5b6123148582860161227d565b92509250509250929050565b6123298161223a565b811461233457600080fd5b50565b60008135905061234681612320565b92915050565b600060208284031215612362576123616120e8565b5b600061237084828501612337565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006123a482612379565b9050919050565b6123b481612399565b81146123bf57600080fd5b50565b6000813590506123d1816123ab565b92915050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b612425826123dc565b810181811067ffffffffffffffff82111715612444576124436123ed565b5b80604052505050565b60006124576120de565b9050612463828261241c565b919050565b600067ffffffffffffffff821115612483576124826123ed565b5b61248c826123dc565b9050602081019050919050565b82818337600083830152505050565b60006124bb6124b684612468565b61244d565b9050828152602081018484840111156124d7576124d66123d7565b5b6124e2848285612499565b509392505050565b600082601f8301126124ff576124fe61226e565b5b813561250f8482602086016124a8565b91505092915050565b60008060008060808587031215612532576125316120e8565b5b6000612540878288016123c2565b9450506020612551878288016123c2565b9350506040612562878288016121ce565b925050606085013567ffffffffffffffff811115612583576125826120ed565b5b61258f878288016124ea565b91505092959194509250565b6125a4816121ad565b82525050565b60006020820190506125bf600083018461259b565b92915050565b600080604083850312156125dc576125db6120e8565b5b60006125ea85828601612337565b92505060206125fb858286016123c2565b9150509250929050565b6000806000806060858703121561261f5761261e6120e8565b5b600085013567ffffffffffffffff81111561263d5761263c6120ed565b5b6126498782880161227d565b9450945050602061265c87828801612337565b925050604061266d87828801612337565b91505092959194509250565b600080604083850312156126905761268f6120e8565b5b600061269e85828601612337565b92505060206126af858286016121ce565b9150509250929050565b6126c281612399565b82525050565b60006020820190506126dd60008301846126b9565b92915050565b6000806000806000608086880312156126ff576126fe6120e8565b5b600086013567ffffffffffffffff81111561271d5761271c6120ed565b5b6127298882890161227d565b9550955050602061273c88828901612337565b935050604061274d88828901612337565b925050606061275e888289016121ce565b9150509295509295909350565b600067ffffffffffffffff821115612786576127856123ed565b5b602082029050602081019050919050565b60006127aa6127a58461276b565b61244d565b905080838252602082019050602084028301858111156127cd576127cc612278565b5b835b818110156127f657806127e288826121ce565b8452602084019350506020810190506127cf565b5050509392505050565b600082601f8301126128155761281461226e565b5b8135612825848260208601612797565b91505092915050565b600080600080600060a0868803121561284a576128496120e8565b5b6000612858888289016123c2565b9550506020612869888289016123c2565b945050604086013567ffffffffffffffff81111561288a576128896120ed565b5b61289688828901612800565b935050606086013567ffffffffffffffff8111156128b7576128b66120ed565b5b6128c388828901612800565b925050608086013567ffffffffffffffff8111156128e4576128e36120ed565b5b6128f0888289016124ea565b9150509295509295909350565b600080600080600060a08688031215612919576129186120e8565b5b6000612927888289016123c2565b9550506020612938888289016123c2565b9450506040612949888289016121ce565b935050606061295a888289016121ce565b925050608086013567ffffffffffffffff81111561297b5761297a6120ed565b5b612987888289016124ea565b9150509295509295909350565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b6000823560016060038336030381126129ee576129ed6129c3565b5b80830191505092915050565b600060208284031215612a1057612a0f6120e8565b5b6000612a1e848285016123c2565b91505092915050565b60008083356001602003843603038112612a4457612a436129c3565b5b80840192508235915067ffffffffffffffff821115612a6657612a656129c8565b5b602083019250600182023603831315612a8257612a816129cd565b5b509250929050565b600082825260208201905092915050565b6000612aa78385612a8a565b9350612ab4838584612499565b612abd836123dc565b840190509392505050565b6000606082019050612add60008301876126b9565b612aea602083018661259b565b8181036040830152612afd818486612a9b565b905095945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000612b42826121ad565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203612b7457612b73612b08565b5b600182019050919050565b600082825260208201905092915050565b7f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560008201527f20726f6c657320666f722073656c660000000000000000000000000000000000602082015250565b6000612bec602f83612b7f565b9150612bf782612b90565b604082019050919050565b60006020820190508181036000830152612c1b81612bdf565b9050919050565b600082825260208201905092915050565b6000819050919050565b6000612c4c60208401846123c2565b905092915050565b612c5d81612399565b82525050565b6000612c7260208401846121ce565b905092915050565b612c83816121ad565b82525050565b600080fd5b600080fd5b600080fd5b60008083356001602003843603038112612cb557612cb4612c93565b5b83810192508235915060208301925067ffffffffffffffff821115612cdd57612cdc612c89565b5b600182023603831315612cf357612cf2612c8e565b5b509250929050565b600082825260208201905092915050565b6000612d188385612cfb565b9350612d25838584612499565b612d2e836123dc565b840190509392505050565b600060608301612d4c6000840184612c3d565b612d596000860182612c54565b50612d676020840184612c63565b612d746020860182612c7a565b50612d826040840184612c98565b8583036040870152612d95838284612d0c565b925050508091505092915050565b6000612daf8383612d39565b905092915050565b600082356001606003833603038112612dd357612dd2612c93565b5b82810191505092915050565b6000602082019050919050565b6000612df88385612c22565b935083602084028501612e0a84612c33565b8060005b87811015612e4e578484038952612e258284612db7565b612e2f8582612da3565b9450612e3a83612ddf565b925060208a01995050600181019050612e0e565b50829750879450505050509392505050565b60006060820190508181036000830152612e7b818688612dec565b9050612e8a6020830185612244565b612e976040830184612244565b95945050505050565b6000604082019050612eb5600083018561259b565b612ec2602083018461259b565b9392505050565b600060c082019050612ede600083018a6126b9565b612eeb602083018961259b565b8181036040830152612efe818789612a9b565b9050612f0d6060830186612244565b612f1a6080830185612244565b612f2760a083018461259b565b98975050505050505050565b7f5242414354696d656c6f636b3a206f7065726174696f6e2063616e6e6f74206260008201527f652063616e63656c6c6564000000000000000000000000000000000000000000602082015250565b6000612f8f602b83612b7f565b9150612f9a82612f33565b604082019050919050565b60006020820190508181036000830152612fbe81612f82565b9050919050565b600081905092915050565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000600082015250565b6000613006601783612fc5565b915061301182612fd0565b601782019050919050565b600081519050919050565b60005b8381101561304557808201518184015260208101905061302a565b60008484015250505050565b600061305c8261301c565b6130668185612fc5565b9350613076818560208601613027565b80840191505092915050565b7f206973206d697373696e6720726f6c6520000000000000000000000000000000600082015250565b60006130b8601183612fc5565b91506130c382613082565b601182019050919050565b60006130d982612ff9565b91506130e58285613051565b91506130f0826130ab565b91506130fc8284613051565b91508190509392505050565b60006131138261301c565b61311d8185612b7f565b935061312d818560208601613027565b613136816123dc565b840191505092915050565b6000602082019050818103600083015261315b8184613108565b905092915050565b600081905092915050565b600061317a8385613163565b9350613187838584612499565b82840190509392505050565b60006131a082848661316e565b91508190509392505050565b7f5242414354696d656c6f636b3a20756e6465726c79696e67207472616e73616360008201527f74696f6e20726576657274656400000000000000000000000000000000000000602082015250565b6000613208602d83612b7f565b9150613213826131ac565b604082019050919050565b60006020820190508181036000830152613237816131fb565b9050919050565b7f5242414354696d656c6f636b3a206f7065726174696f6e206973206e6f74207260008201527f6561647900000000000000000000000000000000000000000000000000000000602082015250565b600061329a602483612b7f565b91506132a58261323e565b604082019050919050565b600060208201905081810360008301526132c98161328d565b9050919050565b7f5242414354696d656c6f636b3a206d697373696e6720646570656e64656e6379600082015250565b6000613306602083612b7f565b9150613311826132d0565b602082019050919050565b60006020820190508181036000830152613335816132f9565b9050919050565b7f5242414354696d656c6f636b3a206f7065726174696f6e20616c72656164792060008201527f7363686564756c65640000000000000000000000000000000000000000000000602082015250565b6000613398602983612b7f565b91506133a38261333c565b604082019050919050565b600060208201905081810360008301526133c78161338b565b9050919050565b7f5242414354696d656c6f636b3a20696e73756666696369656e742064656c6179600082015250565b6000613404602083612b7f565b915061340f826133ce565b602082019050919050565b60006020820190508181036000830152613433816133f7565b9050919050565b6000613445826121ad565b9150613450836121ad565b925082820190508082111561346857613467612b08565b5b92915050565b600080fd5b600080fd5b6000808585111561348c5761348b61346e565b5b8386111561349d5761349c613473565b5b6001850283019150848603905094509492505050565b600082905092915050565b600082821b905092915050565b60006134d783836134b3565b826134e281356120f2565b925060048210156135225761351d7fffffffff00000000000000000000000000000000000000000000000000000000836004036008026134be565b831692505b505092915050565b7f5242414354696d656c6f636b3a2073656c6563746f7220697320626c6f636b6560008201527f6400000000000000000000000000000000000000000000000000000000000000602082015250565b6000613586602183612b7f565b91506135918261352a565b604082019050919050565b600060208201905081810360008301526135b581613579565b9050919050565b60006135c7826121ad565b91506135d2836121ad565b92508282026135e0816121ad565b915082820484148315176135f7576135f6612b08565b5b5092915050565b6000613609826121ad565b91506000820361361c5761361b612b08565b5b600182039050919050565b7f537472696e67733a20686578206c656e67746820696e73756666696369656e74600082015250565b600061365d602083612b7f565b915061366882613627565b602082019050919050565b6000602082019050818103600083015261368c81613650565b9050919050565b600061369e826121ad565b91506136a9836121ad565b92508282039050818111156136c1576136c0612b08565b5b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea164736f6c6343000813000a0000000000000000000000000000000000000000000000000000000000002a3000000000000000000000000068ad36ad55bc29ee5a4c4781d9640dd47c8675bc00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009c65f4bf2da23892345505eb92823e0ec30018a6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000006ef6b1049d93e5e7c0f8cf63d3a76bdc754a637f0000000000000000000000008d9001df517fd5f88d8bbb8efed5b08de174386e0000000000000000000000009c65f4bf2da23892345505eb92823e0ec30018a6000000000000000000000000aa2b6500981c8a05b7a391c526ff0dd77ab8748f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000008d9001df517fd5f88d8bbb8efed5b08de174386e","name":"RBACTimelock","is_blueprint":false,"license_type":"none","is_fully_verified":false,"is_verified_via_eth_bytecode_db":true,"language":"solidity","evm_version":"london","can_be_visualized_via_sol2uml":true,"is_verified_via_sourcify":false,"additional_sources":[{"file_path":"foundry-lib/openzeppelin-contracts/contracts/access/AccessControl.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControl.sol\";\nimport \"../utils/Context.sol\";\nimport \"../utils/Strings.sol\";\nimport \"../utils/introspection/ERC165.sol\";\n\n/**\n * @dev Contract module that allows children to implement role-based access\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\n * members except through off-chain means by accessing the contract event logs. Some\n * applications may benefit from on-chain enumerability, for those cases see\n * {AccessControlEnumerable}.\n *\n * Roles are referred to by their `bytes32` identifier. These should be exposed\n * in the external API and be unique. The best way to achieve this is by\n * using `public constant` hash digests:\n *\n * ```solidity\n * bytes32 public constant MY_ROLE = keccak256(\"MY_ROLE\");\n * ```\n *\n * Roles can be used to represent a set of permissions. To restrict access to a\n * function call, use {hasRole}:\n *\n * ```solidity\n * function foo() public {\n *     require(hasRole(MY_ROLE, msg.sender));\n *     ...\n * }\n * ```\n *\n * Roles can be granted and revoked dynamically via the {grantRole} and\n * {revokeRole} functions. Each role has an associated admin role, and only\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\n *\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\n * that only accounts with this role will be able to grant or revoke other\n * roles. More complex role relationships can be created by using\n * {_setRoleAdmin}.\n *\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\n * grant and revoke this role. Extra precautions should be taken to secure\n * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules}\n * to enforce additional security measures for this role.\n */\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\n    struct RoleData {\n        mapping(address => bool) members;\n        bytes32 adminRole;\n    }\n\n    mapping(bytes32 => RoleData) private _roles;\n\n    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\n\n    /**\n     * @dev Modifier that checks that an account has a specific role. Reverts\n     * with a standardized message including the required role.\n     *\n     * The format of the revert reason is given by the following regular expression:\n     *\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n     *\n     * _Available since v4.1._\n     */\n    modifier onlyRole(bytes32 role) {\n        _checkRole(role);\n        _;\n    }\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\n        return _roles[role].members[account];\n    }\n\n    /**\n     * @dev Revert with a standard message if `_msgSender()` is missing `role`.\n     * Overriding this function changes the behavior of the {onlyRole} modifier.\n     *\n     * Format of the revert message is described in {_checkRole}.\n     *\n     * _Available since v4.6._\n     */\n    function _checkRole(bytes32 role) internal view virtual {\n        _checkRole(role, _msgSender());\n    }\n\n    /**\n     * @dev Revert with a standard message if `account` is missing `role`.\n     *\n     * The format of the revert reason is given by the following regular expression:\n     *\n     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\n     */\n    function _checkRole(bytes32 role, address account) internal view virtual {\n        if (!hasRole(role, account)) {\n            revert(\n                string(\n                    abi.encodePacked(\n                        \"AccessControl: account \",\n                        Strings.toHexString(account),\n                        \" is missing role \",\n                        Strings.toHexString(uint256(role), 32)\n                    )\n                )\n            );\n        }\n    }\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\n        return _roles[role].adminRole;\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been revoked `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `account`.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function renounceRole(bytes32 role, address account) public virtual override {\n        require(account == _msgSender(), \"AccessControl: can only renounce roles for self\");\n\n        _revokeRole(role, account);\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event. Note that unlike {grantRole}, this function doesn't perform any\n     * checks on the calling account.\n     *\n     * May emit a {RoleGranted} event.\n     *\n     * [WARNING]\n     * ====\n     * This function should only be called from the constructor when setting\n     * up the initial roles for the system.\n     *\n     * Using this function in any other way is effectively circumventing the admin\n     * system imposed by {AccessControl}.\n     * ====\n     *\n     * NOTE: This function is deprecated in favor of {_grantRole}.\n     */\n    function _setupRole(bytes32 role, address account) internal virtual {\n        _grantRole(role, account);\n    }\n\n    /**\n     * @dev Sets `adminRole` as ``role``'s admin role.\n     *\n     * Emits a {RoleAdminChanged} event.\n     */\n    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\n        bytes32 previousAdminRole = getRoleAdmin(role);\n        _roles[role].adminRole = adminRole;\n        emit RoleAdminChanged(role, previousAdminRole, adminRole);\n    }\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleGranted} event.\n     */\n    function _grantRole(bytes32 role, address account) internal virtual {\n        if (!hasRole(role, account)) {\n            _roles[role].members[account] = true;\n            emit RoleGranted(role, account, _msgSender());\n        }\n    }\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * Internal function without access restriction.\n     *\n     * May emit a {RoleRevoked} event.\n     */\n    function _revokeRole(bytes32 role, address account) internal virtual {\n        if (hasRole(role, account)) {\n            _roles[role].members[account] = false;\n            emit RoleRevoked(role, account, _msgSender());\n        }\n    }\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/access/AccessControlEnumerable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControlEnumerable.sol\";\nimport \"./AccessControl.sol\";\nimport \"../utils/structs/EnumerableSet.sol\";\n\n/**\n * @dev Extension of {AccessControl} that allows enumerating the members of each role.\n */\nabstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {\n    using EnumerableSet for EnumerableSet.AddressSet;\n\n    mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;\n\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);\n    }\n\n    /**\n     * @dev Returns one of the accounts that have `role`. `index` must be a\n     * value between 0 and {getRoleMemberCount}, non-inclusive.\n     *\n     * Role bearers are not sorted in any particular way, and their ordering may\n     * change at any point.\n     *\n     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n     * you perform all queries on the same block. See the following\n     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n     * for more information.\n     */\n    function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {\n        return _roleMembers[role].at(index);\n    }\n\n    /**\n     * @dev Returns the number of accounts that have `role`. Can be used\n     * together with {getRoleMember} to enumerate all bearers of a role.\n     */\n    function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {\n        return _roleMembers[role].length();\n    }\n\n    /**\n     * @dev Overload {_grantRole} to track enumerable memberships\n     */\n    function _grantRole(bytes32 role, address account) internal virtual override {\n        super._grantRole(role, account);\n        _roleMembers[role].add(account);\n    }\n\n    /**\n     * @dev Overload {_revokeRole} to track enumerable memberships\n     */\n    function _revokeRole(bytes32 role, address account) internal virtual override {\n        super._revokeRole(role, account);\n        _roleMembers[role].remove(account);\n    }\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/access/IAccessControl.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev External interface of AccessControl declared to support ERC165 detection.\n */\ninterface IAccessControl {\n    /**\n     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\n     *\n     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\n     * {RoleAdminChanged} not being emitted signaling this.\n     *\n     * _Available since v3.1._\n     */\n    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\n\n    /**\n     * @dev Emitted when `account` is granted `role`.\n     *\n     * `sender` is the account that originated the contract call, an admin role\n     * bearer except when using {AccessControl-_setupRole}.\n     */\n    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Emitted when `account` is revoked `role`.\n     *\n     * `sender` is the account that originated the contract call:\n     *   - if using `revokeRole`, it is the admin role bearer\n     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)\n     */\n    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\n\n    /**\n     * @dev Returns `true` if `account` has been granted `role`.\n     */\n    function hasRole(bytes32 role, address account) external view returns (bool);\n\n    /**\n     * @dev Returns the admin role that controls `role`. See {grantRole} and\n     * {revokeRole}.\n     *\n     * To change a role's admin, use {AccessControl-_setRoleAdmin}.\n     */\n    function getRoleAdmin(bytes32 role) external view returns (bytes32);\n\n    /**\n     * @dev Grants `role` to `account`.\n     *\n     * If `account` had not been already granted `role`, emits a {RoleGranted}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function grantRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from `account`.\n     *\n     * If `account` had been granted `role`, emits a {RoleRevoked} event.\n     *\n     * Requirements:\n     *\n     * - the caller must have ``role``'s admin role.\n     */\n    function revokeRole(bytes32 role, address account) external;\n\n    /**\n     * @dev Revokes `role` from the calling account.\n     *\n     * Roles are often managed via {grantRole} and {revokeRole}: this function's\n     * purpose is to provide a mechanism for accounts to lose their privileges\n     * if they are compromised (such as when a trusted device is misplaced).\n     *\n     * If the calling account had been granted `role`, emits a {RoleRevoked}\n     * event.\n     *\n     * Requirements:\n     *\n     * - the caller must be `account`.\n     */\n    function renounceRole(bytes32 role, address account) external;\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/access/IAccessControlEnumerable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IAccessControl.sol\";\n\n/**\n * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.\n */\ninterface IAccessControlEnumerable is IAccessControl {\n    /**\n     * @dev Returns one of the accounts that have `role`. `index` must be a\n     * value between 0 and {getRoleMemberCount}, non-inclusive.\n     *\n     * Role bearers are not sorted in any particular way, and their ordering may\n     * change at any point.\n     *\n     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\n     * you perform all queries on the same block. See the following\n     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\n     * for more information.\n     */\n    function getRoleMember(bytes32 role, uint256 index) external view returns (address);\n\n    /**\n     * @dev Returns the number of accounts that have `role`. Can be used\n     * together with {getRoleMember} to enumerate all bearers of a role.\n     */\n    function getRoleMemberCount(bytes32 role) external view returns (uint256);\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/token/ERC1155/IERC1155Receiver.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)\n\npragma solidity ^0.8.0;\n\nimport \"../../utils/introspection/IERC165.sol\";\n\n/**\n * @dev _Available since v3.1._\n */\ninterface IERC1155Receiver is IERC165 {\n    /**\n     * @dev Handles the receipt of a single ERC1155 token type. This function is\n     * called at the end of a `safeTransferFrom` after the balance has been updated.\n     *\n     * NOTE: To accept the transfer, this must return\n     * `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))`\n     * (i.e. 0xf23a6e61, or its own function selector).\n     *\n     * @param operator The address which initiated the transfer (i.e. msg.sender)\n     * @param from The address which previously owned the token\n     * @param id The ID of the token being transferred\n     * @param value The amount of tokens being transferred\n     * @param data Additional data with no specified format\n     * @return `bytes4(keccak256(\"onERC1155Received(address,address,uint256,uint256,bytes)\"))` if transfer is allowed\n     */\n    function onERC1155Received(\n        address operator,\n        address from,\n        uint256 id,\n        uint256 value,\n        bytes calldata data\n    ) external returns (bytes4);\n\n    /**\n     * @dev Handles the receipt of a multiple ERC1155 token types. This function\n     * is called at the end of a `safeBatchTransferFrom` after the balances have\n     * been updated.\n     *\n     * NOTE: To accept the transfer(s), this must return\n     * `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))`\n     * (i.e. 0xbc197c81, or its own function selector).\n     *\n     * @param operator The address which initiated the batch transfer (i.e. msg.sender)\n     * @param from The address which previously owned the token\n     * @param ids An array containing ids of each token being transferred (order and length must match values array)\n     * @param values An array containing amounts of each token being transferred (order and length must match ids array)\n     * @param data Additional data with no specified format\n     * @return `bytes4(keccak256(\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\"))` if transfer is allowed\n     */\n    function onERC1155BatchReceived(\n        address operator,\n        address from,\n        uint256[] calldata ids,\n        uint256[] calldata values,\n        bytes calldata data\n    ) external returns (bytes4);\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/token/ERC721/IERC721Receiver.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @title ERC721 token receiver interface\n * @dev Interface for any contract that wants to support safeTransfers\n * from ERC721 asset contracts.\n */\ninterface IERC721Receiver {\n    /**\n     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}\n     * by `operator` from `from`, this function is called.\n     *\n     * It must return its Solidity selector to confirm the token transfer.\n     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.\n     *\n     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.\n     */\n    function onERC721Received(\n        address operator,\n        address from,\n        uint256 tokenId,\n        bytes calldata data\n    ) external returns (bytes4);\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/utils/Address.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\n\npragma solidity ^0.8.1;\n\n/**\n * @dev Collection of functions related to the address type\n */\nlibrary Address {\n    /**\n     * @dev Returns true if `account` is a contract.\n     *\n     * [IMPORTANT]\n     * ====\n     * It is unsafe to assume that an address for which this function returns\n     * false is an externally-owned account (EOA) and not a contract.\n     *\n     * Among others, `isContract` will return false for the following\n     * types of addresses:\n     *\n     *  - an externally-owned account\n     *  - a contract in construction\n     *  - an address where a contract will be created\n     *  - an address where a contract lived, but was destroyed\n     *\n     * Furthermore, `isContract` will also return true if the target contract within\n     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\n     * which only has an effect at the end of a transaction.\n     * ====\n     *\n     * [IMPORTANT]\n     * ====\n     * You shouldn't rely on `isContract` to protect against flash loan attacks!\n     *\n     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\n     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\n     * constructor.\n     * ====\n     */\n    function isContract(address account) internal view returns (bool) {\n        // This method relies on extcodesize/address.code.length, which returns 0\n        // for contracts in construction, since the code is only stored at the end\n        // of the constructor execution.\n\n        return account.code.length > 0;\n    }\n\n    /**\n     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\n     * `recipient`, forwarding all available gas and reverting on errors.\n     *\n     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\n     * of certain opcodes, possibly making contracts go over the 2300 gas limit\n     * imposed by `transfer`, making them unable to receive funds via\n     * `transfer`. {sendValue} removes this limitation.\n     *\n     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\n     *\n     * IMPORTANT: because control is transferred to `recipient`, care must be\n     * taken to not create reentrancy vulnerabilities. Consider using\n     * {ReentrancyGuard} or the\n     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\n     */\n    function sendValue(address payable recipient, uint256 amount) internal {\n        require(address(this).balance >= amount, \"Address: insufficient balance\");\n\n        (bool success, ) = recipient.call{value: amount}(\"\");\n        require(success, \"Address: unable to send value, recipient may have reverted\");\n    }\n\n    /**\n     * @dev Performs a Solidity function call using a low level `call`. A\n     * plain `call` is an unsafe replacement for a function call: use this\n     * function instead.\n     *\n     * If `target` reverts with a revert reason, it is bubbled up by this\n     * function (like regular Solidity function calls).\n     *\n     * Returns the raw returned data. To convert to the expected return value,\n     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\n     *\n     * Requirements:\n     *\n     * - `target` must be a contract.\n     * - calling `target` with `data` must not revert.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, \"Address: low-level call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\n     * `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, 0, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but also transferring `value` wei to `target`.\n     *\n     * Requirements:\n     *\n     * - the calling contract must have an ETH balance of at least `value`.\n     * - the called Solidity function must be `payable`.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\n        return functionCallWithValue(target, data, value, \"Address: low-level call with value failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\n     * with `errorMessage` as a fallback revert reason when `target` reverts.\n     *\n     * _Available since v3.1._\n     */\n    function functionCallWithValue(\n        address target,\n        bytes memory data,\n        uint256 value,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        require(address(this).balance >= value, \"Address: insufficient balance for call\");\n        (bool success, bytes memory returndata) = target.call{value: value}(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\n        return functionStaticCall(target, data, \"Address: low-level static call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a static call.\n     *\n     * _Available since v3.3._\n     */\n    function functionStaticCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.staticcall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\n        return functionDelegateCall(target, data, \"Address: low-level delegate call failed\");\n    }\n\n    /**\n     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\n     * but performing a delegate call.\n     *\n     * _Available since v3.4._\n     */\n    function functionDelegateCall(\n        address target,\n        bytes memory data,\n        string memory errorMessage\n    ) internal returns (bytes memory) {\n        (bool success, bytes memory returndata) = target.delegatecall(data);\n        return verifyCallResultFromTarget(target, success, returndata, errorMessage);\n    }\n\n    /**\n     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\n     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\n     *\n     * _Available since v4.8._\n     */\n    function verifyCallResultFromTarget(\n        address target,\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal view returns (bytes memory) {\n        if (success) {\n            if (returndata.length == 0) {\n                // only check isContract if the call was successful and the return data is empty\n                // otherwise we already know that it was a contract\n                require(isContract(target), \"Address: call to non-contract\");\n            }\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    /**\n     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\n     * revert reason or using the provided one.\n     *\n     * _Available since v4.3._\n     */\n    function verifyCallResult(\n        bool success,\n        bytes memory returndata,\n        string memory errorMessage\n    ) internal pure returns (bytes memory) {\n        if (success) {\n            return returndata;\n        } else {\n            _revert(returndata, errorMessage);\n        }\n    }\n\n    function _revert(bytes memory returndata, string memory errorMessage) private pure {\n        // Look for revert reason and bubble it up if present\n        if (returndata.length > 0) {\n            // The easiest way to bubble the revert reason is using memory via assembly\n            /// @solidity memory-safe-assembly\n            assembly {\n                let returndata_size := mload(returndata)\n                revert(add(32, returndata), returndata_size)\n            }\n        } else {\n            revert(errorMessage);\n        }\n    }\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/utils/Context.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/utils/Strings.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./math/Math.sol\";\nimport \"./math/SignedMath.sol\";\n\n/**\n * @dev String operations.\n */\nlibrary Strings {\n    bytes16 private constant _SYMBOLS = \"0123456789abcdef\";\n    uint8 private constant _ADDRESS_LENGTH = 20;\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` decimal representation.\n     */\n    function toString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            uint256 length = Math.log10(value) + 1;\n            string memory buffer = new string(length);\n            uint256 ptr;\n            /// @solidity memory-safe-assembly\n            assembly {\n                ptr := add(buffer, add(32, length))\n            }\n            while (true) {\n                ptr--;\n                /// @solidity memory-safe-assembly\n                assembly {\n                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\n                }\n                value /= 10;\n                if (value == 0) break;\n            }\n            return buffer;\n        }\n    }\n\n    /**\n     * @dev Converts a `int256` to its ASCII `string` decimal representation.\n     */\n    function toString(int256 value) internal pure returns (string memory) {\n        return string(abi.encodePacked(value < 0 ? \"-\" : \"\", toString(SignedMath.abs(value))));\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\n     */\n    function toHexString(uint256 value) internal pure returns (string memory) {\n        unchecked {\n            return toHexString(value, Math.log256(value) + 1);\n        }\n    }\n\n    /**\n     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\n     */\n    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\n        bytes memory buffer = new bytes(2 * length + 2);\n        buffer[0] = \"0\";\n        buffer[1] = \"x\";\n        for (uint256 i = 2 * length + 1; i > 1; --i) {\n            buffer[i] = _SYMBOLS[value & 0xf];\n            value >>= 4;\n        }\n        require(value == 0, \"Strings: hex length insufficient\");\n        return string(buffer);\n    }\n\n    /**\n     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\n     */\n    function toHexString(address addr) internal pure returns (string memory) {\n        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\n    }\n\n    /**\n     * @dev Returns true if the two strings are equal.\n     */\n    function equal(string memory a, string memory b) internal pure returns (bool) {\n        return keccak256(bytes(a)) == keccak256(bytes(b));\n    }\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\n\npragma solidity ^0.8.0;\n\nimport \"./IERC165.sol\";\n\n/**\n * @dev Implementation of the {IERC165} interface.\n *\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\n * for the additional interface id that will be supported. For example:\n *\n * ```solidity\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\n * }\n * ```\n *\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\n */\nabstract contract ERC165 is IERC165 {\n    /**\n     * @dev See {IERC165-supportsInterface}.\n     */\n    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\n        return interfaceId == type(IERC165).interfaceId;\n    }\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Interface of the ERC165 standard, as defined in the\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\n *\n * Implementers can declare support of contract interfaces, which can then be\n * queried by others ({ERC165Checker}).\n *\n * For an implementation, see {ERC165}.\n */\ninterface IERC165 {\n    /**\n     * @dev Returns true if this contract implements the interface defined by\n     * `interfaceId`. See the corresponding\n     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\n     * to learn more about how these ids are created.\n     *\n     * This function call must use less than 30 000 gas.\n     */\n    function supportsInterface(bytes4 interfaceId) external view returns (bool);\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/utils/math/Math.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard math utilities missing in the Solidity language.\n */\nlibrary Math {\n    enum Rounding {\n        Down, // Toward negative infinity\n        Up, // Toward infinity\n        Zero // Toward zero\n    }\n\n    /**\n     * @dev Returns the largest of two numbers.\n     */\n    function max(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two numbers.\n     */\n    function min(uint256 a, uint256 b) internal pure returns (uint256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two numbers. The result is rounded towards\n     * zero.\n     */\n    function average(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b) / 2 can overflow.\n        return (a & b) + (a ^ b) / 2;\n    }\n\n    /**\n     * @dev Returns the ceiling of the division of two numbers.\n     *\n     * This differs from standard division with `/` in that it rounds up instead\n     * of rounding down.\n     */\n    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\n        // (a + b - 1) / b can overflow on addition, so we distribute.\n        return a == 0 ? 0 : (a - 1) / b + 1;\n    }\n\n    /**\n     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\n     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\n     * with further edits by Uniswap Labs also under MIT license.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\n        unchecked {\n            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\n            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\n            // variables such that product = prod1 * 2^256 + prod0.\n            uint256 prod0; // Least significant 256 bits of the product\n            uint256 prod1; // Most significant 256 bits of the product\n            assembly {\n                let mm := mulmod(x, y, not(0))\n                prod0 := mul(x, y)\n                prod1 := sub(sub(mm, prod0), lt(mm, prod0))\n            }\n\n            // Handle non-overflow cases, 256 by 256 division.\n            if (prod1 == 0) {\n                // Solidity will revert if denominator == 0, unlike the div opcode on its own.\n                // The surrounding unchecked block does not change this fact.\n                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.\n                return prod0 / denominator;\n            }\n\n            // Make sure the result is less than 2^256. Also prevents denominator == 0.\n            require(denominator > prod1, \"Math: mulDiv overflow\");\n\n            ///////////////////////////////////////////////\n            // 512 by 256 division.\n            ///////////////////////////////////////////////\n\n            // Make division exact by subtracting the remainder from [prod1 prod0].\n            uint256 remainder;\n            assembly {\n                // Compute remainder using mulmod.\n                remainder := mulmod(x, y, denominator)\n\n                // Subtract 256 bit number from 512 bit number.\n                prod1 := sub(prod1, gt(remainder, prod0))\n                prod0 := sub(prod0, remainder)\n            }\n\n            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\n            // See https://cs.stackexchange.com/q/138556/92363.\n\n            // Does not overflow because the denominator cannot be zero at this stage in the function.\n            uint256 twos = denominator & (~denominator + 1);\n            assembly {\n                // Divide denominator by twos.\n                denominator := div(denominator, twos)\n\n                // Divide [prod1 prod0] by twos.\n                prod0 := div(prod0, twos)\n\n                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\n                twos := add(div(sub(0, twos), twos), 1)\n            }\n\n            // Shift in bits from prod1 into prod0.\n            prod0 |= prod1 * twos;\n\n            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\n            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\n            // four bits. That is, denominator * inv = 1 mod 2^4.\n            uint256 inverse = (3 * denominator) ^ 2;\n\n            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\n            // in modular arithmetic, doubling the correct bits in each step.\n            inverse *= 2 - denominator * inverse; // inverse mod 2^8\n            inverse *= 2 - denominator * inverse; // inverse mod 2^16\n            inverse *= 2 - denominator * inverse; // inverse mod 2^32\n            inverse *= 2 - denominator * inverse; // inverse mod 2^64\n            inverse *= 2 - denominator * inverse; // inverse mod 2^128\n            inverse *= 2 - denominator * inverse; // inverse mod 2^256\n\n            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\n            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\n            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\n            // is no longer required.\n            result = prod0 * inverse;\n            return result;\n        }\n    }\n\n    /**\n     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\n     */\n    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\n        uint256 result = mulDiv(x, y, denominator);\n        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\n            result += 1;\n        }\n        return result;\n    }\n\n    /**\n     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\n     *\n     * Inspired by Henry S. Warren, Jr.'s \"Hacker's Delight\" (Chapter 11).\n     */\n    function sqrt(uint256 a) internal pure returns (uint256) {\n        if (a == 0) {\n            return 0;\n        }\n\n        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\n        //\n        // We know that the \"msb\" (most significant bit) of our target number `a` is a power of 2 such that we have\n        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\n        //\n        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\n        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\n        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\n        //\n        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\n        uint256 result = 1 << (log2(a) >> 1);\n\n        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\n        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\n        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\n        // into the expected uint128 result.\n        unchecked {\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            result = (result + a / result) >> 1;\n            return min(result, a / result);\n        }\n    }\n\n    /**\n     * @notice Calculates sqrt(a), following the selected rounding direction.\n     */\n    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = sqrt(a);\n            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 2, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 128;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 64;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 32;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 16;\n            }\n            if (value >> 8 > 0) {\n                value >>= 8;\n                result += 8;\n            }\n            if (value >> 4 > 0) {\n                value >>= 4;\n                result += 4;\n            }\n            if (value >> 2 > 0) {\n                value >>= 2;\n                result += 2;\n            }\n            if (value >> 1 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log2(value);\n            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 10, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >= 10 ** 64) {\n                value /= 10 ** 64;\n                result += 64;\n            }\n            if (value >= 10 ** 32) {\n                value /= 10 ** 32;\n                result += 32;\n            }\n            if (value >= 10 ** 16) {\n                value /= 10 ** 16;\n                result += 16;\n            }\n            if (value >= 10 ** 8) {\n                value /= 10 ** 8;\n                result += 8;\n            }\n            if (value >= 10 ** 4) {\n                value /= 10 ** 4;\n                result += 4;\n            }\n            if (value >= 10 ** 2) {\n                value /= 10 ** 2;\n                result += 2;\n            }\n            if (value >= 10 ** 1) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log10(value);\n            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\n        }\n    }\n\n    /**\n     * @dev Return the log in base 256, rounded down, of a positive value.\n     * Returns 0 if given 0.\n     *\n     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\n     */\n    function log256(uint256 value) internal pure returns (uint256) {\n        uint256 result = 0;\n        unchecked {\n            if (value >> 128 > 0) {\n                value >>= 128;\n                result += 16;\n            }\n            if (value >> 64 > 0) {\n                value >>= 64;\n                result += 8;\n            }\n            if (value >> 32 > 0) {\n                value >>= 32;\n                result += 4;\n            }\n            if (value >> 16 > 0) {\n                value >>= 16;\n                result += 2;\n            }\n            if (value >> 8 > 0) {\n                result += 1;\n            }\n        }\n        return result;\n    }\n\n    /**\n     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.\n     * Returns 0 if given 0.\n     */\n    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\n        unchecked {\n            uint256 result = log256(value);\n            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\n        }\n    }\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Standard signed math utilities missing in the Solidity language.\n */\nlibrary SignedMath {\n    /**\n     * @dev Returns the largest of two signed numbers.\n     */\n    function max(int256 a, int256 b) internal pure returns (int256) {\n        return a > b ? a : b;\n    }\n\n    /**\n     * @dev Returns the smallest of two signed numbers.\n     */\n    function min(int256 a, int256 b) internal pure returns (int256) {\n        return a < b ? a : b;\n    }\n\n    /**\n     * @dev Returns the average of two signed numbers without overflow.\n     * The result is rounded towards zero.\n     */\n    function average(int256 a, int256 b) internal pure returns (int256) {\n        // Formula from the book \"Hacker's Delight\"\n        int256 x = (a & b) + ((a ^ b) >> 1);\n        return x + (int256(uint256(x) >> 255) & (a ^ b));\n    }\n\n    /**\n     * @dev Returns the absolute unsigned value of a signed value.\n     */\n    function abs(int256 n) internal pure returns (uint256) {\n        unchecked {\n            // must be unchecked in order to support `n = type(int256).min`\n            return uint256(n >= 0 ? n : -n);\n        }\n    }\n}\n"},{"file_path":"foundry-lib/openzeppelin-contracts/contracts/utils/structs/EnumerableSet.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol)\n// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js.\n\npragma solidity ^0.8.0;\n\n/**\n * @dev Library for managing\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\n * types.\n *\n * Sets have the following properties:\n *\n * - Elements are added, removed, and checked for existence in constant time\n * (O(1)).\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\n *\n * ```solidity\n * contract Example {\n *     // Add the library methods\n *     using EnumerableSet for EnumerableSet.AddressSet;\n *\n *     // Declare a set state variable\n *     EnumerableSet.AddressSet private mySet;\n * }\n * ```\n *\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\n * and `uint256` (`UintSet`) are supported.\n *\n * [WARNING]\n * ====\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure\n * unusable.\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\n *\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an\n * array of EnumerableSet.\n * ====\n */\nlibrary EnumerableSet {\n    // To implement this library for multiple types with as little code\n    // repetition as possible, we write it in terms of a generic Set type with\n    // bytes32 values.\n    // The Set implementation uses private functions, and user-facing\n    // implementations (such as AddressSet) are just wrappers around the\n    // underlying Set.\n    // This means that we can only create new EnumerableSets for types that fit\n    // in bytes32.\n\n    struct Set {\n        // Storage of set values\n        bytes32[] _values;\n        // Position of the value in the `values` array, plus 1 because index 0\n        // means a value is not in the set.\n        mapping(bytes32 => uint256) _indexes;\n    }\n\n    /**\n     * @dev Add a value to a set. O(1).\n     *\n     * Returns true if the value was added to the set, that is if it was not\n     * already present.\n     */\n    function _add(Set storage set, bytes32 value) private returns (bool) {\n        if (!_contains(set, value)) {\n            set._values.push(value);\n            // The value is stored at length-1, but we add 1 to all indexes\n            // and use 0 as a sentinel value\n            set._indexes[value] = set._values.length;\n            return true;\n        } else {\n            return false;\n        }\n    }\n\n    /**\n     * @dev Removes a value from a set. O(1).\n     *\n     * Returns true if the value was removed from the set, that is if it was\n     * present.\n     */\n    function _remove(Set storage set, bytes32 value) private returns (bool) {\n        // We read and store the value's index to prevent multiple reads from the same storage slot\n        uint256 valueIndex = set._indexes[value];\n\n        if (valueIndex != 0) {\n            // Equivalent to contains(set, value)\n            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\n            // the array, and then remove the last element (sometimes called as 'swap and pop').\n            // This modifies the order of the array, as noted in {at}.\n\n            uint256 toDeleteIndex = valueIndex - 1;\n            uint256 lastIndex = set._values.length - 1;\n\n            if (lastIndex != toDeleteIndex) {\n                bytes32 lastValue = set._values[lastIndex];\n\n                // Move the last value to the index where the value to delete is\n                set._values[toDeleteIndex] = lastValue;\n                // Update the index for the moved value\n                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex\n            }\n\n            // Delete the slot where the moved value was stored\n            set._values.pop();\n\n            // Delete the index for the deleted slot\n            delete set._indexes[value];\n\n            return true;\n        } else {\n            return false;\n        }\n    }\n\n    /**\n     * @dev Returns true if the value is in the set. O(1).\n     */\n    function _contains(Set storage set, bytes32 value) private view returns (bool) {\n        return set._indexes[value] != 0;\n    }\n\n    /**\n     * @dev Returns the number of values on the set. O(1).\n     */\n    function _length(Set storage set) private view returns (uint256) {\n        return set._values.length;\n    }\n\n    /**\n     * @dev Returns the value stored at position `index` in the set. O(1).\n     *\n     * Note that there are no guarantees on the ordering of values inside the\n     * array, and it may change when more values are added or removed.\n     *\n     * Requirements:\n     *\n     * - `index` must be strictly less than {length}.\n     */\n    function _at(Set storage set, uint256 index) private view returns (bytes32) {\n        return set._values[index];\n    }\n\n    /**\n     * @dev Return the entire set in an array\n     *\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n     */\n    function _values(Set storage set) private view returns (bytes32[] memory) {\n        return set._values;\n    }\n\n    // Bytes32Set\n\n    struct Bytes32Set {\n        Set _inner;\n    }\n\n    /**\n     * @dev Add a value to a set. O(1).\n     *\n     * Returns true if the value was added to the set, that is if it was not\n     * already present.\n     */\n    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n        return _add(set._inner, value);\n    }\n\n    /**\n     * @dev Removes a value from a set. O(1).\n     *\n     * Returns true if the value was removed from the set, that is if it was\n     * present.\n     */\n    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\n        return _remove(set._inner, value);\n    }\n\n    /**\n     * @dev Returns true if the value is in the set. O(1).\n     */\n    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\n        return _contains(set._inner, value);\n    }\n\n    /**\n     * @dev Returns the number of values in the set. O(1).\n     */\n    function length(Bytes32Set storage set) internal view returns (uint256) {\n        return _length(set._inner);\n    }\n\n    /**\n     * @dev Returns the value stored at position `index` in the set. O(1).\n     *\n     * Note that there are no guarantees on the ordering of values inside the\n     * array, and it may change when more values are added or removed.\n     *\n     * Requirements:\n     *\n     * - `index` must be strictly less than {length}.\n     */\n    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\n        return _at(set._inner, index);\n    }\n\n    /**\n     * @dev Return the entire set in an array\n     *\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n     */\n    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\n        bytes32[] memory store = _values(set._inner);\n        bytes32[] memory result;\n\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := store\n        }\n\n        return result;\n    }\n\n    // AddressSet\n\n    struct AddressSet {\n        Set _inner;\n    }\n\n    /**\n     * @dev Add a value to a set. O(1).\n     *\n     * Returns true if the value was added to the set, that is if it was not\n     * already present.\n     */\n    function add(AddressSet storage set, address value) internal returns (bool) {\n        return _add(set._inner, bytes32(uint256(uint160(value))));\n    }\n\n    /**\n     * @dev Removes a value from a set. O(1).\n     *\n     * Returns true if the value was removed from the set, that is if it was\n     * present.\n     */\n    function remove(AddressSet storage set, address value) internal returns (bool) {\n        return _remove(set._inner, bytes32(uint256(uint160(value))));\n    }\n\n    /**\n     * @dev Returns true if the value is in the set. O(1).\n     */\n    function contains(AddressSet storage set, address value) internal view returns (bool) {\n        return _contains(set._inner, bytes32(uint256(uint160(value))));\n    }\n\n    /**\n     * @dev Returns the number of values in the set. O(1).\n     */\n    function length(AddressSet storage set) internal view returns (uint256) {\n        return _length(set._inner);\n    }\n\n    /**\n     * @dev Returns the value stored at position `index` in the set. O(1).\n     *\n     * Note that there are no guarantees on the ordering of values inside the\n     * array, and it may change when more values are added or removed.\n     *\n     * Requirements:\n     *\n     * - `index` must be strictly less than {length}.\n     */\n    function at(AddressSet storage set, uint256 index) internal view returns (address) {\n        return address(uint160(uint256(_at(set._inner, index))));\n    }\n\n    /**\n     * @dev Return the entire set in an array\n     *\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n     */\n    function values(AddressSet storage set) internal view returns (address[] memory) {\n        bytes32[] memory store = _values(set._inner);\n        address[] memory result;\n\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := store\n        }\n\n        return result;\n    }\n\n    // UintSet\n\n    struct UintSet {\n        Set _inner;\n    }\n\n    /**\n     * @dev Add a value to a set. O(1).\n     *\n     * Returns true if the value was added to the set, that is if it was not\n     * already present.\n     */\n    function add(UintSet storage set, uint256 value) internal returns (bool) {\n        return _add(set._inner, bytes32(value));\n    }\n\n    /**\n     * @dev Removes a value from a set. O(1).\n     *\n     * Returns true if the value was removed from the set, that is if it was\n     * present.\n     */\n    function remove(UintSet storage set, uint256 value) internal returns (bool) {\n        return _remove(set._inner, bytes32(value));\n    }\n\n    /**\n     * @dev Returns true if the value is in the set. O(1).\n     */\n    function contains(UintSet storage set, uint256 value) internal view returns (bool) {\n        return _contains(set._inner, bytes32(value));\n    }\n\n    /**\n     * @dev Returns the number of values in the set. O(1).\n     */\n    function length(UintSet storage set) internal view returns (uint256) {\n        return _length(set._inner);\n    }\n\n    /**\n     * @dev Returns the value stored at position `index` in the set. O(1).\n     *\n     * Note that there are no guarantees on the ordering of values inside the\n     * array, and it may change when more values are added or removed.\n     *\n     * Requirements:\n     *\n     * - `index` must be strictly less than {length}.\n     */\n    function at(UintSet storage set, uint256 index) internal view returns (uint256) {\n        return uint256(_at(set._inner, index));\n    }\n\n    /**\n     * @dev Return the entire set in an array\n     *\n     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\n     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\n     * this function has an unbounded cost, and using it as part of a state-changing function may render the function\n     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\n     */\n    function values(UintSet storage set) internal view returns (uint256[] memory) {\n        bytes32[] memory store = _values(set._inner);\n        uint256[] memory result;\n\n        /// @solidity memory-safe-assembly\n        assembly {\n            result := store\n        }\n\n        return result;\n    }\n}\n"},{"file_path":"test/v0.8/foundry/dev/special/MockLinkToken.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\ncontract MockLinkToken {\n  uint256 public constant totalSupply = 10 ** 27;\n\n  mapping(address => uint256) public balances;\n\n  constructor() {\n    balances[msg.sender] = totalSupply;\n  }\n\n  /**\n   * @dev transfer token for a specified address\n   * @param _to The address to transfer to.\n   * @param _value The amount to be transferred.\n   */\n  function transfer(address _to, uint256 _value) public returns (bool) {\n    balances[msg.sender] = balances[msg.sender] - _value;\n    balances[_to] = balances[_to] + _value;\n    return true;\n  }\n\n  function transferAndCall(\n    address _to,\n    uint256 _value,\n    bytes calldata _data\n  ) public validRecipient(_to) returns (bool success) {\n    transfer(_to, _value);\n    if (isContract(_to)) {\n      contractFallback(_to, _value, _data);\n    }\n    return true;\n  }\n\n  function balanceOf(address _a) public view returns (uint256 balance) {\n    return balances[_a];\n  }\n\n  modifier validRecipient(address _recipient) {\n    require(_recipient != address(0) && _recipient != address(this));\n    _;\n  }\n\n  function contractFallback(address _to, uint256 _value, bytes calldata _data) private {\n    ERC677Receiver receiver = ERC677Receiver(_to);\n    receiver.onTokenTransfer(msg.sender, _value, _data);\n  }\n\n  function isContract(address _addr) private returns (bool hasCode) {\n    uint256 length;\n    assembly {\n      length := extcodesize(_addr)\n    }\n    return length > 0;\n  }\n}\n\ninterface ERC677Receiver {\n  function onTokenTransfer(address _sender, uint256 _value, bytes calldata _data) external;\n}\n"}],"certified":false,"conflicting_implementations":null,"abi":[{"inputs":[{"internalType":"uint256","name":"minDelay","type":"uint256"},{"internalType":"address","name":"admin","type":"address"},{"internalType":"address[]","name":"proposers","type":"address[]"},{"internalType":"address[]","name":"executors","type":"address[]"},{"internalType":"address[]","name":"cancellers","type":"address[]"},{"internalType":"address[]","name":"bypassers","type":"address[]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"BypasserCallExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"}],"name":"CallExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"data","type":"bytes"},{"indexed":false,"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"salt","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"delay","type":"uint256"}],"name":"CallScheduled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"Cancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"FunctionSelectorBlocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"FunctionSelectorUnblocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDuration","type":"uint256"}],"name":"MinDelayChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BYPASSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"CANCELLER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"EXECUTOR_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PROPOSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"blockFunctionSelector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct RBACTimelock.Call[]","name":"calls","type":"tuple[]"}],"name":"bypasserExecuteBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"cancel","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct RBACTimelock.Call[]","name":"calls","type":"tuple[]"},{"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"executeBatch","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getBlockedFunctionSelectorAt","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBlockedFunctionSelectorCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMinDelay","outputs":[{"internalType":"uint256","name":"duration","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"getTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct RBACTimelock.Call[]","name":"calls","type":"tuple[]"},{"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"hashOperationBatch","outputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"isOperation","outputs":[{"internalType":"bool","name":"registered","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"isOperationDone","outputs":[{"internalType":"bool","name":"done","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"isOperationPending","outputs":[{"internalType":"bool","name":"pending","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"id","type":"bytes32"}],"name":"isOperationReady","outputs":[{"internalType":"bool","name":"ready","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155BatchReceived","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC1155Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct RBACTimelock.Call[]","name":"calls","type":"tuple[]"},{"internalType":"bytes32","name":"predecessor","type":"bytes32"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256","name":"delay","type":"uint256"}],"name":"scheduleBatch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"selector","type":"bytes4"}],"name":"unblockFunctionSelector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newDelay","type":"uint256"}],"name":"updateDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}],"is_changed_bytecode":false,"is_partially_verified":true,"constructor_args":"0000000000000000000000000000000000000000000000000000000000002a3000000000000000000000000068ad36ad55bc29ee5a4c4781d9640dd47c8675bc00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000009c65f4bf2da23892345505eb92823e0ec30018a6000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000006ef6b1049d93e5e7c0f8cf63d3a76bdc754a637f0000000000000000000000008d9001df517fd5f88d8bbb8efed5b08de174386e0000000000000000000000009c65f4bf2da23892345505eb92823e0ec30018a6000000000000000000000000aa2b6500981c8a05b7a391c526ff0dd77ab8748f00000000000000000000000000000000000000000000000000000000000000010000000000000000000000008d9001df517fd5f88d8bbb8efed5b08de174386e"}