Repository navigation
Add token, wallet, and program dump commands - #104
Merged
Merged
Conversation
Wallet and program dumps stay separate and read the public Foundation archive when no URL is given.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
token-dump,wallet-dump, andprogram-dumpto the CLI. With no explicit archive source, each command reads the public Foundation epoch directory.token-dumpwrites one JSON line per recorded token balance, including the transaction signature, and stops when execution status or token data is missing. Its source options, including--archive-urland--mint, are declared on that command.wallet-dumpandprogram-dumpselect a required signer or an invoked program with--key. An explicit epoch directory uses--archive-url.Test plan
blockzilla token-dump --epoch 200 --max-blocks 20 --mint EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1vwrites 1334 lines from the Foundation epoch, including the known first signature.blockzilla program-dump --epoch 1095 --max-blocks 20 --key 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6Pwrites 619 lines.blockzilla wallet-dump --epoch 1095 --max-blocks 20 --key 2t53LvZfskcpXkdwLaBnfZLbNgyVHPu2BNFpcRBaEBhMcompletes with no matching rows.