Feat/testnet4 deployment support#3932
Open
lionakhnazarov wants to merge 21 commits intothreshold-network:mainfrom
Open
Feat/testnet4 deployment support#3932lionakhnazarov wants to merge 21 commits intothreshold-network:mainfrom
lionakhnazarov wants to merge 21 commits intothreshold-network:mainfrom
Conversation
- Introduced Testnet4 configuration in with a new Electrum server URL. - Updated to include Testnet4 for Bitcoin networks. - Added Testnet4 constant in for better network identification. - Adjusted test cases in for improved readability. - Updated Hardhat configuration files to streamline deployment processes and handle potential errors during verification.
…ort.json file - Removed a defunct Thesis Electrum URL from the expected peers in . - Deleted the file as it is no longer needed, streamlining the project structure.
…ackage.json and yarn.lock for ECDSA and random-beacon
…abi version in ECDSA and random-beacon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: Bitcoin testnet4 defaults + Sepolia Hardhat/deploy tooling
Summary
This PR wires the Go client to Bitcoin testnet4 when using the Sepolia Ethereum mapping, adds an embedded Electrum URL list for testnet4, and updates ECDSA / random-beacon Hardhat config and deploy scripts so Sepolia deployments and redeploys work reliably with local artifacts and deployer accounts.
Client (Go)
bitcoin.Testnet4and extendsNetwork.String()so embedded Electrum resolution can use_electrum_urls/testnet4.config/network(replacing the legacy testnet mapping).config/_electrum_urls/testnet4with a default Electrum server URL and extendsconfig/electrum_test.goaccordingly.Solidity / Hardhat
hardhat.config.ts: makes contract verification optional (@nomicfoundation/hardhat-verify), adjusts Sepolia named accounts to use index0(works withACCOUNTS_PRIVATE_KEYS), trimsexternaldeployment paths for Sepolia to avoid RPC issues with staletransactionHashin npm artifacts, and relaxes typing where needed.02_deploy_dkg_validator,03_deploy_wallet_registry): supports forced compile viaTHRESHOLD_FORCE_DKG_COMPILE, and setsskipIfAlreadyDeployed: falsefor DKG validator where bytecode must be refreshed after Solidity changes.export.json,hardhat.config.ts,05_approve_random_beacon_in_token_staking.ts, and yarn.lock (large lockfile refresh).Other
contracts-ecdsa.ymlandcontracts-random-beacon.yml.config/peers_test.go: adds an extra expected bootstrap peer for the testnet test case (consider splitting out if this PR should stay scoped only to testnet4/Sepolia tooling).How to test
go test ./config/... ./pkg/bitcoin/...solidity/ecdsa/solidity/random-beacon:yarn installand deploy or dry-run against Sepolia as you normally do for this stack.Notes / follow-ups
peers_test.goand pure lockfile/export churn to separate commits or PRs if reviewers want a minimal diff.