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
f9ad035f
Commit
f9ad035f
authored
Feb 27, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Chain ops changes
parent
904dfd50
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
17 deletions
+9
-17
main.go
op-chain-ops/cmd/withdrawals/main.go
+1
-1
layer_one.go
op-chain-ops/genesis/layer_one.go
+3
-3
user.go
op-e2e/actions/user.go
+1
-1
utils.go
op-node/withdrawals/utils.go
+1
-1
CommonTest.t.sol
packages/contracts-bedrock/contracts/test/CommonTest.t.sol
+2
-10
012-L2OutputOracleImpl.ts
packages/contracts-bedrock/deploy/012-L2OutputOracleImpl.ts
+1
-1
No files found.
op-chain-ops/cmd/withdrawals/main.go
View file @
f9ad035f
...
...
@@ -140,7 +140,7 @@ func main() {
return
err
}
period
,
err
:=
contracts
.
OptimismPortal
.
FINALIZATIONPERIODSECONDS
(
&
bind
.
CallOpts
{})
period
,
err
:=
contracts
.
L2OutputOracle
.
FINALIZATIONPERIODSECONDS
(
&
bind
.
CallOpts
{})
if
err
!=
nil
{
return
err
}
...
...
op-chain-ops/genesis/layer_one.go
View file @
f9ad035f
...
...
@@ -285,6 +285,7 @@ func deployL1Contracts(config *DeployConfig, backend *backends.SimulatedBackend)
uint642Big
(
uint64
(
config
.
L1GenesisBlockTimestamp
)),
config
.
L2OutputOracleProposer
,
config
.
L2OutputOracleChallenger
,
uint642Big
(
config
.
FinalizationPeriodSeconds
),
},
},
{
...
...
@@ -295,7 +296,6 @@ func deployL1Contracts(config *DeployConfig, backend *backends.SimulatedBackend)
Args
:
[]
interface
{}{
predeploys
.
DevL2OutputOracleAddr
,
config
.
FinalSystemOwner
,
uint642Big
(
config
.
FinalizationPeriodSeconds
),
true
,
// _paused
},
},
...
...
@@ -353,15 +353,15 @@ func l1Deployer(backend *backends.SimulatedBackend, opts *bind.TransactOpts, dep
deployment
.
Args
[
3
]
.
(
*
big
.
Int
),
deployment
.
Args
[
4
]
.
(
common
.
Address
),
deployment
.
Args
[
5
]
.
(
common
.
Address
),
deployment
.
Args
[
6
]
.
(
*
big
.
Int
),
)
case
"OptimismPortal"
:
_
,
tx
,
_
,
err
=
bindings
.
DeployOptimismPortal
(
opts
,
backend
,
deployment
.
Args
[
0
]
.
(
common
.
Address
),
deployment
.
Args
[
2
]
.
(
*
big
.
Int
),
deployment
.
Args
[
1
]
.
(
common
.
Address
),
deployment
.
Args
[
3
]
.
(
bool
),
deployment
.
Args
[
2
]
.
(
bool
),
)
case
"L1CrossDomainMessenger"
:
_
,
tx
,
_
,
err
=
bindings
.
DeployL1CrossDomainMessenger
(
...
...
op-e2e/actions/user.go
View file @
f9ad035f
...
...
@@ -445,7 +445,7 @@ func (s *CrossLayerUser) ActCompleteWithdrawal(t Testing) {
// CompleteWithdrawal creates a L1 withdrawal finalization tx for the given L2 withdrawal tx, returning the tx hash.
// It's an invalid action to attempt to complete a withdrawal that has not passed the L1 finalization period yet
func
(
s
*
CrossLayerUser
)
CompleteWithdrawal
(
t
Testing
,
l2TxHash
common
.
Hash
)
common
.
Hash
{
finalizationPeriod
,
err
:=
s
.
L1
.
env
.
Bindings
.
OptimismPortal
.
FINALIZATIONPERIODSECONDS
(
&
bind
.
CallOpts
{})
finalizationPeriod
,
err
:=
s
.
L1
.
env
.
Bindings
.
L2OutputOracle
.
FINALIZATIONPERIODSECONDS
(
&
bind
.
CallOpts
{})
require
.
NoError
(
t
,
err
)
// Figure out when our withdrawal was included
...
...
op-node/withdrawals/utils.go
View file @
f9ad035f
...
...
@@ -54,7 +54,7 @@ func WaitForFinalizationPeriod(ctx context.Context, client *ethclient.Client, po
}
l2BlockNumber
=
l2BlockNumber
.
Mul
(
l2BlockNumber
,
submissionInterval
)
finalizationPeriod
,
err
:=
portal
.
FINALIZATIONPERIODSECONDS
(
opts
)
finalizationPeriod
,
err
:=
l2OO
.
FINALIZATIONPERIODSECONDS
(
opts
)
if
err
!=
nil
{
return
0
,
err
}
...
...
packages/contracts-bedrock/contracts/test/CommonTest.t.sol
View file @
f9ad035f
...
...
@@ -168,11 +168,7 @@ contract Portal_Initializer is L2OutputOracle_Initializer {
function setUp() public virtual override {
super.setUp();
opImpl = new OptimismPortal({
_l2Oracle: oracle,
_guardian: guardian,
_paused: true
});
opImpl = new OptimismPortal({ _l2Oracle: oracle, _guardian: guardian, _paused: true });
Proxy proxy = new Proxy(multisig);
vm.prank(multisig);
proxy.upgradeToAndCall(
...
...
@@ -231,11 +227,7 @@ contract Messenger_Initializer is L2OutputOracle_Initializer {
super.setUp();
// Deploy the OptimismPortal
op = new OptimismPortal({
_l2Oracle: oracle,
_guardian: guardian,
_paused: false
});
op = new OptimismPortal({ _l2Oracle: oracle, _guardian: guardian, _paused: false });
vm.label(address(op), "OptimismPortal");
// Deploy the address manager
...
...
packages/contracts-bedrock/deploy/012-L2OutputOracleImpl.ts
View file @
f9ad035f
...
...
@@ -28,7 +28,7 @@ const deployFn: DeployFunction = async (hre) => {
0
,
hre
.
deployConfig
.
l2OutputOracleProposer
,
hre
.
deployConfig
.
l2OutputOracleChallenger
,
hre
.
deployConfig
.
finalizationPeriodSeconds
hre
.
deployConfig
.
finalizationPeriodSeconds
,
],
postDeployAction
:
async
(
contract
)
=>
{
await
assertContractVariable
(
...
...
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