Skip to content

Commit

Permalink
initia added (#102)
Browse files Browse the repository at this point in the history
* initia added skeleton

* initia added tools

* initia updated sync

* initia updated info

* updated positions
  • Loading branch information
karloinv committed May 14, 2024
1 parent fc4bb04 commit 5029a95
Show file tree
Hide file tree
Showing 23 changed files with 230 additions and 11 deletions.
4 changes: 4 additions & 0 deletions docs/initia/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Initia",
"position": 12
}
40 changes: 40 additions & 0 deletions docs/initia/endpoints.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
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 Initia's nodes, querying the node's state and transmitting transactions within the Initia Network.
> The gRPC endpoint enables user interactions with a Initia Node through the efficient gRPC framework. In the Cosmos SDK, this protocol is crucial for state queries and transaction broadcasts.
<Tabs>
<TabItem value="api" label="API" default>

```bash
https://initia-testnet-api.f5nodes.com
```

</TabItem>
<TabItem value="rpc" label="RPC">

```bash
https://initia-testnet-rpc.f5nodes.com
```

</TabItem>
<TabItem value="grpc" label="gRPC">


```bash
initia-testnet-rpc.f5nodes.com:9890
```

</TabItem>
</Tabs>
Binary file added docs/initia/img/initia.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions docs/initia/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Initia

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

<MainpageMetrics rpc="https://initia-testnet-rpc.polkachu.com/" binary="initiad" />

[Initia](https://initia.xyz/) is an L1 blockchain on Cosmos with application-specific L2s (Layer 2) using Optimistic rollups. Through Initia's architecture, encompassing the L1, L2, and communication layers, developers can easily launch application-specific blockchains as Initia L2s without needing to know complex chain-level infrastructure or run validator sets.

The Initia L1 is an interoperable network that employs MoveVM, the first integration of the Move Smart Contracting Language natively compatible with Cosmos' Inter-Blockchain Communication (IBC) protocol. Furthermore, Initia's architecture enables L2s to utilize EVM, WasmVM, or MoveVM while facilitating seamless messaging and bridging between them. Initia uses a robust economic system to align incentives throughout the entire ecosystem.


![initia](./img/initia.png)

[Website](https://initia.xyz/) | [Blog](https://medium.com/@initiafdn) | [GitHub](https://github.com/initia-labs) | [Twitter](https://twitter.com/initiaFDN) | [Discord](https://discord.com/invite/initia) | [Docs](https://docs.initia.xyz/)

```mdx-code-block
import DocCardList from '@theme/DocCardList';
<DocCardList />
```
4 changes: 4 additions & 0 deletions docs/initia/sync/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Sync",
"position": 2
}
24 changes: 24 additions & 0 deletions docs/initia/sync/addrbook.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
sidebar_position: 4
description: AddrBook
---

# AddrBook

> Address book refers to a local database or record that a node maintains of all the peers it has come into contact with or learned about. This helps in the peer discovery process.
import SelectPaste from '@site/src/components/SelectPaste';

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

export let endpoints = [
'https://snapshots.kjnodes.com/initia-testnet/addrbook.json',
'https://rpc-initia-testnet.trusted-point.com/addrbook.json',
'https://support.synergynodes.com/addrbook/initia_testnet/addrbook.json',
];

export let home = 'initia';

export let binary = 'initiad';

<SelectPaste endpoints={endpoints} codeTemplate={addrBook} home={home} binary={binary} tip="Click on any endpoint to paste it into the code block." />
20 changes: 20 additions & 0 deletions docs/initia/sync/peers-seeds.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
sidebar_position: 3
description: Live Peers / Seeds
---

# Live Peers / Seeds

> When you start a node, you often need to connect to the network. This requires you to connect to one or more peers to start downloading the blockchain and receiving new blocks and transactions. Seeding nodes or bootstrap nodes help in this initial connection process.
:::info
Copy and run the commands below to add your peers into `config.toml`.
:::

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

export let home = 'lava';

export let binary = 'lavad';

<LivePeers rpc="https://initia-testnet-rpc.polkachu.com" home={home} binary={binary} />
45 changes: 45 additions & 0 deletions docs/initia/sync/snapshot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
sidebar_position: 1
description: Snapshot
---

# Snapshot

> When a new node joins a network, it can use a snapshot — a compressed backup of the chain's data — to quickly synchronize with the current state. Snapshots expedite the process, reducing the need to download and verify every transaction from the beginning.
import Snapshots from '@site/src/components/Snapshots';

<Snapshots tip="Click on any snapshot to paste it into the code block." endpoint="https://initia-testnet-snapshots.f5nodes.com/"/>

:::info
Snapshots are taken every <i>6 hours</i>.
:::


```bash
sudo systemctl stop initiad

# make a backup
cp $HOME/.initia/data/priv_validator_state.json $HOME/.initia/priv_validator_state.json.backup

# reset your node and download a snapshot
initiad tendermint unsafe-reset-all --home $HOME/.initia --keep-addr-book
wget <snapshot_url> | lz4 -dc - | tar -xf - -C $HOME/.initia

# replace the priv_validator_state.json you have backed up
mv $HOME/.initia/priv_validator_state.json.backup $HOME/.initia/data/priv_validator_state.json

sudo systemctl restart initiad && sudo journalctl -u initiad -f -o cat
```

You can also use other snapshots:

#### Trusted Point:
```bash
https://rpc-initia-testnet.trusted-point.com/latest_snapshot.tar.lz4
```

#### kjnodes:
```bash
https://snapshots.kjnodes.com/initia-testnet/snapshot_latest.tar.lz4
```
25 changes: 25 additions & 0 deletions docs/initia/sync/state-sync.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
sidebar_position: 2
description: State Sync
---

# State Sync

> State Sync allows new nodes to join a blockchain network by downloading a recent snapshot of the application state instead of processing all historical blocks. This approach is typically faster and requires less data, as the application state is usually more concise than the entire block history.
import SelectPaste from '@site/src/components/SelectPaste';

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

export let endpoints = [
'https://initia-testnet.rpc.kjnodes.com:443',
'https://rpc-initia-testnet.trusted-point.com:443',
'https://initia-testnet-rpc.f5nodes.com:443',
'https://initia-testnet-rpc.synergynodes.com:443',
];

export let home = 'initia';

export let binary = 'initiad';

<SelectPaste endpoints={endpoints} codeTemplate={stateSync} home={home} binary={binary} tip="Click on any RPC to paste it into the code block." />
4 changes: 4 additions & 0 deletions docs/initia/useful-tools.md/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"label": "Useful Resources",
"position": 3
}
15 changes: 15 additions & 0 deletions docs/initia/useful-tools.md/explorers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
sidebar_position: 1
description: Explorers
---

