-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: move some common functions to encoding #24
Merged
colinlyguo
merged 2 commits into
feat-support-conditional-encode
from
refactor-move-some-common-functions-to-encoding
Aug 20, 2024
Merged
refactor: move some common functions to encoding #24
colinlyguo
merged 2 commits into
feat-support-conditional-encode
from
refactor-move-some-common-functions-to-encoding
Aug 20, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
georgehao
approved these changes
Aug 20, 2024
georgehao
approved these changes
Aug 20, 2024
colinlyguo
added a commit
that referenced
this pull request
Aug 22, 2024
* feat: support conditional encode * move append conditionalEncode flag after validity check * update da-codec * align naming * add ConvertBlobToBlobBytes utility functions * kept blob bytes * rename enableEncode to enableCompress * refactor: move some common functions to encoding (#24) * refactor: move some common functions to encoding * fix golint * move symbol replace script to zstd folder * Update encoding/codecv4/codecv4_test.go Co-authored-by: Péter Garamvölgyi <[email protected]> * fix typos --------- Co-authored-by: Péter Garamvölgyi <[email protected]>
colinlyguo
added a commit
that referenced
this pull request
Oct 18, 2024
* feat: support conditional encode * move append conditionalEncode flag after validity check * update da-codec * align naming * add ConvertBlobToBlobBytes utility functions * kept blob bytes * rename enableEncode to enableCompress * refactor: move some common functions to encoding (#24) * refactor: move some common functions to encoding * fix golint * move symbol replace script to zstd folder * refactor: move some util functions to public package * fix CI * add interfaces of codec * add SetCompression * move interface to encoding * refactor * add dablock.go * add dachunk.go * add dabatch.go * move computeBatchDataHash to codecv * fix * add DABatchBase * add GetCodecVersion * add BlobVersionedHashes * rename encoding.go to interfaces.go * add NewDABatchWithExpectedBlobVersionedHashes * tweak * fix a bug * add more logs * add DecodeDAChunks * add BlockRange interface * fix * add version check * add Version * remove DABatchBase * add DABlock * fixes * fix * add CodecFromVersion and CodecFromConfig * remove GetCodecVersion * fix typos * make Block fields internal * make chunk fields internal * make batch fields internal and add some tweaks * add JSONFromBytes * fix a typo * use register mode * fix CI * remove register mode * add common functions * add EstimateBlockL1CommitCalldataSize * add dabatch interfaces * update interface implementations * add data hash * fix codecv3 & codecv4 estimate gas * fix * fix bugs * tweak * add CheckChunkCompressedDataCompatibility & CheckBatchCompressedDataCompatibility * fix * add BlobDataProofForPointEvaluation * add nil check in NewDAChunk * make some util functions internal * remove GetMaxChunksPerBatch * fix CI * change receiver mark from o to d * remove SetCompression * fix * add GetChunkEnableCompression & GetBatchEnableCompression * fix * update l2geth dependency * make types internal * embed codecv0 <- codecv1 <- codecv2 <- codecv3 <- codecv4 * remove dablock.go dachunk.go dabatch.go * trigger ci * tweak * tweaks * add back TxsToTxsData * fix * fix * fix * fix * fix * fix * tweak * add back test block encode and test chunk encode unit tests * replace some constants with meaningful vars * rename daBatchV2 to daBatchV3 * add chunk hash unit tests * add batch encode * add batch hash unit tests * add batch data hash & json marshal unit tests * add calldata size unit tests * add commit gas estimation * add BatchSizeAndBlobSizeEstimation unit tests * add L1MessagePopped unit tests * add BlobEncodingAndHashing unit tests * add blob data proof unit tests * add TestDecodeBitmap * add BlobCompressDecompress unit tests * tweaks and bug fixes * fix goimport * add StandardTestCases * edge cases * fixes * address ai's comments * address ai's comments * address ai's comments * address comments * address ai's comment * remove some constants * address comments * add more logs * address comments * address comments * address comments * address comments * add simple and nil functions unit tests * add uncompressed case unit tests of DecodeTxsFromBlob * add interface unit tests * add codecv2 & codecv3 CompressedDataCompatibilityCheck unit tests * remove mock flag * add JSONFromBytes unit tests * add codecv4 CompressedDataCompatibilityCheck unit tests * add NewDABatchFromBytes unit tests * fix golint * tweaks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose or design rationale of this PR