-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: deploy apxETH and ezSOL routes (#4901)
### Description Ownership transfer pending getting addresses ### 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
23 changed files
with
184 additions
and
32 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/cli': minor | ||
--- | ||
|
||
Support using the CLI to deploy warp routes that involve foreign deployments |
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 @@ | ||
fa13e998aceff5a82b1a4e0791fe392791bb0393 | ||
385b83950adba6f033be836b627bab7d89aae38d |
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/apxETH-eclipse-ethereum/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 @@ | ||
{ | ||
"eclipsemainnet": { | ||
"hex": "0x82f7445ccda6396092998c8f841f0d4eb63cca29ba23cfd2609d283f3ee9d13f", | ||
"base58": "9pEgj7m2VkwLtJHPtTw5d8vbB7kfjzcXXCRgdwruW7C2" | ||
}, | ||
"ethereum": { | ||
"hex": "0x000000000000000000000000d34fe1685c28a68bb4b8faaadcb2769962ae737c", | ||
"base58": "1111111111113wkPRLXCJuj9539UEURsN3qhoaYb" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
rust/sealevel/environments/mainnet3/warp-routes/apxETH-eclipse-ethereum/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 @@ | ||
{ | ||
"eclipsemainnet": { | ||
"type": "synthetic", | ||
"decimals": 9, | ||
"remoteDecimals": 18, | ||
"name": "Autocompounding Pirex Ether", | ||
"symbol": "apxETH", | ||
"uri": "https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/ae7df1bc00af19f8ba692c14e4df3acdbf30497d/deployments/warp_routes/APXETH/metadata.json", | ||
"interchainGasPaymaster": "3Wp4qKkgf4tjXz1soGyTSndCgBPLZFSrZkiDZ8Qp9EEj" | ||
}, | ||
"ethereum": { | ||
"type": "collateral", | ||
"decimals": 18, | ||
"token": "0x9ba021b0a9b958b5e75ce9f6dff97c7ee52cb3e6", | ||
"foreignDeployment": "0xd34FE1685c28A68Bb4B8fAaadCb2769962AE737c" | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
rust/sealevel/environments/mainnet3/warp-routes/ezSOL-eclipse-solana/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 @@ | ||
{ | ||
"eclipsemainnet": { | ||
"hex": "0xb06d58417c929a624e9b689e604e6d60ca652168ee76b9a290bd5b974b22b306", | ||
"base58": "CshTfxXWMvnRAwBTCjQ4577bkP5po5ZuNG1QTuQxA5Au" | ||
}, | ||
"solanamainnet": { | ||
"hex": "0x08bb318b88b38cc6f450b185e51a9c42402dc9d36fa6741c19c2aa62464a5eb3", | ||
"base58": "b5pMgizA9vrGRt3hVqnU7vUVGBQUnLpwPzcJhG1ucyQ" | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
rust/sealevel/environments/mainnet3/warp-routes/ezSOL-eclipse-solana/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", | ||
"token": "ezSoL6fY1PVdJcJsUpe5CM3xkfmy3zoVCABybm5WtiC", | ||
"splTokenProgram": "token" | ||
}, | ||
"eclipsemainnet": { | ||
"type": "synthetic", | ||
"decimals": 9, | ||
"name": "Renzo Restaked SOL", | ||
"symbol": "ezSOL", | ||
"uri": "https://raw.githubusercontent.com/hyperlane-xyz/hyperlane-registry/ae7df1bc00af19f8ba692c14e4df3acdbf30497d/deployments/warp_routes/EZSOL/metadata.json", | ||
"interchainGasPaymaster": "3Wp4qKkgf4tjXz1soGyTSndCgBPLZFSrZkiDZ8Qp9EEj" | ||
} | ||
} |
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
46 changes: 46 additions & 0 deletions
46
...fra/config/environments/mainnet3/warp/configGetters/getEclipseEthereumApxETHWarpConfig.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, | ||
OwnableConfig, | ||
TokenRouterConfig, | ||
TokenType, | ||
} from '@hyperlane-xyz/sdk'; | ||
|
||
import { getOwnerConfigForAddress } from '../../../../../src/config/environment.js'; | ||
import { | ||
RouterConfigWithoutOwner, | ||
tokens, | ||
} from '../../../../../src/config/warp.js'; | ||
import { DEPLOYER } from '../../owners.js'; | ||
import { SEALEVEL_WARP_ROUTE_HANDLER_GAS_AMOUNT } from '../consts.js'; | ||
|
||
const ethereumOwner = DEPLOYER; | ||
const eclipseOwner = '9bRSUPjfS3xS6n5EfkJzHFTRDa4AHLda8BU2pP4HoWnf'; | ||
|
||
export async function getEclipseEthereumApxEthWarpConfig( | ||
routerConfig: ChainMap<RouterConfigWithoutOwner>, | ||
_abacusWorksEnvOwnerConfig: ChainMap<OwnableConfig>, | ||
): Promise<ChainMap<TokenRouterConfig>> { | ||
const eclipsemainnet: TokenRouterConfig = { | ||
...routerConfig.eclipsemainnet, | ||
...getOwnerConfigForAddress(eclipseOwner), | ||
type: TokenType.synthetic, | ||
foreignDeployment: '9pEgj7m2VkwLtJHPtTw5d8vbB7kfjzcXXCRgdwruW7C2', | ||
gas: SEALEVEL_WARP_ROUTE_HANDLER_GAS_AMOUNT, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
let ethereum: TokenRouterConfig = { | ||
...routerConfig.ethereum, | ||
...getOwnerConfigForAddress(ethereumOwner), | ||
type: TokenType.collateral, | ||
token: tokens.ethereum.apxETH, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
}; | ||
|
||
return { | ||
eclipsemainnet, | ||
ethereum, | ||
}; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// The amount of gas to pay for when performing a transferRemote to a Sealevel chain. | ||
export const SEALEVEL_WARP_ROUTE_HANDLER_GAS_AMOUNT = 300_000; |
Oops, something went wrong.