Thanks to visit codestin.com
Credit goes to github.com

Skip to content

usmansaleem/kurtosis

Repository files navigation

Ethereum devnet using Kurtosis

https://github.com/ethpandaops/ethereum-package

Prereq

  • Kurtosis is installed. https://docs.kurtosis.com/install
  • Foundary is installed. https://getfoundry.sh/
  • git submodule update --init --recursive has been executed on the checked out repo.
  • Besu is built locally with ./gradlew distDocker
  • Use docker images to determine Besu docker tag. This can be passed when starting kurtosis.

Start devnet using Kurtosis

./1_kurtosis_start.sh 25.8-develop-c64327f
  • Wait for genesis to be created. Takes about a minute.
  • The Genesis time can be checked at dora at http://127.0.0.1:36000. The dora address is reported when kurtosis command is finished.

Test

The following script will deploy various contracts and run testing scenarios. See output/scenarios for the results.

./2_run_call_tracer_tests.sh

Tear down

./3_kurtosis_stop.sh

Useful kurtosis commands

# Drop into Besu container shell and observe custom logs
kurtosis service shell my-testnet el-2-besu-teku
cat /tmp/calltracer.log

# Report all running services
kurtosis enclave inspect my-testnet

# Read logs of a specific service
kurtosis service logs my-testnet el-2-besu-teku  

# Tear down
kurtosis enclave rm -f my-testnet

# Or, Complete teardown of all services and cleanup the enclave
kurtosis clean -a

# Stop the kurtosis engine
kurtosis engine stop

About

EthPandaOps Kurtosis scripts to run Ethereum devnet for local testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published