Skip to content
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

Allow runestone to be deserialized from json #3339

Merged

Conversation

emilcondrea
Copy link
Contributor

@emilcondrea emilcondrea commented Mar 22, 2024

Allow runestone to be deserialized from json.

This would be super-helpful intermediary step until we get a separate library for encoding/decoding payloads.

@casey @raphjaph , I know there are some versions of these that are already deserializable and used by the wallet(eg. wallet/inscribeetch.rs), but if wallet does not expose customization for some fields, they will not be included there. This is needed for protocol convertors, to actually have the exact same structures.

@emilcondrea
Copy link
Contributor Author

This is for those of us doing integrations, allowing us to consume easier the protocol changes.
In the future, should be handled by #3321

@casey casey enabled auto-merge (squash) March 22, 2024 18:53
@casey casey merged commit 9f0790a into ordinals:master Mar 22, 2024
5 checks passed
@casey
Copy link
Collaborator

casey commented Mar 22, 2024

Thanks for the PR! I removed the test, since we generally don't test automatically derived serialization implementations.

@emilcondrea
Copy link
Contributor Author

Thanks for merging this!

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.

None yet

2 participants