The contracts for ARC12 can be found under contracts/.
contracts/arc12.ts contains the TEALScript source code for the Master and Vault contracts. The approval programs for the respective contracts that is generated by TEALScript can also be found in contracts/.
cd contracts
python -v venv .venv
source .venv/bin/activate
pip install -r tests/requirements.txt
pytest tests/
cd contracts
yarn install
- Modify
arc12.ts
- Compile with
npx tealscript arc12.ts
A reference TypeScript SDK for ARC12 can be found under arc12-sdk/.
cd arc12-sdk
npm install
npx jest