# ARC12 Contracts

The contracts for ARC12 can be found under [contracts/](https://github.com/algorandfoundation/ARCs/tree/main/assets/arc-0012/contracts).

[contracts/arc12.ts](./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/](https://github.com/algorandfoundation/ARCs/tree/main/assets/arc-0012/contracts).

## Tests

1. `cd contracts`
2. `python -v venv .venv`
3. `source .venv/bin/activate`
4. `pip install -r tests/requirements.txt`
5. `pytest tests/`

## Modifying Source

1. `cd contracts`
2. `yarn install`
3. Modify `arc12.ts`
4. Compile with `npx tealscript arc12.ts`

# ARC12 SDK

A reference TypeScript SDK for ARC12 can be found under [arc12-sdk/](https://github.com/algorandfoundation/ARCs/tree/main/assets/arc-0012/arc12-sdk).

## Tests

1. `cd arc12-sdk`
2. `npm install`
3. `npx jest`