-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add new Sonic tokens, some SVM tooling drive-bys (#5334)
### Description Drive-bys for the SVM tooling: - make sure that metadata for an SVM synthetic matches some basic expectations, e.g. - points to a legit machine readable URL (we had an issue here once) - image is a valid URL that's queryable - symbol / name match the token config (we had an issue here once) - No longer require explicitly specifying if a collateral token is SPL Token or SPL Token 2022. We imply this instead by looking at the owner of the collateral mint. Removes this from all previous configs And adds the following tokens between Solana and Sonic: sSOL, USDStar, USDC, USDT, SONIC ### Drive-by changes <!-- Are there any minor or drive-by changes also included? --> ### Related issues <!-- - Fixes #[issue number here] --> ### Backward compatibility <!-- Are these changes backward compatible? Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling? Yes/No --> ### Testing <!-- What kind of testing have these changes undergone? None/Manual/Unit Tests -->
- Loading branch information
Showing
26 changed files
with
304 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
26e513e8fe567428cb58e7634e0ed8c659430707 | ||
954b3b2982c7fe712b47bdc510b1414b3f27d2d7 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
10 changes: 10 additions & 0 deletions
10
rust/sealevel/environments/mainnet3/warp-routes/CDX-base-solanamainnet/program-ids.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"base": { | ||
"hex": "0x00000000000000000000000022fd11f93f0303346c9b9070cc67c4bc7ab2dabb", | ||
"base58": "111111111111VGnE2fqhvnn7b54X4ZEzKE9v28S" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0xbf628e576bb2c600fb6934812c6a630c420e22625ad60b635b28fc867877d344", | ||
"base58": "Dt62xRfWf7h6cURDsr19tqGWhjHMdobNVQ25cfHtZXg7" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
rust/sealevel/environments/mainnet3/warp-routes/CDX-base-solanamainnet/token-config.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"base": { | ||
"type": "collateral", | ||
"decimals": 18, | ||
"token": "0xC0D3700000c0e32716863323bFd936b54a1633d1", | ||
"foreignDeployment": "0x22Fd11F93F0303346c9b9070cc67C4Bc7aB2dABB" | ||
}, | ||
"solanamainnet": { | ||
"type": "synthetic", | ||
"decimals": 9, | ||
"remoteDecimals": 18, | ||
"interchainGasPaymaster": "AkeHBbE5JkwVppujCQQ6WuxsVsJtruBAjUo6fDCFp6fF", | ||
"name": "Cod3x Token", | ||
"symbol": "CDX", | ||
"uri": "https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/fef8869f17249bd561235e7e118ee5293b410fc3/deployments/warp_routes/CDX/metadata.json" | ||
} | ||
} |
This file contains 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
10 changes: 10 additions & 0 deletions
10
.../sealevel/environments/mainnet3/warp-routes/SONIC-solanamainnet-sonicsvm/program-ids.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"solanamainnet": { | ||
"hex": "0x185ca10cb892c8fbc6857a218f9071ed3d860de9cf81eaf4aac68022f34fe57b", | ||
"base58": "2e6hyJbUpbhqbJzorDZ1m4QVTj5oPhsn2H3KBaMFVXAz" | ||
}, | ||
"sonicsvm": { | ||
"hex": "0x4857253b685b7aead0442c6566a83b93b28eb0125adeb490a19ef0010e8e34ad", | ||
"base58": "5sPRiRLfmohVmtkgiGV6scrzy2C6qEZRGRUiePZf1Fs2" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...sealevel/environments/mainnet3/warp-routes/SONIC-solanamainnet-sonicsvm/token-config.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"solanamainnet": { | ||
"type": "collateral", | ||
"decimals": 9, | ||
"interchainGasPaymaster": "AkeHBbE5JkwVppujCQQ6WuxsVsJtruBAjUo6fDCFp6fF", | ||
"interchainSecurityModule": "NtVfGz6mMXe17Jy8Mt8pvStgwFbGKHkSvxPeWn1FMNu", | ||
"token": "SonicxvLud67EceaEzCLRnMTBqzYUUYNr93DBkBdDES" | ||
}, | ||
"sonicsvm": { | ||
"type": "synthetic", | ||
"decimals": 9, | ||
"name": "Sonic SVM", | ||
"symbol": "SONIC", | ||
"uri": "https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/63ae6c0a0415d480c00880e64ec8a9c3724b4e37/deployments/warp_routes/SONIC/metadata.json", | ||
"interchainGasPaymaster": "7VResHbw6jRVUa8qfD6e1cbzGmErcLGwgx4o7mLhZief" | ||
} | ||
} |
This file contains 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
This file contains 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
10 changes: 10 additions & 0 deletions
10
rust/sealevel/environments/mainnet3/warp-routes/USDC-solanamainnet-sonicsvm/program-ids.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"solanamainnet": { | ||
"hex": "0x78f010d70282133383abb61fa5d2c35274fceec9485b898ddb4c6bed2eeb61d0", | ||
"base58": "996EsR8a7MC6odE6j7sjsArmDQVqB96qWu84wHdthahm" | ||
}, | ||
"sonicsvm": { | ||
"hex": "0xa246507f376539e22612cb216b549c958fc9a8eaa470ef9d5320e40493adc81e", | ||
"base58": "BvTEYSqCcfMwpAriC1vDpNhzR1JWzasRFfCPCdgsYaCd" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
.../sealevel/environments/mainnet3/warp-routes/USDC-solanamainnet-sonicsvm/token-config.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"solanamainnet": { | ||
"type": "collateral", | ||
"decimals": 6, | ||
"interchainGasPaymaster": "AkeHBbE5JkwVppujCQQ6WuxsVsJtruBAjUo6fDCFp6fF", | ||
"interchainSecurityModule": "NtVfGz6mMXe17Jy8Mt8pvStgwFbGKHkSvxPeWn1FMNu", | ||
"token": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" | ||
}, | ||
"sonicsvm": { | ||
"type": "synthetic", | ||
"decimals": 6, | ||
"name": "USD Coin", | ||
"symbol": "USDC", | ||
"uri": "https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/63ae6c0a0415d480c00880e64ec8a9c3724b4e37/deployments/warp_routes/USDC/metadata.json", | ||
"interchainGasPaymaster": "7VResHbw6jRVUa8qfD6e1cbzGmErcLGwgx4o7mLhZief" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ealevel/environments/mainnet3/warp-routes/USDStar-solanamainnet-sonicsvm/program-ids.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"sonicsvm": { | ||
"hex": "0x4c41c164c94a75760556a8c11d213ca882e00da697e50d004b27a462ec3451c6", | ||
"base58": "68g96Cq16vKAqyG79BFVeJCgitjK9fQ1NRCRmcPkJtDB" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0xd642f2e1c4e448fcc87316a4592673309fdcafa012c5f6b005e1bae508cb4d2b", | ||
"base58": "FRPTWpmnNPm4LS2a5NUL1QenUrzGDAuifZBUi1mTWTdt" | ||
} | ||
} |
Oops, something went wrong.