-
Couldn't load subscription status.
- Fork 81
feat(scripts): add wallet-operator mapper for consolidation analysis #3840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add comprehensive wallet-operator mapping toolset for beta staker consolidation analysis. Enables identification of wallets containing deprecated operators and BTC distribution calculations. Core functionality: - query-dkg-events.js: Extracts operator membership from on-chain DKG events - analyze-per-operator.js: Calculates BTC distribution by provider - validate-operator-list.js: Verifies operator list completeness Configuration: - operators.json: Defines KEEP (4 active) vs DISABLE (16 deprecated) operators - Contract ABIs for Bridge and WalletRegistry interactions - Archive node RPC support for historical event queries Documentation: - README: Usage guide and integration points - Manual sweep procedures and execution scripts - Operator consolidation communication guidelines Integration: - Provides data source for monitoring dashboard - Supports draining progress assessment - Enables manual sweep decision-making Technical details: - Uses threshold cryptography (51/100 signatures) - Queries sortition pool for operator address resolution - Classifies operators by provider (STAKED, P2P, BOAR, NUCO)
| const path = require('path'); | ||
|
|
||
| const MAPPING_FILE = path.join(__dirname, 'wallet-operator-mapping.json'); | ||
| const CSV_PATH = '/Users/leonardosaturnino/Documents/GitHub/memory-bank/20250809-beta-staker-consolidation/knowledge/threshold_stakers_may_2025.csv'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we commit this file to the repo?
| } | ||
|
|
||
| // File paths | ||
| const PROOF_OF_FUNDS_PATH = '/Users/leonardosaturnino/Documents/GitHub/memory-bank/20250809-beta-staker-consolidation/knowledge/20251006-tbtc-proof-of-funds.json'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we commit this file to the repo?
| if (providerShares[data.provider]) { | ||
| if (data.status === 'KEEP') { | ||
| providerShares[data.provider].keep += data.totalShare; | ||
| providerShares[data.provider].keepWallets = data.walletCount; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure this is = and not +=?
| providerShares[data.provider].keepWallets = data.walletCount; | |
| providerShares[data.provider].keepWallets += data.walletCount; |
| providerShares[data.provider].keepWallets = data.walletCount; | ||
| } else { | ||
| providerShares[data.provider].disable += data.totalShare; | ||
| providerShares[data.provider].disableWallets = data.walletCount; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
| providerShares[data.provider].disableWallets = data.walletCount; | |
| providerShares[data.provider].disableWallets += data.walletCount; |
Add comprehensive wallet-operator mapping toolset for beta staker consolidation analysis. Enables identification of wallets containing deprecated operators and BTC distribution calculations.
Core functionality:
Configuration:
Documentation:
Integration:
Technical details: