Skip to content

Commit 8f31196

Browse files
authored
Setup BAL EEST tests (#3839)
1 parent 876bf9a commit 8f31196

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/actions/shared/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ runs:
167167
tests/fixtures/eest_stable
168168
tests/fixtures/eest_develop
169169
tests/fixtures/eest_devnet
170+
tests/fixtures/eest_bal
170171
# EEST release version contained in eest_ci_cache.sh.
171172
# Each time we bump EEST version, it should invalidate the cache too.
172173
key: eest-${{ hashFiles('scripts/eest_ci_cache.sh') }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,6 @@ tests/fixtures/eest_static
5151
tests/fixtures/eest_stable
5252
tests/fixtures/eest_develop
5353
tests/fixtures/eest_devnet
54+
tests/fixtures/eest_bal
5455

5556
execution_chain/nimbus

scripts/eest_ci_cache.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ EEST_DEVNET_DIR="${FIXTURES_DIR}/eest_devnet"
2727
EEST_DEVNET_ARCHIVE="fixtures_fusaka-devnet-5.tar.gz"
2828
EEST_DEVNET_URL="https://github.com/ethereum/execution-spec-tests/releases/download/${EEST_DEVNET_NAME}%40${EEST_DEVNET_VERSION}/${EEST_DEVNET_ARCHIVE}"
2929

30+
# --- BAL Release ---
31+
EEST_BAL_NAME="bal"
32+
EEST_BAL_VERSION="v1.6.0"
33+
EEST_BAL_DIR="${FIXTURES_DIR}/eest_bal"
34+
EEST_BAL_ARCHIVE="fixtures_bal.tar.gz"
35+
EEST_BAL_URL="https://github.com/ethereum/execution-spec-tests/releases/download/${EEST_BAL_NAME}%40${EEST_BAL_VERSION}/${EEST_BAL_ARCHIVE}"
36+
37+
3038
download_and_extract() {
3139
local url="$1"
3240
local dest_dir="$2"
@@ -75,3 +83,4 @@ download_and_extract() {
7583
# Download stable and develop versions
7684
download_and_extract "${EEST_DEVELOP_URL}" "${EEST_DEVELOP_DIR}" "${EEST_DEVELOP_NAME}" "${EEST_DEVELOP_VERSION}" "${EEST_DEVELOP_ARCHIVE}"
7785
download_and_extract "${EEST_DEVNET_URL}" "${EEST_DEVNET_DIR}" "${EEST_DEVNET_NAME}" "${EEST_DEVNET_VERSION}" "${EEST_DEVNET_ARCHIVE}"
86+
download_and_extract "${EEST_BAL_URL}" "${EEST_BAL_DIR}" "${EEST_BAL_NAME}" "${EEST_BAL_VERSION}" "${EEST_BAL_ARCHIVE}"

tests/eest/eest_helpers.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ type
5656
excessBlobGas: Opt[Quantity]
5757
parentBeaconBlockRoot: Opt[Hash32]
5858
requestsHash: Opt[Hash32]
59+
blockAccessListHash: Opt[Hash32]
5960
hash*: Hash32
6061

6162
BlockDesc* = object
@@ -202,6 +203,7 @@ func to*(g: GenesisHeader, _: type Header): Header =
202203
excessBlobGas: g.excessBlobGas.to(Opt[uint64]),
203204
parentBeaconBlockRoot: g.parentBeaconBlockRoot,
204205
requestsHash: g.requestsHash,
206+
blockAccessListHash: g.blockAccessListHash,
205207
)
206208

207209
proc setupClient*(port: Port): RpcHttpClient =

0 commit comments

Comments
 (0)