Use explicit imports (#4399)
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com> Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
@ -2,7 +2,10 @@
|
||||
|
||||
pragma solidity ^0.8.19;
|
||||
|
||||
import "../../token/ERC20/extensions/ERC4626.sol";
|
||||
import {IERC20} from "../../token/ERC20/IERC20.sol";
|
||||
import {ERC4626} from "../../token/ERC20/extensions/ERC4626.sol";
|
||||
import {SafeERC20} from "../../token/ERC20/utils/SafeERC20.sol";
|
||||
import {Math} from "../../utils/math/Math.sol";
|
||||
|
||||
abstract contract ERC4626Fees is ERC4626 {
|
||||
using Math for uint256;
|
||||
|
||||
@ -1,11 +1,14 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.19;
|
||||
|
||||
import "../../../governance/Governor.sol";
|
||||
import "../../../governance/compatibility/GovernorCompatibilityBravo.sol";
|
||||
import "../../../governance/extensions/GovernorVotes.sol";
|
||||
import "../../../governance/extensions/GovernorVotesQuorumFraction.sol";
|
||||
import "../../../governance/extensions/GovernorTimelockControl.sol";
|
||||
import {IGovernor, Governor} from "../../../governance/Governor.sol";
|
||||
import {GovernorCompatibilityBravo} from "../../../governance/compatibility/GovernorCompatibilityBravo.sol";
|
||||
import {GovernorVotes} from "../../../governance/extensions/GovernorVotes.sol";
|
||||
import {GovernorVotesQuorumFraction} from "../../../governance/extensions/GovernorVotesQuorumFraction.sol";
|
||||
import {GovernorTimelockControl} from "../../../governance/extensions/GovernorTimelockControl.sol";
|
||||
import {TimelockController} from "../../../governance/TimelockController.sol";
|
||||
import {IVotes} from "../../../governance/utils/IVotes.sol";
|
||||
import {IERC165} from "../../../interfaces/IERC165.sol";
|
||||
|
||||
contract MyGovernor is
|
||||
Governor,
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.19;
|
||||
|
||||
import "../../../token/ERC20/ERC20.sol";
|
||||
import "../../../token/ERC20/extensions/ERC20Permit.sol";
|
||||
import "../../../token/ERC20/extensions/ERC20Votes.sol";
|
||||
import {ERC20} from "../../../token/ERC20/ERC20.sol";
|
||||
import {ERC20Permit} from "../../../token/ERC20/extensions/ERC20Permit.sol";
|
||||
import {ERC20Votes} from "../../../token/ERC20/extensions/ERC20Votes.sol";
|
||||
import {Nonces} from "../../../utils/Nonces.sol";
|
||||
|
||||
contract MyToken is ERC20, ERC20Permit, ERC20Votes {
|
||||
constructor() ERC20("MyToken", "MTK") ERC20Permit("MyToken") {}
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.19;
|
||||
|
||||
import "../../../token/ERC20/ERC20.sol";
|
||||
import "../../../token/ERC20/extensions/ERC20Permit.sol";
|
||||
import "../../../token/ERC20/extensions/ERC20Votes.sol";
|
||||
import {ERC20} from "../../../token/ERC20/ERC20.sol";
|
||||
import {ERC20Permit} from "../../../token/ERC20/extensions/ERC20Permit.sol";
|
||||
import {ERC20Votes} from "../../../token/ERC20/extensions/ERC20Votes.sol";
|
||||
import {Nonces} from "../../../utils/Nonces.sol";
|
||||
|
||||
contract MyTokenTimestampBased is ERC20, ERC20Permit, ERC20Votes {
|
||||
constructor() ERC20("MyTokenTimestampBased", "MTK") ERC20Permit("MyTokenTimestampBased") {}
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.19;
|
||||
|
||||
import "../../../token/ERC20/ERC20.sol";
|
||||
import "../../../token/ERC20/extensions/ERC20Permit.sol";
|
||||
import "../../../token/ERC20/extensions/ERC20Votes.sol";
|
||||
import "../../../token/ERC20/extensions/ERC20Wrapper.sol";
|
||||
import {IERC20, ERC20} from "../../../token/ERC20/ERC20.sol";
|
||||
import {ERC20Permit} from "../../../token/ERC20/extensions/ERC20Permit.sol";
|
||||
import {ERC20Votes} from "../../../token/ERC20/extensions/ERC20Votes.sol";
|
||||
import {ERC20Wrapper} from "../../../token/ERC20/extensions/ERC20Wrapper.sol";
|
||||
import {Nonces} from "../../../utils/Nonces.sol";
|
||||
|
||||
contract MyTokenWrapped is ERC20, ERC20Permit, ERC20Votes, ERC20Wrapper {
|
||||
constructor(
|
||||
|
||||
Reference in New Issue
Block a user