diff --git a/books/developers/Makefile b/books/developers/Makefile new file mode 100644 index 0000000..f678ceb --- /dev/null +++ b/books/developers/Makefile @@ -0,0 +1,4 @@ +build: + ./scripts/generate_wallets.sh + ./scripts/calculate_marketcap.sh + ./scripts/calculate_cloud_pricing.sh \ No newline at end of file diff --git a/books/developers/SUMMARY.md b/books/developers/SUMMARY.md new file mode 100644 index 0000000..25e6a96 --- /dev/null +++ b/books/developers/SUMMARY.md @@ -0,0 +1,179 @@ +- [Table of Contents](developers/developers_book_toc.md) +- [Javascript Client](developers/javascript/grid3_javascript_readme.md) + - [Installation](developers/javascript/grid3_javascript_installation.md) + - [Loading Client](developers/javascript/grid3_javascript_loadclient.md) + - [Deploy a VM](developers/javascript/grid3_javascript_vm.md) + - [Capacity Planning](developers/javascript/grid3_javascript_capacity_planning.md) + - [Deploy Multiple VMs](developers/javascript/grid3_javascript_vms.md) + - [Deploy CapRover](developers/javascript/grid3_javascript_caprover.md) + - [Gateways](developers/javascript/grid3_javascript_vm_gateways.md) + - [Deploy a Kubernetes Cluster](developers/javascript/grid3_javascript_kubernetes.md) + - [Deploy a ZDB](developers/javascript/grid3_javascript_zdb.md) + - [Deploy ZDBs for QSFS](developers/javascript/grid3_javascript_qsfs_zdbs.md) + - [QSFS](developers/javascript/grid3_javascript_qsfs.md) + - [Key Value Store](developers/javascript/grid3_javascript_kvstore.md) + - [VM with Wireguard and Gateway](developers/javascript/grid3_wireguard_gateway.md) + - [GPU Support](developers/javascript/grid3_javascript_gpu_support.md) +- [Go Client](developers/go/grid3_go_readme.md) + - [Installation](developers/go/grid3_go_installation.md) + - [Loading Client](developers/go/grid3_go_load_client.md) + - [Deploy a VM](developers/go/grid3_go_vm.md) + - [Deploy Multiple VMs](developers/go/grid3_go_vms.md) + - [Deploy Gateways](developers/go/grid3_go_gateways.md) + - [Deploy Kubernetes](developers/go/grid3_go_kubernetes.md) + - [Deploy a QSFS](developers/go/grid3_go_qsfs.md) + - [GPU and Go](developers/go/grid3_go_gpu.md) + - [GPU Support](developers/go/grid3_go_gpu_support.md) + - [Deploy a VM with GPU](developers/go/grid3_go_vm_with_gpu.md) +- [TFCMD](developers/tfcmd/tfcmd.md) + - [Getting Started](developers/tfcmd/tfcmd_basics.md) + - [Deploy a VM](developers/tfcmd/tfcmd_vm.md) + - [Deploy Kubernetes](developers/tfcmd/tfcmd_kubernetes.md) + - [Deploy ZDB](developers/tfcmd/tfcmd_zdbs.md) + - [Gateway FQDN](developers/tfcmd/tfcmd_gateway_fqdn.md) + - [Gateway Name](developers/tfcmd/tfcmd_gateway_name.md) + - [Contracts](developers/tfcmd/tfcmd_contracts.md) +- [TFROBOT](developers/tfrobot/tfrobot.md) + - [Installation](developers/tfrobot/tfrobot_installation.md) + - [Configuration File](developers/tfrobot/tfrobot_config.md) + - [Deployment](developers/tfrobot/tfrobot_deploy.md) + - [Commands and Flags](developers/tfrobot/tfrobot_commands_flags.md) + - [Supported Configurations](developers/tfrobot/tfrobot_configurations.md) +- [ThreeFold Chain](developers/tfchain/dev_tfchain.md) + - [Introduction](developers/tfchain/introduction.md) + - [Farming Policies](developers/tfchain/farming_policies.md) + - [External Service Contract](developers/tfchain/tfchain_external_service_contract.md) + - [Solution Provider](developers/tfchain/tfchain_solution_provider.md) +- [Grid Proxy](developers/proxy/proxy_readme.md) + - [Introducing Grid Proxy](developers/proxy/proxy.md) + - [Setup](developers/proxy/setup.md) + - [DB Testing](developers/proxy/db_testing.md) + - [Commands](developers/proxy/commands.md) + - [Contributions](developers/proxy/contributions.md) + - [Explorer](developers/proxy/explorer.md) + - [Database](developers/proxy/database.md) + - [Production](developers/proxy/production.md) + - [Release](developers/proxy/release.md) +- [Flist](developers/flist/flist.md) + - [Zero-OS Hub](developers/flist/flist_hub/zos_hub.md) + - [Generate an API Token](developers/flist/flist_hub/api_token.md) + - [Convert Docker Image Into Flist](developers/flist/flist_hub/convert_docker_image.md) + - [Supported Flists](developers/flist/grid3_supported_flists.md) + - [Flist Case Studies](developers/flist/flist_case_studies/flist_case_studies.md) + - [Case Study: Debian 12](developers/flist/flist_case_studies/flist_debian_case_study.md) + - [Case Study: Nextcloud AIO](developers/flist/flist_case_studies/flist_nextcloud_case_study.md) +- [Internals](developers/internals/internals.md) + - [Reliable Message Bus - RMB](developers/internals/rmb/rmb_toc.md) + - [Introduction to RMB](developers/internals/rmb/rmb_intro.md) + - [Coding Guides](developers/internals/rmb/rmb_coding_guides.md) + - [RMB Specs](developers/internals/rmb/rmb_specs.md) + - [RMB Peer](developers/internals/rmb/uml/peer.md) + - [RMB Relay](developers/internals/rmb/uml/relay.md) + - [Zero-OS](developers/internals/zos/zos_readme.md) + - [Manual](developers/internals/zos/manual/manual.md) + - [Workload Types](developers/internals/zos/manual/workload_types.md) + - [Internal Modules](developers/internals/zos/internals/zos_internals.md) + - [Identity](developers/internals/zos/internals/identity/identity_readme.md) + - [Node ID Generation](developers/internals/zos/internals/identity/identity.md) + - [Node Upgrade](developers/internals/zos/internals/identity/upgrade.md) + - [Node](developers/internals/zos/internals/node/node_readme.md) + - [Storage](developers/internals/zos/internals/storage/storage_readme.md) + - [Network](developers/internals/zos/internals/network/network_readme.md) + - [Introduction](developers/internals/zos/internals/network/introduction.md) + - [Definitions](developers/internals/zos/internals/network/definitions.md) + - [Mesh](developers/internals/zos/internals/network/mesh.md) + - [Setup](developers/internals/zos/internals/network/setup_farm_network.md) + - [Flist](developers/internals/zos/internals/flist/flist_readme.md) + - [Container](developers/internals/zos/internals/container/container_readme.md) + - [VM](developers/internals/zos/internals/vmd/vmd_readme.md) + - [Provision](developers/internals/zos/internals/provision/provision_readme.md) + - [Capacity](developers/internals/zos/internals/capacity.md) + - [Performance Monitor Package](developers/internals/zos/performance/performance.md) + - [Public IPs Validation Task](developers/internals/zos/performance/publicips.md) + - [CPUBenchmark](developers/internals/zos/performance/cpubench.md) + - [IPerf](developers/internals/zos/performance/iperf.md) + - [Health Check](developers/internals/zos/performance/healthcheck.md) + - [API](developers/internals/zos/manual/api.md) +- [Grid Deployment](developers/grid_deployment/grid_deployment.md) + - [TFGrid Stacks](developers/grid_deployment/tfgrid_stacks.md) + - [Full VM Grid Deployment](developers/grid_deployment/grid_deployment_full_vm.md) + - [Grid Snapshots](developers/grid_deployment/snapshots.md) + - [Deploy the Dashboard](developers/grid_deployment/deploy_dashboard.md) + - [Application Case Study: Nextcloud](developers/grid_deployment/app_case_study_nextcloud.md) +- [ThreeFold Dashboard](dashboard/dashboard.md) + - [Wallet Connector](dashboard/wallet_connector.md) + - [TFGrid](dashboard/tfgrid/tfgrid.md) + - [Grid Status](dashboard/tfgrid/grid_status.md) + - [Node Statistics](dashboard/tfgrid/node_statistics.md) + - [Node Monitoring](dashboard/tfgrid/node_monitoring.md) + - [Deploy](dashboard/deploy/deploy.md) + - [Pricing Calculator](dashboard/deploy/pricing_calculator.md) + - [Node Finder](dashboard/deploy/node_finder.md) + - [Virtual Machines](dashboard/solutions/vm_intro.md) + - [Micro and Full VM Differences ](dashboard/solutions/vm_differences.md) + - [Full Virtual Machine](dashboard/solutions/fullvm.md) + - [Micro Virtual Machine](dashboard/solutions/microvm.md) + - [Nixos MicroVM](dashboard/solutions/nixos_micro.md) + - [Add a Domain](dashboard/solutions/add_domain.md) + - [Orchestrators](dashboard/deploy/orchestrators.md) + - [Kubernetes](dashboard/solutions/k8s.md) + - [Caprover](dashboard/solutions/caprover.md) + - [Caprover Admin](dashboard/solutions/caprover_admin.md) + - [Caprover Worker](dashboard/solutions/caprover_worker.md) + - [Applications](dashboard/deploy/applications.md) + - [Algorand](dashboard/solutions/algorand.md) + - [CasperLabs](dashboard/solutions/casper.md) + - [Discourse](dashboard/solutions/discourse.md) + - [Funkwhale](dashboard/solutions/funkwhale.md) + - [Mattermost](dashboard/solutions/mattermost.md) + - [Nextcloud](dashboard/solutions/nextcloud.md) + - [Node Pilot](dashboard/solutions/nodepilot.md) + - [Peertube](dashboard/solutions/peertube.md) + - [Presearch](dashboard/solutions/presearch.md) + - [Static Website](dashboard/solutions/static_website.md) + - [Subsquid](dashboard/solutions/subsquid.md) + - [Taiga](dashboard/solutions/taiga.md) + - [Umbrel](dashboard/solutions/umbrel.md) + - [WordPress](dashboard/solutions/wordpress.md) + - [Your Contracts](dashboard/deploy/your_contracts.md) + - [Images](dashboard/deploy/images.md) + - [SSH Keys](dashboard/deploy/ssh_keys.md) + - [Farms](dashboard/farms/farms.md) + - [Your Farms](dashboard/farms/your_farms.md) + - [Farm Finder](dashboard/farms/farms_finder.md) + - [Node Installer](dashboard/farms/node_installer.md) + - [Simulator](dashboard/farms/simulator.md) + - [TFChain](dashboard/tfchain/tfchain.md) + - [Your Profile](dashboard/tfchain/your_profile.md) + - [TF DAO](dashboard/tfchain/tf_dao.md) + - [Voting Weight Example](dashboard/tfchain/tf_dao_voting_weight.md) + - [TF Token Bridge](dashboard/tfchain/tf_token_bridge.md) + - [TF Token Transfer](dashboard/tfchain/tf_token_transfer.md) + - [TF Minting Reports](dashboard/tfchain/tf_minting_reports.md) +- [ThreeFold Connect](tfconnect/tfconnect_toc.md) + - [TFConnect Overview](tfconnect/tfconnect_overview.md) + - [TFConnect Authenticator](tfconnect/tfconnect_authenticator.md) + - [TFConnect Advanced](tfconnect/tfconnect_advanced.md) + - [TFConnect Troubleshooting](tfconnect/tfconnect_troubleshooting.md) +- [ThreeFold Token](threefold_token/threefold_token.md) + - [TFT Bridges](threefold_token/tft_bridges/tft_bridges.md) + - [TFChain-Stellar Bridge](threefold_token/tft_bridges/tfchain_stellar_bridge.md) + - [BSC-Stellar Bridge](threefold_token/tft_bridges/bsc_stellar_bridge.md) + - [BSC-Stellar Bridge Verification](threefold_token/tft_bridges/bsc_stellar_bridge_verification.md) + - [Ethereum-Stellar Bridge](threefold_token/tft_bridges/tft_ethereum/tft_ethereum.md) + - [Storing TFT](threefold_token/storing_tft/storing_tft.md) + - [ThreeFold Connect App - Stellar](threefold_token/storing_tft/tf_connect_app.md) + - [Lobstr Wallet - Stellar](threefold_token/storing_tft/lobstr_wallet.md) + - [MetaMask - BSC & ETH](threefold_token/storing_tft/metamask.md) + - [Hardware Wallet](threefold_token/storing_tft/hardware_wallet.md) + - [Buy and Sell TFT](threefold_token/buy_sell_tft/buy_sell_tft.md) + - [Quick Start - Stellar](threefold_token/buy_sell_tft/tft_lobstr/tft_lobstr_short_guide.md) + - [Lobstr Wallet - Stellar](threefold_token/buy_sell_tft/tft_lobstr/tft_lobstr_complete_guide.md) + - [MetaMask - BSC & ETH](threefold_token/buy_sell_tft/tft_metamask/tft_metamask.md) + - [Pancake Swap - BSC](threefold_token/buy_sell_tft/pancakeswap.md) + - [Liquidity Provider - LP](threefold_token/liquidity/liquidity_readme.md) + - [Pancake Swap LP](threefold_token/liquidity/liquidity_pancake.md) + - [1inch.io LP](threefold_token/liquidity/liquidity_1inch.md) + - [Albedo LP](threefold_token/liquidity/liquidity_albedo.md) + - [Transaction Fees](threefold_token/transaction_fees.md) +- [FAQ](faq/faq.md) \ No newline at end of file diff --git a/books/developers/scripts/calculate_cloud_pricing.sh b/books/developers/scripts/calculate_cloud_pricing.sh new file mode 100755 index 0000000..ebce4bb --- /dev/null +++ b/books/developers/scripts/calculate_cloud_pricing.sh @@ -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 \ No newline at end of file diff --git a/books/developers/scripts/calculate_marketcap.sh b/books/developers/scripts/calculate_marketcap.sh new file mode 100755 index 0000000..53a0287 --- /dev/null +++ b/books/developers/scripts/calculate_marketcap.sh @@ -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 \ No newline at end of file diff --git a/books/developers/scripts/generate_wallets.sh b/books/developers/scripts/generate_wallets.sh new file mode 100755 index 0000000..08a4483 --- /dev/null +++ b/books/developers/scripts/generate_wallets.sh @@ -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 \ No newline at end of file diff --git a/books/developers/sync_production.sh b/books/developers/sync_production.sh new file mode 100755 index 0000000..f2496fe --- /dev/null +++ b/books/developers/sync_production.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -ex +export NAME=developers +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/ diff --git a/books/duniayetu_dar/SUMMARY.md b/books/duniayetu/SUMMARY.md similarity index 100% rename from books/duniayetu_dar/SUMMARY.md rename to books/duniayetu/SUMMARY.md diff --git a/books/duniayetu_dar/sync_production.sh b/books/duniayetu/sync_production.sh similarity index 100% rename from books/duniayetu_dar/sync_production.sh rename to books/duniayetu/sync_production.sh diff --git a/books/farmers/Makefile b/books/farmers/Makefile new file mode 100644 index 0000000..f678ceb --- /dev/null +++ b/books/farmers/Makefile @@ -0,0 +1,4 @@ +build: + ./scripts/generate_wallets.sh + ./scripts/calculate_marketcap.sh + ./scripts/calculate_cloud_pricing.sh \ No newline at end of file diff --git a/books/farmers/SUMMARY.md b/books/farmers/SUMMARY.md new file mode 100644 index 0000000..dee88de --- /dev/null +++ b/books/farmers/SUMMARY.md @@ -0,0 +1,104 @@ +- [Table of Contents](farmers/farmers_book_toc.md) +- [Build a 3Node](farmers/3node_building/3node_building.md) + - [1. Create a Farm](farmers/3node_building/1_create_farm.md) + - [2. Create a Zero-OS Bootstrap Image](farmers/3node_building/2_bootstrap_image.md) + - [3. Set the Hardware](farmers/3node_building/3_set_hardware.md) + - [4. Wipe All the Disks](farmers/3node_building/4_wipe_all_disks.md) + - [5. Set the BIOS/UEFI](farmers/3node_building/5_set_bios_uefi.md) + - [6. Boot the 3Node](farmers/3node_building/6_boot_3node.md) +- [Farming Optimization](farmers/farming_optimization/farming_optimization.md) + - [GPU Farming](farmers/3node_building/gpu_farming.md) + - [Set Additional Fees](farmers/farming_optimization/set_additional_fees.md) + - [Minting Receipts](farmers/3node_building/minting_receipts.md) + - [Minting Periods](farmers/farming_optimization/minting_periods.md) + - [Room Parameters](farmers/farming_optimization/farm_room_parameters.md) + - [Farming Costs](farmers/farming_optimization/farming_costs.md) + - [Calculate Your ROI](farmers/farming_optimization/calculate_roi.md) + - [Farming Requirements](farmers/farming_optimization/farming_requirements.md) +- [Advanced Networking](farmers/advanced_networking/advanced_networking_toc.md) + - [Networking Overview](farmers/advanced_networking/networking_overview.md) + - [Network Considerations](farmers/advanced_networking/network_considerations.md) + - [Network Setup](farmers/advanced_networking/network_setup.md) +- [Farmerbot](farmers/farmerbot/farmerbot_intro.md) + - [Quick Guide](farmers/farmerbot/farmerbot_quick.md) + - [Additional Information](farmers/farmerbot/farmerbot_information.md) + - [Minting and the Farmerbot](farmers/farmerbot/farmerbot_minting.md) +- [Node Status Bot](farmers/node_status_bot/node_status_bot.md) +- [Farming Troubleshooting](farmers/farming_troubleshooting.md) +- [ThreeFold Dashboard](dashboard/dashboard.md) + - [Wallet Connector](dashboard/wallet_connector.md) + - [TFGrid](dashboard/tfgrid/tfgrid.md) + - [Grid Status](dashboard/tfgrid/grid_status.md) + - [Node Statistics](dashboard/tfgrid/node_statistics.md) + - [Node Monitoring](dashboard/tfgrid/node_monitoring.md) + - [Deploy](dashboard/deploy/deploy.md) + - [Pricing Calculator](dashboard/deploy/pricing_calculator.md) + - [Node Finder](dashboard/deploy/node_finder.md) + - [Virtual Machines](dashboard/solutions/vm_intro.md) + - [Micro and Full VM Differences ](dashboard/solutions/vm_differences.md) + - [Full Virtual Machine](dashboard/solutions/fullvm.md) + - [Micro Virtual Machine](dashboard/solutions/microvm.md) + - [Nixos MicroVM](dashboard/solutions/nixos_micro.md) + - [Add a Domain](dashboard/solutions/add_domain.md) + - [Orchestrators](dashboard/deploy/orchestrators.md) + - [Kubernetes](dashboard/solutions/k8s.md) + - [Caprover](dashboard/solutions/caprover.md) + - [Caprover Admin](dashboard/solutions/caprover_admin.md) + - [Caprover Worker](dashboard/solutions/caprover_worker.md) + - [Applications](dashboard/deploy/applications.md) + - [Algorand](dashboard/solutions/algorand.md) + - [CasperLabs](dashboard/solutions/casper.md) + - [Discourse](dashboard/solutions/discourse.md) + - [Funkwhale](dashboard/solutions/funkwhale.md) + - [Mattermost](dashboard/solutions/mattermost.md) + - [Nextcloud](dashboard/solutions/nextcloud.md) + - [Node Pilot](dashboard/solutions/nodepilot.md) + - [Peertube](dashboard/solutions/peertube.md) + - [Presearch](dashboard/solutions/presearch.md) + - [Static Website](dashboard/solutions/static_website.md) + - [Subsquid](dashboard/solutions/subsquid.md) + - [Taiga](dashboard/solutions/taiga.md) + - [Umbrel](dashboard/solutions/umbrel.md) + - [WordPress](dashboard/solutions/wordpress.md) + - [Your Contracts](dashboard/deploy/your_contracts.md) + - [Images](dashboard/deploy/images.md) + - [SSH Keys](dashboard/deploy/ssh_keys.md) + - [Farms](dashboard/farms/farms.md) + - [Your Farms](dashboard/farms/your_farms.md) + - [Farm Finder](dashboard/farms/farms_finder.md) + - [Node Installer](dashboard/farms/node_installer.md) + - [Simulator](dashboard/farms/simulator.md) + - [TFChain](dashboard/tfchain/tfchain.md) + - [Your Profile](dashboard/tfchain/your_profile.md) + - [TF DAO](dashboard/tfchain/tf_dao.md) + - [Voting Weight Example](dashboard/tfchain/tf_dao_voting_weight.md) + - [TF Token Bridge](dashboard/tfchain/tf_token_bridge.md) + - [TF Token Transfer](dashboard/tfchain/tf_token_transfer.md) + - [TF Minting Reports](dashboard/tfchain/tf_minting_reports.md) +- [ThreeFold Connect](tfconnect/tfconnect_toc.md) + - [TFConnect Overview](tfconnect/tfconnect_overview.md) + - [TFConnect Authenticator](tfconnect/tfconnect_authenticator.md) + - [TFConnect Advanced](tfconnect/tfconnect_advanced.md) + - [TFConnect Troubleshooting](tfconnect/tfconnect_troubleshooting.md) +- [ThreeFold Token](threefold_token/threefold_token.md) + - [TFT Bridges](threefold_token/tft_bridges/tft_bridges.md) + - [TFChain-Stellar Bridge](threefold_token/tft_bridges/tfchain_stellar_bridge.md) + - [BSC-Stellar Bridge](threefold_token/tft_bridges/bsc_stellar_bridge.md) + - [BSC-Stellar Bridge Verification](threefold_token/tft_bridges/bsc_stellar_bridge_verification.md) + - [Ethereum-Stellar Bridge](threefold_token/tft_bridges/tft_ethereum/tft_ethereum.md) + - [Storing TFT](threefold_token/storing_tft/storing_tft.md) + - [ThreeFold Connect App - Stellar](threefold_token/storing_tft/tf_connect_app.md) + - [Lobstr Wallet - Stellar](threefold_token/storing_tft/lobstr_wallet.md) + - [MetaMask - BSC & ETH](threefold_token/storing_tft/metamask.md) + - [Hardware Wallet](threefold_token/storing_tft/hardware_wallet.md) + - [Buy and Sell TFT](threefold_token/buy_sell_tft/buy_sell_tft.md) + - [Quick Start - Stellar](threefold_token/buy_sell_tft/tft_lobstr/tft_lobstr_short_guide.md) + - [Lobstr Wallet - Stellar](threefold_token/buy_sell_tft/tft_lobstr/tft_lobstr_complete_guide.md) + - [MetaMask - BSC & ETH](threefold_token/buy_sell_tft/tft_metamask/tft_metamask.md) + - [Pancake Swap - BSC](threefold_token/buy_sell_tft/pancakeswap.md) + - [Liquidity Provider - LP](threefold_token/liquidity/liquidity_readme.md) + - [Pancake Swap LP](threefold_token/liquidity/liquidity_pancake.md) + - [1inch.io LP](threefold_token/liquidity/liquidity_1inch.md) + - [Albedo LP](threefold_token/liquidity/liquidity_albedo.md) + - [Transaction Fees](threefold_token/transaction_fees.md) +- [FAQ](faq/faq.md) \ No newline at end of file diff --git a/books/farmers/scripts/calculate_cloud_pricing.sh b/books/farmers/scripts/calculate_cloud_pricing.sh new file mode 100755 index 0000000..ebce4bb --- /dev/null +++ b/books/farmers/scripts/calculate_cloud_pricing.sh @@ -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 \ No newline at end of file diff --git a/books/farmers/scripts/calculate_marketcap.sh b/books/farmers/scripts/calculate_marketcap.sh new file mode 100755 index 0000000..53a0287 --- /dev/null +++ b/books/farmers/scripts/calculate_marketcap.sh @@ -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 \ No newline at end of file diff --git a/books/farmers/scripts/generate_wallets.sh b/books/farmers/scripts/generate_wallets.sh new file mode 100755 index 0000000..08a4483 --- /dev/null +++ b/books/farmers/scripts/generate_wallets.sh @@ -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 \ No newline at end of file diff --git a/books/farmers/sync_production.sh b/books/farmers/sync_production.sh new file mode 100755 index 0000000..b95b31c --- /dev/null +++ b/books/farmers/sync_production.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -ex +export NAME=farmers +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/ diff --git a/books/knowledge_base/Makefile b/books/knowledge_base/Makefile new file mode 100644 index 0000000..f678ceb --- /dev/null +++ b/books/knowledge_base/Makefile @@ -0,0 +1,4 @@ +build: + ./scripts/generate_wallets.sh + ./scripts/calculate_marketcap.sh + ./scripts/calculate_cloud_pricing.sh \ No newline at end of file diff --git a/books/knowledge_base/SUMMARY.md b/books/knowledge_base/SUMMARY.md new file mode 100644 index 0000000..9836d03 --- /dev/null +++ b/books/knowledge_base/SUMMARY.md @@ -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) \ No newline at end of file diff --git a/books/knowledge_base/scripts/calculate_cloud_pricing.sh b/books/knowledge_base/scripts/calculate_cloud_pricing.sh new file mode 100755 index 0000000..ebce4bb --- /dev/null +++ b/books/knowledge_base/scripts/calculate_cloud_pricing.sh @@ -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 \ No newline at end of file diff --git a/books/knowledge_base/scripts/calculate_marketcap.sh b/books/knowledge_base/scripts/calculate_marketcap.sh new file mode 100755 index 0000000..53a0287 --- /dev/null +++ b/books/knowledge_base/scripts/calculate_marketcap.sh @@ -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 \ No newline at end of file diff --git a/books/knowledge_base/scripts/generate_wallets.sh b/books/knowledge_base/scripts/generate_wallets.sh new file mode 100755 index 0000000..08a4483 --- /dev/null +++ b/books/knowledge_base/scripts/generate_wallets.sh @@ -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 \ No newline at end of file diff --git a/books/knowledge_base/sync_production.sh b/books/knowledge_base/sync_production.sh new file mode 100755 index 0000000..c96f914 --- /dev/null +++ b/books/knowledge_base/sync_production.sh @@ -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/ diff --git a/books/library/SUMMARY.md b/books/library/SUMMARY.md new file mode 100644 index 0000000..2528692 --- /dev/null +++ b/books/library/SUMMARY.md @@ -0,0 +1 @@ +- [Library](library/library.md) \ No newline at end of file diff --git a/books/library/sync_production.sh b/books/library/sync_production.sh new file mode 100755 index 0000000..c2e93dc --- /dev/null +++ b/books/library/sync_production.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -ex +export NAME=library +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/ diff --git a/books/system_administrators/Makefile b/books/system_administrators/Makefile new file mode 100644 index 0000000..f678ceb --- /dev/null +++ b/books/system_administrators/Makefile @@ -0,0 +1,4 @@ +build: + ./scripts/generate_wallets.sh + ./scripts/calculate_marketcap.sh + ./scripts/calculate_cloud_pricing.sh \ No newline at end of file diff --git a/books/system_administrators/SUMMARY.md b/books/system_administrators/SUMMARY.md new file mode 100644 index 0000000..a1dfc94 --- /dev/null +++ b/books/system_administrators/SUMMARY.md @@ -0,0 +1,164 @@ +- [Table of Contents](system_administrators/system_administrators_book_toc.md) +- [Getting Started](system_administrators/getstarted/tfgrid3_getstarted.md) + - [SSH Remote Connection](system_administrators/getstarted/ssh_guide/ssh_guide.md) + - [SSH with OpenSSH](system_administrators/getstarted/ssh_guide/ssh_openssh.md) + - [SSH with PuTTY](system_administrators/getstarted/ssh_guide/ssh_putty.md) + - [SSH with WSL](system_administrators/getstarted/ssh_guide/ssh_wsl.md) + - [WireGuard Access](system_administrators/getstarted/ssh_guide/ssh_wireguard.md) + - [Remote Desktop and GUI](system_administrators/getstarted/remote-desktop_gui/remote-desktop_gui.md) + - [Cockpit: a Web-based Interface for Servers](system_administrators/getstarted/remote-desktop_gui/cockpit_guide/cockpit_guide.md) + - [XRDP: an Open-Source Remote Desktop Protocol](system_administrators/getstarted/remote-desktop_gui/xrdp_guide/xrdp_guide.md) + - [Apache Guacamole: a Clientless Remote Desktop Gateway](system_administrators/getstarted/remote-desktop_gui/guacamole_guide/guacamole_guide.md) + - [Planetary Network](system_administrators/getstarted/planetarynetwork.md) + - [TFGrid Services](system_administrators/getstarted/tfgrid_services/tf_grid_services_readme.md) +- [GPU](system_administrators/gpu/gpu_toc.md) + - [GPU Support](system_administrators/gpu/gpu.md) +- [Terraform](system_administrators/terraform/terraform_toc.md) + - [Overview](system_administrators/terraform/terraform_readme.md) + - [Installing Terraform](system_administrators/terraform/terraform_install.md) + - [Terraform Basics](system_administrators/terraform/terraform_basics.md) + - [Full VM Deployment](system_administrators/terraform/terraform_full_vm.md) + - [GPU Support](system_administrators/terraform/terraform_gpu_support.md) + - [Resources](system_administrators/terraform/resources/terraform_resources_readme.md) + - [Using Scheduler](system_administrators/terraform/resources/terraform_scheduler.md) + - [Virtual Machine](system_administrators/terraform/resources/terraform_vm.md) + - [Web Gateway](system_administrators/terraform/resources/terraform_vm_gateway.md) + - [Kubernetes Cluster](system_administrators/terraform/resources/terraform_k8s.md) + - [ZDB](system_administrators/terraform/resources/terraform_zdb.md) + - [Zlogs](system_administrators/terraform/resources/terraform_zlogs.md) + - [Quantum Safe Filesystem](system_administrators/terraform/resources/terraform_qsfs.md) + - [QSFS on Micro VM](system_administrators/terraform/resources/terraform_qsfs_on_microvm.md) + - [QSFS on Full VM](system_administrators/terraform/resources/terraform_qsfs_on_full_vm.md) + - [CapRover](system_administrators/terraform/resources/terraform_caprover.md) + - [Advanced](system_administrators/terraform/advanced/terraform_advanced_readme.md) + - [Terraform Provider](system_administrators/terraform/advanced/terraform_provider.md) + - [Terraform Provisioners](system_administrators/terraform/advanced/terraform_provisioners.md) + - [Mounts](system_administrators/terraform/advanced/terraform_mounts.md) + - [Capacity Planning](system_administrators/terraform/advanced/terraform_capacity_planning.md) + - [Updates](system_administrators/terraform/advanced/terraform_updates.md) + - [SSH Connection with Wireguard](system_administrators/terraform/advanced/terraform_wireguard_ssh.md) + - [Set a Wireguard VPN](system_administrators/terraform/advanced/terraform_wireguard_vpn.md) + - [Synced MariaDB Databases](system_administrators/terraform/advanced/terraform_mariadb_synced_databases.md) + - [Nomad](system_administrators/terraform/advanced/terraform_nomad.md) + - [Nextcloud Deployments](system_administrators/terraform/advanced/terraform_nextcloud_toc.md) + - [Nextcloud All-in-One Deployment](system_administrators/terraform/advanced/terraform_nextcloud_aio.md) + - [Nextcloud Single Deployment](system_administrators/terraform/advanced/terraform_nextcloud_single.md) + - [Nextcloud Redundant Deployment](system_administrators/terraform/advanced/terraform_nextcloud_redundant.md) + - [Nextcloud 2-Node VPN Deployment](system_administrators/terraform/advanced/terraform_nextcloud_vpn.md) +- [Pulumi](system_administrators/pulumi/pulumi_readme.md) + - [Introduction to Pulumi](system_administrators/pulumi/pulumi_intro.md) + - [Installing Pulumi](system_administrators/pulumi/pulumi_install.md) + - [Deployment Examples](system_administrators/pulumi/pulumi_examples.md) + - [Deployment Details](system_administrators/pulumi/pulumi_deployment_details.md) +- [Mycelium](system_administrators/mycelium/mycelium_toc.md) + - [Overview](system_administrators/mycelium/overview.md) + - [Installation](system_administrators/mycelium/installation.md) + - [Additional Information](system_administrators/mycelium/information.md) + - [Message](system_administrators/mycelium/message.md) + - [Packet](system_administrators/mycelium/packet.md) + - [Data Packet](system_administrators/mycelium/data_packet.md) + - [API YAML](system_administrators/mycelium/api_yaml.md) +- [Computer and IT Basics](system_administrators/computer_it_basics/computer_it_basics.md) + - [CLI and Scripts Basics](system_administrators/computer_it_basics/cli_scripts_basics.md) + - [Docker Basics](system_administrators/computer_it_basics/docker_basics.md) + - [Git and GitHub Basics](system_administrators/computer_it_basics/git_github_basics.md) + - [Firewall Basics](system_administrators/computer_it_basics/firewall_basics/firewall_basics.md) + - [UFW Basics](system_administrators/computer_it_basics/firewall_basics/ufw_basics.md) + - [Firewalld Basics](system_administrators/computer_it_basics/firewall_basics/firewalld_basics.md) + - [File Transfer](system_administrators/computer_it_basics/file_transfer.md) + - [Screenshots](system_administrators/computer_it_basics/screenshots.md) +- [Advanced](system_administrators/advanced/advanced.md) + - [Token Transfer Keygenerator](system_administrators/advanced/token_transfer_keygenerator.md) + - [Cancel Contracts](system_administrators/advanced/cancel_contracts.md) + - [Contract Bills Reports](system_administrators/advanced/contract_bill_report.md) + - [Listing Free Public IPs](system_administrators/advanced/list_public_ips.md) + - [Cloud Console](system_administrators/advanced/cloud_console.md) + - [Redis](system_administrators/advanced/grid3_redis.md) + - [IPFS](system_administrators/advanced/ipfs/ipfs_toc.md) + - [IPFS on a Full VM](system_administrators/advanced/ipfs/ipfs_fullvm.md) + - [IPFS on a Micro VM](system_administrators/advanced/ipfs/ipfs_microvm.md) + - [MinIO Operator with Helm3](system_administrators/advanced/minio_helm3.md) + - [Hummingbot](system_administrators/advanced/hummingbot.md) + - [AI & ML Workloads](system_administrators/advanced/ai_ml_workloads.md) + - [Ecommerce](system_administrators/advanced/ecommerce/ecommerce.md) + - [WooCommerce](system_administrators/advanced/ecommerce/woocommerce.md) + - [nopCommerce](system_administrators/advanced/ecommerce/nopcommerce.md) + - [HTTPS with Caddy](system_administrators/advanced/https_caddy.md) + - [Node Status Bot](system_administrators/advanced/node_status_bot.md) +- [ThreeFold Dashboard](dashboard/dashboard.md) + - [Wallet Connector](dashboard/wallet_connector.md) + - [TFGrid](dashboard/tfgrid/tfgrid.md) + - [Grid Status](dashboard/tfgrid/grid_status.md) + - [Node Statistics](dashboard/tfgrid/node_statistics.md) + - [Node Monitoring](dashboard/tfgrid/node_monitoring.md) + - [Deploy](dashboard/deploy/deploy.md) + - [Pricing Calculator](dashboard/deploy/pricing_calculator.md) + - [Node Finder](dashboard/deploy/node_finder.md) + - [Virtual Machines](dashboard/solutions/vm_intro.md) + - [Micro and Full VM Differences ](dashboard/solutions/vm_differences.md) + - [Full Virtual Machine](dashboard/solutions/fullvm.md) + - [Micro Virtual Machine](dashboard/solutions/microvm.md) + - [Nixos MicroVM](dashboard/solutions/nixos_micro.md) + - [Add a Domain](dashboard/solutions/add_domain.md) + - [Orchestrators](dashboard/deploy/orchestrators.md) + - [Kubernetes](dashboard/solutions/k8s.md) + - [Caprover](dashboard/solutions/caprover.md) + - [Caprover Admin](dashboard/solutions/caprover_admin.md) + - [Caprover Worker](dashboard/solutions/caprover_worker.md) + - [Applications](dashboard/deploy/applications.md) + - [Algorand](dashboard/solutions/algorand.md) + - [CasperLabs](dashboard/solutions/casper.md) + - [Discourse](dashboard/solutions/discourse.md) + - [Funkwhale](dashboard/solutions/funkwhale.md) + - [Mattermost](dashboard/solutions/mattermost.md) + - [Nextcloud](dashboard/solutions/nextcloud.md) + - [Node Pilot](dashboard/solutions/nodepilot.md) + - [Peertube](dashboard/solutions/peertube.md) + - [Presearch](dashboard/solutions/presearch.md) + - [Static Website](dashboard/solutions/static_website.md) + - [Subsquid](dashboard/solutions/subsquid.md) + - [Taiga](dashboard/solutions/taiga.md) + - [Umbrel](dashboard/solutions/umbrel.md) + - [WordPress](dashboard/solutions/wordpress.md) + - [Your Contracts](dashboard/deploy/your_contracts.md) + - [Images](dashboard/deploy/images.md) + - [SSH Keys](dashboard/deploy/ssh_keys.md) + - [Farms](dashboard/farms/farms.md) + - [Your Farms](dashboard/farms/your_farms.md) + - [Farm Finder](dashboard/farms/farms_finder.md) + - [Node Installer](dashboard/farms/node_installer.md) + - [Simulator](dashboard/farms/simulator.md) + - [TFChain](dashboard/tfchain/tfchain.md) + - [Your Profile](dashboard/tfchain/your_profile.md) + - [TF DAO](dashboard/tfchain/tf_dao.md) + - [Voting Weight Example](dashboard/tfchain/tf_dao_voting_weight.md) + - [TF Token Bridge](dashboard/tfchain/tf_token_bridge.md) + - [TF Token Transfer](dashboard/tfchain/tf_token_transfer.md) + - [TF Minting Reports](dashboard/tfchain/tf_minting_reports.md) +- [ThreeFold Connect](tfconnect/tfconnect_toc.md) + - [TFConnect Overview](tfconnect/tfconnect_overview.md) + - [TFConnect Authenticator](tfconnect/tfconnect_authenticator.md) + - [TFConnect Advanced](tfconnect/tfconnect_advanced.md) + - [TFConnect Troubleshooting](tfconnect/tfconnect_troubleshooting.md) +- [ThreeFold Token](threefold_token/threefold_token.md) + - [TFT Bridges](threefold_token/tft_bridges/tft_bridges.md) + - [TFChain-Stellar Bridge](threefold_token/tft_bridges/tfchain_stellar_bridge.md) + - [BSC-Stellar Bridge](threefold_token/tft_bridges/bsc_stellar_bridge.md) + - [BSC-Stellar Bridge Verification](threefold_token/tft_bridges/bsc_stellar_bridge_verification.md) + - [Ethereum-Stellar Bridge](threefold_token/tft_bridges/tft_ethereum/tft_ethereum.md) + - [Storing TFT](threefold_token/storing_tft/storing_tft.md) + - [ThreeFold Connect App - Stellar](threefold_token/storing_tft/tf_connect_app.md) + - [Lobstr Wallet - Stellar](threefold_token/storing_tft/lobstr_wallet.md) + - [MetaMask - BSC & ETH](threefold_token/storing_tft/metamask.md) + - [Hardware Wallet](threefold_token/storing_tft/hardware_wallet.md) + - [Buy and Sell TFT](threefold_token/buy_sell_tft/buy_sell_tft.md) + - [Quick Start - Stellar](threefold_token/buy_sell_tft/tft_lobstr/tft_lobstr_short_guide.md) + - [Lobstr Wallet - Stellar](threefold_token/buy_sell_tft/tft_lobstr/tft_lobstr_complete_guide.md) + - [MetaMask - BSC & ETH](threefold_token/buy_sell_tft/tft_metamask/tft_metamask.md) + - [Pancake Swap - BSC](threefold_token/buy_sell_tft/pancakeswap.md) + - [Liquidity Provider - LP](threefold_token/liquidity/liquidity_readme.md) + - [Pancake Swap LP](threefold_token/liquidity/liquidity_pancake.md) + - [1inch.io LP](threefold_token/liquidity/liquidity_1inch.md) + - [Albedo LP](threefold_token/liquidity/liquidity_albedo.md) + - [Transaction Fees](threefold_token/transaction_fees.md) +- [FAQ](faq/faq.md) \ No newline at end of file diff --git a/books/system_administrators/scripts/calculate_cloud_pricing.sh b/books/system_administrators/scripts/calculate_cloud_pricing.sh new file mode 100755 index 0000000..ebce4bb --- /dev/null +++ b/books/system_administrators/scripts/calculate_cloud_pricing.sh @@ -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 \ No newline at end of file diff --git a/books/system_administrators/scripts/calculate_marketcap.sh b/books/system_administrators/scripts/calculate_marketcap.sh new file mode 100755 index 0000000..53a0287 --- /dev/null +++ b/books/system_administrators/scripts/calculate_marketcap.sh @@ -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 \ No newline at end of file diff --git a/books/system_administrators/scripts/generate_wallets.sh b/books/system_administrators/scripts/generate_wallets.sh new file mode 100755 index 0000000..08a4483 --- /dev/null +++ b/books/system_administrators/scripts/generate_wallets.sh @@ -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 \ No newline at end of file diff --git a/books/system_administrators/sync_production.sh b/books/system_administrators/sync_production.sh new file mode 100755 index 0000000..c2cee8b --- /dev/null +++ b/books/system_administrators/sync_production.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -ex +export NAME=system_administrators +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/ diff --git a/collections/developers/developers_book_toc.md b/collections/developers/developers_book_toc.md new file mode 100644 index 0000000..282f573 --- /dev/null +++ b/collections/developers/developers_book_toc.md @@ -0,0 +1,90 @@ +# ThreeFold Developers Manual + +This manual covers all practical tutorials on how to develop and build on the ThreeFold Grid. + +