tx · uHMRMMVqgLft9Gz3TPboWSv1VMCnscBqvkYah7j6Ywk 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2: -0.01500000 Waves 2019.09.24 10:17 [690124] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves
{ "type": 13, "id": "uHMRMMVqgLft9Gz3TPboWSv1VMCnscBqvkYah7j6Ywk", "fee": 1500000, "feeAssetId": null, "timestamp": 1569309394631, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "5KjHPNaUnQmxaej2P4zSnwAQBsduwaxSiEshvCm57587gAdQqrtXbruW5RfcvKVViBQAcJz5faRfraRDD2utevwf" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAdAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBsZXRlAgAAAAlDb21wbGV0ZW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wkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwBgcHgAhUwA==", "chainId": 84, "height": 690124, "spentComplexity": 0 } View: original | compacted Prev: 5qqdtqrjLea7TyQMdcRq9nLE7bfwN3JFxjcTpk9et5Ry Next: 4yp4WC4YAYtuhodUohRuPXSQxLbYwf29jCbfY2Wztf94 Diff:
Old | New | Differences | |
---|---|---|---|
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | - | func freelancerIsRegistered ( | |
119 | - | let freelancerIsRegistered = getString(this, ( | |
118 | + | func freelancerIsRegistered (callerPub) = { | |
119 | + | let freelancerIsRegistered = getString(this, (callerPub + "_Freelancer")) | |
120 | 120 | match freelancerIsRegistered { | |
121 | 121 | case a: String => | |
122 | - | | |
122 | + | callerPub | |
123 | 123 | case _ => | |
124 | 124 | throw("Only registered users can make bets") | |
125 | 125 | } | |
132 | 132 | let alreadyRegistered = getString(this, (userPublicKey + "_Freelancer")) | |
133 | 133 | if (isDefined(alreadyRegistered)) | |
134 | 134 | then throw("User already registered") | |
135 | - | else WriteSet([DataEntry((userPublicKey + "_ | |
135 | + | else WriteSet([DataEntry((userPublicKey + "_Freelancer"), info)]) | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
358 | 358 | func voteDispute (auctionId,vote) = { | |
359 | 359 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
360 | 360 | let auctionDataList = getDataList(AuctionIdKey) | |
361 | + | let auctionState = auctionDataList[0] | |
361 | 362 | let auctionInfo = auctionDataList[1] | |
362 | - | let auctionStateCheck = { | |
363 | - | let auctionState = auctionDataList[0] | |
364 | - | if ((auctionState == stateDispute)) | |
365 | - | then true | |
366 | - | else throw(("Incorrect state. Must be: " + stateDispute)) | |
367 | - | } | |
368 | - | let auctionAssetId = auctionDataList[4] | |
369 | - | let auctionPrice = parseIntValue(auctionDataList[5]) | |
363 | + | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
364 | + | let auctionStart = parseIntValue(auctionDataList[3]) | |
365 | + | let auctionDuration = parseIntValue(auctionDataList[4]) | |
366 | + | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
367 | + | let auctionAssetName = auctionDataList[6] | |
368 | + | let auctionPrice = parseIntValue(auctionDataList[7]) | |
369 | + | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
370 | + | let comission = ((auctionPrice * 3) / 100) | |
371 | + | let auctionStateCheck = if ((auctionState == stateDispute)) | |
372 | + | then true | |
373 | + | else throw(("Incorrect state. Must be: " + stateDispute)) | |
370 | 374 | let newVote = if (if ((vote == customer)) | |
371 | 375 | then true | |
372 | 376 | else (vote == freelancer)) | |
430 | 434 | then customer | |
431 | 435 | else freelancer | |
432 | 436 | } | |
433 | - | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
434 | - | let DisputeWinnerAddress = if ((disputeWinner == customer)) | |
435 | - | then auctionDataList[1] | |
436 | - | else auctionDataList[6] | |
437 | - | let amountWithoutComm = (auctionPrice - ((auctionPrice * 3) / 100)) | |
438 | - | ScriptResult(WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((((stateDisputeResolved + "_") + auctionInfo) + "_") + newDataString)), DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(DisputeWinnerAddress)), amountWithoutComm, fromBase58String(auctionAssetId))])) | |
437 | + | let newDataString = ((((((((((((((auctionInfo + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + toBase58String(auctionFreelancer)) | |
438 | + | let disputeWinnerPublic = if ((disputeWinner == customer)) | |
439 | + | then auctionCustomer | |
440 | + | else auctionFreelancer | |
441 | + | let amountWithoutComm = if ((disputeWinnerPublic == auctionCustomer)) | |
442 | + | then (auctionPrice - comission) | |
443 | + | else ((auctionPrice - comission) - comission) | |
444 | + | ScriptResult(WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((stateDisputeResolved + "_") + newDataString)), DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinnerPublic), amountWithoutComm, AssetNameToBase58(auctionAssetName))])) | |
439 | 445 | } | |
440 | 446 | } | |
441 | 447 | else { | |
507 | 513 | ||
508 | 514 | @Callable(i) | |
509 | 515 | func workHandOver (auctionId) = { | |
516 | + | let callerPub = extract(i.callerPublicKey) | |
510 | 517 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
511 | 518 | let auctionDataList = getDataList(AuctionIdKey) | |
512 | 519 | let auctionState = auctionDataList[0] | |
517 | 524 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
518 | 525 | let auctionAssetName = auctionDataList[6] | |
519 | 526 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
527 | + | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
520 | 528 | let currentTime = height | |
521 | - | let freelancerPubCheck = { | |
522 | - | let caller = toBase58String(i.callerPublicKey) | |
523 | - | let auctionFreelancer = auctionDataList[6] | |
524 | - | if ((caller == auctionFreelancer)) | |
525 | - | then caller | |
526 | - | else throw("Only a freelancer can indicate that the work is done") | |
527 | - | } | |
529 | + | let freelancerPubCheck = if ((callerPub == auctionFreelancer)) | |
530 | + | then callerPub | |
531 | + | else throw("Only a freelancer can indicate that the work is done") | |
528 | 532 | let timeIsOver = ((currentTime - auctionStart) > auctionBlocksForExecution) | |
529 | 533 | if ((auctionState == stateInProgress)) | |
530 | 534 | then if (timeIsOver) | |
557 | 561 | let caller = extract(i.callerPublicKey) | |
558 | 562 | let dAppCommission = ((auctionPrice * 3) / 100) | |
559 | 563 | let amountWithoutComm = (auctionPrice - dAppCommission) | |
560 | - | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
561 | 564 | let newRating = { | |
562 | 565 | let valueRating = getInteger(this, (auctionFreelancer + "_Rating")) | |
563 | 566 | let currentRating = match valueRating { | |
572 | 575 | then if ((auctionState == stateWait4Confirm)) | |
573 | 576 | then { | |
574 | 577 | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
575 | - | ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((stateComplete + "_") + auctionInfo) + "_") + newDataString)), DataEntry((auctionFreelancer + "_Rating"), newRating)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionFreelancer)), amountWithoutComm, | |
578 | + | ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((stateComplete + "_") + auctionInfo) + "_") + newDataString)), DataEntry((auctionFreelancer + "_Rating"), newRating)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionFreelancer)), amountWithoutComm, AssetNameToBase58(auctionAssetName))])) | |
576 | 579 | } | |
577 | 580 | else throw(("Incorrect state. Must be: " + stateWait4Confirm)) | |
578 | 581 | else throw("Only auction customer can use this function") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let day = 1440 | |
5 | 5 | ||
6 | 6 | let WAVES = unit | |
7 | 7 | ||
8 | 8 | let wBTC = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS' | |
9 | 9 | ||
10 | 10 | let wEUR = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU' | |
11 | 11 | ||
12 | 12 | let wUSD = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck' | |
13 | 13 | ||
14 | 14 | let stateOpen = "Opened" | |
15 | 15 | ||
16 | 16 | let stateSuggested = "Suggested" | |
17 | 17 | ||
18 | 18 | let stateCancel = "Canceled" | |
19 | 19 | ||
20 | 20 | let stateInProgress = "InProgress" | |
21 | 21 | ||
22 | 22 | let stateWait4Confirm = "WaitForConfirmation" | |
23 | 23 | ||
24 | 24 | let stateComplete = "Completed" | |
25 | 25 | ||
26 | 26 | let stateDispute = "Dispute" | |
27 | 27 | ||
28 | 28 | let stateDisputeResolved = "DisputeResolved" | |
29 | 29 | ||
30 | 30 | let customer = "CMR" | |
31 | 31 | ||
32 | 32 | let freelancer = "FL" | |
33 | 33 | ||
34 | 34 | let ambassador1 = base58'1' | |
35 | 35 | ||
36 | 36 | let ambassador2 = base58'1' | |
37 | 37 | ||
38 | 38 | let ambassador3 = base58'1' | |
39 | 39 | ||
40 | 40 | let ambassador4 = base58'1' | |
41 | 41 | ||
42 | 42 | let ambassador5 = base58'1' | |
43 | 43 | ||
44 | 44 | func AuctionIdDataKey (auctionId) = (auctionId + "_AuctionData") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func getDataList (auctionId) = { | |
48 | 48 | let getDataString = getString(this, auctionId) | |
49 | 49 | let a = match getDataString { | |
50 | 50 | case a: String => | |
51 | 51 | a | |
52 | 52 | case _ => | |
53 | 53 | throw("AuctionId was not found") | |
54 | 54 | } | |
55 | 55 | split(a, "_") | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getDisputeDataList (auctionId) = { | |
60 | 60 | let keyDisputeData = ((auctionId + "_") + stateDispute) | |
61 | 61 | let getDisputeDataString = getString(this, keyDisputeData) | |
62 | 62 | let a = match getDisputeDataString { | |
63 | 63 | case a: String => | |
64 | 64 | a | |
65 | 65 | case _ => | |
66 | 66 | throw("Dispute data was not found") | |
67 | 67 | } | |
68 | 68 | split(a, "/") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func AssetNameToBase58 (auctionAssetName) = if ((auctionAssetName == "WAVES")) | |
73 | 73 | then WAVES | |
74 | 74 | else if ((auctionAssetName == "BTC")) | |
75 | 75 | then wBTC | |
76 | 76 | else if ((auctionAssetName == "EUR")) | |
77 | 77 | then wEUR | |
78 | 78 | else if ((auctionAssetName == "USD")) | |
79 | 79 | then wUSD | |
80 | 80 | else throw("Incorrect Asset Id") | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func betPriceCheck (betPrice,auctionPrice) = if ((auctionPrice > betPrice)) | |
84 | 84 | then betPrice | |
85 | 85 | else throw(("Bet price must be lower than actual price. Actual price: " + toString(auctionPrice))) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func timeCheck (currentTime,startTime,expirationTime) = ((currentTime - startTime) > expirationTime) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func increaseFreezedBalance (pmtAssetName,auctionPrice) = { | |
92 | 92 | let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed")) | |
93 | 93 | let currentFreezedBalance = match keyFreezedFunds { | |
94 | 94 | case a: Int => | |
95 | 95 | a | |
96 | 96 | case _ => | |
97 | 97 | 0 | |
98 | 98 | } | |
99 | 99 | (currentFreezedBalance + auctionPrice) | |
100 | 100 | } | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func decreaseFreezedBalance (pmtAssetName,auctionPrice) = { | |
104 | 104 | let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed")) | |
105 | 105 | let currentFreezedBalance = match keyFreezedFunds { | |
106 | 106 | case a: Int => | |
107 | 107 | a | |
108 | 108 | case _ => | |
109 | 109 | 0 | |
110 | 110 | } | |
111 | 111 | let a = (currentFreezedBalance - auctionPrice) | |
112 | 112 | if ((a > 0)) | |
113 | 113 | then a | |
114 | 114 | else throw("Freezed amount couldn't be less than 0") | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | - | func freelancerIsRegistered ( | |
119 | - | let freelancerIsRegistered = getString(this, ( | |
118 | + | func freelancerIsRegistered (callerPub) = { | |
119 | + | let freelancerIsRegistered = getString(this, (callerPub + "_Freelancer")) | |
120 | 120 | match freelancerIsRegistered { | |
121 | 121 | case a: String => | |
122 | - | | |
122 | + | callerPub | |
123 | 123 | case _ => | |
124 | 124 | throw("Only registered users can make bets") | |
125 | 125 | } | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | @Callable(i) | |
130 | 130 | func freelancerSignUp (info) = { | |
131 | 131 | let userPublicKey = toBase58String(i.callerPublicKey) | |
132 | 132 | let alreadyRegistered = getString(this, (userPublicKey + "_Freelancer")) | |
133 | 133 | if (isDefined(alreadyRegistered)) | |
134 | 134 | then throw("User already registered") | |
135 | - | else WriteSet([DataEntry((userPublicKey + "_ | |
135 | + | else WriteSet([DataEntry((userPublicKey + "_Freelancer"), info)]) | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | ||
140 | 140 | @Callable(i) | |
141 | 141 | func clientSignUp (info) = { | |
142 | 142 | let userPublicKey = toBase58String(i.callerPublicKey) | |
143 | 143 | let alreadyRegistered = getString(this, (userPublicKey + "_Client")) | |
144 | 144 | if (isDefined(alreadyRegistered)) | |
145 | 145 | then throw("User already registered") | |
146 | 146 | else WriteSet([DataEntry((userPublicKey + "_Client"), info)]) | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | ||
151 | 151 | @Callable(i) | |
152 | 152 | func createAuction (jobExecutionDays,auctionDurationDays,auctionInfo) = { | |
153 | 153 | let auctionId = toBase58String(i.transactionId) | |
154 | 154 | let auctionCustomer = toBase58String(i.callerPublicKey) | |
155 | 155 | let pmt = extract(i.payment) | |
156 | 156 | let pmtAmount = pmt.amount | |
157 | 157 | let auctionPrice = if ((pmtAmount > 0)) | |
158 | 158 | then pmtAmount | |
159 | 159 | else throw("Amount must be higher then 0") | |
160 | 160 | let auctionStart = height | |
161 | 161 | let auctionDurationBlocks = (auctionDurationDays * day) | |
162 | 162 | let blocksForExecution = (jobExecutionDays * day) | |
163 | 163 | let pmtAssetName = if (!(isDefined(pmt.assetId))) | |
164 | 164 | then "WAVES" | |
165 | 165 | else if ((pmt.assetId == wBTC)) | |
166 | 166 | then "BTC" | |
167 | 167 | else if ((pmt.assetId == wEUR)) | |
168 | 168 | then "EUR" | |
169 | 169 | else if ((pmt.assetId == wUSD)) | |
170 | 170 | then "USD" | |
171 | 171 | else throw("AssetId is incorrect") | |
172 | 172 | let newFreezedBalance = increaseFreezedBalance(pmtAssetName, auctionPrice) | |
173 | 173 | WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((((((((((((((stateOpen + "_") + auctionInfo) + "_") + auctionCustomer) + "_") + toString(auctionStart)) + "_") + toString(auctionDurationBlocks)) + "_") + toString(blocksForExecution)) + "_") + pmtAssetName) + "_") + toString(auctionPrice))), DataEntry((auctionId + "_AuctionInfo"), auctionInfo), DataEntry((pmtAssetName + "_Freezed"), newFreezedBalance)]) | |
174 | 174 | } | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | ||
178 | 178 | @Callable(i) | |
179 | 179 | func makeBid (auctionId,betPrice) = { | |
180 | 180 | let callerPub = toBase58String(i.callerPublicKey) | |
181 | 181 | let betTime = height | |
182 | 182 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
183 | 183 | let auctionDataList = getDataList(AuctionIdKey) | |
184 | 184 | let auctionState = auctionDataList[0] | |
185 | 185 | let auctionInfo = auctionDataList[1] | |
186 | 186 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
187 | 187 | let auctionStart = parseIntValue(auctionDataList[3]) | |
188 | 188 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
189 | 189 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
190 | 190 | let auctionAssetName = auctionDataList[6] | |
191 | 191 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
192 | 192 | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
193 | 193 | let newBid = betPriceCheck(betPrice, auctionPrice) | |
194 | 194 | let newFreelancer = freelancerIsRegistered(callerPub) | |
195 | 195 | let dAppCommission = ((auctionPrice * 3) / 100) | |
196 | 196 | let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice) | |
197 | 197 | let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration) | |
198 | 198 | if (auctionTimeisOver) | |
199 | 199 | then if ((auctionState == stateOpen)) | |
200 | 200 | then ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + "NoFreelancer") + "_") + "NoBid")), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionCustomer), (auctionPrice - dAppCommission), auctionAssetId58)])) | |
201 | 201 | else if ((auctionState == stateSuggested)) | |
202 | 202 | then { | |
203 | 203 | let auctionFreelancer = auctionDataList[7] | |
204 | 204 | let auctionJobCost = auctionDataList[8] | |
205 | 205 | WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + auctionFreelancer) + "_") + auctionJobCost))]) | |
206 | 206 | } | |
207 | 207 | else throw("Incorrect auction state") | |
208 | 208 | else if ((auctionState == stateOpen)) | |
209 | 209 | then WriteSet([DataEntry(((auctionId + "_") + newFreelancer), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newFreelancer))]) | |
210 | 210 | else if ((auctionState == stateSuggested)) | |
211 | 211 | then { | |
212 | 212 | let auctionLowestBidder = auctionDataList[7] | |
213 | 213 | let newAuctionLowestBidder = { | |
214 | 214 | let keyCurrentLowestBid = ((auctionId + "_") + auctionLowestBidder) | |
215 | 215 | let valueCurrentLowestBid = getInteger(this, keyCurrentLowestBid) | |
216 | 216 | let currentLowestBid = match valueCurrentLowestBid { | |
217 | 217 | case a: Int => | |
218 | 218 | a | |
219 | 219 | case _ => | |
220 | 220 | throw("Can't find lowest bid by public key") | |
221 | 221 | } | |
222 | 222 | if ((currentLowestBid > newBid)) | |
223 | 223 | then newFreelancer | |
224 | 224 | else auctionLowestBidder | |
225 | 225 | } | |
226 | 226 | WriteSet([DataEntry(((auctionId + "_") + callerPub), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newAuctionLowestBidder))]) | |
227 | 227 | } | |
228 | 228 | else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested)) | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | ||
232 | 232 | ||
233 | 233 | @Callable(i) | |
234 | 234 | func chooseFreelancer (auctionId,freelancerPub) = { | |
235 | 235 | let callerPub = extract(i.callerPublicKey) | |
236 | 236 | let betTime = height | |
237 | 237 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
238 | 238 | let auctionDataList = getDataList(AuctionIdKey) | |
239 | 239 | let auctionState = auctionDataList[0] | |
240 | 240 | let auctionInfo = auctionDataList[1] | |
241 | 241 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
242 | 242 | let auctionStart = parseIntValue(auctionDataList[3]) | |
243 | 243 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
244 | 244 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
245 | 245 | let auctionAssetName = auctionDataList[6] | |
246 | 246 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
247 | 247 | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
248 | 248 | let FreelancerBidAmount = { | |
249 | 249 | let keyFreelancerBid = ((auctionId + "_") + freelancerPub) | |
250 | 250 | let valueFreelacerBid = getInteger(this, keyFreelancerBid) | |
251 | 251 | match valueFreelacerBid { | |
252 | 252 | case a: Int => | |
253 | 253 | a | |
254 | 254 | case _ => | |
255 | 255 | throw("Freelancer's bet was not found") | |
256 | 256 | } | |
257 | 257 | } | |
258 | 258 | let dAppCommission = ((auctionPrice * 3) / 100) | |
259 | 259 | let amountDifference = ((auctionPrice - FreelancerBidAmount) - dAppCommission) | |
260 | 260 | let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration) | |
261 | 261 | if ((callerPub == auctionCustomer)) | |
262 | 262 | then if (auctionTimeisOver) | |
263 | 263 | then if ((auctionState == stateOpen)) | |
264 | 264 | then ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + "NoFreelancer") + "_") + "NoBid"))]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionCustomer), (auctionPrice - dAppCommission), auctionAssetId58)])) | |
265 | 265 | else if ((auctionState == stateSuggested)) | |
266 | 266 | then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))]) | |
267 | 267 | else throw("Incorrect auction state") | |
268 | 268 | else ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(FreelancerBidAmount)) + "_") + freelancerPub))]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionCustomer), amountDifference, auctionAssetId58)])) | |
269 | 269 | else throw("Only auction customer can choose a freelancer") | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | 274 | @Callable(i) | |
275 | 275 | func increaseExecutionTime (auctionId,executionDays) = { | |
276 | 276 | let caller = extract(i.callerPublicKey) | |
277 | 277 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
278 | 278 | let auctionDataList = getDataList(AuctionIdKey) | |
279 | 279 | let auctionState = auctionDataList[0] | |
280 | 280 | let auctionInfo = auctionDataList[1] | |
281 | 281 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
282 | 282 | let auctionStart = parseIntValue(auctionDataList[3]) | |
283 | 283 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
284 | 284 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
285 | 285 | let auctionAssetName = auctionDataList[6] | |
286 | 286 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
287 | 287 | let newAuctionExecutionTime = { | |
288 | 288 | let newAuctionBlocksForExecution = (executionDays * day) | |
289 | 289 | if ((newAuctionBlocksForExecution > auctionBlocksForExecution)) | |
290 | 290 | then newAuctionBlocksForExecution | |
291 | 291 | else throw("New execution time must more than current execution time") | |
292 | 292 | } | |
293 | 293 | if ((caller == auctionCustomer)) | |
294 | 294 | then if ((auctionState == stateOpen)) | |
295 | 295 | then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))]) | |
296 | 296 | else if (if ((auctionState == stateSuggested)) | |
297 | 297 | then true | |
298 | 298 | else (auctionState == stateInProgress)) | |
299 | 299 | then { | |
300 | 300 | let freelancerPub = auctionDataList[7] | |
301 | 301 | WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + freelancerPub))]) | |
302 | 302 | } | |
303 | 303 | else throw("Incorrect state") | |
304 | 304 | else throw("Only customer can increase execution time") | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Callable(i) | |
310 | 310 | func cancelAuction (auctionId) = { | |
311 | 311 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
312 | 312 | let auctionDataList = getDataList(AuctionIdKey) | |
313 | 313 | let auctionState = auctionDataList[0] | |
314 | 314 | let auctionInfo = auctionDataList[1] | |
315 | 315 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
316 | 316 | let auctionStart = parseIntValue(auctionDataList[3]) | |
317 | 317 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
318 | 318 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
319 | 319 | let auctionAssetName = auctionDataList[6] | |
320 | 320 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
321 | 321 | let auctionIdOwnerCheck = if ((i.callerPublicKey == auctionCustomer)) | |
322 | 322 | then true | |
323 | 323 | else throw("Auction can be canceled only by owner.") | |
324 | 324 | if ((auctionState == stateOpen)) | |
325 | 325 | then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))]) | |
326 | 326 | else throw("Incorrect auction state.") | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | ||
331 | 331 | @Callable(i) | |
332 | 332 | func openDispute (auctionId) = { | |
333 | 333 | let caller = extract(i.callerPublicKey) | |
334 | 334 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
335 | 335 | let auctionDataList = getDataList(AuctionIdKey) | |
336 | 336 | let auctionState = auctionDataList[0] | |
337 | 337 | let auctionInfo = auctionDataList[1] | |
338 | 338 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
339 | 339 | let auctionStart = parseIntValue(auctionDataList[3]) | |
340 | 340 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
341 | 341 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
342 | 342 | let auctionAssetName = auctionDataList[6] | |
343 | 343 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
344 | 344 | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
345 | 345 | if (if ((caller == auctionCustomer)) | |
346 | 346 | then true | |
347 | 347 | else (caller == auctionFreelancer)) | |
348 | 348 | then { | |
349 | 349 | let dataString = "1" | |
350 | 350 | WriteSet([DataEntry(AuctionIdKey, ((((stateDispute + "_") + auctionInfo) + "_") + dataString)), DataEntry((auctionId + "_Dispute"), "0")]) | |
351 | 351 | } | |
352 | 352 | else throw("Only customer and freelancer can open dispute") | |
353 | 353 | } | |
354 | 354 | ||
355 | 355 | ||
356 | 356 | ||
357 | 357 | @Callable(i) | |
358 | 358 | func voteDispute (auctionId,vote) = { | |
359 | 359 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
360 | 360 | let auctionDataList = getDataList(AuctionIdKey) | |
361 | + | let auctionState = auctionDataList[0] | |
361 | 362 | let auctionInfo = auctionDataList[1] | |
362 | - | let auctionStateCheck = { | |
363 | - | let auctionState = auctionDataList[0] | |
364 | - | if ((auctionState == stateDispute)) | |
365 | - | then true | |
366 | - | else throw(("Incorrect state. Must be: " + stateDispute)) | |
367 | - | } | |
368 | - | let auctionAssetId = auctionDataList[4] | |
369 | - | let auctionPrice = parseIntValue(auctionDataList[5]) | |
363 | + | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
364 | + | let auctionStart = parseIntValue(auctionDataList[3]) | |
365 | + | let auctionDuration = parseIntValue(auctionDataList[4]) | |
366 | + | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
367 | + | let auctionAssetName = auctionDataList[6] | |
368 | + | let auctionPrice = parseIntValue(auctionDataList[7]) | |
369 | + | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
370 | + | let comission = ((auctionPrice * 3) / 100) | |
371 | + | let auctionStateCheck = if ((auctionState == stateDispute)) | |
372 | + | then true | |
373 | + | else throw(("Incorrect state. Must be: " + stateDispute)) | |
370 | 374 | let newVote = if (if ((vote == customer)) | |
371 | 375 | then true | |
372 | 376 | else (vote == freelancer)) | |
373 | 377 | then vote | |
374 | 378 | else throw(((("Vote is incorrect. Must be: " + customer) + " or ") + freelancer)) | |
375 | 379 | let newVoter = if (if (if (if (if ((i.callerPublicKey == ambassador1)) | |
376 | 380 | then true | |
377 | 381 | else (i.callerPublicKey == ambassador2)) | |
378 | 382 | then true | |
379 | 383 | else (i.callerPublicKey == ambassador3)) | |
380 | 384 | then true | |
381 | 385 | else (i.callerPublicKey == ambassador4)) | |
382 | 386 | then true | |
383 | 387 | else (i.callerPublicKey == ambassador5)) | |
384 | 388 | then toBase58String(i.callerPublicKey) | |
385 | 389 | else throw("You have no rights for disputes resolving") | |
386 | 390 | let disputeData = { | |
387 | 391 | let keyDispute = ((auctionId + "_") + stateDispute) | |
388 | 392 | let valueDispute = getString(this, keyDispute) | |
389 | 393 | match valueDispute { | |
390 | 394 | case a: String => | |
391 | 395 | a | |
392 | 396 | case _ => | |
393 | 397 | throw("Cannot find data of dispute in storage") | |
394 | 398 | } | |
395 | 399 | } | |
396 | 400 | let disputeDataList = split(disputeData, "/") | |
397 | 401 | let votesCounter = disputeDataList[0] | |
398 | 402 | if ((votesCounter == "4")) | |
399 | 403 | then { | |
400 | 404 | let votersList = split(disputeDataList[1], "_") | |
401 | 405 | let votesList = split(disputeDataList[2], "_") | |
402 | 406 | let alreadyVoted = if ((newVoter == votersList[0])) | |
403 | 407 | then true | |
404 | 408 | else (newVoter == votersList[1]) | |
405 | 409 | if (alreadyVoted) | |
406 | 410 | then throw("You already voted") | |
407 | 411 | else { | |
408 | 412 | let newVotesCounter = "5" | |
409 | 413 | let newVoters = ((disputeDataList[1] + "_") + newVoter) | |
410 | 414 | let newVotes = ((disputeDataList[2] + "_") + newVote) | |
411 | 415 | let newDisputeDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
412 | 416 | let disputeWinner = { | |
413 | 417 | let vote1 = if ((votesList[0] == customer)) | |
414 | 418 | then 1 | |
415 | 419 | else 0 | |
416 | 420 | let vote2 = if ((votesList[1] == customer)) | |
417 | 421 | then 1 | |
418 | 422 | else 0 | |
419 | 423 | let vote3 = if ((votesList[2] == customer)) | |
420 | 424 | then 1 | |
421 | 425 | else 0 | |
422 | 426 | let vote4 = if ((votesList[3] == customer)) | |
423 | 427 | then 1 | |
424 | 428 | else 0 | |
425 | 429 | let vote5 = if ((newVote == customer)) | |
426 | 430 | then 1 | |
427 | 431 | else 0 | |
428 | 432 | let customerVotes = ((((vote1 + vote2) + vote3) + vote4) + vote5) | |
429 | 433 | if ((customerVotes > 2)) | |
430 | 434 | then customer | |
431 | 435 | else freelancer | |
432 | 436 | } | |
433 | - | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
434 | - | let DisputeWinnerAddress = if ((disputeWinner == customer)) | |
435 | - | then auctionDataList[1] | |
436 | - | else auctionDataList[6] | |
437 | - | let amountWithoutComm = (auctionPrice - ((auctionPrice * 3) / 100)) | |
438 | - | ScriptResult(WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((((stateDisputeResolved + "_") + auctionInfo) + "_") + newDataString)), DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(DisputeWinnerAddress)), amountWithoutComm, fromBase58String(auctionAssetId))])) | |
437 | + | let newDataString = ((((((((((((((auctionInfo + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + toBase58String(auctionFreelancer)) | |
438 | + | let disputeWinnerPublic = if ((disputeWinner == customer)) | |
439 | + | then auctionCustomer | |
440 | + | else auctionFreelancer | |
441 | + | let amountWithoutComm = if ((disputeWinnerPublic == auctionCustomer)) | |
442 | + | then (auctionPrice - comission) | |
443 | + | else ((auctionPrice - comission) - comission) | |
444 | + | ScriptResult(WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((stateDisputeResolved + "_") + newDataString)), DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinnerPublic), amountWithoutComm, AssetNameToBase58(auctionAssetName))])) | |
439 | 445 | } | |
440 | 446 | } | |
441 | 447 | else { | |
442 | 448 | let newDisputeDataString = if ((votesCounter == "0")) | |
443 | 449 | then { | |
444 | 450 | let newVotesCounter = "1" | |
445 | 451 | let newVoters = newVoter | |
446 | 452 | let newVotes = newVote | |
447 | 453 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
448 | 454 | newDataString | |
449 | 455 | } | |
450 | 456 | else if ((votesCounter == "1")) | |
451 | 457 | then { | |
452 | 458 | let voter1 = disputeDataList[1] | |
453 | 459 | let vote1 = disputeDataList[2] | |
454 | 460 | let alreadyVoted = (newVoter == voter1) | |
455 | 461 | if (alreadyVoted) | |
456 | 462 | then throw("You already voted") | |
457 | 463 | else { | |
458 | 464 | let newVotesCounter = "1" | |
459 | 465 | let newVoters = (voter1 + newVoter) | |
460 | 466 | let newVotes = (vote1 + newVote) | |
461 | 467 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
462 | 468 | newDataString | |
463 | 469 | } | |
464 | 470 | } | |
465 | 471 | else if ((votesCounter == "2")) | |
466 | 472 | then { | |
467 | 473 | let votersList = split(disputeDataList[1], "_") | |
468 | 474 | let votesList = split(disputeDataList[2], "_") | |
469 | 475 | let alreadyVoted = if ((newVoter == votersList[0])) | |
470 | 476 | then true | |
471 | 477 | else (newVoter == votersList[1]) | |
472 | 478 | if (alreadyVoted) | |
473 | 479 | then throw("You already voted") | |
474 | 480 | else { | |
475 | 481 | let newVotesCounter = "3" | |
476 | 482 | let newVoters = ((disputeDataList[1] + "_") + newVoter) | |
477 | 483 | let newVotes = ((disputeDataList[2] + "_") + newVote) | |
478 | 484 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
479 | 485 | newDataString | |
480 | 486 | } | |
481 | 487 | } | |
482 | 488 | else if ((votesCounter == "3")) | |
483 | 489 | then { | |
484 | 490 | let votersList = split(disputeDataList[1], "_") | |
485 | 491 | let votesList = split(disputeDataList[2], "_") | |
486 | 492 | let alreadyVoted = if (if ((newVoter == votersList[0])) | |
487 | 493 | then true | |
488 | 494 | else (newVoter == votersList[1])) | |
489 | 495 | then true | |
490 | 496 | else (newVoter == votersList[2]) | |
491 | 497 | if (alreadyVoted) | |
492 | 498 | then throw("You already voted") | |
493 | 499 | else { | |
494 | 500 | let newVotesCounter = "4" | |
495 | 501 | let newVoters = ((disputeDataList[1] + "_") + newVoter) | |
496 | 502 | let newVotes = ((disputeDataList[2] + "_") + newVote) | |
497 | 503 | let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes) | |
498 | 504 | newDataString | |
499 | 505 | } | |
500 | 506 | } | |
501 | 507 | else throw("Dispute has been already resolved") | |
502 | 508 | WriteSet([DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)]) | |
503 | 509 | } | |
504 | 510 | } | |
505 | 511 | ||
506 | 512 | ||
507 | 513 | ||
508 | 514 | @Callable(i) | |
509 | 515 | func workHandOver (auctionId) = { | |
516 | + | let callerPub = extract(i.callerPublicKey) | |
510 | 517 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
511 | 518 | let auctionDataList = getDataList(AuctionIdKey) | |
512 | 519 | let auctionState = auctionDataList[0] | |
513 | 520 | let auctionInfo = auctionDataList[1] | |
514 | 521 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
515 | 522 | let auctionStart = parseIntValue(auctionDataList[3]) | |
516 | 523 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
517 | 524 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
518 | 525 | let auctionAssetName = auctionDataList[6] | |
519 | 526 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
527 | + | let auctionFreelancer = fromBase58String(auctionDataList[8]) | |
520 | 528 | let currentTime = height | |
521 | - | let freelancerPubCheck = { | |
522 | - | let caller = toBase58String(i.callerPublicKey) | |
523 | - | let auctionFreelancer = auctionDataList[6] | |
524 | - | if ((caller == auctionFreelancer)) | |
525 | - | then caller | |
526 | - | else throw("Only a freelancer can indicate that the work is done") | |
527 | - | } | |
529 | + | let freelancerPubCheck = if ((callerPub == auctionFreelancer)) | |
530 | + | then callerPub | |
531 | + | else throw("Only a freelancer can indicate that the work is done") | |
528 | 532 | let timeIsOver = ((currentTime - auctionStart) > auctionBlocksForExecution) | |
529 | 533 | if ((auctionState == stateInProgress)) | |
530 | 534 | then if (timeIsOver) | |
531 | 535 | then { | |
532 | 536 | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
533 | 537 | WriteSet([DataEntry(AuctionIdKey, ((((stateDispute + "_") + auctionInfo) + "_") + newDataString))]) | |
534 | 538 | } | |
535 | 539 | else { | |
536 | 540 | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
537 | 541 | WriteSet([DataEntry(AuctionIdKey, ((((stateWait4Confirm + "_") + auctionInfo) + "_") + newDataString))]) | |
538 | 542 | } | |
539 | 543 | else throw("Auction state is incorrect") | |
540 | 544 | } | |
541 | 545 | ||
542 | 546 | ||
543 | 547 | ||
544 | 548 | @Callable(i) | |
545 | 549 | func acceptWork (auctionId) = { | |
546 | 550 | let AuctionIdKey = AuctionIdDataKey(auctionId) | |
547 | 551 | let auctionDataList = getDataList(AuctionIdKey) | |
548 | 552 | let auctionState = auctionDataList[0] | |
549 | 553 | let auctionInfo = auctionDataList[1] | |
550 | 554 | let auctionCustomer = fromBase58String(auctionDataList[2]) | |
551 | 555 | let auctionStart = parseIntValue(auctionDataList[3]) | |
552 | 556 | let auctionDuration = parseIntValue(auctionDataList[4]) | |
553 | 557 | let auctionBlocksForExecution = parseIntValue(auctionDataList[5]) | |
554 | 558 | let auctionAssetName = auctionDataList[6] | |
555 | 559 | let auctionPrice = parseIntValue(auctionDataList[7]) | |
556 | 560 | let auctionFreelancer = auctionDataList[2] | |
557 | 561 | let caller = extract(i.callerPublicKey) | |
558 | 562 | let dAppCommission = ((auctionPrice * 3) / 100) | |
559 | 563 | let amountWithoutComm = (auctionPrice - dAppCommission) | |
560 | - | let auctionAssetId58 = AssetNameToBase58(auctionAssetName) | |
561 | 564 | let newRating = { | |
562 | 565 | let valueRating = getInteger(this, (auctionFreelancer + "_Rating")) | |
563 | 566 | let currentRating = match valueRating { | |
564 | 567 | case a: Int => | |
565 | 568 | a | |
566 | 569 | case _ => | |
567 | 570 | 0 | |
568 | 571 | } | |
569 | 572 | (currentRating + 1) | |
570 | 573 | } | |
571 | 574 | if ((caller == auctionCustomer)) | |
572 | 575 | then if ((auctionState == stateWait4Confirm)) | |
573 | 576 | then { | |
574 | 577 | let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6]) | |
575 | - | ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((stateComplete + "_") + auctionInfo) + "_") + newDataString)), DataEntry((auctionFreelancer + "_Rating"), newRating)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionFreelancer)), amountWithoutComm, | |
578 | + | ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((stateComplete + "_") + auctionInfo) + "_") + newDataString)), DataEntry((auctionFreelancer + "_Rating"), newRating)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionFreelancer)), amountWithoutComm, AssetNameToBase58(auctionAssetName))])) | |
576 | 579 | } | |
577 | 580 | else throw(("Incorrect state. Must be: " + stateWait4Confirm)) | |
578 | 581 | else throw("Only auction customer can use this function") | |
579 | 582 | } | |
580 | 583 | ||
581 | 584 | ||
582 | 585 | @Verifier(tx) | |
583 | 586 | func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)) | |
584 | 587 | then match tx { | |
585 | 588 | case ttx: TransferTransaction => | |
586 | 589 | true | |
587 | 590 | case stx: SetScriptTransaction => | |
588 | 591 | true | |
589 | 592 | case _ => | |
590 | 593 | false | |
591 | 594 | } | |
592 | 595 | else false | |
593 | 596 |
github/deemru/w8io/026f985 67.96 ms ◑