diff --git a/src/base/DecodersAndSanitizers/EtherFiLiquidDecoderAndSanitizer.sol b/src/base/DecodersAndSanitizers/EtherFiLiquidDecoderAndSanitizer.sol index a34cdb8..b496764 100644 --- a/src/base/DecodersAndSanitizers/EtherFiLiquidDecoderAndSanitizer.sol +++ b/src/base/DecodersAndSanitizers/EtherFiLiquidDecoderAndSanitizer.sol @@ -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( diff --git a/src/base/DecodersAndSanitizers/EtherFiLiquidEthDecoderAndSanitizer.sol b/src/base/DecodersAndSanitizers/EtherFiLiquidEthDecoderAndSanitizer.sol index 18e52ca..5fe07a7 100644 --- a/src/base/DecodersAndSanitizers/EtherFiLiquidEthDecoderAndSanitizer.sol +++ b/src/base/DecodersAndSanitizers/EtherFiLiquidEthDecoderAndSanitizer.sol @@ -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( diff --git a/src/base/DecodersAndSanitizers/EtherFiLiquidUsdDecoderAndSanitizer.sol b/src/base/DecodersAndSanitizers/EtherFiLiquidUsdDecoderAndSanitizer.sol index cbbdcef..675aa2e 100644 --- a/src/base/DecodersAndSanitizers/EtherFiLiquidUsdDecoderAndSanitizer.sol +++ b/src/base/DecodersAndSanitizers/EtherFiLiquidUsdDecoderAndSanitizer.sol @@ -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( @@ -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) @@ -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) diff --git a/src/base/DecodersAndSanitizers/LidoLiquidDecoderAndSanitizer.sol b/src/base/DecodersAndSanitizers/LidoLiquidDecoderAndSanitizer.sol index 0be64ca..3efcb16 100644 --- a/src/base/DecodersAndSanitizers/LidoLiquidDecoderAndSanitizer.sol +++ b/src/base/DecodersAndSanitizers/LidoLiquidDecoderAndSanitizer.sol @@ -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( diff --git a/src/base/DecodersAndSanitizers/Protocols/EigenLayerLSTStakingDecoderAndSanitizer.sol b/src/base/DecodersAndSanitizers/Protocols/EigenLayerLSTStakingDecoderAndSanitizer.sol index 31ea765..c345bac 100644 --- a/src/base/DecodersAndSanitizers/Protocols/EigenLayerLSTStakingDecoderAndSanitizer.sol +++ b/src/base/DecodersAndSanitizers/Protocols/EigenLayerLSTStakingDecoderAndSanitizer.sol @@ -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 diff --git a/src/base/DecodersAndSanitizers/Protocols/UniswapV3DecoderAndSanitizer.sol b/src/base/DecodersAndSanitizers/Protocols/UniswapV3DecoderAndSanitizer.sol index 3fce397..41bf656 100644 --- a/src/base/DecodersAndSanitizers/Protocols/UniswapV3DecoderAndSanitizer.sol +++ b/src/base/DecodersAndSanitizers/Protocols/UniswapV3DecoderAndSanitizer.sol @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/src/interfaces/EtherFiLiquid1.sol b/src/interfaces/EtherFiLiquid1.sol index 080242e..14d5ffc 100644 --- a/src/interfaces/EtherFiLiquid1.sol +++ b/src/interfaces/EtherFiLiquid1.sol @@ -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); diff --git a/src/interfaces/IStaking.sol b/src/interfaces/IStaking.sol index f1d953a..5abf6ee 100644 --- a/src/interfaces/IStaking.sol +++ b/src/interfaces/IStaking.sol @@ -84,9 +84,7 @@ interface IUNSTETH { bool isClaimed; } - function getWithdrawalStatus( - uint256[] calldata _requestIds - ) + function getWithdrawalStatus(uint256[] calldata _requestIds) external view returns (WithdrawalRequestStatus[] memory statuses); diff --git a/src/interfaces/RawDataDecoderAndSanitizerInterfaces.sol b/src/interfaces/RawDataDecoderAndSanitizerInterfaces.sol index 6cb7bfb..0e5705b 100644 --- a/src/interfaces/RawDataDecoderAndSanitizerInterfaces.sol +++ b/src/interfaces/RawDataDecoderAndSanitizerInterfaces.sol @@ -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 ( diff --git a/test/CrossChain/@layerzerolabs-custom/test-evm-foundry-custom/OptionsHelper.sol b/test/CrossChain/@layerzerolabs-custom/test-evm-foundry-custom/OptionsHelper.sol index f0f2cb4..0bd63c0 100644 --- a/test/CrossChain/@layerzerolabs-custom/test-evm-foundry-custom/OptionsHelper.sol +++ b/test/CrossChain/@layerzerolabs-custom/test-evm-foundry-custom/OptionsHelper.sol @@ -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) @@ -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) @@ -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) @@ -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) diff --git a/test/CrossChain/@layerzerolabs-custom/test-evm-foundry-custom/SendUln302Mock.sol b/test/CrossChain/@layerzerolabs-custom/test-evm-foundry-custom/SendUln302Mock.sol index 7ac7df9..78ab9b0 100644 --- a/test/CrossChain/@layerzerolabs-custom/test-evm-foundry-custom/SendUln302Mock.sol +++ b/test/CrossChain/@layerzerolabs-custom/test-evm-foundry-custom/SendUln302Mock.sol @@ -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