Skip to content

Commit

Permalink
Merge pull request #521 from naps62/compiler-version
Browse files Browse the repository at this point in the history
Prevent compilation with future 0.9.x solidity version
  • Loading branch information
0age authored Jun 18, 2022
2 parents 7d2c464 + 891b5d4 commit 171f2cd
Show file tree
Hide file tree
Showing 90 changed files with 90 additions and 90 deletions.
2 changes: 1 addition & 1 deletion contracts/Seaport.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { Consideration } from "./lib/Consideration.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/conduit/Conduit.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import { ConduitInterface } from "../interfaces/ConduitInterface.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/conduit/ConduitController.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

// prettier-ignore
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/conduit/lib/ConduitConstants.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

// error ChannelClosed(address channel)
uint256 constant ChannelClosed_error_signature = (
Expand Down
2 changes: 1 addition & 1 deletion contracts/conduit/lib/ConduitEnums.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

enum ConduitItemType {
NATIVE, // unused
Expand Down
2 changes: 1 addition & 1 deletion contracts/conduit/lib/ConduitStructs.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import { ConduitItemType } from "./ConduitEnums.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/helpers/TransferHelper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import "./TransferHelperStructs.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/helpers/TransferHelperStructs.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import { ConduitItemType } from "../conduit/lib/ConduitEnums.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/AbridgedTokenInterfaces.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

interface ERC20Interface {
function transferFrom(
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/AmountDerivationErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

/**
* @title AmountDerivationErrors
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ConduitControllerInterface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

/**
* @title ConduitControllerInterface
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ConduitInterface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

// prettier-ignore
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ConsiderationEventsAndErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import { SpentItem, ReceivedItem } from "../lib/ConsiderationStructs.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ConsiderationInterface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

// prettier-ignore
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/CriteriaResolutionErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

/**
* @title CriteriaResolutionErrors
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/EIP1271Interface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

interface EIP1271Interface {
function isValidSignature(bytes32 digest, bytes calldata signature)
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/FulfillmentApplicationErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import { Side } from "../lib/ConsiderationEnums.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ImmutableCreate2FactoryInterface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

/**
* @title ImmutableCreate2FactoryInterface
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ReentrancyErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

/**
* @title ReentrancyErrors
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/SeaportInterface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

// prettier-ignore
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/SignatureVerificationErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

/**
* @title SignatureVerificationErrors
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/TokenTransferrerErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

/**
* @title TokenTransferrerErrors
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/TransferHelperInterface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import { TransferHelperItem } from "../helpers/TransferHelperStructs.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ZoneInteractionErrors.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

/**
* @title ZoneInteractionErrors
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ZoneInterface.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

// prettier-ignore
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/AmountDeriver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

// prettier-ignore
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/Assertions.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { OrderParameters } from "./ConsiderationStructs.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/BasicOrderFulfiller.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { ConduitInterface } from "../interfaces/ConduitInterface.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/Consideration.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

// prettier-ignore
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/ConsiderationBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

// prettier-ignore
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/ConsiderationConstants.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

/*
* -------------------------- Disambiguation & Other Notes ---------------------
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/ConsiderationEnums.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

// prettier-ignore
enum OrderType {
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/ConsiderationStructs.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

// prettier-ignore
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/CounterManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

// prettier-ignore
import {
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/CriteriaResolution.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { ItemType, Side } from "./ConsiderationEnums.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/Executor.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { ConduitInterface } from "../interfaces/ConduitInterface.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/FulfillmentApplier.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { ItemType, Side } from "./ConsiderationEnums.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/GettersAndDerivers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { OrderParameters } from "./ConsiderationStructs.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/LowLevelHelpers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import "./ConsiderationConstants.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/OrderCombiner.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { Side, ItemType } from "./ConsiderationEnums.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/OrderFulfiller.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { ItemType } from "./ConsiderationEnums.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/OrderValidator.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { OrderType } from "./ConsiderationEnums.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/ReentrancyGuard.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { ReentrancyErrors } from "../interfaces/ReentrancyErrors.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/SignatureVerification.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { EIP1271Interface } from "../interfaces/EIP1271Interface.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/TokenTransferrer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import "./TokenTransferrerConstants.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/TokenTransferrerConstants.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

/*
* -------------------------- Disambiguation & Other Notes ---------------------
Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/Verifiers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { OrderStatus } from "./ConsiderationStructs.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/lib/ZoneInteraction.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

import { ZoneInterface } from "../interfaces/ZoneInterface.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/EIP1271Wallet.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

interface ERC20ApprovalInterface {
function approve(address, uint256) external returns (bool);
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/ERC1155BatchRecipient.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

contract ERC1155BatchRecipient {
error UnexpectedBatchData();
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/ExcessReturnDataRecipient.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

contract ExcessReturnDataRecipient {
uint256 private revertDataSize;
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/Reenterer.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

contract Reenterer {
address public target;
Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestERC1155.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import "@rari-capital/solmate/src/tokens/ERC1155.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestERC20.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import "@rari-capital/solmate/src/tokens/ERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestERC721.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: Unlicense
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import "@rari-capital/solmate/src/tokens/ERC721.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/test/TestZone.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.7;
pragma solidity ^0.8.7;

import { ZoneInterface } from "../interfaces/ZoneInterface.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/foundry/CeilEquivalenceTest.t.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity >=0.8.13;
pragma solidity ^0.8.13;

contract CeilEquivalenceTest {
function testCeilEquivalence(uint256 numerator, uint256 denominator)
Expand Down
Loading

0 comments on commit 171f2cd

Please sign in to comment.