wen-community / wen-program-library

Apache License 2.0
90 stars 21 forks source link

Vanilla Solana support #61

Open balmy-gazebo opened 7 months ago

balmy-gazebo commented 7 months ago

Consider alternative ways to implement WNS such that a developer would not be forced to use Anchor to integrate directly

kespinola commented 7 months ago

https://github.com/metaplex-foundation/solana-project-template

A good template for vanilla programs with some extras.

febo commented 6 months ago

I would recommend having a look at this one as it is kept up to date with the latest Kinobi version:

https://github.com/solana-program/create-solana-program

kespinola commented 6 months ago

I think WEN should continue to leverage anchor though I have been following @febo work on nitrate so this is worth some debate. https://github.com/nifty-oss/nitrate

What is in motion is removing the need to include anchor as a dependency in order to interact with the program. The SDKs for the program will only be based on solana create since they are going to be generated by Kinobi.

febo commented 6 months ago

@kespinola Having Rust/JS SDKs without requiring Anchor is great, it will give the most flexibility to devs.

The custom entrypoint (nitrate or solana-nostd-entrypoint) would definitely be a plus, but I think it would be easier if Anchor supported it and then any program built on Anchor would benefit from the performance gains. Perhaps we could open an issue on Anchor to see if there is interest in doing that.