-
Notifications
You must be signed in to change notification settings - Fork 249
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
Consolidate and update Borsh for TS/JS #252
Comments
@nearmax Is this the correct list of TODOs?
|
There are few important points that shouldn't be missed:
|
@kcole16 I don't know how I missed your comment.
Yes, correct.
I agree.
This is an important improvement, which will allow us in the future to directly convert JSON to Borsh using Borsh schema @vgrichina Please also note that this is not blocking our Mainnet launch, so we have removed it from Mainnet release in Zenhub last week. If you have other items that are blocking the Mainnet launch then you might consider them more important. |
@nearmax re mainnnet priorities we likely need to do smth about RPCs. Looks like long polling on nearcore side works bad (e. g. tx-status for non existing hash). This will require changes both in nearcore and in nearlib, though should be pretty localized. |
Yes, but these changes look orthogonal to Borsh changes. CC @frol |
|
@kcole16 , @vgrichina We need to bump priority on this. Flux has been asking examples on JS-side Borsh serialization, which we cannot do until we consolidate different implementations. |
Requires: near/borsh#71 |
@vgrichina @nearmax this issues is a bit outdated
should we consider |
@volovyk-s not sure it’s a P1 but it’s relatively important as would solve the problem with using multiple near-api-js instances in your app. Basically the idea is to avoid relying on constructor instances to identify schema. |
Closing this issue since it's not relevant to |
Currently we have three different implementation of TS/JS that have slightly different functionality and bugs:
We should unify them into one implementation that lives in https://github.com/nearprotocol/borsh .
Also, near/borsh#57 and near/borsh#56 introduced a slightly modified Borsh schema format which now allows serializing any Rust types, even with generics, and it is not Rust-specific. We should make sure we follow this new schema format.
Note, as requested by @vgrichina Borsh Schema is in Borsh format rather than JSON.
The text was updated successfully, but these errors were encountered: