Add Sepolia support for Polygon cross-chain #751
Draft
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.
The Goerli testnet currently used by Threshold/Keep for development purposes is planned to become deprecated with the end of year 2023. The testnet that was created to replace it is called
Holešky, however it will take some time until it gets integrated with by some of the projects we rely on. As a solution, we decided to switch first to another testnet that is currently live - Sepolia. This testnet's EOL is planned for 2026, which gives us plenty of time to move to Holešky before Sepolia gets deprecated. Until Görli is not dead we want to support both testnets.
The Goerli -> Sepolia migration means that also L2 testnet based on Goerli (Mumbai) needs to be migrated to Sepolia-based chain (Amoy). In this PR we're adjusting the config used to deploy testnet contracts in the
@keep-network/tbtc-v2-polygon
project. After the update, both deploy tomumbai
andamoy
networks will be supported (we may removemumbai
support once we're sure theamoy
deployment works as expected).TODO
external/amoy/PolygonWormholeTBTC.json
- in order to get the address we need to perform attestation of the Ethereum Sepolia TBTC token on Amoy (but atm Amoy is not available on the list of target networks on https://wormhole-foundation.github.io/example-token-bridge-ui/#/register)external/amoy/PolygonTokenBridge.json
- address needs to be taken from https://docs.wormhole.com/wormhole/blockchain-environments/evm once Wormhole adds a support for AmoyRef: threshold-network/solidity-contracts#150