|
1 |
| -# Kleros version 2 |
| 1 | +<p align="center"> |
| 2 | + <a href="https://kleros.io"> |
| 3 | + <img alt="Kleros" src="https://github.com/kleros/court/blob/master/public/icon-512.png?raw=true" width="128"> |
| 4 | + </a> |
| 5 | +</p> |
2 | 6 |
|
3 |
| -## Deployed Addresses |
| 7 | +<p align="center"> |
| 8 | + <b style="font-size: 32px;">Kleros v2</b> |
| 9 | +</p> |
4 | 10 |
|
5 |
| -See [contracts/README.md](contracts/README.md#deployed-addresses). |
| 11 | +<p align="center"> |
| 12 | + <a href="https://conventionalcommits.org"><img src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg" alt="Conventional Commits"></a> |
| 13 | + <a href="http://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg" alt="Commitizen Friendly"></a> |
| 14 | + <a href="https://github.com/prettier/prettier"><img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg" alt="Styled with Prettier"></a> |
| 15 | +</p> |
| 16 | + |
| 17 | +--- |
| 18 | + |
| 19 | +## Toolchain: |
| 20 | + |
| 21 | +- Node 16 |
| 22 | +- Yarn 3 without [PlugnPlay](https://yarnpkg.com/getting-started/migration/#switching-to-plugnplay) |
| 23 | +- Solidity 0.8 |
| 24 | +- Hardhat |
| 25 | +- Ethers |
| 26 | +- Waffle |
| 27 | +- Typescript |
6 | 28 |
|
7 | 29 | ## Contributing
|
8 | 30 |
|
9 |
| -### Repo Structure |
| 31 | +### Pre-Requisites |
| 32 | + |
| 33 | +- Install NodeJS 16: |
| 34 | + - on Red Hat Linux: `dnf module install nodejs:16` |
| 35 | + - on Ubuntu Linux: `sudo snap install node --classic` |
| 36 | + - on MacOS via [brew](https://brew.sh/): `brew install node` |
| 37 | + - on Windows via [Chocolatey](https://chocolatey.org/): `choco install nvs` |
| 38 | +- Install Yarn v1.22: `npm install -g yarn` |
| 39 | +- Upgrade Yarn to v3: `yarn set version berry` |
| 40 | + |
| 41 | +### Optional Steps |
| 42 | + |
| 43 | +#### [Hardhat CLI auto-completion](https://hardhat.org/guides/shorthand.html) |
| 44 | + |
| 45 | +```bash |
| 46 | +$ npm i -g hardhat-shorthand |
| 47 | + |
| 48 | +$ hardhat-completion install |
| 49 | +✔ Which Shell do you use ? · bash |
| 50 | +✔ We will install completion to ~/.bashrc, is it ok ? (y/N) · true |
| 51 | + |
| 52 | +$ . ~/.bashrc |
| 53 | +``` |
| 54 | + |
| 55 | +### Getting Started |
| 56 | + |
| 57 | +#### Install the dependencies |
| 58 | + |
| 59 | +```bash |
| 60 | +$ yarn install |
| 61 | +``` |
| 62 | + |
| 63 | +## Repo Structure |
10 | 64 |
|
11 | 65 | Each directory at the root of this repository contains code for each individual part that enables this integration:
|
12 | 66 |
|
13 | 67 | - **`bots/`**: service to automate some steps of the flow which otherwise would required manual intervention from users.
|
14 |
| - - **Notice:** while this is a centralized service, it exists only for convenience. Users can fulfill the role of the bots if they wish to. |
15 |
| -- **`contracts/`**: Smart contracts to enable cross-chain arbitration for Realitio (Reality.eth). [Learn more](contracts/README.md). |
| 68 | + - **Notice:** while this is a centralized service, it exists only for convenience. Anyone can fulfill the role of the bots if they wish to do so. |
| 69 | +- **`contracts/`**: Smart contracts running the arbitration system [Learn more](contracts/README.md). |
16 | 70 | - **`dynamic-script/`**: allows fetching the dynamic content for the arbitration, as described by [ERC-1497: Evidence Standard](https://github.com/ethereum/EIPs/issues/1497).
|
17 | 71 | - **`evidence-display/`**: display interface that should be used to render the evidence for arbitrators, as described by [ERC-1497: Evidence Standard](https://github.com/ethereum/EIPs/issues/1497).
|
| 72 | + |
| 73 | +## Deployed Addresses |
| 74 | + |
| 75 | +See [contracts/README.md](contracts/README.md#deployed-addresses). |
0 commit comments