Skip to content

Commit

Permalink
Merge pull request #21 from ProjectOpenSea/dan/2024/02/bump-comiler-v…
Browse files Browse the repository at this point in the history
…ersion

Dan/2024/02/bump compiler version
  • Loading branch information
0age authored Feb 26, 2024
2 parents 99a63db + 64b38f3 commit 78e7973
Show file tree
Hide file tree
Showing 29 changed files with 354 additions and 49 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:
- name: Install forge dependencies
run: forge install

- name: Precompile reference using 0.8.13 and via-ir=false
- name: Precompile reference using 0.8.24 and via-ir=false
run: FOUNDRY_PROFILE=reference forge build

- name: Precompile optimized using 0.8.17 and via-ir=true
- name: Precompile optimized using 0.8.24 and via-ir=true
run: FOUNDRY_PROFILE=optimized forge build

- name: Run tests
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ test/utils/eip712/gen.sol
metrics.txt
*-metrics.txt

debug/*

fuzz_debug.json
8 changes: 5 additions & 3 deletions foundry.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[profile.default]
solc = '0.8.21'
solc = '0.8.24'
evm_version = 'cancun'
src = 'src'
out = 'out'
libs = ["node_modules", "lib"]
Expand Down Expand Up @@ -31,7 +32,7 @@ fs_permissions = [
]

[profile.validator]
solc = '0.8.17'
solc = '0.8.24'
src = 'src/main/helpers/order-validator'
optimizer_runs = 1

Expand All @@ -40,7 +41,7 @@ runs = 1_000
max_test_rejects = 1_000_000

[profile.reference]
solc = '0.8.21'
solc = '0.8.24'
src = 'reference'
out = 'reference-out'
script = 'reference'
Expand All @@ -57,6 +58,7 @@ script = 'script'
bytecode_hash = 'none'
# no need to compile tests with via-ir since they load optimized bytecode directly by default
test ='src/main'
evm_version = 'cancun'
cache_path='optimized-cache'
extra_output_files=['irOptimized']

Expand Down
2 changes: 1 addition & 1 deletion src/core/Seaport.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
pragma solidity ^0.8.24;

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

Expand Down
2 changes: 1 addition & 1 deletion src/core/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.13;
pragma solidity ^0.8.24;

import { ConduitInterface } from
"seaport-types/src/interfaces/ConduitInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.13;
pragma solidity ^0.8.24;

import { ConduitControllerInterface } from
"seaport-types/src/interfaces/ConduitControllerInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/helpers/SeaportRouter.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.24;

import { SeaportRouterInterface } from
"seaport-types/src/interfaces/SeaportRouterInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import { AmountDerivationErrors } from
"seaport-types/src/interfaces/AmountDerivationErrors.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import { OrderParameters } from "seaport-types/src/lib/ConsiderationStructs.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import {
BasicOrderRouteType,
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import { ConsiderationInterface } from
"seaport-types/src/interfaces/ConsiderationInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import { ConduitControllerInterface } from
"seaport-types/src/interfaces/ConduitControllerInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/lib/ConsiderationDecoder.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
pragma solidity ^0.8.24;

import {
AdvancedOrder,
Expand Down
2 changes: 1 addition & 1 deletion src/core/lib/ConsiderationEncoder.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;
pragma solidity ^0.8.24;

import {
authorizeOrder_head_offset,
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import { ConsiderationEventsAndErrors } from
"seaport-types/src/interfaces/ConsiderationEventsAndErrors.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import {
ItemType,
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import { ConduitInterface } from
"seaport-types/src/interfaces/ConduitInterface.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import { ItemType, Side } from "seaport-types/src/lib/ConsiderationEnums.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import { OrderParameters } from "seaport-types/src/lib/ConsiderationStructs.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import {
CostPerWord,
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import {
Side,
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import {
ItemType, OrderType
Expand Down
2 changes: 1 addition & 1 deletion src/core/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.17;
pragma solidity ^0.8.24;

import { OrderType } from "seaport-types/src/lib/ConsiderationEnums.sol";

Expand Down
Loading

0 comments on commit 78e7973

Please sign in to comment.