stellar / js-stellar-sdk

Main Stellar client library for the JavaScript language.
https://stellar.github.io/js-stellar-sdk/
Apache License 2.0
628 stars 311 forks source link

[Spike] SDK Architecture Improvements #1005

Open janewang opened 2 months ago

janewang commented 2 months ago

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

Exploratory Ideas

We should timebox this spike to no more than 1 sprint.

Shaptic commented 2 months ago

Kick-Off Discussion Notes

There 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.

chadoh commented 1 month ago

There may be existing solutions in 2024 that do XDR -> JSON/TS/JS better/faster/stronger than we do and @chadoh is on point to produce a research spike on those.

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!