algorand-ts-migration
Installation
SKILL.md
Algorand TypeScript Migration
Migrate smart contracts to Algorand TypeScript 1.0 from TEALScript or Algorand TypeScript Beta.
Migration Workflow
1. Identify Source Language
Determine whether the code is TEALScript or Algorand TypeScript Beta:
| Indicator | TEALScript | Algorand TypeScript Beta |
|---|---|---|
| Import source | @algorandfoundation/tealscript |
@algorandfoundation/algorand-typescript |
| Global types | Uses assert, uint64 without imports |
Requires explicit imports |
| Event logging | new EventLogger<...>() |
N/A |
| Inner transactions | sendAssetConfig({...}) |
itxn.assetConfig({...}) |
| Logic sig method | logic() |
program() |
| Type syntax | uint256, uint8 literals |
arc4.UintN<256>, arc4.UintN8 |