Skip to content

Commit

Permalink
upgrade to solidity 0.8.26
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Sep 17, 2024
1 parent 6306b90 commit c4375b6
Show file tree
Hide file tree
Showing 29 changed files with 170 additions and 472 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-foundry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

# Runs a single command using the runners shell
- name: Install packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-on-arbitrum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

# Runs a single command using the runners shell
- name: Install packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-on-avalanche.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

# Runs a single command using the runners shell
- name: Install packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-on-bsc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

# Runs a single command using the runners shell
- name: Install packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-on-ethereum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

# Runs a single command using the runners shell
- name: Install packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-on-fantom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

# Runs a single command using the runners shell
- name: Install packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-on-gnosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

# Runs a single command using the runners shell
- name: Install packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-on-optimism.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

# Runs a single command using the runners shell
- name: Install packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-on-polygon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: '16'
node-version: '18'

# Runs a single command using the runners shell
- name: Install packages
Expand Down
2 changes: 1 addition & 1 deletion contracts/DePayForwarderV3.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.8.18;
pragma solidity 0.8.26;

import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/DePayRouterV3.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.8.18;
pragma solidity 0.8.26;

import "@openzeppelin/contracts/access/Ownable2Step.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/DePayWETHExchangeV1.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.8.18;
pragma solidity 0.8.26;

import './interfaces/IWETH.sol';

Expand Down
2 changes: 1 addition & 1 deletion contracts/TestReceiver.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.8.18;
pragma solidity 0.8.26;

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

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IDePayForwarderV3.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.8.18;
pragma solidity 0.8.26;

import './IDePayRouterV3.sol';

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IDePayRouterV3.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: BUSL-1.1

pragma solidity 0.8.18;
pragma solidity 0.8.26;

import './IPermit2.sol';

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IPermit2.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.18;
pragma solidity 0.8.26;

