This project was created to support Code4rena Bot Races with useful stats and tools.
A live website is available here.
To add a new race, follow these steps:
- Fork this project
- Modify
public/data/races/<year>.json
- Keep the same format as this template:
{
"name": "",
"data": {
"judge": "",
"winner": [ ],
"A": [ ],
"B": [ ],
"C": [ ],
"prize": {
"winner": 0,
"A": 0,
"B": 0
}
}
}
- The Bot name must be available in bots.json
- The Judge name must be available in judges.json
- Open a pull request
- Modify bots.json to add a new Bot
- Modify judges.json to add a new Judge
- The order must be alphabetically sorted, ignoring the case
To add a finding for your bot, follow these steps:
- Fork this project
- Modify
public/data/findings.json
- Find an existing issue to match your bot
- Add your bot name as key and the message as value (follow the issue rules below)
- Open a pull request
- Follow an alphabetical order when adding a new bot:
// good
{
"Hound": "Incomplete NatSpec @return",
"IllIllI-bot": "NatSpec @return argument is missing"
}
// bad
{
"IllIllI-bot": "NatSpec @return argument is missing",
"Hound": "Incomplete NatSpec @return"
}
- Don't use markdown symbols (e.g. ` or *), copy-paste the title as it is shown on the markdown:
// good
{
"Hound": "Incomplete NatSpec @return",
"IllIllI-bot": "NatSpec @return argument is missing"
}
// bad
{
"Hound": "Incomplete NatSpec `@return`",
"IllIllI-bot": "NatSpec `@return` argument is missing"
}
- Clone this repository
- Run
yarn install
- Run
yarn start
- A local webserver will be available at
http://localhost:3000/