Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
99a9ab1f
Unverified
Commit
99a9ab1f
authored
Sep 28, 2021
by
elenadimitrova
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the keyword override from interface implementations
parent
f8f85124
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
7 additions
and
61 deletions
+7
-61
L1CrossDomainMessenger.sol
...ntracts/contracts/L1/messaging/L1CrossDomainMessenger.sol
+0
-4
L1StandardBridge.sol
...ges/contracts/contracts/L1/messaging/L1StandardBridge.sol
+1
-7
CanonicalTransactionChain.sol
...ntracts/contracts/L1/rollup/CanonicalTransactionChain.sol
+0
-14
ChainStorageContainer.sol
...s/contracts/contracts/L1/rollup/ChainStorageContainer.sol
+0
-8
StateCommitmentChain.sol
...es/contracts/contracts/L1/rollup/StateCommitmentChain.sol
+0
-7
BondManager.sol
packages/contracts/contracts/L1/verification/BondManager.sol
+0
-8
L2CrossDomainMessenger.sol
...ntracts/contracts/L2/messaging/L2CrossDomainMessenger.sol
+0
-3
L2StandardBridge.sol
...ges/contracts/contracts/L2/messaging/L2StandardBridge.sol
+1
-4
OVM_L2ToL1MessagePasser.sol
...racts/contracts/L2/predeploys/OVM_L2ToL1MessagePasser.sol
+0
-1
CrossDomainEnabled.sol
...ntracts/contracts/libraries/bridge/CrossDomainEnabled.sol
+1
-1
L2StandardERC20.sol
...ntracts/contracts/libraries/standards/L2StandardERC20.sol
+4
-4
No files found.
packages/contracts/contracts/L1/messaging/L1CrossDomainMessenger.sol
View file @
99a9ab1f
...
@@ -162,7 +162,6 @@ contract L1CrossDomainMessenger is
...
@@ -162,7 +162,6 @@ contract L1CrossDomainMessenger is
function xDomainMessageSender()
function xDomainMessageSender()
public
public
override
view
view
returns (
returns (
address
address
...
@@ -183,7 +182,6 @@ contract L1CrossDomainMessenger is
...
@@ -183,7 +182,6 @@ contract L1CrossDomainMessenger is
bytes memory _message,
bytes memory _message,
uint32 _gasLimit
uint32 _gasLimit
)
)
override
public
public
{
{
address ovmCanonicalTransactionChain = resolve("CanonicalTransactionChain");
address ovmCanonicalTransactionChain = resolve("CanonicalTransactionChain");
...
@@ -218,7 +216,6 @@ contract L1CrossDomainMessenger is
...
@@ -218,7 +216,6 @@ contract L1CrossDomainMessenger is
uint256 _messageNonce,
uint256 _messageNonce,
L2MessageInclusionProof memory _proof
L2MessageInclusionProof memory _proof
)
)
override
public
public
nonReentrant
nonReentrant
onlyRelayer
onlyRelayer
...
@@ -292,7 +289,6 @@ contract L1CrossDomainMessenger is
...
@@ -292,7 +289,6 @@ contract L1CrossDomainMessenger is
uint256 _queueIndex,
uint256 _queueIndex,
uint32 _gasLimit
uint32 _gasLimit
)
)
override
public
public
{
{
// Verify that the message is in the queue:
// Verify that the message is in the queue:
...
...
packages/contracts/contracts/L1/messaging/L1StandardBridge.sol
View file @
99a9ab1f
...
@@ -28,7 +28,7 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
...
@@ -28,7 +28,7 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
* External Contract References *
* External Contract References *
********************************/
********************************/
address public
override
l2TokenBridge;
address public l2TokenBridge;
// Maps L1 token to L2 token to balance of the L1 token deposited
// Maps L1 token to L2 token to balance of the L1 token deposited
mapping(address => mapping (address => uint256)) public deposits;
mapping(address => mapping (address => uint256)) public deposits;
...
@@ -101,7 +101,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
...
@@ -101,7 +101,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
bytes calldata _data
bytes calldata _data
)
)
external
external
override
payable
payable
onlyEOA()
onlyEOA()
{
{
...
@@ -122,7 +121,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
...
@@ -122,7 +121,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
bytes calldata _data
bytes calldata _data
)
)
external
external
override
payable
payable
{
{
_initiateETHDeposit(
_initiateETHDeposit(
...
@@ -184,7 +182,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
...
@@ -184,7 +182,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
bytes calldata _data
bytes calldata _data
)
)
external
external
override
virtual
virtual
onlyEOA()
onlyEOA()
{
{
...
@@ -203,7 +200,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
...
@@ -203,7 +200,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
bytes calldata _data
bytes calldata _data
)
)
external
external
override
virtual
virtual
{
{
_initiateERC20Deposit(_l1Token, _l2Token, msg.sender, _to, _amount, _l2Gas, _data);
_initiateERC20Deposit(_l1Token, _l2Token, msg.sender, _to, _amount, _l2Gas, _data);
...
@@ -280,7 +276,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
...
@@ -280,7 +276,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
bytes calldata _data
bytes calldata _data
)
)
external
external
override
onlyFromCrossDomainAccount(l2TokenBridge)
onlyFromCrossDomainAccount(l2TokenBridge)
{
{
(bool success, ) = _to.call{value: _amount}(new bytes(0));
(bool success, ) = _to.call{value: _amount}(new bytes(0));
...
@@ -301,7 +296,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
...
@@ -301,7 +296,6 @@ contract L1StandardBridge is IL1StandardBridge, CrossDomainEnabled {
bytes calldata _data
bytes calldata _data
)
)
external
external
override
onlyFromCrossDomainAccount(l2TokenBridge)
onlyFromCrossDomainAccount(l2TokenBridge)
{
{
deposits[_l1Token][_l2Token] = deposits[_l1Token][_l2Token] - _amount;
deposits[_l1Token][_l2Token] = deposits[_l1Token][_l2Token] - _amount;
...
...
packages/contracts/contracts/L1/rollup/CanonicalTransactionChain.sol
View file @
99a9ab1f
...
@@ -87,7 +87,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -87,7 +87,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
* @return Reference to the batch storage container.
* @return Reference to the batch storage container.
*/
*/
function batches()
function batches()
override
public
public
view
view
returns (
returns (
...
@@ -104,7 +103,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -104,7 +103,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
* @return Reference to the queue storage container.
* @return Reference to the queue storage container.
*/
*/
function queue()
function queue()
override
public
public
view
view
returns (
returns (
...
@@ -121,7 +119,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -121,7 +119,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
* @return _totalElements Total submitted elements.
* @return _totalElements Total submitted elements.
*/
*/
function getTotalElements()
function getTotalElements()
override
public
public
view
view
returns (
returns (
...
@@ -137,7 +134,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -137,7 +134,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
* @return _totalBatches Total submitted batches.
* @return _totalBatches Total submitted batches.
*/
*/
function getTotalBatches()
function getTotalBatches()
override
public
public
view
view
returns (
returns (
...
@@ -152,7 +148,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -152,7 +148,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
* @return Index for the next queue element.
* @return Index for the next queue element.
*/
*/
function getNextQueueIndex()
function getNextQueueIndex()
override
public
public
view
view
returns (
returns (
...
@@ -168,7 +163,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -168,7 +163,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
* @return Timestamp for the last transaction.
* @return Timestamp for the last transaction.
*/
*/
function getLastTimestamp()
function getLastTimestamp()
override
public
public
view
view
returns (
returns (
...
@@ -184,7 +178,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -184,7 +178,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
* @return Blocknumber for the last transaction.
* @return Blocknumber for the last transaction.
*/
*/
function getLastBlockNumber()
function getLastBlockNumber()
override
public
public
view
view
returns (
returns (
...
@@ -203,7 +196,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -203,7 +196,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
function getQueueElement(
function getQueueElement(
uint256 _index
uint256 _index
)
)
override
public
public
view
view
returns (
returns (
...
@@ -221,7 +213,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -221,7 +213,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
* @return Number of pending queue elements.
* @return Number of pending queue elements.
*/
*/
function getNumPendingQueueElements()
function getNumPendingQueueElements()
override
public
public
view
view
returns (
returns (
...
@@ -237,7 +228,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -237,7 +228,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
* @return Length of the queue.
* @return Length of the queue.
*/
*/
function getQueueLength()
function getQueueLength()
override
public
public
view
view
returns (
returns (
...
@@ -260,7 +250,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -260,7 +250,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
uint256 _gasLimit,
uint256 _gasLimit,
bytes memory _data
bytes memory _data
)
)
override
public
public
{
{
require(
require(
...
@@ -343,7 +332,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -343,7 +332,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
function appendQueueBatch(
function appendQueueBatch(
uint256 // _numQueuedTransactions
uint256 // _numQueuedTransactions
)
)
override
public
public
pure
pure
{
{
...
@@ -399,7 +387,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -399,7 +387,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
* .param _transactionDataFields Array of raw transaction data.
* .param _transactionDataFields Array of raw transaction data.
*/
*/
function appendSequencerBatch()
function appendSequencerBatch()
override
public
public
{
{
uint40 shouldStartAtElement;
uint40 shouldStartAtElement;
...
@@ -553,7 +540,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
...
@@ -553,7 +540,6 @@ contract CanonicalTransactionChain is ICanonicalTransactionChain, Lib_AddressRes
Lib_OVMCodec.ChainBatchHeader memory _batchHeader,
Lib_OVMCodec.ChainBatchHeader memory _batchHeader,
Lib_OVMCodec.ChainInclusionProof memory _inclusionProof
Lib_OVMCodec.ChainInclusionProof memory _inclusionProof
)
)
override
public
public
view
view
returns (
returns (
...
...
packages/contracts/contracts/L1/rollup/ChainStorageContainer.sol
View file @
99a9ab1f
...
@@ -79,7 +79,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
...
@@ -79,7 +79,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
function setGlobalMetadata(
function setGlobalMetadata(
bytes27 _globalMetadata
bytes27 _globalMetadata
)
)
override
public
public
onlyOwner
onlyOwner
{
{
...
@@ -90,7 +89,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
...
@@ -90,7 +89,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
* @inheritdoc IChainStorageContainer
* @inheritdoc IChainStorageContainer
*/
*/
function getGlobalMetadata()
function getGlobalMetadata()
override
public
public
view
view
returns (
returns (
...
@@ -104,7 +102,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
...
@@ -104,7 +102,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
* @inheritdoc IChainStorageContainer
* @inheritdoc IChainStorageContainer
*/
*/
function length()
function length()
override
public
public
view
view
returns (
returns (
...
@@ -120,7 +117,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
...
@@ -120,7 +117,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
function push(
function push(
bytes32 _object
bytes32 _object
)
)
override
public
public
onlyOwner
onlyOwner
{
{
...
@@ -134,7 +130,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
...
@@ -134,7 +130,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
bytes32 _object,
bytes32 _object,
bytes27 _globalMetadata
bytes27 _globalMetadata
)
)
override
public
public
onlyOwner
onlyOwner
{
{
...
@@ -147,7 +142,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
...
@@ -147,7 +142,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
function get(
function get(
uint256 _index
uint256 _index
)
)
override
public
public
view
view
returns (
returns (
...
@@ -163,7 +157,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
...
@@ -163,7 +157,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
function deleteElementsAfterInclusive(
function deleteElementsAfterInclusive(
uint256 _index
uint256 _index
)
)
override
public
public
onlyOwner
onlyOwner
{
{
...
@@ -179,7 +172,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
...
@@ -179,7 +172,6 @@ contract ChainStorageContainer is IChainStorageContainer, Lib_AddressResolver {
uint256 _index,
uint256 _index,
bytes27 _globalMetadata
bytes27 _globalMetadata
)
)
override
public
public
onlyOwner
onlyOwner
{
{
...
...
packages/contracts/contracts/L1/rollup/StateCommitmentChain.sol
View file @
99a9ab1f
...
@@ -74,7 +74,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
...
@@ -74,7 +74,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
* @inheritdoc IStateCommitmentChain
* @inheritdoc IStateCommitmentChain
*/
*/
function getTotalElements()
function getTotalElements()
override
public
public
view
view
returns (
returns (
...
@@ -89,7 +88,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
...
@@ -89,7 +88,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
* @inheritdoc IStateCommitmentChain
* @inheritdoc IStateCommitmentChain
*/
*/
function getTotalBatches()
function getTotalBatches()
override
public
public
view
view
returns (
returns (
...
@@ -103,7 +101,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
...
@@ -103,7 +101,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
* @inheritdoc IStateCommitmentChain
* @inheritdoc IStateCommitmentChain
*/
*/
function getLastSequencerTimestamp()
function getLastSequencerTimestamp()
override
public
public
view
view
returns (
returns (
...
@@ -121,7 +118,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
...
@@ -121,7 +118,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
bytes32[] memory _batch,
bytes32[] memory _batch,
uint256 _shouldStartAtElement
uint256 _shouldStartAtElement
)
)
override
public
public
{
{
// Fail fast in to make sure our batch roots aren't accidentally made fraudulent by the
// Fail fast in to make sure our batch roots aren't accidentally made fraudulent by the
...
@@ -163,7 +159,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
...
@@ -163,7 +159,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
function deleteStateBatch(
function deleteStateBatch(
Lib_OVMCodec.ChainBatchHeader memory _batchHeader
Lib_OVMCodec.ChainBatchHeader memory _batchHeader
)
)
override
public
public
{
{
require(
require(
...
@@ -192,7 +187,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
...
@@ -192,7 +187,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
Lib_OVMCodec.ChainBatchHeader memory _batchHeader,
Lib_OVMCodec.ChainBatchHeader memory _batchHeader,
Lib_OVMCodec.ChainInclusionProof memory _proof
Lib_OVMCodec.ChainInclusionProof memory _proof
)
)
override
public
public
view
view
returns (
returns (
...
@@ -224,7 +218,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
...
@@ -224,7 +218,6 @@ contract StateCommitmentChain is IStateCommitmentChain, Lib_AddressResolver {
function insideFraudProofWindow(
function insideFraudProofWindow(
Lib_OVMCodec.ChainBatchHeader memory _batchHeader
Lib_OVMCodec.ChainBatchHeader memory _batchHeader
)
)
override
public
public
view
view
returns (
returns (
...
...
packages/contracts/contracts/L1/verification/BondManager.sol
View file @
99a9ab1f
...
@@ -28,7 +28,6 @@ contract BondManager is IBondManager, Lib_AddressResolver {
...
@@ -28,7 +28,6 @@ contract BondManager is IBondManager, Lib_AddressResolver {
address _who,
address _who,
uint256 _gasSpent
uint256 _gasSpent
)
)
override
public
public
{}
{}
...
@@ -37,36 +36,30 @@ contract BondManager is IBondManager, Lib_AddressResolver {
...
@@ -37,36 +36,30 @@ contract BondManager is IBondManager, Lib_AddressResolver {
address _publisher,
address _publisher,
uint256 _timestamp
uint256 _timestamp
)
)
override
public
public
{}
{}
function deposit()
function deposit()
override
public
public
{}
{}
function startWithdrawal()
function startWithdrawal()
override
public
public
{}
{}
function finalizeWithdrawal()
function finalizeWithdrawal()
override
public
public
{}
{}
function claim(
function claim(
address _who
address _who
)
)
override
public
public
{}
{}
function isCollateralized(
function isCollateralized(
address _who
address _who
)
)
override
public
public
view
view
returns (
returns (
...
@@ -81,7 +74,6 @@ contract BondManager is IBondManager, Lib_AddressResolver {
...
@@ -81,7 +74,6 @@ contract BondManager is IBondManager, Lib_AddressResolver {
bytes32 _preStateRoot,
bytes32 _preStateRoot,
address _who
address _who
)
)
override
public
public
pure
pure
returns (
returns (
...
...
packages/contracts/contracts/L2/messaging/L2CrossDomainMessenger.sol
View file @
99a9ab1f
...
@@ -54,7 +54,6 @@ contract L2CrossDomainMessenger is
...
@@ -54,7 +54,6 @@ contract L2CrossDomainMessenger is
function xDomainMessageSender()
function xDomainMessageSender()
public
public
override
view
view
returns (
returns (
address
address
...
@@ -75,7 +74,6 @@ contract L2CrossDomainMessenger is
...
@@ -75,7 +74,6 @@ contract L2CrossDomainMessenger is
bytes memory _message,
bytes memory _message,
uint32 _gasLimit
uint32 _gasLimit
)
)
override
public
public
{
{
bytes memory xDomainCalldata = Lib_CrossDomainUtils.encodeXDomainCalldata(
bytes memory xDomainCalldata = Lib_CrossDomainUtils.encodeXDomainCalldata(
...
@@ -103,7 +101,6 @@ contract L2CrossDomainMessenger is
...
@@ -103,7 +101,6 @@ contract L2CrossDomainMessenger is
bytes memory _message,
bytes memory _message,
uint256 _messageNonce
uint256 _messageNonce
)
)
override
nonReentrant
nonReentrant
public
public
{
{
...
...
packages/contracts/contracts/L2/messaging/L2StandardBridge.sol
View file @
99a9ab1f
...
@@ -29,7 +29,7 @@ contract L2StandardBridge is IL2ERC20Bridge, CrossDomainEnabled {
...
@@ -29,7 +29,7 @@ contract L2StandardBridge is IL2ERC20Bridge, CrossDomainEnabled {
* External Contract References *
* External Contract References *
********************************/
********************************/
address public
override
l1TokenBridge;
address public l1TokenBridge;
/***************
/***************
* Constructor *
* Constructor *
...
@@ -62,7 +62,6 @@ contract L2StandardBridge is IL2ERC20Bridge, CrossDomainEnabled {
...
@@ -62,7 +62,6 @@ contract L2StandardBridge is IL2ERC20Bridge, CrossDomainEnabled {
bytes calldata _data
bytes calldata _data
)
)
external
external
override
virtual
virtual
{
{
_initiateWithdrawal(
_initiateWithdrawal(
...
@@ -86,7 +85,6 @@ contract L2StandardBridge is IL2ERC20Bridge, CrossDomainEnabled {
...
@@ -86,7 +85,6 @@ contract L2StandardBridge is IL2ERC20Bridge, CrossDomainEnabled {
bytes calldata _data
bytes calldata _data
)
)
external
external
override
virtual
virtual
{
{
_initiateWithdrawal(
_initiateWithdrawal(
...
@@ -175,7 +173,6 @@ contract L2StandardBridge is IL2ERC20Bridge, CrossDomainEnabled {
...
@@ -175,7 +173,6 @@ contract L2StandardBridge is IL2ERC20Bridge, CrossDomainEnabled {
bytes calldata _data
bytes calldata _data
)
)
external
external
override
virtual
virtual
onlyFromCrossDomainAccount(l1TokenBridge)
onlyFromCrossDomainAccount(l1TokenBridge)
{
{
...
...
packages/contracts/contracts/L2/predeploys/OVM_L2ToL1MessagePasser.sol
View file @
99a9ab1f
...
@@ -30,7 +30,6 @@ contract OVM_L2ToL1MessagePasser is iOVM_L2ToL1MessagePasser {
...
@@ -30,7 +30,6 @@ contract OVM_L2ToL1MessagePasser is iOVM_L2ToL1MessagePasser {
function passMessageToL1(
function passMessageToL1(
bytes memory _message
bytes memory _message
)
)
override
public
public
{
{
// Note: although this function is public, only messages sent from the
// Note: although this function is public, only messages sent from the
...
...
packages/contracts/contracts/libraries/bridge/CrossDomainEnabled.sol
View file @
99a9ab1f
...
@@ -80,7 +80,7 @@ contract CrossDomainEnabled {
...
@@ -80,7 +80,7 @@ contract CrossDomainEnabled {
return ICrossDomainMessenger(messenger);
return ICrossDomainMessenger(messenger);
}
}
/**
/**
q
* Sends a message to an account on another domain
* Sends a message to an account on another domain
* @param _crossDomainTarget The intended recipient on the destination domain
* @param _crossDomainTarget The intended recipient on the destination domain
* @param _message The data to send to the target (usually calldata to a function with
* @param _message The data to send to the target (usually calldata to a function with
...
...
packages/contracts/contracts/libraries/standards/L2StandardERC20.sol
View file @
99a9ab1f
...
@@ -6,7 +6,7 @@ import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
...
@@ -6,7 +6,7 @@ import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./IL2StandardERC20.sol";
import "./IL2StandardERC20.sol";
contract L2StandardERC20 is IL2StandardERC20, ERC20 {
contract L2StandardERC20 is IL2StandardERC20, ERC20 {
address public
override
l1Token;
address public l1Token;
address public l2Bridge;
address public l2Bridge;
/**
/**
...
@@ -31,7 +31,7 @@ contract L2StandardERC20 is IL2StandardERC20, ERC20 {
...
@@ -31,7 +31,7 @@ contract L2StandardERC20 is IL2StandardERC20, ERC20 {
_;
_;
}
}
function supportsInterface(bytes4 _interfaceId) public
override
pure returns (bool) {
function supportsInterface(bytes4 _interfaceId) public pure returns (bool) {
bytes4 firstSupportedInterface = bytes4(keccak256("supportsInterface(bytes4)")); // ERC165
bytes4 firstSupportedInterface = bytes4(keccak256("supportsInterface(bytes4)")); // ERC165
bytes4 secondSupportedInterface = IL2StandardERC20.l1Token.selector
bytes4 secondSupportedInterface = IL2StandardERC20.l1Token.selector
^ IL2StandardERC20.mint.selector
^ IL2StandardERC20.mint.selector
...
@@ -39,13 +39,13 @@ contract L2StandardERC20 is IL2StandardERC20, ERC20 {
...
@@ -39,13 +39,13 @@ contract L2StandardERC20 is IL2StandardERC20, ERC20 {
return _interfaceId == firstSupportedInterface || _interfaceId == secondSupportedInterface;
return _interfaceId == firstSupportedInterface || _interfaceId == secondSupportedInterface;
}
}
function mint(address _to, uint256 _amount) public virtual o
verride o
nlyL2Bridge {
function mint(address _to, uint256 _amount) public virtual onlyL2Bridge {
_mint(_to, _amount);
_mint(_to, _amount);
emit Mint(_to, _amount);
emit Mint(_to, _amount);
}
}
function burn(address _from, uint256 _amount) public virtual o
verride o
nlyL2Bridge {
function burn(address _from, uint256 _amount) public virtual onlyL2Bridge {
_burn(_from, _amount);
_burn(_from, _amount);
emit Burn(_from, _amount);
emit Burn(_from, _amount);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment