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
9ad1c17a
Unverified
Commit
9ad1c17a
authored
Mar 20, 2023
by
Maurelian
Committed by
GitHub
Mar 20, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5201 from node-real/update_spec
parents
1258b25f
2aadc2dd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
components.svg
specs/assets/components.svg
+1
-1
propagation.svg
specs/assets/propagation.svg
+1
-1
overview.md
specs/overview.md
+5
-5
withdrawals.md
specs/withdrawals.md
+1
-1
No files found.
specs/assets/components.svg
View file @
9ad1c17a
This diff is collapsed.
Click to expand it.
specs/assets/propagation.svg
View file @
9ad1c17a
This diff is collapsed.
Click to expand it.
specs/overview.md
View file @
9ad1c17a
...
...
@@ -48,8 +48,8 @@ mechanisms.
### L1 Components
-
**
DepositFeed
**
: A feed of L2 transactions which originated as smart contract calls in the L1 state.
-
The
`
DepositFeed
`
contract emits
`TransactionDeposited`
events, which the rollup driver reads in order to process
-
**
OptimismPortal
**
: A feed of L2 transactions which originated as smart contract calls in the L1 state.
-
The
`
OptimismPortal
`
contract emits
`TransactionDeposited`
events, which the rollup driver reads in order to process
deposits.
-
Deposits are guaranteed to be reflected in the L2 state within the _sequencing window_.
-
Beware that _transactions_ are deposited, not tokens. However deposited transactions are a key part of implementing
...
...
@@ -106,7 +106,7 @@ The below diagram illustrates how the sequencer and verifiers fit together:
-
[
Deposits
](
./deposits.md
)
Optimism supports two types of deposits: user deposits, and L1 attributes deposits. To perform a user deposit, users
call the
`depositTransaction`
method on the
`
DepositFeed
`
contract. This in turn emits
`TransactionDeposited`
events,
call the
`depositTransaction`
method on the
`
OptimismPortal
`
contract. This in turn emits
`TransactionDeposited`
events,
which the rollup node reads during block derivation.
L1 attributes deposits are used to register L1 block attributes (number, timestamp, etc.) on L2 via a call to the L1
...
...
@@ -141,8 +141,8 @@ worth of blocks has passed, i.e. after L1 block number `n + SEQUENCING_WINDOW_SI
Each epoch contains at least one block. Every block in the epoch contains an L1 info transaction which contains
contextual information about L1 such as the block hash and timestamp. The first block in the epoch also contains all
deposits initiated via the
`
DepositFeed`
contract on L1. All L2 blocks can also contain _sequenced transactions_, i.e.
transactions submitted directly to the sequencer.
deposits initiated via the
`
OptimismPortal`
contract on L1. All L2 blocks can also contain _sequenced transactions_,
i.e.
transactions submitted directly to the sequencer.
Whenever the sequencer creates a new L2 block for a given epoch, it must submit it to L1 as part of a _batch_, within
the epoch's sequencing window (i.e. the batch must land before L1 block
`n + SEQUENCING_WINDOW_SIZE`
). These batches are
...
...
specs/withdrawals.md
View file @
9ad1c17a
...
...
@@ -130,7 +130,7 @@ recognize that having the same address does not imply that a contract on L2 will
## The Optimism Portal Contract
The Optimism Portal serves as both the entry and exit point to the Optimism L2. It is a contract which inherits from
the
[
DepositFeed
](
./deposits.md#deposit-contract
)
contract, and in addition provides the following interface for
the
[
OptimismPortal
](
./deposits.md#deposit-contract
)
contract, and in addition provides the following interface for
withdrawals:
-
[
`WithdrawalTransaction` type
]
...
...
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