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 網址,從 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/56 應用規格 |
| 排除錯誤 | 3 | 合約與交易的錯誤診斷 |
如何使用此技能
- 從此處開始,了解您需要的參考文件
- 閱讀該主題的
.md檔案,取得逐步指引 - 查閱
-reference.md檔案,取得詳細的 API/CLI 資訊 - 如需語言特定的內容,請參閱
algorand-typescript或algorand-python上層技能