/helpers-contracts

💎 Vyper contracts for CharityProfile made for HackCrisis hackathon.

Primary LanguagePython

HelpersContracts

Local assumptions:

  • docker-compose
  • ganache
  • brownie
  • vyper
  • tests for API
  • tests for contracts

Architecture

  1. Frontend
  2. Flask as API layer
  • /create - submits new opinion for phone number
  • /verify - retrieves opinion for phone number
  • /whitelist - add address to whiteliste
  • /list - retrieves all participants, requires whitelist
  1. Keys, ABI and Web3 communication layer
  • assumption: testnet servers
  • keys on backend layer
  • transaction fees on backend keys
  • integrates Web3 as API
  1. Vyper layer (VerifiedOpinion contract)
  • whitelist -> premium users/integrators
  • opinionList -> read for whitelisted addresses
  • opinionMapping (phone_number -> []opinions) -> free access