Commit 03b8763
committed
feat(ecdsa): add deployment infrastructure for beta staker consolidation
Add complete deployment workflow for Allowlist integration and operator
weight migration with support for Ownable2StepUpgradeable pattern.
Changes:
- Add deployment script for WalletRegistry V2 upgrade with atomic
initializeV2 execution via upgradeToAndCall pattern
- Fix Allowlist deployment to defer ownership transfer until after
weight initialization (prevents Ownable2Step pendingOwner issue)
- Update weight initialization script to use actual contract owner
and complete two-step ownership transfer to governance at end
- Configure Sepolia and Mainnet named accounts for proper deployment
authority (0x68ad60CC for Sepolia, 0x716089 for Mainnet deployer)
- Add allowlist operator weights data with accumulated stakes from
consolidated beta staker groups (1.3B total T vs 743M individual)
- Add .env configuration infrastructure with template and gitignore
rules to protect private keys
Technical notes:
- Script 17 uses upgradeToAndCall to atomically upgrade proxy and
call initializeV2, preventing front-running window
- Script 16 defers to actual contract owner() instead of assuming
governance, fixing Ownable2StepUpgradeable compatibility
- Beta staker weights accumulate all T stake from provider groups
(e.g., P2P: 200M T from 6 operators vs 20M T from staying node)
- Ownership transfer initiates at script end but requires governance
to call acceptOwnership() to complete (two-step pattern)
Files:
- solidity/ecdsa/deploy/17_upgrade_wallet_registry_v2.ts (new)
- solidity/ecdsa/deploy/15_deploy_allowlist.ts (ownership fix)
- solidity/ecdsa/deploy/16_initialize_allowlist_weights.ts (owner fix)
- solidity/ecdsa/deploy/data/allowlist-weights.json (new)
- solidity/ecdsa/.env.example (new)
- solidity/ecdsa/.gitignore (env protection)
- solidity/ecdsa/hardhat.config.ts (named accounts)1 parent 95cb2e6 commit 03b8763
File tree
7 files changed
+1184
-88
lines changed- solidity/ecdsa
- deploy
- data
7 files changed
+1184
-88
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
37 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
38 | 48 | | |
39 | 49 | | |
40 | 50 | | |
| |||
0 commit comments