Skip to content

Commit

Permalink
Remove import of Optimism contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
RCantu92 committed Apr 19, 2024
1 parent e8964bf commit 3e37045
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
19 changes: 18 additions & 1 deletion contracts/token/FortaBridgedBaseSepolia.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,26 @@

pragma solidity ^0.8.9;

import "@eth-optimism/contracts-bedrock/src/universal/IOptimismMintableERC20.sol";
import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
import "./FortaCommon.sol";

/**
* Interface necessary to implement for successful bridging
* from Ethereum mainnet to OP-stack chains, which for us
* would be the Base Sepolia testnet.
* Detailed here:
* https://docs.optimism.io/builders/app-developers/bridging/standard-bridge#bridged-tokens
*/
interface IOptimismMintableERC20 is IERC165 {
function remoteToken() external view returns (address);

function bridge() external returns (address);

function mint(address _to, uint256 _amount) external;

function burn(address _from, uint256 _amount) external;
}

/**
* This version of the Forta token is living on the Base Sepolia Layer 2 testnet.
*
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
},
"dependencies": {
"@ensdomains/ens-contracts": "^0.0.7",
"@eth-optimism/contracts-bedrock": "^0.17.2",
"@gnosis.pm/safe-ethers-lib": "^1.1.0",
"@openzeppelin/contracts": "4.7.0",
"@openzeppelin/contracts-upgradeable": "4.7.0"
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -407,11 +407,6 @@
"resolved" "https://registry.npmjs.org/@eslint/js/-/js-8.41.0.tgz"
"version" "8.41.0"

"@eth-optimism/contracts-bedrock@^0.17.2":
"integrity" "sha512-YVwPHpBZgFwFX9qY8+iToVAAH7mSnVIVmih+YfHhqjAhlLvLZfYjvj+hRNgcB9eRyl1SOOB0jevp4JOOV1v2BA=="
"resolved" "https://registry.npmjs.org/@eth-optimism/contracts-bedrock/-/contracts-bedrock-0.17.2.tgz"
"version" "0.17.2"

"@ethereum-waffle/chai@^3.4.4":
"integrity" "sha512-/K8czydBtXXkcM9X6q29EqEkc5dN3oYenyH2a9hF7rGAApAJUpH8QBtojxOY/xQ2up5W332jqgxwp0yPiYug1g=="
"resolved" "https://registry.npmjs.org/@ethereum-waffle/chai/-/chai-3.4.4.tgz"
Expand Down

0 comments on commit 3e37045

Please sign in to comment.