Skip to content

Commit d4244cd

Browse files
committed
Merge remote-tracking branch 'origin/release'
2 parents 1d0a37c + 43861b0 commit d4244cd

File tree

11 files changed

+280
-105
lines changed

11 files changed

+280
-105
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,40 @@ name: CI
22
run-name: CI triggered from @${{ github.actor }} of ${{ github.head_ref }}
33

44
on:
5-
workflow_dispatch:
6-
merge_group:
7-
pull_request:
8-
push:
9-
branches:
10-
- master
11-
- develop
12-
5+
workflow_dispatch:
6+
merge_group:
7+
pull_request:
8+
push:
9+
branches:
10+
- master
11+
- develop
1312

1413
jobs:
1514
build_and_run:
1615
runs-on: ubuntu-8
16+
strategy:
17+
matrix:
18+
pos: [pos, no-pos]
19+
l3node: [l3node, l3node-token-6, no-l3node]
20+
tokenbridge: [tokenbridge, no-tokenbridge]
1721

1822
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v4
21-
with:
22-
submodules: recursive
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
submodules: recursive
2327

24-
- name: Set up Docker Buildx
25-
uses: docker/setup-buildx-action@v3
26-
with:
27-
driver-opts: network=host
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
with:
31+
driver-opts: network=host
2832

29-
- name: Cache Docker layers
30-
uses: actions/cache@v3
31-
with:
32-
path: /tmp/.buildx-cache
33-
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}
34-
restore-keys: ${{ runner.os }}-buildx-
35-
36-
- name: Startup Nitro testnode
37-
run: ${{ github.workspace }}/.github/workflows/testnode.bash
33+
- name: Cache Docker layers
34+
uses: actions/cache@v3
35+
with:
36+
path: /tmp/.buildx-cache
37+
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}
38+
restore-keys: ${{ runner.os }}-buildx-
39+
40+
- name: Startup Nitro testnode
41+
run: ${{ github.workspace }}/.github/workflows/testnode.bash --init-force ${{ (matrix.l3node == 'l3node' && '--l3node') || (matrix.l3node == 'l3node-token-6' && '--l3node --l3-fee-token --l3-token-bridge --l3-fee-token-decimals 6') || '' }} ${{ matrix.tokenbridge == 'tokenbridge' && '--tokenbridge' || '--no-tokenbridge' }} --no-simple --detach ${{ matrix.pos == 'pos' && '--pos' || '' }}

.github/workflows/testnode.bash

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,36 @@
55
# Start the test node and get PID, to terminate it once send-l2 is done.
66
cd ${GITHUB_WORKSPACE}
77

8-
# TODO once develop is merged into nitro-contract's master, remove the NITRO_CONTRACTS_BRANCH env var
9-
./test-node.bash --init-force --l3node --no-simple --detach
8+
./test-node.bash "$@"
9+
10+
if [ $? -ne 0 ]; then
11+
echo "test-node.bash failed"
12+
docker compose logs --tail=1000
13+
exit 1
14+
fi
15+
1016

1117
START=$(date +%s)
1218
L2_TRANSACTION_SUCCEEDED=false
13-
L3_TRANSACTION_SUCCEEDED=false
19+
# if we're not running an l3node then we just set l3 to success by default
20+
L3_TRANSACTION_SUCCEEDED=true
21+
for arg in "$@"; do
22+
if [ "$arg" = "--l3node" ]; then
23+
L3_TRANSACTION_SUCCEEDED=false
24+
fi
25+
done
1426
SUCCEEDED=false
1527

1628
while true; do
1729
if [ "$L2_TRANSACTION_SUCCEEDED" = false ]; then
18-
if ${GITHUB_WORKSPACE}/test-node.bash script send-l2 --ethamount 100 --to user_l2user --wait; then
30+
if ${GITHUB_WORKSPACE}/test-node.bash script send-l2 --ethamount 2 --to user_l2user --wait; then
1931
echo "Sending l2 transaction succeeded"
2032
L2_TRANSACTION_SUCCEEDED=true
2133
fi
2234
fi
2335

2436
if [ "$L3_TRANSACTION_SUCCEEDED" = false ]; then
25-
if ${GITHUB_WORKSPACE}/test-node.bash script send-l3 --ethamount 100 --to user_l3user --wait; then
37+
if ${GITHUB_WORKSPACE}/test-node.bash script send-l3 --ethamount 2 --to user_l3user --wait; then
2638
echo "Sending l3 transaction succeeded"
2739
L3_TRANSACTION_SUCCEEDED=true
2840
fi
@@ -44,10 +56,10 @@ while true; do
4456
sleep 10
4557
done
4658

47-
docker-compose stop
59+
docker compose stop
4860

4961
if [ "$SUCCEEDED" = false ]; then
50-
docker-compose logs
62+
docker compose logs
5163
exit 1
5264
fi
5365

docker-compose.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ services:
4747
- "127.0.0.1:6379:6379"
4848

