joe-p / arc12

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ARC12 Contracts

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/.

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/.

Tests

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

About


Languages

Language:TypeScript 54.5%Language:Python 44.6%Language:JavaScript 0.9%