-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from vsc-eco/feature/rework
Feature/rework
- Loading branch information
Showing
28 changed files
with
2,814 additions
and
828 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# FAQ | ||
|
||
## Do we supply node snapshots for node operators? | ||
|
||
No, you're node should sync up in ~1 day. If it takes significantly longer than that, contact us. | ||
|
||
## Are there any node rewards? | ||
|
||
Not yet. We have plans of doing a proof of burn model were node operators essentially buy credits to produce blocks. Then, when you produce blocks, you'd get a small reward on top of your initial investment. | ||
Note: We are not guaranteeing any specifics at the moment. This is subject to change as we do addition research. | ||
|
||
## When will I be able to deploy my token on VSC? | ||
|
||
We do not have a specific timeline for this. | ||
However, we are currently working on token and wrapping technology internally with HIVE, HBD, and BTC. Once all the kinks are ironed out with that, we will define public token standard(s) and create a reference implementation for each of those standard(s). | ||
|
||
## How do I run a node? | ||
|
||
Checkout [this repository](https://github.com/vsc-eco/vsc-deployment). | ||
|
||
## Why do I see Error: No withdrawals to process? | ||
|
||
This is typically normal, especially when your node is re-indexing. Most blocks don't generate withdrawals from the multisig, at the moment. In fact, at the time of writing, there should only be 1 withdrawal from vaultec, so you should see this message many times in your logs. | ||
|
||
## How do to update a node? | ||
|
||
Firstly, be sure to use the deployment from #4 faqs and then run sudo docker-compose up -d. This will pull the latest VSC node docker image automatically. | ||
|
||
## How to check if a node is up to date? | ||
|
||
`sudo docker-compose exec vsc-node cat .git/refs/heads/main` | ||
|
||
This will show you the commit you are on. | ||
|
||
Then you can compare it the latest commit in the vsc-node [GitHub repo](https://github.com/vsc-eco/vsc-node/commits/main/). | ||
|
||
## How do I migrate from the vsc-node repo to the vsc-deployment repo? | ||
|
||
1) cd ~/vsc-node (or where ever your vsc-node repo is) | ||
2) sudo docker-compose down | ||
3) sudo ./migrate.sh | ||
4) cd ../vsc-deployment (or where ever you set the new repo to be) | ||
5) sudo docker-compose up -d | ||
|
||
## How do I start writing a smart contract on VSC? | ||
|
||
This is our contract template. It should be enough to get started. There is usage and suggestions in [this repo](https://github.com/vsc-eco/contract-template) README. | ||
|
||
Also, [here is a DEX](https://github.com/vsc-eco/dex) that we are working on that tries to use/showcase best practices for writing VSC contracts. | ||
|
||
As for a formal docs site, we don't have that at the moment. | ||
|
||
However, you can checkout the AssemblyScript docs for usage of the smart contract language. It is very similar to TypeScript. Then, everything you need to interface with the VSC chain state is available in the @vsc.eco/sdk npm package. | ||
|
||
If you have any concrete suggestions about what we should include in a formal documentation site, please let us know. | ||
|
||
## Why is the documentation structured in this way? | ||
|
||
The documentation approach is based on the _Diátaxis_ principle. You can watch a summary about it [here](https://www.youtube.com/watch?v=t4vKPhjcMZg). |
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Generate wallet | ||
|
||
VSC on its layer 2 supports _ed25519_ compatible wallets. Those are called lite accounts in the context of VSC. They can be generated in various ways. Below you have the current recommended options. | ||
|
||
## Official wallet generator | ||
|
||
The offical recommended way to generate a lite account is via the wallet generator repository. | ||
|
||
It is based on NodeJS and is fairly lightweight. | ||
|
||
Clone the repository, install the node modules and run the generator. | ||
|
||
Take a look at [the repository here](https://github.com/vsc-eco/wallet-generator). |
96 changes: 49 additions & 47 deletions
96
docs/getting-started/Running a node.mdx → docs/how-to/host-node.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,49 @@ | ||
--- | ||
slug: running-a-node | ||
sidebar_position: 2 | ||
|
||
--- | ||
|
||
<iframe src="https://3speak.tv/embed?v=vsc.network/vqtkycsg" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"></iframe> | ||
|
||
# Running a node | ||
|
||
This tutorial will guide you through the process of setting up a VSC node . | ||
|
||
Requirements: | ||
- Hive account (50HP, will rise in the future) | ||
- Technical knowledge of using a command line interface | ||
- Docker and docker-compose installed. Please see [https://docs.docker.com/get-docker/](https://docs.docker.com/get-docker/) for installation guide for docker. | ||
|
||
System requirements are very low, in the future requirements will rise as network usage incrases. | ||
|
||
System requirements: | ||
- Raspberry pi 4 or better | ||
- 4 cores, 2GB ram or better | ||
|
||
|
||
The setup: | ||
|
||
1 ) `git clone https://github.com/vsc-eco/vsc-node` | ||
|
||
2 ) `cd vsc-node` | ||
|
||
3 ) < Fill in .env file here > | ||
|
||
You'll need to create a .env file with the following values from the .env.example file. | ||
|
||
``` | ||
# Fill these in with your hive account details | ||
HIVE_ACCOUNT=Insert hive account username | ||
HIVE_ACCOUNT_POSTING=Insert hive account posting key | ||
HIVE_ACCOUNT_ACTIVE=Insert hive account active key | ||
``` | ||
|
||
We generally recommend you use a different Hive account from your main account. | ||
|
||
|
||
4 ) `docker-compose up -d` | ||
|
||
You should be off to the races at this point! We can verify that your node is operating correctly on our discord server. Please actively monitor our Hive blog and discord server for incoming updates regarding VSC. You will need to consistent update your node as we release new versions of the software. Staying up to date with the rest of the network is critical in ensuring reliable operation of the network. | ||
# Running a node | ||
|
||
This document will guide you through the process of setting up a VSC node . | ||
|
||
## Prerequisites | ||
|
||
Requirements: | ||
- Hive account (50HP, will rise in the future) | ||
- Technical knowledge of using a command line interface | ||
- Docker and docker-compose installed. Please see [https://docs.docker.com/get-docker/](https://docs.docker.com/get-docker/) for installation guide for docker. | ||
|
||
System requirements are very low, in the future requirements will rise as network usage incrases. | ||
|
||
System requirements: | ||
- Raspberry pi 4 or better | ||
- 4 cores, 2GB ram or better | ||
|
||
## Video guide | ||
|
||
<iframe src="https://3speak.tv/watch?v=vsc.network/uthosijv" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture; fullscreen"></iframe> | ||
|
||
## Setup | ||
|
||
The setup: | ||
|
||
1 ) `git clone https://github.com/vsc-eco/vsc-node` | ||
|
||
2 ) `cd vsc-node` | ||
|
||
3 ) < Fill in .env file here > | ||
|
||
You'll need to create a .env file with the following values from the .env.example file. | ||
|
||
``` | ||
# Fill these in with your hive account details | ||
HIVE_ACCOUNT=Insert hive account username | ||
HIVE_ACCOUNT_POSTING=Insert hive account posting key | ||
HIVE_ACCOUNT_ACTIVE=Insert hive account active key | ||
``` | ||
|
||
We generally recommend you use a different Hive account from your main account. | ||
|
||
|
||
4 ) `docker-compose up -d` | ||
|
||
You should be off to the races at this point! We can verify that your node is operating correctly on our discord server. Please actively monitor our Hive blog and discord server for incoming updates regarding VSC. You will need to consistent update your node as we release new versions of the software. Staying up to date with the rest of the network is critical in ensuring reliable operation of the network. | ||
|
||
You can disable automatic updates by setting the environment variable AUTO_UPDATE to false. However, we recommend to keep this feature enabled to ensure the node is always up-to-date. In our rapidly evolving ecosystem, it's crucial to keep the node updated for optimal network health. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Account types | ||
|
||
The VSC network supports various account types for authentification. | ||
|
||
## DID | Private/ Public key | ||
|
||
You can authenticate yourself with an _ed25519_ compatible private/ public key pair. | ||
|
||
For a tutorial on how to generate such keys, please take a look at [this document](../how-to/generate-wallet.md). | ||
|
||
## HIVE | ||
|
||
You can directly use your [HIVE](https://hive.io/) account to communicate with the VSC network. | ||
|
||
To register a HIVE account, you need someone with an existing account to invite you to the network. | ||
|
||
This is also offered as a service by various providers. For more information please take a look at [HIVE's signup page](https://signup.hive.io/). | ||
|
||
## ETH | ||
|
||
We do support Ethereum based wallets. | ||
|
||
Create your Ethereum wallet via a [known provider](https://ethereum.org/en/wallets/) with access to your keys. We only support self-custodial wallets. |
Oops, something went wrong.