Commit f8a8d38
feat: add set code tx support (#43)
* add initial CodecV6 and daBatchV6
* feat: add codecv5 and codecv6 for Euclid fork
* implement blob encoding and decoding according to new blob layout
* rename to CodecV7
* add NewDABatchFromParams
* add DecodeBlob to Codec
* Update da.go
* Update interfaces.go
* fixes after merge
* address review comments
* add sanity checks for blob payload generation
* fix few small bugs uncovered by unit tests
* upgrade to latest l2geth version and add correct getter for CodecV7 in CodecFromConfig
* fix linter warnings
* add unit tests
* go mod tidy
* fix linter warnings
* add function MessageQueueV2ApplyL1MessagesFromBlocks to compute the L1 message hash from a given set of blocks
* fix lint and unit test errors
* call checkCompressedDataCompatibility only once -> constructBlobPayload only once
* address review comments
* update BlobEnvelopeV7 documentation
* add CodecV7 to general util functions
* add InitialL1MessageQueueHash and LastL1MessageQueueHash to encoding.Chunk
* go mod tidy
* upgrade go-ethereum dependency to latest develop
* implement estimate functions
* update TestMain and run go mod tidy
* add NewDAChunk to CodecV7 for easier use in relayer
* add daChunkV7 type to calculate chunk hash
* allow batch.chunks but check consistency with batch.blocks
* fix off-by-one error with L1 messages
* Fix: rolling hash implementation (#42)
* fix: clear 32 bits instead of 36
* fix: test expectations for rolling hash
* fix: tests
* fix tests
---------
Co-authored-by: jonastheis <4181434+jonastheis@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: colin <102356659+colinlyguo@users.noreply.github.com>
* rename initialL1MessageQueueHash -> prevL1MessageQueueHash and lastL1MessageQueueHash -> postL1MessageQueueHash
* address review comments
* address review comments
* add challenge digest computation for batch
* remove InitialL1MessageIndex from CodecV7
* address review comments
* fix tests
* refactoring to minimize duplicate code and increase maintainability
* fix nil pointer
* feat: add setcode tx support
* add AccessList and AuthList
* go mod tidy
* fix conflict fix bugs
* update dependency
---------
Co-authored-by: jonastheis <4181434+jonastheis@users.noreply.github.com>
Co-authored-by: Ömer Faruk Irmak <omerfirmak@gmail.com>
Co-authored-by: Péter Garamvölgyi <peter@ip-192-168-0-18.us-west-2.compute.internal>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
Co-authored-by: Rohit Narurkar <rohit.narurkar@proton.me>1 parent 2ace506 commit f8a8d38
3 files changed
+23
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
264 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
265 | 283 | | |
266 | 284 | | |
267 | 285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments