The goal of this is to have a simple application, which users can use to register for our upcoming Melon funds competitions. In order to register for the competition users need to sign (using their private key) that they have read, understood and accepted the Terms and Conditions presented to them.
- Create a new repository in melonproject called competitions
- Initialize a dapp-suite environment
- Use https://github.com/melonproject/protocol/blob/develop/contracts/competition/Competition.sol
- Import ERC20 token abstraction using dapp-suite. See also: https://dappsys.readthedocs.io/en/latest/ds_token.html
- Here it might be helpful to ask Travis how this works and for help w deployment and testing scripts.
- Create a test-case for Hopefuls to registerForCompetition
- An outdated - signature scheme has changed since then - example can be found here
- A more updated and used in production example can be found here
- Where its assumed that we alread know the hash of the legal text of terms and conditions
- Displays the legal text (==Terms and conditions), ideally using some markdown format (for now u can just assume some Terms and Conditions and use them as a placeholder for the actual ones, which are curr being finalized)
- Button: "I hereby confirm to have read, understood and accepted above Terms and Conditions", which on-click creates the ECDSA params (r,s,v) created w the users private key.
- Second Button: "Register for competition", which on-click send tx to registerForCompetition
- Here it might be helpful to ask Simon, Jenna and/or Ferran for how this works.