solana-idl-foundation / solana-idl-spec

Specifying a Solana IDL Standard, inspired from the Anchor IDL Standard
Apache License 2.0
20 stars 2 forks source link

Split up typescript type files #9

Closed ngundotra closed 1 year ago

ngundotra commented 1 year ago

We should split them up so it's easier to comment on them & make changes.

Apologies @thlorenz I think this will require an additional step in the build command.

callensm commented 1 year ago

good to merge?

thlorenz commented 1 year ago

This LGTM. It's mostly expressing the current anchor IDL - which is fine. Once it's merged I can add/adapt some types to find a common ground so shank/solita types are reflected as well.

thlorenz commented 1 year ago

One thing we can also discuss is remove some parts that are too anchor specific, (maybe events). Solita doesn't have those for instance. Basically the idea would be to end up with something like the following:

In the above events would just be an extension that anchor adds on top of the core spec.

However we can merge this for now IMO and discuss what should go/stay in core separately.