tx · DQF1ckC5oYxqfejNucHLwk5vZAuAbVyYaf6zeFwWZo8o

3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2:  -0.01500000 Waves

2019.10.11 19:46 [715473] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves

{ "type": 13, "id": "DQF1ckC5oYxqfejNucHLwk5vZAuAbVyYaf6zeFwWZo8o", "fee": 1500000, "feeAssetId": null, "timestamp": 1570812346159, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "4i4ZuXT7xQLE6yynMmCTf5mgBFDkKPUiJyTqFf7seT47miCo6dq99dgrSH82eV3rSj9H7AheCcNRBA4PUXojjWRR" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAlAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBsZXRlAgAAAAlDb21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jZXICAAAADV9QYWlkRWFybmluZ3MJAABkAAAAAgUAAAAWZnJlZWxhbmNlclBhaWRFYXJuaW5ncwUAAAAMYXVjdGlvblByaWNlBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAARYXVjdGlvbkZyZWVsYW5jZXIFAAAAEWFtb3VudFdpdGhvdXRDb21tBQAAABBhdWN0aW9uQXNzZXRJZDU4BQAAAANuaWwJAAACAAAAAQkAASwAAAACAgAAABpJbmNvcnJlY3Qgc3RhdGUuIE11c3QgYmU6IAUAAAARc3RhdGVXYWl0NENvbmZpcm0JAAACAAAAAQIAAAArT25seSBhdWN0aW9uIGN1c3RvbWVyIGNhbiB1c2UgdGhpcyBmdW5jdGlvbgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAA3R0eAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFFNldFNjcmlwdFRyYW5zYWN0aW9uBAAAAANzdHgFAAAAByRtYXRjaDAGBwc2d5uX", "chainId": 84, "height": 715473, "spentComplexity": 0 } View: original | compacted Prev: FDcMfpAQ1jF39uAp6MM51KpjUaxrdWKAcp37KEz2XRqg Next: 6sDjuS2KxGc5vN1a1cLRP33wMk7stgq3sAvBtgTT2kef Diff:
OldNewDifferences
2727
2828 let stateDisputeResolved = "DisputeResolved"
2929
30-let client = "CL"
30+let client = "CMR"
3131
3232 let freelancer = "FL"
3333
4242 let ambassador5 = base58'1'
4343
4444 func AuctionIdDataKey (auctionId) = (auctionId + "_AuctionData")
45+
46+
47+func getInt (key) = {
48+ let valueJobsOnGoing = getInteger(this, key)
49+ match valueJobsOnGoing {
50+ case a: Int =>
51+ a
52+ case _ =>
53+ 0
54+ }
55+ }
4556
4657
4758 func AssetNameToBase58 (auctionAssetName) = if ((auctionAssetName == "WAVES"))
119130
120131 func getAuctionClientPub (auctionId) = {
121132 let valueClient = getString(this, (auctionId + "_AuctionClient"))
122- let a = match valueClient {
133+ let clientPub = match valueClient {
123134 case a: String =>
124135 a
125136 case _ =>
126137 throw("Auction Client was not found")
127138 }
128- fromBase58String(a)
139+ fromBase58String(clientPub)
129140 }
130141
131142
202213 let alreadyRegistered = getString(this, (userPublicKey + "_Freelancer"))
203214 if (isDefined(alreadyRegistered))
204215 then throw("User already registered")
205- else WriteSet([DataEntry((userPublicKey + "_Freelancer"), info)])
216+ 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)])
206217 }
207218
208219
213224 let alreadyRegistered = getString(this, (userPublicKey + "_Client"))
214225 if (isDefined(alreadyRegistered))
215226 then throw("User already registered")
216- else WriteSet([DataEntry((userPublicKey + "_Client"), info)])
227+ else WriteSet([DataEntry((userPublicKey + "_Client"), info), DataEntry((userPublicKey + "_JobsCreated"), 0), DataEntry((userPublicKey + "_JobsOnGoing"), 0), DataEntry((userPublicKey + "_JobInDispute"), 0)])
217228 }
218229
219230
237248 else if ((pmt.assetId == wUSD))
238249 then "USD"
239250 else throw("AssetId is incorrect")
251+ let jobsCreated = getInt((auctionClient + "_JobsCreated"))
240252 let newFreezedBalance = increaseFreezedBalance(pmtAssetName, auctionPrice)
241- 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)])
253+ 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))])
242254 }
243255
244256
330342 let auctionAssetName = getAuctionAssetName(auctionId)
331343 let auctionPrice = getAuctionPrice(auctionId)
332344 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
345+ let jobsOnGoing = getInt((toBase58String(auctionClient) + "_JobsOnGoing"))
346+ let freelancerPendingEarnings = getInt((freelancerPub + "_PendingEarnings"))
347+ let freelancerTotalEarnings = getInt((freelancerPub + "_TotalEarnings"))
333348 let freelancerBidAmount = {
334349 let keyFreelancerBid = ((auctionId + "_Bid_") + freelancerPub)
335350 let valueFreelacerBid = getInteger(this, keyFreelancerBid)
371386 }
372387 let amountDifference = (auctionPrice - newAuctionPrice)
373388 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, amountDifference)
374- ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)]))
389+ 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)]))
375390 }
376391 else throw("Incorrect auction state")
377392 else {
395410 }
396411 let amountDifference = (auctionPrice - freelancerBidAmount)
397412 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, amountDifference)
398- ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), setNewFreelancer), DataEntry((auctionId + "_Price"), newAuctionPrice), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (amountDifference + 1), auctionAssetId58)]))
413+ 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)]))
399414 }
400415 else throw("Only auction customer can choose a freelancer")
401416 }
438453 let dAppCommission = ((auctionPrice * 3) / 100)
439454 let amountWithoutComm = (auctionPrice - dAppCommission)
440455 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
441- let callerIsClient = if ((callerPub == auctionClient))
442- then true
443- else throw("Auction can be canceled only by auction owner.")
444- if (callerIsClient)
456+ if ((callerPub == auctionClient))
445457 then if ((auctionState == stateOpen))
446458 then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountWithoutComm, auctionAssetId58)]))
447- else throw("Incorrect auction state.")
459+ else throw("Auction can be canceled only by auction owner.")
448460 else throw("Only Client can cancel auction")
449461 }
450462
456468 let auctionState = getAuctionState(auctionId)
457469 let auctionClient = getAuctionClientPub(auctionId)
458470 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
471+ let clientJobsInDispute = getInt((toBase58String(auctionClient) + "_JobsInDispute"))
459472 if (if ((auctionState == stateOpen))
460473 then true
461474 else (auctionState == stateSuggested))
463476 else if (if ((caller == auctionClient))
464477 then true
465478 else (caller == auctionFreelancer))
466- then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), 0)])
467- else throw("Only customer and freelancer can open dispute")
479+ then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), 0), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute + 1))])
480+ else throw("Only Client and Freelancer can open dispute")
468481 }
469482
470483
479492 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
480493 let commission = ((auctionPrice * 3) / 100)
481494 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
495+ let clientJobsInDispute = getInt((toBase58String(auctionClient) + "_JobsInDispute"))
482496 let callerIsAmbassador = if (if (if (if (if ((callerPub == ambassador1))
483497 then true
484498 else (callerPub == ambassador2))
550564 then (auctionPrice - commission)
551565 else (auctionPrice - (commission * 2))
552566 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
553- ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + callerIsAmbassador), newVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinner), paymentWithoutComm, auctionAssetId58)]))
567+ ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + callerIsAmbassador), newVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute - 1))]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinner), paymentWithoutComm, auctionAssetId58)]))
554568 }
555569 else WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry(((auctionId + "_DiputeVote_") + callerIsAmbassador), newVote)])
556570 else throw(("Incorrect state. Must be: " + stateDispute))
562576 func workHandOver (auctionId) = {
563577 let callerPub = extract(i.callerPublicKey)
564578 let auctionState = getAuctionState(auctionId)
579+ let auctionClient = getAuctionClientPub(auctionId)
565580 let auctionStart = getAuctionStartTime(auctionId)
566581 let auctionDuration = getAuctionDurationTime(auctionId)
567582 let auctionBlocksForExecution = getAuctionJobPerformanceTime(auctionId)
568583 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
584+ let clientJobsInDispute = getInt((toBase58String(auctionClient) + "_JobsInDispute"))
569585 let currentTime = height
570586 let freelancerPubCheck = if ((callerPub == auctionFreelancer))
571587 then callerPub
573589 let timeIsOver = ((currentTime - auctionStart) > auctionBlocksForExecution)
574590 if ((auctionState == stateInProgress))
575591 then if (timeIsOver)
576- then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), "0")])
592+ then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), "0"), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute + 1))])
577593 else WriteSet([DataEntry((auctionId + "_State"), stateWait4Confirm)])
578594 else throw("Auction state is incorrect")
579595 }
590606 let auctionAssetName = getAuctionAssetName(auctionId)
591607 let auctionPrice = getAuctionPrice(auctionId)
592608 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
609+ let jobsOnGoing = getInt((toBase58String(auctionClient) + "_JobsOnGoing"))
610+ let freelancerPendingEarnings = getInt((toBase58String(auctionFreelancer) + "_PendingEarnings"))
611+ let freelancerPaidEarnings = getInt((toBase58String(auctionFreelancer) + "_PaidEarnings"))
593612 let dAppCommission = ((auctionPrice * 3) / 100)
594613 let amountWithoutComm = (auctionPrice - dAppCommission)
595614 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
606625 }
607626 if ((callerPub == auctionClient))
608627 then if ((auctionState == stateWait4Confirm))
609- then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateComplete), DataEntry((toBase58String(auctionFreelancer) + "_Rating"), newRating), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionFreelancer), amountWithoutComm, auctionAssetId58)]))
628+ 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)]))
610629 else throw(("Incorrect state. Must be: " + stateWait4Confirm))
611630 else throw("Only auction customer can use this function")
612631 }
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
30-let client = "CL"
30+let client = "CMR"
3131
3232 let freelancer = "FL"
3333
3434 let ambassador1 = base58'1'
3535
3636 let ambassador2 = base58'1'
3737
3838 let ambassador3 = base58'1'
3939
4040 let ambassador4 = base58'1'
4141
4242 let ambassador5 = base58'1'
4343
4444 func AuctionIdDataKey (auctionId) = (auctionId + "_AuctionData")
45+
46+
47+func getInt (key) = {
48+ let valueJobsOnGoing = getInteger(this, key)
49+ match valueJobsOnGoing {
50+ case a: Int =>
51+ a
52+ case _ =>
53+ 0
54+ }
55+ }
4556
4657
4758 func AssetNameToBase58 (auctionAssetName) = if ((auctionAssetName == "WAVES"))
4859 then WAVES
4960 else if ((auctionAssetName == "BTC"))
5061 then wBTC
5162 else if ((auctionAssetName == "EUR"))
5263 then wEUR
5364 else if ((auctionAssetName == "USD"))
5465 then wUSD
5566 else throw("Incorrect Asset Id")
5667
5768
5869 func timeCheck (currentTime,startTime,expirationTime) = ((currentTime - startTime) > expirationTime)
5970
6071
6172 func bidAmountCheck (amount,auctionPrice) = if ((amount > auctionPrice))
6273 then throw("Bid amount must be lower or equal than auctionPrice")
6374 else amount
6475
6576
6677 func increaseFreezedBalance (pmtAssetName,auctionPrice) = {
6778 let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed"))
6879 let currentFreezedBalance = match keyFreezedFunds {
6980 case a: Int =>
7081 a
7182 case _ =>
7283 0
7384 }
7485 (currentFreezedBalance + auctionPrice)
7586 }
7687
7788
7889 func decreaseFreezedBalance (pmtAssetName,auctionPrice) = {
7990 let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed"))
8091 let currentFreezedBalance = match keyFreezedFunds {
8192 case a: Int =>
8293 a
8394 case _ =>
8495 0
8596 }
8697 let a = (currentFreezedBalance - auctionPrice)
8798 if ((a >= 0))
8899 then a
89100 else throw("Freezed amount couldn't be less than 0")
90101 }
91102
92103
93104 func freelancerIsRegistered (callerPub) = {
94105 let freelancerIsRegistered = getString(this, (callerPub + "_Freelancer"))
95106 match freelancerIsRegistered {
96107 case a: String =>
97108 callerPub
98109 case _ =>
99110 throw("Only registered users can make bets")
100111 }
101112 }
102113
103114
104115 func createAuctionPriceCheck (pmtAmount) = if ((pmtAmount > 0))
105116 then pmtAmount
106117 else throw("Amount must be higher then 0")
107118
108119
109120 func getAuctionState (auctionId) = {
110121 let valueState = getString(this, (auctionId + "_State"))
111122 match valueState {
112123 case a: String =>
113124 a
114125 case _ =>
115126 throw("Auction State was not found")
116127 }
117128 }
118129
119130
120131 func getAuctionClientPub (auctionId) = {
121132 let valueClient = getString(this, (auctionId + "_AuctionClient"))
122- let a = match valueClient {
133+ let clientPub = match valueClient {
123134 case a: String =>
124135 a
125136 case _ =>
126137 throw("Auction Client was not found")
127138 }
128- fromBase58String(a)
139+ fromBase58String(clientPub)
129140 }
130141
131142
132143 func getAuctionStartTime (auctionId) = {
133144 let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart"))
134145 match valueAuctionStart {
135146 case a: Int =>
136147 a
137148 case _ =>
138149 throw("Auction Start time was not found")
139150 }
140151 }
141152
142153
143154 func getAuctionDurationTime (auctionId) = {
144155 let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration"))
145156 match valueauctionDuration {
146157 case a: Int =>
147158 a
148159 case _ =>
149160 throw("Auction duration time was not found")
150161 }
151162 }
152163
153164
154165 func getAuctionJobPerformanceTime (auctionId) = {
155166 let valueBlocksForExecution = getInteger(this, (auctionId + "_JobPerformance"))
156167 match valueBlocksForExecution {
157168 case a: Int =>
158169 a
159170 case _ =>
160171 throw("Auction job performance time was not found")
161172 }
162173 }
163174
164175
165176 func getAuctionAssetName (auctionId) = {
166177 let valueAssetName = getString(this, (auctionId + "_AssetName"))
167178 match valueAssetName {
168179 case a: String =>
169180 a
170181 case _ =>
171182 throw("Auction asset name was not found")
172183 }
173184 }
174185
175186
176187 func getAuctionPrice (auctionId) = {
177188 let valuePrice = getInteger(this, (auctionId + "_Price"))
178189 match valuePrice {
179190 case a: Int =>
180191 a
181192 case _ =>
182193 throw("Auction price was not found")
183194 }
184195 }
185196
186197
187198 func getAuctionFreelancerPub (auctionId) = {
188199 let valueClient = getString(this, (auctionId + "_HiredFreelancer"))
189200 let a = match valueClient {
190201 case a: String =>
191202 a
192203 case _ =>
193204 throw("Auction Client was not found")
194205 }
195206 fromBase58String(a)
196207 }
197208
198209
199210 @Callable(i)
200211 func freelancerSignUp (info) = {
201212 let userPublicKey = toBase58String(i.callerPublicKey)
202213 let alreadyRegistered = getString(this, (userPublicKey + "_Freelancer"))
203214 if (isDefined(alreadyRegistered))
204215 then throw("User already registered")
205- else WriteSet([DataEntry((userPublicKey + "_Freelancer"), info)])
216+ 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)])
206217 }
207218
208219
209220
210221 @Callable(i)
211222 func clientSignUp (info) = {
212223 let userPublicKey = toBase58String(i.callerPublicKey)
213224 let alreadyRegistered = getString(this, (userPublicKey + "_Client"))
214225 if (isDefined(alreadyRegistered))
215226 then throw("User already registered")
216- else WriteSet([DataEntry((userPublicKey + "_Client"), info)])
227+ else WriteSet([DataEntry((userPublicKey + "_Client"), info), DataEntry((userPublicKey + "_JobsCreated"), 0), DataEntry((userPublicKey + "_JobsOnGoing"), 0), DataEntry((userPublicKey + "_JobInDispute"), 0)])
217228 }
218229
219230
220231
221232 @Callable(i)
222233 func createAuction (jobExecutionDays,auctionDurationDays,auctionInfo) = {
223234 let auctionId = toBase58String(i.transactionId)
224235 let auctionClient = toBase58String(i.callerPublicKey)
225236 let pmt = extract(i.payment)
226237 let pmtAmount = pmt.amount
227238 let auctionPrice = createAuctionPriceCheck(pmtAmount)
228239 let auctionStart = height
229240 let auctionDurationBlocks = (auctionDurationDays * day)
230241 let blocksForExecution = (jobExecutionDays * day)
231242 let pmtAssetName = if (!(isDefined(pmt.assetId)))
232243 then "WAVES"
233244 else if ((pmt.assetId == wBTC))
234245 then "BTC"
235246 else if ((pmt.assetId == wEUR))
236247 then "EUR"
237248 else if ((pmt.assetId == wUSD))
238249 then "USD"
239250 else throw("AssetId is incorrect")
251+ let jobsCreated = getInt((auctionClient + "_JobsCreated"))
240252 let newFreezedBalance = increaseFreezedBalance(pmtAssetName, auctionPrice)
241- 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)])
253+ 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))])
242254 }
243255
244256
245257
246258 @Callable(i)
247259 func makeBid (auctionId,amount) = {
248260 let callerPub = toBase58String(i.callerPublicKey)
249261 let betTime = height
250262 let auctionState = getAuctionState(auctionId)
251263 let auctionClient = getAuctionClientPub(auctionId)
252264 let auctionStart = getAuctionStartTime(auctionId)
253265 let auctionDuration = getAuctionDurationTime(auctionId)
254266 let auctionBlocksForExecution = getAuctionJobPerformanceTime(auctionId)
255267 let auctionAssetName = getAuctionAssetName(auctionId)
256268 let auctionPrice = getAuctionPrice(auctionId)
257269 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
258270 let newFreelancer = freelancerIsRegistered(callerPub)
259271 let dAppCommission = ((auctionPrice * 3) / 100)
260272 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
261273 let bidAmount = bidAmountCheck(amount, auctionPrice)
262274 let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration)
263275 if (auctionTimeisOver)
264276 then if ((auctionState == stateOpen))
265277 then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (auctionPrice - dAppCommission), auctionAssetId58)]))
266278 else if ((auctionState == stateSuggested))
267279 then {
268280 let auctionLowestBidder = {
269281 let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
270282 match valueLowestBidder {
271283 case a: String =>
272284 a
273285 case _ =>
274286 throw("Auction lowest bidder was not found")
275287 }
276288 }
277289 let newAuctionPrice = {
278290 let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder))
279291 match valueNewAuctionPrice {
280292 case a: Int =>
281293 a
282294 case _ =>
283295 throw("Auction lowest bid was not found")
284296 }
285297 }
286298 let amountDifference = ((auctionPrice - newAuctionPrice) - dAppCommission)
287299 ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)]))
288300 }
289301 else throw("Incorrect auction state")
290302 else if ((auctionState == stateOpen))
291303 then WriteSet([DataEntry(((auctionId + "_Bid_") + newFreelancer), bidAmount), DataEntry((auctionId + "_State"), stateSuggested), DataEntry((auctionId + "_LowestBidderPub"), callerPub)])
292304 else if ((auctionState == stateSuggested))
293305 then {
294306 let currentLowestBidderPub = {
295307 let lowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
296308 match lowestBidder {
297309 case a: String =>
298310 a
299311 case _ =>
300312 throw("Auction lowest bidder was not found")
301313 }
302314 }
303315 let newLowestBidderPub = {
304316 let valueCurrentLowestBid = getInteger(this, ((auctionId + "_Bid_") + currentLowestBidderPub))
305317 let currentLowestBid = match valueCurrentLowestBid {
306318 case a: Int =>
307319 a
308320 case _ =>
309321 throw("Auction lowest bid was not found")
310322 }
311323 if ((currentLowestBid > bidAmount))
312324 then newFreelancer
313325 else currentLowestBidderPub
314326 }
315327 WriteSet([DataEntry((auctionId + "_LowestBidderPub"), newLowestBidderPub), DataEntry(((auctionId + "_Bid_") + newFreelancer), bidAmount)])
316328 }
317329 else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested))
318330 }
319331
320332
321333
322334 @Callable(i)
323335 func chooseFreelancer (auctionId,freelancerPub) = {
324336 let callerPub = extract(i.callerPublicKey)
325337 let betTime = height
326338 let auctionState = getAuctionState(auctionId)
327339 let auctionClient = getAuctionClientPub(auctionId)
328340 let auctionStart = getAuctionStartTime(auctionId)
329341 let auctionDuration = getAuctionDurationTime(auctionId)
330342 let auctionAssetName = getAuctionAssetName(auctionId)
331343 let auctionPrice = getAuctionPrice(auctionId)
332344 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
345+ let jobsOnGoing = getInt((toBase58String(auctionClient) + "_JobsOnGoing"))
346+ let freelancerPendingEarnings = getInt((freelancerPub + "_PendingEarnings"))
347+ let freelancerTotalEarnings = getInt((freelancerPub + "_TotalEarnings"))
333348 let freelancerBidAmount = {
334349 let keyFreelancerBid = ((auctionId + "_Bid_") + freelancerPub)
335350 let valueFreelacerBid = getInteger(this, keyFreelancerBid)
336351 match valueFreelacerBid {
337352 case a: Int =>
338353 a
339354 case _ =>
340355 throw("Freelancer's bet was not found")
341356 }
342357 }
343358 let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration)
344359 if ((callerPub == auctionClient))
345360 then if (auctionTimeisOver)
346361 then if ((auctionState == stateOpen))
347362 then {
348363 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
349364 let dAppCommission = ((auctionPrice * 3) / 100)
350365 ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (auctionPrice - dAppCommission), auctionAssetId58)]))
351366 }
352367 else if ((auctionState == stateSuggested))
353368 then {
354369 let auctionLowestBidder = {
355370 let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
356371 match valueLowestBidder {
357372 case a: String =>
358373 a
359374 case _ =>
360375 throw("Auction lowest bidder was not found")
361376 }
362377 }
363378 let newAuctionPrice = {
364379 let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder))
365380 match valueNewAuctionPrice {
366381 case a: Int =>
367382 a
368383 case _ =>
369384 throw("Auction lowest bid was not found")
370385 }
371386 }
372387 let amountDifference = (auctionPrice - newAuctionPrice)
373388 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, amountDifference)
374- ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)]))
389+ 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)]))
375390 }
376391 else throw("Incorrect auction state")
377392 else {
378393 let setNewFreelancer = {
379394 let newFreelancer = getInteger(this, ((auctionId + "_Bid_") + freelancerPub))
380395 match newFreelancer {
381396 case a: Int =>
382397 freelancerPub
383398 case _ =>
384399 throw("Error: Incorrect freelancerPub")
385400 }
386401 }
387402 let newAuctionPrice = {
388403 let freelancerBid = getInteger(this, ((auctionId + "_Bid_") + freelancerPub))
389404 match freelancerBid {
390405 case a: Int =>
391406 a
392407 case _ =>
393408 throw("Auction lowest bidder was not found")
394409 }
395410 }
396411 let amountDifference = (auctionPrice - freelancerBidAmount)
397412 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, amountDifference)
398- ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_HiredFreelancer"), setNewFreelancer), DataEntry((auctionId + "_Price"), newAuctionPrice), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (amountDifference + 1), auctionAssetId58)]))
413+ 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)]))
399414 }
400415 else throw("Only auction customer can choose a freelancer")
401416 }
402417
403418
404419
405420 @Callable(i)
406421 func increaseExecutionTime (auctionId,executionDays) = {
407422 let caller = extract(i.callerPublicKey)
408423 let auctionState = getAuctionState(auctionId)
409424 let auctionClient = getAuctionClientPub(auctionId)
410425 let auctionBlocksForExecution = getAuctionJobPerformanceTime(auctionId)
411426 let newAuctionExecutionTime = {
412427 let newAuctionBlocksForExecution = (executionDays * day)
413428 if ((newAuctionBlocksForExecution > auctionBlocksForExecution))
414429 then newAuctionBlocksForExecution
415430 else throw("New execution time must more than current execution time")
416431 }
417432 if ((caller == auctionClient))
418433 then if (if (if ((auctionState == stateOpen))
419434 then true
420435 else (auctionState == stateSuggested))
421436 then true
422437 else (auctionState == stateInProgress))
423438 then WriteSet([DataEntry((auctionId + "_JobPerformance"), newAuctionExecutionTime)])
424439 else throw("Incorrect state")
425440 else throw("Only Client can increase execution time")
426441 }
427442
428443
429444
430445 @Callable(i)
431446 func cancelAuction (auctionId) = {
432447 let callerPub = extract(i.callerPublicKey)
433448 let auctionState = getAuctionState(auctionId)
434449 let auctionClient = getAuctionClientPub(auctionId)
435450 let auctionAssetName = getAuctionAssetName(auctionId)
436451 let auctionPrice = getAuctionPrice(auctionId)
437452 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
438453 let dAppCommission = ((auctionPrice * 3) / 100)
439454 let amountWithoutComm = (auctionPrice - dAppCommission)
440455 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
441- let callerIsClient = if ((callerPub == auctionClient))
442- then true
443- else throw("Auction can be canceled only by auction owner.")
444- if (callerIsClient)
456+ if ((callerPub == auctionClient))
445457 then if ((auctionState == stateOpen))
446458 then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountWithoutComm, auctionAssetId58)]))
447- else throw("Incorrect auction state.")
459+ else throw("Auction can be canceled only by auction owner.")
448460 else throw("Only Client can cancel auction")
449461 }
450462
451463
452464
453465 @Callable(i)
454466 func openDispute (auctionId) = {
455467 let caller = extract(i.callerPublicKey)
456468 let auctionState = getAuctionState(auctionId)
457469 let auctionClient = getAuctionClientPub(auctionId)
458470 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
471+ let clientJobsInDispute = getInt((toBase58String(auctionClient) + "_JobsInDispute"))
459472 if (if ((auctionState == stateOpen))
460473 then true
461474 else (auctionState == stateSuggested))
462475 then throw("Incorrect auction state for dispute opening")
463476 else if (if ((caller == auctionClient))
464477 then true
465478 else (caller == auctionFreelancer))
466- then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), 0)])
467- else throw("Only customer and freelancer can open dispute")
479+ then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), 0), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute + 1))])
480+ else throw("Only Client and Freelancer can open dispute")
468481 }
469482
470483
471484
472485 @Callable(i)
473486 func voteDispute (auctionId,vote) = {
474487 let callerPub = extract(i.callerPublicKey)
475488 let auctionState = getAuctionState(auctionId)
476489 let auctionClient = getAuctionClientPub(auctionId)
477490 let auctionAssetName = getAuctionAssetName(auctionId)
478491 let auctionPrice = getAuctionPrice(auctionId)
479492 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
480493 let commission = ((auctionPrice * 3) / 100)
481494 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
495+ let clientJobsInDispute = getInt((toBase58String(auctionClient) + "_JobsInDispute"))
482496 let callerIsAmbassador = if (if (if (if (if ((callerPub == ambassador1))
483497 then true
484498 else (callerPub == ambassador2))
485499 then true
486500 else (callerPub == ambassador3))
487501 then true
488502 else (callerPub == ambassador4))
489503 then true
490504 else (callerPub == ambassador5))
491505 then toBase58String(callerPub)
492506 else throw("Only defined ambassadors can vote in disputes")
493507 let newVote = if (if ((vote == client))
494508 then true
495509 else (vote == freelancer))
496510 then vote
497511 else throw(((("Vote is incorrect. Must be: " + client) + " or ") + freelancer))
498512 let newVoter = {
499513 let keyVoter = ((auctionId + "_DiputeVote_") + callerIsAmbassador)
500514 let valueVoter = getString(this, keyVoter)
501515 match valueVoter {
502516 case a: String =>
503517 throw("User already voted")
504518 case _ =>
505519 callerIsAmbassador
506520 }
507521 }
508522 let votesNumber = {
509523 let valueVotesNumber = getInteger(this, (auctionId + "_DisputeVotes"))
510524 match valueVotesNumber {
511525 case a: Int =>
512526 a
513527 case _ =>
514528 throw("VotesNumber was not found")
515529 }
516530 }
517531 if ((auctionState == stateDispute))
518532 then if ((votesNumber == 4))
519533 then {
520534 let disputeWinner = {
521535 let ambassador1Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador1)))
522536 let ambassador2Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador2)))
523537 let ambassador3Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador3)))
524538 let ambassador4Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador4)))
525539 let ambassador5Vote = getString(this, ((auctionId + "_DiputeVote_") + toBase58String(ambassador5)))
526540 let v1 = if ((ambassador1Vote == client))
527541 then 1
528542 else 0
529543 let v2 = if ((ambassador2Vote == client))
530544 then 1
531545 else 0
532546 let v3 = if ((ambassador3Vote == client))
533547 then 1
534548 else 0
535549 let v4 = if ((ambassador4Vote == client))
536550 then 1
537551 else 0
538552 let v5 = if ((ambassador5Vote == client))
539553 then 1
540554 else 0
541555 let currentVote = if ((newVote == client))
542556 then 1
543557 else 0
544558 let votesForClient = (((((v1 + v2) + v3) + v4) + v5) + currentVote)
545559 if ((votesForClient > 2))
546560 then auctionClient
547561 else auctionFreelancer
548562 }
549563 let paymentWithoutComm = if ((disputeWinner == auctionClient))
550564 then (auctionPrice - commission)
551565 else (auctionPrice - (commission * 2))
552566 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
553- ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + callerIsAmbassador), newVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinner), paymentWithoutComm, auctionAssetId58)]))
567+ ScriptResult(WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry((auctionId + "_State"), stateDisputeResolved), DataEntry(((auctionId + "_DiputeVote_") + callerIsAmbassador), newVote), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute - 1))]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinner), paymentWithoutComm, auctionAssetId58)]))
554568 }
555569 else WriteSet([DataEntry((auctionId + "_DisputeVotes"), (votesNumber + 1)), DataEntry(((auctionId + "_DiputeVote_") + callerIsAmbassador), newVote)])
556570 else throw(("Incorrect state. Must be: " + stateDispute))
557571 }
558572
559573
560574
561575 @Callable(i)
562576 func workHandOver (auctionId) = {
563577 let callerPub = extract(i.callerPublicKey)
564578 let auctionState = getAuctionState(auctionId)
579+ let auctionClient = getAuctionClientPub(auctionId)
565580 let auctionStart = getAuctionStartTime(auctionId)
566581 let auctionDuration = getAuctionDurationTime(auctionId)
567582 let auctionBlocksForExecution = getAuctionJobPerformanceTime(auctionId)
568583 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
584+ let clientJobsInDispute = getInt((toBase58String(auctionClient) + "_JobsInDispute"))
569585 let currentTime = height
570586 let freelancerPubCheck = if ((callerPub == auctionFreelancer))
571587 then callerPub
572588 else throw("Only a freelancer can indicate that the work is done")
573589 let timeIsOver = ((currentTime - auctionStart) > auctionBlocksForExecution)
574590 if ((auctionState == stateInProgress))
575591 then if (timeIsOver)
576- then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), "0")])
592+ then WriteSet([DataEntry((auctionId + "_State"), stateDispute), DataEntry((auctionId + "_DisputeVotes"), "0"), DataEntry((toBase58String(auctionClient) + "_JobInDispute"), (clientJobsInDispute + 1))])
577593 else WriteSet([DataEntry((auctionId + "_State"), stateWait4Confirm)])
578594 else throw("Auction state is incorrect")
579595 }
580596
581597
582598
583599 @Callable(i)
584600 func acceptWork (auctionId) = {
585601 let callerPub = extract(i.callerPublicKey)
586602 let auctionState = getAuctionState(auctionId)
587603 let auctionClient = getAuctionClientPub(auctionId)
588604 let auctionStart = getAuctionStartTime(auctionId)
589605 let auctionDuration = getAuctionDurationTime(auctionId)
590606 let auctionAssetName = getAuctionAssetName(auctionId)
591607 let auctionPrice = getAuctionPrice(auctionId)
592608 let auctionFreelancer = getAuctionFreelancerPub(auctionId)
609+ let jobsOnGoing = getInt((toBase58String(auctionClient) + "_JobsOnGoing"))
610+ let freelancerPendingEarnings = getInt((toBase58String(auctionFreelancer) + "_PendingEarnings"))
611+ let freelancerPaidEarnings = getInt((toBase58String(auctionFreelancer) + "_PaidEarnings"))
593612 let dAppCommission = ((auctionPrice * 3) / 100)
594613 let amountWithoutComm = (auctionPrice - dAppCommission)
595614 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
596615 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
597616 let newRating = {
598617 let valueRating = getInteger(this, (toBase58String(auctionFreelancer) + "_Rating"))
599618 let currentRating = match valueRating {
600619 case a: Int =>
601620 a
602621 case _ =>
603622 0
604623 }
605624 (currentRating + 1)
606625 }
607626 if ((callerPub == auctionClient))
608627 then if ((auctionState == stateWait4Confirm))
609- then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateComplete), DataEntry((toBase58String(auctionFreelancer) + "_Rating"), newRating), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionFreelancer), amountWithoutComm, auctionAssetId58)]))
628+ 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)]))
610629 else throw(("Incorrect state. Must be: " + stateWait4Confirm))
611630 else throw("Only auction customer can use this function")
612631 }
613632
614633
615634 @Verifier(tx)
616635 func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
617636 then match tx {
618637 case ttx: TransferTransaction =>
619638 true
620639 case stx: SetScriptTransaction =>
621640 true
622641 case _ =>
623642 false
624643 }
625644 else false
626645

github/deemru/w8io/026f985 
92.76 ms