Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and fix the testnode #34

Merged
merged 252 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
3c780e3
Service renamed
gvladika Aug 22, 2023
faf4fff
Add missing command
gvladika Aug 22, 2023
7993b65
Merge branch 'master' into fee-token-support
gvladika Sep 18, 2023
4411666
Refactor how native token is provided.
gvladika Sep 22, 2023
4e1117e
simple: initial
tsahee Oct 2, 2023
d188a02
Create native token on L2
gvladika Oct 9, 2023
782280f
Deploy L3 with fee token
gvladika Oct 9, 2023
3620a5c
Merge branch 'master' into fee-token-support
gvladika Oct 9, 2023
6742898
Merge branch 'master' into fee-token-support
gvladika Oct 9, 2023
2f8969b
Provide maxDataSize
gvladika Oct 10, 2023
82a072d
Use different deployers to have consistent addresses
gvladika Oct 13, 2023
aee6cef
initialize required config fields wrt current nitro
ganeshvanahalli Oct 13, 2023
9f2bd4b
initialize required config fields wrt current nitro
ganeshvanahalli Oct 13, 2023
1f27c10
Merge pull request #14 from OffchainLabs/update-config-fields
tsahee Oct 18, 2023
0bd1ef2
Merge branch 'master' into fee-token-support
gvladika Oct 19, 2023
f6306a5
Rename fee token flag, exit script if L3 node is not being deployed
gvladika Oct 19, 2023
1e2a56d
Don't use eval
gvladika Oct 20, 2023
11ed8e9
Rename test accounts
gvladika Oct 20, 2023
11170fe
Update L3 config so that finalization of L2 delayed msgs is not required
gvladika Oct 20, 2023
d4e2340
Remove leftover
gvladika Oct 20, 2023
76d8686
Fix configuration
nomaxg Oct 20, 2023
69a8f66
make sequencer default false
nomaxg Oct 20, 2023
179cf31
Merge pull request #1 from EspressoSystems/test-node-config-fix
nomaxg Oct 24, 2023
51ebfd5
Fix BigNUmber comparison
gvladika Oct 27, 2023
3a7b2ce
Mint fee tokens to funnel account to use for retryable fees
gvladika Oct 27, 2023
fe900a5
Mint tokens to initial receiver only
gvladika Oct 31, 2023
7b9566d
Update Dockerfile to use token bridge repo instead of SDK
gvladika Oct 31, 2023
5d69cf9
Add option to deploy L2-L3 token bridge
gvladika Oct 31, 2023
e173aee
Deploy L1-L2 token bridge using token bridge creator
gvladika Oct 31, 2023
e7e95b0
Provide rollup owner
gvladika Oct 31, 2023
bb3f094
Merge pull request #6 from OffchainLabs/fee-token-support
tsahee Oct 31, 2023
f2fd0bd
Add delay for services to be ready
gvladika Nov 2, 2023
1d7ba35
Delay before the L1-L2 token bridge deployment
gvladika Nov 2, 2023
e432e19
Add support for native L2-L3 bridging of the fee token
gvladika Nov 3, 2023
b157fac
Provide deployer keys as env var
gvladika Nov 3, 2023
1b9010c
Merge branch 'use-tokenbridge-creator' into fee-token-bridging
gvladika Nov 3, 2023
b3f40ee
Fix native bridging
gvladika Nov 3, 2023
26d2b22
Approve token before bridging
gvladika Nov 3, 2023
5e0b8f2
Use correct providers
gvladika Nov 3, 2023
5f6a418
Fetch native token address from config file
gvladika Nov 6, 2023
9229f6a
Merge remote-tracking branch 'origin/master' into simple
tsahee Nov 9, 2023
388aad3
use nitro version 2.2.0-alpha1
tsahee Nov 9, 2023
16c7a93
test-node: use wait instead of detach + l3 deploy fix
tsahee Nov 9, 2023
a95a820
config: separate keys for sequencer and staker
tsahee Nov 9, 2023
af0a81d
Test the integration
ImJeremyHe Nov 6, 2023
7c8b39a
Merge pull request #2 from EspressoSystems/jh/deploy
ImJeremyHe Nov 16, 2023
9235066
more traffic
godzillaba Nov 17, 2023
6d10e6f
usage and sort changes
tsahee Nov 18, 2023
bc93d54
typo fix
tsahee Nov 20, 2023
0ad3bf8
Use the broadcaster to deliver msgs if espresso mode is on
ImJeremyHe Nov 28, 2023
71cc80d
Merge pull request #3 from EspressoSystems/jh/invalid-tx
ImJeremyHe Nov 28, 2023
12d9bed
Use latest token-bridge-contracts tag
gvladika Nov 28, 2023
7889505
added support for running the validator in Espresso mode
nomaxg Nov 28, 2023
d41a29e
merge conflicts
nomaxg Nov 28, 2023
c6ad56c
Merge pull request #20 from OffchainLabs/simple
tsahee Nov 30, 2023
6de7571
remove linting
nomaxg Dec 5, 2023
2dfd97f
Merge pull request #4 from EspressoSystems/hotshot-client-testnode
nomaxg Dec 5, 2023
df108cb
add comma
nomaxg Dec 5, 2023
2e28f3d
add hotshot address argument, set espresso mode in the l2 config base…
nomaxg Dec 7, 2023
42af8f0
Merge pull request #5 from EspressoSystems/test-node-validation
nomaxg Dec 7, 2023
9062881
Merge pull request #18 from OffchainLabs/fee-token-bridging
gzeoneth Dec 8, 2023
dfdc759
Merge branch 'master' into use-tokenbridge-creator
gzeoneth Dec 8, 2023
a59d41c
Update test-node.bash
gzeoneth Dec 8, 2023
e93fba1
chore: use v1.1.2
gzeoneth Dec 8, 2023
547e95e
Remove extra quotes around hotshot address
sveitser Dec 12, 2023
047a193
Merge pull request #7 from EspressoSystems/fix/hotshot-address
sveitser Dec 12, 2023
6c30e26
add fs tag
nomaxg Dec 12, 2023
3db1335
add status flag
nomaxg Dec 13, 2023
afbee7a
Merge pull request #8 from EspressoSystems/query-fs
nomaxg Dec 13, 2023
c47cb8c
Merge pull request #21 from OffchainLabs/more-traffic
tsahee Dec 14, 2023
ce5fb99
more traffic
godzillaba Nov 17, 2023
a51f0a9
add eth rpc to validator for slow confirmations
nomaxg Dec 18, 2023
9331016
Merge pull request #10 from EspressoSystems/validator-rpc
nomaxg Dec 18, 2023
6888036
Merge branch 'master' into use-tokenbridge-creator
gvladika Dec 21, 2023
5571d08
Merge remote-tracking branch 'upstream/release' into feat/sync-upstream
ImJeremyHe Dec 21, 2023
1366df6
Use 'docker compose' CLI instead of 'docker-compose' when --wait flag…
gvladika Dec 21, 2023
7ca15aa
update docker compose command
spsjvc Dec 21, 2023
c554d0a
Merge pull request #23 from OffchainLabs/use-tokenbridge-creator-dock…
spsjvc Dec 21, 2023
2a0d886
Merge pull request #11 from EspressoSystems/feat/sync-upstream
ImJeremyHe Dec 22, 2023
937af32
Check not needed anymore
gvladika Dec 22, 2023
683f887
Remove unnecessary sleep
gvladika Dec 22, 2023
d77154d
Use latest token bridge design
gvladika Dec 22, 2023
8bb39c2
Read native token address from l3deployment.json
gvladika Dec 22, 2023
b7201b1
Update sequencer command line arguments
sveitser Dec 22, 2023
a283f31
Merge pull request #12 from EspressoSystems/ma/update-sequencer
sveitser Jan 2, 2024
2bbfa02
Non-sequencer now need to set forwarding target
sveitser Jan 2, 2024
7c5d3e6
Bump nitro
gvladika Jan 8, 2024
d109d0f
Use the working nitro version
gvladika Jan 8, 2024
05ab75a
Merge pull request #17 from OffchainLabs/use-tokenbridge-creator
tsahee Jan 9, 2024
df5e967
Merge pull request #13 from EspressoSystems/sync/2024-01-02
ImJeremyHe Jan 9, 2024
0d930b2
fix config: add forwarding target
tsahee Jan 24, 2024
840f86b
Merge pull request #25 from OffchainLabs/config-fix
tsahee Jan 24, 2024
9da5a24
Pass the hotshot address to L2 contracts
ImJeremyHe Jan 25, 2024
de0e28f
Merge pull request #16 from EspressoSystems/jh/depl
ImJeremyHe Jan 25, 2024
a657634
chore: export tokenbridge
gzeoneth Jan 30, 2024
849ab12
chore: use main
gzeoneth Jan 30, 2024
dd89f5c
chore: import tokenbridge
gzeoneth Jan 30, 2024
e18889f
feat: bridge token from l1 if token brdige exists
gzeoneth Jan 30, 2024
723ebf4
registers l1 to l2 weth gateway
godzillaba Jan 30, 2024
a59e1b7
registers l2 to l3 weth gateway with overridden l2 weth
godzillaba Jan 30, 2024
5593b89
rename l1 to parent
godzillaba Jan 30, 2024
72c9b30
Merge branch 'bridgable-fee-token' into ha/l1-fee-token-and-register-…
godzillaba Jan 30, 2024
8108a6f
add sdk-data volume to sequencer
godzillaba Jan 30, 2024
7a5fefe
chore: switch back to ocl repo
gzeoneth Jan 31, 2024
8b9950b
chore: remove default
gzeoneth Jan 31, 2024
f1d090b
chore: use bridgeable arg
gzeoneth Jan 31, 2024
16202b8
chore: clean up path
gzeoneth Jan 31, 2024
947e1e5
chore: rename to tokenbridge-data
gzeoneth Jan 31, 2024
12076a0
Update L2 chain config
ImJeremyHe Jan 31, 2024
755490d
Merge pull request #17 from EspressoSystems/jh/espresso
ImJeremyHe Jan 31, 2024
0fa46c6
fix: nonce race
gzeoneth Jan 31, 2024
2dab4fd
docs: list named account for troubleshooting
gzeoneth Jan 31, 2024
a1e1cbb
chore: also localNetwork.json
gzeoneth Feb 1, 2024
05587bc
Merge pull request #31 from OffchainLabs/ha/l1-fee-token-and-register…
tsahee Feb 2, 2024
6dd7c82
accounts documentation
tsahee Feb 2, 2024
4acf143
perf: remove chrome
gzeoneth Feb 5, 2024
65c135a
chore: switch token-bridge-contracts main
gzeoneth Feb 5, 2024
ed8331d
perf: use slim image
gzeoneth Feb 5, 2024
70066a8
chore: add missing help parameters
TucksonDev Feb 6, 2024
8335e04
Add CI for testnode that starts up nitro test node and rans l2 transa…
anodar Feb 9, 2024
6c1acc4
Merge branch 'master' into nitro-testnode-ci
anodar Feb 9, 2024
5219ee2
Fix typo
anodar Feb 9, 2024
5237610
Fix script path in testnode.bash
anodar Feb 9, 2024
69d126a
add option to pull latest espresso images
nomaxg Feb 13, 2024
d527211
Merge pull request #18 from EspressoSystems/add-espresso-image-option
nomaxg Feb 13, 2024
d62114c
Add beacon client URL
PlasmaPower Feb 15, 2024
a22f63a
Disable blob reader for now
PlasmaPower Feb 15, 2024
24ddce4
Add demo private staking keys
sveitser Feb 19, 2024
b4bbac4
Merge pull request #20 from EspressoSystems/ma/private-staking-keys
sveitser Feb 19, 2024
ffa1ff3
Merge pull request #40 from OffchainLabs/beacon-client-url
tsahee Feb 20, 2024
3922df9
Merge pull request #35 from OffchainLabs/remove-chrome
tsahee Feb 20, 2024
ec4fce0
Drop send-l2-tx flag
anodar Feb 21, 2024
47ce5d2
replace github.workspace with GITHUB_WORKSPACE
anodar Feb 21, 2024
eb8e05d
Fix script path
anodar Feb 21, 2024
3cbcbf2
wait for 3min before trying to send l2 transaction
anodar Feb 22, 2024
3ed91b5
Wait 5min until sending l2 transactions
anodar Feb 22, 2024
03e24b2
Increase wait time
anodar Feb 22, 2024
ff7ff3a
Run testnode using latest release (without --dev)
anodar Feb 23, 2024
74e07df
Increase timeout
anodar Feb 23, 2024
f27a85e
updates from sequencer
nomaxg Feb 23, 2024
b9588a1
Poll until timeout or until send-l2 succeeds
anodar Feb 26, 2024
15fe18a
more env updates based on recent sequencer changes
nomaxg Mar 3, 2024
76c0616
Merge pull request #44 from OffchainLabs/testnode-ci
tsahee Mar 5, 2024
2d770c8
Merge pull request #37 from OffchainLabs/chore-add-missing-help-param…
tsahee Mar 5, 2024
3ee7422
Merge branch 'release' of github.com:OffchainLabs/nitro-testnode into…
ImJeremyHe Mar 7, 2024
d74eb69
Merge pull request #21 from EspressoSystems/sequencer-fixes
ImJeremyHe Mar 7, 2024
2d372a7
accounts documentation
tsahee Feb 2, 2024
e8846e1
perf: remove chrome
gzeoneth Feb 5, 2024
bda0e84
chore: switch token-bridge-contracts main
gzeoneth Feb 5, 2024
896f519
perf: use slim image
gzeoneth Feb 5, 2024
5425c66
Add beacon client URL
PlasmaPower Feb 15, 2024
3e0ccb8
Disable blob reader for now
PlasmaPower Feb 15, 2024
50c9a90
Fix the testnode
ImJeremyHe Mar 14, 2024
3b906de
Merge branch 'integration' into jh/sync
ImJeremyHe Mar 15, 2024
3fd5f4b
Merge pull request #22 from EspressoSystems/jh/sync
ImJeremyHe Mar 15, 2024
32c5f7f
Add rollupcreator container
gvladika Mar 20, 2024
d269f8c
Update Dockerfile
gvladika Mar 21, 2024
bf17161
Draft rollup creation call
gvladika Mar 21, 2024
492be73
call `docker compose` consistently
tbro Mar 21, 2024
1e6f905
Set simple to false when running espresso
ImJeremyHe Mar 22, 2024
428884c
Merge pull request #24 from EspressoSystems/jh/simple
ImJeremyHe Mar 22, 2024
ba1d122
Fix the fund
ImJeremyHe Mar 22, 2024
a380e78
Merge pull request #25 from EspressoSystems/jh/simple
ImJeremyHe Mar 22, 2024
2bf715e
Merge branch 'integration' into consistent-use-of-docker-compose
ImJeremyHe Mar 26, 2024
20ea245
Merge pull request #23 from EspressoSystems/consistent-use-of-docker-…
ImJeremyHe Mar 26, 2024
ea79929
Update create rollup call
gvladika Mar 26, 2024
8885c42
Update rollupcreator config
gvladika Mar 27, 2024
999eb38
Fix command
gvladika Mar 27, 2024
c3d3d64
Adjust l3node creation command
gvladika Mar 27, 2024
7ea4b74
Fund deployers with fee token
gvladika Mar 28, 2024
de506e1
Properly provide fee token arg
gvladika Mar 28, 2024
3b3ce1a
Use latest wasmroot
gvladika Mar 28, 2024
6f70432
Make nitro-contracts branch configurable
gvladika Mar 28, 2024
8246819
Temp change for test
gvladika Mar 28, 2024
00862c2
Add option to customize token bridge branch
gvladika Mar 28, 2024
4197b54
Unused
gvladika Mar 28, 2024
7d036e6
Fix the testnode
ImJeremyHe Mar 29, 2024
c06c442
Merge pull request #27 from EspressoSystems/jh/update
nomaxg Apr 1, 2024
4887ed5
Remove the espresso.env
ImJeremyHe Apr 2, 2024
58a1691
Merge pull request #28 from EspressoSystems/jh/update
ImJeremyHe Apr 2, 2024
7a95286
Fix the test node
ImJeremyHe Apr 17, 2024
49e7253
Add builder to docker-compose
tbro Apr 17, 2024
9aaaf29
start builder
ImJeremyHe Apr 18, 2024
318edb3
Fix builder image
ImJeremyHe Apr 18, 2024
da5f303
Merge pull request #29 from EspressoSystems/jh/update
ImJeremyHe Apr 18, 2024
c6495fc
Update builder image
ImJeremyHe Apr 18, 2024
663746d
Merge pull request #30 from EspressoSystems/jh/update
ImJeremyHe Apr 18, 2024
f82e25c
fix relay service
diegoximenes Apr 19, 2024
6172c4d
update nitro version
tsahee Apr 19, 2024
a2bad35
add init-force option that isn't interactive
tsahee Apr 19, 2024
b493760
fix ci script
tsahee Apr 19, 2024
e530842
Merge pull request #50 from OffchainLabs/ci_fix
tsahee Apr 19, 2024
c97a489
Merge branch 'release' into decouple-contracts
gvladika Apr 23, 2024
c258219
Separate checkout step
gvladika Apr 23, 2024
fb6eac3
Disable blobs
gvladika Apr 23, 2024
2d516bc
Temporary use custom nitro-contracts branch 'e2e-to-ci'
gvladika Apr 23, 2024
8f9881c
Use nitro-contract's develop temporary
gvladika Apr 23, 2024
9636355
Merge pull request #47 from OffchainLabs/decouple-contracts
gvladika Apr 24, 2024
138c4d1
enable poster's output feed
diegoximenes Apr 25, 2024
04ada28
Set default contracts versions in the test-node.bash
gvladika Apr 26, 2024
5efefbe
Use default version
gvladika Apr 26, 2024
1e3e4ab
Merge pull request #52 from OffchainLabs/default-versions
gvladika Apr 29, 2024
c88e2ed
update blockscout pin
tsahee May 7, 2024
6521bcd
Update the docker compose
ImJeremyHe May 7, 2024
16687ff
Merge pull request #31 from EspressoSystems/jh/fix
ImJeremyHe May 7, 2024
bbbb3a9
Use the latest version of espresso images
ImJeremyHe May 7, 2024
b42aae0
Bump default nitro-contracts version to include fix for a blocker
gvladika May 8, 2024
6c23d79
Merge pull request #54 from OffchainLabs/bump-nitro-contracts
gvladika May 8, 2024
11cff6f
set max_block_size to 10kb
tbro May 8, 2024
ea8c450
Revert "set max_block_size to 10kb"
tbro May 8, 2024
410c13c
Update docker compose file and env
ImJeremyHe May 10, 2024
a9b7302
Fix
ImJeremyHe May 10, 2024
c22fd4b
Start builder with sequencer nodes
sveitser May 10, 2024
9502d30
Merge pull request #32 from EspressoSystems/jh/fix
ImJeremyHe May 10, 2024
a4263b6
Don't use ports in dynamic ports range (#33)
sveitser May 10, 2024
31c4a2c
Merge pull request #53 from OffchainLabs/blockscout_pin
tsahee May 18, 2024
74bbb97
Revert "enable poster's output feed"
diegoximenes May 23, 2024
7b85cfe
Merge pull request #49 from OffchainLabs/fix/relay_service
tsahee May 23, 2024
c334820
Merge remote-tracking branch 'origin/release' into HEAD
tsahee May 23, 2024
b97efc4
Fix typo in --l3node flag in test-node.bash options
ariskk May 27, 2024
ed3cda6
Merge pull request #58 from ariskk/master
tsahee Jun 4, 2024
1f83198
use nitro 3.0 and arbos v30
tsahee Jun 10, 2024
014b44e
update readme for by-default stylus
tsahee Jun 10, 2024
dec82b6
docker-compose: use nitro entrypoint
tsahee Jun 10, 2024
73a4583
Merge remote-tracking branch 'origin/master' into use_v3.0
tsahee Jun 10, 2024
22ecaea
fix docker-compose
tsahee Jun 10, 2024
94fe5a7
Merge pull request #60 from OffchainLabs/use_v3.0
tsahee Jun 10, 2024
ff0e517
return to nitro 2.3.3
tsahee Jun 14, 2024
b8475ce
Merge pull request #62 from OffchainLabs/return-to-nitro2.3
tsahee Jun 14, 2024
962d6c0
Deploy CacheManager on L2
gvladika Jun 17, 2024
a294ad3
re-enable stylus on 3.0.1-rc.2
tsahee Jun 17, 2024
365e01e
fix wrongfully changed entry-points
tsahee Jun 17, 2024
d389fbc
nitro 3.0.1 released
tsahee Jun 17, 2024
7e490fd
Merge pull request #64 from OffchainLabs/use-3.0.1-rc2
tsahee Jun 17, 2024
9777c4d
Merge branch 'release' into cache-manager-deploy
gvladika Jun 18, 2024
caa897c
Deploy CacheManager to L3
gvladika Jun 18, 2024
703bf6a
Bump nitro-contracts to support CacheManager deployment
gvladika Jun 18, 2024
f223401
Format
gvladika Jun 18, 2024
89b4cbc
Removes deprecated version field from docker-compose
diegoximenes Jun 21, 2024
9d527ab
Runs CI with l3node and no-simple
diegoximenes Jun 21, 2024
b3d1960
Merge pull request #66 from OffchainLabs/ci_more_complex_topology
tsahee Jun 24, 2024
d4cc8e7
Merge branch 'release' into cache-manager-deploy
tsahee Jun 24, 2024
9dc0588
Merge pull request #65 from OffchainLabs/cache-manager-deploy
tsahee Jun 26, 2024
99ad328
update test node to use sequencer dev node
nomaxg Jul 1, 2024
6dd2ecd
use the correct index
nomaxg Jul 1, 2024
34840a8
use the correct index
nomaxg Jul 1, 2024
c643ae9
Update the espresso url
ImJeremyHe Jul 2, 2024
b36cb80
Remove hotshot contract address
ImJeremyHe Jul 2, 2024
b178ffc
Merge branch 'release' of github.com:OffchainLabs/nitro-testnode into…
ImJeremyHe Jul 8, 2024
6706180
Update the light client contract address
ImJeremyHe Jul 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ESPRESSO_SEQUENCER_L1_PROVIDER=http://host.docker.internal:8545
ESPRESSO_SEQUENCER_ETH_MNEMONIC=indoor dish desk flag debris potato excuse depart ticket judge file exit
ESPRESSO_DEPLOYER_ACCOUNT_INDEX=6
ESPRESSO_SEQUENCER_API_PORT=41000
ESPRESSO_BUILDER_PORT=41003
ESPRESSO_SEQUENCER_POSTGRES_HOST=sequencer-db
ESPRESSO_SEQUENCER_POSTGRES_PORT=5432
ESPRESSO_SEQUENCER_POSTGRES_USER=root
ESPRESSO_SEQUENCER_POSTGRES_PASSWORD=password
ESPRESSO_SEQUENCER_POSTGRES_DATABASE=sequencer
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
run-name: CI triggered from @${{ github.actor }} of ${{ github.head_ref }}

