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:
Francisco
2023-06-29 17:12:26 -03:00
committed by GitHub
parent d6a8b2ccd7
commit 874c2d3c02
176 changed files with 428 additions and 379 deletions

View File

@ -3,8 +3,8 @@
pragma solidity ^0.8.19;
import "../Proxy.sol";
import "./ERC1967Utils.sol";
import {Proxy} from "../Proxy.sol";
import {ERC1967Utils} from "./ERC1967Utils.sol";
/**
* @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an

View File

@ -3,9 +3,9 @@
pragma solidity ^0.8.20;
import "../beacon/IBeacon.sol";
import "../../utils/Address.sol";
import "../../utils/StorageSlot.sol";
import {IBeacon} from "../beacon/IBeacon.sol";
import {Address} from "../../utils/Address.sol";
import {StorageSlot} from "../../utils/StorageSlot.sol";
/**
* @dev This abstract contract provides getters and event emitting update functions for

View File

@ -3,9 +3,9 @@
pragma solidity ^0.8.19;
import "./IBeacon.sol";
import "../Proxy.sol";
import "../ERC1967/ERC1967Utils.sol";
import {IBeacon} from "./IBeacon.sol";
import {Proxy} from "../Proxy.sol";
import {ERC1967Utils} from "../ERC1967/ERC1967Utils.sol";
/**
* @dev This contract implements a proxy that gets the implementation address for each call from an {UpgradeableBeacon}.

View File

@ -3,8 +3,8 @@
pragma solidity ^0.8.19;
import "./IBeacon.sol";
import "../../access/Ownable.sol";
import {IBeacon} from "./IBeacon.sol";
import {Ownable} from "../../access/Ownable.sol";
/**
* @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their

View File

@ -3,8 +3,8 @@
pragma solidity ^0.8.19;
import "./TransparentUpgradeableProxy.sol";
import "../../access/Ownable.sol";
import {ITransparentUpgradeableProxy, TransparentUpgradeableProxy} from "./TransparentUpgradeableProxy.sol";
import {Ownable} from "../../access/Ownable.sol";
/**
* @dev This is an auxiliary contract meant to be assigned as the admin of a {TransparentUpgradeableProxy}. For an

View File

@ -3,8 +3,9 @@
pragma solidity ^0.8.19;
import "../ERC1967/ERC1967Proxy.sol";
import "../../interfaces/IERC1967.sol";
import {ERC1967Utils} from "../ERC1967/ERC1967Utils.sol";
import {ERC1967Proxy} from "../ERC1967/ERC1967Proxy.sol";
import {IERC1967} from "../../interfaces/IERC1967.sol";
/**
* @dev Interface for {TransparentUpgradeableProxy}. In order to implement transparency, {TransparentUpgradeableProxy}

View File

@ -3,7 +3,7 @@
pragma solidity ^0.8.19;
import "../../utils/Address.sol";
import {Address} from "../../utils/Address.sol";
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed

View File

@ -3,8 +3,8 @@
pragma solidity ^0.8.19;
import "../../interfaces/draft-IERC1822.sol";
import "../ERC1967/ERC1967Utils.sol";
import {IERC1822Proxiable} from "../../interfaces/draft-IERC1822.sol";
import {ERC1967Utils} from "../ERC1967/ERC1967Utils.sol";
/**
* @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an