GoodDAPP icon indicating copy to clipboard operation
GoodDAPP copied to clipboard

The Million GoodDollar Homepage

Open LiavGut opened this issue 5 years ago • 0 comments

Do you have the skills to develop an online phenomenon? We are looking for developers to help us build GoodDollar’s Million Dollar Homepage.

In the early 2000s, The Million Dollar Homepage produced major hype around the world and we are looking to recreate a similar site for GoodDollar’s mission but, we need your help!

For more info, contact us at [email protected]

https://en.wikipedia.org/wiki/The_Million_Dollar_Homepage

Based on https://thousandetherhomepage.com/

Github source https://github.com/thousandetherhomepage

1mil.jpg

More reference https://milliondollarbitcoinpage.com/

Technical Description

Smart contracts changes

https://github.com/thousandetherhomepage/ketherhomepage/blob/master/contracts/KetherHomepage.sol

  • contract owner + wallet = GoodDollar DAO address (Avatar) (https://github.com/GoodDollar/GoodContracts/edit/master/releases/deployment.json)
    • no need for withdrawwallet parameter
    • no need for the withdraw method
  • change contract to work with the GoodDollar token instead of ETH, need to implement onTokenTransfer, so GoodDollar token transferAndCall can be used
    • see how its done in https://github.com/GoodDollar/GoodContracts/blob/master/contracts/dao/schemes/OneTimePayments.sol)
    • more info at erc677 EIP
    • onTokenTransfer should receive in data the input for both buy+publish and call both _buy + _publish
    • notice that onTokenTransfer receives sender as parameter and msg.sender is the token contract. suggest to implement internal _buy and _publish that receive sender as parameter
  • GoodDollar is only 2 decimals (unlike ETH which is 18), so price in wei needs to be adjusted accordingly. basically 100 wei = 1GD
  • Deploy on fuse network rpc.fuse.io (ask us for Fuse for gas)

UI changes

  • when user buys he should specify all the ad details (link, image etc)
  • no need to connect with metamask
  • instead of web3 call to contract show a QR code with transaction details to sign
  • poll for publish event and refresh/show new add

Wallet changes https://github.com/GoodDollar/GoodDAPP

  • modify scan QR to detect the million pixel signing request format
  • show confirmation dialog
  • use GoodWalletClass to send the signed request to the blockchain

LiavGut avatar Jan 13 '20 14:01 LiavGut