Skip to content

Instantly share code, notes, and snippets.

@3esmit
Last active March 12, 2017 08:37
Show Gist options
  • Save 3esmit/458a58fc0a3c2bcf030fe3b1f0652763 to your computer and use it in GitHub Desktop.
Save 3esmit/458a58fc0a3c2bcf030fe3b1f0652763 to your computer and use it in GitHub Desktop.

TheEtherianToken

A token to incentivize collaboration and share donations to the organization.
Two options suggested use CollaborationToken, that enables deposits in the Token contract and withdraw of a rightful shares of the balance based on token holding.
There is no need to rush, any implementation can cover all the past publications with a little effort.
Feel free to take any time needed to decide, both are ready for your current needs. Also, if you get any suggestion of other option or modification of current options I suggested, we can elaborate together.

Option 1 (Use GitHubToken)

  • Tokens are minted by Oraclize requests to GitHub API that counts the changes in the repository file of article
  • Articles are written in a simple syntax called MarkDown https://guides.github.com/features/mastering-markdown/
  • Editor need to create a new article file weekly in the format <year>-<month>-<day>[-title].md
  • Contributors make pull requests (a request to contribute)
  • Editor need to accept, request corrections or denial pull requests
  • Contributors self request their rightful tokens, generated by breakline in their contributions.

Option 2 (Use JustifiedCollaborationToken)

  • Token are minted arbitrarly by the owner
  • A Justification is needed to be supplyed, the justification will be a hash of the content contributed
  • Tokens are created before publications by Editor using a hash of the content and the known wallet of the contributor
  • The hash of content and the wallet of reciever would be added to site in the publication
  • Editor need to hash contributions, send them to contract to give contributors tokens

Sources

JustifiedCollaborationToken https://github.com/ethereans/abstract-token/blob/master/contracts/JustifiedCollaborationToken.sol
GitHubToken https://github.com/ethereans/github-token/blob/master/contracts/GitHubToken.sol (uses Oracle in https://github.com/ethereans/github-token/blob/master/contracts/GitHubOracle.sol ) CollaborationToken (https://github.com/ethereans/abstract-token/blob/master/contracts/CollaborationToken.sol)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment