Web: Coloradocoin receive page (due Feb 1)

Created on 22 Jan 2018  路  9Comments  路  Source: gitcoinco/web

What

We will be distributing 1200 of these

32136966-d2ec7722-bbd4-11e7-9d3b-028e589157d2

at ETHDenver.com next month.

On the back of them is a QR code which will lead to a link that'll allow them to redeem their physical coin for 1 COLO.. We are building the redemption page!

Functional spec

  1. User scans QR Code, which takes them to https://gitcoin.co/coin/redeem
    2a. They are greeted with a page that says "This coin has already been redeemed" -or-
    2b. They are greeted with a page that says "You've got 1 COLO! Enter a forwarding address". This page has a text input for the address and a submit button.
  2. Upon submit, a page in the backend receives the request, and uses web3py to transfer 1 COLO to the specified address.
  3. The frontend presents a confirmation page, which a link to the txid on etherscan

Backend specific considerations

  1. Please create a new table called CoinRedemption, which contains shortcodes which can be used to redeem COLO. Please also create a table called CoinRedemptionRequest which tracks the redemption requests.
  2. Please create a management command that can generate n CoinRedemptions. You can base it off of https://github.com/gitcoinco/web/blob/master/app/linkshortener/management/commands/create_shortlinks.py
  3. New url route: https://gitcoin.co/coin/redeem/(XXXXX) -- It is very important that this page is rate limited to prevent people from enumerating all keys.
  4. On the backend, you can assume you'll have a wallet that I've preloaded with 1200 COLO, which you can use to issue the ERC20 transfers upon form submission.

Design

Design MUST be mobile-first and mobile friendly. 99% of usage of this page will be from a mobile device.

Please base upon the design of https://gitcoin.co/tip/receive/

screencapture-gitcoin-co-tip-receive-1516635018941

Most helpful comment

All 9 comments

__This issue now has a funding of 0.25 ETH (245.68 USD) attached to it.__

  • If you would like to work on this issue you can claim it here.
  • If you've completed this issue and want to claim the bounty you can do so here
  • Questions? Get help on the Gitcoin Slack
  • $14308.32 more Funded OSS Work Available at: https://gitcoin.co/explorer

__The funding of 0.25 ETH (245.68 USD) attached has been claimed by @eswarasai.__

@eswarasai, please leave a comment to let the funder (@owocki) and the other parties involved your implementation plan. If you don't leave a comment, the funder may expire your claim at their discretion.

Hi @eswarasai, mind providing an update here? Apologies if I'm out of the loop 馃檪 cc @owocki

@owocki @vs77bb -- I haven't started development on this yet. Still planning around the code changes to be done. I think Kevin had nicely mentioned all the Frontend & Backend tasks breakdown for this. So I'd say we already have a plan in place.

And also @thelostone-mc might work alongside with me to get this done at the earliest possible.
Aditya, please do add if I'm missing anything here or any other questions that you might have.

@eswarasai Sounds good! Thanks for the update 馃憤

@eswarasai how goes it

@owocki -- I should be able to wrap things up within next 24 hours :)

@eswarasai treat m/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

uluhonolulu picture uluhonolulu  路  3Comments

pelsasser picture pelsasser  路  4Comments

abitrolly picture abitrolly  路  4Comments

IgorPerikov picture IgorPerikov  路  3Comments