#converter #solana #solana-idl-converter

solana-idl-converter

Converts Rust Solana Classic IDL types definitions de/serializable with serde from various IDL formats

2 unstable releases

0.2.0 Jul 17, 2024
0.1.0 Jun 19, 2024

#226 in #converter

Download history 8/week @ 2024-12-07 16/week @ 2025-01-25 99/week @ 2025-02-01 164/week @ 2025-02-08 79/week @ 2025-02-15 32/week @ 2025-02-22 39/week @ 2025-03-01 106/week @ 2025-03-08 60/week @ 2025-03-15 25/week @ 2025-03-22

237 downloads per month
Used in 4 crates (via solana_idl)

MIT license

33KB
733 lines

Solana IDL Converter

Converts different IDL formats to a common classic IDL format.

Warning

Not all parts of the new formats can be properly converted to the classic one, thus use this with care.

Specifically IDL instruction discriminants had a single u8 (who has more than 256 instructions?) but the new anchor format uses a Vec<u8> instead.

Usage

Please refer to the tests for examples on how to use this.

LICENSE

MIT

Dependencies

~0.8–1.7MB
~36K SLoC