Skip to content

Commit 86be23c

Browse files
committed
Add junk utils to aid with testing
1 parent c67ea4d commit 86be23c

5 files changed

Lines changed: 32 additions & 0 deletions

File tree

junk/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
wasm

junk/run-chain

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
5+
6+
ROOT_DIR=".."
7+
8+
WASM="wasm"
9+
10+
rm -rf "$WASM"
11+
mkdir "$WASM"
12+
13+
cp "$ROOT_DIR/target/debug/wbuild/humanode-runtime/humanode_runtime.wasm" "$WASM"
14+
15+
"$ROOT_DIR/target/debug/humanode-peer" \
16+
--chain genesis/patched-chain-exported-10507907.json \
17+
--alice \
18+
--tmp \
19+
--wasm-runtime-overrides "$WASM"

junk/send-tx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
set -euo pipefail
3+
4+
cd -- "$(dirname -- "${BASH_SOURCE[0]}")"
5+
6+
export ETH_RPC_URL=http://localhost:9944
7+
8+
TX=$(cat "tx-failed.txt")
9+
10+
cast publish "$TX"

junk/tx-failed.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0x02f901938214728202a980860926dbbcf10083b71b0094f803e8ca755ae4770b5e6072a1e3cb97631d76ee80b9012444fe12d80000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000b577261707065642042544300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045742544300000000000000000000000000000000000000000000000000000000c001a0e51da282774759a799867ba2bdf036a013f14e70736cc3f002f455bc17fc5674a0249020bd9e9a10638f45bb58c3eaff5ea216d5bb36bdf58e65f7cf59a3263023

junk/tx-success.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0x02f901938214728201c3808612309ce54000834c4b4094f803e8ca755ae4770b5e6072a1e3cb97631d76ee80b9012444fe12d8000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000d577261707065642045746865720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000045745544800000000000000000000000000000000000000000000000000000000c001a07c1b43dfdd4d4303e67a8f52f9ba81a82716462d92e77157f4fad0a9ced80bbda05d0d5c06e726ff152540c92940076c9931c5b6a028ae31b9b63673e55c7aa232

0 commit comments

Comments
 (0)