Skip to content
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

fix: pin solidity version to 0.8.26 #66

Open
wants to merge 1 commit into
base: fix/oz-audit
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ multiline_func_header = 'params_first_multi'
sort_imports = true

[profile.default]
solc_version = '0.8.19'
solc_version = '0.8.26'
src = 'solidity'
test = 'solidity/test'
out = 'out'
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/Module.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IModule} from '../interfaces/IModule.sol';
import {IOracle} from '../interfaces/IOracle.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/Oracle.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IOracle} from '../interfaces/IOracle.sol';

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

import {IOracle, IValidator} from '../interfaces/IValidator.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/access/CommonAccessController.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IAccessController} from '../../interfaces/access/IAccessController.sol';
import {IAccessModule} from '../../interfaces/modules/access/IAccessModule.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/access/ModuleAccessController.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IOracle} from '../../interfaces/IOracle.sol';
import {IModuleAccessController} from '../../interfaces/access/IModuleAccessController.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/access/OracleAccessController.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IOracleAccessController} from '../../interfaces/access/IOracleAccessController.sol';
import {CommonAccessController} from './CommonAccessController.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/contracts/utils/OracleTypehash.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

library OracleTypehash {
bytes32 public constant CREATE_TYPEHASH =
Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/IModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IOracle} from './IOracle.sol';
import {IValidator} from './IValidator.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/IOracle.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IAccessController, IOracleAccessController} from './access/IOracleAccessController.sol';

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

import {IOracle} from './IOracle.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/access/IAccessController.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

