tx · 7hrJQCu1Bp9GL7BnofFjyGhxKwAN2nyYo5bs6J2Hb6kK

3MsiDDiKMkC62yDJeMdU4LgPFdqb5WvvBF9:  -0.01500000 Waves

2019.10.12 12:53 [716515] smart account 3MsiDDiKMkC62yDJeMdU4LgPFdqb5WvvBF9 > SELF 0.00000000 Waves

{ "type": 13, "id": "7hrJQCu1Bp9GL7BnofFjyGhxKwAN2nyYo5bs6J2Hb6kK", "fee": 1500000, "feeAssetId": null, "timestamp": 1570873999317, "version": 1, "sender": "3MsiDDiKMkC62yDJeMdU4LgPFdqb5WvvBF9", "senderPublicKey": "ByZgTAFRaFK8NtXbScgUwDbNSkYZnZ8ERnMD7fLpfGzY", "proofs": [ "5N4sSZ5m5X9Q5YJ2KRMWT1dxq6ym2pveP8XFaZQrpEeaMd18LdPCPnTtcV7fHq71Yff6Wxvb5adSs7Jo4GrUQZJA" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAlAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBs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 then if (if ((caller == auctionClient))
476476 then true
477477 else (caller == auctionFreelancer))
478- then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), 0), DataEntry(((auctionId + "_DisputeVote_") + toBase58String(ambassador1)), 0), DataEntry(((auctionId + "_DisputeVote_") + toBase58String(ambassador2)), 0), DataEntry(((auctionId + "_DisputeVote_") + toBase58String(ambassador3)), 0), DataEntry(((auctionId + "_DisputeVote_") + toBase58String(ambassador4)), 0), DataEntry(((auctionId + "_DisputeVote_") + toBase58String(ambassador5)), 0), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute + 1))])
478+ then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_Votes"), 0), DataEntry(((auctionId + "_Vote_") + toBase58String(ambassador1)), 0), DataEntry(((auctionId + "_Vote_") + toBase58String(ambassador2)), 0), DataEntry(((auctionId + "_Vote_") + toBase58String(ambassador3)), 0), DataEntry(((auctionId + "_Vote_") + toBase58String(ambassador4)), 0), DataEntry(((auctionId + "_Vote_") + toBase58String(ambassador5)), 0), DataEntry((toBase58String(auctionClient) + "_JobsInDispute"), (clientJobsInDispute + 1))])
479479 else throw("Only Client and Freelancer can open dispute")
480480 else throw("Incorrect auction state for dispute opening")
481481 }
565565 then (auctionPrice - commission)
566566 else (auctionPrice - (commission * 2))
567567 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
568- ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + newVoter), newVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute - 1)), DataEntry((toBase58String(auctionFreelancer) + "_PendingEarnings"), (freelancerPendingEarnings - auctionPrice))]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinner), paymentWithoutComm, auctionAssetId58)]))
568+ ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + newVoter), newVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((toBase58String(auctionClient) + "_JobsInDispute"), (clientJobsInDispute - 1)), DataEntry((toBase58String(auctionFreelancer) + "_PendingEarnings"), (freelancerPendingEarnings - auctionPrice))]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinner), paymentWithoutComm, auctionAssetId58)]))
569569 }
570570 else WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry(((auctionId + "_DiputeVote_") + newVoter), newVote)])
571571 else throw(("Incorrect state. Must be: " + stateDispute))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let day = 1440
55
66 let WAVES = unit
77
88 let wBTC = base58'8LQW8f7P5d5PZM7GtZEBgaqRPGSzS3DfPuiXrURJ4AJS'
99
1010 let wEUR = base58'Gtb1WRznfchDnTh37ezoDTJ4wcoKaRsKqKjJjy7nm2zU'
1111
1212 let wUSD = base58'Ft8X1v1LTa1ABafufpaCWyVj8KkaxUWE6xBhW6sNFJck'
1313
1414 let stateOpen = "Opened"
1515
1616 let stateSuggested = "Suggested"
1717
1818 let stateCancel = "Canceled"
1919
2020 let stateInProgress = "InProgress"
2121
2222 let stateWait4Confirm = "WaitForConfirmation"
2323
2424 let stateComplete = "Completed"
2525
2626 let stateDispute = "Dispute"
2727
2828 let stateDisputeResolved = "DisputeResolved"
2929
3030 let client = "CL"
3131
3232 let freelancer = "FL"
3333
3434 let ambassador1 = base58'FneCJqM5BP2eAuyteMiuEEHYALrE4axhEfcpHVGbdr5s'
3535
3636 let ambassador2 = base58'6QAMdssb1GJjpQVQQcnx8fKU8WhtcF9ZsQhifdThAEK8'
3737
3838 let ambassador3 = base58'2ituwW7DSRsLP3Vcbnpr98QUQMGFRWKmyYPFqsUKRDoP'
3939
4040 let ambassador4 = base58'ANsPQocEESyLb3yQqk2pwCdoK7PJQxLoZVpYvsm3SxUG'
4141
4242 let ambassador5 = base58'13VixwQin1MzZCyY69NSWMSBNEV27Rzc159o7uZXR9VS'
4343
4444 func AuctionIdDataKey (auctionId) = (auctionId + "_AuctionData")
4545
4646
4747 func getInt (key) = {
4848 let valueJobsOnGoing = getInteger(this, key)
4949 match valueJobsOnGoing {
5050 case a: Int =>
5151 a
5252 case _ =>
5353 0
5454 }
5555 }
5656
5757
5858 func AssetNameToBase58 (auctionAssetName) = if ((auctionAssetName == "WAVES"))
5959 then WAVES
6060 else if ((auctionAssetName == "BTC"))
6161 then wBTC
6262 else if ((auctionAssetName == "EUR"))
6363 then wEUR
6464 else if ((auctionAssetName == "USD"))
6565 then wUSD
6666 else throw("Incorrect Asset Id")
6767
6868
6969 func timeCheck (currentTime,startTime,expirationTime) = ((currentTime - startTime) > expirationTime)
7070
7171
7272 func bidAmountCheck (amount,auctionPrice) = if ((amount > auctionPrice))
7373 then throw("Bid amount must be lower or equal than auctionPrice")
7474 else amount
7575
7676
7777 func increaseFreezedBalance (pmtAssetName,auctionPrice) = {
7878 let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed"))
7979 let currentFreezedBalance = match keyFreezedFunds {
8080 case a: Int =>
8181 a
8282 case _ =>
8383 0
8484 }
8585 (currentFreezedBalance + auctionPrice)
8686 }
8787
8888
8989 func decreaseFreezedBalance (pmtAssetName,auctionPrice) = {
9090 let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed"))
9191 let currentFreezedBalance = match keyFreezedFunds {
9292 case a: Int =>
9393 a
9494 case _ =>
9595 0
9696 }
9797 let a = (currentFreezedBalance - auctionPrice)
9898 if ((a >= 0))
9999 then a
100100 else throw("Freezed amount couldn't be less than 0")
101101 }
102102
103103
104104 func freelancerIsRegistered (callerPub) = {
105105 let freelancerIsRegistered = getString(this, (callerPub + "_Freelancer"))
106106 match freelancerIsRegistered {
107107 case a: String =>
108108 callerPub
109109 case _ =>
110110 throw("Only registered users can make bets")
111111 }
112112 }
113113
114114
115115 func createAuctionPriceCheck (pmtAmount) = if ((pmtAmount > 0))
116116 then pmtAmount
117117 else throw("Amount must be higher then 0")
118118
119119
120120 func getAuctionState (auctionId) = {
121121 let valueState = getString(this, (auctionId + "_State"))
122122 match valueState {
123123 case a: String =>
124124 a
125125 case _ =>
126126 throw("Auction State was not found")
127127 }
128128 }
129129
130130
131131 func getAuctionClientPub (auctionId) = {
132132 let valueClient = getString(this, (auctionId + "_AuctionClient"))
133133 let clientPub = match valueClient {
134134 case a: String =>
135135 a
136136 case _ =>
137137 throw("Auction Client was not found")
138138 }
139139 fromBase58String(clientPub)
140140 }
141141
142142
143143 func getAuctionStartTime (auctionId) = {
144144 let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart"))
145145 match valueAuctionStart {
146146 case a: Int =>
147147 a
148148 case _ =>
149149 throw("Auction Start time was not found")
150150 }
151151 }
152152
153153
154154 func getAuctionDurationTime (auctionId) = {
155155 let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration"))
156156 match valueauctionDuration {
157157 case a: Int =>
158158 a
159159 case _ =>
160160 throw("Auction duration time was not found")
161161 }
162162 }
163163
164164
165165 func getAuctionJobPerformanceTime (auctionId) = {
166166 let valueBlocksForExecution = getInteger(this, (auctionId + "_JobPerformance"))
167167 match valueBlocksForExecution {
168168 case a: Int =>
169169 a
170170 case _ =>
171171 throw("Auction job performance time was not found")
172172 }
173173 }
174174
175175
176176 func getAuctionAssetName (auctionId) = {
177177 let valueAssetName = getString(this, (auctionId + "_AssetName"))
178178 match valueAssetName {
179179 case a: String =>
180180 a
181181 case _ =>
182182 throw("Auction asset name was not found")
183183 }
184184 }
185185
186186
187187 func getAuctionPrice (auctionId) = {
188188 let valuePrice = getInteger(this, (auctionId + "_Price"))
189189 match valuePrice {
190190 case a: Int =>
191191 a
192192 case _ =>
193193 throw("Auction price was not found")
194194 }
195195 }
196196
197197
198198 func getAuctionFreelancerPub (auctionId) = {
199199 let valueClient = getString(this, (auctionId + "_HiredFreelancer"))
200200 let a = match valueClient {
201201 case a: String =>
202202 a
203203 case _ =>
204204 throw("Auction Client was not found")
205205 }
206206 fromBase58String(a)
207207 }
208208
209209
210210 @Callable(i)
211211 func freelancerSignUp (info) = {
212212 let userPublicKey = toBase58String(i.callerPublicKey)
213213 let alreadyRegistered = getString(this, (userPublicKey + "_Freelancer"))
214214 if (isDefined(alreadyRegistered))
215215 then throw("User already registered")
216216 else WriteSet([DataEntry((userPublicKey + "_Freelancer"), info), DataEntry((userPublicKey + "_PendingEarnings"), 0), DataEntry((userPublicKey + "_PaidEarnings"), 0), DataEntry((userPublicKey + "_TotalEarnings"), 0), DataEntry((userPublicKey + "_JobsPending"), 0), DataEntry((userPublicKey + "_JobsCompleted"), 0), DataEntry((userPublicKey + "_JobsTotal"), 0)])
217217 }
218218
219219
220220
221221 @Callable(i)
222222 func clientSignUp (info) = {
223223 let userPublicKey = toBase58String(i.callerPublicKey)
224224 let alreadyRegistered = getString(this, (userPublicKey + "_Client"))
225225 if (isDefined(alreadyRegistered))
226226 then throw("User already registered")
227227 else WriteSet([DataEntry((userPublicKey + "_Client"), info), DataEntry((userPublicKey + "_JobsCreated"), 0), DataEntry((userPublicKey + "_JobsOnGoing"), 0), DataEntry((userPublicKey + "_JobInDispute"), 0)])
228228 }
229229
230230
231231
232232 @Callable(i)
233233 func createAuction (jobExecutionDays,auctionDurationDays,auctionInfo) = {
234234 let auctionId = toBase58String(i.transactionId)
235235 let auctionClient = toBase58String(i.callerPublicKey)
236236 let pmt = extract(i.payment)
237237 let pmtAmount = pmt.amount
238238 let auctionPrice = createAuctionPriceCheck(pmtAmount)
239239 let auctionStart = height
240240 let auctionDurationBlocks = (auctionDurationDays * day)
241241 let blocksForExecution = (jobExecutionDays * day)
242242 let pmtAssetName = if (!(isDefined(pmt.assetId)))
243243 then "WAVES"
244244 else if ((pmt.assetId == wBTC))
245245 then "BTC"
246246 else if ((pmt.assetId == wEUR))
247247 then "EUR"
248248 else if ((pmt.assetId == wUSD))
249249 then "USD"
250250 else throw("AssetId is incorrect")
251251 let jobsCreated = getInt((auctionClient + "_JobsCreated"))
252252 let newFreezedBalance = increaseFreezedBalance(pmtAssetName, auctionPrice)
253253 WriteSet([DataEntry((auctionId + "_State"), stateOpen), DataEntry((auctionId + "_Info"), auctionInfo), DataEntry((auctionId + "_AuctionClient"), auctionClient), DataEntry((auctionId + "_AuctionStart"), auctionStart), DataEntry((auctionId + "_AuctionDuration"), auctionDurationBlocks), DataEntry((auctionId + "_JobPerformance"), blocksForExecution), DataEntry((auctionId + "_AssetName"), pmtAssetName), DataEntry((auctionId + "_Price"), auctionPrice), DataEntry((pmtAssetName + "_Freezed"), newFreezedBalance), DataEntry((auctionClient + "_JobsCreated"), (jobsCreated + 1))])
254254 }
255255
256256
257257
258258 @Callable(i)
259259 func makeBid (auctionId,amount) = {
260260 let callerPub = toBase58String(i.callerPublicKey)
261261 let betTime = height
262262 let auctionState = getAuctionState(auctionId)
263263 let auctionClient = getAuctionClientPub(auctionId)
264264 let auctionStart = getAuctionStartTime(auctionId)
265265 let auctionDuration = getAuctionDurationTime(auctionId)
266266 let auctionBlocksForExecution = getAuctionJobPerformanceTime(auctionId)
267267 let auctionAssetName = getAuctionAssetName(auctionId)
268268 let auctionPrice = getAuctionPrice(auctionId)
269269 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
270270 let newFreelancer = freelancerIsRegistered(callerPub)
271271 let dAppCommission = ((auctionPrice * 3) / 100)
272272 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
273273 let bidAmount = bidAmountCheck(amount, auctionPrice)
274274 let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration)
275275 if (auctionTimeisOver)
276276 then if ((auctionState == stateOpen))
277277 then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (auctionPrice - dAppCommission), auctionAssetId58)]))
278278 else if ((auctionState == stateSuggested))
279279 then {
280280 let auctionLowestBidder = {
281281 let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
282282 match valueLowestBidder {
283283 case a: String =>
284284 a
285285 case _ =>
286286 throw("Auction lowest bidder was not found")
287287 }
288288 }
289289 let newAuctionPrice = {
290290 let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder))
291291 match valueNewAuctionPrice {
292292 case a: Int =>
293293 a
294294 case _ =>
295295 throw("Auction lowest bid was not found")
296296 }
297297 }
298298 let amountDifference = ((auctionPrice - newAuctionPrice) - dAppCommission)
299299 ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)]))
300300 }
301301 else throw("Incorrect auction state")
302302 else if ((auctionState == stateOpen))
303303 then WriteSet([DataEntry(((auctionId + "_Bid_") + newFreelancer), bidAmount), DataEntry((auctionId + "_State"), stateSuggested), DataEntry((auctionId + "_LowestBidderPub"), callerPub)])
304304 else if ((auctionState == stateSuggested))
305305 then {
306306 let currentLowestBidderPub = {
307307 let lowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
308308 match lowestBidder {
309309 case a: String =>
310310 a
311311 case _ =>
312312 throw("Auction lowest bidder was not found")
313313 }
314314 }
315315 let newLowestBidderPub = {
316316 let valueCurrentLowestBid = getInteger(this, ((auctionId + "_Bid_") + currentLowestBidderPub))
317317 let currentLowestBid = match valueCurrentLowestBid {
318318 case a: Int =>
319319 a
320320 case _ =>
321321 throw("Auction lowest bid was not found")
322322 }
323323 if ((currentLowestBid > bidAmount))
324324 then newFreelancer
325325 else currentLowestBidderPub
326326 }
327327 WriteSet([DataEntry((auctionId + "_LowestBidderPub"), newLowestBidderPub), DataEntry(((auctionId + "_Bid_") + newFreelancer), bidAmount)])
328328 }
329329 else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested))
330330 }
331331
332332
333333
334334 @Callable(i)
335335 func chooseFreelancer (auctionId,freelancerPub) = {
336336 let callerPub = extract(i.callerPublicKey)
337337 let betTime = height
338338 let auctionState = getAuctionState(auctionId)
339339 let auctionClient = getAuctionClientPub(auctionId)
340340 let auctionStart = getAuctionStartTime(auctionId)
341341 let auctionDuration = getAuctionDurationTime(auctionId)
342342 let auctionAssetName = getAuctionAssetName(auctionId)
343343 let auctionPrice = getAuctionPrice(auctionId)
344344 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
345345 let jobsOnGoing = getInt((toBase58String(auctionClient) + "_JobsOnGoing"))
346346 let freelancerPendingEarnings = getInt((freelancerPub + "_PendingEarnings"))
347347 let freelancerTotalEarnings = getInt((freelancerPub + "_TotalEarnings"))
348348 let freelancerBidAmount = {
349349 let keyFreelancerBid = ((auctionId + "_Bid_") + freelancerPub)
350350 let valueFreelacerBid = getInteger(this, keyFreelancerBid)
351351 match valueFreelacerBid {
352352 case a: Int =>
353353 a
354354 case _ =>
355355 throw("Freelancer's bet was not found")
356356 }
357357 }
358358 let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration)
359359 if ((callerPub == auctionClient))
360360 then if (auctionTimeisOver)
361361 then if ((auctionState == stateOpen))
362362 then {
363363 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
364364 let dAppCommission = ((auctionPrice * 3) / 100)
365365 ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (auctionPrice - dAppCommission), auctionAssetId58)]))
366366 }
367367 else if ((auctionState == stateSuggested))
368368 then {
369369 let auctionLowestBidder = {
370370 let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
371371 match valueLowestBidder {
372372 case a: String =>
373373 a
374374 case _ =>
375375 throw("Auction lowest bidder was not found")
376376 }
377377 }
378378 let newAuctionPrice = {
379379 let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder))
380380 match valueNewAuctionPrice {
381381 case a: Int =>
382382 a
383383 case _ =>
384384 throw("Auction lowest bid was not found")
385385 }
386386 }
387387 let amountDifference = (auctionPrice - newAuctionPrice)
388388 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, amountDifference)
389389 ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((toBase58String(auctionClient) + "_JobsOnGoing"), (jobsOnGoing + 1)), DataEntry((freelancerPub + "_PendingEarnings"), (freelancerPendingEarnings + newAuctionPrice)), DataEntry((freelancerPub + "_TotalEarnings"), (freelancerTotalEarnings + newAuctionPrice))]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)]))
390390 }
391391 else throw("Incorrect auction state")
392392 else {
393393 let setNewFreelancer = {
394394 let newFreelancer = getInteger(this, ((auctionId + "_Bid_") + freelancerPub))
395395 match newFreelancer {
396396 case a: Int =>
397397 freelancerPub
398398 case _ =>
399399 throw("Error: Incorrect freelancerPub")
400400 }
401401 }
402402 let newAuctionPrice = {
403403 let freelancerBid = getInteger(this, ((auctionId + "_Bid_") + freelancerPub))
404404 match freelancerBid {
405405 case a: Int =>
406406 a
407407 case _ =>
408408 throw("Auction lowest bidder was not found")
409409 }
410410 }
411411 let amountDifference = (auctionPrice - freelancerBidAmount)
412412 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, amountDifference)
413413 ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), setNewFreelancer), DataEntry((auctionId + "_Price"), newAuctionPrice), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((toBase58String(auctionClient) + "_JobsOnGoing"), (jobsOnGoing + 1)), DataEntry((freelancerPub + "_PendingEarnings"), (freelancerPendingEarnings + newAuctionPrice)), DataEntry((freelancerPub + "_TotalEarnings"), (freelancerTotalEarnings + newAuctionPrice))]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (amountDifference + 1), auctionAssetId58)]))
414414 }
415415 else throw("Only auction customer can choose a freelancer")
416416 }
417417
418418
419419
420420 @Callable(i)
421421 func increaseExecutionTime (auctionId,executionDays) = {
422422 let caller = extract(i.callerPublicKey)
423423 let auctionState = getAuctionState(auctionId)
424424 let auctionClient = getAuctionClientPub(auctionId)
425425 let auctionBlocksForExecution = getAuctionJobPerformanceTime(auctionId)
426426 let newAuctionExecutionTime = {
427427 let newAuctionBlocksForExecution = (executionDays * day)
428428 if ((newAuctionBlocksForExecution > auctionBlocksForExecution))
429429 then newAuctionBlocksForExecution
430430 else throw("New execution time must more than current execution time")
431431 }
432432 if ((caller == auctionClient))
433433 then if (if (if ((auctionState == stateOpen))
434434 then true
435435 else (auctionState == stateSuggested))
436436 then true
437437 else (auctionState == stateInProgress))
438438 then WriteSet([DataEntry((auctionId + "_JobPerformance"), newAuctionExecutionTime)])
439439 else throw("Incorrect state")
440440 else throw("Only Client can increase execution time")
441441 }
442442
443443
444444
445445 @Callable(i)
446446 func cancelAuction (auctionId) = {
447447 let callerPub = extract(i.callerPublicKey)
448448 let auctionState = getAuctionState(auctionId)
449449 let auctionClient = getAuctionClientPub(auctionId)
450450 let auctionAssetName = getAuctionAssetName(auctionId)
451451 let auctionPrice = getAuctionPrice(auctionId)
452452 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
453453 let dAppCommission = ((auctionPrice * 3) / 100)
454454 let amountWithoutComm = (auctionPrice - dAppCommission)
455455 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
456456 if ((callerPub == auctionClient))
457457 then if ((auctionState == stateOpen))
458458 then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountWithoutComm, auctionAssetId58)]))
459459 else throw("Auction can be canceled only by auction owner.")
460460 else throw("Only Client can cancel auction")
461461 }
462462
463463
464464
465465 @Callable(i)
466466 func openDispute (auctionId) = {
467467 let caller = extract(i.callerPublicKey)
468468 let auctionState = getAuctionState(auctionId)
469469 let auctionClient = getAuctionClientPub(auctionId)
470470 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
471471 let clientJobsInDispute = getInt((toBase58String(auctionClient) + "_JobsInDispute"))
472472 if (if ((auctionState == stateInProgress))
473473 then true
474474 else (auctionState == stateWait4Confirm))
475475 then if (if ((caller == auctionClient))
476476 then true
477477 else (caller == auctionFreelancer))
478- then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), 0), DataEntry(((auctionId + "_DisputeVote_") + toBase58String(ambassador1)), 0), DataEntry(((auctionId + "_DisputeVote_") + toBase58String(ambassador2)), 0), DataEntry(((auctionId + "_DisputeVote_") + toBase58String(ambassador3)), 0), DataEntry(((auctionId + "_DisputeVote_") + toBase58String(ambassador4)), 0), DataEntry(((auctionId + "_DisputeVote_") + toBase58String(ambassador5)), 0), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute + 1))])
478+ then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_Votes"), 0), DataEntry(((auctionId + "_Vote_") + toBase58String(ambassador1)), 0), DataEntry(((auctionId + "_Vote_") + toBase58String(ambassador2)), 0), DataEntry(((auctionId + "_Vote_") + toBase58String(ambassador3)), 0), DataEntry(((auctionId + "_Vote_") + toBase58String(ambassador4)), 0), DataEntry(((auctionId + "_Vote_") + toBase58String(ambassador5)), 0), DataEntry((toBase58String(auctionClient) + "_JobsInDispute"), (clientJobsInDispute + 1))])
479479 else throw("Only Client and Freelancer can open dispute")
480480 else throw("Incorrect auction state for dispute opening")
481481 }
482482
483483
484484
485485 @Callable(i)
486486 func voteDispute (auctionId,vote) = {
487487 let callerPub = extract(i.callerPublicKey)
488488 let auctionState = getAuctionState(auctionId)
489489 let auctionClient = getAuctionClientPub(auctionId)
490490 let auctionAssetName = getAuctionAssetName(auctionId)
491491 let auctionPrice = getAuctionPrice(auctionId)
492492 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
493493 let commission = ((auctionPrice * 3) / 100)
494494 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
495495 let clientJobsInDispute = getInt((toBase58String(auctionClient) + "_JobsInDispute"))
496496 let freelancerPendingEarnings = getInt((toBase58String(auctionFreelancer) + "_PendingEarnings"))
497497 let callerIsAmbassador = if (if (if (if (if ((callerPub == ambassador1))
498498 then true
499499 else (callerPub == ambassador2))
500500 then true
501501 else (callerPub == ambassador3))
502502 then true
503503 else (callerPub == ambassador4))
504504 then true
505505 else (callerPub == ambassador5))
506506 then toBase58String(callerPub)
507507 else throw("Only defined ambassadors can vote in disputes")
508508 let newVote = if (if ((vote == client))
509509 then true
510510 else (vote == freelancer))
511511 then vote
512512 else throw(((("Vote is incorrect. Must be: " + client) + " or ") + freelancer))
513513 let newVoter = {
514514 let keyVoter = ((auctionId + "_DiputeVote_") + callerIsAmbassador)
515515 let valueVoter = getString(this, keyVoter)
516516 match valueVoter {
517517 case a: String =>
518518 throw("User already voted")
519519 case _ =>
520520 callerIsAmbassador
521521 }
522522 }
523523 let votesNumber = {
524524 let valueVotesNumber = getInteger(this, (auctionId + "_DisputeVotes"))
525525 match valueVotesNumber {
526526 case a: Int =>
527527 a
528528 case _ =>
529529 throw("VotesNumber was not found")
530530 }
531531 }
532532 if ((auctionState == stateDispute))
533533 then if ((votesNumber == 4))
534534 then {
535535 let disputeWinner = {
536536 let ambassador1Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador1)))
537537 let ambassador2Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador2)))
538538 let ambassador3Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador3)))
539539 let ambassador4Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador4)))
540540 let ambassador5Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador5)))
541541 let v1 = if ((ambassador1Vote == client))
542542 then 1
543543 else 0
544544 let v2 = if ((ambassador2Vote == client))
545545 then 1
546546 else 0
547547 let v3 = if ((ambassador3Vote == client))
548548 then 1
549549 else 0
550550 let v4 = if ((ambassador4Vote == client))
551551 then 1
552552 else 0
553553 let v5 = if ((ambassador5Vote == client))
554554 then 1
555555 else 0
556556 let currentVote = if ((newVote == client))
557557 then 1
558558 else 0
559559 let votesForClient = (((((v1 + v2) + v3) + v4) + v5) + currentVote)
560560 if ((votesForClient > 2))
561561 then auctionClient
562562 else auctionFreelancer
563563 }
564564 let paymentWithoutComm = if ((disputeWinner == auctionClient))
565565 then (auctionPrice - commission)
566566 else (auctionPrice - (commission * 2))
567567 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
568- ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + newVoter), newVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute - 1)), DataEntry((toBase58String(auctionFreelancer) + "_PendingEarnings"), (freelancerPendingEarnings - auctionPrice))]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinner), paymentWithoutComm, auctionAssetId58)]))
568+ ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + newVoter), newVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((toBase58String(auctionClient) + "_JobsInDispute"), (clientJobsInDispute - 1)), DataEntry((toBase58String(auctionFreelancer) + "_PendingEarnings"), (freelancerPendingEarnings - auctionPrice))]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinner), paymentWithoutComm, auctionAssetId58)]))
569569 }
570570 else WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry(((auctionId + "_DiputeVote_") + newVoter), newVote)])
571571 else throw(("Incorrect state. Must be: " + stateDispute))
572572 }
573573
574574
575575
576576 @Callable(i)
577577 func workHandOver (auctionId) = {
578578 let callerPub = extract(i.callerPublicKey)
579579 let auctionState = getAuctionState(auctionId)
580580 let auctionClient = getAuctionClientPub(auctionId)
581581 let auctionStart = getAuctionStartTime(auctionId)
582582 let auctionDuration = getAuctionDurationTime(auctionId)
583583 let auctionBlocksForExecution = getAuctionJobPerformanceTime(auctionId)
584584 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
585585 let clientJobsInDispute = getInt((toBase58String(auctionClient) + "_JobsInDispute"))
586586 let currentTime = height
587587 let freelancerPubCheck = if ((callerPub == auctionFreelancer))
588588 then callerPub
589589 else throw("Only a freelancer can indicate that the work is done")
590590 let timeIsOver = ((currentTime - auctionStart) > auctionBlocksForExecution)
591591 if ((auctionState == stateInProgress))
592592 then if (timeIsOver)
593593 then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), "0"), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute + 1))])
594594 else WriteSet([DataEntry((auctionId + "_State"), stateWait4Confirm)])
595595 else throw("Auction state is incorrect")
596596 }
597597
598598
599599
600600 @Callable(i)
601601 func acceptWork (auctionId) = {
602602 let callerPub = extract(i.callerPublicKey)
603603 let auctionState = getAuctionState(auctionId)
604604 let auctionClient = getAuctionClientPub(auctionId)
605605 let auctionStart = getAuctionStartTime(auctionId)
606606 let auctionDuration = getAuctionDurationTime(auctionId)
607607 let auctionAssetName = getAuctionAssetName(auctionId)
608608 let auctionPrice = getAuctionPrice(auctionId)
609609 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
610610 let jobsOnGoing = getInt((toBase58String(auctionClient) + "_JobsOnGoing"))
611611 let freelancerPendingEarnings = getInt((toBase58String(auctionFreelancer) + "_PendingEarnings"))
612612 let freelancerPaidEarnings = getInt((toBase58String(auctionFreelancer) + "_PaidEarnings"))
613613 let dAppCommission = ((auctionPrice * 3) / 100)
614614 let amountWithoutComm = (auctionPrice - dAppCommission)
615615 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
616616 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
617617 let newRating = {
618618 let valueRating = getInteger(this, (toBase58String(auctionFreelancer) + "_Rating"))
619619 let currentRating = match valueRating {
620620 case a: Int =>
621621 a
622622 case _ =>
623623 0
624624 }
625625 (currentRating + 1)
626626 }
627627 if ((callerPub == auctionClient))
628628 then if ((auctionState == stateWait4Confirm))
629629 then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateComplete), DataEntry((toBase58String(auctionFreelancer) + "_Rating"), newRating), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((toBase58String(auctionClient) + "_JobsOnGoing"), (jobsOnGoing - 1)), DataEntry((toBase58String(auctionFreelancer) + "_PendingEarnings"), (freelancerPendingEarnings - auctionPrice)), DataEntry((toBase58String(auctionFreelancer) + "_PaidEarnings"), (freelancerPaidEarnings + auctionPrice))]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionFreelancer), amountWithoutComm, auctionAssetId58)]))
630630 else throw(("Incorrect state. Must be: " + stateWait4Confirm))
631631 else throw("Only auction customer can use this function")
632632 }
633633
634634
635635 @Verifier(tx)
636636 func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
637637 then match tx {
638638 case ttx: TransferTransaction =>
639639 true
640640 case stx: SetScriptTransaction =>
641641 true
642642 case _ =>
643643 false
644644 }
645645 else false
646646

github/deemru/w8io/026f985 
67.20 ms