Skip to content

Commit

Permalink
use 0.8.26 solidity for v2 contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Jul 30, 2024
1 parent 8ef73c3 commit 84908d5
Show file tree
Hide file tree
Showing 38 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions v2/scripts/localnet/EvmCall.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;

import "forge-std/Script.sol";
import "src/evm/GatewayEVM.sol";
Expand Down
4 changes: 2 additions & 2 deletions v2/scripts/localnet/EvmDepositAndCall.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;

import "forge-std/Script.sol";
import "src/evm/GatewayEVM.sol";
Expand Down
4 changes: 2 additions & 2 deletions v2/scripts/localnet/ZevmCall.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;

import "forge-std/Script.sol";
import "src/zevm/GatewayZEVM.sol";
Expand Down
4 changes: 2 additions & 2 deletions v2/scripts/localnet/ZevmWithdrawAndCall.s.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;

import "forge-std/Script.sol";
import "src/zevm/GatewayZEVM.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/src/evm/ERC20CustodyNew.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "./interfaces//IGatewayEVM.sol";
import "./interfaces/IERC20CustodyNew.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/src/evm/GatewayEVM.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "./ZetaConnectorNewBase.sol";
import "./interfaces/IGatewayEVM.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/src/evm/ZetaConnectorNative.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "./ZetaConnectorNewBase.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/src/evm/ZetaConnectorNewBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/src/evm/ZetaConnectorNonNative.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "./ZetaConnectorNewBase.sol";
import "./interfaces/IZetaNonEthNew.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/src/evm/interfaces/IERC20CustodyNew.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

/// @title IERC20CustodyNewEvents
/// @notice Interface for the events emitted by the ERC20 custody contract.
Expand Down
2 changes: 1 addition & 1 deletion v2/src/evm/interfaces/IGatewayEVM.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

/// @title IGatewayEVMEvents
/// @notice Interface for the events emitted by the GatewayEVM contract.
Expand Down
2 changes: 1 addition & 1 deletion v2/src/evm/interfaces/IZetaConnector.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

/// @title IZetaConnectorEvents
/// @notice Interface for the events emitted by the ZetaConnector contracts.
Expand Down
2 changes: 1 addition & 1 deletion v2/src/evm/interfaces/IZetaNonEthNew.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion v2/src/zevm/GatewayZEVM.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "./interfaces/IGatewayZEVM.sol";
import "./interfaces/IWZETA.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/src/zevm/interfaces/IGatewayZEVM.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "./zContract.sol";

Expand Down
2 changes: 1 addition & 1 deletion v2/src/zevm/interfaces/ISystem.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

/// @title ISystem
/// @notice Interface for the System contract.
Expand Down
2 changes: 1 addition & 1 deletion v2/src/zevm/interfaces/IWZETA.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

/// @title IWETH9
/// @notice Interface for the Weth9 contract.
Expand Down
2 changes: 1 addition & 1 deletion v2/src/zevm/interfaces/IZRC20.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

/// @title IZRC20
/// @notice Interface for the ZRC20 token contract.
Expand Down
2 changes: 1 addition & 1 deletion v2/src/zevm/interfaces/zContract.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

struct zContext {
bytes origin;
Expand Down
2 changes: 1 addition & 1 deletion v2/test/GatewayEVM.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "forge-std/Vm.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/GatewayEVMUpgrade.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "forge-std/Vm.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/GatewayEVMZEVM.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "forge-std/Vm.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/GatewayZEVM.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "forge-std/Vm.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/ZetaConnectorNative.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "forge-std/Vm.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/ZetaConnectorNonNative.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "forge-std/Test.sol";
import "forge-std/Vm.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/fuzz/ERC20CustodyNewEchidnaTest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/fuzz/GatewayEVMEchidnaTest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/GatewayEVMUpgradeTest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/IReceiverEVM.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

/// @title IReceiverEVMEvents
/// @notice Interface for the events emitted by the ReceiverEVM contract.
Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/ReceiverEVM.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "./IReceiverEVM.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/SenderZEVM.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "src/zevm/interfaces/IGatewayZEVM.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/SystemContract.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "src/zevm/interfaces/IZRC20.sol";
import "src/zevm/interfaces/zContract.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/SystemContractMock.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "src/zevm/interfaces/IZRC20.sol";
import "src/zevm/interfaces/zContract.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/TestERC20.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/TestZContract.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "src/zevm/interfaces/zContract.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/WZETA.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

contract WETH9 {
string public name = "Wrapped Ether";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/ZRC20New.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import "src/zevm/interfaces/ISystem.sol";
import "src/zevm/interfaces/IZRC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion v2/test/utils/Zeta.non-eth.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity 0.8.26;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
Expand Down

0 comments on commit 84908d5

Please sign in to comment.