interface IPermit2 {

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IWETH.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.18;
pragma solidity 0.8.26;

interface IWETH {

Expand Down
6 changes: 3 additions & 3 deletions flatten/DePayForwarderV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ library SafeERC20 {
// Dependency file: contracts/interfaces/IPermit2.sol


// pragma solidity 0.8.18;
// pragma solidity 0.8.26;

interface IPermit2 {

Expand Down Expand Up @@ -759,7 +759,7 @@ interface IPermit2 {
// Dependency file: contracts/interfaces/IDePayRouterV3.sol


// pragma solidity 0.8.18;
// pragma solidity 0.8.26;

// import 'contracts/interfaces/IPermit2.sol';

Expand Down Expand Up @@ -813,7 +813,7 @@ interface IDePayRouterV3 {
// Root file: contracts/DePayForwarderV3.sol


pragma solidity 0.8.18;
pragma solidity 0.8.26;

// import "@openzeppelin/contracts/access/Ownable2Step.sol";
// import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
8 changes: 4 additions & 4 deletions flatten/DePayRouterV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ library SafeERC20 {
// Dependency file: contracts/interfaces/IPermit2.sol


// pragma solidity 0.8.18;
// pragma solidity 0.8.26;

interface IPermit2 {

Expand Down Expand Up @@ -759,7 +759,7 @@ interface IPermit2 {
// Dependency file: contracts/interfaces/IDePayRouterV3.sol


// pragma solidity 0.8.18;
// pragma solidity 0.8.26;

// import 'contracts/interfaces/IPermit2.sol';

Expand Down Expand Up @@ -813,7 +813,7 @@ interface IDePayRouterV3 {
// Dependency file: contracts/interfaces/IDePayForwarderV3.sol


// pragma solidity 0.8.18;
// pragma solidity 0.8.26;

// import 'contracts/interfaces/IDePayRouterV3.sol';

Expand All @@ -831,7 +831,7 @@ interface IDePayForwarderV3 {
// Root file: contracts/DePayRouterV3.sol


pragma solidity 0.8.18;
pragma solidity 0.8.26;

// import "@openzeppelin/contracts/access/Ownable2Step.sol";
// import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
Expand Down
4 changes: 2 additions & 2 deletions flatten/DePayWETHExchangeV1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// SPDX-License-Identifier: MIT

// pragma solidity 0.8.18;
// pragma solidity 0.8.26;

interface IWETH {

Expand All @@ -15,7 +15,7 @@ interface IWETH {
// Root file: contracts/DePayWETHExchangeV1.sol


pragma solidity 0.8.18;
pragma solidity 0.8.26;

// import 'contracts/interfaces/IWETH.sol';

Expand Down
6 changes: 3 additions & 3 deletions flatten/IDePayForwarderV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// SPDX-License-Identifier: MIT

// pragma solidity 0.8.18;
// pragma solidity 0.8.26;

interface IPermit2 {

Expand Down Expand Up @@ -49,7 +49,7 @@ interface IPermit2 {
// Dependency file: contracts/interfaces/IDePayRouterV3.sol


// pragma solidity 0.8.18;
// pragma solidity 0.8.26;

// import 'contracts/interfaces/IPermit2.sol';

Expand Down Expand Up @@ -103,7 +103,7 @@ interface IDePayRouterV3 {
// Root file: contracts/interfaces/IDePayForwarderV3.sol


pragma solidity 0.8.18;
pragma solidity 0.8.26;

// import 'contracts/interfaces/IDePayRouterV3.sol';

Expand Down
4 changes: 2 additions & 2 deletions flatten/IDePayRouterV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// SPDX-License-Identifier: MIT

// pragma solidity 0.8.18;
// pragma solidity 0.8.26;

interface IPermit2 {

Expand Down Expand Up @@ -49,7 +49,7 @@ interface IPermit2 {
// Root file: contracts/interfaces/IDePayRouterV3.sol


pragma solidity 0.8.18;
pragma solidity 0.8.26;

// import 'contracts/interfaces/IPermit2.sol';

Expand Down
2 changes: 1 addition & 1 deletion flatten/IPermit2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// SPDX-License-Identifier: MIT

pragma solidity 0.8.18;
pragma solidity 0.8.26;

interface IPermit2 {

Expand Down
2 changes: 1 addition & 1 deletion flatten/IWETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// SPDX-License-Identifier: MIT

pragma solidity 0.8.18;
pragma solidity 0.8.26;

interface IWETH {

Expand Down
2 changes: 1 addition & 1 deletion flatten/TestReceiver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ library SafeERC20 {
// Root file: contracts/TestReceiver.sol


pragma solidity 0.8.18;
pragma solidity 0.8.26;

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

Expand Down
2 changes: 1 addition & 1 deletion hardhat.config.shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var {

const sharedConfig = {
solidity: {
version: '0.8.18',
version: '0.8.26',
settings: {
optimizer: {
enabled: true,
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
"@depay/web3-client-evm": "^10.16.3",
"@depay/web3-exchanges-evm": "^13.2.3",
"@depay/web3-tokens-evm": "^10.1.0",
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-etherscan": "^2.1.1",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@nomiclabs/hardhat-waffle": "^2.0.6",
"@typechain/ethers-v5": "^4.0.0",
"@types/chai": "^4.2.6",
"@types/mocha": "^5.2.7",
Expand All @@ -42,7 +41,7 @@
"dotenv": "^16.3.0",
"ethereum-waffle": "^3.0.2",
"ethers": "^5.0.8",
"hardhat": "^2.17.1",
"hardhat": "^2.22.10",
"hardhat-typechain": "^0.3.5",
"import-toml": "1.0.0",
"mocha": "^6.2.2",
Expand Down
2 changes: 1 addition & 1 deletion waffle.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerType": "solcjs",
"compilerVersion": "0.8.18",
"compilerVersion": "0.8.26",
"sourceDirectory": "./contracts",
"outputDirectory": "./build"
}
Loading

0 comments on commit c4375b6

Please sign in to comment.