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

macro anchor-i11n-derive

Derive idiomatic Anchor-compatible introspection contexts

1 unstable release

0.1.0 May 2, 2024

#54 in #introspection

27 downloads per month
Used in anchor-i11n

MIT license

11KB
193 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

~18–27MB
~456K SLoC