Skip to content
Kleros Gitcoin Ethereal Virtual Hackathon πŸ”₯πŸ”₯πŸ”₯
JavaScript Solidity HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
contracts
frontend
migrations
test
.gitattributes
.gitignore
cop24-genesis.jpg
create-new-challenge.png
kleros-simple-use-case.png
package-lock.json
package.json
readme.md
shenzhen-hackathon.png
tests-are-cool.png
truffle.js
youtube.jpg

readme.md

genesis.re/kleros-ethereal-virtual-hackathon/frontend

Deployed to GitHub pages, directly from the master branch.

πŸ₯‡ Kleros Ethereal Virtual Hackathon πŸ₯‡

Video walkthrough (hackathon 7:15am quality)

https://youtu.be/M_aVCHRCups

Self Commitment App

It takes 30 days to build habit

You commit to do 30 workouts in 30 days.

Create a new challenge

Good things

  • End to end
  • Verified on Etherscan
  • Uses the Arbitration and Evidence standards

Development

Realistically speaking - it's a hackathon project, unlikely to be continued.

I already have some other ideas how to use Kleros. "Oracle as a Service" - human intelligence API to tell the factual state, knowing that rational game-theory incentives are in play on the Kleros side.

Check also: https://blog.kleros.io/launching-kleros-fellowship-second-edition/

1. No surprises here

  • git clone
  • npm install
  • npm run ganache && npm run test

2. Check open issues

Actually if I was to report everything, there would be too many.

3. Local version of Truffle (required to run the tests)

Kleros reference implementation is using pragma solidity ^0.4.15; it means there are some deprecated solidity features.

If you have Truffle installed globally and run truffle test IT WILL NOT WORK - the command will use gloablly installed Truffle that in turn has a different version of Solidity compiler.

If you want to run tests (hint: you want to run tests) you should do npm run test - in that way it will use locally installed Truffle in node_modules. It will compile, it will run.

4. Debugging unit tests

  1. Put debugger statement in the JavaScript code

  2. node --inspect-brk ./node_modules/truffle/build/cli.bundled.js test test/test_to_debug.js

  3. Open chrome://inspect

5. Preserve credentials in MetaMask for interactions in the UI

Have the same mnemonic each time, to preserve account in MetaMask:

  • ganache-cli -m "____ ____ ____ ____"

6. Increase gasLimit to 8000000

Especially if you are using Remix.

Related, also ethereal hackathon project

Until recently I've never uploaded stuff to IPFS.

Now it is much simpler, go figure: https://genesis.re/kleros-metaevidence-metahash/

Consulting gigs and impactful work

Effective altruism. Exponential technologies.

I live in one of the most expensive cities on this planet and I'm open to extra work.

You can’t perform that action at this time.