# Explorers

> A block explorer is a search engine that allows users to access and explore the contents of individual blocks, transactions, validators, and addresses on a blockchain. It provides a visual interface to navigate the intricate details of blockchain operations.
### There are a number of explorers that you can use for Initia:

| Name | Layer | Network | URL |
| --- | --- | --- | --- |
| Initia (official) | Cosmos | initiation-1 | https://scan.testnet.initia.xyz/initiation-1 |
| kjnodes | Cosmos | initiation-1 | https://explorer.kjnodes.com/initia-testnet |
18 changes: 18 additions & 0 deletions docs/initia/useful-tools.md/other-tools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
sidebar_position: 3
description: Other-tools
---

# Other Tools

> This page is a repository of valuable tools and resources offered by the Initia Community, including monitoring systems, dashboards, and versatile platforms. These resources are designed to enhance your capabilities and are backed by Initia Community's commitment to support your needs.
:::info
The following page contains links to third-party content. Initia does not endorse or provide support for these contributions.
:::

To contribute your own resource, simply click on **Edit this page** at the bottom, insert your resource using Markdown formatting, and then initiate a pull request for the submission to be reviewed.

| Contribution | Description | Author | Date added/updated |
| --- | --- | --- | --- |
| [Governance Bot](https://t.me/kjnodes_testnet_proposal_bot) | A telegram bot to notify users of governance proposals when they're available for voting. | [kjnodes](https://github.com/kj89) | 2024-14-05 |
2 changes: 1 addition & 1 deletion docs/injective/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Injective",
"position": 12
"position": 13
}
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": 13
"position": 14
}
2 changes: 1 addition & 1 deletion docs/namada/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Namada",
"position": 14
"position": 15
}
2 changes: 1 addition & 1 deletion docs/nibiru/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Nibiru",
"position": 15
"position": 16
}
2 changes: 1 addition & 1 deletion docs/quicksilver/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Quicksilver",
"position": 16
"position": 17
}
2 changes: 1 addition & 1 deletion docs/realio-network/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Realio Network",
"position": 17
"position": 18
}
2 changes: 1 addition & 1 deletion docs/sge-network/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "SGE Network",
"position": 18
"position": 19
}
2 changes: 1 addition & 1 deletion docs/side-protocol/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Side Protocol",
"position": 19
"position": 20
}
2 changes: 1 addition & 1 deletion docs/sui/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Sui",
"position": 20
"position": 21
}
2 changes: 1 addition & 1 deletion docs/xion/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Xion",
"position": 21
"position": 22
}
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": 22
"position": 23
}

0 comments on commit 5029a95

Please sign in to comment.