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
7dbec209
Commit
7dbec209
authored
Sep 08, 2021
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(contracts): Add an address getter to the erc20 bridge interfaces
parent
a0a8cacf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
OVM_L1StandardBridge.sol
...istic-ethereum/OVM/bridge/tokens/OVM_L1StandardBridge.sol
+1
-1
OVM_L2StandardBridge.sol
...istic-ethereum/OVM/bridge/tokens/OVM_L2StandardBridge.sol
+1
-1
iOVM_L1ERC20Bridge.sol
...mistic-ethereum/iOVM/bridge/tokens/iOVM_L1ERC20Bridge.sol
+6
-0
iOVM_L2ERC20Bridge.sol
...mistic-ethereum/iOVM/bridge/tokens/iOVM_L2ERC20Bridge.sol
+6
-0
No files found.
packages/contracts/contracts/optimistic-ethereum/OVM/bridge/tokens/OVM_L1StandardBridge.sol
View file @
7dbec209
...
...
@@ -33,7 +33,7 @@ contract OVM_L1StandardBridge is iOVM_L1StandardBridge, OVM_CrossDomainEnabled {
* External Contract References *
********************************/
address public l2TokenBridge;
address public
override
l2TokenBridge;
// Maps L1 token to L2 token to balance of the L1 token deposited
mapping(address => mapping (address => uint256)) public deposits;
...
...
packages/contracts/contracts/optimistic-ethereum/OVM/bridge/tokens/OVM_L2StandardBridge.sol
View file @
7dbec209
...
...
@@ -33,7 +33,7 @@ contract OVM_L2StandardBridge is iOVM_L2ERC20Bridge, OVM_CrossDomainEnabled {
* External Contract References *
********************************/
address public l1TokenBridge;
address public
override
l1TokenBridge;
/***************
* Constructor *
...
...
packages/contracts/contracts/optimistic-ethereum/iOVM/bridge/tokens/iOVM_L1ERC20Bridge.sol
View file @
7dbec209
...
...
@@ -33,6 +33,12 @@ interface iOVM_L1ERC20Bridge {
* Public Functions *
********************/
/**
* @dev get the address of the corresponding L2 bridge contract.
* @return Address of the corresponding L2 bridge contract.
*/
function l2TokenBridge() external returns(address);
/**
* @dev deposit an amount of the ERC20 to the caller's balance on L2.
* @param _l1Token Address of the L1 ERC20 we are depositing
...
...
packages/contracts/contracts/optimistic-ethereum/iOVM/bridge/tokens/iOVM_L2ERC20Bridge.sol
View file @
7dbec209
...
...
@@ -43,6 +43,12 @@ interface iOVM_L2ERC20Bridge {
* Public Functions *
********************/
/**
* @dev get the address of the corresponding L1 bridge contract.
* @return Address of the corresponding L1 bridge contract.
*/
function l1TokenBridge() external returns(address);
/**
* @dev initiate a withdraw of some tokens to the caller's account on L1
* @param _l2Token Address of L2 token where withdrawal was initiated.
...
...
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