Skip to content

Commit

Permalink
New translations tonstarter.md (Chinese Simplified)
Browse files Browse the repository at this point in the history
  • Loading branch information
TonSquare committed Apr 26, 2024
1 parent 048b01e commit edef072
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
# Using TypeScript (deprecated)
# 使用TypeScript(不推荐)

## Blueprint

Testing toolkit (usually, sandbox) already included to TypeScript SDK named Blueprint.
测试工具包(通常是沙盒)已经包含在名为Blueprint的TypeScript SDK中。

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

Run tests in one line using:
使用以下命令一行运行测试:

```bash npm2yarn
npm test
```

## Low-level libraries
## 低级别库

### sandbox

This package allows you to emulate arbitrary TON smart contracts, send messages to them and run get methods on them as if they were deployed on a real network.
此软件包允许您模拟任意TON智能合约,向它们发送消息并运行它们的get方法,就好像它们部署在真实网络上一样。

The key difference of this package from ton-contract-executor is the fact that the latter only emulates the compute phase of the contract - it does not know about any other phases and thus does not know anything about fees and balances (in a sense that it does not know whether a contract's balance will be enough to process all the out messages that it produces).
这个包与ton-contract-executor的主要区别在于,后者只模拟合约的 Compute Phase - 它不知道任何其他阶段,因此不知道任何关于费用和余额的信息(在某种意义上,它不知道合约的余额是否足以处理它产生的所有出站消息)。

On the other hand, this package emulates all the phases of a contract, and as a result, the emulation is much closer to what would happen in a real network.
另一方面,这个包模拟了合约的所有阶段,因此,模拟更接近于真实网络中会发生的情况。

- https://github.com/ton-community/sandbox

### ton-contract-executor

:::info deprecated
This library is deprecated. TON Community not developing it anymore.
This library is deprecated. 这个库已经不推荐使用。TON社区不再开发它。
:::

This library allows you to run TON Virtual Machine locally and execute contract. That allows you to write & debug & fully test your contracts before launching them to the network.
这个库允许您在本地运行TON虚拟机并执行合约。这使您能够在将合约发布到网络之前编写、调试和完全测试您的合约。 That allows you to write & debug & fully test your contracts before launching them to the network.

- https://github.com/ton-community/ton-contract-executor

## Tutorials
## 教程

Read this article first to understand all approaches to testing on TON:
首先阅读这篇文章,了解在TON上进行测试的所有方法:

- [TON Hello World part 4: Step by step guide for testing your first smart contract](https://ton-community.github.io/tutorials/04-testing/)
- [TON Hello World第4部分:逐步指导测试您的第一个智能合约](https://ton-community.github.io/tutorials/04-testing/)

0 comments on commit edef072

Please sign in to comment.