-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e65126b
commit 94d640a
Showing
3 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Data Model | ||
==================== | ||
|
||
The basic objects of the protocol as ``users``, ``contributions`` and **evaluations``. | ||
|
||
Users | ||
------------ | ||
|
||
Users have ``tokens``, a number representing the amount of `ownership` of a contract, | ||
and ``reputation``, a number between 0 and 1 that represents the fraction of user reputation with | ||
respect to the total reputation in the system: :: | ||
|
||
{ | ||
'id': 123, | ||
'tokens': 11.3, | ||
'reputation': 0.03 | ||
} | ||
|
||
|
||
Contributions | ||
----------------- | ||
|
||
A contribution has a ``contributor`` (which is the user that has made the contribution), | ||
a ``score`` which represents how much the contribution has been valued | ||
by the community, and ``engaged_reputation``, a value between 0 and 1 | ||
that represents the sum of the reputation of the users that have | ||
evaluated the contribution. :: | ||
|
||
{ | ||
'id': 12345, | ||
'score': 0.30, | ||
'engaged_reputation': 0.4, | ||
'contributor' : { | ||
'id': 123, | ||
'tokens': 11.3, | ||
'reputation': 0.03 | ||
} | ||
} | ||
|
||
|
||
|
||
Evaluations | ||
---------------------- | ||
|
||
An evaluation of a contribution has an ``evaluator``, which is the user that | ||
has made the evaluation, the ``contribution`` that the evaluation pertains to, | ||
and a ``value``. :: | ||
|
||
{ | ||
'id': 1234545, | ||
'value': 1, | ||
'evaluator' : { | ||
'id': 123, | ||
'tokens': 11.3, | ||
'reputation': 0.03 | ||
}, | ||
'contribution': { | ||
'id': 12345, | ||
'score': 0.30, | ||
'engaged_reputation': 0.4 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,5 @@ Contents: | |
:maxdepth: 2 | ||
|
||
readme | ||
datamodel | ||
api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters