Skip to content

Commit

Permalink
Update all pragmas (#1358)
Browse files Browse the repository at this point in the history
* Update all pragmas

* Lint fix

* Fix compiler version in fixture
  • Loading branch information
theethernaut committed Jan 23, 2023
1 parent a6c46d3 commit 669adde
Show file tree
Hide file tree
Showing 268 changed files with 577 additions and 284 deletions.
2 changes: 1 addition & 1 deletion markets/legacy-market/contracts/InitialModuleBundle.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-modules/contracts/modules/OwnerModule.sol";
import "@synthetixio/core-modules/contracts/modules/UpgradeModule.sol";
Expand Down
2 changes: 1 addition & 1 deletion markets/legacy-market/contracts/LegacyMarket.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/main/contracts/interfaces/external/IMarket.sol";
import "synthetix/contracts/interfaces/ILiquidatorRewards.sol";
Expand Down
2 changes: 1 addition & 1 deletion markets/legacy-market/contracts/Proxy.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import {UUPSProxy} from "@synthetixio/core-contracts/contracts/proxy/UUPSProxy.sol";

Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "synthetix/contracts/interfaces/IAddressResolver.sol";
import "./external/IV3CoreProxy.sol";
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

library VestingEntries {
struct VestingEntry {
Expand Down
32 changes: 14 additions & 18 deletions markets/legacy-market/contracts/interfaces/external/ISynthetix.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

// https://docs.synthetix.io/contracts/source/interfaces/isynthetix
interface ISynthetix {
Expand All @@ -20,20 +20,17 @@ interface ISynthetix {

function maxIssuableSynths(address issuer) external view returns (uint maxIssuable);

function remainingIssuableSynths(address issuer)
external
view
returns (
uint maxIssuable,
uint alreadyIssued,
uint totalSystemDebt
);
function remainingIssuableSynths(
address issuer
) external view returns (uint maxIssuable, uint alreadyIssued, uint totalSystemDebt);

function synthsByAddress(address synthAddress) external view returns (bytes32);

function totalIssuedSynths(bytes32 currencyKey) external view returns (uint);

function totalIssuedSynthsExcludeOtherCollateral(bytes32 currencyKey) external view returns (uint);
function totalIssuedSynthsExcludeOtherCollateral(
bytes32 currencyKey
) external view returns (uint);

function transferableSynthetix(address account) external view returns (uint transferable);

Expand Down Expand Up @@ -104,18 +101,17 @@ interface ISynthetix {

function mint() external returns (bool);

function settle(bytes32 currencyKey)
external
returns (
uint reclaimed,
uint refunded,
uint numEntries
);
function settle(
bytes32 currencyKey
) external returns (uint reclaimed, uint refunded, uint numEntries);

// Liquidations
function liquidateDelinquentAccount(address account) external returns (bool);

function liquidateDelinquentAccountEscrowIndex(address account, uint escrowStartIndex) external returns (bool);
function liquidateDelinquentAccountEscrowIndex(
address account,
uint escrowStartIndex
) external returns (bool);

function liquidateSelf() external returns (bool);

Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

interface IV3CoreProxy {
function registerMarket(address market) external returns (uint128);
Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/contracts/Mocks.sol
@@ -1,4 +1,4 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/main/contracts/mocks/AggregatorV3Mock.sol";
2 changes: 1 addition & 1 deletion markets/spot-market/contracts/Proxy.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import {UUPSProxy} from "@synthetixio/core-contracts/contracts/proxy/UUPSProxy.sol";

Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-modules/contracts/interfaces/INftModule.sol";

Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "../storage/AsyncOrderConfiguration.sol";

Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/main/contracts/interfaces/external/IMarket.sol";

Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

/**
* @title Module for market-specific fee configuration
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/main/contracts/interfaces/external/IMarket.sol";
import "@synthetixio/core-modules/contracts/interfaces/ITokenModule.sol";
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-modules/contracts/interfaces/IDecayTokenModule.sol";

Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

/**
* @title Module for synth wrappers
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

interface IChainlinkVerifier {
function verify(bytes memory chainlinkBlob) external returns (bytes memory verifierResponse);
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-contracts/contracts/interfaces/IERC165.sol";

Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

interface IPythVerifier {
// A price with a degree of uncertainty, represented as a price +- a confidence interval.
Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/contracts/modules/AsyncOrderModule.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/main/contracts/interfaces/IMarketManagerModule.sol";
import "@synthetixio/core-contracts/contracts/utils/DecimalMath.sol";
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/main/contracts/interfaces/IMarketManagerModule.sol";
import "@synthetixio/core-contracts/contracts/utils/DecimalMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/contracts/modules/CoreModule.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import {CoreModule as BaseCoreModule} from "@synthetixio/core-modules/contracts/modules/CoreModule.sol";

Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-modules/contracts/modules/AssociatedSystemsModule.sol";
import "@synthetixio/core-contracts/contracts/utils/ERC165Helper.sol";
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/main/contracts/interfaces/IMarketManagerModule.sol";
import "@synthetixio/core-modules/contracts/modules/AssociatedSystemsModule.sol";
Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/contracts/modules/WrapperModule.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-contracts/contracts/utils/DecimalMath.sol";
import "@synthetixio/core-contracts/contracts/interfaces/IERC20.sol";
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-modules/contracts/modules/NftModule.sol";
import "../../../contracts/interfaces/IAsyncOrderClaimTokenModule.sol";
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-contracts/contracts/ownership/OwnableStorage.sol";
import "@synthetixio/core-modules/contracts/modules/DecayTokenModule.sol";
Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/contracts/storage/AsyncOrderClaim.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "./AsyncOrderConfiguration.sol";
import "./SpotMarketFactory.sol";
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "./AsyncOrderClaim.sol";

Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/contracts/storage/Price.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/oracle-manager/contracts/interfaces/INodeModule.sol";
import "@synthetixio/oracle-manager/contracts/storage/NodeOutput.sol";
Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-modules/contracts/interfaces/ITokenModule.sol";
import "@synthetixio/oracle-manager/contracts/interfaces/INodeModule.sol";
Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/contracts/storage/Wrapper.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-modules/contracts/interfaces/ITokenModule.sol";

Expand Down
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-modules/contracts/interfaces/INftModule.sol";
import "@synthetixio/core-modules/contracts/storage/AssociatedSystem.sol";
Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/contracts/utils/FeeUtil.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-contracts/contracts/utils/SafeCast.sol";
import "@synthetixio/core-contracts/contracts/utils/DecimalMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion markets/spot-market/contracts/utils/SynthUtil.sol
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity >=0.8.11 <0.9.0;

import "@synthetixio/core-modules/contracts/interfaces/ITokenModule.sol";
import "@synthetixio/core-modules/contracts/storage/AssociatedSystem.sol";
Expand Down

0 comments on commit 669adde

Please sign in to comment.