-
Notifications
You must be signed in to change notification settings - Fork 13
/
boTXer.sh
50 lines (42 loc) · 2.25 KB
/
boTXer.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
#!/bin/bash
################################################################################
#
# Scrip Created by http://CryptoLions.io
# For testing Transaction in EOS Junlge test network
# https://github.com/CryptoLions/scripts/
#
# Send transaction from random Sender to random Recever with Random amount and Random Memo
#
# Edit Info about your Node and Wallet Port
# Change SENDERS list with your senders accounts
# (please import senders Keys into your wallet)
# Edit RECEIVERS list with receviers accounts
# Edit STRINGDS - ranndom memo messages
# TX_INTERVAL - interval between transaction in seconds
#
###############################################################################
#------------Config------------------
EOSIOBINDIR=/home/eos-dawn-v3.0.0/eos/build/programs
WALLETHOST="127.0.0.1"
NODEPORT="8888"
WALLETPORT="8905"
SENDERS=("volcano" "rain" "magic" "surprise" "lottery")
RECEIVERS=("lion" "tiger" "jaguar" "bat" "mowgli" "dragonfly" "elephant2" "mosquito" "wombat" "fox" "gorilla" "honeybadger" "sloth" "langurs" "tokki" "whale" "panther" "tortoise" "galapago" "mpenjati" "cougars" "ladybird" "giraffe" "rhino" "cheetah" "termite" "snake" "tapir" "boar" "spider" "koala" "beaver" "unicorn" "scorpion" "hummingbird" "kangaroo" "dragon" "macaw" "parrot" "pug")
STRINGS=("☘Jungle Bot" "☉ Be Free" "☈ Test Tx" "★ rnd txt" "☄" "☔ Rainforest" "♕Treasure" "☠Bot =)" "☢ bot tx" "☂ your umbrella?" "☀" "☕ cofee" "⛽ refuel")
TX_INTERVAL=3
CLEOS="$EOSIOBINDIR/cleos/cleos -p $NODEPORT --wallet-host $WALLETHOST --wallet-port $WALLETPORT"
CONTRACT="token"
CURRENCY="JUNGLE"
#-------------------------------------------------
while [ 1 ]
do
rnd_receiver=${RECEIVERS[$RANDOM % ${#RECEIVERS[@]} ]}
rnd_sender=${SENDERS[$RANDOM % ${#SENDERS[@]} ]}
rnd_amount_tmp=$(printf "%05d" $(( ((RANDOM<<15)|RANDOM) % 99999 + 1 )))
rnd_amount="${rnd_amount_tmp%????}.${rnd_amount_tmp: -4}"
rnd_memo=${STRINGS[$RANDOM % ${#STRINGS[@]} ]}
echo $rnd_sender" = >"$rnd_receiver" : "$rnd_amount" - "$rnd_memo" "
DATA='["'$rnd_sender'", "'$rnd_receiver'", "'$rnd_amount' '$CURRENCY'", "'$rnd_memo'"]'
$CLEOS push action $CONTRACT transfer "$(echo $DATA)" -p $rnd_sender
sleep $TX_INTERVAL
done