-
Notifications
You must be signed in to change notification settings - Fork 316
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
[Spike] SDK Architecture Improvements #1005
Comments
Kick-Off Discussion NotesThere are many possible approaches on improving the XDR <-> TypeScript pipeline, each with their own trade-offs:
Does that cover things, guys? Feel free to edit my comment or add more thoughts below. |
I asked @BlaineHeffron to help with this while I was busy with other things, and his discovery is "SDF is the only team building XDR libraries" and that, if we want something, we will need to be the ones to build it! |
@willemneal Please summarize what you did
|
This spike is to evaluate the current architecture: xdrgen to js-xdr (where js-xdr produces an output which uses dts-xdr to output the d.ts typescript definition). Details in this doc.
Paths
One suggested path: In an ideal world, can go straight from xdrgen to typescript. (possibly rewrite js-xdr to ts-xdr?)
Another possible path: JSON => XDR. However, there is concern on performance (need to bundle) and also technical lift. Short term, we could potentially add a .toJSON() method to convert
Exploratory Ideas
We should timebox this spike to no more than 1 sprint.
The text was updated successfully, but these errors were encountered: