#introspection #anchor #idiomatic #instructions #account #programs #helper

anchor-i11n

Derive idiomatic Anchor-compatible introspection contexts

1 unstable release

new 0.1.0 May 2, 2024

#42 in #introspection

Download history 156/week @ 2024-04-29

156 downloads per month

MIT license

11KB
240 lines

Anchor i11n

A set of helper macros that allows for more idiomatic usage of Instruction Introspection (i11n) with Anchor programs.

What can you do with this?

Ever tried to use Instruction Introspection only to be confronted with a random array of bytes and accounts, forcing you to go and roll your own de/serialization or keep another tab open to look up the account indexes? No more!

Why i11n?

For whatever reason, I often make typos writing the word introspection. Calling it i11n solves this problem for me. Hope that helps.

License

Do whatever you want.

Dependencies

~17–26MB
~436K SLoC