Skip to content

zupzup/solidity-example-crowdfunding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solidity-example-crowdfunding

An example Ethereum Smart Contract with Solidity

Setup

  • docker pull harshjv/testrpc
  • docker run -d -p 8545:8545 harshjv/testrpc
  • open index.html

To build locally, you might also use:

  • docker pull mzupzup/soliditybuilder
  • docker run -v /path/to/this/folder:/sol mzupzup/soliditybuilder
    • windows: docker run -v c:/path/to/this/folder:/sol mzupzup/soliditybuilder

If you want automatic file-watching as well (not on Windows), you may also use:

  • docker pull mzupzup/soliditywatcher
  • docker run -v /path/to/this/folder:/sol mzupzup/soliditywatcher

The Contract

Winner Takes all Crowdfunding

  • Create contract with minimum entry fee, deadline for project proposals and deadline for campaign
  • People can enter their projects with a name, url and the entry fee until the project proposal deadline
  • After project proposal deadline, other people can "vote" with ether for the projects they want to support until the campaign deadline
  • When the proposal deadline is reached, the campaign can be finished and the Project with the most funds overall receives all the funds entered in the campaign

About

An example for an Ethereum Smart Contract with Solidity

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published