Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kleros/gtcr
Web client for the kleros generalized token curated list
https://github.com/kleros/gtcr
arbitration blockchain curated-list ethereum frontend generalized-curated-list kleros
Last synced: 11 days ago
JSON representation
Web client for the kleros generalized token curated list
- Host: GitHub
- URL: https://github.com/kleros/gtcr
- Owner: kleros
- License: mit
- Created: 2019-07-08T17:17:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-12T15:21:27.000Z (7 months ago)
- Last Synced: 2024-06-13T19:27:25.007Z (7 months ago)
- Topics: arbitration, blockchain, curated-list, ethereum, frontend, generalized-curated-list, kleros
- Language: JavaScript
- Homepage: https://curate.kleros.io
- Size: 5.55 MB
- Stars: 17
- Watchers: 11
- Forks: 10
- Open Issues: 72
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Generalized Token Curated List## Get Started
1. Clone this repo.
2. Duplicate `.env.example` and rename it to `.env`. Fill the environment variables.
3. Run `nvm use 16`
4. Run `yarn` to install dependencies and then `yarn build:theme && yarn start` to start the dev server.> Tested on node version 10.
## Supporting New Field Types
The Generalized TCR clients can learn how to parse and decode data stored onchain by reading what are the field types of each column from the `metadata` object stored on the meta evidence file.
### Important
To support a new field type, it is required to update the evidence display interface as well. Otherwise it might not know how to parse it and crash on arbitrator clients, preventing them from properly judging a case.
The evidence display interface code of the Generalized TCR can be found at [https://github.com/kleros/gtcr-injected-uis](https://github.com/kleros/gtcr-injected-uis).
## Other Scripts
- `yarn format` - Lint, fix and prettify all the project.
- `yarn run cz` - Run commitizen.
- `yarn run build` - Create a production build.## Netlify Deployment
When setting up the repo for publishing on netlify:
1. Fill the env variables in netlify.toml;
2. Set the following environment variables on the site's build config in netlify's dashboard:
```
REACT_APP_RPC_URLS
REACT_APP_FORMATIC_API_KEYS
REACT_APP_NOTIFICATIONS_API_URL
```