lib_sol8->lib_uniswap
This commit is contained in:
16
lib_uniswap/v3-periphery/contracts/interfaces/external/IERC1271.sol
vendored
Normal file
16
lib_uniswap/v3-periphery/contracts/interfaces/external/IERC1271.sol
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/// @title Interface for verifying contract-based account signatures
|
||||
/// @notice Interface that verifies provided signature for the data
|
||||
/// @dev Interface defined by EIP-1271
|
||||
interface IERC1271 {
|
||||
/// @notice Returns whether the provided signature is valid for the provided data
|
||||
/// @dev MUST return the bytes4 magic value 0x1626ba7e when function passes.
|
||||
/// MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > 0.5).
|
||||
/// MUST allow external calls.
|
||||
/// @param hash Hash of the data to be signed
|
||||
/// @param signature Signature byte array associated with _data
|
||||
/// @return magicValue The bytes4 magic value 0x1626ba7e
|
||||
function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
|
||||
}
|
||||
27
lib_uniswap/v3-periphery/contracts/interfaces/external/IERC20PermitAllowed.sol
vendored
Normal file
27
lib_uniswap/v3-periphery/contracts/interfaces/external/IERC20PermitAllowed.sol
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
pragma solidity >=0.5.0;
|
||||
|
||||
/// @title Interface for permit
|
||||
/// @notice Interface used by DAI/CHAI for permit
|
||||
interface IERC20PermitAllowed {
|
||||
/// @notice Approve the spender to spend some tokens via the holder signature
|
||||
/// @dev This is the permit interface used by DAI and CHAI
|
||||
/// @param holder The address of the token holder, the token owner
|
||||
/// @param spender The address of the token spender
|
||||
/// @param nonce The holder's nonce, increases at each call to permit
|
||||
/// @param expiry The timestamp at which the permit is no longer valid
|
||||
/// @param allowed Boolean that sets approval amount, true for type(uint256).max and false for 0
|
||||
/// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s`
|
||||
/// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s`
|
||||
/// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v`
|
||||
function permit(
|
||||
address holder,
|
||||
address spender,
|
||||
uint256 nonce,
|
||||
uint256 expiry,
|
||||
bool allowed,
|
||||
uint8 v,
|
||||
bytes32 r,
|
||||
bytes32 s
|
||||
) external;
|
||||
}
|
||||
14
lib_uniswap/v3-periphery/contracts/interfaces/external/IWETH9.sol
vendored
Normal file
14
lib_uniswap/v3-periphery/contracts/interfaces/external/IWETH9.sol
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// pragma solidity =0.7.6;
|
||||
pragma solidity >=0.8.0;
|
||||
|
||||
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
|
||||
|
||||
/// @title Interface for WETH9
|
||||
interface IWETH9 is IERC20 {
|
||||
/// @notice Deposit ether to get wrapped ether
|
||||
function deposit() external payable;
|
||||
|
||||
/// @notice Withdraw wrapped ether to get ether
|
||||
function withdraw(uint256) external;
|
||||
}
|
||||
Reference in New Issue
Block a user