-
Notifications
You must be signed in to change notification settings - Fork 14
feat: make Solidity V8 migration non breaking
#306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 51 commits
d26565f
b727db9
6df3e1d
8ff72ac
59f12bd
89c4617
599cd76
28e0251
4f69ec2
b011731
2cce4c7
9ddf6b3
a5db074
9b09e5e
a7d29aa
a42d28c
66573d6
25ef259
3a332cc
622a17b
e59c38a
8bc4bde
6c79719
5e5670c
eaca8fb
a4e41d6
3ee37f9
856ca26
1a4735c
da22fd6
4a19736
242f531
31e5748
d111b66
bebed16
759c0ec
1432446
ea871ea
c5a145f
94328c6
2252323
abfa39e
c63bdb9
fcbeb75
6415a36
8764fd7
caced1d
5c6b124
1ddcd80
427bb59
7f3ca8a
31096ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| interface IOwnable { | ||
| event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import "../libs/IexecLibCore_v5.sol"; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| interface IexecCategoryManager { | ||
| event CreateCategory(uint256 catid, string name, string description, uint256 workClockTimeRef); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
|
|
||
| pragma solidity ^0.8.0; | ||
| import "../libs/IexecLibOrders_v5.sol"; | ||
|
|
||
| interface IexecConfiguration { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
|
|
||
| pragma solidity ^0.8.0; | ||
| interface IexecConfigurationExtra { | ||
| function changeRegistries(address, address, address) external; | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,13 +1,11 @@ | ||||||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||||||
| // SPDX-License-Identifier: Apache-2.0 | ||||||
|
|
||||||
| pragma solidity >=0.6.0; | ||||||
| pragma experimental ABIEncoderV2; | ||||||
| pragma solidity ^0.8.0; | ||||||
|
|
||||||
| import {IexecERC20Common} from "./IexecERC20Common.sol"; | ||||||
|
Comment on lines
5
to
6
|
||||||
| import {IexecERC20Common} from "./IexecERC20Common.sol"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
possible to remove or should we consider to keep ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it have been done in this PR. #308
My goal here was simply to patch the functions to make the tests pass.
As discuss Timelock will be removed in a dedicated PR
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
|
|
||
| pragma solidity ^0.8.0; | ||
| // TODO merge with IexecERC20 interface. | ||
| interface IexecERC20Common { | ||
| event Transfer(address indexed from, address indexed to, uint256 value); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
|
|
||
| pragma solidity ^0.8.0; | ||
| interface IexecEscrowNative { | ||
| receive() external payable; | ||
| fallback() external payable; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| interface IexecEscrowToken { | ||
| receive() external payable; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
|
|
||
| pragma solidity ^0.8.0; | ||
| import {IexecLibOrders_v5} from "../libs/IexecLibOrders_v5.sol"; | ||
|
|
||
| interface IexecPoco1 { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| import "../libs/IexecLibOrders_v5.sol"; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| interface IexecTokenSpender { | ||
| function receiveApproval(address, uint256, address, bytes calldata) external returns (bool); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2024 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| library IexecLibCore_v5 { | ||
| /** | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,7 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| pragma solidity >=0.6.0; | ||
| pragma experimental ABIEncoderV2; | ||
|
|
||
| pragma solidity ^0.8.0; | ||
| library IexecLibOrders_v5 { | ||
| // bytes32 public constant EIP712DOMAIN_TYPEHASH = keccak256('EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)'); | ||
| // bytes32 public constant APPORDER_TYPEHASH = keccak256('AppOrder(address app,uint256 appprice,uint256 volume,bytes32 tag,address datasetrestrict,address workerpoolrestrict,address requesterrestrict,bytes32 salt)'); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.