Giter Site home page Giter Site logo

cross-chain-realitio-proxy's Introduction

Kleros

JavaScript Style Guide Tested with Truffle Conventional Commits Commitizen Friendly Styled with Prettier

Kleros core smart contracts.

Get Started

  1. Clone this repo.
  2. Run yarn to install dependencies and then yarn run build to compile the contracts.

Scripts

  • yarn run prettify - Apply prettier to the entire project.
  • yarn run lint:sol - Lint the entire project's .sol files.
  • yarn run lint:js - Lint the entire project's .js files.
  • yarn run lint:sol --fix - Fix fixable linting errors in .sol files.
  • yarn run lint:js --fix - Fix fixable linting errors in .js files.
  • yarn run lint - Lint the entire project's .sol and .js files.
  • yarn test - Run the truffle tests.
  • yarn run cz - Run commitizen.
  • yarn run build - Compile contracts.

Contributing

See CONTRIBUTING.md.

Learn how to develop arbitrable and arbitrator contracts here.

cross-chain-realitio-proxy's People

Contributors

0xferit avatar clesaege avatar epiqueras avatar fnanni-0 avatar hbarcelos avatar jaybuidl avatar merlinegalite avatar shalzz avatar unknownunknown1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cross-chain-realitio-proxy's Issues

[Bug Bounty: up to 50 ETH] Reality.eth v2

This is a deployed contract, do not post potential vulnerabilities there unless we give you the permission to or formally reject your vulnerability.

Reality.eth

This is a bug bounty on the Reality.eth contract.
Bugs are rewarded up to 50 ETH according to this classification:

  • Critical Bugs: 50 ETH
    for bugs with a high likelihood of allowing an attacker to make the oracle return the wrong answer.
  • Major Bugs: 25 ETH
    for bugs that can lock a non negligible amount user funds or enable stealing a non negligible amount of user funds.
  • Minor Bugs: 2 ETH
    for smaller bugs which can still produce a non negligible amount of harm to users.

Issues which do not result in a contract redeployment can only be classified as minor.

If you find a bug you can send a mail to [email protected]. In case of dispute about the classification of a bug, Kleros will be used to solve it.

Reality.eth

Reality.eth is a crowd-sourced on-chain smart contract oracle system by Reality Keys.
You can find the documentation there. Note that some parts of the documentation may only apply to the previous version of Reality.eth.

This contract is deployed on the xDAI chain.

Bounty

Bounty Rules

  • If you have any questions, don't hesitate to ask on the slack channel (slack.kleros.io #smart-contract-review) or by sending a mail to [email protected] .
  • This bounty may be advertised on multiple platforms. Bounties are only awarded to the first person finding the bug irrespective of the platform.
  • Posting vulnerabilities publicly, even on this github, before being allowed or having your vulnerability formally rejected is forbidden and would void your claim for rewards.
  • Good luck and have fun hunting!
  • Note that we are aware that the variables storing time are uint32 and a new version will need to be redeployed before the end of the century.

Extra info

Extra information are given for informational purpose. This allows you to see the bigger picture of what the contract is made for.

  • Frontend, be sure to be connected to the xDAI network.
  • Omen, a prediction market relying on the reality.eth oracle. Be sure to be connected to the xDAI network.
  • Kleros connectors to arbitrate on Reality.eth disputes. Connector on xDAI and connector on mainnet. Those have their separate bounty.

[Bug Bounty: up to 50 ETH] Cross chain Kleros-Reality.eth connectors

Cross chain Kleros-Reality.eth connectors

This is a bug bounty on connectors contracts between Reality.eth (on xDAI) and Kleros.
Bugs are rewarded up to 50 ETH according to this classification:

  • Critical Bugs: 50 ETH
    for bugs with a high likelihood of allowing an attacker to make the oracle return the wrong answer.
  • Major Bugs: 25 ETH
    for bugs that can lock a non negligible amount user funds or enable stealing a non negligible amount of user funds.
  • Minor Bugs: 2 ETH
    for smaller bugs which can still produce a non negligible amount of harm to users.

Issues which do not result in a contract redeployment can only be classified as minor.

If you find a bug you can send a mail to [email protected]. In case of dispute about the classification of a bug, Kleros will be used to solve it.

Reality.eth-Kleros connectors

Those contracts are connectors allowing disputes on Reality.eth on xDAI to be ruled by Kleros on Ethereum mainnet.
image

  • See reality.eth documentation for an overview of the mechanisms of this oracle.
  • Disputes are started on the Ethereum mainnet on RealitioForeignArbitrationProxy. The requester need to put a deposit.
  • Reality.eth on xDAI is informed that a dispute is created through RealitioHomeArbitrationProxy. If something happened in between (like someone changing the answer) the request is canceled and the requester is refunded.
  • Kleros on Ethereum mainnet is informed that the dispute can be created through RealitioForeignArbitrationProxy. If the arbitration fees had changed in the meantime, the requester is refunded and Reality.eth is informed through RealitioHomeArbitrationProxy.
  • Kleros gives a ruling which is transmitted to Reality.eth through RealitioForeignArbitrationProxy and RealitioHomeArbitrationProxy.

Bounty

Smart Contract Guidelines

We use those guidelines to write smart contracts. In particular, we do not try to prevent stupid behaviors at the contract level but leave this task to the UI. Letting the possibility to a user to harm itself is not a vulnerability (but should of course be dealt at the UI level).

Violation of guidelines are not vulnerabilities but can be reported as "suggestion for tips" (you may get a few PNK for it).

Bounty Rules

  • If you have any questions, don't hesitate to ask on the slack channel (slack.kleros.io #smart-contract-review) or by sending a mail to [email protected] .
  • This bounty may be advertised on multiple platforms. Bounties are only awarded to the first person finding the bug irrespective of the platform.
  • Posting vulnerabilities publicly, even on this issue, before being allowed or having your vulnerability formally rejected is forbidden and would void your claim for rewards.
  • Good luck and have fun hunting!

Extra info

Extra information are given for informational purpose. This allows you to see the bigger picture of what the contract is made for.

  • Frontend, be sure to be connected to the xDAI network.
  • Omen, a prediction market relying on the reality.eth oracle. Be sure to be connected to the xDAI network.
  • Reality.eth and its documentation. Those are part of a separate bounty.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.