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

SDK: Solana package restructure #438

Open
4 of 6 tasks
barnjamin opened this issue Apr 30, 2024 · 0 comments
Open
4 of 6 tasks

SDK: Solana package restructure #438

barnjamin opened this issue Apr 30, 2024 · 0 comments

Comments

@barnjamin
Copy link
Contributor

barnjamin commented Apr 30, 2024

Restructure the SDK workspace, allowing platform specific SDK source files to live alongside their contracts.

Goals

  1. Reduce code duplication
    a. Reuse existing TS library code in SDK
    b. Check in a single copy of the IDL for a contract version
  2. Provide a more convenient way to interact with the ts code for a given platform
  • Move package workspace to root and update
  • Move /solana/ts to /solana/ts/lib to allow re-use of the library methods
  • Move /sdk/solana to /solana/ts/sdk
  • Check in generated IDL to /solana/ts/idl

The above items are completed in this pr

  • Remove the OmitGenerics type, we have a Makefile directive to generate generic-free .ts files
  • Modify the SDK code in /solana/ts/sdk to invoke methods provided in /sdk/ts/lib
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