Discover a whole new world of curated decentralised applications https://dap.ps
Go to file
Jakub Sokołowski c959f7f482
use ipfs.status.im gateway instead of Infura one
Infura deprecated their public gateway and added auth:
https://blog.infura.io/post/ipfs-public-api-and-gateway-deprecation

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-10-14 12:41:29 +02:00
back-end start backend without using nodemon 2022-10-13 13:00:49 +02:00
config use ipfs.status.im gateway instead of Infura one 2022-10-14 12:41:29 +02:00
contracts feat: kyber integration 2020-03-20 08:04:05 -04:00
public Change title 2021-02-18 16:39:50 +01:00
src Move 1inch back to the top of featured dapps 2021-05-06 15:40:13 +02:00
test Update to Embark v5 (#62) 2020-01-30 11:45:09 +02:00
utils Update to Embark v5 (#62) 2020-01-30 11:45:09 +02:00
.editorconfig Adds updated contract, tests and spec 2019-05-27 17:22:45 +02:00
.eslintrc.json Adds updated contract, tests and spec 2019-05-27 17:22:45 +02:00
.gitattributes Adds updated contract, tests and spec 2019-05-27 17:22:45 +02:00
.gitignore Let each dev have their own local version of Discover 2019-08-13 15:00:58 +02:00
.npmrc use unsafe-perm=true to fix AWS EB deploy errors 2019-06-06 08:58:12 -04:00
.prettierrc cache + withdraw 2019-05-31 14:01:31 +03:00
.soliumignore Adds updated contract, tests and spec 2019-05-27 17:22:45 +02:00
.soliumrc.json Adds updated contract, tests and spec 2019-05-27 17:22:45 +02:00
Discover_Specification.md Adds updated contract, tests and spec 2019-05-27 17:22:45 +02:00
LICENSE Initial commit 2019-05-27 15:50:48 +02:00
Makefile makefile: fix node_modules install for back-end 2022-10-13 09:50:44 +02:00
README.md add shell.nix file to define build environment 2022-10-13 09:32:40 +02:00
embark.json Update to Embark v5 (#62) 2020-01-30 11:45:09 +02:00
logs.log Rework desktop search experience 2019-09-17 10:04:03 +02:00
package.json upgrade react: 16.8.4 > 16.13.1 2020-06-22 13:58:54 +02:00
shared.mainnet.chains.json Updates after mainnet deployment 2019-08-07 11:47:39 +02:00
shared.testnet.chains.json New DeFi category for Simona + Gitcoin Grants 2020-10-08 19:35:04 +02:00
shell.nix add shell.nix file to define build environment 2022-10-13 09:32:40 +02:00
yarn.lock upgrade react: 16.8.4 > 16.13.1 2020-06-22 13:58:54 +02:00

README.md

Discover

Discover new and useful DApps that are mobile-friendly and easy to use. Viewing curated information does not require any special tools, though effecting the way information is ranked will require a web3 wallet, whether that is Status, MetaMask, Trust, Brave or whichever one you prefer.

You can learn more about bonded curves and how Discover works here.

Available Scripts

This project is based on Embark v4.0.1, with a few things customised for React.

yarn run build:dev

or

yarn run build:prod

Builds the app into the full-build directory and creates the app.zip ready for use with ElasticBeanstalk.

You can use the Nix shell defined in shell.nix for build environment:

nix-shell --pure

Deployed Contracts

Ropsten (the first is STT, the Status Test Token):

MiniMeToken: { address: '0xc55cf4b03948d7ebc8b9e8bad92643703811d162' },
Discover: { address: '0x008db8b84547982e8F6677D38e9b9ea64F3ccB8B' },

Mainnet:

MiniMeToken: { address: '0x744d70fdbe2ba4cf95131626614a1763df805b9e' },
Discover: { address: '0x5bCF2767F86f14eDd82053bfBfd5069F68C2C5F8' },

Running It Locally

The goal of our local build process is to abstract away the complexity with smart contracts so that you can focus on adding useful new functionality through React-based bounties that are easy to get started on.

3 Prerequisites

  1. Node v10 or higher.
  2. Yarn.
  3. mongodb.

On Linux, setting up mongodb is as easy as sudo apt install -y mongodb, which will also start it automatically. You can stop/restart your local DB any time with sudo systemctl stop mongodb, or get its status with sudo systemctl status mongodb. I recommend using the simple robo3t to view and edit your DB easily (you'll need to set DApps to APPROVED to see Edit and Withdraw options and to see them appear in Categories etc.)

4 Quick Steps

  1. export DB_CONNECTION=mongodb://localhost:27017/mydb. Make sure you have DB_CONNECTION set as an ENV variable so the app knows where to find your local DB.
  2. yarn run build:localhost. This will:
    1. Compile all your contracts using Embark, connecting to Ropsten and IPFS through an Infura gateway.
    2. Deploy a new instance of Discover onto the Ropsten test network for you to work from. It will only be deployed once, after that the address of your contract is stored in, and fetched from, shared.development.chains.json.
    3. Build the frontend, create a directory called full-build, move each directory from the back-end into it, and include the frontend as a directory of its own. It will make sure node_modules are installed, then you can serve everything in full-build by running:
  3. yarn server-start. Navigate to http://localhost:4000 to get developing cool new things for the future of curated information.

Note:

  1. Change this line in back-end/config/index.js to your local Ropsten version of the contract, stored in shared.development.chains.json.
  2. You'll need to visit simpledapp.eth using Status -> Assets Tab -> Request STT. This is the Status Test Token on Ropsten that needs to be used with your instance of Discover in order to submit/upvote/downvote in your local app. Using a proper test network even for local development allows us to better understand what the user experience is actually like in production more easily.

Work to be done

  1. Integrate Kyber functionality so that people can use (at least) SNT, ETH and DAI to participate in the store (it just gets exchanged in the background into SNT before being submitted to the contract).
  2. Create a downvote pool for each DApp so that anyone can downvote by any amount, not just 1%. When the pool hits 1%, the downvote is sent to the contract. This will be important if people ever stake large amounts, 1% of which may be too expensive for individual users. It will potentially amplify "the community's" ability to respond to bad actors.
  3. Integrate embeddable whisper chats into the site, so that it is easy to plug into the community chat directly "behind" each DApp (it's just the name of the DApp as a whisper topic, i.e. #cryptokitties).
  4. Research a way to fetch information about popular DApps on Ethereum through non-economic metrics. Perhaps this means just plugging into an API from OpenSea/StateOfTheDApps for now and leveraging their work. Perhaps it means figuring out how to gossip information about use of DApps via whisper?

Running unit tests

Use ./node_modules/.bin/embark test

To test a specific smart contract you can use ./node_modules/.bin/embark test test/Discover_spec.js.

Running slither

slither . --exclude naming-convention --filter-paths token

Make sure you get TrailofBits' latest static analysis tool, and do your own static analysis on the relevant contracts that you are working on.