https://github.com/graphprotocol/registry-starter
Starting point for apps that curate data
https://github.com/graphprotocol/registry-starter
Last synced: 10 months ago
JSON representation
Starting point for apps that curate data
- Host: GitHub
- URL: https://github.com/graphprotocol/registry-starter
- Owner: graphprotocol
- Created: 2020-01-27T20:28:15.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-23T00:25:36.000Z (almost 4 years ago)
- Last Synced: 2025-03-23T18:51:54.144Z (10 months ago)
- Language: JavaScript
- Size: 1.65 MB
- Stars: 7
- Watchers: 5
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TokenRegistry
TokenRegistry is an on-chain registry of tokens. It will be indexed as a subgraph on The Graph, and re-used across a variety of dApps and other subgraphs which need to reference token data.
# Repo Structure
This monorepo contains:
* [`./contracts`](./contracts) - TokenRegistry Contracts
* [`./subgraph`](./subgraph) - TokenRegistry Subgraph
* [`./subgraph/mutations`](./subgraph/mutations) - TokenRegistry Mutations
* [`./ui`](./ui) - Sample dApp
# Setup
Prerequisites:
* `nvm`
* `yarn`
* `docker-compose`
* **Docker Daemon Running!**
Run these commands from the root directory:
* Install Dependencies
* `nvm install $(cat .nvmrc)`
* `nvm use $(cat .nvmrc)`
* `yarn`
* Build
* `yarn build`
* Start
* `yarn start`
* Wait for everything to start & deploy...
* Visit `http://localhost:8080`
If you'd like to completely reset your local environment, run `yarn reset:env`.
# Using The dApp
## Setup Metamask
* Use `localhost:8545` provider
* The following private keys have testnet funds
* 0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d
* 0x6cbed15c793ce57650b9877cf6fa156fbef513c4e6134f022a85b1ffdd59b2a1
* 0x6370fd033278c143179d81c5526140625662b8daa446c22ee2d73db3707e620c
* 0x646f1ce2fdad0e6deeeb5c7e8e5543bdde65e86029e2fd9fc169899c440a7913
* 0xadd53f9a7e588d003326d1cbf9e4a43c061aadd9bc938c843a79e7b4fd2ad743
* 0x395df67f0c2d2d9fe1ad08d1bc8b6627011959b79c53d7dd6a3536a33ab8a4fd
* 0xe485d098507f54e7733a205420dfddbe58db035fa577fc294ebd14db90767a52
* 0xa453611d9419d0e56f499079478fd72c37b251a94bfde4d19872c44cf65386e3
* 0x829e924fdf021ba3dbbc4225edfece9aca04b929d6e75613329ca6f1d31c0bb4
* 0xb0057716d5917badaf911b193b12b910811c1497b5bada8d7711f758981c3773
NOTE: If transactions fail try clearing the account history, which will reset the nonce to 0.
## TODO: dApp usage guides (adding, removing, voting, etc)
# Development
TODO: how to develop each package & test [in & out of app]