Skip to content

feat(solidity): improve Sepolia deploy behavior and wallet registry flows#4000

Open
lionakhnazarov wants to merge 2 commits into
stack/testnet4-01-ci-yarnfrom
stack/testnet4-02-solidity-logic
Open

feat(solidity): improve Sepolia deploy behavior and wallet registry flows#4000
lionakhnazarov wants to merge 2 commits into
stack/testnet4-01-ci-yarnfrom
stack/testnet4-02-solidity-logic

Conversation

@lionakhnazarov
Copy link
Copy Markdown
Collaborator

@lionakhnazarov lionakhnazarov commented May 25, 2026

Stack Context

This is PR 2/4 in the reorganization stack.
Base: #3999 (stack/testnet4-01-ci-yarn)
Next: #4001

What Changed

1) ECDSA deploy/runtime logic

  • Contract-level adjustments:
    • solidity/ecdsa/contracts/WalletRegistry.sol
  • Deploy script updates for deployment flow and account/approval behavior:
    • solidity/ecdsa/deploy/00_resolve_reimbursement_pool.ts
    • solidity/ecdsa/deploy/00_resolve_token_staking.ts
    • solidity/ecdsa/deploy/01_deploy_ecdsa_sortition_pool.ts
    • solidity/ecdsa/deploy/02_deploy_dkg_validator.ts
    • solidity/ecdsa/deploy/03_deploy_wallet_registry.ts
    • solidity/ecdsa/deploy/07_approve_wallet_registry.ts
    • solidity/ecdsa/deploy/09_deploy_wallet_registry_governance.ts
  • Added verification helper:
    • solidity/ecdsa/deploy/etherscanVerification.ts
  • Hardhat runtime/config updates:
    • solidity/ecdsa/hardhat.config.ts
  • Wallet owner initialization logic update:
    • solidity/ecdsa/tasks/initialize-wallet-owner.ts

2) ECDSA test/fixture/type updates

  • Tests:
    • solidity/ecdsa/test/WalletRegistry.Authorization.test.ts
    • solidity/ecdsa/test/WalletRegistry.CustomErrors.test.ts
    • solidity/ecdsa/test/WalletRegistry.Rewards.test.ts
    • solidity/ecdsa/test/WalletRegistry.Slashing.test.ts
    • solidity/ecdsa/test/WalletRegistry.Upgrade.test.ts
    • solidity/ecdsa/test/WalletRegistry.WalletCreation.test.ts
    • solidity/ecdsa/test/WalletRegistryGovernance.test.ts
  • Fixtures/utilities:
    • solidity/ecdsa/test/fixtures/index.ts
    • solidity/ecdsa/test/utils/operators.ts
  • Added types:
    • solidity/ecdsa/types/TokenStaking.extensions.d.ts
    • solidity/ecdsa/types/chai.d.ts

3) Random beacon deploy/config/test alignment

  • Deploy/config:
    • solidity/random-beacon/deploy/05_approve_random_beacon_in_token_staking.ts
    • solidity/random-beacon/hardhat.config.ts
  • Tests/fixtures/utilities:
    • solidity/random-beacon/test/RandomBeacon.Authorization.test.ts
    • solidity/random-beacon/test/RandomBeacon.Callback.test.ts
    • solidity/random-beacon/test/RandomBeacon.GroupCreation.test.ts
    • solidity/random-beacon/test/RandomBeacon.Relay.test.ts
    • solidity/random-beacon/test/RandomBeacon.Rewards.test.ts
    • solidity/random-beacon/test/system/e2e.test.ts
    • solidity/random-beacon/test/fixtures/index.ts
    • solidity/random-beacon/test/utils/operators.ts
  • Added types:
    • solidity/random-beacon/types/TokenStaking.extensions.d.ts

4) Embedded export deploy scripts for ECDSA external random-beacon export

  • Added scripts under:
    • solidity/ecdsa/external/random-beacon-export/deploy/01_*.js ... 09_*.js

Out of Scope

Test Plan

  • cd solidity/ecdsa && yarn test
  • cd solidity/random-beacon && yarn test
  • Spot-check deployment flows for expected skip/redeploy behavior.

Isolates CI and dependency-management groundwork needed for testnet4/Sepolia work so follow-up PRs can focus on runtime and deployment behavior.

Co-authored-by: Cursor <cursoragent@cursor.com>
…andom-beacon

Adjusts hardhat/deploy scripts, WalletRegistry behavior/tests, and external random-beacon export deploy scripts so Sepolia deployment and verification paths match the new stack expectations.

Co-authored-by: Cursor <cursoragent@cursor.com>
@lionakhnazarov lionakhnazarov force-pushed the stack/testnet4-02-solidity-logic branch from cef3185 to e1bca45 Compare May 25, 2026 10:43
@lionakhnazarov lionakhnazarov force-pushed the stack/testnet4-01-ci-yarn branch from 8e4fea1 to 23b83ce Compare May 25, 2026 10:43
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.

1 participant