-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: TONY warp deploy, fix CLI warp deploys with non-EVM chains (#5186)
### Description - Deploys TONY - There was an issue with a non-EVM chain being in the warp deploy config. I made the fix but ultimately we should have a unit test to prevent this. Would prefer someone closer to the feature to do this, I just did a band aid fix ### 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
10 changed files
with
97 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@hyperlane-xyz/sdk': minor | ||
--- | ||
|
||
Don't try to build signers for non-EVM chains in MultiProtocolSignerManager |
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 @@ | ||
47aba98bdd78ecb5a3f756dca6dc2e28325bab43 | ||
5e7227c712cca3d2b576fe7e67a434294fcc0a7f |
10 changes: 10 additions & 0 deletions
10
rust/sealevel/environments/mainnet3/warp-routes/TONY-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": "0x00000000000000000000000054624ca8abea68645b3b39211f90b804d53db680", | ||
"base58": "1111111111112BBkkpUZNJgdH8DEmyDxFt74d4bH" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0x2efbd8ff6417a50dbcedc18bab4235d4a2aac61af89214ac59545d30e0f86991", | ||
"base58": "4AQVPTCAeLswnjksQdutxUDuxEJxUBwoWmVimGuPtGSt" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
rust/sealevel/environments/mainnet3/warp-routes/TONY-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": "0xb22a793a81ff5b6ad37f40d5fe1e0ac4184d52f3", | ||
"foreignDeployment": "0x54624CA8ABEa68645b3B39211F90B804D53dB680" | ||
}, | ||
"solanamainnet": { | ||
"type": "synthetic", | ||
"decimals": 9, | ||
"remoteDecimals": 18, | ||
"interchainGasPaymaster": "AkeHBbE5JkwVppujCQQ6WuxsVsJtruBAjUo6fDCFp6fF", | ||
"name": "Big Tony", | ||
"symbol": "TONY", | ||
"uri": "https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/e95e1d64a0d36c3c69bb09ed4e29acc8350848b6/deployments/warp_routes/TONY/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
46 changes: 46 additions & 0 deletions
46
...fra/config/environments/mainnet3/warp/configGetters/getBaseSolanamainnetTONYWarpConfig.ts
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,46 @@ | ||
import { ethers } from 'ethers'; | ||
|
||
import { | ||
ChainMap, | ||
HypTokenRouterConfig, | ||
OwnableConfig, | ||
TokenType, | ||
} from '@hyperlane-xyz/sdk'; | ||
|
||
import { | ||
RouterConfigWithoutOwner, | ||
tokens, | ||
} from '../../../../../src/config/warp.js'; | ||
import { SEALEVEL_WARP_ROUTE_HANDLER_GAS_AMOUNT } from '../consts.js'; | ||
|
||
// Cod3x SAFE | ||
const baseOwner = '0xfEfcb2fb19b9A70B30646Fdc1A0860Eb12F7ff8b'; | ||
// Cod3x Squads vault | ||
const solanamainnetOwner = '7dRAVvdmV3dy4JieuRAirBQ9oSpYaHgmYwupoK5YZcFR'; | ||
|
||
export async function getBaseSolanamainnetTONYWarpConfig( | ||
routerConfig: ChainMap<RouterConfigWithoutOwner>, | ||
_abacusWorksEnvOwnerConfig: ChainMap<OwnableConfig>, | ||
): Promise<ChainMap<HypTokenRouterConfig>> { | ||
let base: HypTokenRouterConfig = { | ||
mailbox: routerConfig.base.mailbox, | ||
owner: baseOwner, | ||
type: TokenType.collateral, | ||
token: tokens.base.TONY, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
const solanamainnet: HypTokenRouterConfig = { | ||
mailbox: routerConfig.solanamainnet.mailbox, | ||
owner: solanamainnetOwner, | ||
type: TokenType.synthetic, | ||
foreignDeployment: '4AQVPTCAeLswnjksQdutxUDuxEJxUBwoWmVimGuPtGSt', | ||
gas: SEALEVEL_WARP_ROUTE_HANDLER_GAS_AMOUNT, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
return { | ||
base, | ||
solanamainnet, | ||
}; | ||
} |
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