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

Support for Int256 #52

Open
gd87429 opened this issue Dec 10, 2022 · 4 comments
Open

Support for Int256 #52

gd87429 opened this issue Dec 10, 2022 · 4 comments
Labels
data-types enhancement New feature or request

Comments

@gd87429
Copy link

gd87429 commented Dec 10, 2022

Wasn't sure whether to comment on #48 or not. Do you have any suggestions on how to handle Clickhouse's Int256 in Rust?

@gd87429
Copy link
Author

gd87429 commented Dec 22, 2022

@loyd There's convenient U256 and I256 here btw.

@loyd
Copy link
Collaborator

loyd commented Jan 3, 2023

These wrappers are convenient, but ethers_core is much bigger than just numeric types.

@gd87429
Copy link
Author

gd87429 commented Jan 3, 2023

@loyd You're right, it is much bigger. If not integrate these types into this lib, any advise on how to use outside of the lib?

@loyd
Copy link
Collaborator

loyd commented Jan 4, 2023

You can implement Serialize and Deserialize (either by creating a custom wrapper type or using serde(with) attribute) in similar way as U256 in #48.

@slvrtrn slvrtrn added enhancement New feature or request data-types labels Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-types enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants