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
a76f48de
Commit
a76f48de
authored
Feb 23, 2021
by
Maurelian
Committed by
GitHub
Feb 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update naming: l2ERC20Gateway -> l2DepositedERC20 (#242)
parent
0996a356
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
OVM_L1ERC20Gateway.sol
...imistic-ethereum/OVM/bridge/tokens/OVM_L1ERC20Gateway.sol
+8
-8
No files found.
packages/contracts/contracts/optimistic-ethereum/OVM/bridge/tokens/OVM_L1ERC20Gateway.sol
View file @
a76f48de
...
...
@@ -27,7 +27,7 @@ contract OVM_L1ERC20Gateway is iOVM_L1ERC20Gateway, OVM_CrossDomainEnabled {
********************************/
iOVM_ERC20 public l1ERC20;
address public l2
ERC20Gateway
;
address public l2
DepositedERC20
;
/***************
* Constructor *
...
...
@@ -35,18 +35,18 @@ contract OVM_L1ERC20Gateway is iOVM_L1ERC20Gateway, OVM_CrossDomainEnabled {
/**
* @param _l1ERC20 L1 ERC20 address this contract stores deposits for
* @param _l2
ERC20Gateway
L2 Gateway address on the chain being deposited into
* @param _l2
DepositedERC20
L2 Gateway address on the chain being deposited into
* @param _l1messenger L1 Messenger address being used for cross-chain communications.
*/
constructor(
iOVM_ERC20 _l1ERC20,
address _l2
ERC20Gateway
,
address _l2
DepositedERC20
,
address _l1messenger
)
OVM_CrossDomainEnabled(_l1messenger)
{
l1ERC20 = _l1ERC20;
l2
ERC20Gateway = _l2ERC20Gateway
;
l2
DepositedERC20 = _l2DepositedERC20
;
}
/**************
...
...
@@ -82,7 +82,7 @@ contract OVM_L1ERC20Gateway is iOVM_L1ERC20Gateway, OVM_CrossDomainEnabled {
}
/**
* @dev Performs the logic for deposits by storing the ERC20 and informing the L2
ERC20 Gateway
of the deposit.
* @dev Performs the logic for deposits by storing the ERC20 and informing the L2
Deposited ERC20 contract
of the deposit.
*
* @param _from Account to pull the deposit from on L1
* @param _to Account to give the deposit to on L2
...
...
@@ -102,7 +102,7 @@ contract OVM_L1ERC20Gateway is iOVM_L1ERC20Gateway, OVM_CrossDomainEnabled {
_amount
);
// Construct calldata for l2
ERC20Gateway
.finalizeDeposit(_to, _amount)
// Construct calldata for l2
DepositedERC20
.finalizeDeposit(_to, _amount)
bytes memory data = abi.encodeWithSelector(
iOVM_L2DepositedERC20.finalizeDeposit.selector,
_to,
...
...
@@ -111,7 +111,7 @@ contract OVM_L1ERC20Gateway is iOVM_L1ERC20Gateway, OVM_CrossDomainEnabled {
// Send calldata into L2
sendCrossDomainMessage(
l2
ERC20Gateway
,
l2
DepositedERC20
,
data,
DEFAULT_FINALIZE_DEPOSIT_L2_GAS
);
...
...
@@ -137,7 +137,7 @@ contract OVM_L1ERC20Gateway is iOVM_L1ERC20Gateway, OVM_CrossDomainEnabled {
)
external
override
onlyFromCrossDomainAccount(l2
ERC20Gateway)
onlyFromCrossDomainAccount(l2
DepositedERC20)
{
l1ERC20.transfer(_to, _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