TrueBitFoundation / incentive-layer

[DEPRECATED] Incentive layer contracts and deployment information.
31 stars 20 forks source link

Restructure contracts #2

Closed hswick closed 7 years ago

hswick commented 7 years ago

Reorganized the contracts in accordance with the spec in whitepaper. Added TaskGiver, Solver, Verifier contracts with test files. Tried to do my best to keep old code for future use, but some of it was deleted for housekeeping sake.

Envisioning the Truebit contract to be the thing that organizes TaskGiver, Solver, and Verifiers. More details need to be discussed.

hswick commented 7 years ago

Pushed some new commits. Put most of Zac's code back in after I realized what broadcasting is about. I added a PostTask event to the Truebit contract which gets emitted when TaskGiver creates a task.

In the tests when the event is emitted a solver posts a bid. Address of the sender gets sent to the TaskGiver.

hswick commented 7 years ago

TaskGiverClient and SolverClient send data to each other via events in the Truebit contract.

zmitton commented 7 years ago

im having trouble getting the tests to run. let hold off until we can get to the heart of it

hswick commented 7 years ago

Created new PR with new code.