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

Consider compatibility with borsh #1980

Open
ARitz-Cracker opened this issue Jan 3, 2024 · 0 comments
Open

Consider compatibility with borsh #1980

ARitz-Cracker opened this issue Jan 3, 2024 · 0 comments

Comments

@ARitz-Cracker
Copy link

ARitz-Cracker commented Jan 3, 2024

Is adding #[derive(BorshSerialize, BorshDeserialize)] to all the structs provided by cosmwasm-std something you're willing to consider? Especially with a "2.0" coming out soon? I have a couple of contracts in development that are currently using bincode to serialize their state, and while I understand why you may want to serialize u64's and larger as strings when communicating with JS/TS systems, when it comes to storing variable-length data as cheaply as possible which is going to be served to the client through queries anyway, I would like a way to opt out of that.

As a sidenote, deriving Zeroable and Pod traits from bytemuck on fixed-length types (i.e. all the number types) could be cool as well.

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

No branches or pull requests

1 participant