algorand-avm
英文权威文档:../../targets/algorand-avm.md
结论
Algorand 应归类为 AVM / TEAL source 或 package-generation 目标,而不是 EVM、Wasm-host、Move、Solana sBPF、TVM、UTXO script 或 ZK circuit 目标。对 ProofForge 的含义
algorand-avm 应先作为文档优先的 Research candidate。第一步不直接加入
ProofForge.Target.Registry。
目标特有问题包括:
- stateful applications 有 approval program 和 clear-state program;
- stateless smart signatures 使用 LogicSig program,是另一种制品形态;
- public method dispatch 通常通过 ABI / ARC-4 conventions 表达;
- persistent data 可以是 global state、account-local state 或 box storage;
- application calls 访问 accounts、assets、boxes 或 other apps 时需要显式 resource references;
- transactions 可以 atomic group 组合,合约可以检查 grouped transactions;
- applications 可以提交 inner transactions;
- native assets 是 Algorand Standard Assets,而不是 ERC-20-like contracts;
- AVM opcode costs、program limits 和 minimum balance requirements 会影响 lowering 与 validation。
候选能力
以下能力应先作为候选项保留在文档中:两条接入路线
- Algorand Python 或 TypeScript package sourcegen:先生成或包装一个小型 Algorand application,通过 AlgoKit / Puya 编译并在 localnet 或 simulator-backed app-call flow 中验证。这是最保守路线。
- Restricted TEAL / AVM emitter:在 package route 澄清制品和验证形态后, 再考虑直接发射受限 TEAL / AVM 子集。
第一阶段非目标
- 不把
algorand-avm加入代码 registry。 - 不把 Algorand 归类为 Wasm-host、EVM、Move、Solana、TVM、UTXO 或 ZK circuit sourcegen。
- 不把 Algo payment 建模成 EVM call value。
- 不把 global、local 和 box storage 当成一个无差别 map。
- 不隐藏 app-call resource references。
- 不从 stateful application-only spike 推导出 LogicSig support。
- 在存在本地 compile 和 app-call smoke 前,不声称支持 Algorand output。