1// Reconstructed from the compiled program by revrsly.
2// Read from the bytecode: instruction names and discriminators; each instruction's accounts in
3// order, with the types and attributes their loaders' checks imply (◇ inferred: the error codes
4// they raise, the account type whose discriminator they compare, the program ids they compare
5// with); the program's error enum; event and account type names. `/* … */` is a value not
6// recovered. Handler bodies are the register-level logic of each instruction's own handler.
7// Argument names come from a published IDL when there is one, else they are placeholders; struct
8// fields are not recovered. This is a reconstruction, NOT the author's source, and will not
9// compile as-is.
10// Program: EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6 (mainnet)
11
12use anchor_lang::prelude::*;
13
14declare_id!("EPAAwc1SGWCheofexAqLVZ7jm1nk2ahrqX5pev1bMyo6");■ string · 44 B
15
16// Accounts — each instruction's accounts, in order, as its account loader (try_accounts) checks them.
17
18▸ 1 more #[derive(Accounts)] struct · lines 18–27
28
29#[derive(Accounts)]
30pub struct InitMint<'info> {◇ 6 accounts · order, types and checks inferred
31 pub admin: Signer<'info>,
32 #[account(mut)]
33 pub payer: Signer<'info>,
34 #[account(seeds = [b"registry"], bump)]■ string · 8 B
35 pub registry: AccountInfo<'info>,
36 #[account(mut, seeds = [b"extra-account-metas", /* 32 bytes */], bump)]■ string · 19 B
37 pub extra_account_meta_list: AccountInfo<'info>,
38 pub mint: InterfaceAccount<'info, Mint>,
39 pub system_program: Program<'info, System>,
40}
41
42▸ 5 more #[derive(Accounts)] structs · lines 42–86
87
88#[program]
89pub mod program {
90 use super::*;
91
497
498 // discriminator 7eb0e9104275d17d● found in the code at .text+0x3d78
499 // args
500 ▾ pub fn init_mint(ctx: Context<InitMint>) -> Result<()> {● its sha256 matches the discriminator
501 // Recovered handler logic (register-level reconstruction of `init_mint_handler`; r1..r5 were the
502 // dispatch arguments: program_id, accounts slice, instruction data). Calls to other fn_*
503 // are in pseudocode.c.
504 let mut local_ff8: u64 = 0;
505 let mut local_72_u16: u16 = 0;
506 let mut local_72_u8: u8