diff --git a/docs/lava-blockchain/wallet.mdx b/docs/lava-blockchain/wallet.mdx
index bbdaef56..f211c7f9 100644
--- a/docs/lava-blockchain/wallet.mdx
+++ b/docs/lava-blockchain/wallet.mdx
@@ -1,33 +1,33 @@
---
sidebar_position: 10
-title: Setting Up a Wallet
+title: 设置钱包
slug: /wallet
---
-Lava leverages the Cosmos SDK's bank and account modules for seamless integration with existing Cosmos wallets.
+Lava 利用 Cosmos SDK 的 bank 和 account 模块与现有的 Cosmos 钱包进行无缝集成。
-**Recommendation**: After setting up your wallet, it's crucial to test its functionality. Utilize the [faucet](/faucet#discord-faucet) to acquire testnet tokens. Then, execute a transaction by transferring these tokens to another account and back.
+**建议**:在设置好您的钱包之后,测试其功能至关重要。使用[水龙头](/faucet#discord-faucet)获取测试网络代币。然后,通过将这些代币转账到另一个账户再转回来,执行一笔交易来测试。
-## Choosing a Wallet
+## 选择钱包
-For your convenience, here are some popular wallet options:
+为了您的方便,这里有一些流行的钱包选项:
* [Keplr](#keplr)
* [Leap](#leap)
-* For Advanced Users: [CLI Wallet](#cli)
-* For Advanced Users: [Other Wallets](#other)
+* 对于高级用户:[CLI 钱包](#cli)
+* 对于高级用户:[其他钱包](#other)
-### Keplr Usage {#keplr}
+### Keplr 使用 {#keplr}
-:::info experimental
-Keplr wallet support in Lava is currently experimental.
+:::info 试验性
+在Lava中对Keplr钱包的支持目前是实验性的。
:::
-1. Download and install Keplr from [here](https://www.keplr.app/).
-2. Follow the setup instructions in the Keplr extension. (Note: Hardware wallet support, tested with Ledger, is available.)
-3. Access the Keplr extension.
-
-4. **Refresh this page.**
-5. Click the button below and then select `Approve`.
+1. 从 [此处](https://www.keplr.app/)下载并安装 Keplr。
+2. 按照 Keplr 扩展中的设置说明进行操作。(注:支持硬件钱包,已通过 Ledger 测试)。
+3. 访问 Keplr 扩展。
+
4.
+4. **刷新**此页面。
+5. 点击下面的按钮,然后选择`Approve`。
@@ -93,29 +93,29 @@ window.keplr.experimentalSuggestChain({

-6. Navigate to `Settings` -> `General` -> `Manage Chain Visibility`. Search for `Lava Testnet`, enable it, and click `Save`.
+6. 导航至 "设置"->"常规"->"管理链可见性"。搜索 "Lava Testnet",启用并单击 "保存"。





-7. Return to the Keplr extension, copy the Lava testnet address.
+7. 返回 Keplr 扩展,复制 Lava 测试网地址。


-8. You will now have a Lava address copied to your clipboard, resembling: `lava@11223344556677889900aabbccddeeff1122334`.
+8.现在,您将在剪贴板中复制一个 Lava 地址,类似于:`lava@11223344556677889900aabbccddeeff1122334`。
-### Leap Wallet {#leap}
+### Leap 钱包 {#leap}
-:::info experimental
-Lava's support for the Leap wallet is experimental.
+:::info 试验性
+Lava 对 Leap 钱包的支持是试验性的。
:::
-1. Download and install Leap from [here](https://www.leapwallet.io/).
-2. Complete the setup instructions in the Leap extension. (Hardware wallet support, tested with Ledger, is available.)
-3. Open the Leap extension.
+1. 从[此处](https://www.leapwallet.io/)下载并安装 Leap。
+2. 完成 Leap 扩展中的设置说明。(支持硬件钱包,已通过 Ledger 测试)。
+3. 打开 Leap 扩展。

-4. **Refresh this page**
-5. Click the button below and then select `Approve`.
+4. **刷新此页面**
+5. 点击下面的按钮,然后选择 "批准"。
@@ -182,30 +182,30 @@ window.leap.experimentalSuggestChain({

-6. Open the extension and copy your wallet address.
+6. 打开扩展,复制你的钱包地址。

-7. Your Lava address will be copied to the clipboard, looking like: `lava@11223344556677889900aabbccddeeff1122334`
+7. 您的 Lava 地址将被复制到剪贴板,看起来就像这样: `lava@11223344556677889900aabbccddeeff1122334`
-## CLI Wallet {#cli}
+## CLI 钱包 {#cli}
-:::warning experimental
-This section is intended for advanced users.
+:::warning 实验性
+本节面向高级用户。
:::
-The CLI wallet provides various backends, including support for hardware wallets.
+CLI 钱包提供各种后端,包括对硬件钱包的支持。
-## Account Preparation using CLI {#account}
-Choose your preferred keyring backend... ([What is a keyring?](/key-terms#accounts--wallets)).
+## 使用 CLI 准备账户 {#account}
+选择您喜欢的keyring backend... ([What is a keyring?](/key-terms#accounts--wallets)).
```bash
lavad config keyring-backend [os|file|kwallet|pass|test|memory]
```
-### Adding a Key
+### 添加密钥
:::caution
-Ensure you understand the implications of storing your private key in your chosen keyring.
+确保您理解将私钥存储在所选keyring中的含义。
:::
-1. Substitute $ACCOUNT_NAME with your desired account name:
+1. 将$ACCOUNT_NAME替换为您想要的帐户名:
```bash
current_lavad_binary="$HOME/.lava/cosmovisor/current/bin/lavad"
ACCOUNT_NAME="name_here"
@@ -213,58 +213,58 @@ $current_lavad_binary keys add $ACCOUNT_NAME
```
:::danger
-Securely store your mnemonic in a safe location, as it cannot be retrieved once lost.
+将您的助记符妥善存放在安全的地方,因为一旦丢失就无法找回。
:::
-2. Verify and locate your account in the keys list:
+2. 验证并在密钥列表中找到您的账户:
```bash
$current_lavad_binary keys show $ACCOUNT_NAME
$current_lavad_binary keys list
```
:::caution Pencils out 📝
-Your public address begins with lava@.
+您的公共地址以 lava@ 开头。
:::
-#### Account Recovery
+#### 账户恢复
-1. Recover an existing account using your mnemonic:
+1. 使用助记词恢复现有账户:
```bash
lavad keys add $NEW_NAME --recover
```
-After entering your seed phrase:
+输入助记词短语后:
```bash
$current_lavad_binary keys show $ACCOUNT_NAME
```
-### Using a Hardware Wallet with CLI
+### 通过 CLI 使用硬件钱包
:::info
-These steps are specifically for Ledger hardware wallets, which should be updated and have the Cosmos application installed.
+这些步骤专门针对 Ledger 硬件钱包,它们应已更新并安装了 Cosmos 应用程序。
:::
-Register your Ledger wallet:
+注册您的 Ledger 钱包:
```bash
$current_lavad_binary keys add $ACCOUNT_NAME --ledger
```
:::info
-Always include the --ledger flag in transaction commands when using a Ledger.
+在使用分类账时,务必在事务命令中包含 --ledger 标志。
:::
```bash
$current_lavad_binary tx bank send $ACCOUNT_NAME 10000ulava --from $ACCOUNT_NAME --ledger
```
-For detailed information, visit [Cosmos Ledger Documentation](https://github.com/cosmos/gaia/blob/main/docs/resources/ledger.md) (replace the command with `$current_lavad_binary`).
+详细信息请访问 [Cosmos Ledger Documentation](https://github.com/cosmos/gaia/blob/main/docs/resources/ledger.md)(将命令替换为 `$current_lavad_binary`)。
-## Multisig Wallets
-### Creating a Multisig Wallet
+## 多签钱包
+### 创建多签钱包
-1. Import public keys of signers:
+1. 导入签名者的公钥
```bash
$current_lavad_binary keys add multisig_imported_alice --pubkey '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"data1..."}'
$current_lavad_binary keys add multisig_imported_bob --pubkey '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"data2..."}'
```
-2. Verify the imported keys:
+2. 验证导入的密钥:
```bash
$current_lavad_binary keys show wallet_imported
- address: lava@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
@@ -279,19 +279,19 @@ $current_lavad_binary keys show wallet_generated_keyring
type: local
```
-3. Create a multisig account with imported keys:
+3. 使用导入的密钥创建多重签名账户:
```bash
$current_lavad_binary keys add $MULTISIG_ACCOUNT_NAME --multisig multisig_imported_alice,multisig_imported_bob --multisig-threshold $THRESHOLD
```
-* **$THRESHOLD** - defines the number of signers required for a valid signature
+* **$THRESHOLD** - 定义了有效签名所需的签名人数
-4. Retrieve the multisig public address:
+4. 读取多签公钥
```bash
$current_lavad_binary keys show $MULTISIG_ACCOUNT_NAME
```
-* Example output:
+* 输出示例:
```bash
$current_lavad_binary keys add multisig2_of_3 --multisig wallet1,wallet2,wallet3 --multisig-threshold 2
@@ -301,38 +301,38 @@ $current_lavad_binary keys add multisig2_of_3 --multisig wallet1,wallet2,wallet3
type: multi
```
-### Signing Transactions
-For multisig transactions, each signer independently signs the transaction offline.
+### 签署交易
+对于多签名交易,每个签名者都独立进行离线签名。
-#### Transaction Generation
-Create a multisig transaction on a shared machine:
+#### 生成交易
+在共享计算机上创建多重签名事务:
```bash
$current_lavad_binary tx bank send $(lavad keys show alice-bob-multisig -a) lava@destination-address 10000000ulava --generate-only --chain-id lava-testnet-2 > tx_bank.json
```
-#### Signing the Transaction
-Each signer signs the transaction in their environment:
+#### 签署交易
+每个签名者在各自的环境中签署交易:
```bash
lavad tx sign --from $(lavad keys show -a alice-ledger) --multisig lava@multisig-address tx.json --sign-mode amino-json --chain-id lava-testnet-2 >> tx-signed-alice.json
or
lavad tx sign --from $(lavad keys show -a alice-ledger) --multisig lava@multisig-address tx.json --sign-mode amino-json --chain-id lava-testnet-2 --account-number X --sequence X >> tx-signed-alice.json
```
-A second signer follows a similar process.
+第二位签名者也遵循类似的程序。
-#### Broadcasting the Transaction
-1. Create the signed multisig transaction.
-2. Broadcast the transaction.
+#### 广播交易
+1. 创建已签名的多重签名交易。
+2. 广播交易。
```bash
lavad tx multisign --from alice-bob-multisig tx.json alice-bob-multisig tx-signed-alice.json tx-signed-bob.json --chain-id lava-testnet-2 > tx_ms.json
lavad tx broadcast ms/tx_ms.json --chain-id lava-testnet-2
```
-### Other Wallets {#other}
+### 其他钱包 {#other}
-:::warning experimental
-This section is for advanced users.
+:::warning 实验性
+本节针对高级用户。
:::
-Use the following parameters to set up a wallet not described in this manual:
+使用以下参数设置本手册未描述的钱包:
* **coinType** - 118 (standard cosmos wallet type)
* **minimal denom** - ulava
diff --git a/docs/power-lava-intro.md b/docs/power-lava-intro.md
index 2386eee2..533f7ee8 100644
--- a/docs/power-lava-intro.md
+++ b/docs/power-lava-intro.md
@@ -4,15 +4,15 @@ slug: /power-lava
import RoadmapItem from '@site/src/components/RoadmapItem';
-# Power-up the Lava Network
+# 启动Lava网络

-Lava Network is powered by its participants.
+Lava Network 由其参与者提供支持。
-Participants joining the network help reinforce data reliability and high quality of service. Lava's incentive framework prioritizes API providers that excel and allows anyone to stake (same as other PoS chains). Lava achieves fair rewards, privacy and censorship resistance for users by distributing consensus.
+加入网络的参与者有助于加强数据可靠性和提供高质量的服务。 Lava的激励框架优先考虑表现优秀的API提供者,并允许任何人进行质押(与其他PoS链相同)。 Lava通过分配共识实现对用户的公平奖励、隐私和抗审查。
-Everything is on-chain and transparent.
+一切都在链上,并且是透明的。
-**🌋 Ready to get the lava flowing? continue by joining the network on the following pages**
\ No newline at end of file
+**🌋 准备好让Lava联通链上世界了吗?继续通过在下面的页面加入网络。**
\ No newline at end of file
diff --git a/docs/provider/lavavisor/lavavisor-services.md b/docs/provider/lavavisor/lavavisor-services.md
index 691bc8af..e789f2a5 100644
--- a/docs/provider/lavavisor/lavavisor-services.md
+++ b/docs/provider/lavavisor/lavavisor-services.md
@@ -7,35 +7,35 @@ title: Service Manager
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-# **LavaVisor Service Manager**
+# **LavaVisor 服务管理器**
-## 📄 Overview
-Lavavisor Service Manager is a feature to enable the users to run one lavavisor service to manage multiple `lavap` services.
-The benefit of using this approach is that running only one lavavisor instance can save on some rpc calls as opposed to the lavavisor wrap command
-that each lavavisor instance would query once every 30 seconds.
+## 📄 概览
+Lavavisor服务管理器是一个功能,使用户可以运行一个Lavavisor服务来管理多个lavap服务。
+使用这种方法的好处是,与lavavisor wrap命令相比,只运行一个lavavisor实例可以节省一些rpc调用。
+每个lavavisor实例每30秒查询一次。
-:::info
-We improved the rpc calls intervals in recent patches so we recommend using the [`lavavisor wrap` or `pod` commands](/lavavisor-wrap#services) instead of the service manager command. This is still applicable even for multiple services.
+:::info
+我们在最近的补丁中改进了rpc调用间隔,所以我们建议使用[`lavavisor wrap` or `pod` commands](/lavavisor-wrap#services)代替service manager命令。这仍然适用于多个服务。
:::
-## ♨️ Commands
+## ♨️ 命令
### > `lavavisor init`
-LavaVisor `init` command initializes the environment for LavaVisor. It is generally the first command run when using LavaVisor.
+LavaVisor `init`命令用来初始化LavaVisor的环境。它通常是使用LavaVisor时运行的第一个命令。
-**Optional Flags:**
+**可选标识:**
-`--directory` - specifies the protocol flags directory (default "~/")
+`--directory` - 指定协议目录 (default "~/")
-`--auto-download` - automatically downloads missing binaries
+`--auto-download` - 自动下载缺少的二进制文件
`--auto-start` - automatically issues `start` after the `init` command completes
-**Example usage:**
+**用法示例:**
```bash
lavavisor init --auto-download --chain-id lava-testnet-2
@@ -45,11 +45,11 @@ lavavisor init --auto-download --chain-id lava-testnet-2
### > `lavavisor create-service`
-LavaVisor uses service files for each provider/consumer at play. LavaVisor `create-service` command creates these files according to the supplied consumer/provider config file and flags.
+LavaVisor 使用针对每个提供者/消费者的服务文件。LavaVisor 的 `create-service` 命令根据提供的消费者/提供者配置文件和标志创建这些文件。
-You must specify whether you are creating a `provider` or `consumer` and the location of the config file.
+您必须指定创建的是`provider`还是`consumer` 以及配置文件的位置。
-**Example usage:**
+**用法示例:**
```bash
# Provider Example
@@ -63,20 +63,20 @@ lavavisor create-service consumer ./config --geolocation 1 --from user2 --log_le
### > `lavavisor start`
-LavaVisor starts the specified services using the linked binary. It also starts the LavaVisor version monitor. The simplest way to activate this is by running the command `lavavisor init --auto-download --auto-start`. Secondarily, you can use the `start` command on your own, to further configure your provider/consumer or create services.
+LavaVisor 使用链接的二进制文件启动指定的服务。它还会启动 LavaVisor 版本监视器。最简单的激活方法是运行 `lavavisor init --auto-download --auto-start` 命令。其次,您可以自行使用 `start` 命令进一步配置提供程序/用户或创建服务。
-## 🗜️ Test
+## 🗜️ 测试
-1. First of all, LavaVisor should run in a node which is connected to a running Lava Network (local or public).
+1. 首先,LavaVisor 应在连接到运行中的 Lava 网络(本地或公共网络)的节点上运行。
-2. Run `lavavisor init --auto-download` → This will setup LavaVisor directory and link the protocol binary
+2. 运行 `lavavisor init --auto-download` → 这将设置 LavaVisor 目录并链接协议二进制文件

-3. Instead of creating service files manually, execute `lavavisor create-service` command to generate the service files. Let’s say we want to start one consumer and two provider processes, then we need to execute total of three commands like this:
+3. 与其手动创建服务文件,不如执行 `lavavisor create-service` 命令来生成服务文件。假设我们要启动一个消费者进程和两个提供者进程,那么我们总共需要执行以下三条命令:
- `lavavisor create-service consumer /home/ubuntu/config/consumer-ETH1.yml --geolocation 1 --from user1 --log_level info --keyring-backend test --chain-id lava-testnet-2 --node https://public-rpc-testnet2.lavanet.xyz:443/rpc/`
@@ -84,7 +84,7 @@ LavaVisor starts the specified services using the linked binary. It also starts
- `lavavisor create-service provider /home/ubuntu/config/provider1-LAV1.yml --geolocation 1 --from servicer2 --log_level info --keyring-backend test --chain-id lava-testnet-2 --node https://public-rpc-testnet2.lavanet.xyz:443/rpc/`
-4. Check the `~/.lavavisor/` dir and validate `config.yml` . It should look like this (adjust the service names according to your process):
+4. 检查 `~/.lavavisor/` 目录并验证 `config.yml` 。它应该是这样的(根据进程调整服务名称):
```yaml
@@ -94,10 +94,10 @@ services:
- provider1-LAV1
```
-5. The `create-service` command should also create a `service_configs` folder within the `.lavavisor/services` directory and copy the configuration files provided as command arguments (e.g., provider1-ETH1.yml). Ensure the directory and configuration files exist.
+5. `create-service`命令还应该在目录下创建一个 `service_configs`文件夹。并复制作为命令参数提供的配置文件(例如,provider1-ETH1.yml)。确保目录和配置文件存在。
-
+
```yaml
@@ -112,7 +112,7 @@ endpoints:
-
+
```yaml
@@ -125,13 +125,13 @@ metrics-listen-address: ":7779"
-6. Execute `lavavisor start`, and you should observe all services running. Additionally, the version monitor will begin validating versions.
+6. 执行`lavavisor start`,你应该可以看到所有服务都在运行。此外,版本监控器将开始验证版本。

-7. Now we need to make an upgrade proposal by using `/gov` module, so that protocol version will change in the consensus and LavaVisor will detect & initiate auto-upgrade.
+7. 现在我们需要使用`/gov`模块来做一个升级建议,这样协议版本将在共识中发生变化,LavaVisor将检测并启动自动升级。
- 🔽 Here is an example `proposal.json` file:
+ 🔽 下面是一个示例`proposal. json` 文件:
📄 proposal.json
@@ -158,16 +158,16 @@ metrics-listen-address: ":7779"
- 🔽 Here is the script for sending version update proposal transaction (for Cosmos SDK v0.47.0):
+ 🔽 以下是发送版本更新建议事务的脚本(适用于Cosmos SDK v0.47.0):
📄 upgrade_chain.sh
```bash
#!/bin/bash
- # upgrade script (upgrade_chain.sh)
+ # 升级脚本 (upgrade_chain.sh)
- # function to wait for next block (should be used when proposing on chains with Cosmos SDK 0.47 or higher)
+ # 等待下一个区块的功能(建议使用Cosmos SDK 0.47或更高版本的链时应该使用)
function wait_next_block {
current=$( lavad q block | jq .block.header.height)
echo "Waiting for next block $current"
@@ -182,7 +182,7 @@ metrics-listen-address: ":7779"
done
}
- # The software upgrade proposal command. This only proposes a software upgrade. To apply the upgrade, you need to vote "yes" (like below).
+ # 软件升级建议命令。这只建议软件升级。要应用升级,您需要投票"yes"(如下所示)。
lavad tx gov submit-legacy-proposal param-change proposal.json \
--gas "auto" \
--from alice \
@@ -193,21 +193,21 @@ metrics-listen-address: ":7779"
wait_next_block
- # The vote command. Use vote ID 4 (like here) if you used the init_chain_commands.sh script. If the vote doesn't work because of a bad
- # vote ID, use the 'lavad q gov proposals' query to check the latest proposal ID, and put here the latest ID + 1.
+ # 投票命令。如果使用init_chain_commands.sh脚本,则使用投票ID 4(如这里所示)。如果投票失败是因为一个坏的
+ # 投票 ID,使用 "lavad q gov proposals "查询查看最新提案 ID,并将最新 ID + 1 放在此处。
lavad tx gov vote 4 yes -y --from alice --gas-adjustment "1.5" --gas "auto" --gas-prices "0.000000001ulava"
```
- (Fix proposal ID 4 according to your state - if you didn’t run ‘init_chain_commands’ you should put 1 there)
+ (根据您的状态修正建议 ID 4 - 如果您没有运行 "init_chain_commands",则应在此处置 1)
-8. After the proposal passed, LavaVisor will detect the event and update the binaries. Then, it will reboot the processes with the new established symbolic link:
+8. 提议通过后,LavaVisor 将检测事件并更新二进制文件。然后,它会使用新建立的符号链接重新启动进程:

- ❗ Update detected
+ ❗ 已检测到更新

- ✔️ Upgrade successful
+ ✔️ 升级成功
diff --git a/docs/provider/lavavisor/lavavisor-wrap.md b/docs/provider/lavavisor/lavavisor-wrap.md
index e08cd04e..b0a8eba6 100644
--- a/docs/provider/lavavisor/lavavisor-wrap.md
+++ b/docs/provider/lavavisor/lavavisor-wrap.md
@@ -10,36 +10,37 @@ import TabItem from '@theme/TabItem';
# **LavaVisor Process Wrapper**
-## 📄 Overview
-Lavavisor's Process Wrapping commands were designed with Dockerized and Kubernetes environments in mind, offering solutions for different scenarios:
+## 📄 概述
+Lavavisor 的 Process Wrapping 命令在设计时考虑了 Docker 化和 Kubernetes 环境,为不同的场景提供了解决方案:
-1. For a virtual machine (VM) capable of downloading and compiling the Lavap binary, use the `lavavisor wrap` command.
-2. In cases where resources are limited, such as in a pod environment, you can use the `lavavisor pod` command.
+1. 对于能够下载和编译 Lavap 二进制文件的虚拟机 (VM),请使用以下`lavavisor wrap`命令。
+2. 在资源有限的情况下(例如在 Pod 环境中),您可以使用该`lavavisor pod`命令。
-The key distinction between the two is that `lavavisor wrap` validates Golang installation and locally downloads and builds the Lavap codebase. Conversely, the `pod` command fetches the pre-compiled binary from the [official Lava Network repository](https://github.com/lavanet/lava/releases/latest), as it lacks the capability to compile binaries locally.
+两者之间的主要区别在于验证`lavavisor wrap`Golang 安装并在本地下载和构建 Lavap 代码库。相反,该`pod`命令从官方 Lava Network 存储库获取预编译的二进制文件,因为它缺乏在本地编译二进制文件的能力。
+两者之间的关键区别在于,`lavavisor wrap`验证Golang安装,并在本地下载和构建Lavap代码库。相反,`pod`命令从[官方熔岩网络存储库](https://github.com/lavanet/lava/releases/latest)获取预编译的二进制文件,因为它缺乏本地编译二进制文件的能力。
:::tip
-Please make sure you are using the right `chainId` this document was written during testnet, and the active `chainId` was `lava-testnet-2` at time of composition.
+请确保您使用了正确的`chainId`,本文档是在测试网期间编写的,并且在撰写时活动的`chainId`是`lava-testnet-2`。
:::
-## ♨️ Commands
+## ♨️ 命令
### > `lavavisor init`
-LavaVisor `init` command initializes the environment for LavaVisor. It is generally the first command run when using LavaVisor.
-If you're using [`lavavisor pod`](#-lavavisor-pod) this command is unnecesary and can be skipped.
+LavaVisor `init`命令用来初始化LavaVisor的环境。它通常是使用LavaVisor时运行的第一个命令.
+如果你使用的是[' lavavisor pod '](#-lavavisor-pod),那么这个命令就不必要了,可以跳过。
-**Optional Flags:**
+**可选 Flags:**
-`--directory` - specifies the protocol flags directory (default "~/")
+`--directory` - 指定协议目录(默认为"~/")
-`--auto-download` - automatically downloads missing binaries
+`--auto-download` - 自动下载丢失的二进制文件
-**Example usage:**
+**用法示例:**
```bash
lavavisor init --auto-download --chain-id lava-testnet-2
@@ -48,10 +49,10 @@ lavavisor init --auto-download --chain-id lava-testnet-2
### > `lavavisor wrap`
-The `wrap` command is used for wrapping a single process in environment that cannot run with `systemd` (services) such as k8s or some containers.
-The `wrap` command doesn't require a config for itself, it just takes the lavap command the user provides and uses that as a sub command.
+`wrap`命令用于在无法使用`systemd`(服务)运行的环境中包装单个进程,例如k8s或某些容器。
+`wrap`命令本身不需要配置,它只需要接收用户提供的lavap命令并将其用作子命令。
-**Example usage:**
+**用法示例:**
```bash
lavavisor wrap --cmd 'lavap rpcprovider ./config/my_rpcprovider_config.yml --from --log_level debug --geolocation 1 --chain-id lava-testnet-2' --auto-download
@@ -61,15 +62,15 @@ lavavisor wrap --cmd 'lavap rpcprovider ./config/my_rpcprovider_config.yml --fro
### > `lavavisor pod`
-When running this command in a lightweight pod environment that lacks Golang or build dependencies, Lavavisor will automatically fetch the binary from the GitHub release page. This means you can obtain the binary without the need to build it or have a Golang setup on your virtual machine (VM)
+当在缺乏Golang或构建依赖项的轻量级pod环境中运行此命令时,Lavavisor将自动从GitHub发布页面获取二进制文件。这意味着您无需在虚拟机(VM)上构建或设置Golang即可获得二进制文件。
:::info
-`lavavisor pod` does not require `lavavisor init`. as it will initialize everything automatically.
+`lavavisor pod`不需要`lavavisor init`。因为它会自动初始化所有东西。
:::
-**Example usage:**
+**用法示例**
```bash
lavavisor pod --cmd 'lavap rpcprovider ./config/my_rpcprovider_config.yml --from --log_level debug --geolocation 1 --chain-id lava-testnet-2'
@@ -78,23 +79,23 @@ lavavisor pod --cmd 'lavap rpcprovider ./config/my_rpcprovider_config.yml --from
-## ❓ Considerations
+## ❓ 注意事项
-### Running multiple wrap commands on the same VM 🎲
-If you would like to run multiple wrappers on the same machine, you can set up one `--auto-download` process while the others are running with `--auto-download` disabled (default behavior) this will result with one process managing downloading and building while others just wait for the task to be completed.
+### 在同一个虚拟机上运行多个wrap命令🎲
+如果你想在同一台机器上运行多个wrappers,可以设置一个`--auto-download` 进程,而其他进程在运行时禁用`--auto-download` (默认行为),这将导致一个进程管理下载和构建,而其他进程只是等待任务完成。
-### Using keyring-backend os 🔑
-If you are using keyring-backend os you will need to provide the lavavisor (wrap/pod commands only) with a keyring-backend password so it can use it to start the lavap process and read from the keyring os.
+### 使用 keyring-backend os 🔑
+如果使用keyring-backend os,则需要向 lavavisor(仅限 wrap/pod 命令)提供keyring-backend密码,以便它启动 lavap 进程和读取keyring os。
-In order to do that add the `--enter-keyring-password` flag to the lavavisor command line. when the lavavisor bootstrap it will request the password from the user with the following prompt:
+为此,请在 lavavisor 命令行中添加`--enter-keyring-password`标记:
```bash
INF [Lavavisor] Please enter the keyring password:
```
-Lavavisor doesn't check if the password is correct; it will try to use it when starting the process. If the password is incorrect, it will keep retrying to revive the process, so make sure you are using the right password and validating the process started properly.
+Lavavisor 不会检查密码是否正确,而是在启动进程时尝试使用密码。如果密码不正确,它会不断重试以恢复进程,因此请确保使用正确的密码并验证进程已正确启动。
-### Example Use ⚙️
+### 使用示例 ⚙️
```bash
lavavisor wrap --cmd 'lavap rpcprovider ./config/my_rpcprovider_config.yml --geolocation 1 --log_level debug --from prod_client --chain-id lava-testnet-2 --keyring-backend os --node ""' --auto-download --node "" --chain-id lava-testnet-2 --enter-keyring-password
diff --git a/docs/provider/lavavisor/lavavisor.md b/docs/provider/lavavisor/lavavisor.md
index 51a7b978..78d74c9d 100644
--- a/docs/provider/lavavisor/lavavisor.md
+++ b/docs/provider/lavavisor/lavavisor.md
@@ -10,37 +10,35 @@ import TabItem from '@theme/TabItem';
# **LavaVisor**
-## 📄 Overview
-LavaVisor acts as a service manager for the Lava protocol application binaries. Its duty is to manage protocol versioning and coordinate seamless transitions to updated protocol versions.
+## 📄 概述
+LavaVisor是Lava协议应用程序二进制文件的服务管理器。它的职责是管理协议版本,并协调无缝过渡到更新的协议版本。
-When an upgrade becomes necessary, either because the current protocol version has dropped below the minimum version or not compliant with the recommended target version, LavaVisor’s responsibilities begin. LavaVisor orchestrates the necessary upgrade process in an automated manner, ensuring that the protocol version is aligned with the current standards and capabilities set by the minimum and target versions.
-
-## 🧰 Setup
+当需要升级时,无论是因为当前协议版本低于最低版本,还是不符合推荐的目标版本,LavaVisor的责任就开始了。LavaVisor以自动化方式协调必要的升级过程,确保协议版本与最低版本和目标版本设置的当前标准和功能保持一致。
+## 🧰 设置
:::tip
-Some older versions of the `lava-protocol` binary (now `lavap`) lack the version command, which LavaVisor employs to validate binary versions. Please ensure you've updated to the most recent version of LavaVisor or you may face errors.
+一些老版本的`lava-protocol`二进制文件(现在的`lavap`)缺少version命令,LavaVisor使用它来验证二进制文件的版本。请确保您已经更新到最新版本的LavaVisor,否则您可能会遇到错误。
:::
-Lavavisor is added as a `LAVA_ALL_BINARIES` parameter in the Makefile. As such, any script that executes `install-all` such as `start_env_dev.sh` will automatically install Lavavisor binary.
+Lavavisor作为`LAVA_ALL_BINARIES`参数添加到Makefile中。因此,任何执行`install-all`命令的脚本,例如`start_env_dev.sh`,都会自动安装Lavavisor二进制文件。
-To ensure that a LavaVisor binary is created, navigate to your local `/lava` directory and run **`make install-all`**
+为了确保创建了LavaVisor二进制文件,请导航到本地`/lava`目录并运行**`make install-all`**
-### Prerequisites ✅
+### 必要准备 ✅
1. Go version above than 1.19
-### Getting Started 🔥
-
-To configure your Lavavisor properly, you have two options to choose from:
+### 开始 🔥
-- [**Process Wrapper**](/lavavisor-wrap): This option offers advanced capabilities, including compatibility with keyring-based operating systems and enhanced control over your processes.
+要正确配置Lavavisor,你有两个选择:
-- [**Service Manager**](/lavavisor-services): If you are managing multiple services on a single machine, the service manager may be a suitable choice. It maintains a single Lavavisor instance, resulting in fewer queries.
+- [**Process Wrapper**](/lavavisor-wrap): 此选项提供高级功能,包括与基于密钥环的操作系统的兼容性以及对进程的增强控制。
-### Recommended Route ⤵️
+- [**Service Manager**](/lavavisor-services): 如果要在一台计算机上管理多个服务,则服务管理器可能是合适的选择。它维护一个 Lavavisor 实例,从而减少查询。
-We recommend the **process wrapper** for its extensive feature set, making it ideal for scenarios that require compatibility with keyring-based operating systems and greater process control.
+### 推荐路线 ⤵️
+我们推荐使用**process wrapper**,因为它具有广泛的功能集,非常适合需要与基于密钥环的操作系统兼容和加强进程控制的方案。
-The **service manager** is beneficial when you have numerous services on a single machine, as it manages a single Lavavisor instance, reducing query overhead. However, please note that it may not be the best choice for environments using keyring-backend operating systems or for those working with Docker or Kubernetes services.
+当您在一台计算机上拥有大量服务时,**service manager**非常有用,因为它管理单个 Lavavisor 实例,从而减少查询开销。但是,请注意,对于使用密钥环后端操作系统的环境或使用 Docker 或 Kubernetes 服务的环境,它可能不是最佳选择。
diff --git a/docs/provider/provider-features.mdx b/docs/provider/provider-features.mdx
index f9675865..ba247201 100644
--- a/docs/provider/provider-features.mdx
+++ b/docs/provider/provider-features.mdx
@@ -1,12 +1,12 @@
---
sidebar_position: 2
slug: /provider-features
-title: Features
+title: 功能
---
-# Provider Features 🧰
+# 提供商功能 🧰
-This page details the various features available to providers in the Lava network, along with instructions on how to operate them:
+本页面详细介绍了Lava网络中提供的各种功能,以及如何操作它们的说明:
- [💰 Rewards Tracking](#rewards-tracking)
- [⚡ Caching](#caching)
@@ -20,23 +20,23 @@ This page details the various features available to providers in the Lava networ
---
-## 💰 Rewards Tracking{#rewards-tracking}
+## 💰 奖励追踪{#rewards-tracking}
-Once a provider is up and running, consumers will request relay services from the provider. Once the provider provides the service, they will be eligible to get rewards from the consumer they served. The provider can receive rewards when a consumer's monthly plan expires.
+一旦提供商启动并运行,消费者将向提供商请求中继服务。一旦提供商提供服务,他们将有资格从他们所服务的消费者那里获得奖励。当消费者的月度计划到期时,提供商可以获得奖励。
-Providers can query the estimated amount they will receive with the query:
+提供商可以通过以下查询查询来查询他们将收到的估计金额:
```bash
lavad q pairing provider-monthly-payout
```
-Claimable rewards can be queried with:
+可领取的奖励可以通过以下方式查询:
```bash
lavad q dualstaking delegator-rewards
```
-and can be claimed to the provider balance with:
+并且可以通过以下方式向提供商余额认领:
```bash
lavad tx dualstaking claim-rewards --from
@@ -44,11 +44,11 @@ lavad tx dualstaking claim-rewards --from
-## ⚡ Caching{#caching}
+## ⚡ 缓存{#caching}
-Lava's caching service is used to cut costs and improve the overall performance of the network. Both provider and consumer processes benefit from the caching service. Providers who enable caching may be able to return responses faster than providers who do not have caching enabled.
+Lava 的缓存服务用于降低成本并提高网络的整体性能。提供者和使用者进程都受益于缓存服务。启用缓存的提供程序可能比未启用缓存的提供程序更快地返回响应。
-In order to use the caching service, run the following process:
+要使用缓存服务,请运行以下命令:
```
ListenAddress="127.0.0.1:7777"
@@ -56,7 +56,7 @@ ListenMetricsAddress="127.0.0.1:5747"
lavap cache $ListenAddress --metrics_address $ListenMetricsAddress --log_level debug
```
-The cache service will run in the background. Plug in the caching service with the consumer or provider process as applicable:
+缓存服务将在后台运行。根据情况将缓存服务插入消费者或提供者进程:
rpcprovider
@@ -75,36 +75,34 @@ lavap rpcconsumer --cache-be $ListenAddress
-## 🔌 Addons and Extensions{#addonsextensions}
+## 🔌 插件和扩展{#addonsextensions}
-Addons and Extensions are services that can be offered *in addition* to the basic spec on a provider service.
-**Addons** are APIs exposed in addition to existing APIs, while **Extensions** are changes to existing API responses.
+插件和扩展是除了提供程序服务的基本规范之外还可以提供的服务。插件是除了现有 API 之外公开的 API,而扩展是对现有 API 响应的更改。
-A few examples:
-- `"archive"` - an extension providing valid responses for older blocks than the current pruning definition in the basic spec
-- `"debug" `- an addon that offers debug apis in addition to basic rpc calls
+举几个例子:
+- `"archive"` - 一个扩展,为比基本规范中当前修剪定义更旧的块提供有效的响应
+- `"debug" `- 除了基本的 RPC 调用之外,还提供调试 API 的插件
-### Why Addons and Extensions ❔
+### 为什么选择插件和扩展程序 ❔
-Servicing Addons and Extensions can be a good way to generate additional traffic to your endpoints and higher rewards.
+服务插件和扩展程序是为您的端点带来额外流量和更高奖励的好方法。
-#### ⛗ Additional Traffic
+#### ⛗ 其他流量
-Consumers can easily use addons and extensions without any client configuration. They're included in the consumer subscription. The Lava Protocol automatically routes requests to providers that support desired services, which may result in increased traffic for those providers supporting specific addons, while providers without support won't receive such requests.
+消费者无需任何客户端配置即可轻松使用插件和扩展程序。它们包含在使用者订阅中。Lava 协议会自动将请求路由到支持所需服务的提供商,这可能会导致支持特定插件的提供商的流量增加,而不支持的提供商将不会收到此类请求。
-#### 💱 Higher Rewards
+#### 💱 更高的奖励
-Extensions can also provide a CU boost on the regular API, meaning modified calls may be more highly rewarded. `"archive"` calls, for example, will have a big multiplier on CU for each API request.
-Only API requests to the `"archive"` endpoint will award these additional CUs, and Lava knows which calls are `"archive"` or not according to the pruning of the regular spec defined by governance.
+扩展还可以在常规 API 上提供 CU 提升,这意味着修改后的调用可能会获得更高的奖励。`"archive"` 例如,对于每个 API 请求,调用在 CU 上都会有一个很大的乘数。只有对端点的 `"archive"` API 请求才会授予这些额外的 CU,并且 Lava 根据治理定义的常规规范的修剪知道哪些调用是`"archive"` 或不是。
-### Set up Addons and Extensions ⚙️
+### 设置插件和扩展程序 ⚙️
-Addons and Extensions are configured both in the provider service config, and then staked for on chain. 💡 For simplicity's sake, both Addons and Extensions are defined using the `addons:` field. For a reference, please see this [example provider config file](https://raw.githubusercontent.com/lavanet/lava/main/config/provider_examples/evmos_provider_with_archive.yml).
+插件和扩展在提供者服务配置中配置,然后在链上质押。💡 为简单起见,插件和扩展都是使用该`addons:`字段定义的。有关参考,请参阅此[示例](https://raw.githubusercontent.com/lavanet/lava/main/config/provider_examples/evmos_provider_with_archive.yml)提供程序配置文件。
-#### 🗒️ Addon (Config File)
+#### 🗒️ 插件 (配置文件)
-In order to add an addon to the service the yaml must be configured with the addon command:
+为了将插件添加到服务中,必须使用 addon 命令配置 yaml:
```yaml
endpoints:
@@ -120,11 +118,11 @@ endpoints:
// highlight-end
```
-#### 🗒️ Extension (Config File)
+#### 🗒️ 扩展名 (配置文件)
-Since extensions must offer consumers the regular spec function and the possibility of extended functionality, both must be present.
+由于扩展必须为消费者提供常规规范功能和扩展功能的可能性,因此两者都必须存在。
-Therefore, extensions unlike addons, must be configured in a new url entry:
+因此,与插件不同的扩展必须在新的 url 条目中配置:
```yaml
endpoints:
@@ -142,9 +140,7 @@ endpoints:
```
-Although this configuration offers you the chance to load balance different extension calls,
-if you run only a single archive node and do not want to automatically load balance archive calls to a pruned node,
-you can set both urls to point to the the archive node:
+尽管此配置为您提供了对不同扩展调用进行负载均衡的机会,但如果您只运行单个存档节点,并且不希望自动对已修剪的节点的存档调用进行负载均衡,则可以将两个 URL 设置为指向存档节点:
```yaml
endpoints:
@@ -161,9 +157,11 @@ endpoints:
// highlight-end
```
-#### 🗒️ Multiple Extensions (Config File)
+#### 🗒️ 多个扩展名(配置文件)
+
+必须使用所有可能的组合定义其他扩展,例如,合规性 + 存档将如下所示:
+
-Additional extensions must be defined with all possible combinations, for example compliance + archive will look like this:
```yaml
endpoints:
@@ -187,9 +185,9 @@ endpoints:
// highlight-end
```
-#### 🗒️ Combination (Config File)
+#### 🗒️ 组合(配置文件)
-A combination of an extension and addons will look like this:
+扩展和插件的组合如下所示:
```yaml
endpoints:
- api-interface: jsonrpc
@@ -205,15 +203,15 @@ endpoints:
- debug
```
-#### ⛏️ Staking
+#### ⛏️ 质押
-Before staking, make sure your process works correctly. If addons or extensions fail to verify, the entire service for that spec and api interface will fail. Please use the `lavap test rpcprovider` command to verify that your setup is correct.
+在质押之前,请确保您的进程正常运行。如果插件或扩展无法验证,则该规范和 api 接口的整个服务将失败。请使用该 lavap test rpcprovider 命令验证您的设置是否正确。
-Staking with an addon or an extensions is very similar to the normal staking command. Simply modify it by adding the list of addons and extensions separated by comma:
+使用插件或扩展进行质押与普通的质押命令非常相似。只需通过添加以逗号分隔的插件和扩展列表来修改它:
-**Staking Example: `stake-provider` ⌨️ **
+**质押示例:`stake-provider` ⌨️ **
-Ethereum Mainnet in US with archive and debug
+在美国地区的以太坊主网,具有存档和调试功能
```bash
lavap tx pairing stake-provider "ETH1" \
@@ -227,13 +225,13 @@ lavap tx pairing stake-provider "ETH1" \
--gas-adjustment "1.5" \
--node "https://public-rpc-testnet2.lavanet.xyz:443/rpc/"
```
+请注意,如果存在多个端点,则需要**`,archive,debug`**在支持它的每个端点中添加 。在事务中设置这些终结点会替换任何现有终结点,因此请确保提供终结点的完整列表。
-Do note the required addition of **`,archive,debug`** in each of the endpoints that support it if several exist. Setting these in a transaction replaces any existing endpoints, so make sure to give the full list of endpoints.
-** Staking Example: `modify-provider` ⌨️ **
+** 质押示例: `modify-provider` ⌨️ **
+也可以使用以下`modify-provider`命令将这些添加到现有条目中:
-It is also possible to add these to an existing entry with the `modify-provider` command:
```bash
lavap tx pairing modify-provider "ETH1" --endpoints "provider-host.com:443,USC,archive,debug" --geolocation "USC" ...
@@ -241,13 +239,13 @@ lavap tx pairing modify-provider "ETH1" --endpoints "provider-host.com:443,USC,a
-## 🧊 Freeze and Unfreeze{#freeze}
+## 🧊 冻结和解冻{#freeze}
-The **`freeze`** command allows a provider to freeze its service, effective next epoch. This enables providers to pause their services without the impact of a bad QoS rating. While frozen, the provider won't be paired with consumers. To unfreeze, the provider must use the **`unfreeze`** transaction, effective next epoch. This feature can be useful in cases like a provider needing to halt its services during maintenance.
+该**`freeze`**命令允许提供者冻结其服务,在下一个纪元生效。这使提供商能够暂停其服务,而不会受到不良 QoS 评级的影响。冻结时,提供商不会与使用者配对。要解冻,提供商必须使用**`unfreeze`**交易,在下一个纪元生效。此功能在提供商需要在维护期间停止其服务等情况下非常有用。
-### Usage 🔨
+### 使用 🔨
-#### ❄️ Freeze:
+#### ❄️ 冻结:
```bash
# required flags: --from alice. optional flags: --reason
@@ -255,27 +253,28 @@ lavap tx pairing freeze [chain-ids] --from
lavap tx pairing freeze [chain-ids] --from --reason
lavap tx pairing freeze ETH1,COS3 --from alice --reason "maintenance"
```
-The **`freeze`** command requires the **`--from`** flag to specify the provider address. Optionally, you can provide a **`--reason`** flag to give a reason for the freeze.
+该**`freeze`**命令需要该**`--from`**标志来指定提供程序地址。(可选)您可以提供一个**`--reason`**标志来说明冻结的原因。
-#### 🌡️ Unfreeze:
+#### 🌡️ 解冻:
```bash
# required flags: --from alice
lavap tx pairing unfreeze [chain-ids] --from
lavap tx pairing unfreeze ETH1,COS3 --from alice
```
+该**`unfreeze`**命令还需要该**`--from`**标志来指定提供程序地址。
-The **`unfreeze`** command also requires the **`--from`** flag to specify the provider address.
-## 🔐 Advanced Auth Configuration {#config-auth}
-In this example, COS3 tendermint URLs are using client authentication, assuming the node URL is capable of processing this authentication.
+## 🔐 高级身份验证配置 {#config-auth}
+在此示例中,假设节点 URL 能够处理此身份验证,则 COS3 tendermint URL 使用客户端身份验证。
+
+### 使用 HTTP 标头进行身份验证 🔑 {#auth-headers}
-### Auth using HTTP headers 🔑 {#auth-headers}
+以下 RPCProvider 配置示例演示了使用“auth-headers”选项进行身份验证:
-The following RPCProvider Config Example demonstrated authentication using the "auth-headers" option:
```yaml
endpoints:
@@ -296,9 +295,9 @@ endpoints:
// highlight-end
```
-### Auth using Query Params 🔑 {#auth-query}
+### 使用查询参数进行身份验证 🔑 {#auth-query}
-The following RPCProvider Config Example demonstrated authentication using the "auth-query" option:
+以下 RPCProvider 配置示例演示了使用“auth-query”选项进行身份验证:
```yaml
endpoints:
@@ -317,11 +316,11 @@ endpoints:
auth-query: auth=xyz
```
-### gRPC TLS configuration 🔑 {#grpc-tls}
+### gRPC TLS 配置 🔑 {#grpc-tls}
-If you want to add TLS authentication to your gRPC endpoint you have 3 options:
+如果要将 TLS 身份验证添加到 gRPC 端点,则有 3 个选项:
-#### 1. Dynamic certificate
+#### 1. 动态证书
```yaml
endpoints:
@@ -337,7 +336,7 @@ endpoints:
// highlight-end
```
-#### 2. Provide a certificate and a key:
+#### 2. 提供证书和密钥:
```yaml
endpoints:
@@ -355,7 +354,7 @@ endpoints:
// highlight-end
```
-#### 3. Provide a root certificate:
+#### 3. 提供根证书:
```yaml
endpoints:
@@ -374,10 +373,10 @@ endpoints:
-## ⏩ `ip-forwarding` Configuration {#config-ip-forwarding}
+## ⏩ `ip-forwarding` 配置 {#config-ip-forwarding}
-If you want to IP load balance / throttle this is also supported by adding `ip-forwarding: true`.
-The IP will be added to the following header: `X-Forwarded-For`
+如果要进行 IP 负载均衡/限制,也可以通过添加:`ip-forwarding: true`。
+ 将该 IP 添加到以下标头: `X-Forwarded-For`。
```yaml
endpoints:
@@ -394,13 +393,12 @@ endpoints:
-## ⌛ `node-timeout` Configuration {#config-node-timeout}
+## ⌛ `node-timeout` 配置 {#config-node-timeout}
:::caution
-Overwriting the timeout time can result in inferior QoS for consumers.
+覆盖超时时间可能会导致使用者的 QoS 较差。
:::
-
-If your node is too far from the `rpcprovider` or responds too slowly, and you still want your provider process to start without troubleshooting, you can overwrite the timeouts with custom values using a flag in the node-urls configuration:
+如果您的节点离`rpcprovider`太远或响应速度太慢,并且您仍然希望提供商程序进程在不进行故障排除的情况下启动,则可以使用 node-urls 配置中的标志使用自定义值覆盖超时:
```yaml
endpoints:
@@ -416,21 +414,21 @@ endpoints:
```
-## ⚖️ Load Balancer Configuration {#config-stickyness}
+## ⚖️ 负载均衡器配置 {#config-stickyness}
-Running multiple nodes with a load balancer can have multiple setups:
-1. **Run a Provider on each node** - provider processes can coexist, if you loadbalance grpc before the process of the provider and run a provider service on each node machine (close proximity)
-2. **Run one Provider service and Loadbalance the nodes** - in this case all the nodes are used by one provider service, this setup is more likely to trigger consistency issues between the provider service and the nodes
+使用负载均衡器运行多个节点可以有多个设置:
+1. **在每个节点上运行一个提供者** - 如果在提供者进程之前负载均衡 gRPC,并在每个节点机器上运行一个提供者服务(距离较近),那么提供者进程可以共存。
+2. **运行一个提供者服务并对节点进行负载均衡 **- 在这种情况下,所有节点都由一个提供者服务使用,这种设置更有可能触发提供者服务和节点之间的一致性问题。
-### Setting up Stickyness support for Loadbalanced nodes 🍯
+### 为负载均衡节点设置stickyness支持 🍯
-If you've set up the second option, meaning one provider service per multiple nodes, it is required to provide stickyness across the nodes by a header. The reason for this being the cryptographic proofs a provider signs, must be consistent and can't have the blocks progress backwards
+如果您设置了第二个选项,即每个多个节点一个提供者服务,则需要通过一个标头在节点之间提供stickyness。原因是提供者签署的加密证明必须一致,不能让区块的进度倒退。
-In order to support stickyness headers lava adds by default a header called `X-Node-Sticky`, this header adds a consumer token consisting of several factors and are unique per consumer usage
+为了支持stickyness标头,Lava 默认添加了一个名为 `X-Node-Sticky` 的标头,该标头添加了一个由多个因素组成且对每个消费者使用唯一的消费者令牌。
-### Changing the Stickyness Header 🔀
+### 更改Stickyness标头 🔀
-In order to support existing load balancer configs, it is possible to change the header name with a configuration in the config:
+为了支持现有的负载均衡器配置,可以使用配置中的配置来更改标头名称:
```yaml
endpoints:
- api-interface: jsonrpc
@@ -446,10 +444,10 @@ sticky-header:
-## 📈 Prometheus Metrics Configuration {#config-prometheus}
+## 📈 Prometheus 指标配置 {#config-prometheus}
+
+添加对 prometheus 的支持是一个简单的更改。设置以下内容`metrics-listening-address:`。请注意,所有 Lava 分析都以`lava_`开头。更改以下配置:
-Adding support for prometheus is a simple change. Set the `metrics-listening-address:` below.
-Please note that all Lava analytics start with `lava_`. Change the config below:
```yaml
endpoints:
diff --git a/docs/provider/provider-improve-service.md b/docs/provider/provider-improve-service.md
index e120d1f6..8cbcf515 100644
--- a/docs/provider/provider-improve-service.md
+++ b/docs/provider/provider-improve-service.md
@@ -1,218 +1,218 @@
---
slug: /provider-improve-service
-title: Rewards / Service
+title: 奖励/服务
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-# Provider Rewards
+# 提供商奖励
-## 💰 Earning Rewards
+## 💰 赚取奖励
- After staking on chain, providers serve consumers and get cryptographic proofs of relay service. These proofs are submitted on chain to accumulate CUs that lead to token rewards. The calculation for provider rewards is complex and contingent on the validity of submitted proofs. However, given valid proofs, rewards are mostly affected by 3 factors:
- - ☑️ **Passable Quality of Service** - The individual score of a relay session. Passable QoS directly alters rewards in a given session.
- - ⭐ **Quality of Service Excellence** - The reputational score of a provider. QoS Excellence affects provider selection both within a pairing and in the pairing probabilities.
- - 🚨 **Jail** - The disabling mechanism for inferior/defunct providers. Jailing prevents a provider from giving service for a period of time.
+提供者在链上质押后向消费者提供服务,得到中继服务的加密证明。这些证明提交到链上以积累CUs,从而获得代币奖励。提供者奖励的计算是复杂的,并取决于提交的证明的有效性。然而,在有有效证据的情况下,奖励主要受 3 个因素的影响:
+ - ☑️ **合格的服务质量**——中继会话的个人得分。合格的服务质量直接改变给定会话中的奖励。
+ - ⭐ **卓越服务质量**——提供商的声誉得分。在配对和配对概率中,服务质量卓越影响提供者选择。
+ - 🚨 **Jail**——对于劣质/失效的提供者的禁用机制。监禁可以阻止提供者在一段时间内提供服务。
-## 📊 Passable QoS {#passable-qos}
-Passable Quality of Service is scored separately in each relay session. Lower scores mean lower rewards. Up to half the accumulated CU can be reduced for bad service. Passable QoS metrics can be viewed both in the [Lava Info explorer](https://info.lavanet.xyz/?utm_source=provider-rewards&utm_medium=docs&utm_campaign=docs-to-info) and [Prometheus metrics](/provider-features#config-prometheus).
+## 📊 可接受的服务质量 {#passable-qos}
+可接受的服务质量在每个中继会话中单独评分。较低的分数意味着较低的奖励。最多可因糟糕的服务而减少累积 CU 的一半。可接受的 QoS 指标可以在[Lava Info 浏览器](https://info.lavanet.xyz/?utm_source=provider-rewards&utm_medium=docs&utm_campaign=docs-to-info)和[Prometheus 指标](/provider-features#config-prometheus)中查看。
-Passable QoS is binary, either it's good or bad there is no in-between. Scores in the range `0-1` are a result of averaging that binary score across relays. You can learn more about Passable QoS from our [📄 RSCH-1000](https://community.lavanet.xyz/t/rsch-1000-passable-quality-of-service/25) research paper.
+合格的 QoS 是二进制的,要么好要么坏,没有中间值。0-1 "范围内的分数是各中继站平均二进制分数的结果。您可以从我们的[📄 RSCH-1000](https://community.lavanet.xyz/t/rsch-1000-passable-quality-of-service/25)研究论文中了解有关可通过 QoS 的更多信息。
-### Metrics 📈
+### 指标 📈
-Passable Quality of Service divides into three metrics: [Availability](#%EF%B8%8F-availability), [Sync/Freshness of data](#-syncfreshness), [Latency](#%EF%B8%8F-latency).
+可通过的服务质量分为三个指标:[可用性](#%EF%B8%8F-availability),[数据同步/最新性](#-syncfreshness),[延迟](#%EF%B8%8F-latency)。
-#### 🛎️ Availability
-Score `0 or 1` per relay, averaged across relays in a session to give a range `0-1` for each session. `0` is given for each failed relay.
-A lower availability score can be the result of failed relays by one of the following:
+#### 🛎️ 可用性
+每个中继器的得分为`0 或 1` ,在一个会话中各中继器的平均得分为`0-1`。每个失败的中继都会得到 `0`。
+可用性得分较低可能是下列情况之一导致中继失败:
-##### Low-Score Causes
+##### 低分原因
❗time out
- ⚠️ The provider does not respond in the maximum allowed time, and the consumer gives up.
- ✅ Timeout can be checked for in the provider logs, requests that time out are also identified by the provider and terminated
+ ⚠️ 提供商没有在允许的最长时间内做出响应,消费者就会放弃。
+ ✅ 超时可在提供商程序日志中检查,超时的请求也会被提供商程序识别并终止。
❗ unsupported chain
- ⚠️ The provider runs with disabled chains
- ✅ It can be checked in the provider initialization logs and on the request logs, also on the prometheus metrics for disabled chains
+ ⚠️ 提供者在禁用的链中运行
+ ✅ 可以在提供商初始化日志和请求日志中检查它,也可以在禁用链的prometheus度量中检查它
❗ errors
- ⚠️ Any lava error, whether unsynced epoch in the provider, wrong wallet, misconfigured url
- ✅ Error can be checked in the provider logs, and prometheus metrics for disabled chains
+ ⚠️ 任何Lava错误,无论是在提供程序中不同步的纪元,错误的钱包,错误配置的url
+ ✅ 可以在provider日志中检查错误,以及禁用链的prometheus指标
-##### Improvements
-Improving availability involves finding the cause of errors, and taking the necessary actions to resolve them.
+##### 优化
+提高可用性包括找到错误的原因,并采取必要的措施来解决它们。
⚡ add more endpoints
- lava supports setting more than one endpoint, and consumers know to loadbalance in case one is down, by setting several endpoints (with several services) providers can avoid downtime
+ Lava支持设置多个端点,并且使用者知道在某个端点宕机时进行负载平衡,通过设置多个端点(包含多个服务)提供者可以避免停机
-#### ⏲️ Latency
-Score `0 or 1` per relay, averaged across relays in a session to give a range `0-1` per session. `0` is given for each relay that took above half the timeout. A
-lower latency score can be the result of slow responses, and can be identified by turning on debug logs in the provider to see the latency or checking Prometheus.
+#### ⏲️ 延迟
+每个中继的得分为“0或1”,在一个会话中平均每个中继的得分范围为“0-1”。对于每个超时时间超过一半的中继器,将给出`0`。一个
+较低的延迟分数可能是响应慢的结果,可以通过打开provider中的调试日志来查看延迟或检查Prometheus来识别。
-##### Improvements
+##### 优化
- ⚡ activate lavap cache
- Caching can boost up performance and latency at the expense of some memory, if you didn't set a valid cache configuration it could reduce latency scores. Visit the provider features page to ensure caching is correctly enabled.
+ ⚡ 激活 lavap 缓存
+ 缓存可以以牺牲一些内存为代价来提高性能和延迟,如果你没有设置有效的缓存配置,它可能会降低延迟得分。访问provider features页面以确保正确启用缓存。
- ⚡ set the provider service in proximity to the node
- a provider service that is located in the same server or vpc as the node will provide the best latency, while a provider that has to go through TLS and connect to a different location will have increased latency
+ ⚡ 在节点附近设置提供商服务
+ 位于同一服务器或虚拟专用云 (VPC) 上的节点的提供者服务将提供最佳的延迟,而必须通过 TLS 连接到不同位置的提供者将增加延迟。
- ⚡ set the correct geolocation
- lava matches consumers and providers based on geolocation, if your services do not cover several locations with several nodes, it is recommended to set geolocations that are in proximity to your provider service and node.
- if you misconfigure geolocations that are far from your node's location, your latency scores will be lower
+ ⚡ 设置正确的地理位置
+ lava 根据地理位置匹配消费者和提供商,如果您的服务没有覆盖多个地点和多个节点,建议设置与您的提供商服务和节点邻近的地理位置。
+ 如果您错误配置了离节点位置较远的地理位置,则延迟分数会降低
- ⚡ reduce server load or improve the machine
- servers that receive too much usage to the machine capabilities will respond slower, it is recommended to monitor CPU, networking and memory usage
+ ⚡ 降低服务器负载或优化机器
+ 如果服务器的 CPU、网络和内存使用率过高,则机器响应速度会变慢,因此建议对 CPU、网络和内存使用率进行监控
- ⚡ add more endpoints
- lava supports setting more than one endpoint, and consumers know to pick the closest one, by setting more endpoints latency scores will be lower
+ ⚡ 添加更多端点
+ lava 支持设置多个端点,消费者知道要选择最近的端点,因此设置更多端点的延迟分数会更低
-#### 🌿 Sync/freshness
-Score `0 or 1` per relay, averaged across relays in a session to give a range `0-1` per session. A `0` is given for each relay that has a latest block proof that is older than the spec allowed block lag for QoS sync.
+#### 🌿 同步/新鲜度
+每个中继的得分为`0 或 1` ,会话中各中继的平均得分为 `0-1`。如果每个中继的最新数据块证明比 QoS 同步规范允许的数据块滞后时间更早,则得分为`0`。
-##### How to Identify
-The freshness proofs are updated by the provider service in a GET_BLOCKNUM request, and then returned together with consumer relay responses.
-It is possible to turn on debug logs and see the blocks advancing.
-The latest block is exported in prometheus, and also uploaded on chain.
-You can compare the latest block on your provider to other providers, a useful way to do this is filter provider_latest_block_report and compare your results to others:
+##### 如何识别
+新鲜度证明由提供者服务在 GET_BLOCKNUM 请求中更新,然后与消费者中继响应一起返回。
+可以打开调试日志,查看正在推进的区块。
+最新区块会导出到 prometheus 中,也会上载到链上。
+您可以将自己提供商的最新区块与其他提供商进行比较,一种有用的方法是过滤 provider_latest_block_report,并将自己的结果与其他提供商进行比较:
```bash
lavap test events 2000 --event lava_provider_latest_block_report --node https://public-rpc-testnet2.lavanet.xyz:443/
```
-##### Low-Score Causes
+##### 低分原因
- ❗ provider state is not updating fast enough
- make sure GET_BLOCKNUM requests do not fail, common problems are throttling, or a url misconfiguration
+ ❗ 提供商状态更新不够快
+ 确保 GET_BLOCKNUM 请求不会失败,常见问题是节流或 URL 配置错误
- ❗ latest block is too old
- some nodes can lose sync and return stale data, it is imperative to monitor these cases and fix them, making sure the node is synced
+ ❗ 最新区块太旧
+ 某些节点可能会失去同步并返回陈旧数据,因此必须对这些情况进行监控和修复,确保节点处于同步状态
## 📊 QoS Excellence {#qos-excellence}
-QoS Excellence is calculated very similarly to Passable QoS. QoS Excellence provides a range of scores that are time-weighted to take the latest information
-all the actions mentioned here to improve passable QoS affect excellence
+优质服务的计算方法与合格服务质量非常相似。优质服务提供一系列分数,这些分数经过时间加权,以获得最新信息。
+这里提到的所有改善合格 QoS 的措施都会影响优质服务。
-### Metrics 📈
-Excellence Quality of score divides into 3 metrics:
-* Availability - score in the range `0-1`
-* Sync/ Freshness of data - how much time behind other providers are we, lower is better, `0` means your sync is the best in the pairing
-* Latency - how many benchmark ticks passed during a relay in average (time taken / benchmark time). lower is better
+### 指标 📈
+优质服务得分分为 3 个指标:
+* 可用性 - 分数范围在 `0-1` 之间
+* 同步/数据新鲜度 - 我们比其他提供商落后多少时间,越低越好,"0 "表示您的同步在配对中是最好的
+* 延迟--中继过程中平均经过多少个基准刻度(所用时间/基准时间)。
## 🏛️ Jailing {#jailing}
-### How to Fix Getting Jailed 🔓
-Lava Protocol removes providers that are providing inferior service. The mechanism is detached from QoS measurements.
-In order to avoid being jailed, a provider needs to avoid the following:
-* have the staked endpoint not respond to connections
-* have disabled chains in the staked endpoint
-* have too many consecutive errors with a large group of consumers
-* have a non TLS connection or an expired certificate
-* block headers or origins
-* miss on getting rewards
+### 如何避免被监禁 🔓
+Lava 协议删除提供劣质服务的供应商。该机制与 QoS 测量无关。
+为了避免入狱,提供商需要避免以下行为:
+* 已质押的端点不响应连接
+* 在已质押的端点中禁用了链
+* 对一大批消费者连续出现过多错误
+* 非 TLS 连接或证书过期
+* 区块头或来源
+* 错过获得奖励
-### How Jailing Happens ❓
-Once one or more of the aforementioned conditions are met, Lava's Blockchain jails a provider if:
-* there are enough other providers in the spec
-* the provider is not frozen (if you freeze for maintenance you will *not* get jailed)
-* the provider is active for at least 8 epochs
-* in the last 8 epochs the provider got less sum of rewards than reports sum in the last 2 epochs
+### 监禁是如何发生的 ❓
+一旦满足上述一个或多个条件,Lava的区块链就会在以下情况下监禁提供者:
+* spec中有足够多的其他提供商
+* 供应商没有被冻结(如果你为了维护而冻结,你**不会**被监禁)
+* 提供程序至少在 8 个 epoch 内处于活动状态
+* 在过去 8 个 epochs 中,提供者获得的奖励总和少于过去 2 个 epoch 的报告总和
-### Identify Getting Jailed 🩻
-If your provider got jailed it will stop receiving requests upon the next epoch.
+### 识别入狱 🩻
+如果您的提供商被判入狱,它将在下一个纪元停止接收请求。
-It is possible to monitor this event via info webpage or the following commands :
+可以通过信息网页或以下命令监控此事件:
-⌨️ `command` when being reported before getting jailed:
+⌨️ 在被监禁之前报告的`command`:
```bash
lavap test events 2000 --event lava_provider_reported --node https://public-rpc-testnet2.lavanet.xyz:443/
```
-a group of reports can lead to being jailed.
+一系列报告可能导致被监禁。
-⌨️ `command` when the blockchain's criteria for jail are met:
+⌨️ 当区块链的监禁标准得到满足时的`command`:
```bash
lavap test events 2000 --event lava_provider_jailed --node https://public-rpc-testnet2.lavanet.xyz:443/
```
-### Resuming Service ▶️
-Since version `0.27.0`, providers that are jailed can resume service by unfreezing. It is planned to have a cooldown period on unfreezing.
+### 服务恢复 ▶️
+从版本 0.27.0 开始,被监禁的提供者可以通过解冻来恢复服务。计划在解冻时有一个冷却期。
-If repeated jails are activated in a short period:
+如果在短时间内反复启用监狱:
```bash
lavad tx pairing unfreeze --help
```
-### Reasons ⚖️
+### 原因 ⚖️
-Jail reports contain additional info on the report reason and they can be either due to:
-* **disconnections** - a provider did not respond to connection attempts
-* **errors** - a provider's responses were a sequence of consecutive errors.
+监狱报告包含报告原因的额外信息,它们可以是由于:
+* **断开连接**——provider没有对连接尝试做出响应
+* **错误**——provider的响应是一系列连续的错误。
-In addition, the reports contain an exact time tag, so the provider can check the events:
+此外,报告包含一个精确的时间标签,因此提供商可以检查事件:
```bash
lavap test events 2000 --event lava_provider_reported --node https://public-rpc-testnet2.lavanet.xyz:443/
```
-### Disconnections 💢
-These mean the provider's endpoint did not respond and can be due to the following problems:
-* TLS certificate outdated or not set
-* misconfiguration proxying the requests to the provider service
-* provider service not running
-* wrong endpoint in the stake entry on chain: can be fixed by running
+### 断开连接 💢
+这意味着提供商的端点没有响应,可能是由于以下问题:
+* TLS证书过期或未设置
+* 错误配置将请求代理到提供程序服务
+* 提供程序服务未运行
+* 链上质押条目中的错误端点:可以通过运行修复
```bash
lavad tx pairing modify-provider ${CHAIN} --endpoints "${ENDPOINTS}" --geolocation ${GEOLOCATION} --from ${WALLET}
```
:::caution
-Make sure the url in the endpoint is the provider grpc listening address and not your node url
+确保端点中的 url 是提供程序 grpc 侦听地址,而不是节点 URL
:::
-#### ⏺️ Identifying a Disconnect
+#### ⏺️ 识别断开连接
-Disconnection problems can be identified by running the test command:
+可以通过运行 test 命令来识别断开连接问题:
```bash
lavap test rpcprovider ${PUBLIC_ADDRESS}
@@ -220,13 +220,13 @@ lavap test rpcprovider ${PUBLIC_ADDRESS}
-### Errors ❌
-these mean the provider service connection was solid but all relays turned to be errors, might be caused by the following:
-* disabled chain - the provider doesnt have access to the node, or a verification does not pass, and the chain is disabled
-* unexpected errors
-* timeouts
+### 错误 ❌
+这意味着提供商服务连接稳定,但所有中继器都变为错误,可能是由以下原因引起的:
+* 禁用链 - 提供者无权访问节点,或者验证未通过,并且链被禁用
+* 意外错误
+* 超时
-#### ⏺️ Identifying an Error
+#### ⏺️ 识别错误
-Errors can be identified by looking at the provider service logs, it is recommended to run with debug if repeatedly getting jailed.
+可以通过查看提供程序服务日志来识别错误,如果反复被监禁,建议使用 debug 运行。
diff --git a/docs/provider/provider-setup.md b/docs/provider/provider-setup.md
index 0367e5fe..b643cf5b 100644
--- a/docs/provider/provider-setup.md
+++ b/docs/provider/provider-setup.md
@@ -1,7 +1,7 @@
---
sidebar_position: 1
slug: /provider-setup
-title: Setup
+title: 设置
---
import Tabs from '@theme/Tabs';
@@ -9,83 +9,83 @@ import TabItem from '@theme/TabItem';
:::warning
-With the launch of `lava-testnet-2`, aspects of our provider setup have changed. TLS Certificates are now a required part of Provider setup. [Lavavisor](/lavavisor) is now the recommended route for running the provider process.
+随着 "lava-testnet-2 "的推出,我们提供商设置的各个方面都发生了变化。TLS 证书现在是提供程序设置的必要组成部分。[Lavavisor](/lavavisor) 现在是运行提供程序的推荐路径。
:::
-# Provider Setup
+# 提供商设置
-After you have read the [Provider intro](/provider), This guide is designed to help node runners and DevOps professionals configure a multi-chain network provider, which supports various blockchain networks and their respective API interfaces. We'll walk you through the necessary steps to create a configuration file that covers multiple chains and API interfaces, and provide a brief background on providers and the stake command.
+本指南旨在帮助节点运行人员和 DevOps 专业人员配置多链网络提供商,该提供商支持各种区块链网络及其各自的 API 接口。我们将指导您完成必要的步骤,创建涵盖多链和 API 接口的配置文件,并简要介绍提供商和 stake 命令的背景。
-## **Overview**
+## **概览**
-A multi-chain network provider allows you to manage and interact with multiple blockchain networks using a single entry point. By supporting various API interfaces, the provider can accommodate the specific needs and preferences of different blockchain networks.
+多链网络提供商允许您使用单一入口点管理多个区块链网络并与之互动。通过支持各种 API 接口,提供商可以满足不同区块链网络的特定需求和偏好。
-In this guide, we'll create a configuration file that includes multiple chains (Ethereum Mainnet and Osmosis Mainnet) and their respective API interfaces (JSON-RPC, REST, gRPC, and Tendermint RPC). We'll also cover the stake command for providers, which allows you to stake a specific service.
+在本指南中,我们将创建一个配置文件,其中包括多个链(以太坊主网和 Osmosis 主网)及其各自的 API 接口(JSON-RPC、REST、gRPC 和 Tendermint RPC)。我们还将介绍提供商的质押命令,该命令允许你质押特定服务。
-## **Prerequisites**
+## **必要条件**
-1. Go 1.20.5 or higher
-2. `lavap` installed (build or install at [https://github.com/lavanet/lava](https://github.com/lavanet/lava))
-3. Account with enough LAVA for staking (learn about [creating Accounts](docs/lava-blockchain/wallet.mdx))
-4. Know which chains you want to provide ([how to query the latest list](https://docs.lavanet.xyz/provider/#chains))
+1. Go 1.20.5 或更高版本
+2. 已安装`lavap`(在 [https://github.com/lavanet/lava](https://github.com/lavanet/lava) 上构建或安装)
+3. 拥有足够 LAVA 的账户,以便进行质押(了解 [创建账户](docs/lava-blockchain/wallet.mdx))
+4. 了解您想提供哪些链([如何查询最新列表](https://docs.lavanet.xyz/provider/#chains))
-## Step 1: Setup TLS
-As part of good security practice, Lava protocol communicates with end-to-end encryption between providers and consumers of RPC. This requires some additional configuration steps on a provider, namely, the setup of TLS certification with a certification authority.
+## Step 1: 设置 TLS
+作为良好安全实践的一部分,Lava 协议在 RPC 的提供者和消费者之间采用端到端加密通信。这就要求提供者采取一些额外的配置步骤,即在认证机构设置 TLS 认证。
-❗❗ If you already use a **TLS Certificate signed by a Certifiying Authority**, you can continue onto step 2. Otherwise, you may want to check out our guide on [setting up TLS for Lava Providers](/provider-tls).
+❗❗ 如果您已经使用了由认证机构**签署的**TLS 证书,则可以继续第 2 步。否则,您可能需要查看我们的[为 Lava 提供商设置 TLS](/provider-tls)指南。
-## Step 2: Run RPCProvider process
+## Step 2: 运行RPCProvider进程
-**`rpcprovider`** is a command line tool for setting up an RPC server that listens for requests from Lava protocol RPC consumers, forwards them to a configured node, and responds with the reply. The configuration can be provided via a YAML configuration file or as command line arguments.
+**`rpcprovider`**是一个用于设置RPC服务器的命令行工具,它监听来自Lava protocol RPC消费者的请求,将它们转发到已配置的节点,并返回响应。配置可以通过YAML配置文件提供,也可以作为命令行参数提供。
-**`rpcprovider`** is part of `lavap` and can run using the following syntax:
+**`rpcprovider`**是`lavap`的一部分,可以使用以下语法运行:
```bash
lavap rpcprovider [config-file] || { {listen-host:listen-port spec-chain-id api-interface node-url} ... }
```
-### Configuration
-:::warning READ BEFORE CONTINUING
-Configuration varies per chain. Some chains have steeper configuration requirements than others. If you're unsure, please visit the [chain page](/chains) of the specific endpoints you're attempting to setup and view our `Run an RPC Node` guide for that chain.
+### 配置
+:::warning 继续之前请阅读
+每个链的配置不同。有些链比其他链有更高的配置要求。如果你不确定,请访问你正在尝试设置的特定端点的[chain page](/chains),并查看我们的`Run an RPC Node`指南。
:::
-:::info
-For advanced configuration such as **authentication**, header **forwarding**, configurable **node-timeout**, see [Provider Features](/provider-features)
+:::info
+有关**身份验证**、**转发**、可配置**节点超时**等高级配置,请参阅[提供程序功能](/provider-features)
:::
-You can either provide a single configuration file (YAML) or specify one or more endpoint configurations as command line arguments.
+您可以提供单个配置文件(YAML),也可以指定一个或多个端点配置作为命令行参数。
-The default configuration file is named **`rpcprovider.yml`**. If a single argument is provided, it is assumed to be the name of the configuration file (without the extension).
+默认配置文件名为 **`rpcprovider.yml`**。如果只提供一个参数,则默认为配置文件的名称(不含扩展名)。
-If no arguments are provided, the default configuration file is used. All configuration files should be located in the default node home directory (e.g., **`app.DefaultNodeHome/config`**) or the local running directory.
+如果没有提供参数,则使用默认配置文件。所有配置文件都应位于默认节点主目录(如 **`app.DefaultNodeHome/config`**)或本地运行目录中。
-### Command Flags
+### 命令参数
-**`rpcprovider`** accepts the following flags:
+**`rpcprovider`**接受以下参数:
-- **`--geolocation`** (required): Geolocation to run from (e.g., **`1`**)
-- **`--from`** (required): Account name to use (e.g., **`alice`**)
-- **`--chain-id`**: Lava Network chain ID (e.g.: **`lava-testnet-2`**)
-- **`--pprof-address`**: pprof server address, used for code profiling (default: **`""`**)
-- **`--cache`**: Address for a cache server to improve performance (default: **`""`**)
-- **`--parallel-connections`**: Number of parallel connections (default: **`chainproxy.NumberOfParallelConnections`**)
-- **`--reward-server-storage`**: The path to store reward server data (default **`".storage/rewardserver"`**)
+- **`--geolocation`** (必填): 运行的地理位置(例如,**`1`**)
+- **`-from`**(必填): 要使用的账户名称(例如,**`alice`**)
+- **`--chain-id`**: Lava 网络链 ID(例如:**`lava-testnet-2`**)
+- **`--pprof-address`**: pprof 服务器地址,用于代码剖析(默认:**`""`**)
+- **`--cache`**: 缓存服务器地址,以提高性能(默认:**`""`**)
+- **`--parallel-connections`**: 并行连接数(默认:**`chainproxy.NumberOfParallelConnections`**)
+- **`--reward-server-storage`**: 存储奖励服务器数据的路径(默认为**`".storage/rewardserver"``**)
-### Configuration Examples
+### 配置示例
-Here are some example usages of **`rpcprovider`**:
+下面是一些使用 **`rpcprovider`** 的示例:
```bash
-# Using a custom configuration file and flags
+# 使用自定义配置文件和标志
lavap rpcprovider path_to_my_config_file --geolocation 1 --from alice
-# Providing endpoint configurations as command line arguments
+# 以命令行参数的形式提供端点配置
lavap rpcprovider provider-host.com:1986 ETH1 jsonrpc https://localhost/eth/my_node_1 --geolocation 1 --from alice
```
-### Example: Multiple API Interfaces with Same Listen Address (ETH1 and COS3)
+### 示例: 具有相同监听地址的多个 API 接口(ETH1 和 COS3)
-In this example, the provider supports all the API interfaces for the Ethereum Mainnet (ETH1) and Osmosis Mainnet (COS3) networks. The listen address for all ETH1 interfaces and all COS3 interfaces is the same.
+在本例中,提供程序支持以太坊主网 (ETH1) 和 Osmosis 主网 (COS3) 网络的所有 API 接口。所有 ETH1 接口和所有 COS3 接口的监听地址相同。
```yaml
endpoints:
@@ -117,17 +117,17 @@ endpoints:
```
:::tip
-If you're using `nginx` or another proxy as is recommended in our [TLS setup guide](/provider-tls), you will need to add `disable-tls: true` to each endpoint specified. This allows `nginx` to handle TLS directly.
+如果您使用的是 `nginx` 或我们的 [TLS 设置指南](/provider-tls) 中推荐的其他代理,则需要在指定的每个端点添加 `disable-tls: true`。这将允许 `nginx` 直接处理 TLS。
:::
-### More Examples
+### 更多范例
-The team constantly adds configurations, you can check examples on our [github](https://github.com/lavanet/lava/tree/main/config/provider_examples).
+团队会不断添加配置,你可以在我们的 [github](https://github.com/lavanet/lava/tree/main/config/provider_examples) 上查看示例。
-## Step 3: Check Provider liveliness - before staking
-To ensure the provider is up and running correctly `lavap` provides a command to setup the necessary clients and verify all parameters are well defined.
-This command is used to test the basic flow for a provider is working, including stake and access, but with some additional arguments can be used prior to staking, as long as the rpcprovider process is up and running.
-since we haven't staked yet we need to provide the command with the endpoints we are using
-### Usage
+## Step 3: 检查 Provider 的活度 - 质押前
+为确保提供程序正常运行,`lavap` 提供了一个命令来设置必要的客户端,并验证所有参数是否定义正确。
+该命令用于测试提供程序的基本流程是否正常,包括质押和访问,但只要 rpcprovider 进程启动并运行,在质押之前也可使用该命令,但需附加一些参数。
+因为我们还没有质押,所以需要向命令提供我们正在使用的端点
+### 使用
@@ -136,10 +136,10 @@ since we haven't staked yet we need to provide the command with the endpoints we
```bash
lavap test rpcprovider --from {WALLET} --endpoints "{ENDPOINTS}"
-# Example: checking if your provider, is staked correctly and listening on all staked services
+# 例如:检查您的提供商是否被正确质押,并监听所有被质押的服务
# lavap test rpcprovider --from provider1_us --node https://public-rpc-testnet2.lavanet.xyz:443/rpc/
-# Expected output:
+# 应该输出如下:
# ...logs...
# ----------------------------------------SUMMARY----------------------------------------
@@ -157,7 +157,7 @@ lavap test rpcprovider --from {WALLET} --endpoints "{ENDPOINTS}"
```bash
lavap test rpcprovider --from {WALLET} --endpoints "{ENDPOINTS}"`
-# Example: checking your provider that is not staked yet, or when you want to add a new chain support
+# 例如:检查您的提供商是否还未被质押,或者当您想添加新的链支持时
# lavap test rpcprovider --from provider1_us --endpoints "provider-public-grpc:port,jsonrpc,ETH1 provider-public-grpc:port,rest,LAV1" --node https://public-rpc-testnet2.lavanet.xyz:443/rpc/
# Expected output:
@@ -173,13 +173,13 @@ lavap test rpcprovider --from {WALLET} --endpoints "{ENDPOINTS}"`
-you can use the provider public address instead of the wallet name, it can also be fetched easily using lavad
+您可以使用提供商的公共地址代替钱包名称,也可以使用 lavad 轻松获取
```bash
lavad keys show -a {WALLET}
```
-testing with the public address
+使用公共地址测试
```bash
lavap test rpcprovider {PROVIDER_ADDRESS} --endpoints "{ENDPOINTS}"
@@ -188,29 +188,29 @@ lavap test rpcprovider {PROVIDER_ADDRESS} --endpoints "{ENDPOINTS}"
-## Step 4: Stake as Provider
+## Step 4: 作为提供商质押
-Before you can expose your multi-chain provider to rpc consumers, you need to stake a provider. You may have already taken this step and can move onto step 5. Otherwise, to stake a single service, use the following command:
+在您可以将您的多链提供程序暴露给rpc消费者之前,您需要绑定一个提供商。你可能已经完成了这一步,可以继续进行第5步。否则,使用以下命令绑定单个服务:
```bash
lavap tx pairing stake-provider [chain-id] [amount] [endpoint endpoint ...] [geolocation] {validator} [flags]
```
-*Check the output for the status of the staking operation. A successful operation will have a code **`0`**.*
+*检查输出以了解质押操作的状态。一个成功的操作会有一个代码 **`0`**.*
-:::info
-Note that this TX can also be used to increase the provider's stake. To increase, the amount should be the sum of the current amount and the desired addition. For example, a provider is staked with `100ulava` and wants to increase its stake by `10ulava`. Then, the appropriate `amount` argument for the `stake-provider` command should be `110ulava`.
+:::info
+注意,此交易还可以用于增加提供者的质押。要增加股份,金额应为当前金额和所需增加金额的总和。例如,一个提供者的质押为`100ulava`,想要增加质押`10ulava`。那么,`stake-provider`命令的适当`amount`参数应为`110ulava`。
:::
-#### Parameters Description
+#### 参数说明
-- **`chain-id`** - The ID of the serviced chain (e.g., **`COS4`** or **`FTM250`**). To get the full list of available chains use: `lavap query spec show-all-chains --node {LAVA_RPC_NODE}`.
-- **`amount`** - Stake amount for the specific chain (e.g., **`2010ulava`**).
-- **`endpoint`** - Provider host listener, composed of `provider-host:provider-port,geolocation`. To define multiple endpoints do: `"host:port,geolocation host2:port2,geolocation2"`. To define advanced endpoint features like `trace`, `debug`, and more, ask the Lava team.
-- **`geolocation`** - Indicates the geographical location where the process is located (e.g., **`1`** for US or **`2`** for EU). This argument must specify all the geolocations of the defined endpoints (see the "Ethereum Mainnet in US And Europe" below).
-- **`validator`** - Validator address for staking (optional). Validator address is required when staking due to the dualstaking mechanism. If no validator is specified, the highest stake validator will be picked automatically. Note that the validator address should be in a sdk.ValAddress format (`lava@valoper...`).
+- **`chain-id`** -服务链的 ID(例如,**`COS4`** 或 **`FTM250`**)。要获得可用链的完整列表,请使用:`lavap query spec show-all-chains --node {LAVA_RPC_NODE}`.
+- **`amount`** - 特定链的质押金额(e.g., **`2010ulava`**).
+- **`endpoint`** - 提供商宿主监听器,由` Provider -host: Provider -port,geolocation`组成。定义多个端点:`"host:port,geolocation host2:port2,geolocation2"`。要定义诸如`trace`、`debug`等高级端点功能,请咨询Lava团队。
+- **`geolocation`** - 表示进程所在的地理位置(例如,**`1`**代表US,**`2`**代表EU)。此参数必须指定所定义端点的所有地理位置(参见下面的“美国和欧洲以太坊主网”)。
+- **`validator`** - 质押的验证器地址(可选)。由于双重锁定机制,锁定时需要验证器地址。如果没有指定验证器,将自动选择最高的质押验证器。注意,验证器地址应该在sdk中。ValAddress格式(`lava@valoper...`)。
-#### Geolocations
+#### 地理位置
```javascript
USC = 1; // US-Center
@@ -224,19 +224,19 @@ Note that this TX can also be used to increase the provider's stake. To increase
```
-#### Flags Details
+#### Flags 细节
-- **`--from`** - The account to be used for the provider staking (e.g., **`my_account`**).
-- **`--provider-moniker`** - Provider’s public name
-- **`--keyring-backend`** - A keyring-backend of your choosing (e.g., **`test`**).
-- **`--chain-id`** - The chain_id of the network (e.g., **`lava-testnet-2`**).
-- **`--gas`** - The gas limit for the transaction (e.g., **`"auto"`**).
-- **`--gas-adjustment`** - The gas adjustment factor (e.g., **`"1.5"`**).
-- **`--node`** - A RPC node for Lava (e.g., **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**).
+- **`--from`** - 用于提供商质押的帐户 (e.g., **`my_account`**).
+- **`--provider-moniker`** - 提供商的公开名称
+- **`--keyring-backend`** - 您选择的密钥环后端 (e.g., **`test`**).
+- **`--chain-id`** - 网络的chain_id (e.g., **`lava-testnet-2`**).
+- **`--gas`** - 交易的燃料限额 (e.g., **`"auto"`**).
+- **`--gas-adjustment`** - 燃料调节系数 (e.g., **`"1.5"`**).
+- **`--node`** - Lava的RPC节点 (e.g., **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**).
-### Stake Examples
+### 质押示例
-#### Lava Testnet in US (with specified validator)
+#### 美国的 Lava Testnet(使用指定的验证器)
```bash
lavap tx pairing stake-provider LAV1 \
@@ -252,8 +252,8 @@ lavap tx pairing stake-provider LAV1 \
--node "https://public-rpc-testnet2.lavanet.xyz:443/rpc/"
```
-#### Ethereum Mainnet in US (without specified validator)
-Ethereum and other EVMs usually have only `jsonrpc` interface:
+#### 美国的以太坊主网(未指定验证器)
+以太坊和其他 EVM 通常只有 `jsonrpc` 接口:
```bash
lavap tx pairing stake-provider "ETH1" \
@@ -268,7 +268,7 @@ lavap tx pairing stake-provider "ETH1" \
--node "https://public-rpc-testnet2.lavanet.xyz:443/rpc/"
```
-#### Ethereum Mainnet in US And Europe (multiple endpoints)
+#### 美国和欧洲的以太坊主网(多个端点)
```bash
lavap tx pairing stake-provider "ETH1" \
"50000000000ulava" \
@@ -282,8 +282,8 @@ lavap tx pairing stake-provider "ETH1" \
--node "https://public-rpc-testnet2.lavanet.xyz:443/rpc/"
```
-#### Ethereum Globally Load Balanced Array of Nodes
-To be used if your endpoint is DNS load balanced for all covered geolocations.
+#### 以太坊全局负载均衡节点阵列
+如果您的端点对所有覆盖的地理位置进行DNS负载均衡,则使用此选项。
```bash
lavap tx pairing stake-provider "ETH1" \
"50000000000ulava" \
@@ -297,8 +297,8 @@ lavap tx pairing stake-provider "ETH1" \
--node "https://public-rpc-testnet2.lavanet.xyz:443/rpc/"
```
-#### Cosmos Hub Testnet in US
-Cosmos's usually have `rest`, `tendermintrpc` & `grpc` interface, all mandatory:
+#### Cosmos Hub 测试网在美国
+Cosmos通常有`rest`、`tendermintrpc`和`grpc`接口,这些接口都是必须的:
```bash
lavap tx pairing stake-provider "COS5T" \
@@ -313,9 +313,9 @@ lavap tx pairing stake-provider "COS5T" \
--node "https://public-rpc-testnet2.lavanet.xyz:443/rpc/"
```
-## Step 5: Verify stake
+## Step 5: 验证质押
-To ensure that your account is successfully staked with the providers for a specific network, execute the following command. Make sure to check if your account's public address is present in the list generated by the command output:
+为了确保您的帐户成功地与特定网络的提供商绑定,请执行以下命令。请确保检查你的账户的公共地址是否在命令输出生成的列表中:
@@ -335,12 +335,12 @@ lavap query pairing account-info \
{provider_address} \
--node "{LAVA_RPC_NODE}"
-# Example: seeing all relevant information for an account
-# lavap query pairing account-info \
+# 示例:查看帐户的所有相关信息
+# lavap query pairing providers \
# lava@1e4vghfjertxq25l2vv56egkfkvdjk90t0c667v \
# --node https://public-rpc-testnet2.lavanet.xyz:443/rpc/
-# Expected output:
+# 输出如下:
# --------------------------------------------
# Active Provider Chains
# --------------------------------------------
@@ -352,41 +352,41 @@ lavap query pairing account-info \
-#### Parameter Descriptions (with examples):
+#### 参数说明(举例说明):
-- **`provider_address`** - The public address of the provider beginning with the lava@ prefix. Examples: **`lava@1e4vghfjertxq25l2vv56egkfkvdjk90t0c667v`**
-- **`LAVA_RPC_NODE`** - An RPC node for Lava. This can be omitted if the current node has already joined the Lava network. Example: **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**
+- **`provider_address`** - 提供商的公共地址,以lava@前缀开头。例子:**`lava@1e4vghfjertxq25l2vv56egkfkvdjk90t0c667v`**
+- **`LAVA_RPC_NODE`** - Lava的RPC节点。如果当前节点已经加入了熔岩网络,则可以省略此操作。例子: **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**
-Another useful command to check all providers for a specific chain:
+另一个用于检查特定链的所有provider的有用命令:
```bash
lavap query pairing providers \
"{NETWORK_NAME}" \
--node "{LAVA_RPC_NODE}"
-# Example: checking if your account is a paired provider for the ETH1 network,
+# 例如:检查您的帐户是否是ETH1网络的配对提供商,
# lavap query pairing providers \
# ETH1 \
# --node https://public-rpc-testnet2.lavanet.xyz:443/rpc/
-# Expected output:
-# List of all providers, and your provider should be on of them
+# 输出如下:
+# 所有提供商的列表,你的提供商应该在其中
```
-#### Parameter Descriptions (with examples):
+#### 参数说明(举例说明):
-- **`NETWORK_NAME`** - The ID of the chain. Examples: **`COS4`** or **`FTM250`**. To get the full list of available chains use: `lavap query spec show-all-chains --node {LAVA_RPC_NODE}`.
-- **`LAVA_RPC_NODE`** - An RPC node for Lava. This can be omitted if the current node has already joined the Lava network. Example: **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**
+- **`NETWORK_NAME`** - 链的ID。例如:**`COS4`**或**`FTM250`**。要获得可用链的完整列表,请使用:`lavap query spec show-all-chains --node {LAVA_RPC_NODE}`.
+- **`LAVA_RPC_NODE`** - Lava的RPC节点。如果当前节点已经加入了熔岩网络,则可以省略此操作。例子:**`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**
-:::info
-Note, a new provider stake is only applied on the start of the next epoch. Currently, an epoch is defined as 30 blocks. With block time of 30sec, in the worst case scenario the stake will be applied after 15min.
+:::info
+注意,新的提供商权益只在下一个纪元开始时应用。目前,一个epoch被定义为30个块。阻塞时间为30秒,在最坏的情况下,质押将在15分钟后生效。
:::
-## Step 6: Check Provider liveliness - after staking
+## Step 6:检查供应商的活跃情况-质押后
-Now that your provider is staked you can repeat the command, but this time, without specifying the endpoints, as the CLI will use the blockchain to fetch them, this verifies the data exists correctly on the blockchain.
+现在您的提供商已经质押,您可以重复这个命令,但是这一次,没有指定端点,因为CLI将使用区块链来获取它们,这将验证数据是否正确存在于区块链上。
-### Usage
+### 使用
@@ -395,10 +395,10 @@ Now that your provider is staked you can repeat the command, but this time, with
```bash
lavap test rpcprovider --from {WALLET}
-# Example: checking if your provider, is staked correctly and listening on all staked services
+# 示例:检查您的提供商是否正确质押,并监听所有质押的服务
# lavap test rpcprovider --from provider1_us --node https://public-rpc-testnet2.lavanet.xyz:443/rpc/
-# Expected output:
+# 输出如下:
# ...logs...
# ----------------------------------------SUMMARY----------------------------------------
@@ -415,7 +415,7 @@ lavap test rpcprovider --from {WALLET}
```bash
lavap test rpcprovider {PROVIDER_ADDRESS}
-# Example: checking if your provider, is staked correctly and listening on all staked services
+# 示例:检查您的提供商是否正确质押,并监听所有质押的服务
# lavap test rpcprovider lava@myprovidersbech32pubaddress --node https://public-rpc-testnet2.lavanet.xyz:443/rpc/
```
@@ -423,46 +423,46 @@ lavap test rpcprovider {PROVIDER_ADDRESS}
-## Step 7: Provider Info and more features
+## Step 7: 提供商信息和更多功能
-You can track your Provider rewards and transactions via [https://info.lavanet.xyz/providers](https://info.lavanet.xyz/providers)
+您可以通过[https://info.lavanet.xyz/providers](https://info.lavanet.xyz/providers)跟踪您的供应商奖励和交易。
-And review the Providers Features page for more capabilities.
+并查看提供商功能页面以了解更多功能。
-## Step 8: Create Provider Service
+## Step 8: 创建提供商服务
:::tip
-Please note that Lava has a dedicated binary in order to run and manage providers called `lavavisor`. make sure you are using either `lavavisor` OR a service file but not both.
+请注意,Lava有一个专用的二进制文件来运行和管理名为`lavavisor`的提供商。确保你使用的是`lavavisor`或者一个服务文件,但不能同时使用两者。
:::
-Assuming the following:
-- The `lavap` binary is located in ``/usr/bin``
-- The wallet responsible for the provider has a password
-- A configuration file was made for the provider
+假定你已完成如下工作:
+- `lavap` 二进制文件位于 `/usr/bin` 目录中。
+- 负责提供商的钱包有密码。
+- 已为提供商创建了配置文件。
-First we need to set the following values:
+首先,我们需要设置以下值:
```bash
-TMP_PASSWORD=
-TMP_CONFIG_FILE_PATH=
-TMP_GEO_LOCATION=
-TMP_PROVIDER_WALLET_ACCOUNT=
-TMP_CHAIN_ID= # lava-testnet-2
+TMP_PASSWORD=<如果你有钱包密码的话>
+TMP_CONFIG_FILE_PATH=<配置文件的路径>
+TMP_GEO_LOCATION=<您希望使用的地理位置>
+TMP_PROVIDER_WALLET_ACCOUNT=<您的提供商钱包帐户名称>
+TMP_CHAIN_ID= # lava-testnet-2
```
-Run the following to create the service file:
+2 .执行如下命令创建服务文件。
```bash
sudo tee </dev/null /etc/systemd/system/lava-provider.service
[Unit]
Description=Lava Provider
After=network-online.target
[Service]
-# the user that runs the service
+# 运行服务的用户
User=root
-# set the working directory so that its easier to note the config file
+# 设置工作目录,以便更容易注意到配置文件。
WorkingDirectory=/root
-# since we are using the wallet we must send in the password automatically
+# 因为我们使用的是钱包,所以必须自动发送密码
ExecStart=/usr/bin/sh -c 'echo $TMP_PASSWORD | /usr/bin/lavap rpcprovider $TMP_CONFIG_FILE_PATH --geolocation $TMP_GEO_LOCATION --from $TMP_PROVIDER_WALLET_ACCOUNT --chain-id $TMP_CHAIN_ID'
Restart=always
@@ -472,47 +472,47 @@ WantedBy=multi-user.target
EOF
```
-Finally enable and run the service:
+最后启用并运行服务:
```bash
sudo systemctl daemon-reload
sudo systemctl enable lava-provider.service
sudo systemctl start lava-provider.service
```
-View the logs:
+查看日志:
```bash
journalctl -f -u lava-provider.service -o cat
```
-## Step 9: Unstake
-A provider can unstake to get its stake funds back to its wallet. The provider can unstake completely or partially. Note that the funds will be sent to the wallet after the Cosmos staking module's unbond period of time which is currently defined as 3 weeks. Also, if a provider fully unstakes, it's removed from the pairing list by the next epoch.
+## Step 9: 解除质押
+提供商可以取消质押,将其质押资金返回钱包。 提供商可以完全或部分取消质押。 请注意,资金将在 Cosmos 质押模块的解绑时间(目前定义为 3 周)之后发送到钱包。 此外,如果提供商完全取消质押,它将在下一个纪元之前从配对列表中删除。
-### Complete Unstake
-To unstake the full stake amount for a single service, use the following command:
+### 完全取消质押
+要取消单个服务的全部质押金额,请使用以下命令:
```bash
lavap tx pairing unstake-provider [chain-id] {validator} [flags]
```
-*Check the output for the status of the staking operation. A successful operation will have a code **`0`**.*
+*检查输出,查看质押操作的状态。成功操作的代码为 **`0`**.*
-#### Parameters Description
+#### 参数说明
-- **`chain-id`** - The ID of the serviced chain (e.g., **`COS4`** or **`FTM250`**). To get the full list of available chains use: `lavap query spec show-all-chains --node {LAVA_RPC_NODE}`.
-- **`validator`** - Validator address for unstaking (optional). If no validator is specified, the highest stake validator on which the provider is delegated to will be picked automatically. To view all the provider's delegations with the validators addresses use: `lavap query staking delegations [provider] --node {LAVA_RPC_NODE}`. Note that the validator address should be in a sdk.ValAddress format (`lava@valoper...`).
+- **`chain-id`** - 服务链的 ID(例如,**`COS4`** 或 **`FTM250`**)。 要获取可用链的完整列表,请使用: `lavap query spec show-all-chains --node {LAVA_RPC_NODE}`.
+- **`validator`** - 用于取消质押的验证者地址(可选)。 如果未指定验证者,将自动选择提供者委托的最高权益验证者。 要查看所有提供者的委托以及验证器地址,请使用:`lavap query stake delegates [provider] --node {LAVA_RPC_NODE}`。 请注意,验证器地址应采用 sdk.ValAddress 格式(`lava@valoper...`)。
-#### Flags Details
+#### 标注详情
-- **`--from`** - The account to be used for the provider staking (e.g., **`my_account`**).
-- **`--keyring-backend`** - A keyring-backend of your choosing (e.g., **`test`**).
-- **`--chain-id`** - The chain_id of the network (e.g., **`lava-testnet-2`**).
-- **`--gas`** - The gas limit for the transaction (e.g., **`"auto"`**).
-- **`--gas-adjustment`** - The gas adjustment factor (e.g., **`"1.5"`**).
-- **`--node`** - A RPC node for Lava (e.g., **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**).
+- **`--from`** - 用于提供商质押的账户 (e.g., **`my_account`**).
+- **`--keyring-backend`** - 您选择的keyring后端 (e.g., **`test`**).
+- **`--chain-id`** - 网络的chain_id (e.g., **`lava-testnet-2`**).
+- **`--gas`** - 交易的 Gas 限额 (e.g., **`"auto"`**).
+- **`--gas-adjustment`** - 燃料调节系数 (e.g., **`"1.5"`**).
+- **`--node`** - Lava 的 RPC 节点 (e.g., **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**).
-### Unstake Examples
+### 取消质押示例
-#### Unstake with specified validator
+#### 使用指定验证人取消质押
```bash
lavap tx pairing unstake-provider LAV1 \
@@ -525,7 +525,7 @@ lavap tx pairing unstake-provider LAV1 \
--node "https://public-rpc-testnet2.lavanet.xyz:443/rpc/"
```
-#### Unstake with unspecified validator
+#### 使用未指定的验证者取消质押
```bash
lavap tx pairing unstake-provider LAV1 \
@@ -537,37 +537,37 @@ lavap tx pairing unstake-provider LAV1 \
--node "https://public-rpc-testnet2.lavanet.xyz:443/rpc/"
```
-### Partial Unstake
-To unstake some of the stake amount for a single service, use the following command:
+### 部分解除质押
+要取消单个服务的部分质押金额,请使用以下命令:
```bash
lavap tx dualstaking unbond [validator] [provider] [chain-id] [amount] [flags]
```
-*Check the output for the status of the staking operation. A successful operation will have a code **`0`**.*
+*检查输出以了质押样操作的状态。 操作成功会有一个code **`0`**.*
:::info
-Note that the `unbond` command should be used because the proivder unbonds some of its funds from his self-delegation (which is its stake).
+请注意,应使用`unbond`命令,因为提供商从其自我委托(即其质押)中解除了部分资金的绑定。
:::
-#### Parameters Description
+#### 参数说明
-- **`validator`** - Validator address for unstaking. To view all the provider's delegations with the validators addresses use: `lavap query staking delegations [provider] --node {LAVA_RPC_NODE}`. Note that the validator address should be in a sdk.ValAddress format (`lava@valoper...`).
-- **`provider`** - Provider lava address (of format `lava@...`).
-- **`chain-id`** - The ID of the serviced chain (e.g., **`COS4`** or **`FTM250`**). To get the full list of available chains use: `lavap query spec show-all-chains --node {LAVA_RPC_NODE}`.
-- **`amount`** - Amount to unstake (for example: "`2010ulava`").
+- **`validator`** - 用于取消质押的验证人地址。 要查看所有提供者的委托以及验证器地址,请使用:`lavap query stake delegates [provider] --node {LAVA_RPC_NODE}`。 请注意,验证器地址应采用 sdk.ValAddress 格式(`lava@valoper...`)。
+- **`provider`** - 提供商Lava地址(格式为“lava@...”)。
+- **`chain-id`** - 服务链的 ID(例如,**`COS4`** 或 **`FTM250`**)。 要获取可用链的完整列表,请使用:`lavap query spec show-all-chains --node {LAVA_RPC_NODE}`.
+- **`amount`** - 取消质押的金额(例如:“`2010ulava`”)。
-#### Flags Details
+#### 标注详情
-- **`--from`** - The account to be used for the provider staking (e.g., **`my_account`**).
-- **`--keyring-backend`** - A keyring-backend of your choosing (e.g., **`test`**).
-- **`--chain-id`** - The chain_id of the network (e.g., **`lava-testnet-2`**).
-- **`--gas`** - The gas limit for the transaction (e.g., **`"auto"`**).
-- **`--gas-adjustment`** - The gas adjustment factor (e.g., **`"1.5"`**).
-- **`--node`** - A RPC node for Lava (e.g., **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**).
+- **`--from`** - 用于提供商质押的账户 (e.g., **`my_account`**).
+- **`--keyring-backend`** - 您选择的keyring后端 (e.g., **`test`**).
+- **`--chain-id`** - 网络的chain_id (e.g., **`lava-testnet-2`**).
+- **`--gas`** - 交易的 Gas 限额 (e.g., **`"auto"`**).
+- **`--gas-adjustment`** - 燃料调节系数 (e.g., **`"1.5"`**).
+- **`--node`** - Lava 的 RPC 节点 (e.g., **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**).
-### Unbond Examples
+### 解除绑定示例
```bash
lavap tx dualstaking unbond "validator_lava_address" \
@@ -582,43 +582,43 @@ lavap tx dualstaking unbond "validator_lava_address" \
--node "https://public-rpc-testnet2.lavanet.xyz:443/rpc/"
```
-## Step 10: Modify stake entry
-A provider can modify different properties of its stake entry using the `modify-provider` TX. The properties that can be changed using this TX include its stake amount, moniker, available endpoints, delegation commission and more.
+## Step 10: 修改质押条目
+提供者可以使用`modify-provider` TX 修改其权益条目的不同属性。 使用此 TX 可以更改的属性包括其权益金额、名称、可用端点、委托佣金等。
-### Modify provider stake entry
-To modify the provider's stake entry for a single service, use the following command:
+### 修改提供商质押条目
+要修改单个服务的提供商的权益条目,请使用以下命令:
```bash
lavap tx pairing modify-provider [chain-id] [flags]
```
-*Check the output for the status of the staking operation. A successful operation will have a code **`0`**.*
+*检查输出以了解质押操作的状态。 操作成功会有一个code **`0`**.*
:::tip
-Note that most changes are defined using the optional flags listed below.
+请注意,大多数更改是使用下面列出的可选标注定义的。
:::
-#### Parameters Description
+#### 参数说明
-- **`chain-id`** - The ID of the serviced chain (e.g., **`COS4`** or **`FTM250`**). To get the full list of available chains use: `lavap query spec show-all-chains --node {LAVA_RPC_NODE}`.
+- **`chain-id`** - 服务链的 ID(例如,**`COS4`** 或 **`FTM250`**)。 要获取可用链的完整列表,请使用: `lavap query spec show-all-chains --node {LAVA_RPC_NODE}`.
-#### Flags Details
+#### 标注详情
-- **`--from`** - The account to be used for the provider staking (e.g., **`my_account`**).
-- **`--keyring-backend`** - A keyring-backend of your choosing (e.g., **`test`**).
-- **`--chain-id`** - The chain_id of the network (e.g., **`lava-testnet-2`**).
-- **`--gas`** - The gas limit for the transaction (e.g., **`"auto"`**).
-- **`--gas-adjustment`** - The gas adjustment factor (e.g., **`"1.5"`**).
-- **`--node`** - A RPC node for Lava (e.g., **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**).
-- **`--amount`** - Provider stake amount. This is equivalent to the stake modifications TXs, so the `--validator` flag should be considered.
-- **`--delegate-commission`** - Provider delegation commission (optional).
-- **`--delegate-limit`** - Provider delegation limit (optional).
-- **`--endpoints`** - Provider endpoints (optional). Need to follow the endpoints definition format as in the `stake-provider` command.
-- **`--geolocation`** - Provider geolocation (optional). Can be set with `int32` value or string value ("`EU,US`").
-- **`--provider-moniker`** - Provider moniker (optional).
-- **`--validator`** - Validator address for staking/unstaking when using the `--amount` flag (optional). If no validator is specified, the highest stake validator on which the provider is delegated to will be picked automatically. To view all the provider's delegations with the validators addresses use: `lavap query staking delegations [provider] --node {LAVA_RPC_NODE}`. Note that the validator address should be in a sdk.ValAddress format (`lava@valoper...`).
+- **`--from`** - 用于提供商质押的账户 (e.g., **`my_account`**).
+- **`--keyring-backend`** - 您选择的keyring后端 (e.g., **`test`**).
+- **`--chain-id`** - 网络的chain_id (e.g., **`lava-testnet-2`**).
+- **`--gas`** - 交易的 Gas 限额 (e.g., **`"auto"`**).
+- **`--gas-adjustment`** - 燃料调节系数 (e.g., **`"1.5"`**).
+- **`--node`** - Lava 的 RPC 节点 (e.g., **`https://public-rpc-testnet2.lavanet.xyz:443/rpc/`**).
+- **`--amount`** - 提供者质押金额。 这相当于权益修改 TX,因此应考虑 `--validator`标识。
+- **`--delegate-commission`** - 提供商委托佣金(可选)。
+- **`--delegate-limit`** - 提供商委托限制(可选)。
+- **`--endpoints`** - 提供商端点(可选)。 需要遵循`stake-provider` 命令中的端点定义格式。
+- **`--geolocation`** - 提供商地理位置(可选)。 可以使用`int32` 值或字符串值("`EU,US`")进行设置。
+- **`--provider-moniker`** - 提供商名称(可选)。
+- **`--validator`** - 使用`--amount` 标识(可选)时用于质押/取消质押的验证器地址。 如果未指定验证者,将自动选择提供商委托的最高权益验证者。 要查看所有提供商的委托以及验证器地址,请使用:`lavap query stake delegates [provider] --node {LAVA_RPC_NODE}`。 请注意,验证器地址应采用 sdk.ValAddress 格式(`lava@valoper...`)。
-### Example
+### 示例
```bash
lavap tx pairing modify-provider ETH1 \
@@ -631,20 +631,20 @@ lavap tx pairing modify-provider ETH1 \
--validator lava@valoper13w... \
```
-## **FAQ** ❓
+## **常问问题** ❓
#### `lavap` not found
-Make sure you downloaded/built the binary, and it is located in the path you use to run `lavap` commands, or you have it under /usr/local/bin or under PATH. You can download/build the binary with `sudo make install-all` from your cloned folder.
+确保您下载/构建了二进制文件,并且它位于您用于运行 `lavap` 命令的路径中,或者您将它置于/usr/local/bin或path下。你可以使用`sudo make install-all`命令从你的克隆文件夹中下载/构建二进制文件。
#### Received error `account sequence mismatch`
-Try to wait for a block_time (current=30s) and then run the command again
+尝试等待一个block_time (current=30s),然后再次运行该命令
-#### How do I make changes?
-It is possible for a provider to make changes in his on chain stake entry at any time, it is possible to do so by sending the same stake-provider tx we have used when first joining the network with the updated parameters.
+#### 我该如何做出改变配置?
+提供商可以在任何时候对其on chain stake条目进行更改,这可以通过发送我们第一次使用更新的参数加入网络时使用的相同的stake-provider tx来实现。
-It is also possible to use a convenience cli command wrapping it:
+也可以使用一个方便的cli命令来包装它:
```bash
lavad tx pairing modify-provider {SpecID} --from {WALLET}
@@ -655,9 +655,9 @@ lavad tx pairing modify-provider {SpecID} --from {WALLET}
# --provider-moniker "my-new-nickname"
```
-#### How do I unstake? {#unstake}
+#### 我如何取消质押?{#unstake}
-Run the following command:
+运行以下命令:
```
lavap tx pairing unstake-provider "{NETWORK_NAME}" \\
@@ -680,23 +680,23 @@ lavap tx pairing unstake-provider "{NETWORK_NAME}" \\
#### Received error `dial tcp 127.0.0.1:26657: connect: connection refused`
-In case you got the following error:
+如果您遇到以下错误:
```
Error: post failed: Post "": dial tcp 127.0.0.1:26657: connect: connection refused
```
-It is likely that your node is not running, or has not joined the network, you can either join the network,
-or run the command with the `--node` flag to use an external Lava RPC node
+很可能你的节点没有运行,或者还没有加入网络,你可以加入网络,
+或使用`--node` 标志运行命令以使用外部 Lava RPC 节点
#### Received error `sentry init failure to initialize error="provider stake verification mismatch`
-In case you got the following error:
+如果您遇到以下错误:
```
ERR sentry init failure to initialize error="provider stake verification mismatch -- &map[ChainID:NETWORK_NAME spec name:NETWORK_FULL_NAME]" ChainID=CHAIN_ID apiInterface=PROTOCOL
```
-It is likely that the stake-provider command was not taken into effect yet, if running the `lavap server` option, please wait a few minutes and try running the command again.
+很可能是stake-provider命令尚未生效,如果运行`lavap server`选项,请等待几分钟,然后再次尝试运行该命令。
diff --git a/docs/provider/provider-tls.md b/docs/provider/provider-tls.md
index 801c29f8..ce2379f2 100644
--- a/docs/provider/provider-tls.md
+++ b/docs/provider/provider-tls.md
@@ -1,46 +1,46 @@
---
slug: /provider-tls
-title: TLS Setup
+title: 设置 TLS
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
-# Provider TLS Setup Guide
+# 提供商 TLS 设置指南
:::caution
-All providers on `lava-testnet-2` must use a domain name and TLS (1.3). You must have a domain name to continue. If you have not already, please take a moment to purchase one! You can find cheap top-level domains [here](https://www.namecheap.com/) or [here](https://tld-list.com/).
+`lava-testnet-2` 上的所有提供程序都必须使用域名和 TLS (1.3)。您必须拥有一个域名才能继续。如果还没有,请花点时间购买一个!您可以在 [此处](https://www.namecheap.com/) 或 [此处](https://tld-list.com/) 找到便宜的顶级域名。
:::
-## 📊 Diagram
+## 📊 图表

-## 📋 Prerequisites
+## 📋 必备条件
-| Required Setup | ? |
-| --------------------------|-----|
-| acquired a domain name | ✅ |
-| `lavap` is installed & configured | ✅ |
-| account with `ulava` balance | ✅ |
+| 必要设置 | ? |
+| -------------------------|-----|
+| 获得域名 | ✅ |
+| 已安装和配置 `lavap` | ✅ |
+| 有`ulava` 余额的账户 | ✅ |
-## 📝 Written Guide (~45m)
+## 📝 书面指南 (~45m)
-### 🅰️ Change the A Record on your Domain
+### 🅰️ 更改域名的 A 记录
-The first step of establishing your Provider is to modify some of the DNS settings on the domain you purchased. In specific, you'll need to change the A Records on your domain. Changing your `A-Record` will create a subdomain that routes traffic to a specific provider process. Depending upon who you've purchased your domain through, A-Records may be visible under `Advanced DNS` or another label.
+建立 Provider 的第一步是修改您所购买域名的一些 DNS 设置。具体来说,您需要更改域名上的 A 记录。更改 "A-Record "将创建一个子域,将流量路由到特定的提供商进程。A-Record可能在 "Advanced DNS"(高级 DNS)或其他标签下可见,具体取决于您通过谁哪个域名供应商购买域名。
- 🖧 Multiple Records (Recommended)
+ 🖧 多个记录 (Recommended)
-We recommend you create a separate `A-Record` for each one of the chains that you plan to support. This is more secure, as the default behavior is to refuse connection unless a consumer connects on the correct subdomain.
+我们建议您为计划支持的每个链创建一个单独的 "A-Record"。这样会更安全,因为默认行为是拒绝连接,除非消费者在正确的子域上进行连接。
-For each chain you want to support, add an `A-Record` with the desired chain name as the `Host`, the `Value` will be your server IP.
-For example, if you wanted to support Ethereum & Lava Mainnets, Your DNS Settings should include the following :
+为您要支持的每个链添加一个`A-Record`,将所需的链名作为`Host`,`Value`将是您的服务器 IP。
+例如,如果您想支持以太坊和 Lava 主网,您的 DNS 设置应包括以下内容 :
| Record Type | Host | Value |
| ------------------|-------| ----- |
@@ -49,9 +49,9 @@ For example, if you wanted to support Ethereum & Lava Mainnets, Your DNS Setting
- ⚀ Single Record
+ ⚀ 单个记录
-Alternatively, you can create one `A-Record` that captures traffic to all sub-domains. If you are supporting a large number of chains that frequently changes, doing this may somewhat simplify your process.
+或者,您也可以创建一个 `A-Record` 来捕获所有子域的流量。如果您要支持大量经常变化的链,这样做可能会在一定程度上简化流程。
| Record Type | Host | Value |
|-------------------|------|-------|
@@ -60,11 +60,11 @@ Alternatively, you can create one `A-Record` that captures traffic to all sub-do
-### 📂 Install Required Dependencies
+### 📂 安装所需的依赖项
-We will guide you on setting up and configuring Nginx to use a TLS certificate and handle connections to different provider processes. It is also possible to use alternative solutions for these two tasks, such as Caddy, Envoy or your preferred solution.
+我们将指导您设置和配置 Nginx,使其使用 TLS 证书并处理与不同提供商进程的连接。您也可以使用其他解决方案来完成这两项任务,如 Caddy、Envoy 或您喜欢的解决方案。
-Run the following commands to install the required packages:
+运行以下命令安装所需的软件包:
```bash
sudo apt update
@@ -73,29 +73,29 @@ sudo apt install certbot net-tools nginx python3-certbot-nginx -y
-### 📮 Generate Certificate
+### 📮 创建证书
-Next, we need to actually create the `TLS certificate` via the certifying authority. This process is automated by `certbot`.
+接下来,我们需要通过认证机构实际创建`TLS certificate` 。这个过程由 `certbot` 自动完成。
-Use `certbot` to create a certificate:
+使用 `certbot` 创建证书:
```
sudo certbot certonly -d you.xyz -d lava.you.xyz -d eth.you.xyz
```
-Note, you will need one `-d` flag for each subdomain you created as an `A-Record`. Even if you opted to create a Single Record, you still need to indicate a subdomain for each provider process you will run. We use the filler `you.xyz` as an example above.
+请注意,您将需要为作为`A-Record`创建的每个子域添加一个`-d` 标志。即使您选择创建单个记录,您仍需要为将要运行的每个提供程序指明一个子域。我们以上面的填充程序 `you.xyz` 为例。
-You may be met with several prompts. Use `nginx` or Nginx Web Server Plugin when asked.
+你可能会遇到几个提示。在出现提示时,请使用 `nginx` 或 Nginx 网络服务器插件。
-### 💻 Validate Certificate
+### 💻 验证证书
-Let's make sure your certificate successfully installed! ✅ Input the following command:
+确保证书安装成功!✅ 输入以下命令:
```sudo certbot certificates```
-Keep track of your output. If your certificate generation was successful, it should look as following:
+跟踪输出结果。如果证书生成成功,它应该如下所示:
```
Found the following certs:
@@ -107,16 +107,16 @@ Found the following certs:
```
-You'll need both `Certificate Path` and `Private Key Path` for your next step.
+下一步需要`Certificate Path`和`Private Key Path` 。
-### 🗃️ Add an Nginx Config for Each Domain
+### 🗃️ 为每个域添加 Nginx 配置
-Lava recommends running each chain under a separate provider process. This will separate error logs and protect against complete provider failure in the case of a problematic provider process. The first step of this is to create different nginx routes for each chain.
+Lava 建议在单独的提供程序进程下运行每个链。这将分离错误日志,并在提供程序出现问题时防止提供程序完全失效。第一步是为每个链创建不同的 nginx 路由。
-For each chain that you want to support, you will need to create a separate `nginx` config file.
-`cd` into `/etc/nginx/sites-available/` and create a `server` file for each chain. You will need to select an open port for each chain. `Nginx` will use these config files to create your routes.
+对于要支持的每个链,都需要创建单独的 `nginx` 配置文件。
+`cd`到`/etc/nginx/sites-available/`,并为每个链创建一个`server`文件。你需要为每个链选择一个开放端口。Nginx会使用这些配置文件创建路由。
@@ -167,7 +167,7 @@ server {
:::warning
-The below caddy example is to provide guidance only. The recommended route is through `nginx`. Although making a provider functional with Caddy is possible you are proceeding at your own risk and with your own expertise.
+以下caddy示例仅供参考。推荐路线是通过 `nginx`。虽然可以使用 Caddy 实现提供商功能,但风险和专业知识需自行承担。
:::
@@ -189,27 +189,27 @@ https://your-site.com:443 {
-In most cases, after creating a configuration file in accessible sites, you need to create a symbolic link to this file in the enabled sites directory. This can be done with a command like:
+大多数情况下,在可访问站点中创建配置文件后,需要在启用站点目录中创建该文件的符号链接。可以使用以下命令来完成
```
sudo ln -s /etc/nginx/sites-available/lava_server /etc/nginx/sites-enabled/lava_server
```
:::caution
-The above examples use ports `443` for external listening and `2223` / `2224` for internal comms, respectively. Using ports other than `443` for external listening means that some users will not be able to connect to your provider. This can result in less rewards and poorer quality of service. For internal listening, be aware that some ports on your OS may be used for internal communication and should be avoided.
+上述示例分别使用端口 `443` 进行外部监听,使用端口 `2223` / `2224` 进行内部通信。将端口 `443` 以外的端口用于外部监听意味着一些用户将无法连接到您的提供商。这会导致奖励减少和服务质量下降。对于内部监听,请注意操作系统上的某些端口可能用于内部通信,应避免使用。
:::
-### 🧪 Test Nginx Configuration
+### 🧪 测试 Nginx 配置
-Now, ensure that your `nginx` setup is working! ✅
+现在,请确保您的 `nginx` 设置正常运行! ✅
```bash
sudo nginx -t
```
-🖳 Expected Output:
+🖳 预期输出:
```
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
@@ -217,23 +217,23 @@ nginx: configuration file /etc/nginx/nginx.conf test is successful
-### ♻️ Restart Nginx
+### ♻️ 重启 Nginx
-You will need to refresh the Nginx server:
+您需要刷新 Nginx 服务器:
```bash
sudo systemctl restart nginx
```
-### ⚙️ Create the Provider Configuration
+### ⚙️ 创建提供商配置
:::tip
-Need a template? A default `rpcprovider.yml` configuration is available in `~/lava/config`
+需要模板?默认的 `rpcprovider.yml` 配置位于 `~/lava/config` 中。
:::
-Per earlier advisement, we'll create one `.yml` per chain we plan to support. Each one of these `.yml` files will function as the configuration for a distinct provider process. In case of our example, we'll create a `lava-provider.yml` and a `eth-provider.yml`.
+根据之前的建议,我们将为计划支持的每个链创建一个 `.yml`。每个 `.yml` 文件都将作为不同提供程序的配置文件。在我们的示例中,我们将创建一个 `lava-provider.yml` 和一个 `eth-provider.yml` 。
@@ -288,50 +288,50 @@ endpoints:
-Once we've created these files we can move onto starting the processes!
+创建完这些文件后,我们就可以开始启动进程了!
-### 🏁 Start the Provider Process(es)
+### 🏁 启动提供商进程
-In this example, we use the built-in terminal multiplexer `screen` to run multiple provider processes. Begin by typing `screen`. But you can also use a different multiplexer, e.g. `tmux`.
+在这个例子中,我们使用内置的终端多路复用器`screen`来运行多个provider进程。首先输入`screen`。但是你也可以使用不同的多路复用器,例如 `tmux`。
-⏫ To start the Ethereum process
+⏫ 启动以太坊进程
```bash
screen -S eth-provider
-# This will take us to a separate terminal where we can start the provider process:
+# 这将把我们带到一个单独的终端,在这里我们可以启动provider进程:
lavap rpcprovider eth-provider.yml --from your_key_name_here --geolocation 1 --chain-id lava-testnet-2 --log_level debug
```
-Press `CTRL+ad` to detach from the `eth-provider` screen.
-⏫ To start the Lava provider process
+按`CTRL+ad`从`eth-provider`Screen分离。
+⏫ 启动 Lava provider 进程
```bash
screen -S lava-provider
-# This will take us to a separate terminal where we can start the provider process:
+# 这将把我们带到一个单独的终端,在这里我们可以启动provider进程:
lavap rpcprovider lava-provider.yml --from your_key_name_here --geolocation 1 --chain-id lava-testnet-2 --log_level debug
```
-Some notes:
-* `--from` should be followed by the key name of your funded account that you will use to stake your provider
-* `--log_level debug` gives us verbose output so we can diagnose any issues that may arise
-* `--chain-id` may or may not be necessary, depending upon your setup, but we can default to `--lava-testnet-2`
-* `--node` may or may not be necessary
+一些注意事项:
+* `——from`后面应该跟着您的资金账户的名称,您将使用该名称来质押您的提供商
+* `——log_level debug`为我们提供详细的输出,以便我们可以诊断可能出现的任何问题
+* `——chain-id`可能是必要的,也可能不是,这取决于你的设置,但我们可以默认为`——lava-testnet-2`
+* `——node`可能是也可能不是必需的
:::caution
-The syntax on your `.yml` files must be precise. Misplaced or invisible characters or inconsistent indentation can cause errors.
+您的 `.yml` 文件语法必须精确。错位、隐形字符或缩进不一致都可能导致错误。
:::
-### ☑️ Test the Provider Process!
+### ☑️ 测试提供商进程
-Run the following commands one at a time!
+逐次运行以下命令!
`lavap test rpcprovider --from your_key_name_here --endpoints "your-site:443,LAV1"`
-🖳 Expected output:
+🖳 预期输出:
```
📄----------------------------------------✨SUMMARY✨----------------------------------------📄
@@ -352,7 +352,7 @@ Run the following commands one at a time!
`lavap test rpcprovider --from your_key_name_here --endpoints "your-site:443,ETH1"`
-🖳 Expected output:
+🖳 预期输出:
```
📄----------------------------------------✨SUMMARY✨----------------------------------------📄
@@ -369,9 +369,9 @@ Run the following commands one at a time!
```
-### 🔗💥 Stake the Provider on Chain
+### 🔗💥 链上质押提供商
-Use a variation of the following command to stake on chain; the minimum stake is `50000000000ulava`
+使用以下命令对链进行质押;最小质押为 `50000000000ulava`
```bash
lavap tx pairing stake-provider ETH1 "50000000000ulava" "eth.your-site:443,1" 1 validator -y --from your_key_name_here --provider-moniker your-provider-moniker-1 --delegate-limit "0ulava" --gas-adjustment "1.5" --gas "auto" --gas-prices "0.0001ulava"
@@ -382,18 +382,18 @@ lavap tx pairing stake-provider ETH1 "50000000000ulava" "eth.your-site:443,1" 1
lavap tx pairing stake-provider LAV1 "50000000000ulava" "lava.your-site:443,1" 1 validator -y --from your_key_name_here --provider-moniker your-provider-moniker-1 --delegate-limit "0ulava" --gas-adjustment "1.5" --gas "auto" --gas-prices "0.0001ulava"
```
-### ☑️ Test the Providers again!
+### ☑️ 再次测试供应商!
```bash
lavap test rpcprovider --from your_key_name_here --endpoints "lava.your-site:443,LAV1"
lavap test rpcprovider --from your_key_name_here --endpoints "eth.your-site:443,ETH1"
```
-You can also get useful information on the setup using:
+您还可以通过以下方式获取有关设置的有用信息:
```bash
lavap q pairing account-info --from your_key_name
```
-❗ If you have any further issues, do not hesitate to venture to our [discord](https://discord.com/invite/Tbk5NxTCdA) where you can get better assistance!
+❗ 如果您还有其他问题,请随时访问我们的 [discord](https://discord.com/invite/Tbk5NxTCdA),在那里您可以获得更好的帮助!
diff --git a/docs/provider/provider.md b/docs/provider/provider.md
index 278f1b0e..736e3970 100644
--- a/docs/provider/provider.md
+++ b/docs/provider/provider.md
@@ -5,16 +5,16 @@ slug: /provider
import RoadmapItem from '@site/src/components/RoadmapItem';
-# Become a Provider
-Welcome to the Lava network's provider introduction. In this page, you'll learn about the role of providers in the Lava network, as well as the necessary steps to get started as one.
+# 成为提供商
+欢迎来到 Lava 网络的提供商介绍。在本页中,您将了解提供者在 Lava 网络中的角色,以及开始作为一个提供者开始的必要步骤。
-:::info want to be a testnet Provider? ✍️
-To get the initial testnet LAVA stake, read the [Provider Incubation program details](https://lavanet.notion.site/Lava-Testnet-Providers-Incubation-Program-2d45589294b84976843fd55569f8be87) 📖
+:::info 想成为测试网提供商? ✍️
+要获得初始测试网 LAVA 质押,请阅读 [提供商孵化计划详细信息](https://lavanet.notion.site/Lava-Testnet-Providers-Incubation-Program-2d45589294b84976843fd55569f8be87) 📖
:::
-## **Providers in Lava's Protocol**
+## **Lava协议中的提供商**
-Providers are the backbone of the Lava network, servicing relay requests by staking on the network and operating RPC nodes on Relay Chains queried by Consumers (e.g., Cosmos, Ethereum, Osmosis, Polygon, etc.). In return, they earn fees in the form of LAVA tokens from the Consumers for servicing these requests.
+提供者是 Lava 网络的骨干,通过在网络上质押和在消费者查询的中继链(例如 Cosmos、以太坊、Osmosis、Polygon 等)上运行 RPC 节点来为中继请求提供服务。作为回报,他们以 LAVA 代币的形式从消费者那里赚取费用,以服务这些请求。
```mermaid
graph LR
@@ -22,23 +22,23 @@ graph LR
B --> |Private Address| C[Relayed Nodes]
```
-### **Becoming a Provider**
+### **成为供应商**
-To join the Lava network as a provider, follow these steps:
+要以提供商身份加入 Lava 网络,请按照下列步骤操作:
-1. Ensure your Relay Chain RPC Nodes are operational and meet the required specifications.
-2. Stake LAVA and run Lava’s lightweight Provider process, as detailed in our **[Provider Setup](docs/provider/provider-setup.md)** guide.
+1. 确保您的中继链 RPC 节点正常运行并满足所需的规范。
+2. 质押 LAVA 并运行 Lava 的轻量级 Provider 流程,详见我们的 Provider 设置指南。 **[Provider Setup](docs/provider/provider-setup.md)** guide.
-:::info Want to learn more?
-Learn more by reading our [litepaper](https://lavanet.xyz)
+:::info 想了解更多?
+通过阅读我们的[白皮书](https://lavanet.xyz)了解更多信息 。
:::
-### **Provider Parameters**
+### **提供商参数**
-When staking as a provider, there are four main parameters used in the transaction:
+当作为提供商进行质押时,交易中使用了四个主要参数:
-1. **Stake**: The amount of LAVA to stake for the service.
-2. **Geolocation**: The location of the provider's nodes. (Note that `0` is *only* assigned via policy/gov proposal)
+1. **Stake**: 为服务质押的 LAVA 数量。
+2. **Geolocation**: 提供程序节点的位置。(请注意, `0` 仅通过政策/治理提案分配)
```javascript
GLS = 0; // Global-strict
USC = 1; // US-Center
@@ -50,16 +50,16 @@ When staking as a provider, there are four main parameters used in the transacti
AU = 64; // (Australia, includes NZ)
GL = 65535; // Global
```
-3. **ChainID**: The identifier of the target blockchain network, such as Cosmos Mainnet, Ethereum Ropsten, etc.
-4. **Endpoints**: A list of endpoints, each defining an address and geolocation
+3. **ChainID**: 目标区块链网络的标识符,如Cosmos Mainnet、Ethereum Ropsten等。
+4. **Endpoints**: 端点列表,每个端点定义一个地址和地理位置
-Providers need to stake separately for each supported spec. For example, if you support both Cosmos and Ethereum, you will need two separate stakes. Once your request is verified and included in the chain state, you'll be included in the Pairing List starting from the next Epoch and can begin servicing consumer requests through your nodes.
+提供商需要为每个支持的规范单独质押。例如,如果您同时支持 Cosmos 和以太坊,您将需要两个单独的质押。一旦您的请求被验证并包含在链状态中,您将从下一个 Epoch 开始包含在配对列表中,并且可以开始通过您的节点为消费者请求提供服务。
-### **Supported APIs and Chain Specifications**
+### **支持的 API 和链规范**
-Lava's protocol expands its support to new RPCs by adding Specifications ("specs") via governance. Each spec describes the schema needed for the RPC and aligns the different actors on the provided interface.
+Lava 的协议通过治理添加规范("specs")来扩展其对新 RPC 的支持。每个规范都描述了 RPC 所需的架构,并对齐了所提供接口上的不同参与者。
-To obtain information on a specific chain, run the following command, replacing `SPEC-ID`:
+要获取特定链的信息,请运行以下命令,替换 `SPEC-ID`:
```bash
curl -X 'GET' \
@@ -67,10 +67,9 @@ curl -X 'GET' \
-H 'accept: application/json'
```
-### Querying Available APIs and Chains {#chains}
+### 查询可用的 API 和链 {#chains}
-
-To obtain a list of available APIs and chains, [query all chain specs](https://public-rpc-testnet2.lavanet.xyz/rest/lavanet/lava/spec/show_all_chains) or use the following CLI commands for a detailed list:
+要获取可用 API 和链的列表,请使用 [query all chain specs](https://public-rpc-testnet2.lavanet.xyz/rest/lavanet/lava/spec/show_all_chains) 或使用以下 CLI 命令:
```bash
@@ -79,13 +78,13 @@ curl -X 'GET' \
-H 'accept: application/json' | jq
```
-Alternatively,
+或者
```bash
lavap q spec list-spec --node https://public-rpc-testnet2.lavanet.xyz:443/rpc/
```
-## Next step: Setup a Provider
+## 下一步:设置提供程序
-When you're ready, join **as a provider**:
+准备就绪后,以**提供商**身份加入:
[](/provider-setup)
diff --git a/docs/tokenomics/distribution.md b/docs/tokenomics/distribution.md
index 09b4420a..8b9cb6a3 100644
--- a/docs/tokenomics/distribution.md
+++ b/docs/tokenomics/distribution.md
@@ -5,11 +5,11 @@ title: 📊 Distribution
-# 🪙 Distribution Details
+# 🪙 分发细节
-## 🧮 Distribution Breakdown
+## 🧮 分发分解
-Lava will have `1,000,000,000` tokens at Genesis with no inflation to token supply. The following table and chart shows how the tokens are distributed at Genesis:
+Lava将在创世纪拥有“1,000,000,000”代币,代币供应没有通货膨胀。下面的表格显示了这些代币在《创世纪》中的分布情况:

@@ -18,35 +18,36 @@ Lava will have `1,000,000,000` tokens at Genesis with no inflation to token supp
-Max Supply: `1,000,000,000 LAVA` (**100%**)
+最大供应量: `1,000,000,000 LAVA` (**100%**)
###
-| Category | Description | % |
-|------------------------|--------------|------|
-| Public Allocation | Future initiatives and Rewards Reserve (Provider Drops and Validator rewards) | 25% |
-| R&D & Ecosystem | Protocol Maintenance & Development; Programs for Providers, Validators, and Champions | 31% |
-| Investors | Early Supporters of Lava | 17% |
-| Contributors | Early contributors, Core Team, Advisors, & Others | 27% |
-| | **Total** | **100%** |
+| 分类 | 说明 | % |
+|------------------------|-------------------------------------------------------------------------------------------|-------|
+| 公共分配 | 未来计划和奖励储备(提供者空投和验证者奖励) | 25% |
+| R&D & Ecosystem | Protocol Maintenance & Development; Programs for Providers, Validators, and Champions | 31% |
+| 投资者 | LAVA的早期支持者 | 17% |
+| 贡献者 | 早期贡献者,核心团队,顾问和其他人 | 27% |
+| | **Total** | **100%** |
-## ⏳ Unlock Schedule
+## ⏳ 解锁进度

-| Category | Unlock Schedule |
+| 分类 | 解锁进度 |
|----------------------------|-----------------------------------------------------------------------------------------------------------------------|
-| Public Allocation | Fully unlocked at Launch. Except rewards reserve: unlocks continuously from launch to year 4. |
-| R&D & Ecosystem | 25% unlocked at launch. Remaining 75% unlocks continuously from year 1 to year 4. |
-| Investors | 33% unlocked at year 1. Remaining 67% unlocks continuously from year 1 to year 3. |
-| Initial Core Contributors | 33% unlocked at year 1. Remaining 67% unlocks continuously from year 1 to year 3. |
+| 公共分配 | 在启动时完全解锁。除了奖励储备:从启动到第4年持续解锁。 |
+| R&D & Ecosystem | 25%在发射时解锁。剩下的75%从第1年到第4年持续解锁。 |
+| 投资者 | 第一年解锁33%。剩余的67%从第1年到第3年连续解锁。 |
+| 最初的核心贡献者 | 第一年解锁33%。剩余的67%从第1年到第3年连续解锁。 |
-## 🏛️ Disclaimer
+## 🏛️ 免责声明
-THIS DOCUMENT IS NEITHER AN OFFER TO SELL NOR A SOLICITATION TO BUY ANY ASSETS, AND IT SHOULD NOT BE CONSIDERED AN OFFER, ADVERTISEMENT, INVITATION, CONFIRMATION, OR ANY FORM OF FINANCIAL PROMOTION MEANT TO ENCOURAGE OR INDUCE PARTICIPATION IN INVESTMENT ACTIVITIES. THE INFORMATION PROVIDED HEREIN SHOULD NOT BE VIEWED AS LEGAL, INVESTMENT, FINANCIAL, TAX, OR ANY OTHER TYPE OF PROFESSIONAL ADVICE AND IS NOT MEANT TO REPLACE PROFESSIONAL CONSULTATION.
-THE CONTENT INCLUDES FORWARD-LOOKING STATEMENTS, ESTIMATIONS, AND/OR HYPOTHETICAL FIGURES THAT ARE INHERENTLY SUBJECT TO UNCERTAINTY AND MAY UNDERGO ADJUSTMENTS; THEREFORE, ACTUAL OUTCOMES MAY DIFFER SIGNIFICANTLY. WE MAKE NO CLAIMS REGARDING THE RELIABILITY, ACCURACY, COMPLETENESS, OR VALIDITY OF THE INFORMATION CONTAINED WITHIN THIS DOCUMENT. BE AWARE THAT THIS MATERIAL MAY BE INACCURATE OR CONTAIN ERRORS. YOU SHOULD RECOGNIZE THAT INFORMATION HEREIN COULD BE UPDATED OR CHANGED WITHOUT NOTICE. ANY ADVICE OR INFORMATION RECEIVED FROM THE LAVA FOUNDATION, REGARDLESS OF HOW IT IS CONVEYED, SHOULD NOT BE SEEN AS CREATING ANY GUARANTEES OR REPRESENTATIONS NOT DIRECTLY STATED IN THIS DOCUMENT.
+这份文件既不是要约出售任何资产,也不是要约购买任何资产,不应被视为要约、广告、邀请、确认或任何形式的金融促销,旨在鼓励或诱导参与投资活动。此处提供的信息不应被视为法律、投资、金融、税务或任何其他类型的专业建议,并且不应取代专业咨询。
+
+内容包括前瞻性陈述、估计和/或假设数字,这些都天然受到不确定性的影响,并且可能会进行调整;因此,实际结果可能会有显著差异。我们对本文档中包含的信息的可靠性、准确性、完整性或有效性不作任何声明。请注意,此材料可能不准确或包含错误。您应该意识到,此处的信息可能会被更新或更改,而无需事先通知。从 LAVA 基金会获得的任何建议或信息,无论是通过何种方式传达,都不应被视为创造任何未在本文档直接声明的保证或陈述。
diff --git a/docs/tokenomics/growth.md b/docs/tokenomics/growth.md
index 38f47cc6..30da6fe9 100644
--- a/docs/tokenomics/growth.md
+++ b/docs/tokenomics/growth.md
@@ -3,26 +3,24 @@ slug: /growth
title: 📈 Growth
---
-# 🪙 Growth
-Lava has a capped token supply which is managed by DAO governance. There are existing and future plans to stimulate ecosystem growth:
+# 🪙 成长
+Lava 有一个由 DAO 治理管理的有限代币供应量。存在着现有和未来的计划来刺激生态系统的增长:
-## 🌋 Magma Points
-Points are separate to LAVA tokens and can be used to reward loyal community members. Lava Foundation can distribute points to chains using Lava’s Incentivized RPC Pools; points distribution can be decided by the chain. Additionally, wallet-users can earn points by using Lava-powered RPC to access partner chains.
+## 🌋 岩浆积分
+积分与 LAVA 代币分开,可用于奖励忠诚的社区成员。Lava 基金会可以通过 Lava 的激励 RPC 池将积分分发给链,积分的分发可以由链决定。此外,钱包用户可以通过使用 Lava 提供的 RPC 访问合作链来赚取积分。
-## 🌊 Incentivized RPC Pools
+## 🌊 激励 RPC 池
+链通过存入其原生代币在 Lava 上创建激励 RPC 池。此池用于激励提供者为链的 RPC 基础设施提供服务和扩展。随着越来越多的 Rollups 在 Lava 上部署,将会为提供者创建更多的池,以作为那些 Rollups 的奖励。代理人和重新质押者也可能作为这些池的一部分获得奖励。
-Chains create Incentivized RPC Pools on Lava by depositing their native token. This pool is used to incentivize Providers to serve and scale the chain’s RPC infrastructure. As more rollups deploy with Lava, more pools will be created for Providers to earn the tokens of those rollups as rewards. Delegators and restakers may also earn rewards as part of these pools.
+## 🎉 Lava 空投季节
+为了推动增长和参与度,可能会对网络参与者进行空投。
-## 🎉 Lava Drop Seasons
-To boost growth and engagement, airdrops to network participants may take place.
-
-## 💧 Provider Drops
-**6.6%** of LAVA total supply has been allocated to bootstrap initial growth of the network and attract providers.
-LAVA tokens will be automatically distributed monthly to providers on-chain, and the amount of tokens will be variable depending on paid demand for data through Lava.
-
-## 🌐 Community Pool
-Lava has a community pool which accrues funds from block rewards, subscriptions and Incentivized RPC Pools. Funds can be used by the DAO to conduct future initiatives engaging the community.
-- **2%** of block rewards
-- **0.1%** of Subscription rewards
-- **0.1%** of Incentivized RPC Pool rewards
+## 💧 提供者空投
+**LAVA** 总供应量的 **6.6%** 已分配用于引导网络的初始增长并吸引提供者。
+LAVA 代币将每月自动分发给链上的提供者,代币的数量将根据通过 Lava 支付的数据需求而变化。
+## 🌐 社区池
+Lava 有一个社区池,从区块奖励、订阅和激励 RPC 池中积累资金。这些资金可以由 DAO 用于开展未来的社区倡议。
+- 区块奖励的 **2%**
+- 订阅奖励的 **0.1%**
+- 激励 RPC 池奖励的 **0.1%**
\ No newline at end of file
diff --git a/docs/tokenomics/rewards-restaking.md b/docs/tokenomics/rewards-restaking.md
index f2c22789..774b06d3 100644
--- a/docs/tokenomics/rewards-restaking.md
+++ b/docs/tokenomics/rewards-restaking.md
@@ -3,169 +3,158 @@ slug: /rewards-restaking
title: 🛒 Rewards and Restaking
---
-# 🪙 Rewards and Restaking
-## 🌐 Role of `LAVA`
+# 🪙 奖励与再质押
+## 🌐 `LAVA` 的作用
-The `LAVA` token serves various purposes on the Lava Network:
-- `LAVA` is the asset denomination needed for paying the gas fees required to execute transactions or other operations on the Lava Network
-- Validators stake `LAVA` to secure the network and participate in governance
-- Providers stake `LAVA`, affecting the frequency of their pairing to Consumers
-- Token holders delegate and can restake in `LAVA` to Validators and Providers
-- Initial bootstrapping rewards (“Provider Drops”) for Providers are distributed in `LAVA`
-- Consumers buy subscriptions in `LAVA`
-- Providers are rewarded in `LAVA` monthly, in direct proportion to `LAVA` used to buy subscriptions the previous month
+`LAVA` 代币在 Lava 网络上有多种用途:
+- `LAVA` 是支付在 Lava 网络上执行交易或其他操作所需的燃料费用的资产单位
+- 验证者质押 `LAVA` 来保护网络并参与治理
+- 提供者质押 `LAVA`,影响其与消费者配对的频率
+- 代币持有者可以委托和再质押 `LAVA` 给验证者和提供者
+- 初始启动奖励(“提供者空投”)以 `LAVA` 分发给提供者
+- 消费者用 `LAVA` 购买订阅
+- 提供者每月以 `LAVA` 获得奖励,比例直接取决于上个月用于购买订阅的 `LAVA` 量
-## 🏆 Reward Types
-There are **5 types of rewards** on Lava and each is distributed across different actors. All % are determined by and can be changed by DAO governance.
+## 🏆 奖励类型
+Lava 上有 **5 种类型的奖励**,每种奖励分配给不同的参与者。所有的百分比由 DAO 治理决定并可以更改。

-
:::info
-A few flows are missing from this diagram: (i) data accuracy slashing / rewards (ii) cosmos validator slashing for misbehavior (iii) Referral / affiliate fees (iv) staking, (iv) Incentivized RPC Pools, (v) validators rewards from subscription rewards.
+此图表中缺少一些流程:(i)数据准确性的削减/奖励 (ii)宇宙验证者对不当行为的削减 (iii)推荐/联盟费用 (iv)质押,(v)激励 RPC 池,(vi)订阅奖励的验证者奖励。
:::
+### 订阅奖励 💼
+消费者用 `LAVA` 购买订阅。其中大部分的 `LAVA` 每月分配给提供者,与所提供计算服务的总量等因素相关。更多详情请参阅白皮书。奖励分配如下:
+- **95%** 分配给提供者及其代币持有者,其中冠军将获得 DAO 确定的一部分佣金
+- **4.9%** 分配给验证者及其代币持有者
+- **0.1%** 分配给社区池
-### Subscription Rewards 💼
-
-Consumers purchase subscriptions with `LAVA`. The majority of this `LAVA` is distributed monthly to Providers, relative to factors such as total compute served. More details are available in the whitepaper. The rewards distribution is as follows:
-- **95%** to Providers and their Delegators, of which Champions will take a % commission determined by the DAO
-- **4.9%** to Validators and their Delegators
-- **0.1%** to Community Pool
-
-### Incentivized RPC Pools 🛠️
-
-Chains create Incentivized RPC Pools on Lava by depositing their native token. This pool is used to incentivize Providers to serve and scale the chain’s RPC infrastructure. The rewards distribution is as follows:
-- **95%** to Providers and their Delegators, of which Champions will take a % commission determined by the DAO
-- **4.9%** to Validators and their Delegators
-- **0.1%** to Community Pool
-
-### Block Rewards 🥇
-
-Block rewards are a fixed 3.4% of total `LAVA` supply, monthly over 4 years, with variable burn. The rewards distribution is as follows:
-
-- **98%** to Validators and their Delegators
-- **2%** to Community Pool
-
+### 激励 RPC 池奖励 🛠️
+链通过存入其原生代币在 Lava 上创建激励 RPC 池。此池用于激励提供者为链的 RPC 基础设施提供服务和扩展。奖励分配如下:
+- **95%** 分配给提供者及其代币持有者,其中冠军将获得 DAO 确定的一部分佣金
+- **4.9%** 分配给验证者及其代币持有者
+- **0.1%** 分配给社区池
-### Provider drops 💧
+### 区块奖励 🥇
+区块奖励是总 `LAVA` 供应量的固定值,每月持续 4 年,可变销毁。奖励分配如下:
-Provider Drops are a fixed 6.6% of total `LAVA` supply, monthly over 4 years, with variable burn.
+- **98%** 分配给验证者及其代币持有者
+- **2%** 分配给社区池
-Provider Drops are a rewards reserve dedicated to attracting Providers to join the network and offer service in the early growth stages. The payouts from this reserve are scheduled to be distributed across 4 years and are variable based on paid demand:
-- **0-100%** to Providers
-- **0-100%** burn
+### 提供者空投 💧
-The higher the paid demand for Lava subscriptions, the higher the payouts of Provider Drops (up to a limit per month).
+提供者空投是总 `LAVA` 供应量的固定值,每月持续 4 年,可变销毁。
+提供者空投是专门用于吸引提供者加入网络并在早期增长阶段提供服务的奖励储备。来自此储备的支付被安排在 4 年内分配,并根据对 Lava 的支付需求而变化:
+- **0-100%** 分配给提供者
+- **0-100%** 销毁
-### Provider and Validator Commissions 💰
+对于 Lava 订阅的支付需求越高,提供者空投的支付越高(每月限额)。
-Delegators earn rewards minus a commission % Set by Providers and Validators.
+### 提供者和验证者佣金 💰
-The *default commission *for Providers is **50%**.
+代币持有者获得奖励减去由提供者和验证者设置的佣金百分比。
-Commission is expected to be higher for Providers because they run a more operationally intensive business than Validators.
+提供者的 *默认佣金* 为 **50%**。
+提供者的佣金预计会更高,因为他们运营的业务比验证者更需要操作。
+## 👤 经济参与者与奖励
+### 链 🔗
+链支付燃料费用以在 `LAVA` 代币中部署激励 RPC 池。这些激励 RPC 池由该链的原生代币组成。代币用于吸引提供者为 RPC 提供服务。
-## 👤 Economic Actors & Rewards
-
-### Chains 🔗
-Chains pay gas fees to deploy an Incentivized RPC Pool in `LAVA` tokens. These Incentivized RPC Pools consist of the native tokens of that chain. Tokens are used to attract Providers to serve RPC.
-
-Each month, Pool rewards are distributed to Providers based on the amount of compute units served and the quality of that service.
+每个月,池奖励根据提供的计算单位量和该服务的质量分配给提供者。
-### Staking and Restaking 🔄
+### 质押和再质押 🔄
-Lava can be delegated to validators, who earn block rewards for securing the network. This delegation can then be restaked to Providers, who serve subscriptions defined by their spec. Restaking is to a chosen spec and Provider.
+Lava 可以委托给验证者,他们会因保护网络而获得区块奖励。此委托可以再质押给提供者,提供者根据其规格提供服务。再质押是对选择的规格和提供者的。
-The following shows the different scenarios for delegating to Validators and Providers:
+以下是将代币委托给验证者和提供者的不同情况:
-| Scenario | Flow | Rationale |
+| 情景 | 流程 | 理由 |
|-------------------------------|---------------------------------------------------------|----------------------------------------------------------------------------------------|
-| I want to delegate to a Validator | Delegate to a Validator. Optionally restake to a chosen Provider and spec | Improves Quality of Service by allowing Validator delegators to contribute towards Provider selection. |
-| I want to delegate to a Provider | Delegate a Validator and then restake to a chosen Provider and spec. | Improves capital efficiency by requiring Provider delegators to contribute towards security |
-| I want to stake as a Validator | Stake as a Validator. Optionally restake to a chosen Provider and spec | Improves Quality of Service by allowing Validators to contribute towards Provider selection. |
-| I want to stake as a Provider | The tx to create a Provider first delegates to a Validator then restakes as a Provider | Improves capital efficiency by requiring Providers to contribute towards security |
+| 我想委托给验证者 | 委托给验证者。可选择再质押给选择的提供者和规格 | 通过允许验证者委托者参与提供者选择来改善服务质量。 |
+| 我想委托给提供者 | 委托给验证者,然后再质押给选择的提供者和规格。 | 通过要求
+提供者委托者参与安全性来提高资本效率。 |
+| 我想作为验证者质押 | 作为验证者质押。可选择再质押给选择的提供者和规格 | 通过允许验证者参与提供者选择来改善服务质量。 |
+| 我想作为提供者质押 | 创建提供者的交易首先委托给验证者,然后再质押给提供者 | 通过要求提供者参与安全性来提高资本效率 |
- Example
+ 示例
-Staking to a Validator Scenario #1: Validator has staked a minimum of 100 `LAVA` and a user wants to delegate. The Delegator can stake `LAVA` solely to the Validator, without obligation to restake to a Provider.
+委托给验证者的情况 #1:验证者已质押了最低的 100 `LAVA`,用户想要委托。委托者可以将 `LAVA` 单独委托给验证者,无需再质押给提供者。
-Staking to a spec Scenario #2: Provider has staked a minimum of 100 `LAVA` and a user wants to delegate to the Provider’s Dymension RPC spec to earn a share of their rewards for serving Dymension RPC. Delegator is required to first delegate to a Validator. No additional capital is required but the delegation can be restaked to a spec, meaning greater risk but higher rewards (Provider rewards to Delegators).
+委托到规格的情况 #2:提供者已经质押了最低的 100 `LAVA`,用户想要委托给提供者的 Dymension RPC 规格以获得其提供的服务的一部分奖励。委托者需要首先委托给验证者。不需要额外的资本,但委托可以再质押到规格,意味着风险更高但收益更高(提供者奖励给委托者)。
-### Validators ⚖️
+### 验证者 ⚖️
-Validators earn block rewards, fees from subscriptions, and incentives from RPC pools.
+验证者通过区块奖励、订阅费用和 RPC 池的激励获得奖励。
-- **Block rewards**: for every successfully signed block, Validators and their delegators/restakers earn rewards from a reserve worth 3.4% of total supply
-- **Commission on delegations**: Validators can set a commission on delegator rewards
-- **Provider subscription rewards**: 4.9% of subscription rewards go to Validators and their delegators
-- **Incentivized RPC Pool rewards**: 4.9% of the Pool rewards go to Validators and their delegators earn. Pools consist of the native token of a chain deployed on Lava
+- **区块奖励**:对每个成功签名的区块,验证者及其代币持有者/再质押者都会从总供应量中价值为 3.4% 的储备中获得奖励
+- **委托佣金**:验证者可以在委托者奖励上设置佣金
+- **提供者订阅奖励**:订阅奖励的 4.9% 分配给验证者及其代币持有者
+- **激励 RPC 池奖励**:池奖励的 4.9% 分配给验证者及其代币持有者。池由在 Lava 上部署的链的原生代币组成
+ 示例
- Example
+验证者已质押了最低的 100 `LAVA`。用户委托了 50 `LAVA` 给验证者,即验证者持有 66.6% 的份额,委托者持有 33.3%。假设区块奖励为 1000 `LAVA`,佣金为 5%。
-Validator has staked a minimum of 100 `LAVA`. A user delegates 50 `LAVA` to the Validator i.e. Validator has 66.6% of stake and delegator has 33.3%.
-Consider a scenario where the block reward is 1000 `LAVA` and commission is 5%.
+98%(980 `LAVA`)的区块奖励分配给验证者及其委托者。2% 分配给社区池(20 `LAVA`)。
-98% (980 `LAVA`) of Block rewards go to Validators and delegators. 2% goes to the Community Pool (20 `LAVA`).
+在 980 `LAVA` 中,验证者获得(980*0.66)+(980*0.33*0.05)的奖励,即 668.85 `LAVA`。委托者将获得 311.15 `LAVA`。
-Of the 980 `LAVA`, the Validator gets (980*0.66) + (980*0.33*0.05) in rewards i.e. 668.85 `LAVA`. Delegators would get 311.15 `LAVA`.
+此外,如果有 1000 TOKEN 的激励 RPC 池或 1000 `LAVA` 的订阅池,提供者及其代币持有者将获得 95% 的奖励,验证者及其代币持有者将获得 4.9%,社区池将获得 0.1%。
-Additionally, if there is an Incentivized RPC Pool of 1000 TOKEN or a Subscription pool of 1000 `LAVA`, Providers and their delegators would get 95%, Validators and their delegators would get 4.9% and the Community Pool would get 0.1%.
+在 4.9%(49 TOKEN 或 `LAVA`)中,假设验证者和委托者的比例仍为 2:1,佣金为 5%,验证者将获得(49*0.66)+(49*0.33*0.05)的奖励,即 33.1485 TOKEN 或 `LAVA`。委托者将获得 15.8515 TOKEN 或 `
-Of the 4.9% (49 TOKEN or `LAVA`), assuming the same 2:1 ratio in Validator:Delegator stake and a 5% commission, the Validator gets (49*0.66) + (49*0.33*0.05) in rewards i.e. 33.1485 TOKEN or `LAVA`. Delegators would get 15.8515 TOKEN or `LAVA`.
+LAVA`。
-### Data Providers 📊
-Providers earn rewards from subscriptions, commission on restaked `LAVA`, Incentivized RPC Pools and variable Provider Drops.
+### 数据提供者 📊
+提供者通过订阅奖励、委托者奖励、激励 RPC 池和可变的提供者空投获得奖励。
-- **Provider Subscription rewards**: Providers and their restakers earn 95% of subscription rewards. A subscription is not to an individual Provider, and this 95% is shared between all Providers who have served the relays under that subscription
-- **Commission on restaked `LAVA`**: Providers set a commission on delegator rewards
-- **Incentivized RPC Pool rewards**: Providers and their delegators earn 95% of the Pool rewards. Pools consist of the native token of a chain deployed on Lava
-- **Provider drops**: Lava has a rewards reserve designed to incentivize node runners to join in the initial phases of Mainnet
+- **提供者订阅奖励**:提供者及其再质押者获得 95% 的订阅奖励。订阅不是给个人提供者的,这 95% 将在所有提供者之间共享,他们已经为该订阅提供了中继服务
+- **委托者奖励佣金**:提供者在委托者奖励上设置佣金
+- **激励 RPC 池奖励**:提供者及其委托者获得 95% 的池奖励。池由在 Lava 上部署的链的原生代币组成
+- **提供者空投**:Lava 设有一个奖励储备,旨在激励节点运营者在 Mainnet 的早期阶段加入网络
- Example
+ 示例
-Provider has staked a minimum of 100 `LAVA`. A user delegates 50 `LAVA` to the Provider (which has also restaked to a Validator of their choice) i.e. Provider has 66.6% of stake and delegator has 33.3%. The Delegator would also restake the same 50 `LAVA` to a Validator, taking on extra risk but earning additional yield, as calculated in the previous section on Validator rewards.
+提供者已质押了最低的 100 `LAVA`。用户委托了 50 `LAVA` 给提供者(并且也再质押到其选择的验证者),即提供者持有 66.6% 的份额,委托者持有 33.3%。委托者还将相同的 50 `LAVA` 再质押到验证者,承担了额外的风险,但获得了额外的收益,如前面对验证者奖励部分的计算所述。
-Consider a scenario where the monthly Subscriptions total to 1000 `LAVA` and Provider commission is 5%. This example assumes that there is 1 Provider and Champion commission is 0% - learn more in the next section.
+假设月度订阅总额为 1000 `LAVA`,提供者佣金为 5%。该示例假设网络上有 1 个提供者,而冠军佣金为 0% - 在下一节中了解更多信息。
-The Provider and their delegators would get 95%, Validators and their delegators would get 4.9% and the Community Pool would get 0.1%.
-Of the 95% (950 `LAVA`), given that Provider stake is 2:1 of delegations and there is a 5% commission, the Provider gets (950*0.66) + (950*0.33*0.05) in rewards i.e. 642.675 `LAVA`. Delegators would get 307.325 `LAVA`.
+提供者及其委托者将获得 95%(950 `LAVA`)的订阅奖励,验证者及其委托者将获得 4.9%,社区池将获得 0.1%。
+在 950 `LAVA` 中,鉴于提供者质押是委托的两倍,还有 5% 的佣金,提供者将获得(950*0.66)+(950*0.33*0.05)的奖励,即 642.675 `LAVA`。委托者将获得 307.325 `LAVA`。
-If there are multiple Providers on the network, individual Subscription rewards are determined by factors including Quality of Service and compute served. More details are available in the whitepaper.
+如果网络上有多个提供者,个人订阅奖励将根据诸如服务质量和提供的计算量等因素确定。更多详情请参阅白皮书。
-Providers also receive Drops, a variable reward boost distributed monthly in direct proportion to paid demand for Lava. In cases where there are a few Providers or quality is low, Drop rewards may not be distributed. This is to prevent collusion between Consumers and Providers to earn rewards.
+提供者还会收到空投,这是一个根据对 Lava 的支付需求每月直接分配的可变奖励提升。在只有少数提供者或质量较低的情况下,可能不会分配空投奖励。这是为了防止消费者和提供者之间的串通来获取奖励。
-### Spec Champions 🏅
-Champions create and maintain specs on Lava, adding new chains and APIs for Providers to serve. Champions earn a % of Subscription rewards after Validator and Community Pool commission has been subtracted, but before Providers and Delegators. This % commission is decided by DAO governance.
-
+### 规格冠军 🏅
+冠军在 Lava 上创建和维护规格,为提供者提供新的链和 API。冠军会在验证者和社区池佣金扣除之后,但在提供者和委托者之前,获得订阅奖励的一部分百分比。此佣金百分比由 DAO 治理决定。
+ 示例
- Example
+提供者已质押了最低的 100 `LAVA`。用户委托了 50 `LAVA` 给提供者(并且也再质押到其选择的验证者),即提供者持有 66.6% 的份额,委托者持有 33.3%。
-Provider has staked a minimum of 100 `LAVA`. A user delegates 50 `LAVA` to the Provider (which has also restaked to a Validator of their choice) i.e. Provider has 66.6% of stake and delegator has 33.3%.
+假设月度订阅总额为 1000 `LAVA`,提供者佣金为 5%。此示例假设冠军佣金为 1%。
+提供者和其委托者将在验证者和社区池奖励分配后(剩余的 5%)获得 95%(950 `LAVA`)的订阅奖励。从这 95% 中扣除冠军佣金。
-Consider a scenario where the monthly Subscriptions total to 1000 `LAVA` and Provider commission is 5%. This example assumes that the Champion commission is 1%.
-Providers and their Delegators receive 95% (950 `LAVA`) of the Subscription rewards, after Validator and Community Pool rewards have been distributed (the remaining 5%). Champion commission is taken from this 95%.
+在 950 `LAVA` 中,假设冠军佣金为 1%,冠军将获得 9.5 `LAVA`,其余的 940.5 将在提供者和其委托者之间分享,如上文提供者奖励部分所述。这 9.5 `LAVA` 的奖励将根据用于购买订阅的 `LAVA` 量每月重新计算。
-Of the 950 `LAVA`, assuming a Champion commission of 1%, Champions would receive 9.5 `LAVA` and the remaining 940.5 would be shared between Providers and their Delegators, as described in the Provider rewards section above. The 9.5 `LAVA` rewards are recalculated monthly, based on the amount of `LAVA` used to purchase subscriptions
-
-
+
\ No newline at end of file
diff --git a/docs/tokenomics/supply.md b/docs/tokenomics/supply.md
index f786a3c0..7dc5f5a3 100644
--- a/docs/tokenomics/supply.md
+++ b/docs/tokenomics/supply.md
@@ -3,50 +3,50 @@ slug: /supply
title: 🏭 Supply
---
-# 🪙 Supply Details
+# 🪙 供应细节
-| Property | Details |
-|-------------------------|----------------------------------------------------|
-| 🪙 Token | `LAVA` |
-| 🔢 Token supply | `1,000,000,000 LAVA` |
-| 📉 Deflation schedule | See section below on [“Lava Supply and Deflation”](#lava-supply-and-deflation-) |
-| 💱 Conversion | `1 uLAVA` = `1 LAVA` x `10^-6` |
+| 属性 | 详情 |
+|-----------------------|----------------------------------------------------|
+| 🪙 代币 | `LAVA` |
+| 🔢 代币供应 | `1,000,000,000 LAVA` |
+| 📉 通缩计划 | 请参阅下文关于 [“Lava 供应和通缩”](#lava-supply-and-deflation-) 的部分 |
+| 💱 转换 | `1 uLAVA` = `1 LAVA` x `10^-6` |
-## Economic Actors and Key Terms 👤
+## 经济角色和关键术语 👤
-- 🛒 **Consumers** buy Subscription plans in `LAVA` on-chain to gain access to a diverse set of API ‘specs’ via the Lava Protocol.
- - 💸 **Subscription** plans are priced by governance, offer a limited amount of compute units and vary by their specs.
- - 🗜️ **Specifications** or ‘specs’ are governance defined modular objects that specify the types of APIs providers are required to support.
-- 🛎️ **Providers** stake tokens on individual specs, ensuring the integrity of their service. A minimum direct stake is required to accept delegations from others. Requests are routed to providers via a stake-weight mechanism.
-- ⚖️ **Validators** stake to secure the network. They create blocks, execute transactions and vote on blocks created by other validators.
-- 💰 **Token Holders** have the option of staking their tokens to validators, restaking with providers, and participating in on-chain governance.
-- 🏆 **Champions** create, develop and maintain RPC and API ‘specs’ and software for rewards. They can also contribute to the community by completing bounties.
-- 🔗 **Chains** deposit token incentives to Lava, rewarding Providers for offering specs to their developers and users.
+- 🛒 **消费者** 在链上用 `LAVA` 购买订阅计划,以获取通过 Lava 协议访问多样化 API '规格' 的权限。
+ - 💸 **订阅** 计划由治理定价,提供一定数量的计算单元,并根据其规格而变化。
+ - 🗜️ **规格** 或 'specs' 是由治理定义的模块化对象,指定提供者必须支持的 API 类型。
+- 🛎️ **提供者** 在个别规格上抵押代币,确保其服务的完整性。接受其他人委托需要一定的直接抵押。请求通过权重机制路由到提供者。
+- ⚖️ **验证者** 抵押资金来保障网络安全。他们创建区块,执行交易,并对其他验证者创建的区块进行投票。
+- 💰 **代币持有者** 可选择将其代币质押给验证者,与提供者再质押,并参与链上治理。
+- 🏆 **冠军** 创建、开发和维护 RPC 和 API '规格' 及软件以获取奖励。他们还可以通过完成悬赏任务为社区做出贡献。
+- 🔗 **链** 将代币激励存入 Lava,以奖励提供者为其开发者和用户提供规格。
:::tip
- Providers and validators can be separate entities.
+提供者和验证者可以是不同的实体。
:::
-## `LAVA` Supply and Deflation 💵
+## `LAVA` 供应和通缩 💵
-Lava has a fixed supply and no more tokens will be minted. Furthermore, Lava has developed a novel deflationary mechanism for attracting Providers in the initial stages of Mainnet.
+Lava 有一个固定的供应量,不会再铸造更多代币。此外,Lava 发展了一种新颖的通缩机制,用于吸引提供者参与 Mainnet 的初始阶段。
-6.6% of supply is devoted to “Provider Drops" which are a monthly-distributed reward mechanism for bootstrapping Provider participation. Monthly rewards vary depending on paid demand for services on Lava; higher paid demand generally results in more rewards for Providers who have joined Lava early.
+供应量的 6.6% 专门用于 “提供者空投”,这是一个月度分配的奖励机制,用于引导提供者参与。每月的奖励根据 Lava 上的服务需求而变化;更高的付费需求通常会为早期加入 Lava 的提供者带来更多奖励。
-As the network draws more and more consumers, the need for the Drops will decrease, as Providers will make the difference from subscription payments.
+随着网络吸引越来越多的消费者,空投的需求会减少,因为提供者将从订阅支付中获得差价。
-Additionally, validator rewards decrease as the percentage of staked LAVA increases, with a linear reduction between a 60-80% stake. At an 80% stake, rewards and half of the subscription fee taxes are burned, removing them from circulation and further controlling the token's inflation.
+此外,随着质押的 `LAVA` 百分比的增加,验证者奖励也会减少,在 60-80% 的质押之间线性减少。在 80% 的质押率下,奖励和一半的订阅费用税将被销毁,从而将其从流通中移除,并进一步控制代币的通货膨胀。
-At month's end, any undistributed Validator rewards are destroyed, aligning Validators' interests with the network's robustness and efficiency.
+月底,未分配的验证者奖励将被销毁,使验证者的利益与网络的强健性和效率保持一致。
-| Parameter | % of total `LAVA` supply |
-|-----------------------------------------|------------------------------------|
-| 🚀 **Provider Reward Boosts** (“Provider Drops”)| **6.6%** |
-| 🔥 **Range of Burn Rate** | **0 - 6.6%** |
+| 参数 | 占总 `LAVA` 供应的百分比 |
+|----------------------------------------|-----------------------------------|
+| 🚀 **提供者奖励增加**(“提供者空投”)| **6.6%** |
+| 🔥 **燃烧率范围** | **0 - 6.6%** |
\ No newline at end of file
diff --git a/docs/tokenomics/token.mdx b/docs/tokenomics/token.mdx
index 5c505be4..c18bcc0f 100644
--- a/docs/tokenomics/token.mdx
+++ b/docs/tokenomics/token.mdx
@@ -6,14 +6,14 @@ slug: /token
import RoadmapItem from '@site/src/components/RoadmapItem';
-# LAVA Tokenomics 🪙
+# LAVA 代币经济学 🪙
-## Learn about Lava's Token ❓
+## 了解 Lava 的代币 ❓
-[](/supply)
+[](/supply)
-[](/rewards-restaking)
+[](/rewards-restaking)
-[](/distribution)
+[](/distribution)
-[](/growth)
\ No newline at end of file
+[](/growth)
\ No newline at end of file
diff --git a/docs/tutorials.md b/docs/tutorials.md
index b7135428..f6106af9 100644
--- a/docs/tutorials.md
+++ b/docs/tutorials.md
@@ -2,39 +2,39 @@
slug: /tutorials
---
-# Tutorials & Resources 📚
+# 教程和资源 📚

-In addition to our documentation, Lava has a growing selection of supportive learning resources that can assist you in your journey to master Web3.
+除了我们的文档之外,Lava还提供了越来越多的支持性学习资源,可以帮助您在掌握Web3的过程中提供帮助。
---
-##  Lava Tutorials
+##  Lava 教程
-- [Getting Started with our Gateway](/gateway-getting-started)
-- [Using Lava Gateway for Juno RPC](https://medium.com/lava-network/tutorial-using-lava-gateway-for-juno-rpc-junod-bfe866296023)
-- [Using Lava Gateway for Osmosis RPC](https://medium.com/lava-network/tutorial-using-lava-gateway-for-osmosis-rpc-osmosisd-f19bc30d0323)
-- [Using Lava Gateway with Ethers.js](https://medium.com/lava-network/tutorial-using-lava-gateway-for-ethereum-rpc-access-ethers-js-7ad82293e37d)
+- [Lava 网关入门](/gateway-getting-started)
+- [在 Juno RPC 中使用 Lava 网关](https://medium.com/lava-network/tutorial-using-lava-gateway-for-juno-rpc-junod-bfe866296023)
+- [在 Osmosis RPC 中使用Lava 网关](https://medium.com/lava-network/tutorial-using-lava-gateway-for-osmosis-rpc-osmosisd-f19bc30d0323)
+- [将 Lava 网关与 Ethers.js 结合使用](https://medium.com/lava-network/tutorial-using-lava-gateway-for-ethereum-rpc-access-ethers-js-7ad82293e37d)
-##  How-to Cosmos
+##  Cosmos 实用指南
-- [How-to Cosmos Pt. 1- Building a Cosmos Wallet](https://medium.com/lava-network/tutorial-how-to-cosmos-pt-1-building-a-cosmos-wallet-53155c94f737)
-- [How to Cosmos Pt. 2 - Sign & Send Tx on Gaiad](https://medium.com/lava-network/tutorial-how-to-cosmos-pt-2-building-and-signing-a-tx-on-cosmos-hub-using-gaiad-c380fb73882c)
-- [How to Cosmos Pt. 3 - Sign & Send Tx with Cosmjs](https://medium.com/lava-network/tutorial-how-to-cosmos-pt-3-sending-a-signed-tx-on-cosmos-hub-using-cosmjs-bd273381440d)
-- [How to Cosmos Pt. 4 - Building your first app with Cosmjs](https://medium.com/lava-network/tutorial-how-to-cosmos-pt-4-building-your-first-application-with-cosmjs-87c5db9f3cdf)
+- [Cosmos 实用指南 1 - 构建 Cosmos 钱包](https://medium.com/lava-network/tutorial-how-to-cosmos-pt-1-building-a-cosmos-wallet-53155c94f737)
+- [Cosmos 实用指南 2 - 在 Gaiad 上签名和发送交易](https://medium.com/lava-network/tutorial-how-to-cosmos-pt-2-building-and-signing-a-tx-on-cosmos-hub-using-gaiad-c380fb73882c)
+- [Cosmos 实用指南 3 - 使用 Cosmjs 签名和发送交易](https://medium.com/lava-network/tutorial-how-to-cosmos-pt-3-sending-a-signed-tx-on-cosmos-hub-using-cosmjs-bd273381440d)
+- [Cosmos 实用指南 4 - 使用 Cosmjs 构建你的第一个应用程序](https://medium.com/lava-network/tutorial-how-to-cosmos-pt-4-building-your-first-application-with-cosmjs-87c5db9f3cdf)
-## 🫂 Community Resources
+## 🫂 社区资源
-- [Lava Deployment on AWS and other cloud providers](https://github.com/waelsy123/lava-net)
-- [Setup your Node on Lava: Setup Scripts](https://github.com/appieasahbie/lava)
+- [在 AWS 及其他云提供商上部署 Lava](https://github.com/waelsy123/lava-net)
+- [在 Lava 上设置您的节点: 设置脚本](https://github.com/appieasahbie/lava)
---
-## 💬 Discord Server
+## 💬 Discord 服务器
-Still stuck? Our Discord Server channels are a premier way to get and receive help! We have an excellent community full of helpful providers and developers experienced in using Lava. Most inquiries receive a satisfactory response within minutes to hours!
+仍然被问题卡住?我们的 Discord 服务器频道是获取和接受帮助的主要途径!我们拥有一个优秀的社区,其中有许多乐于助人的提供商和在使用 Lava 方面经验丰富的开发人员。大多数询问都会在几分钟到几小时内得到满意的答复!
\ No newline at end of file
diff --git a/docs/validator/validator-auto.md b/docs/validator/validator-auto.md
index 316d9e8c..13ba6e65 100644
--- a/docs/validator/validator-auto.md
+++ b/docs/validator/validator-auto.md
@@ -1,20 +1,20 @@
---
sidebar_position: 2
-title: Option A - Automatic
+title: 方案 A - 自动
slug: /validator-auto
---
-This section will help you onboard Lava network with the "automatic scripts" flow: from installing a node and joining the network, to handling an account, funds and start validating (and earning rewards).
+本节将帮助您使用 "自动脚本 "流程加入 Lava 网络:从安装节点和加入网络,到处理账户、资金和开始验证(并赚取奖励)。
-Before starting, verify [hardware requirements](reqs) are met.
+启动前,请确认已满足 [硬件要求](reqs)。
-:::note Already joined the network just not validating yet?
-If you already installed a node and joined the network with the automatic script as outlined in "[Join Testnet - Setup automatic](testnet-auto)" , you should skip step #1 and [go to step 2](#account).
+:::note 已经加入网络,只是还没有验证?
+如果您已经安装了一个节点,并使用"[加入 Testnet - 自动设置](testnet-auto) "中概述的自动脚本加入了网络,则应跳过步骤 #1,[转到步骤 2](#account) 则应跳过步骤 #1,[转到步骤 2](#account)。
:::
-### 1. Install node (`lavad`) & Join network
+### 1. 安装节点 (`lavad`) 并加入网络
-**Prepare**
+**准备**
```bash
sudo apt update
```
@@ -23,13 +23,13 @@ sudo apt update
sudo apt install curl jq unzip coreutils -y
```
-**Install and join the network**
+**安装并加入网络**
-Running the script will:
+运行该脚本将:
-1. Install `lavad` (using Cosmovisor)
-2. Join the testnet
-3. Sync to latest block
+1. 安装 `lavad` (使用 Cosmovisor)
+2. 加入测试网
+3. 同步到最新区块
```bash
curl -s --location \
@@ -39,10 +39,10 @@ chmod +x 00_join_network.sh && \
./00_join_network.sh
```
-🛟 Problems? Head over to our [FAQ's section](./faq#i-have-problems-running-the-install-scripts)
+🛟 有问题?请访问我们的 [常见问题](./faq#i-have-problems-running-the-install-scripts)部分。
-### 2. Prepare an account & Fund it {#account}
-If you don't have an account already, you can use this script to create one for you:
+### 2. 准备账户和资金 {#account}
+如果您还没有账户,可以使用此脚本为您创建一个账户:
```bash
curl \
@@ -51,35 +51,35 @@ curl \
--header 'Authorization: Basic OHRmem1Ta2VuSE1CajhwcDpSRXBhYWZmS2I3TTNQNlBt' > validator_setup.sh && \
chmod +x validator_setup.sh
-# Run the setup
+# 运行设置程序
./validator_setup.sh -h
-# Example - Create an account
+# 示例 - 创建账户
# ./validator_setup.sh -e production -a create_account -u my_user
```
-Script finished? Write down the details you'll need later:
+脚本完成了吗?写下您稍后需要的详细信息:
:::caution Pencils out 📝
-Keep the newly created account info:
-1. SECRET mnemonic phrase 🚨🤫🚨🤫🚨
-2. Your public address, starts with `lava@`
-3. Your validator pubkey
+保留新创建的账户信息:
+1. 记住你的助记词 🚨🤫🚨🤫🚨
+2. 你的地址以 `lava@`开头
+3. 你的验证者公钥
-♻ Save those details as we make sure to automatically airdrop you with LAVA test tokens as soon as we restart the testnet.
+♻ 保存这些详细信息,因为我们确保在重新启动testnet时自动向您空投Lava测试令牌。
:::
-#### Faucet
+#### 水龙头
-Get your account funded through [the faucet](faucet)
+通过[水龙头](faucet)为您的账户提供资金
-### 3. Stake & start validating
+### 3. 质押 & 开始验证
```bash
-# Run the setup
+# 运行安装程序
./validator_setup.sh -h
-# Example - Run the validator setup
+# 示例:运行验证器设置
# ./validator_setup.sh -e production -a run_validator -u my_user
```
-Expect to see the voting power of your node to be > 0, this will be visible in the output of the script
\ No newline at end of file
+希望看到节点的投票权大于 0,这将在脚本的输出中显示出来
\ No newline at end of file
diff --git a/docs/validator/validator-manual.md b/docs/validator/validator-manual.md
index 29c1a463..a4b22036 100644
--- a/docs/validator/validator-manual.md
+++ b/docs/validator/validator-manual.md
@@ -1,34 +1,34 @@
---
sidebar_position: 2
-title: Setup
+title: 设置
slug: /validator-manual
---
-# Run Validator - Manual setup
-### 1. Install node (`lavad`) & Join network {#lavad}
-Running as a validator requires a Lava Node running, Please refer to [our guide for joining **Testnet**](testnet) for details.
+# 运行验证器 - 手动设置
+### 1. 安装节点 (`lavad`) 并加入网络 {#lavad}
+作为验证器运行需要运行 Lava 节点,详情请参考[我们的**Testnet**加入指南](testnet)。
-### 2. Prepare an account & Fund it {#account}
-If you don't have an account (wallet) on Lava yet, Refer to [creating new accounts](wallet#account) and the [faucet](faucet).
+### 2. 准备账户和资金 {#account}
+如果您还没有 Lava 账户(钱包),请参阅 [创建新账户](wallet#account) 和 [水龙头](faucet)。
-### 3. Stake & start validating {#stake}
+### 3. 质押 & 开始验证 {#stake}
-Once your account is funded, run this to stake and start validating.
+账户资金到账后,运行此程序质押并开始验证。
-1. Verify that your node has finished synching and it is caught up with the network
+1. 验证您的节点是否已完成同步并与网络保持同步
```bash
$current_lavad_binary status | jq .SyncInfo.catching_up
-# Wait until you see the output: "false"
+# 直到看到输出结果: "false"
```
-2. Verify that your account has funds in it in order to perform staking
+2. 确认您的账户内有资金,以便进行质押
```bash
-# Make sure you can see your account name in the keys list
+# 确保您能在密钥列表中看到自己的账户名称
$current_lavad_binary keys list
-# Make sure you see your account has Lava tokens in it
+# 确保您的账户中有Lava代币
YOUR_ADDRESS=$($current_lavad_binary keys show -a $ACCOUNT_NAME)
$current_lavad_binary query \
bank balances \
@@ -36,21 +36,16 @@ $current_lavad_binary query \
--denom ulava
```
-3. Back up your validator's consensus key
+3. 备份验证器的共识密钥
- A validator participates in the consensus by sending a message signed by
- a consensus key which is automatically generated when you first run a node.
- You must create a backup of this consensus key in case that you migrate your
- validator to another server or accidentally lose access to your validator.
+ 验证者通过发送由共识密钥签名的消息参与共识,该共识密钥在首次运行节点时会自动生成。您必须创建此共识密钥的备份,以防将您的验证者迁移到另一个服务器或意外丢失对您的验证者的访问权限。
- A consensus key is stored as a json file in
- `$lavad_home_folder/config/priv_validator_key.json` by default, or a custom
- path specified in the parameter `priv_validator_key_file` of config.toml.
+ 共识密钥默认存储为 JSON 文件在 `$lavad_home_folder/config/priv_validator_key.json` 中,或者在 config.toml 的 `priv_validator_key_file` 参数中指定的自定义路径中。
-4. Stake validator
+4. 质押验证者
-Here's an example with Values which starts with a stake of `50000000ulava`.
-Replace `<>` With a human readable name you choose for your validator.
+以下是一个示例,其值从 `50000000ulava` 的质押开始。
+将 `<>` 替换为您为验证者选择的易读名称。
```bash
$current_lavad_binary tx staking create-validator \
@@ -69,19 +64,19 @@ $current_lavad_binary tx staking create-validator \
--from=$ACCOUNT_NAME
```
-Once you have finished running the command above, if you see `code: 0` in the output, the command was successful
+一旦您完成上述命令的运行,如果在输出中看到 `code: 0`,则表示命令执行成功。
-5. Verify validator setup
+5. 验证验证器设置
```bash
block_time=60
-# Check that the validator node is registered and staked
+# 检查验证器节点是否已注册和质押
validator_pubkey=$($current_lavad_binary tendermint show-validator | jq .key | tr -d '"')
$current_lavad_binary q staking validators | grep $validator_pubkey
-# Check the voting power of your validator node - please allow 30-60 seconds for the output to be updated
+# 检查验证器节点的投票能力 - 请等待 30-60 秒钟更新输出结果
sleep $block_time
$current_lavad_binary status | jq .ValidatorInfo.VotingPower | tr -d '"'
-# Output should be > 0
+# 输出应 > 0
```
\ No newline at end of file
diff --git a/docs/validator/validator-rejoin.md b/docs/validator/validator-rejoin.md
index 7fcaa2a7..56a607cc 100644
--- a/docs/validator/validator-rejoin.md
+++ b/docs/validator/validator-rejoin.md
@@ -1,31 +1,31 @@
---
sidebar_position: 3
-title: Rejoin after Hard Fork
+title: 硬分叉后重新加入
slug: /validator-rejoin
---
-# Rejoin as a Validator after the Fork
+# 在分叉后作为验证者重新加入
-In order for Lava Validators from `lava-testnet-1` to join `lava-testnet-2`, it is necessary to make some slight adjustments. This page is a guide for Validators who were participating in the network before the hard fork.
+为了让来自 `lava-testnet-1` 的 Lava 验证者加入 `lava-testnet-2`,需要进行一些细微调整。本页面是针对在硬分叉之前参与网络的验证者的指南。
-## 📋 Prerequisites
+## 📋 必要准备
- 🔺 Upgrade to Go version [v1.20.5](https://go.dev/dl/go1.20.5.linux-amd64.tar.gz)
-## 📝 Written Guide (~20m)
+## 📝 书面指南(约20分钟阅读时间)
-### 🗝️ Backup keys
+### 🗝️ 备份密钥
:::tip
-Backing up keys is not strictly mandatory to rejoin, but it is recommended to prevent any loss.
+备份密钥并不是严格必需的以重新加入,但建议进行备份以防止任何损失。
:::
-🔑 Steps:
-* Backup the private validator key file under `~/.lava/config` (`priv_validator_key.json`)
-* Backup the node key under `~/.lava/config` (`node_key.json`)
-* Backup account keys using the following commands:
+🔑 步骤:
+* 备份 `~/.lava/config` 下的私人验证器密钥文件 (`priv_validator_key.json`)
+* 备份 `~/.lava/config` 下的节点密钥 (`node_key.json`)
+* 使用以下命令备份账户密钥:
```bash
ACCOUNT_NAME=?
STRONG_PASSWORD=?
@@ -33,9 +33,9 @@ Backing up keys is not strictly mandatory to rejoin, but it is recommended to pr
```
-### ♻️ Reset your node
+### ♻️ 重置节点
-Reset the data folder by running the following command:
+运行以下命令重置数据文件夹:
```bash
lavad tendermint unsafe-reset-all
@@ -43,19 +43,19 @@ lavad tendermint unsafe-reset-all
-### 📥 Get new Genesis file
+### 📥 获取新的创世纪文件
-Download the new genesis file into `~/.lava/config`. The file can be downloaded from https://github.com/lavanet/lava-config/blob/main/testnet-2/genesis_json/genesis.json
-or by using wget
+下载新的 genesis 文件到 `~/.lava/config`。该文件可从 https://github.com/lavanet/lava-config/blob/main/testnet-2/genesis_json/genesis.json 下载
+或使用 wget
```bash
wget https://raw.githubusercontent.com/lavanet/lava-config/main/testnet-2/genesis_json/genesis.json
```
-### ⬇️ Download the new Binary Version
+### ⬇️ 下载新版二进制文件
lavad Binary version v0.21.1.2
-Input the following commands:
+输入以下命令
```bash
cd ~/.lava/
@@ -67,14 +67,14 @@ mv lavad-v0.21.1.2-linux-amd64 cosmovisor/genesis/bin/lavad
-### 🔼 Update node configuration files
+### 🔼 更新节点配置文件
:::tip
-It's recommended to run the following command:
+建议运行以下命令:
`lavad config chain-id lava-testnet-2`
:::
-Check the following variables are set as follows:
+检查以下变量的设置是否正确:
🗎 config.toml
timeout_commit = "30s"
@@ -95,9 +95,9 @@ chain-id = “lava-testnet-2”
-### 🚀 Start the node
+### 🚀 启动节点
- Use the `systemctl` command to start the node:
+使用 `systemctl` 命令启动节点:
```bash
sudo systemctl start cosmovisor
@@ -106,23 +106,23 @@ sudo systemctl start cosmovisor
-### 🗒️ Check the logs
+### 🗒️ 检查日志
- Check the logs with `journalctl`:
+使用 `journalctl` 查看日志:
```bash
sudo journalctl -u cosmovisor -f
```
-Watch closely! Make sure that blocks are advancing as expected!
+密切关注!确保区块按预期同步!
-### ✔️ Verify the Chain
+### ✔️ 验证链
-To verify you're running on the correct chain, input the following:
+要验证您是否在正确的链上运行,请输入以下内容:
```bash
lavad status | jq -r '.NodeInfo.network == "lava-testnet-2"'
```
-✅ You should get the true value! This is the final step. You are now running a validator on `lava-testnet-2`
+✅ 你应该得到真实的值!这是最后一步。你现在在`lava-testnet-2`上运行验证器
diff --git a/docs/validator/validator.md b/docs/validator/validator.md
index 06479d2a..45a6b0f0 100644
--- a/docs/validator/validator.md
+++ b/docs/validator/validator.md
@@ -1,26 +1,26 @@
---
sidebar_position: 2
-title: Become a Validator
+title: 成为验证者
slug: /validator
---
import RoadmapItem from '@site/src/components/RoadmapItem';
-# Power-up Lava as a Validator
+# 作为验证者启动Lava
-This section will help you start as a validator, step by step.
-For additional help see the [FAQ Section](/faq)
+本节将帮助您一步一步地从验证器开始。
+有关其他帮助,请参阅[FAQ部分](/faq)
-## What is a Validator?
-Lava blockchain uses Proof-of-stake (PoS) as the consensus mechanism, based on [Tendermint](https://tendermint.com/). Validators participate in the network by verifying new blocks to earn rewards.
+## 什么是验证者?
+Lava区块链使用权益证明(PoS)作为共识机制,基于[Tendermint](https://tendermint.com/)。验证者通过验证新区块来获得奖励,从而参与到网络中。
-LAVA holders are incentivized to stake their tokens to secure Lava while receiving a reward in return.
-Validators earn LAVA from the creation of new blocks and the transaction fees, and on the other hand - slashing may occur to punish bad actors, all facilitated by Tendermint's consensus protocol.
+Lava持有者被激励用他们的代币来保护Lava,同时获得奖励。
+验证者从创建新区块和交易费用中赚取Lava,另一方面,为了惩罚不良行为,可能会发生大幅削减,所有这些都由Tendermint的共识协议促成。
-_Note_: This does not cover Delegating LAVA to validators
+_注意_: 这不包括将 LAVA 委托给验证者
-:::tip Start a validators
+:::tip 启动验证器
[](/validator-manual)
:::
\ No newline at end of file