-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.sh
executable file
·54 lines (46 loc) · 1014 Bytes
/
script.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
#!/bin/bash
for file in ./functions/*; do
if [ -f "$file" ] && [ "${file##*.}" == "sh" ]; then
source "$file"
fi
done
check_cardano_env
NET="--testnet-magic 1"
# List actions
while true; do
echo "Choose the action you want:"
echo "1. Create new wallet"
echo "2. Mint new token"
echo "3. Mint more existing tokens"
echo "4. Send token to another wallet"
echo "5. Burn token"
echo "Press CTRL+C to exit"
read -p "Enter the number corresponding to the action: " action
if [[ "$action" =~ ^[1-5]$ ]]; then
break
else
echo "Please enter a number between 1 and 5."
fi
done
case $action in
1)
echo "You have chosen: Create new wallet"
create_wallet
;;
2)
echo "You have chosen: Mint new token"
mint_token
;;
3)
echo "You have chosen: Mint more existing tokens"
mint_more_token
;;
4)
echo "You have chosen: Send token to another wallet"
send_token
;;
5)
echo "You have chosen: Burn token"
burn_token
;;
esac