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);
|
||||
}
|
||||
11
lib_openzeppelin_contracts/contracts/vendor/compound/LICENSE
vendored
Normal file
11
lib_openzeppelin_contracts/contracts/vendor/compound/LICENSE
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
Copyright 2020 Compound Labs, Inc.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
Reference in New Issue
Block a user