kleros-v2
kleros-v2 copied to clipboard
feat: SSQ
Serialization scheme supporting simple binary fields of variable length.
PR-Codex overview
Focus of this PR:
This PR introduces the SSQ library for serialization and deserialization of data. It also updates the KlerosCore contract to use the SSQ library for reducing L1 calldata costs on Optimistic Rollups.
Detailed summary:
- Added
SSQlibrary for serialization and deserialization of data. - Updated
KlerosCorecontract to use theSSQlibrary for reducing L1 calldata costs on Optimistic Rollups. - Added new functions
setStakeandcreateDisputethat use serialized arguments withSSQlibrary.
The following files were skipped due to too many changes:
contracts/src/libraries/SSQ.sol,contracts/src/arbitration/dispute-kits/DisputeKitClassic.sol
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}
SSQ compression could be made obsolete by Arbitrum Nitro, to check. https://offchain.medium.com/its-nitro-time-86944693bf29
Code Climate has analyzed commit 81bfe94c and detected 0 issues on this pull request.
View more on Code Climate.
Kudos, SonarCloud Quality Gate passed! 
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
nitro will have native call data compressions, so SSQ seems like it won't be needed. It's still unclear how compressed calldata with be priced, see here.
Just clarifying this feature is low priority.
Yes, let's see what the potential gains look like once Nitro is out of DevNet.
Deploy Preview for kleros-v2 failed.
| Name | Link |
|---|---|
| Latest commit | a93922efdbf7464a177fe4c148bf3554bbb08b5f |
| Latest deploy log | https://app.netlify.com/sites/kleros-v2/deploys/65ba97392e2e1d0008e5999a |