fix: warp route checker (#4810)

### Description

- Updates the .registryrc, which we will need to update when we add new
warp route configs to infra, otherwise we'll get
```
Checking warp route WBTC/eclipsemainnet-ethereum...
Error checking warp route USDT/eclipsemainnet-ethereum-solanamainnet: Error: Warp route config for USDT/eclipsemainnet-ethereum-solanamainnet not found in registry
Error checking warp route WBTC/eclipsemainnet-ethereum: Error: Warp route config for WBTC/eclipsemainnet-ethereum not found in registry
Failed to check warp routes: USDT/eclipsemainnet-ethereum-solanamainnet, WBTC/eclipsemainnet-ethereum
```
- Uses the `Always` imagePullPolicy
(https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy)
to ensure we always use latest main
- A consequence of removing Lumia addresses from the registry in
https://github.com/hyperlane-xyz/hyperlane-registry/pull/348 is that
this broke checking of the Lumia warp route. I manually specify the
required addresses here now.
- Also needed to explicitly specify the proxyAdmin ownership

Definitely some opportunities for improvement with the warp route deploy
flow

### 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/4770/head
Trevor Porter 3 weeks ago committed by GitHub
parent ffbc13cc58
commit fbce40f891
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .registryrc
  2. 20
      typescript/infra/config/environments/mainnet3/warp/configGetters/getEthereumBscLumiaLUMIAWarpConfig.ts
  3. 2
      typescript/infra/helm/check-warp-deploy/templates/cron-job.yaml

@ -1 +1 @@
302be4817c063629cec70c0b02322b250df71122 14836804e543a64cd3747cd6bbea6e245b6353b1

@ -9,20 +9,38 @@ import { objMap } from '@hyperlane-xyz/utils';
// Lumia Team // Lumia Team
const owner = '0x8bBA07Ddc72455b55530C17e6f6223EF6E156863'; const owner = '0x8bBA07Ddc72455b55530C17e6f6223EF6E156863';
const ownerConfig = {
owner,
// The proxyAdmins are warp-route specific
ownerOverrides: {
proxyAdmin: owner,
},
};
export const getEthereumBscLUMIAWarpConfig = async ( export const getEthereumBscLUMIAWarpConfig = async (
routerConfig: ChainMap<RouterConfig>, routerConfig: ChainMap<RouterConfig>,
): Promise<ChainMap<TokenRouterConfig>> => { ): Promise<ChainMap<TokenRouterConfig>> => {
const ethereum = { const ethereum = {
type: TokenType.collateral, type: TokenType.collateral,
token: '0xD9343a049D5DBd89CD19DC6BcA8c48fB3a0a42a7', token: '0xD9343a049D5DBd89CD19DC6BcA8c48fB3a0a42a7',
ownerOverrides: {
proxyAdmin: owner,
},
}; };
const bsc = { const bsc = {
type: TokenType.synthetic, type: TokenType.synthetic,
ownerOverrides: {
proxyAdmin: owner,
},
}; };
const lumia = { const lumia = {
type: TokenType.native, type: TokenType.native,
// As this has been removed from the registry in https://github.com/hyperlane-xyz/hyperlane-registry/pull/348,
// we must specify this explicitly.
mailbox: '0x3a867fCfFeC2B790970eeBDC9023E75B0a172aa7',
proxyAdmin: '0xeA87ae93Fa0019a82A727bfd3eBd1cFCa8f64f1D',
}; };
const configMap = { const configMap = {
@ -34,7 +52,7 @@ export const getEthereumBscLUMIAWarpConfig = async (
const merged = objMap(configMap, (chain, config) => ({ const merged = objMap(configMap, (chain, config) => ({
...routerConfig[chain], ...routerConfig[chain],
...config, ...config,
owner, ...ownerConfig,
})); }));
return merged as ChainMap<TokenRouterConfig>; return merged as ChainMap<TokenRouterConfig>;

@ -17,7 +17,7 @@ spec:
containers: containers:
- name: check-warp-deploy - name: check-warp-deploy
image: {{ .Values.image.repository }}:{{ .Values.image.tag }} image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: IfNotPresent imagePullPolicy: Always
command: command:
- ./node_modules/.bin/tsx - ./node_modules/.bin/tsx
- ./typescript/infra/scripts/check/check-warp-deploy.ts - ./typescript/infra/scripts/check/check-warp-deploy.ts

Loading…
Cancel
Save