From edef07268f3b1df1a3b31fd891e4b04ab1d53d0c Mon Sep 17 00:00:00 2001 From: TonSquare <147710825+TonSquare@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:28:13 +0800 Subject: [PATCH] New translations tonstarter.md (Chinese Simplified) --- .../smart-contracts/testing/tonstarter.md | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/i18n/mandarin/docusaurus-plugin-content-docs/current/develop/smart-contracts/testing/tonstarter.md b/i18n/mandarin/docusaurus-plugin-content-docs/current/develop/smart-contracts/testing/tonstarter.md index 098d0d76f2..63a9555a19 100644 --- a/i18n/mandarin/docusaurus-plugin-content-docs/current/develop/smart-contracts/testing/tonstarter.md +++ b/i18n/mandarin/docusaurus-plugin-content-docs/current/develop/smart-contracts/testing/tonstarter.md @@ -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/)