From ed633105ca8f86098d78294cdfcdb1d85b5ebec2 Mon Sep 17 00:00:00 2001 From: 0xfoobar <0xfoobar1@gmail.com> Date: Fri, 15 Dec 2023 19:03:35 -0500 Subject: [PATCH] use floating pragmas --- messagelib/contracts/Executor.sol | 2 +- messagelib/contracts/ExecutorFeeLib.sol | 2 +- messagelib/contracts/PriceFeed.sol | 2 +- messagelib/contracts/Treasury.sol | 2 +- messagelib/contracts/uln/LzExecutor.sol | 2 +- messagelib/contracts/uln/dvn/DVN.sol | 2 +- messagelib/contracts/uln/dvn/DVNFeeLib.sol | 2 +- messagelib/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapter.sol | 2 +- .../contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapterFeeLib.sol | 2 +- messagelib/contracts/uln/dvn/adapters/DVNAdapterBase.sol | 2 +- messagelib/contracts/uln/dvn/adapters/DVNAdapterFeeLibBase.sol | 2 +- .../contracts/uln/dvn/adapters/axelar/AxelarDVNAdapter.sol | 2 +- .../uln/dvn/adapters/axelar/AxelarDVNAdapterFeeLib.sol | 2 +- messagelib/contracts/uln/uln301/ReceiveUln301.sol | 2 +- messagelib/contracts/uln/uln301/SendUln301.sol | 2 +- messagelib/contracts/uln/uln301/TreasuryFeeHandler.sol | 2 +- messagelib/contracts/uln/uln302/ReceiveUln302.sol | 2 +- messagelib/contracts/uln/uln302/SendUln302.sol | 2 +- oapp/test/mocks/ExecutorFeeLibMock.sol | 2 +- protocol/contracts/EndpointV2.sol | 2 +- protocol/contracts/EndpointV2Alt.sol | 2 +- protocol/contracts/messagelib/BlockedMessageLib.sol | 2 +- protocol/contracts/messagelib/SimpleMessageLib.sol | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/messagelib/contracts/Executor.sol b/messagelib/contracts/Executor.sol index a5f9756..9380c83 100644 --- a/messagelib/contracts/Executor.sol +++ b/messagelib/contracts/Executor.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { ReentrancyGuardUpgradeable } from "@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol"; import { Proxied } from "hardhat-deploy/solc_0.8/proxy/Proxied.sol"; diff --git a/messagelib/contracts/ExecutorFeeLib.sol b/messagelib/contracts/ExecutorFeeLib.sol index ab9f763..6dce884 100644 --- a/messagelib/contracts/ExecutorFeeLib.sol +++ b/messagelib/contracts/ExecutorFeeLib.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; diff --git a/messagelib/contracts/PriceFeed.sol b/messagelib/contracts/PriceFeed.sol index 95ec014..77a018f 100644 --- a/messagelib/contracts/PriceFeed.sol +++ b/messagelib/contracts/PriceFeed.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { OwnableUpgradeable } from "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol"; import { Proxied } from "hardhat-deploy/solc_0.8/proxy/Proxied.sol"; diff --git a/messagelib/contracts/Treasury.sol b/messagelib/contracts/Treasury.sol index a95eeb2..e2c2a58 100644 --- a/messagelib/contracts/Treasury.sol +++ b/messagelib/contracts/Treasury.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; diff --git a/messagelib/contracts/uln/LzExecutor.sol b/messagelib/contracts/uln/LzExecutor.sol index f921c09..673228c 100644 --- a/messagelib/contracts/uln/LzExecutor.sol +++ b/messagelib/contracts/uln/LzExecutor.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; diff --git a/messagelib/contracts/uln/dvn/DVN.sol b/messagelib/contracts/uln/dvn/DVN.sol index 6bfc47c..3a7f492 100644 --- a/messagelib/contracts/uln/dvn/DVN.sol +++ b/messagelib/contracts/uln/dvn/DVN.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { ILayerZeroUltraLightNodeV2 } from "@layerzerolabs/lz-evm-v1-0.7/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol"; diff --git a/messagelib/contracts/uln/dvn/DVNFeeLib.sol b/messagelib/contracts/uln/dvn/DVNFeeLib.sol index 0bb9fcd..e7e9001 100644 --- a/messagelib/contracts/uln/dvn/DVNFeeLib.sol +++ b/messagelib/contracts/uln/dvn/DVNFeeLib.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { Transfer } from "@layerzerolabs/lz-evm-protocol-v2/contracts/libs/Transfer.sol"; diff --git a/messagelib/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapter.sol b/messagelib/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapter.sol index 5399e14..26021ad 100644 --- a/messagelib/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapter.sol +++ b/messagelib/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapter.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { IRouterClient } from "@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol"; import { CCIPReceiver } from "@chainlink/contracts-ccip/src/v0.8/ccip/applications/CCIPReceiver.sol"; diff --git a/messagelib/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapterFeeLib.sol b/messagelib/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapterFeeLib.sol index 9ce9dfb..54887c4 100644 --- a/messagelib/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapterFeeLib.sol +++ b/messagelib/contracts/uln/dvn/adapters/CCIP/CCIPDVNAdapterFeeLib.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { DVNAdapterFeeLibBase } from "../DVNAdapterFeeLibBase.sol"; diff --git a/messagelib/contracts/uln/dvn/adapters/DVNAdapterBase.sol b/messagelib/contracts/uln/dvn/adapters/DVNAdapterBase.sol index ff42d82..396c963 100644 --- a/messagelib/contracts/uln/dvn/adapters/DVNAdapterBase.sol +++ b/messagelib/contracts/uln/dvn/adapters/DVNAdapterBase.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol"; import { BytesLib } from "solidity-bytes-utils/contracts/BytesLib.sol"; diff --git a/messagelib/contracts/uln/dvn/adapters/DVNAdapterFeeLibBase.sol b/messagelib/contracts/uln/dvn/adapters/DVNAdapterFeeLibBase.sol index 5fb17dd..1f66502 100644 --- a/messagelib/contracts/uln/dvn/adapters/DVNAdapterFeeLibBase.sol +++ b/messagelib/contracts/uln/dvn/adapters/DVNAdapterFeeLibBase.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { IDVNAdapterFeeLib } from "../../interfaces/IDVNAdapterFeeLib.sol"; diff --git a/messagelib/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapter.sol b/messagelib/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapter.sol index f9a39bc..9de78f8 100644 --- a/messagelib/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapter.sol +++ b/messagelib/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapter.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { AxelarExecutable } from "@axelar-network/axelar-gmp-sdk-solidity/contracts/executable/AxelarExecutable.sol"; import { IAxelarGasService } from "@axelar-network/axelar-gmp-sdk-solidity/contracts/interfaces/IAxelarGasService.sol"; diff --git a/messagelib/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapterFeeLib.sol b/messagelib/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapterFeeLib.sol index eba7fca..bca56bb 100644 --- a/messagelib/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapterFeeLib.sol +++ b/messagelib/contracts/uln/dvn/adapters/axelar/AxelarDVNAdapterFeeLib.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { DVNAdapterFeeLibBase } from "../DVNAdapterFeeLibBase.sol"; diff --git a/messagelib/contracts/uln/uln301/ReceiveUln301.sol b/messagelib/contracts/uln/uln301/ReceiveUln301.sol index de992c7..1f2b73f 100644 --- a/messagelib/contracts/uln/uln301/ReceiveUln301.sol +++ b/messagelib/contracts/uln/uln301/ReceiveUln301.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { SafeCast } from "@openzeppelin/contracts/utils/math/SafeCast.sol"; diff --git a/messagelib/contracts/uln/uln301/SendUln301.sol b/messagelib/contracts/uln/uln301/SendUln301.sol index 23be64a..97b9029 100644 --- a/messagelib/contracts/uln/uln301/SendUln301.sol +++ b/messagelib/contracts/uln/uln301/SendUln301.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { Packet } from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ISendLib.sol"; diff --git a/messagelib/contracts/uln/uln301/TreasuryFeeHandler.sol b/messagelib/contracts/uln/uln301/TreasuryFeeHandler.sol index 13210a6..4914b2a 100644 --- a/messagelib/contracts/uln/uln301/TreasuryFeeHandler.sol +++ b/messagelib/contracts/uln/uln301/TreasuryFeeHandler.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; diff --git a/messagelib/contracts/uln/uln302/ReceiveUln302.sol b/messagelib/contracts/uln/uln302/ReceiveUln302.sol index 2fc7b42..7c5d41c 100644 --- a/messagelib/contracts/uln/uln302/ReceiveUln302.sol +++ b/messagelib/contracts/uln/uln302/ReceiveUln302.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { PacketV1Codec } from "@layerzerolabs/lz-evm-protocol-v2/contracts/messagelib/libs/PacketV1Codec.sol"; import { SetConfigParam } from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol"; diff --git a/messagelib/contracts/uln/uln302/SendUln302.sol b/messagelib/contracts/uln/uln302/SendUln302.sol index 2c77446..d6b7515 100644 --- a/messagelib/contracts/uln/uln302/SendUln302.sol +++ b/messagelib/contracts/uln/uln302/SendUln302.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { Packet } from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/ISendLib.sol"; import { SetConfigParam } from "@layerzerolabs/lz-evm-protocol-v2/contracts/interfaces/IMessageLibManager.sol"; diff --git a/oapp/test/mocks/ExecutorFeeLibMock.sol b/oapp/test/mocks/ExecutorFeeLibMock.sol index 906ef94..a2be7f4 100644 --- a/oapp/test/mocks/ExecutorFeeLibMock.sol +++ b/oapp/test/mocks/ExecutorFeeLibMock.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: UNLICENSED -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { ExecutorFeeLib } from "@layerzerolabs/lz-evm-messagelib-v2/contracts/ExecutorFeeLib.sol"; diff --git a/protocol/contracts/EndpointV2.sol b/protocol/contracts/EndpointV2.sol index c448169..d8e5c9a 100644 --- a/protocol/contracts/EndpointV2.sol +++ b/protocol/contracts/EndpointV2.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; diff --git a/protocol/contracts/EndpointV2Alt.sol b/protocol/contracts/EndpointV2Alt.sol index d3690db..d4d2d6f 100644 --- a/protocol/contracts/EndpointV2Alt.sol +++ b/protocol/contracts/EndpointV2Alt.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; diff --git a/protocol/contracts/messagelib/BlockedMessageLib.sol b/protocol/contracts/messagelib/BlockedMessageLib.sol index fdf1175..a409749 100644 --- a/protocol/contracts/messagelib/BlockedMessageLib.sol +++ b/protocol/contracts/messagelib/BlockedMessageLib.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { ERC165 } from "@openzeppelin/contracts/utils/introspection/ERC165.sol"; diff --git a/protocol/contracts/messagelib/SimpleMessageLib.sol b/protocol/contracts/messagelib/SimpleMessageLib.sol index 36fd024..bb8b368 100644 --- a/protocol/contracts/messagelib/SimpleMessageLib.sol +++ b/protocol/contracts/messagelib/SimpleMessageLib.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: LZBL-1.2 -pragma solidity 0.8.22; +pragma solidity ^0.8.22; import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import { SafeERC20 } from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";