Skip to content

Commit 37c17c9

Browse files
committed
infra: second round of PR review fixes
- mainnetDockerTags.feeQuoting bumped from the old standalone hyperlane-fee-quoting tag (which does not exist in the node-services repo) to 1a19513-20260413-090011, a node-services build from after fee-quoting was bundled into the Dockerfile. Fixes a guaranteed ImagePullBackOff after the migration. - Add FEE_QUOTING to NODE_SERVICE_NAMES; thread it through FeeQuotingHelmManager.helmValues and the chart deployment template (SERVICE_NAME now reads .Values.serviceName with fee-quoting fallback), matching the pattern rebalancer and warp-monitor use. - Drop two unnecessary casts in attestation.ts — the `'key' in err` guard already narrows in modern TS, per review feedback.
1 parent f567e6f commit 37c17c9

5 files changed

Lines changed: 11 additions & 4 deletions

File tree

typescript/infra/config/docker.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ export const mainnetDockerTags: MainnetDockerTags = {
5151
keyFunder: '3b17358-20260315-183126',
5252
warpMonitor: '3b17358-20260315-183126',
5353
rebalancer: '1a19513-20260413-090011',
54-
feeQuoting: '12d899d-20260325-184337',
54+
// Bumped from the old standalone hyperlane-fee-quoting tag when the
55+
// service was migrated onto hyperlane-node-services. Points at a
56+
// post-migration node-services build that includes the fee-quoting
57+
// bundle; bump again after the next signed main build lands.
58+
feeQuoting: '1a19513-20260413-090011',
5559
};
5660

5761
export const testnetDockerTags: BaseDockerTags = {

typescript/infra/helm/fee-quoting/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ spec:
5353
name: {{ .Chart.Name }}-secrets
5454
env:
5555
- name: SERVICE_NAME
56-
value: fee-quoting
56+
value: {{ .Values.serviceName | default "fee-quoting" | quote }}
5757
- name: REGISTRY_URI
5858
value: {{ .Values.hyperlane.registryUri | quote }}
5959
{{- with .Values.env }}

typescript/infra/src/fee-quoting/helm.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { DEFAULT_GITHUB_REGISTRY } from '@hyperlane-xyz/registry';
44

55
import { DockerImageRepos, mainnetDockerTags } from '../../config/docker.js';
66
import { DeployEnvironment } from '../config/deploy-environment.js';
7+
import { NODE_SERVICE_NAMES } from '../utils/consts.js';
78
import { HelmManager } from '../utils/helm.js';
89
import { getInfraPath } from '../utils/utils.js';
910
import { readYaml } from '@hyperlane-xyz/utils/fs';
@@ -46,6 +47,7 @@ export class FeeQuotingHelmManager extends HelmManager {
4647
repository: DockerImageRepos.NODE_SERVICES,
4748
tag: mainnetDockerTags.feeQuoting,
4849
},
50+
serviceName: NODE_SERVICE_NAMES.FEE_QUOTING,
4951
hyperlane: {
5052
...envValues.hyperlane,
5153
runEnv: this.environment,

typescript/infra/src/utils/attestation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function isNodeErrorCode(err: unknown, code: string): boolean {
6767
typeof err === 'object' &&
6868
err !== null &&
6969
'code' in err &&
70-
(err as { code: unknown }).code === code
70+
err.code === code
7171
);
7272
}
7373

@@ -131,7 +131,7 @@ function extractFinishedOn(rawJson: string): FinishedOnResult {
131131
for (const t of tlogEntries) {
132132
const raw =
133133
typeof t === 'object' && t !== null && 'integratedTime' in t
134-
? (t as { integratedTime: unknown }).integratedTime
134+
? t.integratedTime
135135
: undefined;
136136
const seconds =
137137
typeof raw === 'string'

typescript/infra/src/utils/consts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const NODE_SERVICE_NAMES = {
1313
CCIP_SERVER: 'ccip-server',
1414
KEYFUNDER: 'keyfunder',
1515
RELAYER: 'relayer',
16+
FEE_QUOTING: 'fee-quoting',
1617
} as const;
1718
/**
1819
* Get validator alias from defaultMultisigConfigs if available

0 commit comments

Comments
 (0)