Skip to content

Commit 9313ebb

Browse files
RembrandtKclaude
andcommitted
refactor(interfaces): use caret pragma ranges instead of exact versions
- Dual-version interfaces: ^0.7.x || ^0.8.0 (max compatibility) - V0.8-only interfaces: ^0.8.22 (modern features support) Interfaces should allow wider compiler version ranges for external consumer compatibility, while implementations use exact versions for predictable compilation. Dual-version files use ^0.8.0 since they can't leverage v0.8 features anyway. V0.8-only files use ^0.8.22 for custom errors and named mappings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent d12114c commit 9313ebb

File tree

76 files changed

+76
-76
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+76
-76
lines changed

packages/interfaces/contracts/contracts/arbitrum/IArbToken.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* @title Minimum expected interface for L2 token that interacts with the L2 token bridge (this is the interface necessary
2828
* for a custom token that interacts with the bridge, see TestArbCustomToken.sol for an example implementation).
2929
*/
30-
pragma solidity ^0.7.6 || 0.8.27;
30+
pragma solidity ^0.7.6 || ^0.8.0;
3131

3232
/**
3333
* @title Arbitrum Token Interface

packages/interfaces/contracts/contracts/arbitrum/IBridge.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
*/
2525

26-
pragma solidity ^0.7.6 || 0.8.27;
26+
pragma solidity ^0.7.6 || ^0.8.0;
2727

2828
// TODO: Re-enable and fix issues when publishing a new version
2929
// solhint-disable gas-indexed-events

packages/interfaces/contracts/contracts/arbitrum/IInbox.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
*/
2525

26-
pragma solidity ^0.7.6 || 0.8.27;
26+
pragma solidity ^0.7.6 || ^0.8.0;
2727

2828
import { IBridge } from "./IBridge.sol";
2929
import { IMessageProvider } from "./IMessageProvider.sol";

packages/interfaces/contracts/contracts/arbitrum/IMessageProvider.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
*/
2525

26-
pragma solidity ^0.7.6 || 0.8.27;
26+
pragma solidity ^0.7.6 || ^0.8.0;
2727

2828
/**
2929
* @title Message Provider Interface

packages/interfaces/contracts/contracts/arbitrum/IOutbox.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
*/
2525

26-
pragma solidity ^0.7.6 || 0.8.27;
26+
pragma solidity ^0.7.6 || ^0.8.0;
2727

2828
// TODO: Re-enable and fix issues when publishing a new version
2929
// solhint-disable gas-indexed-events

packages/interfaces/contracts/contracts/arbitrum/ITokenGateway.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
*/
2525

26-
pragma solidity ^0.7.3 || 0.8.27;
26+
pragma solidity ^0.7.3 || ^0.8.0;
2727

2828
/**
2929
* @title Token Gateway Interface

packages/interfaces/contracts/contracts/base/IMulticall.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.27;
3+
pragma solidity ^0.7.6 || ^0.8.0;
44
pragma abicoder v2;
55

66
/**

packages/interfaces/contracts/contracts/curation/ICuration.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.27;
3+
pragma solidity ^0.7.6 || ^0.8.0;
44

55
/**
66
* @title Curation Interface

packages/interfaces/contracts/contracts/curation/IGraphCurationToken.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.27;
3+
pragma solidity ^0.7.6 || ^0.8.0;
44

55
import { IERC20Upgradeable } from "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol";
66

packages/interfaces/contracts/contracts/discovery/IGNS.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.27;
3+
pragma solidity ^0.7.6 || ^0.8.0;
44

55
/**
66
* @title Interface for GNS

0 commit comments

Comments
 (0)