on:
workflow_dispatch:
merge_group:
pull_request:
push:
branches:
- master
- develop


jobs:
build_and_run:
runs-on: ubuntu-8

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host

- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile') }}
restore-keys: ${{ runner.os }}-buildx-

- name: Startup Nitro testnode
run: ${{ github.workspace }}/.github/workflows/testnode.bash
54 changes: 54 additions & 0 deletions .github/workflows/testnode.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/bash
# The script starts up the test node and waits until the timeout (10min) or
# until send-l2 succeeds.

# Start the test node and get PID, to terminate it once send-l2 is done.
cd ${GITHUB_WORKSPACE}

# TODO once develop is merged into nitro-contract's master, remove the NITRO_CONTRACTS_BRANCH env var
./test-node.bash --init-force --l3node --no-simple --detach

START=$(date +%s)
L2_TRANSACTION_SUCCEEDED=false
L3_TRANSACTION_SUCCEEDED=false
SUCCEEDED=false

while true; do
if [ "$L2_TRANSACTION_SUCCEEDED" = false ]; then
if ${GITHUB_WORKSPACE}/test-node.bash script send-l2 --ethamount 100 --to user_l2user --wait; then
echo "Sending l2 transaction succeeded"
L2_TRANSACTION_SUCCEEDED=true
fi
fi

