kbase book
This commit is contained in:
4
books/knowledge_base/Makefile
Normal file
4
books/knowledge_base/Makefile
Normal file
@@ -0,0 +1,4 @@
|
||||
build:
|
||||
./scripts/generate_wallets.sh
|
||||
./scripts/calculate_marketcap.sh
|
||||
./scripts/calculate_cloud_pricing.sh
|
112
books/knowledge_base/SUMMARY.md
Normal file
112
books/knowledge_base/SUMMARY.md
Normal file
@@ -0,0 +1,112 @@
|
||||
- [Table of Contents](knowledge_base/knowledge_base_toc.md)
|
||||
- [About](about/about.md)
|
||||
- [ThreeFold History](about/threefold_history.md)
|
||||
- [Token History](about/token_history.md)
|
||||
- [Genesis Pool](about/genesis_pool.md)
|
||||
- [Genesis Pool Dubai](about/genesis_pool_dubai.md)
|
||||
- [Genesis Pool Ghent](about/genesis_pool_ghent.md)
|
||||
- [Genesis Pool Details](about/genesis_block_pool_details.md)
|
||||
- [ThreeFold Tech](about/threefold_tech.md)
|
||||
- [Organisation Structure](about/orgstructure.md)
|
||||
- [Governance](about/governance.md)
|
||||
- [ThreeFold Companies](about/threefold_companies.md)
|
||||
- [ThreeFold Dubai](about/threefold_dubai.md)
|
||||
- [ThreeFold VZW](about/threefold_vzw.md)
|
||||
- [ThreeFold AG](about/threefold_ag.md)
|
||||
- [Mazraa](about/mazraa.md)
|
||||
- [BetterToken](about/bettertoken.md)
|
||||
- [DAO](about/dao/dao.md)
|
||||
- [ThreeFold DAO](about/dao/tfdao.md)
|
||||
- [TFChain](about/tfchain.md)
|
||||
- [ThreeFold Roadmap](about/roadmap/roadmap_readme.md)
|
||||
- [Release Notes](about/roadmap/releasenotes/releasenotes_readme.md)
|
||||
- [TFGrid v3.10.0](about/roadmap/releasenotes/tfgrid_release_3_10_0.md)
|
||||
- [TFGrid v3.9.0](about/roadmap/releasenotes/tfgrid_release_3_9_0.md)
|
||||
- [TFGrid v3.8.0](about/roadmap/releasenotes/tfgrid_release_3_8_0.md)
|
||||
- [TFGrid v3.7.0](about/roadmap/releasenotes/tfgrid_release_3_7_0.md)
|
||||
- [TFGrid v3.6.1](about/roadmap/releasenotes/tfgrid_release_3_6_1.md)
|
||||
- [TFGrid v3.6.0](about/roadmap/releasenotes/tfgrid_release_3_6_0.md)
|
||||
- [TFGrid v3.0.0 Alpha-5](about/roadmap/releasenotes/tfgrid_release_3_0_a5.md)
|
||||
- [TFGrid v3.0.0 Alpha-4](about/roadmap/releasenotes/tfgrid_release_3_0_a4.md)
|
||||
- [TFGrid v3.0.0 Alpha-2](about/roadmap/releasenotes/tfgrid_release_3_0_a2.md)
|
||||
- [TFGrid v3.0.0](about/roadmap/releasenotes/tfgrid_release_3_0.md)
|
||||
- [ThreeFold Token](about/token_overview/token_overview.md)
|
||||
- [Technology](tech/technology_toc.md)
|
||||
- [Introduction](tech/technology.md)
|
||||
- [The Internet Today](tech/internet_today.md)
|
||||
- [History of Computers](tech/history/c64.md)
|
||||
- [Too Many Layers](tech/history/layers.md)
|
||||
- [The Internet Re-invented](tech/how_does_it_work.md)
|
||||
- [World Records](tech/world_records.md)
|
||||
- [Key Innovations](tech/key_innovations_overview.md)
|
||||
- [Mycelium Network](tech/mycelium_innovation.md)
|
||||
- [Zero-OS](tech/zos_innovation.md)
|
||||
- [Quantum Safe Storage](tech/zstor_innovation.md)
|
||||
- [Quantum Safe Filesystem](tech/qsfs_innovation.md)
|
||||
- [FList: Better OS Images](tech/flist_innovation.md)
|
||||
- [FungiStor](tech/fungistor_innovation.md)
|
||||
- [Network Wall](tech/network_wall_innovation.md)
|
||||
- [Architecture](tech/architecture.md)
|
||||
- [Energy Efficient](tech/energy_efficient.md)
|
||||
- [Decentralized Cloud Core Capabilities](tech/features.md)
|
||||
- [Storage](tech/qsss_home.md)
|
||||
- [Quantum Safe Storage Algo](tech/qss_algorithm.md)
|
||||
- [Zero Knowledge proof](tech/qss_zero_knowledge_proof.md)
|
||||
- [NFT Storage](tech/nft_storage.md)
|
||||
- [S3 Storage](tech/s3_interface)
|
||||
- [File System](tech/qss_filesystem.md)
|
||||
- [Network](tech/networking.md)
|
||||
- [Mycelium](tech/mycelium.md)
|
||||
- [Web Gateway](tech/webgw.md)
|
||||
- [Partners](partners_utilization/partners.md)
|
||||
- [Sikana](partners_utilization/sikana.md)
|
||||
- [Vindo](partners_utilization/vindo.md)
|
||||
- [Mkondo](partners_utilization/mkondo.md)
|
||||
- [Vverse](partners_utilization/vverse.md)
|
||||
- [Earth Wallet](partners_utilization/earth_wallet.md)
|
||||
- [Elestio](partners_utilization/elestio.md)
|
||||
- [OW Freezone](partners_utilization/freezone.md)
|
||||
- [Helium](partners_utilization/helium.md)
|
||||
- [Holochain](partners_utilization/holochain.md)
|
||||
- [TZG](partners_utilization/tanzania.md)
|
||||
- [Tier-S DC](partners_utilization/tier_s_datacenter.md)
|
||||
- [Farming](farming/farming_toc.md)
|
||||
- [Farming Rewards](farming/farming_reward.md)
|
||||
- [Proof-of-Capacity](farming/proof_of_capacity.md)
|
||||
- [Proof-of-Utilization](farming/proof_of_utilization.md)
|
||||
- [PoC DAO Rules](farming/poc_dao_rules.md)
|
||||
- [Cloud](cloud/cloud_toc.md)
|
||||
- [Cloud Units](cloud/cloudunits.md)
|
||||
- [Pricing](cloud/pricing/pricing_toc.md)
|
||||
- [Pricing Overview](cloud/pricing/pricing.md)
|
||||
- [Staking Discounts](cloud/pricing/staking_discount_levels.md)
|
||||
- [Cloud Pricing Compare](cloud/pricing/cloud_pricing_compare.md)
|
||||
- [Grid Billing](cloud/grid_billing/grid_billing.md)
|
||||
- [Resource Units](cloud/resource_units_calc_cloudunits.md)
|
||||
- [Resource Units Advanced](cloud/resourceunits_advanced.md)
|
||||
- [Collaboration](collaboration/collaboration_toc.md)
|
||||
- [How to Contribute](collaboration/contribute.md)
|
||||
- [Development Process](collaboration/development_process.md)
|
||||
- [Feature Request](collaboration/feature_request.md)
|
||||
- [Bug Report](collaboration/bug_report.md)
|
||||
- [Issue Labels](collaboration/issue_labels.md)
|
||||
- [Development Cycle](collaboration/development_cycle.md)
|
||||
- [Release Process](collaboration/release_process.md)
|
||||
- [Pull Request Template](collaboration/PULL_REQUEST_TEMPLATE.md)
|
||||
- [Collaboration Tools](collaboration/collaboration_tools/collaboration_tools.md)
|
||||
- [Circle Tool](collaboration/collaboration_tools/circle_tool.md)
|
||||
- [Website Deployer](collaboration/collaboration_tools/website_tool.md)
|
||||
- [Website Link Checker](collaboration/collaboration_tools/website_link_checker.md)
|
||||
- [How to Test](collaboration/testing/testing_readme.md)
|
||||
- [TestLodge](collaboration/testing/testlodge.md)
|
||||
- [Code of Conduct](collaboration/code_conduct.md)
|
||||
- [Legal](legal/legal_home.md)
|
||||
- [Disclaimer](legal/disclaimer.md)
|
||||
- [Definitions](legal/definitions_legal.md)
|
||||
- [Terms & Conditions](legal/terms_conditions/terms_conditions_toc.md)
|
||||
- [Terms and Conditions Websites](legal/terms_conditions_websites.md)
|
||||
- [Terms and Conditions Users](legal/terms_conditions_griduser.md)
|
||||
- [TFTA to TFT](legal/tfta_to_tft.md)
|
||||
- [Terms and Conditions Farmers](legal/terms_conditions_farmer3.md)
|
||||
- [Terms and Conditions Sales](legal/terms_conditions_sales.md)
|
||||
- [Privacy Policy](legal/privacypolicy.md)
|
29
books/knowledge_base/scripts/calculate_cloud_pricing.sh
Executable file
29
books/knowledge_base/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/knowledge_base/scripts/calculate_marketcap.sh
Executable file
18
books/knowledge_base/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/knowledge_base/scripts/generate_wallets.sh
Executable file
25
books/knowledge_base/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
|
5
books/knowledge_base/sync_production.sh
Executable file
5
books/knowledge_base/sync_production.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
export NAME=knowledge_base
|
||||
hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/manual/heroscript/$NAME
|
||||
rsync -rv ~/hero/www/info/$NAME/ root@info.ourworld.tf:/root/hero/www/info/$NAME/
|
Reference in New Issue
Block a user