dexorder
This commit is contained in:
86
lib_openzeppelin_contracts/contracts/vendor/compound/ICompoundTimelock.sol
vendored
Normal file
86
lib_openzeppelin_contracts/contracts/vendor/compound/ICompoundTimelock.sol
vendored
Normal file
@@ -0,0 +1,86 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v5.0.0) (vendor/compound/ICompoundTimelock.sol)
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
|
||||
/**
|
||||
* https://github.com/compound-finance/compound-protocol/blob/master/contracts/Timelock.sol[Compound timelock] interface
|
||||
*/
|
||||
interface ICompoundTimelock {
|
||||
event NewAdmin(address indexed newAdmin);
|
||||
event NewPendingAdmin(address indexed newPendingAdmin);
|
||||
event NewDelay(uint256 indexed newDelay);
|
||||
event CancelTransaction(
|
||||
bytes32 indexed txHash,
|
||||
address indexed target,
|
||||
uint256 value,
|
||||
string signature,
|
||||
bytes data,
|
||||
uint256 eta
|
||||
);
|
||||
event ExecuteTransaction(
|
||||
bytes32 indexed txHash,
|
||||
address indexed target,
|
||||
uint256 value,
|
||||
string signature,
|
||||
bytes data,
|
||||
uint256 eta
|
||||
);
|
||||
event QueueTransaction(
|
||||
bytes32 indexed txHash,
|
||||
address indexed target,
|
||||
uint256 value,
|
||||
string signature,
|
||||
bytes data,
|
||||
uint256 eta
|
||||
);
|
||||
|
||||
receive() external payable;
|
||||
|
||||
// solhint-disable-next-line func-name-mixedcase
|
||||
function GRACE_PERIOD() external view returns (uint256);
|
||||
|
||||
// solhint-disable-next-line func-name-mixedcase
|
||||
function MINIMUM_DELAY() external view returns (uint256);
|
||||
|
||||
// solhint-disable-next-line func-name-mixedcase
|
||||
function MAXIMUM_DELAY() external view returns (uint256);
|
||||
|
||||
function admin() external view returns (address);
|
||||
|
||||
function pendingAdmin() external view returns (address);
|
||||
|
||||
function delay() external view returns (uint256);
|
||||
|
||||
function queuedTransactions(bytes32) external view returns (bool);
|
||||
|
||||
function setDelay(uint256) external;
|
||||
|
||||
function acceptAdmin() external;
|
||||
|
||||
function setPendingAdmin(address) external;
|
||||
|
||||
function queueTransaction(
|
||||
address target,
|
||||
uint256 value,
|
||||
string memory signature,
|
||||
bytes memory data,
|
||||
uint256 eta
|
||||
) external returns (bytes32);
|
||||
|
||||
function cancelTransaction(
|
||||
address target,
|
||||
uint256 value,
|
||||
string memory signature,
|
||||
bytes memory data,
|
||||
uint256 eta
|
||||
) external;
|
||||
|
||||
function executeTransaction(
|
||||
address target,
|
||||
uint256 value,
|
||||
string memory signature,
|
||||
bytes memory data,
|
||||
uint256 eta
|
||||
) external payable returns (bytes memory);
|
||||
}
|
||||
Reference in New Issue
Block a user