Skip to content

Commit

Permalink
dymension added & bugs fixed (#32)
Browse files Browse the repository at this point in the history
* telegram-bots.md updated

* other-tools.md updated

* other-tools.md updated

* telegram-bots.md updated

* explorers.md updated

* _category_.json created

* _category_.json updated

* _category_.json updated

* index.mdx created

* dymension.jpg created

* dymension.jpg uploaded

* endpoints.mdx created

* home & binary added

* home & binary added

* home & binary added

* Delete src/components/SelectPaste/stateSyncLava.ts

* home & binary added

* home & binary added
  • Loading branch information
redwest88 authored Sep 25, 2023
1 parent 6c62928 commit 9d82bf2
Show file tree
Hide file tree
Showing 17 changed files with 79 additions and 51 deletions.
4 changes: 4 additions & 0 deletions docs/dymension/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Dymension",
"position": 4
}
15 changes: 15 additions & 0 deletions docs/dymension/endpoints.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
sidebar_position: 1
description: Endpoints
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Endpoints — API / RPC / gRPC

> In the Cosmos SDK, the gRPC-gateway translates gRPC endpoints into RESTful ones, enabling users to interact via the REST API. This adaptation is essential for clients that don't natively support gRPC or HTTP2.
> The RPC endpoint enables users to interact with Lava's nodes, querying the node's state and transmitting transactions within the Lava Network.
> The gRPC endpoint enables user interactions with a Lava Node through the efficient gRPC framework. In the Cosmos SDK, this protocol is crucial for state queries and transaction broadcasts.
Binary file added docs/dymension/img/dymension.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions docs/dymension/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Dymension

import MainpageMetrics from '@site/src/components/MainpageMetrics';

<MainpageMetrics rpc="https://dymension-testnet-rpc.polkachu.com/" binary="dymd" />

