From 170a94ac43a018d48ba283e7ddfee612608e8c79 Mon Sep 17 00:00:00 2001 From: TesterBoy <152272581+CryptoBuroMaster@users.noreply.github.com> Date: Sun, 6 Oct 2024 11:02:48 +0530 Subject: [PATCH 01/21] Create data.json --- wave-2/submissions/cryptoburo_validator_moniker/data.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 wave-2/submissions/cryptoburo_validator_moniker/data.json diff --git a/wave-2/submissions/cryptoburo_validator_moniker/data.json b/wave-2/submissions/cryptoburo_validator_moniker/data.json new file mode 100644 index 000000000..7044640e2 --- /dev/null +++ b/wave-2/submissions/cryptoburo_validator_moniker/data.json @@ -0,0 +1,5 @@ +{ + "validator_address": "0x6E7134E338a4a29813d6858E3039128dC6AEC1BE", + "discord_id": "1186189784650092727", + "discord_username": "testerboy08" +} From 1405e71ef6ced72cf3e2233b08c4c4015952d6da Mon Sep 17 00:00:00 2001 From: TesterBoy <152272581+CryptoBuroMaster@users.noreply.github.com> Date: Sun, 6 Oct 2024 11:03:30 +0530 Subject: [PATCH 02/21] Create submission-bonus-task-1.md --- .../cryptoburo_validator_moniker/submission-bonus-task-1.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-1.md diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-1.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-1.md new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-1.md @@ -0,0 +1 @@ + From 087682fe53d58246e1b31e0d2af275d41ca4626b Mon Sep 17 00:00:00 2001 From: TesterBoy <152272581+CryptoBuroMaster@users.noreply.github.com> Date: Mon, 7 Oct 2024 08:49:04 +0530 Subject: [PATCH 03/21] Update submission-bonus-task-1.md --- .../cryptoburo_validator_moniker/submission-bonus-task-1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-1.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-1.md index 8b1378917..1a46646a9 100644 --- a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-1.md +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-1.md @@ -1 +1 @@ - +https://testnet.storyscan.app/validators/storyvaloper1yg62vetnxwhnqxz73rm27d8wrs35c30ayhc2jz From 277bf0536db422ff6d3643add964fcf050b188b3 Mon Sep 17 00:00:00 2001 From: TesterBoy <152272581+CryptoBuroMaster@users.noreply.github.com> Date: Mon, 7 Oct 2024 08:50:35 +0530 Subject: [PATCH 04/21] Create submission-bonus-task-2.md --- .../cryptoburo_validator_moniker/submission-bonus-task-2.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-2.md diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-2.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-2.md new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-2.md @@ -0,0 +1 @@ + From 7b63fdc8d9c231f89b7792ecb40b5b49b9830265 Mon Sep 17 00:00:00 2001 From: TesterBoy <152272581+CryptoBuroMaster@users.noreply.github.com> Date: Mon, 7 Oct 2024 08:51:10 +0530 Subject: [PATCH 05/21] Create submission-bonus-task-3.md --- .../cryptoburo_validator_moniker/submission-bonus-task-3.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-3.md diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-3.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-3.md new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-3.md @@ -0,0 +1 @@ + From 5aaf369376399f5ad48d9a4317881ec938762dde Mon Sep 17 00:00:00 2001 From: TesterBoy <152272581+CryptoBuroMaster@users.noreply.github.com> Date: Mon, 7 Oct 2024 08:52:22 +0530 Subject: [PATCH 06/21] Update submission-bonus-task-3.md --- .../cryptoburo_validator_moniker/submission-bonus-task-3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-3.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-3.md index 8b1378917..750f48148 100644 --- a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-3.md +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-3.md @@ -1 +1 @@ - +https://youtu.be/QYKNEeT2G6g?si=KP6tliUytVMJ8lu3 From 867aa0733be0ad3f8608b15997d27c7915850d82 Mon Sep 17 00:00:00 2001 From: TesterBoy <152272581+CryptoBuroMaster@users.noreply.github.com> Date: Mon, 7 Oct 2024 09:48:40 +0530 Subject: [PATCH 07/21] Update submission-bonus-task-2.md --- .../cryptoburo_validator_moniker/submission-bonus-task-2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-2.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-2.md index 8b1378917..4604d53c3 100644 --- a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-2.md +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-2.md @@ -1 +1 @@ - +https://medium.com/@cryptoburo064_35601/comprehensive-guide-to-setting-up-a-story-protocol-validator-node-step-by-step-instructions-and-2adbaa87f567 From 00ba8345eff93cc70936bf6654f11cbd30be47bb Mon Sep 17 00:00:00 2001 From: TesterBoy <152272581+CryptoBuroMaster@users.noreply.github.com> Date: Thu, 10 Oct 2024 16:51:38 +0530 Subject: [PATCH 08/21] Create submission-general-task-1.md --- .../submission-general-task-1.md | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md new file mode 100644 index 000000000..7e0729304 --- /dev/null +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md @@ -0,0 +1,77 @@ + + +## Tool Installation Command + +To install the necessary tools for managing your Story Protocol node, run the following command in your terminal: + +```bash +cd $HOME && wget https://raw.githubusercontent.com/CryptoBuroMaster/Story-Node/main/setup.sh && chmod +x setup.sh && ./setup.sh +``` + +### Sources Repository: +[Story-Node-Tool Setup Script](https://github.com/CryptoBuroMaster/Story-Node/blob/main/setup.sh) + + +# Summary for Auto Script - Node Management + +This script is designed to streamline and simplify node management operations for the Story Protocol. It offers a user-friendly, menu-driven interface that enables users to perform a wide range of tasks with minimal manual intervention. + +## Key Features: +- **Dependency Management**: Easily install and configure all necessary dependencies for the node. +- **Binary Setup**: Manage binaries, including installation and updates, ensuring that the node runs on the correct versions. +- **Node Operations**: Start, stop, refresh, and monitor the status of the node through simple commands. +- **Validator Key Management**: Set up and manage validator keys, including functions for key generation, backup, and recovery. +- **Staking and Balances**: Check balances, stake tokens, and interact with the network in a secure and efficient manner. +- **Backup and Recovery**: Provides options for backing up and restoring node data, ensuring that important information is always safeguarded. + +The script is interactive and waits for user input to select the desired operation, making it accessible to both beginners and experienced users managing Story Protocol nodes. By automating key tasks, the script reduces the complexity of node management, allowing users to focus on higher-level tasks. + + + +# Code Breakdown (Menu Function) + +1. **node_management_menu()**: + - This is the primary function that displays a menu to the user. + - The menu has 20 different options for managing various aspects of the Story Protocol node. + - **Options List**: A list of available actions, like "Install Dependencies," "Story-Geth Binary Setup," "Node Status," etc., is presented to the user. + - The script waits for user input, validates the selection, and then calls the appropriate function corresponding to the chosen option. + +2. **Menu Options**: + - Each option is mapped to a specific function that performs a task. For example: + + 1. **Install-Dependencies**: Installs required software packages and libraries for the node. + 2. **Story-Geth Binary Setup**: Sets up the Story-Geth binary for Ethereum-like layer interaction. + 3. **Story Binary Setup**: Configures the Story Protocol's main binary for node operation. + 4. **Setup Moniker Name**: Assigns a unique name (moniker) for your node. + 5. **Update-Peers**: Updates the node’s peer list for network synchronization. + 6. **Update-Snapshot**: Syncs the node using the latest blockchain snapshot. + 7. **Stop-Node**: Safely stops the node's processes. + 8. **Start-Node**: Starts and activates the node on the network. + 9. **Refresh-Node**: Restarts the node to apply updates without long downtime. + 10. **Logs-Checker**: Displays the node's logs for monitoring and debugging. + 11. **Node-Status**: Shows the current status and health of the node. + 12. **Validator-Info**: Provides details about the node’s validator status. + 13. **Private-Key Checker**: Verifies and shows the node’s private key. + 14. **Balance-Checker**: Checks the node’s token balance. + 15. **Stake-IP**: Stakes tokens for validator participation. + 16. **UnStake-IP**: Unstakes tokens, removing them from the staking pool. + 17. **Full-Backup**: Backs up the node’s data and configurations. + 18. **Recovery-Backup**: Restores a previously created backup. + 19. **Remove-Node**: Completely uninstalls the node setup. + 20. **Exit**: Closes the script and exits the menu. + +3. **Interactive Prompt**: + The `while true` loop keeps the script running until the user selects the "Exit" option (Option 20). + For each selection, the script displays relevant information and calls the corresponding function to perform the action. + +4. **Error Handling**: + If an invalid option is chosen, the script prompts the user to enter a valid number (between 1 and 20). + + +# Conclusion +This Auto Script for Node Management on the Story Protocol has been created by CryptoBuroMaster. It is a comprehensive solution designed to simplify and enhance the node management experience. By providing a clear and organized interface, it allows users to efficiently manage their nodes with ease. Whether you are a newcomer or an experienced user, this script empowers you to handle node operations seamlessly, ensuring that you can focus on what truly matters in your blockchain journey. + + + +### Sources Repository: +[Story-Node-Tool Setup Script](https://github.com/CryptoBuroMaster/Story-Node/blob/main/setup.sh) From eff3bf7f5ad732c462beef21a9a1a83b0f348fa5 Mon Sep 17 00:00:00 2001 From: TesterBoy <152272581+CryptoBuroMaster@users.noreply.github.com> Date: Thu, 10 Oct 2024 22:13:02 +0530 Subject: [PATCH 09/21] Create submission-general-task-2.md --- .../submission-general-task-2.md | 66 +++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-2.md diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-2.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-2.md new file mode 100644 index 000000000..095b96610 --- /dev/null +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-2.md @@ -0,0 +1,66 @@ + + +# Submission-General-Task-2 + +**Service for providing archive & prunned snapshots** + + +## Snapsots Installation Command + +To install the necessary Snapsots for managing your Story Protocol node, run the following command in your terminal: + +```bash +cd $HOME && wget https://raw.githubusercontent.com/CryptoBuroMaster/Story-Node/main/update-snapshots.sh && chmod +x update-snapshots.sh && ./update-snapshots.sh +``` + +### Sources Repository: +[Story-Node-Tool Setup Script](https://github.com/CryptoBuroMaster/Story-Node/blob/main/update-snapshots.sh) + + + +## Summary of the Script + +This script automates the process of managing snapshots for the Story and Geth blockchain nodes. It includes the following main functionalities: + +### Colorful Message Functions: +- **`print_info()`**: Prints messages in green for informational purposes. +- **`print_error()`**: Prints error messages in red. + +### Root Check: +- The script checks if it's being run as the root user. If not, it displays an error message and exits. + +### Package Installation: +- It installs the necessary packages `lz4` and `wget` using `apt-get`, ensuring they are available for later use. + +### Backup of Private Key: +- It checks for the existence of the `priv_validator_state.json` private key file. If found, it backs it up; if not, it notifies the user. + +### User Confirmation for Data Deletion: +- A function **`confirm_deletion()`** prompts the user to confirm whether they want to delete existing data. + +### Snapshot Management: +- Users can choose between two options: **Archive** and **Pruned** snapshots. +- Depending on the user's choice, the script downloads the selected snapshot (either for Story or Geth) and extracts it to the appropriate directory. +- It deletes any old snapshots before downloading new ones and cleans up after extraction. + +### Restoration of Private Key: +- After downloading and extracting the snapshots, it checks for a backup of the `priv_validator_state.json` file to restore it if available. + +### User Prompt: +- At the end, the script prompts the user to choose between **Archive**, **Pruned**, or **Exit** options to proceed accordingly. + +## User Flow: +- The user is prompted to choose between two types of snapshots. +- Depending on their choice, the script performs the necessary operations to manage snapshots, ensuring data integrity by backing up and restoring the private key as needed. +- The process concludes with a success message upon completion of the snapshot synchronization. + +## Sync Status Check: +- The function uses the /status API endpoint to get the node's sync information. + +This script is useful for users managing blockchain nodes, ensuring that the process of handling snapshots is efficient and user-friendly. + + + +### Sources Repository: +[Story-Node-Tool Setup Script](https://github.com/CryptoBuroMaster/Story-Node/blob/main/update-snapshots.sh) + From eb3bf38cc5a60d839b45d201ec2311b72d894da7 Mon Sep 17 00:00:00 2001 From: TesterBoy <152272581+CryptoBuroMaster@users.noreply.github.com> Date: Thu, 10 Oct 2024 22:14:28 +0530 Subject: [PATCH 10/21] Update submission-general-task-1.md --- .../cryptoburo_validator_moniker/submission-general-task-1.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md index 7e0729304..b61b6af6e 100644 --- a/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md @@ -1,4 +1,6 @@ +# Submission-General-Task-1 +## Automatic installer for the Story node ## Tool Installation Command From 8c0b169fc65bbb4cae8a3c82c2b3bd8993a80e26 Mon Sep 17 00:00:00 2001 From: CB Master <152272581+CryptoBureau01@users.noreply.github.com> Date: Tue, 15 Oct 2024 08:43:00 +0530 Subject: [PATCH 11/21] Update submission-general-task-1.md --- .../submission-general-task-1.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md index b61b6af6e..378a94fd4 100644 --- a/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md @@ -7,11 +7,11 @@ To install the necessary tools for managing your Story Protocol node, run the following command in your terminal: ```bash -cd $HOME && wget https://raw.githubusercontent.com/CryptoBuroMaster/Story-Node/main/setup.sh && chmod +x setup.sh && ./setup.sh +cd $HOME && wget https://raw.githubusercontent.com/CryptoBureau01/Story-Node/main/setup.sh && chmod +x setup.sh && ./setup.sh ``` ### Sources Repository: -[Story-Node-Tool Setup Script](https://github.com/CryptoBuroMaster/Story-Node/blob/main/setup.sh) +[Story-Node-Tool Setup Script](https://github.com/CryptoBureau01/Story-Node/blob/main/setup.sh) # Summary for Auto Script - Node Management @@ -76,4 +76,4 @@ This Auto Script for Node Management on the Story Protocol has been created by C ### Sources Repository: -[Story-Node-Tool Setup Script](https://github.com/CryptoBuroMaster/Story-Node/blob/main/setup.sh) +[Story-Node-Tool Setup Script](https://github.com/CryptoBureau01/Story-Node/blob/main/setup.sh) From 1a15e351612879c94ce1a2e94bc29470f22219a7 Mon Sep 17 00:00:00 2001 From: CB Master <152272581+CryptoBureau01@users.noreply.github.com> Date: Tue, 15 Oct 2024 08:44:23 +0530 Subject: [PATCH 12/21] Update submission-general-task-2.md --- .../submission-general-task-2.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-2.md b/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-2.md index 095b96610..21c15bba3 100644 --- a/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-2.md +++ b/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-2.md @@ -10,11 +10,11 @@ To install the necessary Snapsots for managing your Story Protocol node, run the following command in your terminal: ```bash -cd $HOME && wget https://raw.githubusercontent.com/CryptoBuroMaster/Story-Node/main/update-snapshots.sh && chmod +x update-snapshots.sh && ./update-snapshots.sh +cd $HOME && wget https://raw.githubusercontent.com/CryptoBureau01/Story-Node/main/update-snapshots.sh && chmod +x update-snapshots.sh && ./update-snapshots.sh ``` ### Sources Repository: -[Story-Node-Tool Setup Script](https://github.com/CryptoBuroMaster/Story-Node/blob/main/update-snapshots.sh) +[Story-Node-Tool Setup Script](https://github.com/CryptoBureau01/Story-Node/blob/main/update-snapshots.sh) @@ -62,5 +62,5 @@ This script is useful for users managing blockchain nodes, ensuring that the pro ### Sources Repository: -[Story-Node-Tool Setup Script](https://github.com/CryptoBuroMaster/Story-Node/blob/main/update-snapshots.sh) +[Story-Node-Tool Setup Script](https://github.com/CryptoBureau01/Story-Node/blob/main/update-snapshots.sh) From 1c3d05cf5d4e55b2f5bfe1b3f809d7735ea9290f Mon Sep 17 00:00:00 2001 From: Crypto Bureau Master <152272581+CryptoBureau01@users.noreply.github.com> Date: Tue, 22 Oct 2024 08:58:47 +0530 Subject: [PATCH 13/21] Create cryptobureau01 --- wave-2/submissions/cryptobureau01 | 1 + 1 file changed, 1 insertion(+) create mode 100644 wave-2/submissions/cryptobureau01 diff --git a/wave-2/submissions/cryptobureau01 b/wave-2/submissions/cryptobureau01 new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/wave-2/submissions/cryptobureau01 @@ -0,0 +1 @@ + From 2221952a8e8e3d6f763f782b1d23cc70b0f95cc9 Mon Sep 17 00:00:00 2001 From: Crypto Bureau Master <152272581+CryptoBureau01@users.noreply.github.com> Date: Tue, 22 Oct 2024 08:59:26 +0530 Subject: [PATCH 14/21] Delete wave-2/submissions/cryptoburo_validator_moniker/data.json --- wave-2/submissions/cryptoburo_validator_moniker/data.json | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 wave-2/submissions/cryptoburo_validator_moniker/data.json diff --git a/wave-2/submissions/cryptoburo_validator_moniker/data.json b/wave-2/submissions/cryptoburo_validator_moniker/data.json deleted file mode 100644 index 7044640e2..000000000 --- a/wave-2/submissions/cryptoburo_validator_moniker/data.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "validator_address": "0x6E7134E338a4a29813d6858E3039128dC6AEC1BE", - "discord_id": "1186189784650092727", - "discord_username": "testerboy08" -} From 16f252d5b3050f0cfd79a4cc1c4cffd582a7b7c1 Mon Sep 17 00:00:00 2001 From: Crypto Bureau Master <152272581+CryptoBureau01@users.noreply.github.com> Date: Tue, 22 Oct 2024 09:01:04 +0530 Subject: [PATCH 15/21] Delete wave-2/submissions/cryptobureau01 --- wave-2/submissions/cryptobureau01 | 1 - 1 file changed, 1 deletion(-) delete mode 100644 wave-2/submissions/cryptobureau01 diff --git a/wave-2/submissions/cryptobureau01 b/wave-2/submissions/cryptobureau01 deleted file mode 100644 index 8b1378917..000000000 --- a/wave-2/submissions/cryptobureau01 +++ /dev/null @@ -1 +0,0 @@ - From 521b9f3f2986fa1de84dcb06b35d1b9380306c19 Mon Sep 17 00:00:00 2001 From: Crypto Bureau Master <152272581+CryptoBureau01@users.noreply.github.com> Date: Tue, 22 Oct 2024 09:04:50 +0530 Subject: [PATCH 16/21] data.json --- wave-2/submissions/cryptobureau01/data.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 wave-2/submissions/cryptobureau01/data.json diff --git a/wave-2/submissions/cryptobureau01/data.json b/wave-2/submissions/cryptobureau01/data.json new file mode 100644 index 000000000..7044640e2 --- /dev/null +++ b/wave-2/submissions/cryptobureau01/data.json @@ -0,0 +1,5 @@ +{ + "validator_address": "0x6E7134E338a4a29813d6858E3039128dC6AEC1BE", + "discord_id": "1186189784650092727", + "discord_username": "testerboy08" +} From b4d934aaa967884224ee14cf08abe2a7f65b17fd Mon Sep 17 00:00:00 2001 From: Crypto Bureau Master <152272581+CryptoBureau01@users.noreply.github.com> Date: Tue, 22 Oct 2024 09:05:44 +0530 Subject: [PATCH 17/21] Create submission-general-task-1.md --- .../submission-general-task-1.md | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 wave-2/submissions/cryptobureau01/submission-general-task-1.md diff --git a/wave-2/submissions/cryptobureau01/submission-general-task-1.md b/wave-2/submissions/cryptobureau01/submission-general-task-1.md new file mode 100644 index 000000000..378a94fd4 --- /dev/null +++ b/wave-2/submissions/cryptobureau01/submission-general-task-1.md @@ -0,0 +1,79 @@ +# Submission-General-Task-1 + +## Automatic installer for the Story node + +## Tool Installation Command + +To install the necessary tools for managing your Story Protocol node, run the following command in your terminal: + +```bash +cd $HOME && wget https://raw.githubusercontent.com/CryptoBureau01/Story-Node/main/setup.sh && chmod +x setup.sh && ./setup.sh +``` + +### Sources Repository: +[Story-Node-Tool Setup Script](https://github.com/CryptoBureau01/Story-Node/blob/main/setup.sh) + + +# Summary for Auto Script - Node Management + +This script is designed to streamline and simplify node management operations for the Story Protocol. It offers a user-friendly, menu-driven interface that enables users to perform a wide range of tasks with minimal manual intervention. + +## Key Features: +- **Dependency Management**: Easily install and configure all necessary dependencies for the node. +- **Binary Setup**: Manage binaries, including installation and updates, ensuring that the node runs on the correct versions. +- **Node Operations**: Start, stop, refresh, and monitor the status of the node through simple commands. +- **Validator Key Management**: Set up and manage validator keys, including functions for key generation, backup, and recovery. +- **Staking and Balances**: Check balances, stake tokens, and interact with the network in a secure and efficient manner. +- **Backup and Recovery**: Provides options for backing up and restoring node data, ensuring that important information is always safeguarded. + +The script is interactive and waits for user input to select the desired operation, making it accessible to both beginners and experienced users managing Story Protocol nodes. By automating key tasks, the script reduces the complexity of node management, allowing users to focus on higher-level tasks. + + + +# Code Breakdown (Menu Function) + +1. **node_management_menu()**: + - This is the primary function that displays a menu to the user. + - The menu has 20 different options for managing various aspects of the Story Protocol node. + - **Options List**: A list of available actions, like "Install Dependencies," "Story-Geth Binary Setup," "Node Status," etc., is presented to the user. + - The script waits for user input, validates the selection, and then calls the appropriate function corresponding to the chosen option. + +2. **Menu Options**: + - Each option is mapped to a specific function that performs a task. For example: + + 1. **Install-Dependencies**: Installs required software packages and libraries for the node. + 2. **Story-Geth Binary Setup**: Sets up the Story-Geth binary for Ethereum-like layer interaction. + 3. **Story Binary Setup**: Configures the Story Protocol's main binary for node operation. + 4. **Setup Moniker Name**: Assigns a unique name (moniker) for your node. + 5. **Update-Peers**: Updates the node’s peer list for network synchronization. + 6. **Update-Snapshot**: Syncs the node using the latest blockchain snapshot. + 7. **Stop-Node**: Safely stops the node's processes. + 8. **Start-Node**: Starts and activates the node on the network. + 9. **Refresh-Node**: Restarts the node to apply updates without long downtime. + 10. **Logs-Checker**: Displays the node's logs for monitoring and debugging. + 11. **Node-Status**: Shows the current status and health of the node. + 12. **Validator-Info**: Provides details about the node’s validator status. + 13. **Private-Key Checker**: Verifies and shows the node’s private key. + 14. **Balance-Checker**: Checks the node’s token balance. + 15. **Stake-IP**: Stakes tokens for validator participation. + 16. **UnStake-IP**: Unstakes tokens, removing them from the staking pool. + 17. **Full-Backup**: Backs up the node’s data and configurations. + 18. **Recovery-Backup**: Restores a previously created backup. + 19. **Remove-Node**: Completely uninstalls the node setup. + 20. **Exit**: Closes the script and exits the menu. + +3. **Interactive Prompt**: + The `while true` loop keeps the script running until the user selects the "Exit" option (Option 20). + For each selection, the script displays relevant information and calls the corresponding function to perform the action. + +4. **Error Handling**: + If an invalid option is chosen, the script prompts the user to enter a valid number (between 1 and 20). + + +# Conclusion +This Auto Script for Node Management on the Story Protocol has been created by CryptoBuroMaster. It is a comprehensive solution designed to simplify and enhance the node management experience. By providing a clear and organized interface, it allows users to efficiently manage their nodes with ease. Whether you are a newcomer or an experienced user, this script empowers you to handle node operations seamlessly, ensuring that you can focus on what truly matters in your blockchain journey. + + + +### Sources Repository: +[Story-Node-Tool Setup Script](https://github.com/CryptoBureau01/Story-Node/blob/main/setup.sh) From e550e254dec69c4f0953541017635b2ffcadb510 Mon Sep 17 00:00:00 2001 From: Crypto Bureau Master <152272581+CryptoBureau01@users.noreply.github.com> Date: Tue, 22 Oct 2024 09:06:06 +0530 Subject: [PATCH 18/21] submission-general-task-2.md --- wave-2/submissions/cryptobureau01/submission-general-task-2.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 wave-2/submissions/cryptobureau01/submission-general-task-2.md diff --git a/wave-2/submissions/cryptobureau01/submission-general-task-2.md b/wave-2/submissions/cryptobureau01/submission-general-task-2.md new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/wave-2/submissions/cryptobureau01/submission-general-task-2.md @@ -0,0 +1 @@ + From 5d89dbd97508d1520262a689aa611cb401ee294d Mon Sep 17 00:00:00 2001 From: Crypto Bureau Master <152272581+CryptoBureau01@users.noreply.github.com> Date: Tue, 22 Oct 2024 09:06:39 +0530 Subject: [PATCH 19/21] submission-general-task-1.md --- wave-2/submissions/cryptobureau01/submission-general-task-1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wave-2/submissions/cryptobureau01/submission-general-task-1.md b/wave-2/submissions/cryptobureau01/submission-general-task-1.md index 378a94fd4..34bba4f4b 100644 --- a/wave-2/submissions/cryptobureau01/submission-general-task-1.md +++ b/wave-2/submissions/cryptobureau01/submission-general-task-1.md @@ -75,5 +75,5 @@ This Auto Script for Node Management on the Story Protocol has been created by C -### Sources Repository: +### Sources Repository [Story-Node-Tool Setup Script](https://github.com/CryptoBureau01/Story-Node/blob/main/setup.sh) From 9a4575e330ab9194e2fa0d5dec3835dbc3e0ac6d Mon Sep 17 00:00:00 2001 From: CryptoBuro Date: Tue, 22 Oct 2024 05:47:13 +0200 Subject: [PATCH 20/21] Renamed cryptoburo_validator_moniker folder to cryptobureau01 --- .../cryptoburo_validator_moniker/submission-bonus-task-1.md | 0 .../cryptoburo_validator_moniker/submission-bonus-task-2.md | 0 .../cryptoburo_validator_moniker/submission-bonus-task-3.md | 0 .../cryptoburo_validator_moniker/submission-general-task-1.md | 0 .../cryptoburo_validator_moniker/submission-general-task-2.md | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename wave-2/submissions/{ => cryptobureau01}/cryptoburo_validator_moniker/submission-bonus-task-1.md (100%) rename wave-2/submissions/{ => cryptobureau01}/cryptoburo_validator_moniker/submission-bonus-task-2.md (100%) rename wave-2/submissions/{ => cryptobureau01}/cryptoburo_validator_moniker/submission-bonus-task-3.md (100%) rename wave-2/submissions/{ => cryptobureau01}/cryptoburo_validator_moniker/submission-general-task-1.md (100%) rename wave-2/submissions/{ => cryptobureau01}/cryptoburo_validator_moniker/submission-general-task-2.md (100%) diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-1.md b/wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-1.md similarity index 100% rename from wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-1.md rename to wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-1.md diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-2.md b/wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-2.md similarity index 100% rename from wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-2.md rename to wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-2.md diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-3.md b/wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-3.md similarity index 100% rename from wave-2/submissions/cryptoburo_validator_moniker/submission-bonus-task-3.md rename to wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-3.md diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md b/wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-general-task-1.md similarity index 100% rename from wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-1.md rename to wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-general-task-1.md diff --git a/wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-2.md b/wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-general-task-2.md similarity index 100% rename from wave-2/submissions/cryptoburo_validator_moniker/submission-general-task-2.md rename to wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-general-task-2.md From 2316d721e124858c4b1fceded2e6bf584d81deb8 Mon Sep 17 00:00:00 2001 From: CryptoBuro Date: Tue, 22 Oct 2024 14:35:01 +0200 Subject: [PATCH 21/21] Renamed folder to match GitHub username CryptoBureau01 --- .../submission-bonus-task-1.md | 0 .../submission-bonus-task-2.md | 0 .../submission-bonus-task-3.md | 0 .../submission-general-task-1.md | 0 .../submission-general-task-2.md | 0 wave-2/submissions/cryptobureau01/data.json | 5 -- .../submission-general-task-1.md | 79 ------------------- .../submission-general-task-2.md | 1 - 8 files changed, 85 deletions(-) rename wave-2/submissions/{cryptobureau01/cryptoburo_validator_moniker => CryptoBureau01}/submission-bonus-task-1.md (100%) rename wave-2/submissions/{cryptobureau01/cryptoburo_validator_moniker => CryptoBureau01}/submission-bonus-task-2.md (100%) rename wave-2/submissions/{cryptobureau01/cryptoburo_validator_moniker => CryptoBureau01}/submission-bonus-task-3.md (100%) rename wave-2/submissions/{cryptobureau01/cryptoburo_validator_moniker => CryptoBureau01}/submission-general-task-1.md (100%) rename wave-2/submissions/{cryptobureau01/cryptoburo_validator_moniker => CryptoBureau01}/submission-general-task-2.md (100%) delete mode 100644 wave-2/submissions/cryptobureau01/data.json delete mode 100644 wave-2/submissions/cryptobureau01/submission-general-task-1.md delete mode 100644 wave-2/submissions/cryptobureau01/submission-general-task-2.md diff --git a/wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-1.md b/wave-2/submissions/CryptoBureau01/submission-bonus-task-1.md similarity index 100% rename from wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-1.md rename to wave-2/submissions/CryptoBureau01/submission-bonus-task-1.md diff --git a/wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-2.md b/wave-2/submissions/CryptoBureau01/submission-bonus-task-2.md similarity index 100% rename from wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-2.md rename to wave-2/submissions/CryptoBureau01/submission-bonus-task-2.md diff --git a/wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-3.md b/wave-2/submissions/CryptoBureau01/submission-bonus-task-3.md similarity index 100% rename from wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-bonus-task-3.md rename to wave-2/submissions/CryptoBureau01/submission-bonus-task-3.md diff --git a/wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-general-task-1.md b/wave-2/submissions/CryptoBureau01/submission-general-task-1.md similarity index 100% rename from wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-general-task-1.md rename to wave-2/submissions/CryptoBureau01/submission-general-task-1.md diff --git a/wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-general-task-2.md b/wave-2/submissions/CryptoBureau01/submission-general-task-2.md similarity index 100% rename from wave-2/submissions/cryptobureau01/cryptoburo_validator_moniker/submission-general-task-2.md rename to wave-2/submissions/CryptoBureau01/submission-general-task-2.md diff --git a/wave-2/submissions/cryptobureau01/data.json b/wave-2/submissions/cryptobureau01/data.json deleted file mode 100644 index 7044640e2..000000000 --- a/wave-2/submissions/cryptobureau01/data.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "validator_address": "0x6E7134E338a4a29813d6858E3039128dC6AEC1BE", - "discord_id": "1186189784650092727", - "discord_username": "testerboy08" -} diff --git a/wave-2/submissions/cryptobureau01/submission-general-task-1.md b/wave-2/submissions/cryptobureau01/submission-general-task-1.md deleted file mode 100644 index 34bba4f4b..000000000 --- a/wave-2/submissions/cryptobureau01/submission-general-task-1.md +++ /dev/null @@ -1,79 +0,0 @@ -# Submission-General-Task-1 - -## Automatic installer for the Story node - -## Tool Installation Command - -To install the necessary tools for managing your Story Protocol node, run the following command in your terminal: - -```bash -cd $HOME && wget https://raw.githubusercontent.com/CryptoBureau01/Story-Node/main/setup.sh && chmod +x setup.sh && ./setup.sh -``` - -### Sources Repository: -[Story-Node-Tool Setup Script](https://github.com/CryptoBureau01/Story-Node/blob/main/setup.sh) - - -# Summary for Auto Script - Node Management - -This script is designed to streamline and simplify node management operations for the Story Protocol. It offers a user-friendly, menu-driven interface that enables users to perform a wide range of tasks with minimal manual intervention. - -## Key Features: -- **Dependency Management**: Easily install and configure all necessary dependencies for the node. -- **Binary Setup**: Manage binaries, including installation and updates, ensuring that the node runs on the correct versions. -- **Node Operations**: Start, stop, refresh, and monitor the status of the node through simple commands. -- **Validator Key Management**: Set up and manage validator keys, including functions for key generation, backup, and recovery. -- **Staking and Balances**: Check balances, stake tokens, and interact with the network in a secure and efficient manner. -- **Backup and Recovery**: Provides options for backing up and restoring node data, ensuring that important information is always safeguarded. - -The script is interactive and waits for user input to select the desired operation, making it accessible to both beginners and experienced users managing Story Protocol nodes. By automating key tasks, the script reduces the complexity of node management, allowing users to focus on higher-level tasks. - - - -# Code Breakdown (Menu Function) - -1. **node_management_menu()**: - - This is the primary function that displays a menu to the user. - - The menu has 20 different options for managing various aspects of the Story Protocol node. - - **Options List**: A list of available actions, like "Install Dependencies," "Story-Geth Binary Setup," "Node Status," etc., is presented to the user. - - The script waits for user input, validates the selection, and then calls the appropriate function corresponding to the chosen option. - -2. **Menu Options**: - - Each option is mapped to a specific function that performs a task. For example: - - 1. **Install-Dependencies**: Installs required software packages and libraries for the node. - 2. **Story-Geth Binary Setup**: Sets up the Story-Geth binary for Ethereum-like layer interaction. - 3. **Story Binary Setup**: Configures the Story Protocol's main binary for node operation. - 4. **Setup Moniker Name**: Assigns a unique name (moniker) for your node. - 5. **Update-Peers**: Updates the node’s peer list for network synchronization. - 6. **Update-Snapshot**: Syncs the node using the latest blockchain snapshot. - 7. **Stop-Node**: Safely stops the node's processes. - 8. **Start-Node**: Starts and activates the node on the network. - 9. **Refresh-Node**: Restarts the node to apply updates without long downtime. - 10. **Logs-Checker**: Displays the node's logs for monitoring and debugging. - 11. **Node-Status**: Shows the current status and health of the node. - 12. **Validator-Info**: Provides details about the node’s validator status. - 13. **Private-Key Checker**: Verifies and shows the node’s private key. - 14. **Balance-Checker**: Checks the node’s token balance. - 15. **Stake-IP**: Stakes tokens for validator participation. - 16. **UnStake-IP**: Unstakes tokens, removing them from the staking pool. - 17. **Full-Backup**: Backs up the node’s data and configurations. - 18. **Recovery-Backup**: Restores a previously created backup. - 19. **Remove-Node**: Completely uninstalls the node setup. - 20. **Exit**: Closes the script and exits the menu. - -3. **Interactive Prompt**: - The `while true` loop keeps the script running until the user selects the "Exit" option (Option 20). - For each selection, the script displays relevant information and calls the corresponding function to perform the action. - -4. **Error Handling**: - If an invalid option is chosen, the script prompts the user to enter a valid number (between 1 and 20). - - -# Conclusion -This Auto Script for Node Management on the Story Protocol has been created by CryptoBuroMaster. It is a comprehensive solution designed to simplify and enhance the node management experience. By providing a clear and organized interface, it allows users to efficiently manage their nodes with ease. Whether you are a newcomer or an experienced user, this script empowers you to handle node operations seamlessly, ensuring that you can focus on what truly matters in your blockchain journey. - - - -### Sources Repository -[Story-Node-Tool Setup Script](https://github.com/CryptoBureau01/Story-Node/blob/main/setup.sh) diff --git a/wave-2/submissions/cryptobureau01/submission-general-task-2.md b/wave-2/submissions/cryptobureau01/submission-general-task-2.md deleted file mode 100644 index 8b1378917..000000000 --- a/wave-2/submissions/cryptobureau01/submission-general-task-2.md +++ /dev/null @@ -1 +0,0 @@ -