File tree 7 files changed +90
-9
lines changed
7 files changed +90
-9
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ run-name : CI triggered from @${{ github.actor }} of ${{ github.head_ref }}
3
+
4
+ on :
5
+ workflow_dispatch :
6
+ merge_group :
7
+ pull_request :
8
+ push :
9
+ branches :
10
+ - master
11
+ - develop
12
+
13
+
14
+ jobs :
15
+ build_and_run :
16
+ runs-on : ubuntu-8
17
+
18
+ steps :
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
21
+ with :
22
+ submodules : recursive
23
+
24
+ - name : Set up Docker Buildx
25
+ uses : docker/setup-buildx-action@v3
26
+ with :
27
+ driver-opts : network=host
28
+
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
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # The script starts up the test node and waits until the timeout (10min) or
3
+ # until send-l2 succeeds.
4
+
5
+ # Start the test node and get PID, to terminate it once send-l2 is done.
6
+ ${GITHUB_WORKSPACE} /test-node.bash --init > output.log 2>&1 &
7
+ PID=$!
8
+
9
+ sleep 5m
10
+
11
+ START=$( date +%s)
12
+ SUCCEDED=0
13
+
14
+ while true ; do
15
+ if ${GITHUB_WORKSPACE} /test-node.bash script send-l2 --ethamount 100 --to user_l2user --wait; then
16
+ echo " Sending l2 transaction succeeded"
17
+ SUCCEDED=1
18
+ break
19
+ fi
20
+
21
+ # Check if the timeout (10 min) has been reached.
22
+ NOW=$( date +%s)
23
+ DIFF=$(( NOW - START))
24
+ if [ " $DIFF " -ge 600 ]; then
25
+ echo " Timed out"
26
+ break
27
+ fi
28
+
29
+ sleep 10
30
+ done
31
+
32
+ # Shut down the test node and wait for it to terminate.
33
+ kill $PID
34
+ wait $PID
35
+
36
+ if [ " $SUCCEDED " -eq 0 ]; then
37
+ exit 1
38
+ fi
39
+
40
+ exit 0
Original file line number Diff line number Diff line change 1
- FROM node:16
1
+ FROM node:16-bullseye-slim
2
2
WORKDIR /workspace
3
3
COPY ./package.json ./yarn.lock ./
4
4
RUN yarn
Original file line number Diff line number Diff line change @@ -85,10 +85,11 @@ export function namedAddress(
85
85
86
86
export const namedAccountHelpString =
87
87
"Valid account names:\n" +
88
- " funnel | sequencer | validator - known keys\n" +
89
- " user_[Alphanumeric] - key will be generated from username\n" +
90
- " threaduser_[Alphanumeric] - same as user_[Alphanumeric]_thread_[thread-id]\n" +
91
- " key_0x[full private key] - user with specified private key\n" +
88
+ " funnel | sequencer | validator | l2owner - known keys used by l2\n" +
89
+ " l3owner | l3sequencer - known keys used by l3\n" +
90
+ " user_[Alphanumeric] - key will be generated from username\n" +
91
+ " threaduser_[Alphanumeric] - same as user_[Alphanumeric]_thread_[thread-id]\n" +
92
+ " key_0x[full private key] - user with specified private key\n" +
92
93
"\n" +
93
94
"Valid addresses: any account name, or\n" +
94
95
" address_0x[full eth address]\n" +
@@ -123,7 +124,7 @@ export const printPrivateKeyCommand = {
123
124
builder : {
124
125
account : {
125
126
string : true ,
126
- describe : "address (see general help)" ,
127
+ describe : "account (see general help)" ,
127
128
default : "funnel" ,
128
129
} ,
129
130
} ,
Original file line number Diff line number Diff line change @@ -181,7 +181,8 @@ function writeConfigs(argv: any) {
181
181
} ,
182
182
"sequencer" : false ,
183
183
"dangerous" : {
184
- "no-sequencer-coordinator" : false
184
+ "no-sequencer-coordinator" : false ,
185
+ "disable-blob-reader" : true ,
185
186
} ,
186
187
"delayed-sequencer" : {
187
188
"enable" : false
Original file line number Diff line number Diff line change @@ -164,13 +164,15 @@ while [[ $# -gt 0 ]]; do
164
164
echo --init remove all data, rebuild, deploy new rollup
165
165
echo --pos l1 is a proof-of-stake chain \( using prysm for consensus\)
166
166
echo --validate heavy computation, validating all blocks in WASM
167
+ echo --l3-node deploys an L3 node on top of the L2
167
168
echo --l3-fee-token L3 chain is set up to use custom fee token. Only valid if also ' --l3node' is provided
168
169
echo --l3-token-bridge Deploy L2-L3 token bridge. Only valid if also ' --l3node' is provided
169
170
echo --batchposters batch posters [0-3]
170
171
echo --redundantsequencers redundant sequencers [0-3]
171
172
echo --detach detach from nodes after running them
172
173
echo --blockscout build or launch blockscout
173
174
echo --simple run a simple configuration. one node as sequencer/batch-poster/staker \( default unless using --dev\)
175
+ echo --tokenbridge deploy L1-L2 token bridge.
174
176
echo --no-tokenbridge don\' t build or launch tokenbridge
175
177
echo --no-run does not launch nodes \( useful with build or init\)
176
178
echo --no-simple run a full configuration with separate sequencer/batch-poster/validator/relayer
Original file line number Diff line number Diff line change 1
1
FROM node:16-bullseye-slim
2
2
RUN apt-get update && \
3
- apt-get install -y git docker.io python3 chromium build-essential
3
+ apt-get install -y git docker.io python3 build-essential
4
4
WORKDIR /workspace
5
- RUN git clone -b reg-weth-gw https://github.com/OffchainLabs/token-bridge-contracts.git ./
5
+ RUN git clone https://github.com/OffchainLabs/token-bridge-contracts.git ./
6
6
RUN yarn install
7
7
RUN yarn build
8
8
ENTRYPOINT ["yarn" ]
You can’t perform that action at this time.
0 commit comments