Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit be1e3fc

Browse files
authored
Add hoodi support for mev boost (#633)
* feat(mev-boost): Add hoodi and cleanup supported networks * feat(mev-boost): Add image tag validation for hoodi network * feat(mev-boost): Bump chart version * feat(mev-boost): Fix validation for deviating image tag naming
1 parent bbfd4e0 commit be1e3fc

File tree

3 files changed

+42
-4
lines changed

3 files changed

+42
-4
lines changed

charts/mev-boost/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type: application
2121
# This is the chart version. This version number should be incremented each time you make changes
2222
# to the chart and its templates, including the app version.
2323
# Versions are expected to follow Semantic Versioning (https://semver.org/)
24-
version: 1.7.2
24+
version: 1.7.3
2525

2626
# This is the version number of the application being deployed. This version number should be
2727
# incremented each time you make changes to the application. Versions are not expected to
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{{- /*
2+
This template validates that if network is "hoodi", the image tag must be greater than or equal to 1.9.0 or 1.9-rc3 respectively.
3+
*/ -}}
4+
5+
{{- $network := .Values.global.network }}
6+
{{- $imageTag := .Values.image.tag }}
7+
8+
{{- /* Define a function to normalize version strings */ -}}
9+
{{- define "semverCompare" -}}
10+
{{- /* This helper normalizes version strings for comparison */ -}}
11+
{{- if regexMatch "^[0-9]+\\.[0-9]+\\.[0-9]+$" . -}}
12+
{{- /* It's a full semver (e.g., 1.9.0) */ -}}
13+
{{- . -}}
14+
{{- else if regexMatch "^[0-9]+\\.[0-9]+$" . -}}
15+
{{- /* It's a short version (e.g., 1.9) - convert to 1.9.0 */ -}}
16+
{{- printf "%s.0" . -}}
17+
{{- else if regexMatch "^[0-9]+\\.[0-9]+rc[0-9]+$" . -}}
18+
{{- /* It's a semver with rc suffix without hyphen (format: 1.9rc3) */ -}}
19+
{{- $parts := regexSplit "rc" . -1 -}}
20+
{{- printf "%s-rc%s" (index $parts 0) (index $parts 1) -}}
21+
{{- else -}}
22+
{{- /* It's something else */ -}}
23+
{{- . -}}
24+
{{- end -}}
25+
{{- end -}}
26+
27+
{{- /* Check if we need to validate (only for "hoodi" network) */ -}}
28+
{{- if eq $network "hoodi" -}}
29+
{{- /* Transform the tag for comparison */ -}}
30+
{{- $normalizedTag := include "semverCompare" $imageTag -}}
31+
32+
{{- /* Debug - uncomment if needed */}}
33+
{{- /* fail (printf "DEBUG: Original tag: %s, Normalized: %s" $imageTag $normalizedTag) */}}
34+
35+
{{- /* Perform the validation checks */ -}}
36+
{{- if or (semverCompare "< 1.9.0" $normalizedTag) (semverCompare "< 1.9-rc3" $normalizedTag) -}}
37+
{{- fail "ERROR: For network 'hoodi', image tag must be at least '1.9.0' or '1.9rc3'" -}}
38+
{{- end -}}
39+
{{- end -}}

charts/mev-boost/values.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Declare variables to be passed into your templates.
44

55
global:
6-
# Options: mainnet, holesky, ropsten, kiln, sepolia
6+
# Options: mainnet, holesky, sepolia, hoodi
77
network: "mainnet"
88

99
## Credentials to fetch images from private registry
@@ -18,9 +18,8 @@ global:
1818
relays:
1919
mainnet: "https://0xac6e77dfe25ecd6110b8e780608cce0dab71fdd5ebea22a16c0205200f2f8e2e3ad3b71d3499c54ad14d6c21b41a37ae@boost-relay.flashbots.net"
2020
holesky: "https://0xafa4c6985aa049fb79dd37010438cfebeb0f2bd42b115b89dd678dab0670c1de38da0c4e9138c9290a398ecd9a0b3110@boost-relay-holesky.flashbots.net"
21-
ropsten: "https://0xb124d80a00b80815397b4e7f1f05377ccc83aeeceb6be87963ba3649f1e6efa32ca870a88845917ec3f26a8e2aa25c77@builder-relay-ropsten.flashbots.net"
22-
kiln: "https://0xb5246e299aeb782fbc7c91b41b3284245b1ed5206134b0028b81dfb974e5900616c67847c2354479934fc4bb75519ee1@builder-relay-kiln.flashbots.net"
2321
sepolia: "https://0x845bd072b7cd566f02faeb0a4033ce9399e42839ced64e8b2adcfc859ed1e8e1a5a293336a49feac6d9a5edb779be53a@builder-relay-sepolia.flashbots.net"
22+
hoodi: "https://0xafa4c6985aa049fb79dd37010438cfebeb0f2bd42b115b89dd678dab0670c1de38da0c4e9138c9290a398ecd9a0b3110@boost-relay-hoodi.flashbots.net"
2423

2524
# minimum loglevel: trace, debug, info, warn/warning, error, fatal, panic
2625
logLevel: info

0 commit comments

Comments
 (0)