4949
geth:
50-
image: ethereum/client-go:v1.10.23
50+
image: ethereum/client-go:latest
5151
ports:
5252
- "127.0.0.1:8545:8545"
5353
- "127.0.0.1:8551:8551"
@@ -77,6 +77,7 @@ services:
7777
- --authrpc.jwtsecret=/config/jwt.hex
7878
- --nodiscover
7979
- --syncmode=full
80+
- --state.scheme=hash
8081
- --dev
8182
- --dev.period=1
8283
- --mine
@@ -91,9 +92,13 @@ services:
9192
command:
9293
- testnet
9394
- generate-genesis
95+
- --fork=deneb
9496
- --num-validators=64
97+
- --genesis-time-delay=15
9598
- --output-ssz=/consensus/genesis.ssz
9699
- --chain-config-file=/config/prysm.yaml
100+
- --geth-genesis-json-in=/config/geth_genesis.json
101+
- --geth-genesis-json-out=/config/geth_genesis.json
97102
volumes:
98103
- "consensus:/consensus"
99104
- "config:/config"
@@ -108,16 +113,17 @@ services:
108113
- --datadir=/consensus/beacondata
109114
- --rpc-port=5000
110115
- --min-sync-peers=0
111-
- --interop-genesis-state=/consensus/genesis.ssz
116+
- --genesis-state=/consensus/genesis.ssz
112117
- --interop-eth1data-votes
113118
- --bootstrap-node=
114119
- --chain-config-file=/config/prysm.yaml
115120
- --rpc-host=0.0.0.0
116121
- --grpc-gateway-host=0.0.0.0
117-
- --chain-id=32382
122+
- --chain-id=1337
118123
- --execution-endpoint=http://geth:8551
119124
- --accept-terms-of-use
120125
- --jwt-secret=/config/jwt.hex
126+
- --suggested-fee-recipient=0x000000000000000000000000000000000000dEaD
121127
depends_on:
122128
geth:
123129
condition: service_started

rollupcreator/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.20.3-bullseye-slim
1+
FROM node:18-bullseye-slim
22
ARG NITRO_CONTRACTS_BRANCH=main
33
RUN apt-get update && \
44
apt-get install -y git docker.io python3 build-essential curl jq

scripts/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:16-bullseye-slim
1+
FROM node:18-bullseye-slim
22
WORKDIR /workspace
33
COPY ./package.json ./yarn.lock ./
44
RUN yarn

scripts/config.ts

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,28 @@ PRESET_BASE: interop
1313
GENESIS_FORK_VERSION: 0x20000089
1414
1515
# Altair
16-
ALTAIR_FORK_EPOCH: 1
16+
ALTAIR_FORK_EPOCH: 0
1717
ALTAIR_FORK_VERSION: 0x20000090
1818
1919
# Merge
20-
BELLATRIX_FORK_EPOCH: 2
20+
BELLATRIX_FORK_EPOCH: 0
2121
BELLATRIX_FORK_VERSION: 0x20000091
2222
TERMINAL_TOTAL_DIFFICULTY: 50
2323
24+
# Capella
25+
CAPELLA_FORK_EPOCH: 0
26+
CAPELLA_FORK_VERSION: 0x20000092
27+
MAX_WITHDRAWALS_PER_PAYLOAD: 16
28+
29+
# DENEB
30+
DENEB_FORK_EPOCH: 0
31+
DENEB_FORK_VERSION: 0x20000093
32+
33+
# ELECTRA
34+
ELECTRA_FORK_VERSION: 0x20000094
35+
2436
# Time parameters
25-
SECONDS_PER_SLOT: 12
37+
SECONDS_PER_SLOT: 2
2638
SLOTS_PER_EPOCH: 6
2739
2840
# Deposit contract
@@ -36,8 +48,7 @@ function writeGethGenesisConfig(argv: any) {
3648
{
3749
"config": {
3850
"ChainName": "l1_chain",
39-
"chainId": 32382,
40-
"consensus": "clique",
51+
"chainId": 1337,
4152
"homesteadBlock": 0,
4253
"daoForkSupport": true,
4354
"eip150Block": 0,
@@ -54,13 +65,12 @@ function writeGethGenesisConfig(argv: any) {
5465
"terminalBlockHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
5566
"arrowGlacierBlock": 0,
5667
"grayGlacierBlock": 0,
57-
"clique": {
58-
"period": 5,
59-
"epoch": 30000
60-
},
61-
"terminalTotalDifficulty": 50
68+
"shanghaiTime": 0,
69+
"cancunTime": 1706778826,
70+
"terminalTotalDifficulty": 0,
71+
"terminalTotalDifficultyPassed": true
6272
},
63-
"difficulty": "1",
73+
"difficulty": "0",
6474
"extradata": "0x00000000000000000000000000000000000000000000000000000000000000003f1Eae7D46d88F08fc2F8ed27FCb2AB183EB2d0E0B0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
6575
"nonce": "0x42",
6676
"timestamp": "0x0",

scripts/consts.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ export const tokenbridgedatapath = "/tokenbridge-data";
55
// Not secure. Do not use for production purposes
66
export const l1mnemonic =
77
"indoor dish desk flag debris potato excuse depart ticket judge file exit";
8+
9+
export const ARB_OWNER = "0x0000000000000000000000000000000000000070";

0 commit comments

Comments
 (0)