Update Prettier Solidity (#3898)
This commit is contained in:
@ -38,11 +38,7 @@ interface IERC1363 is IERC165, IERC20 {
|
||||
* @param data bytes Additional data with no specified format, sent in call to `to`
|
||||
* @return true unless throwing
|
||||
*/
|
||||
function transferAndCall(
|
||||
address to,
|
||||
uint256 value,
|
||||
bytes memory data
|
||||
) external returns (bool);
|
||||
function transferAndCall(address to, uint256 value, bytes memory data) external returns (bool);
|
||||
|
||||
/**
|
||||
* @dev Transfer tokens from one address to another and then call `onTransferReceived` on receiver
|
||||
@ -51,11 +47,7 @@ interface IERC1363 is IERC165, IERC20 {
|
||||
* @param value uint256 The amount of tokens to be transferred
|
||||
* @return true unless throwing
|
||||
*/
|
||||
function transferFromAndCall(
|
||||
address from,
|
||||
address to,
|
||||
uint256 value
|
||||
) external returns (bool);
|
||||
function transferFromAndCall(address from, address to, uint256 value) external returns (bool);
|
||||
|
||||
/**
|
||||
* @dev Transfer tokens from one address to another and then call `onTransferReceived` on receiver
|
||||
@ -65,12 +57,7 @@ interface IERC1363 is IERC165, IERC20 {
|
||||
* @param data bytes Additional data with no specified format, sent in call to `to`
|
||||
* @return true unless throwing
|
||||
*/
|
||||
function transferFromAndCall(
|
||||
address from,
|
||||
address to,
|
||||
uint256 value,
|
||||
bytes memory data
|
||||
) external returns (bool);
|
||||
function transferFromAndCall(address from, address to, uint256 value, bytes memory data) external returns (bool);
|
||||
|
||||
/**
|
||||
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
|
||||
@ -87,9 +74,5 @@ interface IERC1363 is IERC165, IERC20 {
|
||||
* @param value uint256 The amount of tokens to be spent
|
||||
* @param data bytes Additional data with no specified format, sent in call to `spender`
|
||||
*/
|
||||
function approveAndCall(
|
||||
address spender,
|
||||
uint256 value,
|
||||
bytes memory data
|
||||
) external returns (bool);
|
||||
function approveAndCall(address spender, uint256 value, bytes memory data) external returns (bool);
|
||||
}
|
||||
|
||||
@ -22,9 +22,5 @@ interface IERC1363Spender {
|
||||
* @return `bytes4(keccak256("onApprovalReceived(address,uint256,bytes)"))`
|
||||
* unless throwing
|
||||
*/
|
||||
function onApprovalReceived(
|
||||
address owner,
|
||||
uint256 value,
|
||||
bytes memory data
|
||||
) external returns (bytes4);
|
||||
function onApprovalReceived(address owner, uint256 value, bytes memory data) external returns (bytes4);
|
||||
}
|
||||
|
||||
@ -18,8 +18,8 @@ interface IERC2981 is IERC165 {
|
||||
* @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
|
||||
* exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
|
||||
*/
|
||||
function royaltyInfo(uint256 tokenId, uint256 salePrice)
|
||||
external
|
||||
view
|
||||
returns (address receiver, uint256 royaltyAmount);
|
||||
function royaltyInfo(
|
||||
uint256 tokenId,
|
||||
uint256 salePrice
|
||||
) external view returns (address receiver, uint256 royaltyAmount);
|
||||
}
|
||||
|
||||
@ -187,11 +187,7 @@ interface IERC4626 is IERC20, IERC20Metadata {
|
||||
* Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
|
||||
* Those methods should be performed separately.
|
||||
*/
|
||||
function withdraw(
|
||||
uint256 assets,
|
||||
address receiver,
|
||||
address owner
|
||||
) external returns (uint256 shares);
|
||||
function withdraw(uint256 assets, address receiver, address owner) external returns (uint256 shares);
|
||||
|
||||
/**
|
||||
* @dev Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault,
|
||||
@ -232,9 +228,5 @@ interface IERC4626 is IERC20, IERC20Metadata {
|
||||
* NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
|
||||
* Those methods should be performed separately.
|
||||
*/
|
||||
function redeem(
|
||||
uint256 shares,
|
||||
address receiver,
|
||||
address owner
|
||||
) external returns (uint256 assets);
|
||||
function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user