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
Trevor Porter 1 month ago committed by GitHub
parent 6dd4746596
commit b4d26ddb7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 47
      typescript/infra/config/environments/mainnet3/warp/configGetters/getEthereumSeiFastUSDWarpConfig.ts
  2. 1
      typescript/infra/config/environments/mainnet3/warp/warpIds.ts
  3. 12
      typescript/infra/config/warp.ts
  4. 4
      typescript/infra/src/config/warp.ts

@ -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,
};
};

@ -9,6 +9,7 @@ export enum WarpRouteIds {
EthereumInevmUSDT = 'USDT/ethereum-inevm',
EthereumEclipseTETH = 'tETH/eclipsemainnet-ethereum',
EthereumEclipseUSDC = 'USDC/eclipsemainnet-ethereum-solanamainnet',
EthereumSeiFastUSD = 'FASTUSD/ethereum-sei',
EthereumVictionETH = 'ETH/ethereum-viction',
EthereumVictionUSDC = 'USDC/ethereum-viction',
EthereumVictionUSDT = 'USDT/ethereum-viction',

@ -15,6 +15,7 @@ import { getEthereumEclipseTETHWarpConfig } from './environments/mainnet3/warp/c
import { getEthereumEclipseUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumEclipseUSDCWarpConfig.js';
import { getEthereumInevmUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumInevmUSDCWarpConfig.js';
import { getEthereumInevmUSDTWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumInevmUSDTWarpConfig.js';
import { getEthereumSeiFastUSDWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumSeiFastUSDWarpConfig.js';
import { getEthereumVictionETHWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumVictionETHWarpConfig.js';
import { getEthereumVictionUSDCWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumVictionUSDCWarpConfig.js';
import { getEthereumVictionUSDTWarpConfig } from './environments/mainnet3/warp/configGetters/getEthereumVictionUSDTWarpConfig.js';
@ -41,12 +42,13 @@ export const warpConfigGetterMap: Record<
[WarpRouteIds.ArbitrumBaseBlastBscEthereumFraxtalLineaModeOptimismSeiTaikoZircuitEZETH]:
getRenzoEZETHWarpConfig,
[WarpRouteIds.InevmInjectiveINJ]: getInevmInjectiveINJWarpConfig,
[WarpRouteIds.EthereumEclipseTETH]: getEthereumEclipseTETHWarpConfig,
[WarpRouteIds.EthereumEclipseUSDC]: getEthereumEclipseUSDCWarpConfig,
[WarpRouteIds.EthereumSeiFastUSD]: getEthereumSeiFastUSDWarpConfig,
[WarpRouteIds.EthereumVictionETH]: getEthereumVictionETHWarpConfig,
[WarpRouteIds.EthereumVictionUSDC]: getEthereumVictionUSDCWarpConfig,
[WarpRouteIds.EthereumVictionUSDT]: getEthereumVictionUSDTWarpConfig,
[WarpRouteIds.MantapacificNeutronTIA]: getMantapacificNeutronTiaWarpConfig,
[WarpRouteIds.EthereumEclipseTETH]: getEthereumEclipseTETHWarpConfig,
[WarpRouteIds.EthereumEclipseUSDC]: getEthereumEclipseUSDCWarpConfig,
};
export async function getWarpConfig(
@ -59,7 +61,11 @@ export async function getWarpConfig(
const warpConfigGetter = warpConfigGetterMap[warpRouteId];
if (!warpConfigGetter) {
throw new Error(`Unknown warp route: ${warpRouteId}`);
throw new Error(
`Unknown warp route: ${warpRouteId}, must be one of: ${Object.keys(
warpConfigGetterMap,
).join(', ')}`,
);
}
if (warpConfigGetter.length === 1) {

@ -6,5 +6,9 @@ export const tokens: ChainMap<Record<string, Address>> = {
ethereum: {
USDC: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
USDT: '0xdac17f958d2ee523a2206206994597c13d831ec7',
deUSD: '0x15700B564Ca08D9439C58cA5053166E8317aa138',
},
sei: {
fastUSD: '0x37a4dD9CED2b19Cfe8FAC251cd727b5787E45269',
},
};

Loading…
Cancel
Save