-
Notifications
You must be signed in to change notification settings - Fork 6
/
happytrail.sh
executable file
·56 lines (42 loc) · 3.71 KB
/
happytrail.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
# pooltoy tx faucet mintfor $(pooltoy keys show bob -a) 🚀 --from alice -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# pooltoy tx bank send bob $(pooltoy keys show alice -a) 1🚀 --from bob -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx
# pooltoy tx bank send you $(pooltoy keys show me -a) 1token --from you -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx
# pooltoy tx bank send me $(pooltoy keys show who -a) 1token --from me -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx
echo "make alice admin by alice"
pooltoy tx pooltoy create-user $(pooltoy keys show alice -a) true billy [email protected] --from alice -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
echo "make bob admin by alice"
pooltoy tx pooltoy create-user $(pooltoy keys show bob -a) true sam [email protected] --from alice -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# echo "make carol non-admin by bob"
# pooltoy tx pooltoy create-user $(pooltoy keys show carol -a) false marko [email protected] --from bob -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# # this one should fail
# echo "should fail"
# pooltoy tx pooltoy create-user $(pooltoy keys show doug -a) false dieter [email protected] --from carol -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
echo "how long til alice can mint?"
pooltoy q faucet when-brrr $(pooltoy keys show alice -a)
echo "alice mints 🚀 for bob"
pooltoy tx faucet mintfor $(pooltoy keys show bob -a) 🚀 --from alice -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
echo "how long til alice can mint?"
pooltoy q faucet when-brrr $(pooltoy keys show alice -a)
echo "can bob send to alice?"
pooltoy tx bank send bob $(pooltoy keys show alice -a) 1🚀 --from bob -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# echo "should fail"
# pooltoy tx faucet mintfor $(pooltoy keys show carol -a) 🚀 --from alice -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# echo "bob mints 🌝 for carol"
# pooltoy tx faucet mintfor $(pooltoy keys show carol -a) 🌝 --from bob -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# echo "carol mints 💸 for alice"
# pooltoy tx faucet mintfor $(pooltoy keys show alice -a) 💸 --from carol -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# # this one should fail
# echo "should fail"``
# pooltoy tx faucet mintfor $(pooltoy keys show alice -a) 💸 --from carol -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# pooltoy q account $(pooltoy keys show alice -a)
# pooltoy q account $(pooltoy keys show bob -a)
# pooltoy q account $(pooltoy keys show carol -a)
# pooltoy tx bank send alice $(pooltoy keys show bob -a) 1💸 --from alice -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# pooltoy tx bank send bob $(pooltoy keys show carol -a) 1🚀 --from bob -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# pooltoy tx bank send carol $(pooltoy keys show alice -a) 1🌝 --from carol -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"
# pooltoy q account $(pooltoy keys show alice -a)
# pooltoy q account $(pooltoy keys show bob -a)
# pooltoy q account $(pooltoy keys show carol -a)
# echo "should fail"
# pooltoy tx bank send alice $(pooltoy keys show doug -a) 1🌝 --from alice -y -o json | jq ".txhash" | xargs $(sleep 6) pooltoy q tx -o json | jq ".raw_log"