Skip to content

Instantly share code, notes, and snippets.

@3esmit
Last active March 17, 2017 18:00
Show Gist options
  • Save 3esmit/bfe5643b70abc324081b6c4925c262dd to your computer and use it in GitHub Desktop.
Save 3esmit/bfe5643b70abc324081b6c4925c262dd to your computer and use it in GitHub Desktop.
GitHub Issue and Pull request smart contract specification

When open:

  1. accept bounties
  2. GitRepositoryToken claim to commits of pull request that closes it
  3. become closed when closed in oracle

When closed:

  • become open when are open in oracle

When issue releated commit claimed:

  • genereate bounty accept token for bounties accepted of latest opener

When bounties became accepted

  1. issue bounties are transfered to DonationBank
  2. bounties accept claims
  3. generate eth withdraw token for who claims the bounties
  4. eth withdraw token can be claimed by eth when DonationBank have enough funds

When bounties became rejected

  1. period locked to verification of trusted party*
  2. if not rejected lock period, refunds.

* possibly multisig, vote quorum or PoS validator style

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