From 529e7fe7b048376b5417bef8e7764561096d96a7 Mon Sep 17 00:00:00 2001 From: isabelle Date: Fri, 12 Apr 2024 17:41:17 -0400 Subject: [PATCH] remove Tabs, just use multiple sections for now --- .../docs/en/technology/chain/rollup.mdx | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/content/docs/en/technology/chain/rollup.mdx b/src/content/docs/en/technology/chain/rollup.mdx index 641253878..7c989de37 100644 --- a/src/content/docs/en/technology/chain/rollup.mdx +++ b/src/content/docs/en/technology/chain/rollup.mdx @@ -121,9 +121,8 @@ At this stage, the state root of the latest finalized batch can be used trustles This section describes the codec of three data structures in the Rollup contract: `BatchHeader`, `Chunk`, and `BlockContext`. - - - ### `BatchHeader` Codec +### Scroll Mainnet + #### `BatchHeader` Codec | Field | Bytes | Type | Offset | Description | | ------------------------ | ------- | ----------- | ------ | --------------------------------------------------------------- | @@ -135,7 +134,7 @@ This section describes the codec of three data structures in the Rollup contract | `parentBatchHash` | 32 | `bytes32` | 57 | The parent batch hash | | `skippedL1MessageBitmap` | dynamic | `uint256[]` | 89 | A bitmap to indicate which L1 messages are skipped in the batch | - ### `Chunk` Codec + #### `Chunk` Codec | Field | Bytes | Type | Offset | Description | | ---------------- | ------- | -------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -147,7 +146,7 @@ This section describes the codec of three data structures in the Rollup contract | `block[n-1]` | 60 | `BlockContext` | `60*n-59` | The block information of the last block | `l2Transactions` | dynamic | `bytes` | `60*n+1` | The concatenated RLP encoding of L2 transactions with signatures. The byte length (`uint32`) of RLP encoding is inserted before each transaction. | | - ### `BlockContext` Codec + #### `BlockContext` Codec | Field | Bytes | Type | Offset | Description | | ----------------- | ----- | --------- | ------ | ----------------------------------------------------------------------------------- | @@ -157,9 +156,10 @@ This section describes the codec of three data structures in the Rollup contract | `gasLimit` | 8 | `uint64` | 48 | The gas limit of this block | | `numTransactions` | 2 | `uint16` | 56 | The number of transactions in this block, including both L1 & L2 txs | | `numL1Messages` | 2 | `uint16` | 58 | The number of L1 messages in this block - - - ### `BatchHeader` Codec + +### Scroll Sepolia + + #### `BatchHeader` Codec | Field | Bytes | Type | Offset | Description | | ------------------------ | ------- | ----------- | ------ | --------------------------------------------------------------- | @@ -172,7 +172,7 @@ This section describes the codec of three data structures in the Rollup contract | `parentBatchHash` | 32 | `bytes32` | 89 | The parent batch hash | | `skippedL1MessageBitmap` | dynamic | `uint256[]` | 121 | A bitmap to indicate which L1 messages are skipped in the batch | - ### `Chunk` Codec + #### `Chunk` Codec | Field | Bytes | Type | Offset | Description | | ---------------- | ------- | -------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -183,7 +183,7 @@ This section describes the codec of three data structures in the Rollup contract | ... | ... | ... | ... | ... | | `block[n-1]` | 60 | `BlockContext` | `60*n-59` | The block information of the last block | - ### `BlockContext` Codec + #### `BlockContext` Codec | Field | Bytes | Type | Offset | Description | | ----------------- | ----- | --------- | ------ | ----------------------------------------------------------------------------------- | @@ -193,6 +193,5 @@ This section describes the codec of three data structures in the Rollup contract | `gasLimit` | 8 | `uint64` | 48 | The gas limit of this block | | `numTransactions` | 2 | `uint16` | 56 | The number of transactions in this block, including both L1 & L2 txs | | `numL1Messages` | 2 | `uint16` | 58 | The number of L1 messages in this block - - +