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

Make the the backing integer type for amounts 256 bit #1282

Closed
wants to merge 106 commits into from

Conversation

batconjurer
Copy link
Member

@batconjurer batconjurer commented Apr 12, 2023

In order to be compatible with the Ethereum and IBC ecosystems, we need native support for token amounts with a backing 256 bit unsigned integer. This furthermore needs to be integrated with MASP, we requires breaking these amounts down in 64 bit words.

This PR also includes a new type Dec that replaces the dependency on the rust_decimal crate and provides a fixed-precision decimal number for computations that require it (mostly in proof-of-stake)

@batconjurer batconjurer marked this pull request as draft April 12, 2023 10:47
@batconjurer
Copy link
Member Author

pls update wasm

@batconjurer batconjurer marked this pull request as ready for review June 29, 2023 09:19
@mariari
Copy link
Member

mariari commented Jun 30, 2023

Note for real history, merge #1630 into main.

Eth integration + amounts can still use this branch as they share a common ancestor, and the existence of this branch should make it easier to reuse existing work.

@brentstone
Copy link
Collaborator

Closed as completed by #1630.

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.

9 participants