Skip to content

Support to/from json raw plutus data #300

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

Merged

Conversation

nielstron
Copy link
Contributor

This adds the much requested feature to load and dump unstructured PlutusData (specifically data where the structure is not known to the user). The class "RawPlutusData" is used for this purpose. Note that this also fixes an issue where for example the ScriptContext object can not be dumped becaused it contains dictionaries of the type Dict[bytes, Datum] which contain RawPlutusData.

@nielstron nielstron force-pushed the feat/support_to_json_raw_plutus_data branch from 0cf3cc5 to bdb66d0 Compare February 4, 2024 17:25
@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2024

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (df5ba28) 84.51% compared to head (cb86628) 84.40%.

Files Patch % Lines
pycardano/plutus.py 80.00% 7 Missing and 7 partials ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #300      +/-   ##
==========================================
- Coverage   84.51%   84.40%   -0.11%     
==========================================
  Files          27       27              
  Lines        3093     3161      +68     
  Branches      758      787      +29     
==========================================
+ Hits         2614     2668      +54     
- Misses        358      365       +7     
- Partials      121      128       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@cffls cffls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing! LGTM.

@nielstron nielstron merged commit 590c49a into Python-Cardano:main Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants