-
Notifications
You must be signed in to change notification settings - Fork 137
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
Improve external types and JSON codec #2401
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit 2a3eac6 Collapsed results for better readability
|
Codecov Report
@@ Coverage Diff @@
## master #2401 +/- ##
==========================================
+ Coverage 78.55% 78.60% +0.05%
==========================================
Files 316 316
Lines 68596 68848 +252
==========================================
+ Hits 53885 54118 +233
- Misses 12911 12928 +17
- Partials 1800 1802 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 9 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I mostly focused on external types, values, and JSON-CDC encoding.
Only have one question and a few very minor nits.
@turbolent To confirm my understanding of this change's impact on CCF specs and CCF codec #2364:
Is this correct? |
Co-authored-by: Faye Amacker <[email protected]>
|
Closes #2167
Description
cadence
(addcadence.AccountLink
and encoding in JSON-CDC)Also:
(See https://dapperlabs.slack.com/archives/C034CHNNRFD/p1679610220252009. Noticed this in the new CCF codec and realized it is there for historic reasons: We used to only have the ID, but added parameters and return type later)
sema
(for e.g. reference types, capability types, function types) and use those functions fromcadence
, instead of duplicating the ID generation code (and introducing a possibility for diverging logic, as e.g. attempted in7a1b3f5
(#2364) and 54c6987#diff-b990161986c40e0867e71c60779bc98a8730a9eb0ca5866ae8189e126863c059R1736-R1751)master
branchFiles changed
in the Github PR explorer