Skip to content

Commit b3de82e

Browse files
committed
Better READMEs
1 parent e9c6c96 commit b3de82e

File tree

5 files changed

+33
-30
lines changed

5 files changed

+33
-30
lines changed

README.md

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,29 @@
1717
</div>
1818
</div>
1919

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+
```
2143

2244
## Installation
2345

@@ -57,34 +79,6 @@ For contracts that are used for testing of libraries or internal methods there i
5779

5880
The `test` directory replicates the structure of the `contracts` directory.
5981

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-
8882
## Contributing
8983
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
9084

contracts/access/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This is an Ethereum project that implements different access control structures on top of OpenZeppelin's AccessControl.sol.
44

5+
For a longer explanation of some of the contracts here, [please read this article](https://medium.com/coinmonks/how-to-use-accesscontrol-sol-9ea3a57f4b15?source=friends_link&sk=c274faededcbb71c6a211f33de4cf5c9).
6+
57

68
# Community
79

contracts/classifieds/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This is an Ethereum project which implements a classifieds board.
44

5+
For a longer explanation of the contracts here, [please read this article](https://medium.com/coinmonks/how-to-implement-an-erc721-market-f805959ddcf?source=friends_link&sk=5a9c2bb92a2bb92403a32e389e933613).
6+
57
## Description
68

79
A classifieds board can be used to open and close trades between ERC20 and ERC721 tokens.

contracts/energy/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# EnergyMarket
22

3-
This is an Ethereum project that implements an Energy Market
3+
This is an Ethereum project that implements an Energy Market.
4+
5+
For a longer explanation of the contracts here, [please read this article](https://medium.com/coinmonks/how-to-build-an-energy-market-on-a-blockchain-c43b0cfc2d12?source=friends_link&sk=75fd59c0488c354782985321aa2919cb).
6+
47

58
## Usage
69

contracts/lists/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This is an Ethereum project that implements singly and doubly linked lists (https://en.wikipedia.org/wiki/Linked_list).
44

5+
For a longer explanation of some of the contracts here, [please read this article](https://medium.com/coinmonks/a-linked-list-implementation-for-ethereum-a2915bf8122f?source=friends_link&sk=be8889a651eed8193b1c4421a50484dd).
6+
57
# Terminology
68
Object: Objects are linked to each other and together they are a Linked List
79
Head: The first object in the list. No other object points to the head.

0 commit comments

Comments
 (0)