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
eb58b74b
Commit
eb58b74b
authored
Jun 26, 2023
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ctb): Update Portal comments
parent
0119b6c2
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
optimismportal.go
op-bindings/bindings/optimismportal.go
+1
-1
OptimismPortal.sol
packages/contracts-bedrock/contracts/L1/OptimismPortal.sol
+6
-6
No files found.
op-bindings/bindings/optimismportal.go
View file @
eb58b74b
This diff is collapsed.
Click to expand it.
packages/contracts-bedrock/contracts/L1/OptimismPortal.sol
View file @
eb58b74b
...
@@ -103,10 +103,10 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
...
@@ -103,10 +103,10 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
_;
_;
}
}
/// @custom:semver 1.7.
1
/// @custom:semver 1.7.
2
/// @notice Constructs the OptimismPortal contract.
/// @notice Constructs the OptimismPortal contract.
/// @param _l2Oracle Address of the L2OutputOracle contract.
/// @param _l2Oracle Address of the L2OutputOracle contract.
/// @param _guardian Address that can pause
deposits and
withdrawals.
/// @param _guardian Address that can pause withdrawals.
/// @param _paused Sets the contract's pausability state.
/// @param _paused Sets the contract's pausability state.
/// @param _config Address of the SystemConfig contract.
/// @param _config Address of the SystemConfig contract.
constructor(
constructor(
...
@@ -114,7 +114,7 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
...
@@ -114,7 +114,7 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
address _guardian,
address _guardian,
bool _paused,
bool _paused,
SystemConfig _config
SystemConfig _config
) Semver(1, 7,
1
) {
) Semver(1, 7,
2
) {
L2_ORACLE = _l2Oracle;
L2_ORACLE = _l2Oracle;
GUARDIAN = _guardian;
GUARDIAN = _guardian;
SYSTEM_CONFIG = _config;
SYSTEM_CONFIG = _config;
...
@@ -128,14 +128,14 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
...
@@ -128,14 +128,14 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
__ResourceMetering_init();
__ResourceMetering_init();
}
}
/// @notice Pauses
deposits and
withdrawals.
/// @notice Pauses withdrawals.
function pause() external {
function pause() external {
require(msg.sender == GUARDIAN, "OptimismPortal: only guardian can pause");
require(msg.sender == GUARDIAN, "OptimismPortal: only guardian can pause");
paused = true;
paused = true;
emit Paused(msg.sender);
emit Paused(msg.sender);
}
}
/// @notice Unpauses
deposits and
withdrawals.
/// @notice Unpauses withdrawals.
function unpause() external {
function unpause() external {
require(msg.sender == GUARDIAN, "OptimismPortal: only guardian can unpause");
require(msg.sender == GUARDIAN, "OptimismPortal: only guardian can unpause");
paused = false;
paused = false;
...
@@ -370,7 +370,7 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
...
@@ -370,7 +370,7 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
/// using the CrossDomainMessenger contracts for a simpler developer experience.
/// using the CrossDomainMessenger contracts for a simpler developer experience.
/// @param _to Target address on L2.
/// @param _to Target address on L2.
/// @param _value ETH value to send to the recipient.
/// @param _value ETH value to send to the recipient.
/// @param _gasLimit
Minimum L2 gas limit (can be greater than or equal to this value)
.
/// @param _gasLimit
Amount of L2 gas to purchase by burning gas on L1
.
/// @param _isCreation Whether or not the transaction is a contract creation.
/// @param _isCreation Whether or not the transaction is a contract creation.
/// @param _data Data to trigger the recipient with.
/// @param _data Data to trigger the recipient with.
function depositTransaction(
function depositTransaction(
...
...
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