Skip to content

Conversation

@dvansari65
Copy link
Contributor

add state diff command for comparing snapshots with mainnet

  • Add surfpool state diff <snapshot> <mainnet-url> command
  • Implement snapshot JSON parsing with BTreeMap<Pubkey, AccountSnapshot>
  • Fetch accounts from mainnet via SurfnetRemoteClient
  • Compare lamports, owner, executable, rent_epoch, and data length

Add compare_field! macro to crates/cli/src/macros.rs

  • Macro prints formatted comparison results
  • Used for lamports, owner, executable, rent_epoch, data length comparisons
  • Provides clean, consistent diff output format

@dvansari65 dvansari65 changed the title Feature/state diff command feat/add state diff command for comparing snapshots with mainnet Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant