Skip to content

Commit

Permalink
PoC first implementation, some issues here
Browse files Browse the repository at this point in the history
  • Loading branch information
quasisamurai committed Oct 1, 2018
1 parent 8258657 commit 7f3478e
Show file tree
Hide file tree
Showing 2 changed files with 383 additions and 230 deletions.
29 changes: 2 additions & 27 deletions blockchain/source/contracts/Deals.sol
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ contract Deals is Ownable {
dealsAmount += 1;

//DealInfo memory info = DealInfo(_benchmarks, _supplierID, _consumerID, _masterID, _askID, _bidID, __bidID);
//StoreA(_benchmarks, _supplierID, _consumerID, _masterID, _askID, _bidID, _startTime);
//DealParams memory params = DealParams(_duration, _price, _endTime, _status, _blockedBalance, _totalPayout, _lastBillTS);
//StoreB(_duration, _price, _endTime, _status, _blockedBalance, _totalPayout, _lastBillTS);



// only one way not fall into stack error

deals[dealsAmount].info.benchmarks = _benchmarks;
deals[dealsAmount].info.supplierID = _supplierID;
deals[dealsAmount].info.consumerID = _consumerID;
Expand All @@ -95,31 +94,7 @@ contract Deals is Ownable {
return dealsAmount;
}

/* function StoreA(
uint64[] _benchmarks,
address _supplierID,
address _consumerID,
address _masterID,
uint _askID,
uint _bidID,
uint _startTime
) internal {
deals[dealsAmount] = Deal(DealInfo(_benchmarks, _supplierID, _consumerID, _masterID, _askID, _bidID, _startTime),)
}
function StoreA(
uint _duration,
uint _price,,
uint _endTime,
DealStatus _status,
uint _blockedBalance,
uint _totalPayout,
uint _lastBillTS
) interna; {
deals[dealsAmount] = Deal(,DealParams(_duration, _price, _endTime, _status, _blockedBalance, _totalPayout, _lastBillTS));

} */



Expand Down
Loading

0 comments on commit 7f3478e

Please sign in to comment.