|
17 | 17 | </div> |
18 | 18 | </div> |
19 | 19 |
|
20 | | -> HQ20/contracts is a Solidity project with contracts, libraries and examples to help you build fully-featured distributed applications for the real world. |
| 20 | +> HQ20/contracts is a Solidity project with contracts, libraries and examples to help you build fully-featured distributed applications for the real world. The contracts are expected to be used as smart contract patterns for you to draw inspiration from, and for that purpose they have ben kept deliberately simple. If you decide to reuse the contracts, or to copy and paste code in them, make sure that you look for and close the vulnerabilities. If you plan to go to the mainnet, please get a third party audit done. |
| 21 | +
|
| 22 | +## In a Nutshell |
| 23 | + |
| 24 | +At the time of this writing (`May 2020`), this are the contents of this repository: |
| 25 | + |
| 26 | +``` |
| 27 | +contracts ──┬─── access - Access Control Contracts, some of them built on top of `AccessControl.sol` |
| 28 | + ├─── classifieds - Example of a decentralized classifieds market for ERC721 |
| 29 | + ├─── dao - Example of building a decentralized venture capital fund |
| 30 | + ├─── drafts - Stuff not yet ready for prime-time |
| 31 | + ├─── energy - Example of building a decentralized market for energy distribution |
| 32 | + ├─── exchange - The Uniswap decentralized market contracts, with solidity tests |
| 33 | + ├─── introspection - Example of using ERC165 to verify contract types before casting |
| 34 | + ├─── issuance - Example of an ICO, can be used as well for share issuances |
| 35 | + ├─── lists - Reusable implementations of different types of linked lists |
| 36 | + ├─── math - Reusable implementation of a lightweight fixed point math library |
| 37 | + ├─── state - Reusable implementation of a fully-featured state machine |
| 38 | + ├─── test - Implementations of contracts for testing of interanl functions |
| 39 | + ├─── token - Token implementations, including a reusable dividend-bearing ERC20 |
| 40 | + ├─── utils - Reusable library to cast between `uint` and `int`. |
| 41 | + └─── voting - Example implementations of token-based and address-based votings |
| 42 | +``` |
21 | 43 |
|
22 | 44 | ## Installation |
23 | 45 |
|
@@ -57,34 +79,6 @@ For contracts that are used for testing of libraries or internal methods there i |
57 | 79 |
|
58 | 80 | The `test` directory replicates the structure of the `contracts` directory. |
59 | 81 |
|
60 | | -At the time of this writing (`Feb 2020`), this is the directory structure: |
61 | | - |
62 | | -``` |
63 | | -contracts ──┬─── access |
64 | | - │ |
65 | | - ├─── classifieds |
66 | | - │ |
67 | | - ├─── drafts ───────┬─── classifieds |
68 | | - │ ├─── issuance |
69 | | - | ├─── lists ──────────── mocks |
70 | | - | ├─── strings |
71 | | - | ├─── token |
72 | | - | └─── voting |
73 | | - │ |
74 | | - ├─── examples ─────┬─── access |
75 | | - │ ├─── dao |
76 | | - │ ├─── energy |
77 | | - │ └─── introspection |
78 | | - │ |
79 | | - ├─── exchange |
80 | | - ├─── issuance |
81 | | - ├─── lists |
82 | | - ├─── state |
83 | | - ├─── test |
84 | | - ├─── token |
85 | | - └─── utils |
86 | | -``` |
87 | | - |
88 | 82 | ## Contributing |
89 | 83 | Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. |
90 | 84 |
|
|
0 commit comments