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
7a3bd1e2
Commit
7a3bd1e2
authored
Mar 04, 2021
by
ben-chain
Committed by
GitHub
Mar 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove gas estimators from gateway interface (#297)
* remove 'em * fix overrides
parent
8f1e355e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
19 deletions
+21
-19
Abs_L1TokenGateway.sol
...imistic-ethereum/OVM/bridge/tokens/Abs_L1TokenGateway.sol
+0
-1
Abs_L2DepositedToken.sol
...istic-ethereum/OVM/bridge/tokens/Abs_L2DepositedToken.sol
+21
-4
iOVM_L1TokenGateway.sol
...istic-ethereum/iOVM/bridge/tokens/iOVM_L1TokenGateway.sol
+0
-7
iOVM_L2DepositedToken.sol
...tic-ethereum/iOVM/bridge/tokens/iOVM_L2DepositedToken.sol
+0
-7
No files found.
packages/contracts/contracts/optimistic-ethereum/OVM/bridge/tokens/Abs_L1TokenGateway.sol
View file @
7a3bd1e2
...
...
@@ -100,7 +100,6 @@ abstract contract Abs_L1TokenGateway is iOVM_L1TokenGateway, OVM_CrossDomainEnab
function getFinalizeDepositL2Gas()
public
view
override
returns(
uint32
)
...
...
packages/contracts/contracts/optimistic-ethereum/OVM/bridge/tokens/Abs_L2DepositedToken.sol
View file @
7a3bd1e2
...
...
@@ -129,7 +129,6 @@ abstract contract Abs_L2DepositedToken is iOVM_L2DepositedToken, OVM_CrossDomain
public
view
virtual
override
returns(
uint32
)
...
...
@@ -161,7 +160,14 @@ abstract contract Abs_L2DepositedToken is iOVM_L2DepositedToken, OVM_CrossDomain
* @param _to L1 adress to credit the withdrawal to
* @param _amount Amount of the token to withdraw
*/
function withdrawTo(address _to, uint _amount) external override onlyInitialized() {
function withdrawTo(
address _to,
uint _amount
)
external
override
onlyInitialized()
{
_initiateWithdrawal(_to, _amount);
}
...
...
@@ -171,7 +177,12 @@ abstract contract Abs_L2DepositedToken is iOVM_L2DepositedToken, OVM_CrossDomain
* @param _to Account to give the withdrawal to on L1
* @param _amount Amount of the token to withdraw
*/
function _initiateWithdrawal(address _to, uint _amount) internal {
function _initiateWithdrawal(
address _to,
uint _amount
)
internal
{
// Call our withdrawal accounting handler implemented by child contracts (usually a _burn)
_handleInitiateWithdrawal(_to, _amount);
...
...
@@ -204,7 +215,13 @@ abstract contract Abs_L2DepositedToken is iOVM_L2DepositedToken, OVM_CrossDomain
* @param _to Address to receive the withdrawal at
* @param _amount Amount of the token to withdraw
*/
function finalizeDeposit(address _to, uint _amount) external override onlyInitialized()
function finalizeDeposit(
address _to,
uint _amount
)
external
override
onlyInitialized()
onlyFromCrossDomainAccount(address(l1TokenGateway))
{
_handleFinalizeDeposit(_to, _amount);
...
...
packages/contracts/contracts/optimistic-ethereum/iOVM/bridge/tokens/iOVM_L1TokenGateway.sol
View file @
7a3bd1e2
...
...
@@ -48,11 +48,4 @@ interface iOVM_L1TokenGateway {
uint _amount
)
external;
function getFinalizeDepositL2Gas()
external
view
returns(
uint32
);
}
packages/contracts/contracts/optimistic-ethereum/iOVM/bridge/tokens/iOVM_L2DepositedToken.sol
View file @
7a3bd1e2
...
...
@@ -48,11 +48,4 @@ interface iOVM_L2DepositedToken {
uint _amount
)
external;
function getFinalizeWithdrawalL1Gas()
external
view
returns(
uint32
);
}
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