if [ "$L3_TRANSACTION_SUCCEEDED" = false ]; then
if ${GITHUB_WORKSPACE}/test-node.bash script send-l3 --ethamount 100 --to user_l3user --wait; then
echo "Sending l3 transaction succeeded"
L3_TRANSACTION_SUCCEEDED=true
fi
fi

if [ "$L2_TRANSACTION_SUCCEEDED" = true ] && [ "$L3_TRANSACTION_SUCCEEDED" = true ]; then
SUCCEEDED=true
break
fi

# Check if the timeout (10 min) has been reached.
NOW=$(date +%s)
DIFF=$((NOW - START))
if [ "$DIFF" -ge 600 ]; then
echo "Timed out"
break
fi

sleep 10
done

docker-compose stop

if [ "$SUCCEEDED" = false ]; then
docker-compose logs
exit 1
fi

exit 0
54 changes: 20 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Nitro Testnode

Nitro-testnode brings up a full environment for local nitro testing (with or without Stylus support) including a dev-mode geth L1, and multiple instances with different roles.
Nitro-testnode brings up a full environment for local nitro testing (with Stylus support) including a dev-mode geth L1, and multiple instances with different roles.

### Requirements

Expand All @@ -11,8 +11,6 @@ All must be installed in PATH.

## Using latest nitro release (recommended)