[Dymension](https://dymension.xyz/) is a modular blockchain built for RollApps, or application-specific rollups. The protocol has two main functions:
- acting as a settlement layer for RollApps
- providing a RollApp Development Kit (RDK), a pre-packaged set of generic modules that enable a simple process for building and deploying permission-less RollApps.

![dymension](./img/dymension.jpg)

[Website](https://dymension.xyz/) | [Blog](https://medium.com/@dymension) | [GitHub](https://github.com/dymensionxyz) | [Twitter](https://twitter.com/dymension) | [Discord](https://discord.gg/dymension) | [Docs](https://docs.dymension.xyz/)

```mdx-code-block
import DocCardList from '@theme/DocCardList';
<DocCardList />
```
2 changes: 1 addition & 1 deletion docs/lava-network/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Lava Network",
"position": 4
"position": 5
}
3 changes: 3 additions & 0 deletions docs/lava-network/sync/addrbook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import SelectPaste from '@site/src/components/SelectPaste';

import { addrBook } from '@site/src/components/SelectPaste/addrBook.ts';

export let home = 'lava';
export let binary = 'lavad';

export let endpoints = [
'https://anode.team/Lava/test/addrbook.json',
'http://snapshots.autostake.com/lava-testnet-2/addrbook.json',
Expand Down
3 changes: 3 additions & 0 deletions docs/lava-network/sync/state-sync.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import SelectPaste from '@site/src/components/SelectPaste';

import { stateSync } from '@site/src/components/SelectPaste/stateSync.ts';

export let home = 'lava';
export let binary = 'lavad';

export let endpoints = [
'https://lava.rpc.t.anode.team',
'https://rpc.lava-testnet-2.lava.aviaone.com',
Expand Down
3 changes: 2 additions & 1 deletion docs/lava-network/useful-tools/other-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ https://github.com/milakorn69/lava/tree/main/scripts/automation_scripts

### Monitoring dashboard | Mellifera

>
```bash
https://lava.mellifera.network/monitor/public-dashboards/a601fc0b300742999ed12cadf9de0fd1?orgId=1
```

### Monitoring-tool | NodeJumper

> A powerful and easy-to-use monitoring tool for server hardware and validator nodes with alerts via telegram bot and grafana dashboards
> A powerful and easy-to-use monitoring tool for server hardware and validator nodes with alerts via telegram bot and grafana dashboards.
```bash
https://github.com/nodejumper-org/monitoring-tool
```
7 changes: 4 additions & 3 deletions docs/lava-network/useful-tools/telegram-bots.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ description: Telegram Bots
https://t.me/kjnodes_testnet_proposal_bot
```

#### Governance Bot | NODEJUMPER
#### Governance Bot | NodeJumper

> A telegram bot to notify users of governance proposals when they're available for voting.
```bash
https://t.me/nodejumper_governance_bot

```

#### NodesChecker

Expand All @@ -28,6 +28,7 @@ https://t.me/NodesGuru_bot
```

#### Stake Village | Check Nodes bot
>
```bash
https://t.me/stakeVillage_check_nodes_bot
```
2 changes: 1 addition & 1 deletion docs/zetachain/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Zetachain",
"position": 5
"position": 6
}
2 changes: 1 addition & 1 deletion docs/zetachain/useful-tools/explorers.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: Explorers
### There are a number of explorers that you can use for ZetaChain:

#### ZetaScan
#### ZetaScan (official)
```bash
https://explorer.zetachain.com
```
Expand Down
9 changes: 5 additions & 4 deletions docs/zetachain/useful-tools/other-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ description: Other-tools

# Other Tools

### Network information script by F5 Nodes
> This script provides information about the Zetachain network, validators, and proposals by interacting with the Zetachain RPC API.
### Network information script | F5 Nodes

> This script provides information about the Zetachain network, validators, and proposals by interacting with the Zetachain RPC API.
```bash
https://github.com/f5nodes/zetachain
```
### Monitoring tool by NodeJumper
> A powerful and easy-to-use monitoring tool for server hardware and validator nodes with alerts via telegram bot and grafana dashboards.

### Monitoring tool | NodeJumper

> A powerful and easy-to-use monitoring tool for server hardware and validator nodes with alerts via telegram bot and grafana dashboards.
```bash
https://github.com/nodejumper-org/monitoring-tool
```
Expand Down
9 changes: 5 additions & 4 deletions docs/zetachain/useful-tools/telegram-bots.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,27 @@ description: Telegram Bots

> Telegram bots are designed to monitor nodes, provide real-time alerts and health statistics. Bots deliver instant notifications on server downtimes, resource usage, or governance proposals, enabling administrators to act swiftly in response to any anomalies.
### NodesChecker by Nodes.Guru
### NodesChecker | Nodes.Guru

> Check your nodes status online and receive instant notification if something is wrong with your node.
```bash
https://t.me/NodesGuru_bot
```

### Governance bot by NodeJumper
### Governance bot | NodeJumper

> A telegram bot to notify users of governance proposals when they're available for voting.
```bash
https://t.me/nodejumper_governance_bot
```

### Testnet proposal bot by kjnodes
### Testnet proposal bot | kjnodes
>
```bash
https://t.me/kjnodes_testnet_proposal_bot
```

### UpTime bot by POSTHUMAN
### UpTime bot | Posthuman

> Bot can monitor your node uptime, and not only warns that the validator is already in jail but pings you when your validator starts skipping blocks to keep you out of jail.
```bash
Expand Down
4 changes: 2 additions & 2 deletions src/components/SelectPaste/addrBook.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const addrBook = `curl -s {{endpoint}} > $HOME/.zetacored/config/addrbook.json
export const addrBook = `curl -s {{endpoint}} > $HOME/.{{home}}/config/addrbook.json
sudo systemctl restart zetacored`;
sudo systemctl restart {{binary}}`;
6 changes: 4 additions & 2 deletions src/components/SelectPaste/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ import Admonition from "@theme/Admonition";

interface SelectPasteProps {
endpoints: string[];
home: string[];
binary: string[];
codeTemplate: string;
tip?: string;
}

const SelectPaste: React.FC<SelectPasteProps> = ({ endpoints, codeTemplate, tip }) => {
const SelectPaste: React.FC<SelectPasteProps> = ({ endpoints, home, binary, codeTemplate, tip }) => {
const [selectedEndpoint, setSelectedEndpoint] = useState<string>(endpoints[0]);

const renderedCode = codeTemplate.replace("{{endpoint}}", selectedEndpoint);
const renderedCode = codeTemplate.replace("{{endpoint}}", selectedEndpoint).replace("{{home}}", home).replace("{{binary}}", binary);

return (
<div>
Expand Down
20 changes: 10 additions & 10 deletions src/components/SelectPaste/stateSync.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const stateSync = `sudo systemctl stop zetacored
export const stateSync = `sudo systemctl stop {{binary}}
cp $HOME/.zetacored/data/priv_validator_state.json $HOME/.zetacored/priv_validator_state.json.backup
zetacored tendermint unsafe-reset-all --home $HOME/.zetacored --keep-addr-book
cp $HOME/.{{home}}/data/priv_validator_state.json $HOME/.{{home}}/priv_validator_state.json.backup
{{binary}} tendermint unsafe-reset-all --home $HOME/.{{home}} --keep-addr-book
CUSTOM_RPC="{{endpoint}}"
Expand All @@ -11,12 +11,12 @@ TRUST_HASH=$(curl -s "$CUSTOM_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.bl
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH
sed -i 's|^enable *=.*|enable = true|' $HOME/.zetacored/config/config.toml
sed -i 's|^rpc_servers *=.*|rpc_servers = "'$CUSTOM_RPC,$CUSTOM_RPC'"|' $HOME/.zetacored/config/config.toml
sed -i 's|^trust_height *=.*|trust_height = '$BLOCK_HEIGHT'|' $HOME/.zetacored/config/config.toml
sed -i 's|^trust_hash *=.*|trust_hash = "'$TRUST_HASH'"|' $HOME/.zetacored/config/config.toml
sed -i 's|^enable *=.*|enable = true|' $HOME/.{{home}}/config/config.toml
sed -i 's|^rpc_servers *=.*|rpc_servers = "'$CUSTOM_RPC,$CUSTOM_RPC'"|' $HOME/.{{home}}/config/config.toml
sed -i 's|^trust_height *=.*|trust_height = '$BLOCK_HEIGHT'|' $HOME/.{{home}}/config/config.toml
sed -i 's|^trust_hash *=.*|trust_hash = "'$TRUST_HASH'"|' $HOME/.{{home}}/config/config.toml
mv $HOME/.zetacored/priv_validator_state.json.backup $HOME/.zetacored/data/priv_validator_state.json
mv $HOME/.{{home}}/priv_validator_state.json.backup $HOME/.{{home}}/data/priv_validator_state.json
sudo systemctl restart zetacored
sudo journalctl -u zetacored -f --no-hostname -o cat`;
sudo systemctl restart {{binary}}
sudo journalctl -u {{binary}} -f --no-hostname -o cat`;
22 changes: 0 additions & 22 deletions src/components/SelectPaste/stateSyncLava.ts

This file was deleted.

0 comments on commit 9d82bf2

Please sign in to comment.