From 4b0544b9add9b6d8042b6ab687c523f4fa257963 Mon Sep 17 00:00:00 2001
From: AlexG <39581753+reveloper@users.noreply.github.com>
Date: Fri, 13 Sep 2024 18:55:48 +0900
Subject: [PATCH] lite-client-naming
---
.../run-nodes/enable-liteserver-node.md | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/docs/participate/run-nodes/enable-liteserver-node.md b/docs/participate/run-nodes/enable-liteserver-node.md
index 3607ddf81c..3fe83752ff 100644
--- a/docs/participate/run-nodes/enable-liteserver-node.md
+++ b/docs/participate/run-nodes/enable-liteserver-node.md
@@ -127,7 +127,7 @@ sudo ufw status
This way, you can open the port in the firewall settings of your server.
-## Interaction with Liteserver (Lightclient)
+## Interaction with Liteserver (lite-client)
0. Create an empty project on your machine and paste `config.json` in the project directory. This config can be obtained by following command:
@@ -143,7 +143,7 @@ It will create `/usr/bin/ton/local.config.json` on your machine where mytonctrl
```bash
- npm i --save ton-core ton-lite-client
+ npm i --save ton-core ton-lite-
```
@@ -158,13 +158,13 @@ It will create `/usr/bin/ton/local.config.json` on your machine where mytonctrl
```bash
go get github.com/xssnick/tonutils-go
- go get github.com/xssnick/tonutils-go/liteclient
+ go get github.com/xssnick/tonutils-go/lite
go get github.com/xssnick/tonutils-go/ton
```
-2. Initialize a client and request masterchain info to ensure the liteserver is running.
+2. Initialize a and request masterchain info to ensure the liteserver is running.
@@ -179,9 +179,9 @@ Change project type to `module` in your `package.json` file:
Create `index.js` file with the following content:
```js
- import { LiteSingleEngine } from 'ton-lite-client/dist/engines/single.js'
- import { LiteRoundRobinEngine } from 'ton-lite-client/dist/engines/roundRobin.js'
- import { LiteClient } from 'ton-lite-client/dist/client.js'
+ import { LiteSingleEngine } from 'ton-lite-/dist/engines/single.js'
+ import { LiteRoundRobinEngine } from 'ton-lite-/dist/engines/roundRobin.js'
+ import { Lite } from 'ton-lite-/dist/.js'
import config from './config.json' assert {type: 'json'};
@@ -204,8 +204,8 @@ Create `index.js` file with the following content:
}));
const engine = new LiteRoundRobinEngine(engines);
- const client = new LiteClient({ engine });
- const master = await client.getMasterchainInfo()
+ const = new Lite({ engine });
+ const master = await .getMasterchainInfo()
console.log('master', master)
}