-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.sh
executable file
·17 lines (16 loc) · 994 Bytes
/
debug.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
PHP=`which php`
NODE=`which node`
ALGODEX_SDK_PATH=/home/atrefonas/algodex-js/packages/algodex-sdk
$NODE load_stateful_files.js $ALGODEX_SDK_PATH
cp /tmp/dex.teal ~/dex.teal
cp /tmp/asa_dex.teal ~/asa_dex.teal
cat txns.txt | base64 -d > group.msgp
./goal clerk inspect group.msgp | grep 'snd\|rcv' > inspect.txt.tmp
$PHP export_addrs.php "inspect.txt.tmp"
#./tealdbg debug ~/stateless.teal --remote-debugging-port 1234 --txn ./group.msgp --painless --balance br.msgp -g 1
#./tealdbg debug ~/asa_stateless.teal --remote-debugging-port 1234 --txn ./group.msgp --painless --balance br.msgp -g 1
#./tealdbg debug ~/asa_dex.teal --remote-debugging-port 1234 --txn ./group.msgp --painless --balance br.msgp -g 0
#./tealdbg debug ~/dex.teal --remote-debugging-port 1234 --txn ./group.msgp --painless --balance br.msgp -g 0
./goal clerk inspect group.msgp
./tealdbg debug ~/tealplayground/a.teal --remote-debugging-port 1234 --txn ./group.msgp --painless --balance br.msgp -g 0