feat: add FASTUSD/ethereum-sei to checker (#4697)
### Description Adds recent fastUSD deploy to our checking infra ### 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/4700/head
parent
6dd4746596
commit
b4d26ddb7f
@ -0,0 +1,47 @@ |
||||
import { ethers } from 'ethers'; |
||||
|
||||
import { |
||||
ChainMap, |
||||
RouterConfig, |
||||
TokenRouterConfig, |
||||
TokenType, |
||||
} from '@hyperlane-xyz/sdk'; |
||||
|
||||
import { tokens } from '../../../../../src/config/warp.js'; |
||||
|
||||
// Elixir
|
||||
const owner = '0x00000000F51340906F767C6999Fe512b1275955C'; |
||||
|
||||
export const getEthereumSeiFastUSDWarpConfig = async ( |
||||
routerConfig: ChainMap<RouterConfig>, |
||||
): Promise<ChainMap<TokenRouterConfig>> => { |
||||
const sei: TokenRouterConfig = { |
||||
...routerConfig.viction, |
||||
type: TokenType.XERC20, |
||||
name: 'fastUSD', |
||||
symbol: 'fastUSD', |
||||
decimals: 18, |
||||
token: tokens.sei.fastUSD, |
||||
interchainSecurityModule: ethers.constants.AddressZero, |
||||
owner, |
||||
ownerOverrides: { |
||||
proxyAdmin: owner, |
||||
}, |
||||
}; |
||||
|
||||
const ethereum: TokenRouterConfig = { |
||||
...routerConfig.ethereum, |
||||
type: TokenType.collateral, |
||||
token: tokens.ethereum.deUSD, |
||||
owner, |
||||
interchainSecurityModule: ethers.constants.AddressZero, |
||||
ownerOverrides: { |
||||
proxyAdmin: owner, |
||||
}, |
||||
}; |
||||
|
||||
return { |
||||
sei, |
||||
ethereum, |
||||
}; |
||||
}; |
Loading…
Reference in new issue