manual added scripts data
This commit is contained in:
parent
f0bcef7880
commit
7dc9ed014f
4
books/manual/Makefile
Normal file
4
books/manual/Makefile
Normal file
@ -0,0 +1,4 @@
|
||||
build:
|
||||
./scripts/generate_wallets.sh
|
||||
./scripts/calculate_marketcap.sh
|
||||
./scripts/calculate_cloud_pricing.sh
|
29
books/manual/scripts/calculate_cloud_pricing.sh
Executable file
29
books/manual/scripts/calculate_cloud_pricing.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd ../../collections/manual/values
|
||||
|
||||
value=$(cat tft_value.md)
|
||||
|
||||
CU=$(cat CU_MUSD_HOUR.md)
|
||||
CUTFT=$(echo "$CU / $value" | bc -l)
|
||||
printf "%.2f" $CUTFT > CU_MTFT_HOUR.md
|
||||
|
||||
SU=$(cat SU_MUSD_HOUR.md)
|
||||
SUTFT=$(echo "$SU / $value" | bc -l)
|
||||
printf "%.2f" $SUTFT > SU_MTFT_HOUR.md
|
||||
|
||||
NU=$(cat NU_MUSD_HOUR.md)
|
||||
NUTFT=$(echo "$NU / $value" | bc -l)
|
||||
printf "%.2f" $NUTFT > NU_MTFT_HOUR.md
|
||||
|
||||
IP=$(cat IP_MUSD_HOUR.md)
|
||||
IPTFT=$(echo "$IP / $value" | bc -l)
|
||||
printf "%.2f" $IPTFT > IP_MTFT_HOUR.md
|
||||
|
||||
NAME=$(cat NAME_MUSD_HOUR.md)
|
||||
NAME=$(echo "$NAME / $value" | bc -l)
|
||||
printf "%.2f" $NAME > NAME_MTFT_HOUR.md
|
||||
|
||||
DNAME=$(cat DNAME_MUSD_HOUR.md)
|
||||
DNAME=$(echo "$DNAME / $value" | bc -l)
|
||||
printf "%.2f" $DNAME > DNAME_MTFT_HOUR.md
|
18
books/manual/scripts/calculate_marketcap.sh
Executable file
18
books/manual/scripts/calculate_marketcap.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd ../../collections/manual/values
|
||||
|
||||
coinId="threefold-token"
|
||||
|
||||
url="https://api.coingecko.com/api/v3/simple/price?ids=${coinId}&vs_currencies=usd";
|
||||
|
||||
curl -sL ${url} \
|
||||
-H 'Accept: application/json' | jq '."threefold-token".usd' | xargs printf "%.3f" > tft_value.md
|
||||
|
||||
supply=$(cat tft_supply.md)
|
||||
|
||||
value=$(cat tft_value.md)
|
||||
|
||||
TFT_MARKETCAP=$(echo "$supply * $value" | bc -l)
|
||||
|
||||
printf "%'.0f" $TFT_MARKETCAP > tft_marketcap.md
|
25
books/manual/scripts/generate_wallets.sh
Executable file
25
books/manual/scripts/generate_wallets.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p ../../collections/manual/knowledge_base/about/token_overview/special_wallets/wallet_data
|
||||
cd ../../collections/manual/knowledge_base/about/token_overview/special_wallets/wallet_data
|
||||
|
||||
wallets=(
|
||||
GA7OPN4A3JNHLPHPEWM4PJDOYYDYNZOM7ES6YL3O7NC3PRY3V3UX6ANM
|
||||
GDSKFYNMZWTB3V5AN26CEAQ27643Q3KB4X6MY4UTO2LIIDFND4SPQZYU
|
||||
GBQHN7RL4LSRPR2TT74ID2UJPZ2AXCHQY2WKGCTDLJM3NXVJ7GQHUCOD
|
||||
GBTPAXXP6534UPC4MLNGFGJWCD6DNSRVIPPOZWXAQAWI4FKTLOJY2A2S
|
||||
GB2C5HCZYWNGVM6JGXDWQBJTMUY4S2HPPTCAH63HFAQVL2ALXDW7SSJ7
|
||||
GDLVIB44LVONM5K67LUPSFZMSX7G2RLYVBM5MMHUJ4NAQJU7CH4HBJBO
|
||||
GDKXTUYNW4BJKDM2L7B5XUYFUISV52KUU4G7VPNLF4ZSIKBURM622YPZ
|
||||
GDIJY6K2BBRIRX423ZFUYKKFDN66XP2KMSBZFQSE2PSNDZ6EDVQTRLSU
|
||||
GCWHWDRXYPXQAOYMQKB66SZPLM6UANKGMSL4SP7LSOIA6OTTOYQ6HBIH
|
||||
GBV734I2SV4YDDPVJMYXU3IZ2AIU5GEAJRAD4E4BQG7CA2N63NXSPMD6
|
||||
GAI4C2BGOA3YHVQZZW7OW4FHOGGYWTUBEVNHB6MW4ZAFG7ZAA7D5IPC3
|
||||
GCEJ7DMULFTT25UH4FAAGOZ6KER4WXAYQGJUSIITQD527DGTKSXKBQGR
|
||||
GAQXBLFG4BZGIVY6DBJVWE5EAP3UNHMIA2PYCUVLY2JUSPVWPUF36BW4
|
||||
GAUGOSYLCX7JZTQYF2K7RIMHFWKSA3WSI2OQ4IRKXMDMVE6ABJIJMFQR
|
||||
)
|
||||
|
||||
for wallet in "${wallets[@]}"; do
|
||||
curl -sL "https://horizon.stellar.org/accounts/${wallet}" -H 'Accept: application/json' | jq --raw-output '.balances[] | select(.asset_code == "TFT") | .balance' | xargs printf "%.2f" > ${wallet}.md
|
||||
done
|
@ -0,0 +1 @@
|
||||
3340735.94
|
@ -0,0 +1 @@
|
||||
258.80
|
@ -0,0 +1 @@
|
||||
5000000.00
|
@ -0,0 +1 @@
|
||||
10468506.00
|
@ -0,0 +1 @@
|
||||
12447988.00
|
@ -0,0 +1 @@
|
||||
2908686.63
|
@ -0,0 +1 @@
|
||||
1832242.73
|
@ -0,0 +1 @@
|
||||
16999920.00
|
@ -0,0 +1 @@
|
||||
10000000.00
|
@ -0,0 +1 @@
|
||||
328241.81
|
@ -0,0 +1 @@
|
||||
10110962.98
|
@ -0,0 +1 @@
|
||||
12996500.00
|
@ -0,0 +1 @@
|
||||
14784445.77
|
@ -0,0 +1 @@
|
||||
0.00
|
@ -0,0 +1 @@
|
||||
3340735.94
|
@ -0,0 +1 @@
|
||||
258.80
|
@ -0,0 +1 @@
|
||||
5000000.00
|
@ -0,0 +1 @@
|
||||
10468506.00
|
@ -0,0 +1 @@
|
||||
12447988.00
|
@ -0,0 +1 @@
|
||||
2908686.63
|
@ -0,0 +1 @@
|
||||
1832242.73
|
@ -0,0 +1 @@
|
||||
16999920.00
|
@ -0,0 +1 @@
|
||||
10000000.00
|
@ -0,0 +1 @@
|
||||
328241.81
|
@ -0,0 +1 @@
|
||||
10110962.98
|
@ -0,0 +1 @@
|
||||
12996500.00
|
@ -0,0 +1 @@
|
||||
14784445.77
|
@ -0,0 +1 @@
|
||||
0.00
|
1
collections/manual/values/CU_MTFT_HOUR.md
Normal file
1
collections/manual/values/CU_MTFT_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
1131.85
|
1
collections/manual/values/CU_MUSD_HOUR.md
Normal file
1
collections/manual/values/CU_MUSD_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
30.56
|
1
collections/manual/values/CU_TFT_HOUR.md
Normal file
1
collections/manual/values/CU_TFT_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
15.28
|
1
collections/manual/values/DNAME_MTFT_HOUR.md
Normal file
1
collections/manual/values/DNAME_MTFT_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
102.96
|
1
collections/manual/values/DNAME_MUSD_HOUR.md
Normal file
1
collections/manual/values/DNAME_MUSD_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
2.78
|
1
collections/manual/values/IP_MTFT_HOUR.md
Normal file
1
collections/manual/values/IP_MTFT_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
257.04
|
1
collections/manual/values/IP_MUSD_HOUR.md
Normal file
1
collections/manual/values/IP_MUSD_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
6.94
|
1
collections/manual/values/NAME_MTFT_HOUR.md
Normal file
1
collections/manual/values/NAME_MTFT_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
51.48
|
1
collections/manual/values/NAME_MUSD_HOUR.md
Normal file
1
collections/manual/values/NAME_MUSD_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
1.39
|
1
collections/manual/values/NU_MTFT_HOUR.md
Normal file
1
collections/manual/values/NU_MTFT_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
1851.85
|
1
collections/manual/values/NU_MUSD_HOUR.md
Normal file
1
collections/manual/values/NU_MUSD_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
50.00
|
1
collections/manual/values/SU_MTFT_HOUR.md
Normal file
1
collections/manual/values/SU_MTFT_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
720.00
|
1
collections/manual/values/SU_MUSD_HOUR.md
Normal file
1
collections/manual/values/SU_MUSD_HOUR.md
Normal file
@ -0,0 +1 @@
|
||||
19.44
|
1
collections/manual/values/tft_marketcap.md
Normal file
1
collections/manual/values/tft_marketcap.md
Normal file
@ -0,0 +1 @@
|
||||
21060000
|
1
collections/manual/values/tft_supply.md
Normal file
1
collections/manual/values/tft_supply.md
Normal file
@ -0,0 +1 @@
|
||||
780000000
|
1
collections/manual/values/tft_value.md
Normal file
1
collections/manual/values/tft_value.md
Normal file
@ -0,0 +1 @@
|
||||
0.027
|
Loading…
Reference in New Issue
Block a user