makoto / blockparty

NO BLOCK NO PARTY
MIT License
164 stars 41 forks source link

Create user state function #42

Open makoto opened 7 years ago

makoto commented 7 years ago
  1. 'not registered' if isRegistered(address) == false
  2. 'registered' if isRegistered(address) == true && isAttended(address) == false
  3. 'attended' if isAttended(address) == true && participants[address].payout == 0 isPaid(address) == false
  4. 'won' if isAttended(address) == true && participants[address].payout > 0 isPaid(address) == false
  5. 'earned' if isPaid(address) == true
hacktar commented 7 years ago

Maybe is better if this user state function remains on app side and don't put on smart contract high level functions