Skip to content

Commit

Permalink
chore: new fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonCase committed Sep 8, 2024
1 parent 6a1f729 commit fa306d0
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ contract EtherFiLiquidDecoderAndSanitizer is
* @notice BalancerV2, NativeWrapper, Curve, and Gearbox all specify a `withdraw(uint256)`,
* all cases are handled the same way.
*/
function withdraw(
uint256
)
function withdraw(uint256)
external
pure
override(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ contract EtherFiLiquidEthDecoderAndSanitizer is
* @notice BalancerV2, NativeWrapper, Curve, and Gearbox all specify a `withdraw(uint256)`,
* all cases are handled the same way.
*/
function withdraw(
uint256
)
function withdraw(uint256)
external
pure
override(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ contract EtherFiLiquidUsdDecoderAndSanitizer is
* @notice BalancerV2, NativeWrapper, Curve, and Gearbox all specify a `withdraw(uint256)`,
* all cases are handled the same way.
*/
function withdraw(
uint256
)
function withdraw(uint256)
external
pure
override(
Expand Down Expand Up @@ -116,9 +114,7 @@ contract EtherFiLiquidUsdDecoderAndSanitizer is
* @notice EtherFi, and Lido all specify a `wrap(uint256)`,
* all cases are handled the same way.
*/
function wrap(
uint256
)
function wrap(uint256)
external
pure
override(EtherFiDecoderAndSanitizer, LidoDecoderAndSanitizer)
Expand All @@ -132,9 +128,7 @@ contract EtherFiLiquidUsdDecoderAndSanitizer is
* @notice EtherFi, and Lido all specify a `unwrap(uint256)`,
* all cases are handled the same way.
*/
function unwrap(
uint256
)
function unwrap(uint256)
external
pure
override(EtherFiDecoderAndSanitizer, LidoDecoderAndSanitizer)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ contract LidoLiquidDecoderAndSanitizer is
* @notice BalancerV2, NativeWrapper, Curve, and Gearbox all specify a `withdraw(uint256)`,
* all cases are handled the same way.
*/
function withdraw(
uint256
)
function withdraw(uint256)
external
pure
override(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ abstract contract EigenLayerLSTStakingDecoderAndSanitizer is BaseDecoderAndSanit
addressesFound = abi.encodePacked(strategy, token);
}

function queueWithdrawals(
DecoderCustomTypes.QueuedWithdrawalParams[] calldata queuedWithdrawalParams
)
function queueWithdrawals(DecoderCustomTypes.QueuedWithdrawalParams[] calldata queuedWithdrawalParams)
external
pure
virtual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ abstract contract UniswapV3DecoderAndSanitizer is BaseDecoderAndSanitizer {

//============================== UNISWAP V3 ===============================

function exactInput(
DecoderCustomTypes.ExactInputParams calldata params
)
function exactInput(DecoderCustomTypes.ExactInputParams calldata params)
external
pure
virtual
Expand All @@ -46,9 +44,7 @@ abstract contract UniswapV3DecoderAndSanitizer is BaseDecoderAndSanitizer {
addressesFound = abi.encodePacked(addressesFound, params.recipient);
}

function mint(
DecoderCustomTypes.MintParams calldata params
)
function mint(DecoderCustomTypes.MintParams calldata params)
external
pure
virtual
Expand All @@ -59,9 +55,7 @@ abstract contract UniswapV3DecoderAndSanitizer is BaseDecoderAndSanitizer {
addressesFound = abi.encodePacked(params.token0, params.token1, params.recipient);
}

function increaseLiquidity(
DecoderCustomTypes.IncreaseLiquidityParams calldata params
)
function increaseLiquidity(DecoderCustomTypes.IncreaseLiquidityParams calldata params)
external
view
virtual
Expand All @@ -77,9 +71,7 @@ abstract contract UniswapV3DecoderAndSanitizer is BaseDecoderAndSanitizer {
addressesFound = abi.encodePacked(operator, token0, token1);
}

function decreaseLiquidity(
DecoderCustomTypes.DecreaseLiquidityParams calldata params
)
function decreaseLiquidity(DecoderCustomTypes.DecreaseLiquidityParams calldata params)
external
view
virtual
Expand All @@ -96,9 +88,7 @@ abstract contract UniswapV3DecoderAndSanitizer is BaseDecoderAndSanitizer {
return addressesFound;
}

function collect(
DecoderCustomTypes.CollectParams calldata params
)
function collect(DecoderCustomTypes.CollectParams calldata params)
external
view
virtual
Expand Down
4 changes: 1 addition & 3 deletions src/interfaces/EtherFiLiquid1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ interface EtherFiLiquid1 {
function addPosition(uint32 index, uint32 positionId, bytes memory configurationData, bool inDebtArray) external;
function addPositionToCatalogue(uint32 positionId) external;
function allowance(address, address) external view returns (uint256);
function alternativeAssetData(
address
)
function alternativeAssetData(address)
external
view
returns (bool isSupported, uint32 holdingPosition, uint32 depositFee);
Expand Down
4 changes: 1 addition & 3 deletions src/interfaces/IStaking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ interface IUNSTETH {
bool isClaimed;
}

function getWithdrawalStatus(
uint256[] calldata _requestIds
)
function getWithdrawalStatus(uint256[] calldata _requestIds)
external
view
returns (WithdrawalRequestStatus[] memory statuses);
Expand Down
4 changes: 1 addition & 3 deletions src/interfaces/RawDataDecoderAndSanitizerInterfaces.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ interface INonFungiblePositionManager {
}

function ownerOf(uint256 tokenId) external view returns (address);
function positions(
uint256 tokenId
)
function positions(uint256 tokenId)
external
view
returns (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import { UlnOptions } from "@layerzerolabs/lz-evm-messagelib-v2/contracts/uln/li
contract UlnOptionsMock {
using UlnOptions for bytes;

function decode(
bytes calldata _options
)
function decode(bytes calldata _options)
public
pure
returns (bytes memory executorOptions, bytes memory dvnOptions)
Expand All @@ -33,9 +31,7 @@ contract OptionsHelper {
(gas, value) = this.decodeLzReceiveOption(option);
}

function _parseExecutorNativeDropOption(
bytes memory _options
)
function _parseExecutorNativeDropOption(bytes memory _options)
internal
view
returns (uint256 amount, bytes32 receiver)
Expand All @@ -46,9 +42,7 @@ contract OptionsHelper {
(amount, receiver) = this.decodeNativeDropOption(option);
}

function _parseExecutorLzComposeOption(
bytes memory _options
)
function _parseExecutorLzComposeOption(bytes memory _options)
internal
view
returns (uint16 index, uint256 gas, uint256 value)
Expand Down Expand Up @@ -109,9 +103,7 @@ contract OptionsHelper {
return ExecutorOptions.decodeNativeDropOption(_option);
}

function decodeLzComposeOption(
bytes calldata _option
)
function decodeLzComposeOption(bytes calldata _option)
external
pure
returns (uint16 index, uint128 gas, uint128 value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,7 @@ contract SendUln302Mock is SendUlnBase, SendLibBaseE2 {
(otherWorkerFees, encodedPacket) = _payDVNs(fees, _packet, _options);
}

function _splitOptions(
bytes calldata _options
)
function _splitOptions(bytes calldata _options)
internal
pure
override
Expand Down

0 comments on commit fa306d0

Please sign in to comment.