Skip to content

Broken links fix (wallet tutorial, tonstarter sections) #558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/develop/smart-contracts/sdk/tonstarter.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

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

Run tests in one line using:

Expand Down
2 changes: 1 addition & 1 deletion docs/develop/smart-contracts/testing/tonstarter.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

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

Run tests in one line using:

Expand Down
5 changes: 3 additions & 2 deletions docs/develop/smart-contracts/tutorials/wallet.md
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ After completing the first half of this tutorial we’re now much more familiar

### Sending Multiple Messages Simultaneously

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.
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.

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.

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

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:


```func
bound -= (64 << 32); ;; clean up records that have expired more than 64 seconds ago
old_queries~udict_set_builder(64, query_id, begin_cell()); ;; add current query to dictionary
Expand All @@ -2199,7 +2200,7 @@ do {
>
> ["udict_delete_get_min()" in docs](/develop/func/stdlib/#dict_delete_get_min)

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.
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.

### Bitwise Operations

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ if err != nil {

### 同时发送多条消息

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

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

Expand Down Expand Up @@ -2163,7 +2163,7 @@ do {

### 移除过期查询

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

```func
bound -= (64 << 32); ;; 清除记录,这些记录超过 64 秒前已过期
Expand All @@ -2186,7 +2186,7 @@ do {
>
> [udict_delete_get_min()](/develop/func/stdlib/#dict_delete_get_min)

请注意,必须多次与 `f` 变量进行交互。由于 [TVM 是一个堆栈机器](learn/tvm-instructions/tvm-overview#tvm-is-a-stack-machine),在每次与 `f` 变量交互时,必须弹出所有值以获得所需的变量。`f~touch()` 操作将 f 变量放在堆栈顶部,以优化代码执行。
请注意,必须多次与 `f` 变量进行交互。由于 [TVM 是一个堆栈机器](/learn/tvm-instructions/tvm-overview#tvm-is-a-stack-machine),在每次与 `f` 变量交互时,必须弹出所有值以获得所需的变量。`f~touch()` 操作将 f 变量放在堆栈顶部,以优化代码执行。

### 位运算

Expand Down
Loading