### Without Stylus support

Check out the release branch of the repository.

> Notice: release branch may be force-pushed at any time.
Expand All @@ -29,30 +27,12 @@ Initialize the node
```
To see more options, use `--help`.

### With Stylus support

Check out the stylus branch of the repository.
> Notice: stylus branch may be force-pushed at any time.

```bash
git clone -b stylus --recurse-submodules https://github.com/OffchainLabs/nitro-testnode.git
cd nitro-testnode
```

Initialize the node

```bash
./test-node.bash --init
```
To see more options, use `--help`.

## Using current nitro code (local compilation)

Check out the nitro or stylus repository. Use the test-node submodule of nitro repository.
Check out the nitro repository. Use the test-node submodule of nitro repository.

> Notice: testnode may not always be up-to-date with config options of current nitro node, and is not considered stable when operated in that way.

### Without Stylus support
```bash
git clone --recurse-submodules https://github.com/OffchainLabs/nitro.git
cd nitro/nitro-testnode
Expand All @@ -64,18 +44,6 @@ Initialize the node in dev-mode (this will build the docker images from source)
```
To see more options, use `--help`.

### With Stylus support
```bash
git clone --recurse-submodules https://github.com/OffchainLabs/stylus.git
cd stylus/nitro-testnode
```

Initialize the node in dev-mode (this will build the docker images from source)
```bash
./test-node.bash --init --dev
```
To see more options, use `--help`.

## Further information

### Working with docker containers
Expand All @@ -100,6 +68,24 @@ For help and further scripts, see:
./test-node.bash script --help
```

## Named accounts

```bash
./test-node.bash script print-address --account sequencer
```
```
sequencer: 0xe2148eE53c0755215Df69b2616E552154EdC584f
validator: 0x6A568afe0f82d34759347bb36F14A6bB171d2CBe
l2owner: 0x5E1497dD1f08C87b2d8FE23e9AAB6c1De833D927
l3owner: 0x863c904166E801527125D8672442D736194A3362
l3sequencer: 0x3E6134aAD4C4d422FF2A4391Dc315c4DDf98D1a5
user_l1user: 0x058E6C774025ade66153C65672219191c72c7095
user_token_bridge_deployer: 0x3EaCb30f025630857aDffac9B2366F953eFE4F98
user_fee_token_deployer: 0x2AC5278D230f88B481bBE4A94751d7188ef48Ca2
```

While not a named account, 0x3f1eae7d46d88f08fc2f8ed27fcb2ab183eb2d0e is funded on all test chains.

## Contact

Discord - [Arbitrum](https://discord.com/invite/5KE54JwyTs)
Expand Down
Loading
Loading