Coder Social home page Coder Social logo

decentralized_hackerrank's Introduction

Decentralized Hackerrank:

  • Submitting contract byte code to a Tester contract which validates whether your code passes the tests
  • You can build reputation by solving these challenges
  • Your code needs to adhere to the interface of the challege
  • The incentive structure: you pay per submission and then the winner gets the total of all those submissions

Example challenge:

Write an implementation of an adder function according to this interface:

contract Adder { function add(uint a, uint b) returns (uint){} }

Then you send a transaction with the compiled version of your implementation and we execute it. You receive pass/fail as a boolean from a TestPass event.

TODO:

  • Makefile
  • More challenges, better UI
  • Come up with a good testing strategy for the web application part
  • Resolve front running with hash based reservation
  • Figure out how to self destruct the submission contract after it gets tested so we dont just fill up the chain with submission contracts
  • Reputation system
  • A feature could be users can actually create their own challenges

Notes

  • Obviously creating an entire contract for each submission is not scalable - some way to make use of plasma here?
  • ganache-cli does not seem to be able to handle selfdestructing a contract created with the create assembly code. Exact same code works fine in the remix IDE, not sure why.

decentralized_hackerrank's People

Contributors

connorwstein avatar

Watchers

 avatar  avatar

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.