This repository has been archived by the owner on Sep 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove node request file * Update gitignore * Reinit truffle; * Remove vscode config * Remove migration script * Remove python script * Replace token contracts with interfaces for naka token * Simplify address manager and remove escrow and version vars * Fix set event factory logic * Rename AddressManager to ConfigManager * Show math for arbitration len * Finish constructor for standard event * Add arbitration reward percentage to config mgr * Refactor bet method * Refactor set result * Refactor set result * Refactor vote * Set arbitration end time when creating rounds * Refactor withdraw * Refactor withdraw escrow * Change event name to string and add all getters * Add token address check for fallback * Remove oracle folder and all old contracts * Fix config manager import ref * Remove base contract * Refactor event factory * Update libs * Add token fallback to event factory * Change whitelist logic for adding new * Call add to whitelist when creating event * Change hex for create event * Implement withdraw logic in factory * Change all uint256 to uint * Add event round to all necessary events * Add storage for all totals and result totals * Fix logic for calculate winnings * Add require messages to all contracts * Remove token tests and mock token classes * Remove old truffle config and fix finalize check * Fix syntax errors * Use abi.decode for event token fallback and remove unused byte utils * Fix most remaining compile errors * Fix init event round logic * Fix stack too deep * Rearrange order * Add data length check for token fallback * Add data len check for event factory * Add missing view visibility to get next threshold * Inline ready to withdraw modifier and add another rrequire * Remove qweb3 from modules * Remove status enum * Remove final result set event * Fix uint8 ref and make version getter pure * Add comments to all event factory methods * Refactor most of before each for tests * Start with dpeloyment of contracts * Add logic to construct event params * Add config mgr methods var * Convert name back to bytes32 arr * Fix slice bytes for params * Change event name back to string type * Finish reading events and create new event instance * Finish constructor init tet * Refactor reusuable create event func and add test * Finish remaining constructor tests * Remove old constants * Fix fallback func and remove bluebird * Add bet test * Cleanup syntax * Add logs * Change bet to use token fallback * Change calculate winnings logic * Adjust withdraw method and event * Fix syntax errors * Remove fallback function test * Add event address to winnings withdrawn * Add getters for threshold and arbitration time * Remove assert from length for tokenFallback * Add address param for did withdraw * Add bet placed emit on result set
- Loading branch information
1 parent
4662af3
commit 5b6a1fe
Showing
58 changed files
with
3,941 additions
and
5,847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# ethereum | ||
# Bodhi Prediction Market for Nakachain |
Oops, something went wrong.