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

Sui Json RPC Types: Return strings for u64 #6608

Merged
merged 5 commits into from
Dec 9, 2022

Conversation

oxade
Copy link
Contributor

@oxade oxade commented Dec 6, 2022

This handles the first part of #2328
Which ensures that u64 types are represented as strings in Move call outputs.
This also indirectly implied removing ByteArray & Base64 in outputs.

Next steps in subsequent PRs:

  • remove the usage of LosslessJSON
  • replace the usage of the BN library with bigint
  • beyond Sui JSON, we need to make sure all u64 numbers are strings (example for gas used)

@vercel
Copy link

vercel bot commented Dec 6, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
explorer ⬜️ Ignored (Inspect) Dec 6, 2022 at 5:32PM (UTC)

@oxade oxade requested a review from Jordan-Mysten December 8, 2022 21:21
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2022

💳 Wallet Extension has been built, you can download the packaged extension here: https://github.com/MystenLabs/sui/actions/runs/3653849887#artifacts

@oxade oxade marked this pull request as ready for review December 9, 2022 02:47
@oxade oxade changed the title return strings for u64 Sui Json RPC Types: Return strings for u64 Dec 9, 2022
Copy link
Contributor

@patrickkuo patrickkuo left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this.

Copy link
Contributor

@666lcz 666lcz left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@Jordan-Mysten Jordan-Mysten left a comment

Choose a reason for hiding this comment

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

Wallet and explorer changes LGTM!

@oxade oxade merged commit d60a989 into main Dec 9, 2022
@oxade oxade deleted the return_u64_strings_suijson_rpc_types branch December 9, 2022 19:12
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.

5 participants