Skip to content

Commit

Permalink
Transpile a83918df
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 8, 2023
1 parent 5bc5999 commit f55babc
Show file tree
Hide file tree
Showing 165 changed files with 272 additions and 195 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
steps:
- uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 16.x
- uses: actions/cache@v3
id: cache
with:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog


## 4.9.4 (2023-12-07)

- `ERC2771Context` and `Context`: Introduce a `_contextPrefixLength()` getter, used to trim extra information appended to `msg.data`.
- `Multicall`: Make aware of non-canonical context (i.e. `msg.sender` is not `_msgSender()`), allowing compatibility with `ERC2771Context`.

## 4.9.3 (2023-07-28)

- `ERC2771Context`: Return the forwarder address whenever the `msg.data` of a call originating from a trusted forwarder is not long enough to contain the request signer address (i.e. `msg.data.length` is less than 20 bytes), as specified by ERC-2771. ([#4481](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/4481))
Expand Down
2 changes: 1 addition & 1 deletion contracts/access/AccessControlCrossChainUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity ^0.8.4;

import "./AccessControlUpgradeable.sol";
import "../crosschain/CrossChainEnabledUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev An extension to {AccessControl} with support for cross-chain access management.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "./AccessControlUpgradeable.sol";
import "./IAccessControlDefaultAdminRulesUpgradeable.sol";
import "../utils/math/SafeCastUpgradeable.sol";
import "../interfaces/IERC5313Upgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev Extension of {AccessControl} that allows specifying special rules to manage
Expand Down
2 changes: 1 addition & 1 deletion contracts/access/AccessControlEnumerableUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pragma solidity ^0.8.0;
import "./IAccessControlEnumerableUpgradeable.sol";
import "./AccessControlUpgradeable.sol";
import "../utils/structs/EnumerableSetUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev Extension of {AccessControl} that allows enumerating the members of each role.
Expand Down
2 changes: 1 addition & 1 deletion contracts/access/AccessControlUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev Contract module that allows children to implement role-based access
Expand Down
2 changes: 1 addition & 1 deletion contracts/access/Ownable2StepUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pragma solidity ^0.8.0;

import "./OwnableUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev Contract module which provides access control mechanism, where
Expand Down
2 changes: 1 addition & 1 deletion contracts/access/OwnableUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pragma solidity ^0.8.0;

import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev Contract module which provides a basic access control mechanism, where
Expand Down
2 changes: 1 addition & 1 deletion contracts/crosschain/CrossChainEnabledUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pragma solidity ^0.8.4;

import "./errorsUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev Provides information for building cross-chain aware contracts. This
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity ^0.8.4;

import "../CrossChainEnabledUpgradeable.sol";
import "./LibAMBUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev https://docs.tokenbridge.net/amb-bridge/about-amb-bridge[AMB]
Expand Down
2 changes: 1 addition & 1 deletion contracts/crosschain/amb/LibAMBUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pragma solidity ^0.8.4;

import { IAMBUpgradeable as AMB_Bridge } from "../../vendor/amb/IAMBUpgradeable.sol";
import {IAMBUpgradeable as AMB_Bridge} from "../../vendor/amb/IAMBUpgradeable.sol";
import "../errorsUpgradeable.sol";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity ^0.8.4;

import "../CrossChainEnabledUpgradeable.sol";
import "./LibArbitrumL1Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev https://arbitrum.io/[Arbitrum] specialization or the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity ^0.8.4;

import "../CrossChainEnabledUpgradeable.sol";
import "./LibArbitrumL2Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev https://arbitrum.io/[Arbitrum] specialization or the
Expand Down
4 changes: 2 additions & 2 deletions contracts/crosschain/arbitrum/LibArbitrumL1Upgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

pragma solidity ^0.8.4;

import { IBridgeUpgradeable as ArbitrumL1_Bridge } from "../../vendor/arbitrum/IBridgeUpgradeable.sol";
import { IOutboxUpgradeable as ArbitrumL1_Outbox } from "../../vendor/arbitrum/IOutboxUpgradeable.sol";
import {IBridgeUpgradeable as ArbitrumL1_Bridge} from "../../vendor/arbitrum/IBridgeUpgradeable.sol";
import {IOutboxUpgradeable as ArbitrumL1_Outbox} from "../../vendor/arbitrum/IOutboxUpgradeable.sol";
import "../errorsUpgradeable.sol";

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/crosschain/arbitrum/LibArbitrumL2Upgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pragma solidity ^0.8.4;

import { IArbSysUpgradeable as ArbitrumL2_Bridge } from "../../vendor/arbitrum/IArbSysUpgradeable.sol";
import {IArbSysUpgradeable as ArbitrumL2_Bridge} from "../../vendor/arbitrum/IArbSysUpgradeable.sol";
import "../errorsUpgradeable.sol";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity ^0.8.4;

import "../CrossChainEnabledUpgradeable.sol";
import "./LibOptimismUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev https://www.optimism.io/[Optimism] specialization or the
Expand Down
2 changes: 1 addition & 1 deletion contracts/crosschain/optimism/LibOptimismUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pragma solidity ^0.8.4;

import { ICrossDomainMessengerUpgradeable as Optimism_Bridge } from "../../vendor/optimism/ICrossDomainMessengerUpgradeable.sol";
import {ICrossDomainMessengerUpgradeable as Optimism_Bridge} from "../../vendor/optimism/ICrossDomainMessengerUpgradeable.sol";
import "../errorsUpgradeable.sol";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "../CrossChainEnabledUpgradeable.sol";
import "../../security/ReentrancyGuardUpgradeable.sol";
import "../../utils/AddressUpgradeable.sol";
import "../../vendor/polygon/IFxMessageProcessorUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

address constant DEFAULT_SENDER = 0x000000000000000000000000000000000000dEaD;

Expand Down
2 changes: 1 addition & 1 deletion contracts/finance/PaymentSplitterUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pragma solidity ^0.8.0;
import "../token/ERC20/utils/SafeERC20Upgradeable.sol";
import "../utils/AddressUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @title PaymentSplitter
Expand Down
2 changes: 1 addition & 1 deletion contracts/finance/VestingWalletUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity ^0.8.0;
import "../token/ERC20/utils/SafeERC20Upgradeable.sol";
import "../utils/AddressUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @title VestingWallet
Expand Down
2 changes: 1 addition & 1 deletion contracts/governance/GovernorUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "../utils/structs/DoubleEndedQueueUpgradeable.sol";
import "../utils/AddressUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "./IGovernorUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev Core of the governance system, designed to be extended though various modules.
Expand Down
2 changes: 1 addition & 1 deletion contracts/governance/IGovernorUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity ^0.8.0;

import "../interfaces/IERC165Upgradeable.sol";
import "../interfaces/IERC6372Upgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev Interface of the {Governor} core.
Expand Down
2 changes: 1 addition & 1 deletion contracts/governance/TimelockControllerUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pragma solidity ^0.8.0;
import "../access/AccessControlUpgradeable.sol";
import "../token/ERC721/IERC721ReceiverUpgradeable.sol";
import "../token/ERC1155/IERC1155ReceiverUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev Contract module which acts as a timelocked controller. When set as the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pragma solidity ^0.8.0;

import "./TimelockControllerUpgradeable.sol";
import "../proxy/utils/Initializable.sol";
import {Initializable} from "../proxy/utils/Initializable.sol";

/**
* @dev Extension of the TimelockController that includes an additional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "../../utils/math/SafeCastUpgradeable.sol";
import "../extensions/IGovernorTimelockUpgradeable.sol";
import "../GovernorUpgradeable.sol";
import "./IGovernorCompatibilityBravoUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Compatibility layer that implements GovernorBravo compatibility on top of {Governor}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pragma solidity ^0.8.0;

import "../IGovernorUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Interface extension that adds missing functions to the {Governor} core to provide `GovernorBravo` compatibility.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pragma solidity ^0.8.0;

import "../GovernorUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Extension of {Governor} for simple, 3 options, vote counting.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity ^0.8.0;

import "../GovernorUpgradeable.sol";
import "../../utils/math/MathUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev A module that ensures there is a minimum voting period after quorum is reached. This prevents a large voter from
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pragma solidity ^0.8.0;

import "../GovernorUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Extension of {Governor} for proposal restriction to token holders with a minimum balance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pragma solidity ^0.8.0;

import "../GovernorUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Extension of {Governor} for settings updatable through governance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "./IGovernorTimelockUpgradeable.sol";
import "../GovernorUpgradeable.sol";
import "../../utils/math/SafeCastUpgradeable.sol";
import "../../vendor/compound/ICompoundTimelockUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Extension of {Governor} that binds the execution process to a Compound Timelock. This adds a delay, enforced by
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pragma solidity ^0.8.0;
import "./IGovernorTimelockUpgradeable.sol";
import "../GovernorUpgradeable.sol";
import "../TimelockControllerUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Extension of {Governor} that binds the execution process to an instance of {TimelockController}. This adds a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity ^0.8.0;

import "../GovernorUpgradeable.sol";
import "../../token/ERC20/extensions/ERC20VotesCompUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Extension of {Governor} for voting weight extraction from a Comp token.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pragma solidity ^0.8.0;
import "./GovernorVotesUpgradeable.sol";
import "../../utils/CheckpointsUpgradeable.sol";
import "../../utils/math/SafeCastUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Extension of {Governor} for voting weight extraction from an {ERC20Votes} token and a quorum expressed as a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pragma solidity ^0.8.0;

import "../GovernorUpgradeable.sol";
import "../../interfaces/IERC5805Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Extension of {Governor} for voting weight extraction from an {ERC20Votes} token, or since v4.5 an {ERC721Votes} token.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pragma solidity ^0.8.0;

import "../IGovernorUpgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev Extension of the {IGovernor} for timelock supporting modules.
Expand Down
2 changes: 1 addition & 1 deletion contracts/governance/utils/VotesUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "../../utils/ContextUpgradeable.sol";
import "../../utils/CountersUpgradeable.sol";
import "../../utils/CheckpointsUpgradeable.sol";
import "../../utils/cryptography/EIP712Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";
import {Initializable} from "../../proxy/utils/Initializable.sol";

/**
* @dev This is a base abstract contract that tracks voting units, which are a measure of voting power that can be
Expand Down
Loading

0 comments on commit f55babc

Please sign in to comment.