Skip to content

Commit 0e4c40e

Browse files
committed
Add readme
1 parent 5dba9d3 commit 0e4c40e

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Tinyman Order Protocol
2+
3+
This repo contains the contracts that form the Tinyman Order Protocol system.
4+
5+
### Docs
6+
7+
User docs for Tinyman Orders can be found at [docs.tinyman.org](https://docs.tinyman.org).
8+
9+
10+
### Contracts
11+
The contracts are written in [Tealish](https://github.com/tinymanorg/tealish).
12+
The specific version of Tealish is https://github.com/tinymanorg/tealish/tree/109a2f2e74549307fb002298f4189df3f0ed7c4f.
13+
14+
The annotated TEAL outputs and compiled bytecode are available in the build subfolders.
15+
16+
17+
### Security
18+
#### Reporting a Vulnerability
19+
Reports of potential flaws must be responsibly disclosed to security@tinyman.org. Do not share details with anyone else until notified to do so by the team.
20+
21+
22+
### Installing Dependencies
23+
Note: Mac OS & Linux Only
24+
25+
```
26+
% python3 -m venv ~/envs/tinyman-order-protocol
27+
% source ~/envs/tinyman-order-protocol/bin/activate
28+
(tinyman-order-protocol) % pip install -r requirements.txt
29+
(tinyman-order-protocol) % python -m algojig.check
30+
```
31+
32+
We recommend using VS Code with this Tealish extension when reviewing contracts written in Tealish: https://github.com/thencc/TealishVSCLangServer/blob/main/tealish-language-server-1.0.0.vsix
33+
34+
35+
### Running Tests
36+
37+
```
38+
# Run all tests (this can take a while)
39+
(tinyman-order-protocol) % python -m unittest -v
40+
41+
```
42+
43+
Note: The tests read the `.tl` Tealish source files from the contracts directories, not the `.teal` build files.
44+
45+
46+
### Compiling the Contract Sources
47+
48+
```
49+
# Compile each set of contracts to generate the `.teal` files in the `build` subdirectories:
50+
(tinyman-order-protocol) % tealish compile contracts/order
51+
(tinyman-order-protocol) % tealish compile contracts/registry
52+
```
53+
54+
### Licensing
55+
56+
The contents of this repository are licensed under the Business Source License 1.1 (BUSL-1.1), see [LICENSE](LICENSE).

0 commit comments

Comments
 (0)