-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add cancun jerigon test network
- Loading branch information
Showing
1 changed file
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,8 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
repository: 0xPolygonZero/jerigon-test-network | ||
path: test-jerigon-network | ||
ref: 'feat/kurtosis-network' | ||
path: jerigon-test-network | ||
|
||
- name: Install nightly toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
|
@@ -49,37 +50,46 @@ jobs: | |
with: | ||
cache-on-failure: true | ||
|
||
- name: Run jerigon test network with docker compose | ||
# - name: Run kurtosis cancun test network | ||
# uses: kurtosis-tech/kurtosis-github-action@v1 | ||
# with: | ||
# path: 'github.com/ethpandaops/[email protected]' # Can also be the path to a Kurtosis package in the repo, e.g. './path/to/kurtosis-package' | ||
# args-file: './jerigon-test-network/network_params.yml' | ||
|
||
|
||
- name: Install kurtosis | ||
run: | | ||
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list | ||
sudo apt update | ||
sudo apt install kurtosis-cli | ||
- name: Run cancun test network | ||
run: | | ||
cd test-jerigon-network | ||
docker-compose -f docker-compose.yml up -d | ||
docker logs -f smart-contracts | ||
echo "Jerigon network is up and running, ready for testing" | ||
kurtosis run --enclave cancun-testnet github.com/ethpandaops/[email protected] --args-file network_params.yml | ||
export ETH_RPC_URL="$(kurtosis port print cancun-testnet el-2-erigon-lighthouse ws-rpc)" | ||
- name: Rpc test with curl | ||
run: | | ||
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id":83}' localhost:8545 | ||
env: | ||
RUST_LOG: info | ||
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id":83}' $ETH_RPC_URL | ||
- name: Run prove blocks in test_only mode | ||
run: | | ||
cd zero_bin/tools | ||
OUTPUT_TO_TERMINAL=true ./prove_rpc.sh 0x2 0x3 http://localhost:8546 jerigon true 0 0 test_only | ||
echo "Proving blocks in test_only mode finished" | ||
# - name: Run prove blocks in test_only mode | ||
# run: | | ||
# cd zero_bin/tools | ||
# OUTPUT_TO_TERMINAL=true ./prove_rpc.sh 0x2 0x3 http://localhost:8546 jerigon true 0 0 test_only | ||
# echo "Proving blocks in test_only mode finished" | ||
|
||
|
||
- name: Run prove blocks in real mode | ||
run: | | ||
cd zero_bin/tools | ||
rm -rf proofs/* circuits/* ./proofs.json test.out verify.out leader.out | ||
OUTPUT_TO_TERMINAL=true RUN_VERIFICATION=true ./prove_rpc.sh 0x4 0x5 http://localhost:8546 jerigon true | ||
echo "Proving blocks in real mode finished" | ||
# - name: Run prove blocks in real mode | ||
# run: | | ||
# cd zero_bin/tools | ||
# rm -rf proofs/* circuits/* ./proofs.json test.out verify.out leader.out | ||
# OUTPUT_TO_TERMINAL=true RUN_VERIFICATION=true ./prove_rpc.sh 0x4 0x5 http://localhost:8546 jerigon true | ||
# echo "Proving blocks in real mode finished" | ||
|
||
- name: Shut down network | ||
run: | | ||
cd test-jerigon-network | ||
docker-compose -f docker-compose.yml down -v | ||
# - name: Shut down network | ||
# run: | | ||
# cd test-jerigon-network | ||
# docker-compose -f docker-compose.yml down -v | ||
|
||
|
||
|