pvp
Reconstructed91.4% of control flow structuredAnchor ◇A8eZ1qbbSJvw9UiBKY76PtCJNM9P18SbtTBWDCDYTzX3decompiled 13 Oct 2026
- Loader
- ■v3 · upgradeable
- sBPF
- ■v3
- Size
- ■1,069,976 bytes
- Instructions
- ●119,369
- Functions
- ●746
- SHA-256
- ●a3d96e72…8288d17d
- Upgrade authority
- ■BmeF…7ZYs
- Last deploy slot
- ■456,472,960
❝ Published by the authors · nothing, so everything here is revrsly outputVerified build · noneIDL · none publishedsecurity.txt · none
Loading the reconstruction…
1// Reconstructed from the compiled program by revrsly, based on sbpf-inspect.
2// Instruction names, discriminators, accounts and their mut/signer flags come from the
3// bytecode. Handler bodies are the recovered register-level logic where the handler function
4// could be located, else `todo!()`. Argument names/types are from the published IDL when there
5// is one, else inferred placeholders; account/struct fields are not recovered. This is a
6// reconstruction, NOT the author's source, and will not compile as-is.
7// Program: A8eZ1qbbSJvw9UiBKY76PtCJNM9P18SbtTBWDCDYTzX3 (mainnet)
8
9use anchor_lang::prelude::*;
10
11// Accounts — the account list of each instruction (recovered from the bytecode).
12
13#[derive(Accounts)]
14pub struct BlockName
<'info> {
◇ 5 accounts · order, types and checks inferred
16 pub admin: Signer<'info>,
17 pub config: AccountInfo<'info>,
18 pub operator: AccountInfo<'info>,
20 pub blocked: AccountInfo<'info>,
21 pub system_program: AccountInfo<'info>,
24▸ 32 more #[derive(Accounts)] structs · lines 24–560
566 // discriminator 190a895cc7fd9ad1● found in the code at .text+0x335c0
567 // no args read (or decoded deeper than revrsly follows)
568 ▾ pub fn block_name(ctx: Context<BlockName>) -> Result<()> {● its sha256 matches the discriminator
569 // Recovered handler logic (register-level reconstruction of `block_name_handler`; r1..r5 were the
570 // dispatch arguments: program_id, accounts slice, instruction data). Calls to other fn_*
571 // are in pseudocode.c. This is not the author's source and will not compile.
572 let mut local_1000: u16 = 0;
573 let mut local_ffe: u8 = 0;
574 let mut local_ffd: u32 = 0;
575 let mut local_ff9: u64 = 0;
576 let mut local_ff1: u64 = 0;
577 let mut local_fe9: u64 = 0;
578 let mut local_fe1: u8 = 0;
579 let mut local_fe0: u64 = 0;
580 let mut local_fdf: u64 = 0;
581 let mut local_fd8_u8: u8 = 0;
582 let mut local_fd8_u64: u64 = 0;
583 let mut local_fd0: u64 = 0;
584 let mut local_fc8: u64 = 0;
585 let mut local_fc0: u8 = 0;
586 let mut local_fbf: u8 = 0;
587 let mut local_ed8: u64 = 0;
588 let mut local_ed0: u64 = 0;
589 let mut local_ec8: u64 = 0;
590 let mut local_ec0: u64 = 0;
591 let mut local_dd0: u64 = 0;
592 let mut local_dc8: u64 = 0;
593 let mut local_dc0_u16: u16 = 0;
594 let mut local_dc0_u8: u8 = 0;
595 let mut local_dbf: u8 = 0;
596 let mut local_db8: u64 = 0;
597 let mut local_0: u64 = 0;
603 sol_log_("Instruction: BlockName", 0x16); // log a string■ string · 22 B
605 r1 = *((r7 + 6) as *const u64);
606 local_fd8_u8 = *((r7 + 0xe) as *const u8);
607 local_1000 = *((r7) as *const u16);
608 local_ffe = *((r7 + 2) as *const u8);
609 r2 = *((r7 + 3) as *const u16);
610 r3 = *((r7 + 5) as *const u8);
612 local_ff9 = local_fdf;
613 local_ffd = r1 << 0x18 | (r2 | r3 << 0x10);
614 local_fe9 = *((r7 + 0x17) as *const u64);
615 local_ff1 = *((r7 + 0xf) as *const u64);
616 local_fe1 = *((r7 + 0x1f) as *const u8);
617 local_dc0_u16 = 0xffff;
620 local_0 = &local_dc0_u64;
622 r0 = block_name_try_accounts(&local_fe0, r9, &local_dd0, r7, r6);
629 r0 = fn_f4c90(&local_ec0, &local_fc8, 0xf0);
633 local_fbf = local_dbf;
634 local_fc0 = local_dc0_u8;
635 local_fc8 = local_dc8;
636 local_fd0 = local_dd0;
637 local_fd8_u64 = &local_ed8;
639 r0 = fn_43170(&local_fe0, &local_1000);
641 r0 = fn_b9788(&local_ed8, r9);
645 r0 = fn_e1060(0xc880); // &"failed to fill whole buffer"
649 r2 = *((*((r0 + 7) as *const u64)) as *const u64);
651 r1 = *((r0 - 1) as *const u64);
652 r0 = call_indirect(r2, r1, r2, r3, r4, r5);
656 r0 = fn_d6d20(0x66); // Anchor error 102 InstructionDidNotDeserialize?
663 ▸ pub fn claim_curve_fees(ctx: Context<ClaimCurveFees>) -> Result<()> { … 56 lines }
724 ▸ pub fn claim_holder_rewards(ctx: Context<ClaimHolderRewards>) -> Result<()> { … 245 lines }
974 ▸ pub fn claim_partner_surplus(ctx: Context<ClaimPartnerSurplus>) -> Result<()> { … 56 lines }
1035 ▸ pub fn claim_pool_fees(ctx: Context<ClaimPoolFees>) -> Result<()> { … 56 lines }
1096 ▸ pub fn claim_rewards(ctx: Context<ClaimRewards>) -> Result<()> { … 55 lines }
1156 ▸ pub fn complete_unstake(ctx: Context<CompleteUnstake>) -> Result<()> { … 59 lines }
1220 ▸ pub fn create_proposal(ctx: Context<CreateProposal>) -> Result<()> { … 252 lines }
1478 ▸ pub fn create_token(ctx: Context<CreateToken>, … 7 args) -> Result<()> { … 215 lines }
1698 ▸ pub fn execute_proposal(ctx: Context<ExecuteProposal>) -> Result<()> { … 58 lines }
1761 ▸ pub fn init_holder_rewards(ctx: Context<InitHolderRewards>) -> Result<()> { … 114 lines }
1880 ▸ pub fn init_stake_pool(ctx: Context<InitStakePool>) -> Result<()> { … 54 lines }
1940 ▸ pub fn initialize_config(ctx: Context<InitializeConfig>, … 24 args) -> Result<()> { … 237 lines }
2182 ▸ pub fn request_unstake(ctx: Context<RequestUnstake>) -> Result<()> { … 81 lines }
2268 ▸ pub fn set_admin(ctx: Context<SetAdmin>) -> Result<()> { … 88 lines }
2361 ▸ pub fn set_dbc_config(ctx: Context<SetDbcConfig>) -> Result<()> { … 62 lines }
2429 ▸ pub fn set_fee_recipient(ctx: Context<SetFeeRecipient>, … 9 args) -> Result<()> { … 84 lines }
2518 ▸ pub fn set_fees(ctx: Context<SetFees>) -> Result<()> { … 95 lines }
2618 ▸ pub fn set_governance(ctx: Context<SetGovernance>) -> Result<()> { … 100 lines }
2723 ▸ pub fn set_operator(ctx: Context<SetOperator>) -> Result<()> { … 90 lines }
2818 ▸ pub fn set_pvp_token(ctx: Context<SetPvpToken>) -> Result<()> { … 90 lines }
2913 ▸ pub fn set_rewards_authority(ctx: Context<SetRewardsAuthority>) -> Result<()> { … 90 lines }
3008 ▸ pub fn set_rewards_root(ctx: Context<SetRewardsRoot>) -> Result<()> { … 129 lines }
3142 ▸ pub fn set_staking(ctx: Context<SetStaking>) -> Result<()> { … 95 lines }
3242 ▸ pub fn set_vote_rules(ctx: Context<SetVoteRules>) -> Result<()> { … 103 lines }
3350 ▸ pub fn stake(ctx: Context<Stake>) -> Result<()> { … 70 lines }
3425 ▸ pub fn sweep_fee_buffer(ctx: Context<SweepFeeBuffer>) -> Result<()> { … 58 lines }
3488 ▸ pub fn sync_rewards(ctx: Context<SyncRewards>) -> Result<()> { … 28 lines }
3521 ▸ pub fn team_create_proposal(ctx: Context<TeamCreateProposal>) -> Result<()> { … 208 lines }
3734 ▸ pub fn unblock_name(ctx: Context<UnblockName>) -> Result<()> { … 57 lines }
3796 ▸ pub fn unstake(ctx: Context<Unstake>) -> Result<()> { … 70 lines }
3871 ▸ pub fn vote(ctx: Context<Vote>) -> Result<()> { … 130 lines }
4006 ▸ pub fn withdraw(ctx: Context<Withdraw>) -> Result<()> { … 58 lines }