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
4732cfa2
Unverified
Commit
4732cfa2
authored
Jul 17, 2023
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
specs: superchain target and protocol version
parent
5e93c169
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
307 additions
and
1 deletion
+307
-1
README.md
specs/README.md
+1
-1
exec-engine.md
specs/exec-engine.md
+32
-0
rollup-node.md
specs/rollup-node.md
+18
-0
superchain-upgrades.md
specs/superchain-upgrades.md
+256
-0
No files found.
specs/README.md
View file @
4732cfa2
...
...
@@ -15,7 +15,7 @@ that maintains 1:1 compatibility with Ethereum.
-
[
Rollup Node
](
rollup-node.md
)
-
[
Rollup Node P2p
](
rollup-node-p2p.md
)
-
[
L2 Chain Derivation
](
derivation.md
)
-
[
Network Upgrades
](
network
-upgrades.md
)
-
[
Superchain Upgrades
](
superchain
-upgrades.md
)
-
[
System Config
](
system_config.md
)
-
[
Batch Submitter
](
batcher.md
)
-
[
Guaranteed Gas Market
](
guaranteed-gas-market.md
)
...
...
specs/exec-engine.md
View file @
4732cfa2
...
...
@@ -16,6 +16,7 @@
-
[
Extended PayloadAttributesV1
](
#extended-payloadattributesv1
)
-
[
`engine_newPayloadV1`
](
#engine_newpayloadv1
)
-
[
`engine_getPayloadV1`
](
#engine_getpayloadv1
)
-
[
`engine_signalSuperchainV1`
](
#engine_signalsuperchainv1
)
-
[
Networking
](
#networking
)
-
[
Sync
](
#sync
)
-
[
Happy-path sync
](
#happy-path-sync
)
...
...
@@ -198,6 +199,37 @@ Applies a L2 block to the engine state.
No modifications to
[
`engine_getPayloadV1`
][
engine_getPayloadV1
]
.
Retrieves a payload by ID, prepared by
`engine_forkchoiceUpdatedV1`
when called with
`payloadAttributes`
.
### `engine_signalSuperchainV1`
Optional extension to the Engine API. Signals superchain information to the Engine:
V1 signals which protocol version is recommended and required.
Types:
```
javascript
SuperchainSignal
:
{
recommended
:
ProtocolVersion
required
:
ProtocolVersion
}
```
`ProtocolVersion`
: encoded for RPC as defined in
[
Protocol Version format specification
](
./superchain-upgrades.md#protocol-version-format
)
.
Parameters:
-
`signal`
:
`SuperchainSignal`
, the signaled superchain information.
Returns:
-
`ProtocolVersion`
: the latest supported OP-Stack protocol version of the execution engine.
The execution engine SHOULD warn the user when the recommended version is newer than
the current version supported by the execution engine.
The execution engine SHOULD take safety precautions if it does not meet the required protocol version.
This may include halting the engine, with consent of the execution engine operator.
## Networking
The execution engine can acquire all data through the rollup node, as derived from L1:
...
...
specs/rollup-node.md
View file @
4732cfa2
...
...
@@ -24,6 +24,7 @@ currently only concerned with the specification of the rollup driver.
-
[
Derivation
](
#derivation
)
-
[
L2 Output RPC method
](
#l2-output-rpc-method
)
-
[
Output Method API
](
#output-method-api
)
-
[
Protocol Version tracking
](
#protocol-version-tracking
)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
...
...
@@ -72,3 +73,20 @@ The input and return types here are as defined by the [engine API specs][engine-
-
returns:
1.
`version`
:
`DATA`
, 32 Bytes - the output root version number, beginning with 0.
1.
`l2OutputRoot`
:
`DATA`
, 32 Bytes - the output root.
## Protocol Version tracking
The rollup-node should monitor the recommended and required protocol version by monitoring
the Protocol Version contract on L1, as specified in the
[
Superchain Version Signaling specifications
]
.
[
Superchain Version Signaling specifications
]:
./superchain-upgrades.md#superchain-version-signaling
This can be implemented through polling in the
[
Driver
](
#driver
)
loop.
After polling the Protocol Version, the rollup node SHOULD communicate it with the execution-engine through an
[
`engine_signalSuperchainV1`
](
./exec-engine.md#enginesignalsuperchainv1
)
call.
The rollup node SHOULD warn the user when the recommended version is newer than
the current version supported by the rollup node.
The rollup node SHOULD take safety precautions if it does not meet the required protocol version.
This may include halting the engine, with consent of the rollup node operator.
specs/
network
-upgrades.md
→
specs/
superchain
-upgrades.md
View file @
4732cfa2
This diff is collapsed.
Click to expand it.
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