Skip to content

Commit

Permalink
chore: change version to 19
Browse files Browse the repository at this point in the history
  • Loading branch information
sujithsomraaj committed Aug 22, 2023
1 parent 612300c commit 31d375d
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 40 deletions.
2 changes: 1 addition & 1 deletion src/MultiMessageReceiver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// external modules
import "@openzeppelin/contracts/proxy/utils/Initializable.sol";
Expand Down
3 changes: 1 addition & 2 deletions src/MultiMessageSender.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// interfaces
import "./interfaces/IBridgeSenderAdapter.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/BaseSenderAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

import "../interfaces/IGAC.sol";
import "../libraries/Error.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/Celer/CelerReceiverAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// local imports
import "../../interfaces/IBridgeReceiverAdapter.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/Celer/CelerSenderAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

import "../../interfaces/IGAC.sol";
import "../../libraries/Error.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/Celer/interfaces/IMessageBus.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

library MsgDataTypes {
string constant ABORT_PREFIX = "MSG::ABORT:";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/Celer/libraries/Utils.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

library Utils {
// https://ethereum.stackexchange.com/a/83577
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/Wormhole/WormholeReceiverAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// library imports
import "wormhole-solidity-sdk/interfaces/IWormholeReceiver.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/Wormhole/WormholeSenderAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// library imports
import "wormhole-solidity-sdk/interfaces/IWormholeRelayer.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/axelar/AxelarReceiverAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

import "forge-std/console.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/adapters/axelar/AxelarSenderAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

import "forge-std/console.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/adapters/axelar/interfaces/IAxelarExecutable.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

interface IAxelarExecutable {
/// @param commandId is axelar specific message identifier
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/axelar/interfaces/IAxelarGasService.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

// This should be owned by the microservice that is paying for gas.
interface IAxelarGasService {
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/axelar/interfaces/IAxelarGateway.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

interface IAxelarGateway {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/axelar/libraries/StringAddressConversion.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

library StringAddressConversion {
error InvalidAddressString();
Expand Down
3 changes: 1 addition & 2 deletions src/controllers/GAC.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// library imports
import "openzeppelin-contracts/contracts/access/Ownable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/EIP5164/ExecutorAware.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// 1. support higher version of solidity
// 2. support multiple trustedExecutor

pragma solidity ^0.8.16;
pragma solidity 0.8.19;

/**
* @title ExecutorAware abstract contract
Expand Down
3 changes: 1 addition & 2 deletions src/interfaces/EIP5164/MessageDispatcher.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/**
* @dev The MessageDispatcher lives on the origin chain and dispatches messages to the MessageExecutor for execution.
Expand Down
3 changes: 1 addition & 2 deletions src/interfaces/EIP5164/MessageExecutor.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/**
* @dev The MessageExecutor executes dispatched messages and message batches.
Expand Down
3 changes: 1 addition & 2 deletions src/interfaces/EIP5164/SingleMessageDispatcher.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.9;
pragma solidity 0.8.19;

import "./MessageDispatcher.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IBridgeReceiverAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

import "./EIP5164/MessageExecutor.sol";

Expand Down
3 changes: 1 addition & 2 deletions src/interfaces/IBridgeSenderAdapter.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.9;
pragma solidity 0.8.19;

import "./EIP5164/SingleMessageDispatcher.sol";

Expand Down
3 changes: 1 addition & 2 deletions src/interfaces/IGAC.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// @notice interface for GAC (Global Access Controller)
interface IGAC {
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IMultiMessageReceiver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

import "../libraries/Message.sol";

Expand Down
3 changes: 1 addition & 2 deletions src/libraries/Error.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// @dev is a library that contains all the error codes
library Error {
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/Message.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// @title MessageStruct
/// @dev library for cross-chain message & related helper functions
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/TypeCasts.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// @dev imported from https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/solidity/contracts/libs/TypeCasts.sol
library TypeCasts {
Expand Down
3 changes: 1 addition & 2 deletions src/libraries/Types.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only

pragma solidity >=0.8.9;
pragma solidity 0.8.19;

struct AdapterPayload {
bytes32 msgId;
Expand Down
2 changes: 1 addition & 1 deletion test/Setup.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// library imports
import {Test, Vm} from "forge-std/Test.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/mock/MockUniswapReceiver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// @dev assumes mock interactor is the one that send / recieves message using the MMA infra
contract MockUniswapReceiver {
Expand Down
2 changes: 1 addition & 1 deletion test/success-tests/SimpleMMA.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-only
pragma solidity >=0.8.9;
pragma solidity 0.8.19;

/// library imports
import {Vm} from "forge-std/Test.sol";
Expand Down

0 comments on commit 31d375d

Please sign in to comment.