forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add generic factory interface (#14)
* test: add L2 standard bridge interop unit tests * fix: add tests natspec * fix: add generic factory interface
- Loading branch information
Showing
3 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
packages/contracts-bedrock/src/L2/IOptimismERC20Factory.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
/// @title IOptimismERC20Factory | ||
/// @notice Generic interface for IOptimismMintableERC20Factory and ISuperchainERC20Factory. Used to | ||
/// determine if a ERC20 contract is deployed by a factory. | ||
interface IOptimismERC20Factory { | ||
/// @notice Checks if a ERC20 token is deployed by the factory. | ||
/// @param _token The address of the ERC20 token to check the deployment. | ||
/// @return _remoteToken The address of the remote token if it is deployed or `address(0)` if not. | ||
function deployments(address _token) external view returns (address _remoteToken); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters