Expand description
Anchor IDL adapter for ratchet.
Loads Anchor IDLs from local build output and from on-chain IDL accounts,
and normalizes them into the ratchet-core intermediate representation.
Re-exports§
pub use decode::decode_idl_account;pub use decode::IDL_PREFIX_LEN;pub use fetch::fetch_account_data;pub use fetch::fetch_idl_account;pub use fetch::fetch_idl_for_program;pub use fetch::Cluster;pub use idl::AnchorIdl;pub use load::load_idl_from_file;pub use load::load_idl_from_workspace;pub use normalize::default_account_discriminator;pub use normalize::default_event_discriminator;pub use normalize::default_instruction_discriminator;pub use normalize::normalize;pub use pda::anchor_idl_address;pub use pda::find_program_address;pub use pda::is_on_curve;pub use pda::create_with_seed;pub use pda::decode_pubkey;pub use pda::encode_pubkey;pub use pda::ANCHOR_IDL_SEED;
Modules§
- decode
- Decode an Anchor IDL account’s raw account data.
- fetch
- Fetch an Anchor IDL account from a JSON-RPC endpoint.
- idl
- Rust mirror of the Anchor IDL JSON schema (Anchor 0.30+).
- load
- Load Anchor IDL JSON from the local filesystem.
- normalize
- Lower a parsed
AnchorIdlinto the framework-agnosticProgramSurface. - pda
- Program-derived address math — enough to derive Anchor’s IDL account
from a program id without pulling in
solana-sdk.