Skip to content

feat: off-chain preparation for setting locked tokens#526

Draft
frolvanya wants to merge 12 commits intomainfrom
feat/prepopulate-locked-tokens
Draft

feat: off-chain preparation for setting locked tokens#526
frolvanya wants to merge 12 commits intomainfrom
feat/prepopulate-locked-tokens

Conversation

@frolvanya
Copy link
Contributor

No description provided.

@frolvanya frolvanya force-pushed the feat/prepopulate-locked-tokens branch from fd6f05f to 8b33f94 Compare February 3, 2026 19:38
@frolvanya frolvanya requested review from a team and Copilot February 3, 2026 19:38
Copy link
Contributor

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 an off-chain tool for prepopulating locked token data as part of a contract migration process. The tool queries token total supply across multiple blockchain networks (NEAR, Ethereum, Arbitrum, Base, BNB, Polygon, and Solana) and generates JSON output files containing locked token amounts per chain.

Changes:

  • Added a new Rust CLI tool (prepopulate-locked-tokens) that fetches token supply data from multiple chains
  • Created token list files for testnet and mainnet with native, NEP141, and factory-deployed tokens
  • Generated pre-computed JSON output files with locked token amounts for each chain

Reviewed changes

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

Show a summary per file
File Description
prepopulate-locked-tokens/Cargo.toml Package configuration with dependencies for async operations, blockchain clients, and CLI
prepopulate-locked-tokens/src/main.rs Main entry point with concurrent token processing logic and batch handling
prepopulate-locked-tokens/src/config.rs Environment variable configuration loader for RPC endpoints
prepopulate-locked-tokens/src/tokens.rs Token file reader and origin chain detection logic
prepopulate-locked-tokens/src/clients/*.rs Client implementations for NEAR, EVM chains, and Solana RPC interactions
prepopulate-locked-tokens/tokens-*.txt Input token lists for testnet and mainnet
prepopulate-locked-tokens/locked-tokens-*.json Pre-generated output data with token supply information
prepopulate-locked-tokens/example.env Example environment configuration file
prepopulate-locked-tokens/README.md Documentation on how to retrieve token lists

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

frolvanya and others added 11 commits February 3, 2026 22:07
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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