Skip to content

Commit

Permalink
Making the compiler version flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed May 14, 2024
1 parent a62d90e commit 1899fae
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 16 deletions.
3 changes: 1 addition & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ libs = ["lib"]
evm_version = "shanghai"
optimizer = true
optimizer-runs = 10_000_000
solc = "0.8.17"

solc="0.8.17"

[rpc_endpoints]
sepolia = "${SEPOLIA_RPC_URL}"
Expand Down
2 changes: 1 addition & 1 deletion src/EmergencyMultisig.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import {SafeCastUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/math/SafeCastUpgradeable.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/Multisig.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import {SafeCastUpgradeable} from "@openzeppelin/contracts-upgradeable/utils/math/SafeCastUpgradeable.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/PublicKeyRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity 0.8.17;
pragma solidity ^0.8.17;

/// @title PublicKeyRegistry - Release 1, Build 1
/// @author Aragon Association - 2024
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IEmergencyMultisig.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import {IDAO} from "@aragon/osx/core/dao/IDAO.sol";

Expand Down
12 changes: 3 additions & 9 deletions src/interfaces/IMultisig.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later

pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import {IDAO} from "@aragon/osx/core/dao/IDAO.sol";

Expand Down Expand Up @@ -28,10 +28,7 @@ interface IMultisig {
/// @param _account The address of the user to check.
/// @return Returns true if the account is allowed to vote.
/// @dev The function assumes the queried proposal exists.
function canApprove(
uint256 _proposalId,
address _account
) external view returns (bool);
function canApprove(uint256 _proposalId, address _account) external view returns (bool);

/// @notice Checks if a proposal can be executed.
/// @param _proposalId The ID of the proposal to be checked.
Expand All @@ -42,10 +39,7 @@ interface IMultisig {
/// @param _proposalId The ID of the proposal.
/// @param _account The account address to be checked.
/// @return The vote option cast by a voter for a certain proposal.
function hasApproved(
uint256 _proposalId,
address _account
) external view returns (bool);
function hasApproved(uint256 _proposalId, address _account) external view returns (bool);

/// @notice Executes a proposal.
/// @param _proposalId The ID of the proposal to be executed.
Expand Down
18 changes: 18 additions & 0 deletions src/interfaces/ITaikoEssentialContract.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

interface IEssentialContract {
/// @notice Pauses the contract.
function pause() external;

/// @notice Unpauses the contract.
function unpause() external;

function impl() external view returns (address);

/// @notice Returns true if the contract is paused, and false otherwise.
/// @return true if paused, false otherwise.
function paused() external view returns (bool);

function inNonReentrant() external view returns (bool);
}
2 changes: 1 addition & 1 deletion test/base/AragonTest.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.17;
pragma solidity ^0.8.17;

import {IPluginSetup, PluginSetup} from "@aragon/osx/framework/plugin/setup/PluginSetup.sol";
import {DAO} from "@aragon/osx/core/dao/DAO.sol";
Expand Down

0 comments on commit 1899fae

Please sign in to comment.