feat: amphreth warp config (#4719)
### 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 -->pull/4659/merge
parent
9de66f0233
commit
e15dc267b8
@ -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 |
@ -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, |
||||||
|
}; |
||||||
|
}; |
Loading…
Reference in new issue