Skip to content

Commit

Permalink
upgrade compiler to >=0.8.19
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed Aug 3, 2023
1 parent ebb0f9a commit c5c9b1b
Show file tree
Hide file tree
Showing 41 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ libs = ["lib"]
# optimizer = true (default)
optimizer_runs = 200
fs_permissions = [{ access = "read-write", path = "./" }]
solc = "0.8.17"
solc = "0.8.19"

[profile.ci]
verbosity = 4
Expand Down
2 changes: 1 addition & 1 deletion script/Adapter_Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Script } from "forge-std/Script.sol";

Expand Down
2 changes: 1 addition & 1 deletion script/Tenderize_Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Script, console2 } from "forge-std/Script.sol";
import { ERC1967Proxy } from "openzeppelin-contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/XYZ_Data.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Script, console2 } from "forge-std/Script.sol";
import { MockERC20 } from "solmate/test/utils/mocks/MockERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion script/XYZ_Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Script, console2 } from "forge-std/Script.sol";
import { MockERC20 } from "solmate/test/utils/mocks/MockERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/Adapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import { IERC165 } from "core/interfaces/IERC165.sol";

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

interface Adapter is IERC165 {
function previewDeposit(uint256 assets) external view returns (uint256);
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/GraphAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { SafeTransferLib } from "solmate/utils/SafeTransferLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/LivepeerAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { SafeTransferLib } from "solmate/utils/SafeTransferLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/interfaces/IGraph.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

interface IGraphStaking {
// -- Delegation Data --
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/interfaces/ILivepeer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

interface ILivepeerBondingManager {
function bond(uint256 _amount, address _to) external;
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/interfaces/ISwapRouter.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

/// @title Router token swapping functionality
/// @notice Functions for swapping tokens via Uniswap V3
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/interfaces/IWETH9.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { IERC20 } from "core/interfaces/IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/factory/Factory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { ClonesWithImmutableArgs } from "clones/ClonesWithImmutableArgs.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IERC165.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

/**
* @dev Interface of the ERC165 standard, as defined in the
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

interface IERC20Metadata {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IERC721.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

interface IERC721 {
function name() external view returns (string memory);
Expand Down
2 changes: 1 addition & 1 deletion src/registry/Registry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { AccessControlUpgradeable } from "openzeppelin-contracts-upgradeable/access/AccessControlUpgradeable.sol";
import { Initializable } from "openzeppelin-contracts-upgradeable/proxy/utils/Initializable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/registry/RegistryStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

contract RegistryStorage {
uint256 private constant STORAGE = uint256(keccak256("xyz.tenderize.registry.storage.location")) - 1;
Expand Down
2 changes: 1 addition & 1 deletion src/registry/Roles.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

bytes32 constant FACTORY_ROLE = keccak256("FACTORY");
bytes32 constant FEE_GAUGE_ROLE = keccak256("FEE_GAUGE");
Expand Down
2 changes: 1 addition & 1 deletion src/tenderizer/ITenderizer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { IERC20 } from "core/interfaces/IERC20.sol";
import { Tenderizer } from "core/tenderizer/Tenderizer.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/tenderizer/Tenderizer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { ERC20 } from "solmate/tokens/ERC20.sol";
import { FixedPointMathLib } from "solmate/utils/FixedPointMathLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/tenderizer/TenderizerBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Clone } from "clones/Clone.sol";
import { Unlocks } from "core/unlocks/Unlocks.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/tendertoken/TToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { FixedPointMathLib } from "solmate/utils/FixedPointMathLib.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/tendertoken/TTokenStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

abstract contract TTokenStorage {
uint256 private constant STORAGE = uint256(keccak256("xyz.tenderize.tToken.storage.location")) - 1;
Expand Down
2 changes: 1 addition & 1 deletion src/unlocks/Base64.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

/**
* Based on Brecht Devos (Brechtpd) implementation - MIT licence
Expand Down
2 changes: 1 addition & 1 deletion src/unlocks/Renderer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Strings } from "openzeppelin-contracts/utils/Strings.sol";
import { Initializable } from "openzeppelin-contracts-upgradeable/proxy/utils/Initializable.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/unlocks/Unlocks.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Tenderizer } from "core/tenderizer/Tenderizer.sol";
import { Registry } from "core/registry/Registry.sol";
import { Renderer } from "core/unlocks/Renderer.sol";

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

// solhint-disable quotes

Expand Down
2 changes: 1 addition & 1 deletion test/adapters/GraphAdapter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Test, stdError } from "forge-std/Test.sol";
import { GraphAdapter } from "core/adapters/GraphAdapter.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/factory/Factory.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Test, stdError } from "forge-std/Test.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/helpers/Helpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Vm } from "forge-std/Test.sol";

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

import { ERC20 } from "solmate/tokens/ERC20.sol";

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

contract StakingXYZ {
mapping(address => uint256) public staked;
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/UUPSTestHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Test } from "forge-std/Test.sol";
import { ERC1967Proxy } from "openzeppelin-contracts/proxy/ERC1967/ERC1967Proxy.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/XYZAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { IERC165 } from "core/interfaces/IERC165.sol";

import { StakingXYZ } from "./StakingXYZ.sol";

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

contract XYZAdapter is Adapter {
address immutable STAKINGXYZ;

Check warning on line 22 in test/helpers/XYZAdapter.sol

View workflow job for this annotation

GitHub Actions / lint

Explicitly mark visibility of state
Expand Down
2 changes: 1 addition & 1 deletion test/registry/Registry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Test } from "forge-std/Test.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/tenderizer/Tenderizer.harness.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Tenderizer, Adapter } from "core/tenderizer/Tenderizer.sol";
import { Unlocks } from "core/unlocks/Unlocks.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/tenderizer/Tenderizer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Test, stdError } from "forge-std/Test.sol";
import { TestHelpers } from "test/helpers/Helpers.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/tendertoken/TToken.invariant.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// solhint-disable no-empty-blocks
// solhint-disable no-console

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { console2 } from "forge-std/console2.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/tendertoken/TToken.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Test, stdError } from "forge-std/Test.sol";
import { TestHelpers } from "test/helpers/Helpers.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/unlocks/Base64.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// solhint-disable func-name-mixedcase
// solhint-disable no-empty-blocks

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Test } from "forge-std/Test.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/unlocks/Renderer.t.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Test } from "forge-std/Test.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/unlocks/Unlocks.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// Copyright (c) Tenderize Labs Ltd

pragma solidity 0.8.17;
pragma solidity >=0.8.19;

import { Test, stdError } from "forge-std/Test.sol";

Expand Down

0 comments on commit c5c9b1b

Please sign in to comment.