Algorand 开发
这是语言无关的 Algorand 开发工具、工作流和标准的聚合父级技能。使用下面的参考文件获取每个主题的详细指南。
快速开始
# 安装 AlgoKit CLI
pipx install algokit
# 创建新项目
algokit init -n my-project -t typescript --answer preset_name production --defaults
# 开发循环
algokit project run build # 编译合约
algokit project run test # 运行测试
algokit localnet start # 启动本地网络
algokit project deploy localnet # 部署
参考指南
根据您的任务导航到相应的参考文件。
AlgoKit CLI 命令
使用 AlgoKit CLI 构建、测试、部署和管理本地网络。
- use-algokit-cli.md — CLI 工作流和常用命令
- use-algokit-cli-reference.md — 完整的 CLI 命令参考
搜索 Algorand 示例
使用 WebFetch 配合原始 GitHub URL 从 Algorand 基金会仓库中查找可用的合约示例和代码模式。
- search-algorand-examples.md — 搜索工作流和优先级仓库
- search-algorand-examples-reference.md — WebFetch 模式与知识库参考
创建项目
使用 AlgoKit 模板初始化新的 Algorand 项目。
- create-project.md — 项目创建工作流
- create-project-reference.md — 模板、预设和 CLI 选项
构建智能合约
构建 Algorand 智能合约的通用工作流(语言无关的步骤)。
- build-smart-contracts.md — 合约构建工作流
- build-smart-contracts-reference.md — 仓库优先级和模式查找
实现 ARC 标准
ARC-4 ABI 编码、ARC-32/ARC-56 应用规范及相关标准。
- implement-arc-standards.md — ARC 概述和关键标准
- implement-arc-standards-arc4.md — ARC-4 ABI 类型、编码和方法调用
- implement-arc-standards-arc32-arc56.md — 应用规范格式与使用
排查错误
诊断并修复常见的 Algorand 开发错误。
- troubleshoot-errors.md — 错误诊断概述
- troubleshoot-errors-contract.md — 智能合约和逻辑错误
- troubleshoot-errors-transaction.md — 交易和账户错误
主题快速参考
| 主题 | 文件数 | 描述 |
|---|---|---|
| AlgoKit CLI | 2 | 构建、测试、部署命令和本地网络管理 |
| 搜索示例 | 2 | 用于查找 Algorand 代码示例的 WebFetch 模式 |
| 创建项目 | 2 | algokit init 模板、预设和选项 |
| 构建合约 | 2 | 语言无关的合约构建工作流 |
| ARC 标准 | 3 | ARC-4 ABI、ARC-32/ARC-56 应用规范 |
| 排查错误 | 3 | 合约和交易的错误诊断 |
如何使用此技能
- 从此处开始,了解您需要哪个参考文件
- 阅读主题
.md文件,获取逐步指导 - 查阅
-reference.md文件,了解详细的 API/CLI 细节 - 对于特定语言的内容,请参阅
algorand-typescript或algorand-python父级技能