/**
* @title Access Controller Interface
Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/access/IModuleAccessController.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IAccessController} from './IAccessController.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/access/IOracleAccessController.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IAccessController} from './IAccessController.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/modules/access/IAccessModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IModule} from '../../IModule.sol';
import {IAccessController} from '../../access/IAccessController.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/modules/dispute/IDisputeModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IModule} from '../../IModule.sol';
import {IOracle} from '../../IOracle.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/modules/finality/IFinalityModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IModule} from '../../IModule.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/modules/request/IRequestModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IModule} from '../../IModule.sol';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IModule} from '../../IModule.sol';
import {IOracle} from '../../IOracle.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/interfaces/modules/response/IResponseModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IModule} from '../../IModule.sol';
import {IOracle} from '../../IOracle.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/libraries/ValidatorLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IOracle} from '../interfaces/IOracle.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/scripts/Deploy.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Script, console} from 'forge-std/Script.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/integration/EscalateDispute.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import './IntegrationBase.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/integration/Finalization.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import './IntegrationBase.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/integration/IntegrationBase.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

// solhint-disable no-unused-import
// solhint-disable-next-line no-console
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/integration/ResponseDispute.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import './IntegrationBase.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/integration/ResponseProposal.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import './IntegrationBase.sol';

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

import {Module} from '../../../contracts/Module.sol';

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

import {IMockAccounting} from '../interfaces/IMockAccounting.sol';

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

import {IOracle} from '../../../interfaces/IOracle.sol';

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

import {IAccessController, IOracle} from '../../../interfaces/IOracle.sol';

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

contract MockCallback {
uint256 public randomValue;
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/contracts/MockDisputeModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Module} from '../../../contracts/Module.sol';
import {IOracle} from '../../../interfaces/IOracle.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/contracts/MockFinalityModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IModule, Module} from '../../../contracts/Module.sol';
import {IOracle} from '../../../interfaces/IOracle.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/contracts/MockRequestModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Module} from '../../../contracts/Module.sol';
import {IOracle} from '../../../interfaces/IOracle.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/contracts/MockResolutionModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Module} from '../../../contracts/Module.sol';
import {IOracle} from '../../../interfaces/IOracle.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/contracts/MockResponseModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {Module} from '../../../contracts/Module.sol';
import {IOracle} from '../../../interfaces/IOracle.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/interfaces/IMockAccessModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IAccessController, IAccessModule} from '../../../interfaces/modules/access/IAccessModule.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/interfaces/IMockAccounting.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

interface IMockAccounting {}
2 changes: 1 addition & 1 deletion solidity/test/mocks/interfaces/IMockDisputeModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IERC20} from '../../utils/external/IERC20.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/interfaces/IMockFinalityModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IFinalityModule} from '../../../interfaces/modules/finality/IFinalityModule.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/interfaces/IMockRequestModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IERC20} from '../../utils/external/IERC20.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/interfaces/IMockResolutionModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IResolutionModule} from '../../../interfaces/modules/resolution/IResolutionModule.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/mocks/interfaces/IMockResponseModule.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IERC20} from '../../utils/external/IERC20.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/unit/CommonAccessController.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import 'forge-std/Test.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/unit/Module.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import 'forge-std/Test.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/unit/ModuleAccessController.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IModuleAccessController, ModuleAccessController} from '../../contracts/access/ModuleAccessController.sol';
import {IOracle} from '../../interfaces/IOracle.sol';
Expand Down Expand Up @@ -36,7 +36,7 @@
address public caller;

// Events
event AccessModuleSet(address indexed user, address indexed accessModule, bool approved);

Check warning on line 39 in solidity/test/unit/ModuleAccessController.t.sol

View workflow job for this annotation

GitHub Actions / Run Linters (20.x)

'user' should start with _

Check warning on line 39 in solidity/test/unit/ModuleAccessController.t.sol

View workflow job for this annotation

GitHub Actions / Run Linters (20.x)

'accessModule' should start with _

Check warning on line 39 in solidity/test/unit/ModuleAccessController.t.sol

View workflow job for this annotation

GitHub Actions / Run Linters (20.x)

'approved' should start with _

/**
* @notice Deploy the access controller
Expand All @@ -47,7 +47,7 @@
caller = makeAddr('Caller');
}

function _setAccessModuleForTest(address _user, address _accessModule, bool _approved) public {

Check warning on line 50 in solidity/test/unit/ModuleAccessController.t.sol

View workflow job for this annotation

GitHub Actions / Run Linters (20.x)

'_setAccessModuleForTest' should not start with _
vm.mockCall(
address(oracle),
abi.encodeWithSelector(IOracleAccessController.isAccessModuleApproved.selector, _user, _accessModule),
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/unit/Oracle.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import 'forge-std/Test.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/unit/OracleAccessController.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import 'forge-std/Test.sol';

Expand Down Expand Up @@ -32,7 +32,7 @@
address public caller;

// Events
event AccessModuleSet(address indexed user, address indexed accessModule, bool approved);

Check warning on line 35 in solidity/test/unit/OracleAccessController.t.sol

View workflow job for this annotation

GitHub Actions / Run Linters (20.x)

'user' should start with _

Check warning on line 35 in solidity/test/unit/OracleAccessController.t.sol

View workflow job for this annotation

GitHub Actions / Run Linters (20.x)

'accessModule' should start with _

Check warning on line 35 in solidity/test/unit/OracleAccessController.t.sol

View workflow job for this annotation

GitHub Actions / Run Linters (20.x)

'approved' should start with _

/**
* @notice Deploy the access controller
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/unit/Validator.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import 'forge-std/Test.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/unit/ValidatorLib.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import 'forge-std/Test.sol';

Expand Down
2 changes: 1 addition & 1 deletion solidity/test/utils/Helpers.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IOracle} from '../../contracts/Oracle.sol';
import {IAccessController} from '../../interfaces/access/IAccessController.sol';
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/utils/TestConstants.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

contract TestConstants {
address public constant USDC_ADDRESS = 0x7F5c764cBc14f9669B88837ca1490cCa17c31607;
Expand Down
2 changes: 1 addition & 1 deletion solidity/test/utils/external/IWETH9.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.19;
pragma solidity 0.8.26;

import {IERC20} from './IERC20.sol';

Expand Down
Loading