Skip to content

Commit

Permalink
Add junk utils to aid with testing
Browse files Browse the repository at this point in the history
  • Loading branch information
MOZGIII committed Dec 17, 2024
1 parent 2ef7c9a commit 33eeb64
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions junk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
wasm
20 changes: 20 additions & 0 deletions junk/run-chain
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
set -euo pipefail

cd -- "$(dirname -- "${BASH_SOURCE[0]}")"

ROOT_DIR=".."

WASM="wasm"

rm -rf "$WASM"
mkdir "$WASM"

cp "$ROOT_DIR/target/debug/wbuild/humanode-runtime/humanode_runtime.wasm" "$WASM"

export RUST_LOG=info,evm=debug
"$ROOT_DIR/target/debug/humanode-peer" \
--chain genesis/patched-chain-exported-10507907.json \
--alice \
--tmp \
--wasm-runtime-overrides "$WASM"
10 changes: 10 additions & 0 deletions junk/send-tx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -euo pipefail

cd -- "$(dirname -- "${BASH_SOURCE[0]}")"

export ETH_RPC_URL=http://localhost:9944

TX=$(cat "tx-failed.txt")

cast publish "$TX"
1 change: 1 addition & 0 deletions junk/tx-failed.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x02f901938214728202a980860926dbbcf10083b71b0094f803e8ca755ae4770b5e6072a1e3cb97631d76ee80b9012444fe12d80000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000b577261707065642042544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045742544300000000000000000000000000000000000000000000000000000000c001a0e51da282774759a799867ba2bdf036a013f14e70736cc3f002f455bc17fc5674a0249020bd9e9a10638f45bb58c3eaff5ea216d5bb36bdf58e65f7cf59a3263023
1 change: 1 addition & 0 deletions junk/tx-success.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0x02f901938214728201c3808612309ce54000834c4b4094f803e8ca755ae4770b5e6072a1e3cb97631d76ee80b9012444fe12d8000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000d577261707065642045746865720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045745544800000000000000000000000000000000000000000000000000000000c001a07c1b43dfdd4d4303e67a8f52f9ba81a82716462d92e77157f4fad0a9ced80bbda05d0d5c06e726ff152540c92940076c9931c5b6a028ae31b9b63673e55c7aa232

0 comments on commit 33eeb64

Please sign in to comment.