-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description <!-- What's included in this PR? --> ### 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
1 parent
9de66f0
commit e15dc26
Showing
6 changed files
with
89 additions
and
1 deletion.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
typescript/infra/config/environments/mainnet3/warp/AMPHRETH-deployments.yaml
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,28 @@ | ||
# Configs and artifacts for the deployment of Hyperlane Warp Routes | ||
description: Hyperlane Warp Route artifacts | ||
timestamp: '2024-10-18T14:00:00.000Z' | ||
deployer: Abacus Works (Hyperlane) | ||
data: | ||
config: | ||
arbitrum: | ||
protocolType: ethereum | ||
type: synthetic | ||
hypAddress: '0x6D251aADfc6Ff69031e01eA39bE3cb5BABf8438f' | ||
name: Amphor Restaked ETH | ||
symbol: AMPHRETH | ||
decimals: 18 | ||
ethereum: | ||
protocolType: ethereum | ||
type: collateral | ||
hypAddress: '0xdc89990a6fdC1C922b841f1d977835628A24Ed57' | ||
tokenAddress: '0x5fD13359Ba15A84B76f7F87568309040176167cd' | ||
name: Amphor Restaked ETH | ||
symbol: AMPHRETH | ||
decimals: 18 | ||
zircuit: | ||
protocolType: ethereum | ||
type: synthetic | ||
hypAddress: '0x7D5a79539d7B1c9aE5e54d18EEE188840f1Fe4CC' | ||
name: Amphor Restaked ETH | ||
symbol: AMPHRETH | ||
decimals: 18 |
55 changes: 55 additions & 0 deletions
55
.../environments/mainnet3/warp/configGetters/getArbitrumEthereumZircuitAmphrETHWarpConfig.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,55 @@ | ||
import { ethers } from 'ethers'; | ||
|
||
import { | ||
ChainMap, | ||
RouterConfig, | ||
TokenRouterConfig, | ||
TokenType, | ||
} from '@hyperlane-xyz/sdk'; | ||
|
||
import { tokens } from '../../../../../src/config/warp.js'; | ||
|
||
const arbitrumOwner = '0x008615770B588633265cB01Abd19740fAe67d0B9'; | ||
const ethereumOwner = '0x008615770B588633265cB01Abd19740fAe67d0B9'; | ||
const zircuitOwner = '0xD0673e7F3FB4037CA79F53d2d311D0e017d39963'; | ||
|
||
export const getArbitrumEthereumZircuitAmphrETHWarpConfig = async ( | ||
routerConfig: ChainMap<RouterConfig>, | ||
): Promise<ChainMap<TokenRouterConfig>> => { | ||
const arbitrum: TokenRouterConfig = { | ||
...routerConfig.arbitrum, | ||
type: TokenType.synthetic, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
owner: arbitrumOwner, | ||
ownerOverrides: { | ||
proxyAdmin: arbitrumOwner, | ||
}, | ||
}; | ||
|
||
const ethereum: TokenRouterConfig = { | ||
...routerConfig.ethereum, | ||
type: TokenType.collateral, | ||
token: tokens.ethereum.amphrETH, | ||
owner: ethereumOwner, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
ownerOverrides: { | ||
proxyAdmin: ethereumOwner, | ||
}, | ||
}; | ||
|
||
const zircuit: TokenRouterConfig = { | ||
...routerConfig.zircuit, | ||
type: TokenType.synthetic, | ||
interchainSecurityModule: ethers.constants.AddressZero, | ||
owner: zircuitOwner, | ||
ownerOverrides: { | ||
proxyAdmin: zircuitOwner, | ||
}, | ||
}; | ||
|
||
return { | ||
arbitrum, | ||
ethereum, | ||
zircuit, | ||
}; | ||
}; |
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