Skip to content

Commit 7f3478e

Browse files
committed
PoC first implementation, some issues here
1 parent 8258657 commit 7f3478e

File tree

2 files changed

+383
-230
lines changed

2 files changed

+383
-230
lines changed

blockchain/source/contracts/Deals.sol

+2-27
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,11 @@ contract Deals is Ownable {
7070
dealsAmount += 1;
7171

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

7875

76+
// only one way not fall into stack error
77+
7978
deals[dealsAmount].info.benchmarks = _benchmarks;
8079
deals[dealsAmount].info.supplierID = _supplierID;
8180
deals[dealsAmount].info.consumerID = _consumerID;
@@ -95,31 +94,7 @@ contract Deals is Ownable {
9594
return dealsAmount;
9695
}
9796

98-
/* function StoreA(
99-
uint64[] _benchmarks,
100-
address _supplierID,
101-
address _consumerID,
102-
address _masterID,
103-
uint _askID,
104-
uint _bidID,
105-
uint _startTime
106-
) internal {
107-
deals[dealsAmount] = Deal(DealInfo(_benchmarks, _supplierID, _consumerID, _masterID, _askID, _bidID, _startTime),)
108-
}
109-
110-
function StoreA(
111-
uint _duration,
112-
uint _price,,
113-
uint _endTime,
114-
DealStatus _status,
115-
uint _blockedBalance,
116-
uint _totalPayout,
117-
uint _lastBillTS
118-
) interna; {
119-
deals[dealsAmount] = Deal(,DealParams(_duration, _price, _endTime, _status, _blockedBalance, _totalPayout, _lastBillTS));
120-
12197

122-
} */
12398

12499

125100

0 commit comments

Comments
 (0)