Skip to content

Commit

Permalink
Merge pull request #29 from AstarNetwork/modify-infra-section
Browse files Browse the repository at this point in the history
Modified infra sections
  • Loading branch information
jakehemmerle committed Jul 15, 2022
2 parents 91e0f2e + e5e7b07 commit b93f992
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 29 deletions.
4 changes: 2 additions & 2 deletions docs/nodes/archive-node/binary.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sudo apt install -y adduser libfontconfig1
Download the [latest release](https://github.com/AstarNetwork/Astar/releases/latest) from Github:

```sh
wget $(curl -s https://api.github.com/repos/AstarNetwork/Astar/releases/latest | grep "tag_name" | awk '{print "https://github.com/PlasmNetwork/Plasm/releases/download/" substr($2, 2, length($2)-3) "/astar-collator-" substr($2, 3, length($2)-4) "-ubuntu-x86_64.tar.gz"}')
wget $(curl -s https://api.github.com/repos/AstarNetwork/Astar/releases/latest | grep "tag_name" | awk '{print "https://github.com/AstarNetwork/Astar/releases/download/" substr($2, 2, length($2)-3) "/astar-collator-" substr($2, 3, length($2)-4) "-ubuntu-x86_64.tar.gz"}')
tar -xvf astar-collator*.tar.gz
```

Expand Down Expand Up @@ -202,7 +202,7 @@ When an upgrade is necessary, node operators are be notified in our [Discord](ht
Download the [latest release](https://github.com/AstarNetwork/Astar/releases/latest) from Github

```sh
wget $(curl -s https://api.github.com/repos/AstarNetwork/Astar/releases/latest | grep "tag_name" | awk '{print "https://github.com/PlasmNetwork/Plasm/releases/download/" substr($2, 2, length($2)-3) "/astar-collator-" substr($2, 3, length($2)-4) "-ubuntu-x86_64.tar.gz"}')
wget $(curl -s https://api.github.com/repos/AstarNetwork/Astar/releases/latest | grep "tag_name" | awk '{print "https://github.com/AstarNetwork/Astar/releases/download/" substr($2, 2, length($2)-3) "/astar-collator-" substr($2, 3, length($2)-4) "-ubuntu-x86_64.tar.gz"}')
tar -xvf astar-collator*.tar.gz
```

Expand Down
8 changes: 5 additions & 3 deletions docs/nodes/archive-node/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ An **archive node** keeps all the past blocks. It plays a vital role on a blockc

**Dapp projects** need to run their own archive node to retrieve blockchain data they use in order not to rely on public infrastructure that will respond slower because of the large amount of users connected.

> Note: be careful of the confusion with a **full node** that has a prunned database: a full node only keeps the past 256 blocks and uses much less storage space.
:::note
Be careful of the confusion with a **full node** that has a prunned database: a full node only keeps the past 256 blocks and uses much less storage space.
:::

We are manitaining 3 different networks: the testnet Shibuya, Shiden as a parachain of Kusama, and Astar as a parachain of Polkadot.

| Astar chain | Relay Chain | Name | Token |
|---|---|---|---|
| Testnet | Kyoto (hosted by Astar) | Shibuya | $SBY |
| Testnet | Tokyo (hosted by Astar) | Shibuya | $SBY |
| Shiden | Kusama | Shiden | $SDN |
| Astar | Polkadot | Astar | $ASTR |

## Requirements

Requirements for running any node are similar to what we recommend to our collators. Depending on the amount and frequency of data requested by a dApp, it may require a larger server. Read more about this here.
Requirements for running any node are similar to what we recommend to our collators. Depending on the amount and frequency of data requested by a dApp, it may require a larger server. Read more about this [here](../collator/requirements).
4 changes: 2 additions & 2 deletions docs/nodes/collator/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Make sure your server is only dedicated to the collator node
- **System**: Ubuntu 20.04
- **Dedicated server**
- **CPU**: 8 cores
- **Memory**: 32 GB
- **Hard Disk**: 250 GB SSD NVMe (storage space will increase with time)
- **Memory**: 16 GB
- **Hard Disk**: 400 GB SSD NVMe (Shiden/Shibuya - 250 GB. storage space will increase with time)

:::tip
Shibuya is the perfect network to test out your knowledge about running nodes in the Astar ecosystem. To join the collator set on Shibuya you need to apply for a 32k SBY fund.
Expand Down
12 changes: 6 additions & 6 deletions docs/nodes/ultimateguide/building_node.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ The easiest way to install an Astar node is to download the binaries. You can fi
Get the file and extract:

```
wget $(curl -s https://api.github.com/repos/AstarNetwork/Astar/releases/latest | grep "tag_name" | awk '{print "https://github.com/PlasmNetwork/Plasm/releases/download/" substr($2, 2, length($2)-3) "/astar-collator-" substr($2, 3, length($2)-4) "-ubuntu-x86_64.tar.gz"}')
wget $(curl -s https://api.github.com/repos/AstarNetwork/Astar/releases/latest | grep "tag_name" | awk '{print "https://github.com/AstarNetwork/Astar/releases/download/" substr($2, 2, length($2)-3) "/astar-collator-" substr($2, 3, length($2)-4) "-ubuntu-x86_64.tar.gz"}')
```

```
Expand Down Expand Up @@ -123,13 +123,13 @@ Let's first go to our binary directory and start the collator manually:
cd /usr/local/bin
## Astar
./astar-collator --validator --chain astar --parachain-id 2006 --name COLLATOR_NAME --rpc-cors all --base-path /var/lib/astar --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --execution wasm --state-cache-size 1
./astar-collator --collator --chain astar --parachain-id 2006 --name COLLATOR_NAME --rpc-cors all --base-path /var/lib/astar --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --execution wasm --state-cache-size 1
## Shiden
./astar-collator --validator --chain shiden --name COLLATOR_NAME --rpc-cors all --base-path /var/lib/astar --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --execution wasm --state-cache-size 1
./astar-collator --collator --chain shiden --parachain-id 2007 --name COLLATOR_NAME --rpc-cors all --base-path /var/lib/astar --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --execution wasm --state-cache-size 1
## Shibuya
./astar-collator --validator --chain shibuya --parachain-id 1000 --name COLLATOR_NAME --rpc-cors all --base-path /var/lib/astar --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --execution wasm --state-cache-size 1
./astar-collator --collator --chain shibuya --parachain-id 1000 --name COLLATOR_NAME --rpc-cors all --base-path /var/lib/astar --telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' --execution wasm --state-cache-size 1
```

:::tips
Expand Down Expand Up @@ -170,14 +170,14 @@ User=astar
Group=astar
ExecStart=/usr/local/bin/astar-collator \
--validator \
--collator \
--rpc-cors all \
--name ${COLLATOR_NAME} \
--chain astar \
--parachain-id 2006 \
--base-path /var/lib/astar \
--telemetry-url 'wss://telemetry.polkadot.io/submit/ 0' \
--execution wasm\
--execution wasm \
--state-cache-size 1
Restart=always
Expand Down
4 changes: 2 additions & 2 deletions docs/nodes/ultimateguide/create_environnement.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ We will provide a basic configuration for reference, which guarantees that all b
- System: Ubuntu 20.04
- A dedicated server dedicated to the collator node
- CPU: 8 cores
- Memory: 32 GB
- Hard Disk: 250 GB SSD (storage space will increase with time)
- Memory: 16 GB
- Hard Disk: 400 GB SSD (Shiden/Shibuya - 250GB. storage space will increase with time)

**Basic minimum testnet configuration:**

Expand Down
7 changes: 0 additions & 7 deletions docs/quickstart/demo.md

This file was deleted.

63 changes: 57 additions & 6 deletions docs/quickstart/endpoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,70 @@ import TabItem from '@theme/TabItem';

There are public endpoints available for development on Shibuya (testnet) but for Astar or Shiden, you'll need to get your own endpoint from one of the supported providers. You can always run your own RPC nodes.

**Astar is not responsible for your project downtime when using Astar public endpoint.**
:::note
**We recommend building your own endpoints or using our infra partners to make sure you have full control over them.**
Astar is not responsible for your project downtime when using Astar free public endpoint for community.
Currently, endpoints provided by Astar team have rate limits 10 reqs/sec. There is a possibility that this value will be lowered.
:::

<Tabs>
<TabItem value="astar" label="Astar Network" default>

| | Public endpoint Astar |
| --- | --- |
| Network | Astar |
| Parent chain | Polkadot |
| ParachainID | 2006 |
| EVM RPC | https://astar.api.onfinality.io/public |
| | https://astar.public.blastapi.io |
| | https://evm.astar.network (hosted by Astar team) |
| Native RPC | https://astar.api.onfinality.io/public |
| | https://astar.public.blastapi.io |
| Native Websocket | wss://astar.api.onfinality.io/public-ws |
| | wss://astar.public.blastapi.io |
| | wss://rpc.astar.network (hosted by Astar team) |
| chainID | 592 |
| Symbol | ASTR |

</TabItem>

<TabItem value="shiden" label="Shiden Network" default>

| | Public endpoint Shiden |
| --- | --- |
| Network | Shiden |
| Parent chain | Kusama |
| ParachainID | 2007 |
| EVM RPC | https://shiden.api.onfinality.io/public |
| | https://shiden.public.blastapi.io |
| | https://evm.shiden.astar.network (hosted by Astar team) |
| Native RPC | https://shiden.api.onfinality.io/public |
| | https://shiden.public.blastapi.io |
| Native Websocket | wss://shiden.api.onfinality.io/public-ws |
| | wss://shiden.public.blastapi.io |
| | wss://rpc.shiden.astar.network (hosted by Astar team) |
| chainID | 336 |
| Symbol | SDN |

</TabItem>

<TabItem value="shibuya" label="Shibuya Network" default>

| | Public endpoint Shibuya |
| --- | --- |
| Network | Shibuya (parachain testnet) |
| Parent chain | Astar relay chain |
| Parent chain | Tokyo relay chain (hosted by Stake Technologies) |
| ParachainID | 1000 |
| WSS | wss://rpc.shibuya.astar.network |
| RPC | https://rpc.shibuya.astar.network:8545 |
| EVM RPC | https://shibuya.public.blastapi.io |
| | https://evm.shibuya.astar.network (hosted by Astar team) |
| Native RPC | https://shibuya.public.blastapi.io |
| Native Websocket | wss://shibuya.public.blastapi.io |
| | wss://rpc.shibuya.astar.network (hosted by Astar team) |
| chainID | 81 |
| Symbol | SBY |
| Block explorer | https://shibuya.subscan.io |
| | https://blockscout.com/shibuya |

</TabItem>
</Tabs>


## Endpoint providers
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart/explorers.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Astar provides two different kinds of explorers: one that combines Substrate and
<p><b>Polkadot JS:</b> <a href="https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fshiden.api.onfinality.io%2Fpublic-ws#/explorer">https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fshiden.api.onfinality.io%2Fpublic-ws#/explorer</a></p>

</TabItem>
<TabItem value="shibuya" label="Shibuya">
<TabItem value="shibuya" label="Shibuya Network">
<p>Subscan is the most used explorer in the Polkadot ecosystem. With Subscan you can search the complete Astar Network. Subscan support Substrate and Ethereum API. BlockScout is the best explorer for developers who are building in our EVM environment, it has all the features as EtherScan.</p>
<p><b>Subscan:</b> <a href="https://shibuya.subscan.io">https://shibuya.subscan.io</a></p>
<p><b>BlockScout:</b> <a href="https://blockscout.com/shibuya">https://blockscout.com/shibuya</a></p>
Expand Down

0 comments on commit b93f992

Please sign in to comment.