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: Anchu75SGbEUeWL5WcSVG9XJQb21NVmmA1faQ7Vse7t9 (mainnet)
11
12use anchor_lang::prelude::*;
13
14declare_id!("Anchu75SGbEUeWL5WcSVG9XJQb21NVmmA1faQ7Vse7t9");■ string · 44 B
15
16// Accounts — each instruction's accounts, in order, as its account loader (try_accounts) checks them.
17
18▸ 8 more #[derive(Accounts)] structs · lines 18–170
171
172#[derive(Accounts)]
173pub struct UpdateProtocol<'info> {◇ 2 accounts · order, types and checks inferred
174 pub admin: Signer<'info>,
175 #[account(mut, seeds = [/* … */], bump, has_one = /* … */)]
176 pub protocol: AccountInfo<'info>,
177}
178
179#[program]
180pub mod anchor_fees {
181 use super::*;
182
4421
4422 // discriminator ce19da726d294aad● found in the code at .text+0x5215e
4423 // args
4424 ▾ pub fn update_protocol(ctx: Context<UpdateProtocol>) -> Result<()> {● its sha256 matches the discriminator
4425 // ◇ The program's own handler (`update_protocol` in reconstructed.rs), register-level. Anchor's wrapper
4426 // (`update_protocol_handler`) loads the accounts, then calls it with r1 = where its Result is written,
4427 // r2 = &Context, r3..r5 = the arguments in order (larger ones by reference; more on the stack).
4428 // 15 stack slots (local_…) used below; declared in reconstructed.rs.
4429 r8 = r5;
4430 local_c0 = r4;
4431 local_c8 = r3;
4432 local_b8 = r1;
4433