forked from hyperlane-xyz/hyperlane-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support ownership transfers in the SVM warp route tooling, fina…
…lize Sonic deploy (hyperlane-xyz#5529) ### Description ### **Note!** This includes hyperlane-xyz#5575. I'd recommend just looking at the `rust/` changes when reviewing - Supports changing the owner and upgrade authority (assumed to be the same address) in the SVM warp route tooling - So when running e.g. the following, it'll also idempotently transfer ownership / set the program upgrade authority. It defaults to the payer as the owner. ``` cargo run -- -k ~/solana-devnet-deployer-keypair.json warp-route deploy --warp-route-name SOL-solanatestnet-sonicsvmtestnet --environment testnet4 --environments-dir ../environments --built-so-dir ../../target/deploy --token-config-file ../environments/testnet4/warp-routes/SOL-solanatestnet-sonicsvmtestnet/token-config.json --chain-config-file ../environments/testnet4/chain-config.json --ata-payer-funding-amount 1000000 ``` - I haven't gone back to update the configs for all the other deploys we did that had manual ownership transfer. Hoping to do something like this soon ### Drive-by changes - none ### Related issues - none ### Backward compatibility - backward compatible ### Testing - tried it out on a testnet warp deploy, worked well
- Loading branch information
Showing
23 changed files
with
326 additions
and
49 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 @@ | ||
d984e8113bb795a01ffe040539a63b1227749d71 | ||
58b181ec6ce4938c15dce9aa966920ff5ef7b3b2 |
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
8 changes: 4 additions & 4 deletions
8
rust/sealevel/environments/mainnet3/warp-routes/SOL-hyperevm-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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"hyperevm": { | ||
"hex": "0x00000000000000000000000096029bcf706fac4176492f4a05f63f7d23ce78fb", | ||
"base58": "11111111111136DQQztgVwcA4ZYDq9QhZhnprvHp" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0x2f7bbb8b14ccafc48c417e6ba387fa05db8df469156c7a0a923257ad994016cc", | ||
"base58": "4CMbJtieJ7EboZZGSbXTQjW5i2sL638jFvE3dWTYG3SK" | ||
}, | ||
"hyperevm": { | ||
"hex": "0x00000000000000000000000096029bcf706fac4176492f4a05f63f7d23ce78fb", | ||
"base58": "11111111111136DQQztgVwcA4ZYDq9QhZhnprvHp" | ||
} | ||
} |
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
8 changes: 4 additions & 4 deletions
8
.../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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"solanamainnet": { | ||
"hex": "0x185ca10cb892c8fbc6857a218f9071ed3d860de9cf81eaf4aac68022f34fe57b", | ||
"base58": "2e6hyJbUpbhqbJzorDZ1m4QVTj5oPhsn2H3KBaMFVXAz" | ||
}, | ||
"sonicsvm": { | ||
"hex": "0x4857253b685b7aead0442c6566a83b93b28eb0125adeb490a19ef0010e8e34ad", | ||
"base58": "5sPRiRLfmohVmtkgiGV6scrzy2C6qEZRGRUiePZf1Fs2" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0x185ca10cb892c8fbc6857a218f9071ed3d860de9cf81eaf4aac68022f34fe57b", | ||
"base58": "2e6hyJbUpbhqbJzorDZ1m4QVTj5oPhsn2H3KBaMFVXAz" | ||
} | ||
} |
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
8 changes: 4 additions & 4 deletions
8
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"solanamainnet": { | ||
"hex": "0x78f010d70282133383abb61fa5d2c35274fceec9485b898ddb4c6bed2eeb61d0", | ||
"base58": "996EsR8a7MC6odE6j7sjsArmDQVqB96qWu84wHdthahm" | ||
}, | ||
"sonicsvm": { | ||
"hex": "0xa246507f376539e22612cb216b549c958fc9a8eaa470ef9d5320e40493adc81e", | ||
"base58": "BvTEYSqCcfMwpAriC1vDpNhzR1JWzasRFfCPCdgsYaCd" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0x78f010d70282133383abb61fa5d2c35274fceec9485b898ddb4c6bed2eeb61d0", | ||
"base58": "996EsR8a7MC6odE6j7sjsArmDQVqB96qWu84wHdthahm" | ||
} | ||
} |
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
8 changes: 4 additions & 4 deletions
8
rust/sealevel/environments/mainnet3/warp-routes/USDT-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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"solanamainnet": { | ||
"hex": "0xa844d77ea1aaa0ec8697646c2d348cc9e843e070f3bf92a3fef4ba976c56bcc5", | ||
"base58": "CKrNt2y1e2H9728mHRVYyF2owy9eKreepRKpTMj2j8JG" | ||
}, | ||
"sonicsvm": { | ||
"hex": "0x988d8587170da1813da9ce24725953628f7e6fec644e1bde4874774b0f17ed30", | ||
"base58": "BGW8geBw12Yyp4rW7Fp97a3CQRA4Czi8PdtuV2Ec3Vdy" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0xa844d77ea1aaa0ec8697646c2d348cc9e843e070f3bf92a3fef4ba976c56bcc5", | ||
"base58": "CKrNt2y1e2H9728mHRVYyF2owy9eKreepRKpTMj2j8JG" | ||
} | ||
} |
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
...ealevel/environments/mainnet3/warp-routes/lrtsSOL-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": "0x3cfad3af06f01be3d05923b1ad9446da5c9cb06b229b10626ae224565bccc79f", | ||
"base58": "573J5VSCMCvUVPBBPmr13ovtEmgzU5J1kyLLJ8L3XMJ6" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0xf341c0ab03c8e93493dc3649ec723fc23fc92d09893feeb126137a49b5923694", | ||
"base58": "HNaDuUrtr34tXZApiAMGHG9DgAvGYsY5C6w9M2iHu59u" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...alevel/environments/mainnet3/warp-routes/lrtsSOL-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,18 @@ | ||
{ | ||
"solanamainnet": { | ||
"type": "collateral", | ||
"decimals": 9, | ||
"interchainGasPaymaster": "AkeHBbE5JkwVppujCQQ6WuxsVsJtruBAjUo6fDCFp6fF", | ||
"token": "4tARAT4ssRYhrENCTxxZrmjL741eE2G23Q1zLPDW2ipf", | ||
"owner": "9hixEzn9pBzYG1MVWNq3jAuG7RP3vBT5ijN4UFWDVsfD" | ||
}, | ||
"sonicsvm": { | ||
"type": "synthetic", | ||
"decimals": 9, | ||
"name": "adraLRT SOL (Solayer)", | ||
"symbol": "lrtsSOL", | ||
"uri": "https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/0342615816a74737bb5c25d7edc4cb0a691cca21/deployments/warp_routes/lrtsSOL/metadata.json", | ||
"interchainGasPaymaster": "7VResHbw6jRVUa8qfD6e1cbzGmErcLGwgx4o7mLhZief", | ||
"owner": "G8v8LHQw2pWuJiQbbPRHehsNEneMkCzRHz7vSPP2ttiZ" | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
rust/sealevel/environments/mainnet3/warp-routes/sSOL-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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"solanamainnet": { | ||
"hex": "0x7c92b922efe079f13c556b637fa1d245ebe52e5ad60d4ec3fc5d55f4ef185759", | ||
"base58": "9PHKQFEDzedHuigSm1ZBojEX4DVF3cincGZwy3k7VHTN" | ||
}, | ||
"sonicsvm": { | ||
"hex": "0x07d327e3a00042d94b25cb1a910e0a34ccfb68f61dec7f0297d8a07089af2ae1", | ||
"base58": "XYbsJQGzZgPDbt9Swd2ao54nhGSq8Wjq23MoogHvEq6" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0x7c92b922efe079f13c556b637fa1d245ebe52e5ad60d4ec3fc5d55f4ef185759", | ||
"base58": "9PHKQFEDzedHuigSm1ZBojEX4DVF3cincGZwy3k7VHTN" | ||
} | ||
} |
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
...alevel/environments/mainnet3/warp-routes/sonicSOL-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": "0xda79c46340361f23add6fad67b75babce6c62b15d39b4d80c10b9b8c71ed7515", | ||
"base58": "Fhqa36L7sFJDiMdu54WUah9stAwRacycqHJYm3b3Geje" | ||
}, | ||
"sonicsvm": { | ||
"hex": "0x989f54126d7fa455b5698b6ddc9a176192a605d6858e3ed16b1829776dd5088a", | ||
"base58": "BGmt6P5djRc3Teo3WLwXfZbEvN9pVJt7wAMgzcCc2idf" | ||
} | ||
} |
Oops, something went wrong.