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

token-2022(feat): add serialisation option for the extensions #5437

Merged
merged 2 commits into from Oct 17, 2023
Merged

token-2022(feat): add serialisation option for the extensions #5437

merged 2 commits into from Oct 17, 2023

Conversation

ghost
Copy link

@ghost ghost commented Oct 5, 2023

Fixes #5431

Note that for extension confidentional_transfer and confidential_transfer_fee, some the fields are in a separate sdk which doesn't have the serialisation enabled. We would have to change there first before setting it here

Tested by turning on the compile time flags serde-trait by default and using it in our codebase.

buffalojoec
buffalojoec previously approved these changes Oct 10, 2023
Copy link
Contributor

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

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

Lgtm!

@mergify mergify bot dismissed buffalojoec’s stale review October 10, 2023 14:05

Pull request has been modified.

Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great, thanks! If you're interested in doing the zk bits, you'll find those types at https://github.com/solana-labs/solana/tree/master/zk-token-sdk

@joncinque joncinque merged commit 5988b6b into solana-labs:master Oct 17, 2023
30 checks passed
@ghost
Copy link
Author

ghost commented Oct 19, 2023

Looks great, thanks! If you're interested in doing the zk bits, you'll find those types at https://github.com/solana-labs/solana/tree/master/zk-token-sdk

Done: solana-labs/solana#33760
This was tested in our private fork.

@ghost ghost deleted the token2022-extensions-serialisation branch October 19, 2023 00:06
Copy link
Contributor

@joncinque joncinque 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 my fault, I'm just realizing that all of these should have rename_all = "camelCase" configured too. I'll get a PR up for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[spl-token-2022]: Allow serialisation/deserialisation for token-2022 extensions
3 participants