Skip to content

Conversation

cwsnt
Copy link
Contributor

@cwsnt cwsnt commented May 5, 2025

No description provided.

@cwsnt cwsnt changed the title SOV-4648: tbos snapshot script SOV-4648: tbos snapshot staking script May 5, 2025
Copy link
Contributor

@tjcloa tjcloa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls see inline comments

@cwsnt cwsnt requested a review from tjcloa October 16, 2025 02:42
@tjcloa tjcloa requested a review from Copilot October 16, 2025 13:33
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a comprehensive staking snapshot tool for TBOS to capture staking data from BOB and RSK networks. The tool queries on-chain staking contracts to extract amounts staked, voting power (voluntary vs. total), and vesting status for specified addresses at any given block.

Key changes include:

  • Complete TypeScript implementation with command-line interface supporting block-specific and current block snapshots
  • Network-agnostic configuration supporting BOB and RSK networks with distinct contract addresses and RPC endpoints
  • Dual output format generation (JSON and CSV) with timestamps and block numbers in filenames

Reviewed Changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/staking/snapshot_staking.ts Main snapshot tool implementation with CLI interface and blockchain querying logic
scripts/staking/config/tbos_snapshot_staking.config.ts Network configuration for BOB and RSK staking contracts and RPC endpoints
scripts/staking/SNAPSHOT_STAKING.md Comprehensive documentation with usage examples and configuration instructions
scripts/staking/output/*.json Sample JSON output files showing snapshot data structure
scripts/staking/output/*.csv Sample CSV output files in spreadsheet-compatible format
package.json Added dependencies for CSV generation and command-line argument parsing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@cwsnt cwsnt requested a review from Copilot October 17, 2025 08:22
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants