ton-blueprint
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill is based on Blueprint (ton-org/blueprint), generated at 2026-02-25.
Blueprint is a development environment for the TON blockchain: create projects with , then build (Tolk/FunC/Tact), test (Sandbox), and run scripts (deploy via TonConnect, deeplink, or mnemonic). Projects use a fixed layout: , , , , , .
npm create ton@latestcontracts/wrappers/compilables/tests/scripts/build/本Skill基于Blueprint(ton-org/blueprint)生成,生成时间为2026-02-25。
Blueprint是TON区块链的开发环境:使用创建项目,随后进行构建(Tolk/FunC/Tact)、测试(Sandbox)并运行脚本(通过TonConnect、深度链接或助记词部署)。项目采用固定布局:、、、、、。
npm create ton@latestcontracts/wrappers/compilables/tests/scripts/build/Core References
核心参考
| Topic | Description | Reference |
|---|---|---|
| Project structure | Directory layout, contracts/wrappers/compilables/tests/scripts/build | core-project-structure |
| CLI commands | build, test, run, create, rename, help, pack, snapshot, verify, set, convert | core-commands |
| NetworkProvider | sender, open, waitForDeploy, waitForLastTransaction, api, config | core-network-provider |
| Config | blueprint.config.ts, plugins, network, requestTimeout, recursiveWrappers, manifestUrl | core-config |
| UIProvider | write, prompt, input, choose, setActionPrompt, inputAddress for scripts | core-ui-provider |
| Networks and explorers | Network, Explorer, CustomNetwork, NetworkVersion for run/verify/config | core-networks-explorers |
| 主题 | 描述 | 参考 |
|---|---|---|
| 项目结构 | 目录布局、contracts/wrappers/compilables/tests/scripts/build | core-project-structure |
| CLI命令 | build、test、run、create、rename、help、pack、snapshot、verify、set、convert | core-commands |
| NetworkProvider | sender、open、waitForDeploy、waitForLastTransaction、api、config | core-network-provider |
| 配置 | blueprint.config.ts、plugins、network、requestTimeout、recursiveWrappers、manifestUrl | core-config |
| UIProvider | write、prompt、input、choose、setActionPrompt、inputAddress(用于脚本) | core-ui-provider |
| 网络与浏览器 | Network、Explorer、CustomNetwork、NetworkVersion(用于run/verify/config) | core-networks-explorers |
Features
功能特性
Scripts and compilation
脚本与编译
| Topic | Description | Reference |
|---|---|---|
| Scripts | run(provider, args), deploy pattern, blueprint run | features-scripts |
| Compilation | compile(), CompilerConfig, compilables, build output, hooks | features-compilation |
| Build API | buildOne, buildAll, buildAllTact, artifact output | features-build-api |
| Wrappers | Contract, createFromConfig, createFromAddress, sendDeploy | features-wrappers |
| Plugins | Plugin, PluginRunner, custom CLI commands | features-plugins |
| Verify | Verify deployed contract on verifier.ton.org, flags, compiler version | features-verify |
| Pack | Publish-ready wrapper package, package.ts, dist, npm publish | features-pack |
| Create and rename | Create contract from template, rename across wrappers/scripts/tests | features-create-rename |
| 主题 | 描述 | 参考 |
|---|---|---|
| 脚本 | run(provider, args)、部署模式、blueprint run | features-scripts |
| 编译 | compile()、CompilerConfig、compilables、构建输出、hooks | features-compilation |
| 构建API | buildOne、buildAll、buildAllTact、产物输出 | features-build-api |
| wrappers | Contract、createFromConfig、createFromAddress、sendDeploy | features-wrappers |
| 插件 | Plugin、PluginRunner、自定义CLI命令 | features-plugins |
| 验证 | 在verifier.ton.org上验证已部署合约、标志位、编译器版本 | features-verify |
| 打包 | 可发布的wrapper包、package.ts、dist、npm publish | features-pack |
| 创建与重命名 | 从模板创建合约、跨wrappers/scripts/tests重命名 | features-create-rename |
Best practices
最佳实践
| Topic | Description | Reference |
|---|---|---|
| Deploy | Deploy flow, TonConnect/deeplink/mnemonic, env vars, verify | best-practices-deploy |
| Testing | Sandbox tests, compile(), coverage, gas report/snapshot | best-practices-testing |
| 主题 | 描述 | 参考 |
|---|---|---|
| 部署 | 部署流程、TonConnect/深度链接/助记词、环境变量、验证 | best-practices-deploy |
| 测试 | Sandbox测试、compile()、覆盖率、gas报告/快照 | best-practices-testing |