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▸ 5 more #[derive(Accounts)] structs · lines 18–67
68
69#[derive(Accounts)]
70pub struct SetOpen<'info> {◇ 2 accounts · order, types and checks inferred
71 pub admin: Signer<'info>,
72 #[account(mut, seeds = [b"registry"], bump)]■ string · 8 B
73 pub registry: AccountInfo<'info>,
74}
75
76▸ 1 more #[derive(Accounts)] struct · lines 76–86
87
88#[program]
89pub mod program {
90 use super::*;
91
1292
1293 // discriminator b2d92f587985df7a● found in the code at .text+0x3d60
1294 // arg layout: @0: u8 | bool
1295 // argument names are placeholders; offsets, sizes (hence types) inferred from the handler's data reads
1296 ▾ pub fn set_open(ctx: Context<SetOpen>, arg_0: u8) -> Result<()> {● its sha256 matches the discriminator
1297 // Recovered handler logic (register-level reconstruction of `set_open_handler`; r1..r5 were the
1298 // dispatch arguments: program_id, accounts slice, instruction data). Calls to other fn_*
1299 // are in pseudocode.c.
1300 let mut local_ff8: u64 = 0;
1301 let mut