refactor(cbor): encoder to utils cbor - #4033
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4033 +/- ##
=======================================
Coverage 79.30% 79.30%
=======================================
Files 465 465
Lines 35786 35786
=======================================
Hits 28381 28381
Misses 7396 7396
Partials 9 9 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
477c91b to
2b5452a
Compare
| package cbor_test | ||
|
|
||
| import ( | ||
| "testing" | ||
|
|
There was a problem hiding this comment.
This file was moved from encoder/raw_test.go
|
Claude finished @RafaelGranza's task in 4m 8s —— View job Review complete
This PR is a clean mechanical rename/move ( No blockers or important issues found. Nit: |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
User description
Three things to notice:
encodertoutils/cbor/v1encodertoutils/cbor/v1utils/cbor/registrydoes not live inside a single version, since it maps extra CBOR tags to special Go objects, and these tags are order generated. It is best to keep them unified for now.PR Type
Enhancement, Other
Description
Rename
encoderpackage toutils/cbor/v1.Move registry files to
utils/cbor/registry.Update imports across the entire codebase.
Update
depguardlinter rules in.golangci.yaml.File Walkthrough
1 files
update depguard rule for CBOR package14 files
rename package to cbor and update definitionsupdate registry to use the new cbor packagerename package and SelfEncoder interfacerename package for raw CBOR definitionsreplace encoder references with cbor in accessorsupdate class definitions to use new cbor packageupdate transaction encoding to new cbor packageupdate felt CBOR unmarshalling to new packageimplement updated cbor interfaces for partial decodingupdate db key serializer to new cbor packageupdate db value serializer to new cbor packageupdate p2p encoding to use new cbor packageupdate CBOR registry import in juno commandupdate db migrations to use new cbor package5 files
remove old raw test file from encoder packageadd raw test file to the new cbor packagemigrate golden tests to new cbor packagemigrate unmarshal first tests to new cbor packageupdate test data JSON for cbor.RawMessage56 files