Skip to content

Commit 3f01e49

Browse files
authored
Merge pull request #558 from coolroman/broken-links-fix
Broken links fix (wallet tutorial, tonstarter sections)
2 parents 718c3fb + 999b62d commit 3f01e49

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

docs/develop/smart-contracts/sdk/tonstarter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Testing toolkit (usually, sandbox) already included to TypeScript SDK named Blueprint.
66

7-
- [Read more about Blueprint](develop/smart-contracts/sdk/javascript)
7+
- [Read more about Blueprint](/develop/smart-contracts/sdk/javascript)
88

99
Run tests in one line using:
1010

docs/develop/smart-contracts/testing/tonstarter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Testing toolkit (usually, sandbox) already included to TypeScript SDK named Blueprint.
66

7-
- [Read more about Blueprint](develop/smart-contracts/sdk/javascript)
7+
- [Read more about Blueprint](/develop/smart-contracts/sdk/javascript)
88

99
Run tests in one line using:
1010

docs/develop/smart-contracts/tutorials/wallet.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ After completing the first half of this tutorial we’re now much more familiar
12041204

12051205
### Sending Multiple Messages Simultaneously
12061206

1207-
As you may already know, [one cell can store up to 1023 bits of data and up to 4 references](develop/data-formats/cell-boc#cell) to other cells. In the first section of this tutorial we detailed how internal messages are delivered in a ‘whole’ loop as a link and sent. This means it is possible to **store up to 4 internal messages inside the external** message. This allows four transactions to be sent at the same time.
1207+
As you may already know, [one cell can store up to 1023 bits of data and up to 4 references](/develop/data-formats/cell-boc#cell) to other cells. In the first section of this tutorial we detailed how internal messages are delivered in a ‘whole’ loop as a link and sent. This means it is possible to **store up to 4 internal messages inside the external** message. This allows four transactions to be sent at the same time.
12081208

12091209
To accomplish this, it is necessary to create 4 different internal messages. We can do this manually or through a `loop`. We need to define 3 arrays: array of TON amount, array of comments, array of messages. For messages, we need to prepare another one array - internalMessages.
12101210

@@ -2178,6 +2178,7 @@ Note that if a value is found, `f` is always equal to -1 (true). The `~ -1` oper
21782178

21792179
Typically, [smart contracts on TON pay for their own storage](/develop/howto/fees-low-level#storage-fee). This means that the amount of data smart contracts can store is limited to prevent high network transaction fees. To allow the system to be more efficient, transactions that are more than 64 seconds old are removed from the storage. This is conducted as follows:
21802180

2181+
21812182
```func
21822183
bound -= (64 << 32); ;; clean up records that have expired more than 64 seconds ago
21832184
old_queries~udict_set_builder(64, query_id, begin_cell()); ;; add current query to dictionary
@@ -2199,7 +2200,7 @@ do {
21992200
>
22002201
> ["udict_delete_get_min()" in docs](/develop/func/stdlib/#dict_delete_get_min)
22012202
2202-
Note that it is necessary to interact with the `f` variable several times. Since the [TVM is a stack machine](learn/tvm-instructions/tvm-overview#tvm-is-a-stack-machine), during each interaction with the `f` variable it is necessary to pop all values to get the desired variable. The `f~touch()` operation places the f variable at the top of the stack to optimize code execution.
2203+
Note that it is necessary to interact with the `f` variable several times. Since the [TVM is a stack machine](/learn/tvm-instructions/tvm-overview#tvm-is-a-stack-machine), during each interaction with the `f` variable it is necessary to pop all values to get the desired variable. The `f~touch()` operation places the f variable at the top of the stack to optimize code execution.
22032204

22042205
### Bitwise Operations
22052206

i18n/mandarin/docusaurus-plugin-content-docs/current/develop/smart-contracts/sdk/tonstarter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
测试工具包(通常是沙盒)已包含在名为Blueprint的TypeScript SDK中。
66

7-
- [了解更多关于Blueprint](develop/smart-contracts/sdk/javascript)
7+
- [了解更多关于Blueprint](/develop/smart-contracts/sdk/javascript)
88

99
使用以下命令一行运行测试:
1010

i18n/mandarin/docusaurus-plugin-content-docs/current/develop/smart-contracts/testing/tonstarter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
测试工具包(通常是沙盒)已经包含在名为Blueprint的TypeScript SDK中。
66

7-
- [了解更多关于Blueprint](develop/smart-contracts/sdk/javascript)
7+
- [了解更多关于Blueprint](/develop/smart-contracts/sdk/javascript)
88

99
使用以下命令一行运行测试:
1010

i18n/mandarin/docusaurus-plugin-content-docs/current/develop/smart-contracts/tutorials/wallet.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ if err != nil {
11951195

11961196
### 同时发送多条消息
11971197

1198-
正如您可能已经知道的,[一个cell可以存储最多1023位的数据和最多4个指向其他cells的引用](develop/data-formats/cell-boc#cell)。在本教程的第一部分中,我们详细介绍了内部消息是如何以“整体”循环作为链接发送的。这意味着可以**在外部消息内存储多达4条内部消息**。这允许同时发送四笔交易。
1198+
正如您可能已经知道的,[一个cell可以存储最多1023位的数据和最多4个指向其他cells的引用](/develop/data-formats/cell-boc#cell)。在本教程的第一部分中,我们详细介绍了内部消息是如何以“整体”循环作为链接发送的。这意味着可以**在外部消息内存储多达4条内部消息**。这允许同时发送四笔交易。
11991199

12001200
为了实现这一点,需要创建4个不同的内部消息。我们可以手动创建,也可以通过`循环(loop)`来创建。我们需要定义3个数组:TON金额数组,评论数组,消息数组。对于消息,我们需要准备另一个数组 - internalMessages。
12011201

@@ -2163,7 +2163,7 @@ do {
21632163

21642164
### 移除过期查询
21652165

2166-
通常情况下,[TON上的智能合约需要为自己的存储付费](develop/smart-contracts/fees#storage-fee)。这意味着智能合约可以存储的数据量是有限的,以防止高网络交易费用。为了让系统更高效,超过 64 秒的交易将从存储中移除。按照以下方式进行:
2166+
通常情况下,[TON上的智能合约需要为自己的存储付费](/develop/smart-contracts/fees#storage-fee)。这意味着智能合约可以存储的数据量是有限的,以防止高网络交易费用。为了让系统更高效,超过 64 秒的交易将从存储中移除。按照以下方式进行:
21672167

21682168
```func
21692169
bound -= (64 << 32); ;; 清除记录,这些记录超过 64 秒前已过期
@@ -2186,7 +2186,7 @@ do {
21862186
>
21872187
> [udict_delete_get_min()](/develop/func/stdlib/#dict_delete_get_min)
21882188
2189-
请注意,必须多次与 `f` 变量进行交互。由于 [TVM 是一个堆栈机器](learn/tvm-instructions/tvm-overview#tvm-is-a-stack-machine),在每次与 `f` 变量交互时,必须弹出所有值以获得所需的变量。`f~touch()` 操作将 f 变量放在堆栈顶部,以优化代码执行。
2189+
请注意,必须多次与 `f` 变量进行交互。由于 [TVM 是一个堆栈机器](/learn/tvm-instructions/tvm-overview#tvm-is-a-stack-machine),在每次与 `f` 变量交互时,必须弹出所有值以获得所需的变量。`f~touch()` 操作将 f 变量放在堆栈顶部,以优化代码执行。
21902190

21912191
### 位运算
21922192

0 commit comments

Comments
 (0)