anchor icon indicating copy to clipboard operation
anchor copied to clipboard

Expose the CLI methods in crate for deserializing the IDL

Open buffalojoec opened this issue 1 year ago • 3 comments

Expose the CLI methods in crate for deserializing the IDL, using it to parse instructions and accounts within Rust

This one came from Noah G, and would love for him to shed some light on this @ngundotra

buffalojoec avatar Apr 10 '23 21:04 buffalojoec

The Anchor CLI has code to deserialize account state that should be public methods so that way devs can reuse them.

Here's an example CLI explorer that uses anchor IDLs to deserialize data (https://github.com/ngundotra/solana-tx-parser-rust/blob/196ae0eabd085d228333312a046291d88a44bea9/src/main.rs#L230-L414).

All the highlighted code actually exists in anchor CLI (maybe with some slight modifications)

ngundotra avatar Apr 10 '23 23:04 ngundotra

can i work on this as far as i understood we have to make the deserializing methods of anchor CLI public for devs to use in there code...?

startup-dreamer avatar Jul 18 '23 00:07 startup-dreamer

can i work on this as far as i understood we have to make the deserializing methods of anchor CLI public for devs to use in there code...?

That's it!

buffalojoec avatar Jul 18 '23 17:07 buffalojoec