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/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBsZXRlAgAAAAlDb21wbGV0Z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AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwBgcHgAhUwA==", "chainId": 84, "height": 690124, "spentComplexity": 0 } View: original | compacted Prev: 5qqdtqrjLea7TyQMdcRq9nLE7bfwN3JFxjcTpk9et5Ry Next: 4yp4WC4YAYtuhodUohRuPXSQxLbYwf29jCbfY2Wztf94 Diff:
OldNewDifferences
115115 }
116116
117117
118-func freelancerIsRegistered (caller) = {
119- let freelancerIsRegistered = getString(this, (caller + "_Status"))
118+func freelancerIsRegistered (callerPub) = {
119+ let freelancerIsRegistered = getString(this, (callerPub + "_Freelancer"))
120120 match freelancerIsRegistered {
121121 case a: String =>
122- a
122+ callerPub
123123 case _ =>
124124 throw("Only registered users can make bets")
125125 }
132132 let alreadyRegistered = getString(this, (userPublicKey + "_Freelancer"))
133133 if (isDefined(alreadyRegistered))
134134 then throw("User already registered")
135- else WriteSet([DataEntry((userPublicKey + "_Registered"), info)])
135+ else WriteSet([DataEntry((userPublicKey + "_Freelancer"), info)])
136136 }
137137
138138
358358 func voteDispute (auctionId,vote) = {
359359 let AuctionIdKey = AuctionIdDataKey(auctionId)
360360 let auctionDataList = getDataList(AuctionIdKey)
361+ let auctionState = auctionDataList[0]
361362 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))
370374 let newVote = if (if ((vote == customer))
371375 then true
372376 else (vote == freelancer))
430434 then customer
431435 else freelancer
432436 }
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))]))
439445 }
440446 }
441447 else {
507513
508514 @Callable(i)
509515 func workHandOver (auctionId) = {
516+ let callerPub = extract(i.callerPublicKey)
510517 let AuctionIdKey = AuctionIdDataKey(auctionId)
511518 let auctionDataList = getDataList(AuctionIdKey)
512519 let auctionState = auctionDataList[0]
517524 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
518525 let auctionAssetName = auctionDataList[6]
519526 let auctionPrice = parseIntValue(auctionDataList[7])
527+ let auctionFreelancer = fromBase58String(auctionDataList[8])
520528 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")
528532 let timeIsOver = ((currentTime - auctionStart) > auctionBlocksForExecution)
529533 if ((auctionState == stateInProgress))
530534 then if (timeIsOver)
557561 let caller = extract(i.callerPublicKey)
558562 let dAppCommission = ((auctionPrice * 3) / 100)
559563 let amountWithoutComm = (auctionPrice - dAppCommission)
560- let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
561564 let newRating = {
562565 let valueRating = getInteger(this, (auctionFreelancer + "_Rating"))
563566 let currentRating = match valueRating {
572575 then if ((auctionState == stateWait4Confirm))
573576 then {
574577 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, auctionAssetId58)]))
578+ ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((stateComplete + "_") + auctionInfo) + "_") + newDataString)), DataEntry((auctionFreelancer + "_Rating"), newRating)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionFreelancer)), amountWithoutComm, AssetNameToBase58(auctionAssetName))]))
576579 }
577580 else throw(("Incorrect state. Must be: " + stateWait4Confirm))
578581 else throw("Only auction customer can use this function")
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 customer = "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")
4545
4646
4747 func getDataList (auctionId) = {
4848 let getDataString = getString(this, auctionId)
4949 let a = match getDataString {
5050 case a: String =>
5151 a
5252 case _ =>
5353 throw("AuctionId was not found")
5454 }
5555 split(a, "_")
5656 }
5757
5858
5959 func getDisputeDataList (auctionId) = {
6060 let keyDisputeData = ((auctionId + "_") + stateDispute)
6161 let getDisputeDataString = getString(this, keyDisputeData)
6262 let a = match getDisputeDataString {
6363 case a: String =>
6464 a
6565 case _ =>
6666 throw("Dispute data was not found")
6767 }
6868 split(a, "/")
6969 }
7070
7171
7272 func AssetNameToBase58 (auctionAssetName) = if ((auctionAssetName == "WAVES"))
7373 then WAVES
7474 else if ((auctionAssetName == "BTC"))
7575 then wBTC
7676 else if ((auctionAssetName == "EUR"))
7777 then wEUR
7878 else if ((auctionAssetName == "USD"))
7979 then wUSD
8080 else throw("Incorrect Asset Id")
8181
8282
8383 func betPriceCheck (betPrice,auctionPrice) = if ((auctionPrice > betPrice))
8484 then betPrice
8585 else throw(("Bet price must be lower than actual price. Actual price: " + toString(auctionPrice)))
8686
8787
8888 func timeCheck (currentTime,startTime,expirationTime) = ((currentTime - startTime) > expirationTime)
8989
9090
9191 func increaseFreezedBalance (pmtAssetName,auctionPrice) = {
9292 let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed"))
9393 let currentFreezedBalance = match keyFreezedFunds {
9494 case a: Int =>
9595 a
9696 case _ =>
9797 0
9898 }
9999 (currentFreezedBalance + auctionPrice)
100100 }
101101
102102
103103 func decreaseFreezedBalance (pmtAssetName,auctionPrice) = {
104104 let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed"))
105105 let currentFreezedBalance = match keyFreezedFunds {
106106 case a: Int =>
107107 a
108108 case _ =>
109109 0
110110 }
111111 let a = (currentFreezedBalance - auctionPrice)
112112 if ((a > 0))
113113 then a
114114 else throw("Freezed amount couldn't be less than 0")
115115 }
116116
117117
118-func freelancerIsRegistered (caller) = {
119- let freelancerIsRegistered = getString(this, (caller + "_Status"))
118+func freelancerIsRegistered (callerPub) = {
119+ let freelancerIsRegistered = getString(this, (callerPub + "_Freelancer"))
120120 match freelancerIsRegistered {
121121 case a: String =>
122- a
122+ callerPub
123123 case _ =>
124124 throw("Only registered users can make bets")
125125 }
126126 }
127127
128128
129129 @Callable(i)
130130 func freelancerSignUp (info) = {
131131 let userPublicKey = toBase58String(i.callerPublicKey)
132132 let alreadyRegistered = getString(this, (userPublicKey + "_Freelancer"))
133133 if (isDefined(alreadyRegistered))
134134 then throw("User already registered")
135- else WriteSet([DataEntry((userPublicKey + "_Registered"), info)])
135+ else WriteSet([DataEntry((userPublicKey + "_Freelancer"), info)])
136136 }
137137
138138
139139
140140 @Callable(i)
141141 func clientSignUp (info) = {
142142 let userPublicKey = toBase58String(i.callerPublicKey)
143143 let alreadyRegistered = getString(this, (userPublicKey + "_Client"))
144144 if (isDefined(alreadyRegistered))
145145 then throw("User already registered")
146146 else WriteSet([DataEntry((userPublicKey + "_Client"), info)])
147147 }
148148
149149
150150
151151 @Callable(i)
152152 func createAuction (jobExecutionDays,auctionDurationDays,auctionInfo) = {
153153 let auctionId = toBase58String(i.transactionId)
154154 let auctionCustomer = toBase58String(i.callerPublicKey)
155155 let pmt = extract(i.payment)
156156 let pmtAmount = pmt.amount
157157 let auctionPrice = if ((pmtAmount > 0))
158158 then pmtAmount
159159 else throw("Amount must be higher then 0")
160160 let auctionStart = height
161161 let auctionDurationBlocks = (auctionDurationDays * day)
162162 let blocksForExecution = (jobExecutionDays * day)
163163 let pmtAssetName = if (!(isDefined(pmt.assetId)))
164164 then "WAVES"
165165 else if ((pmt.assetId == wBTC))
166166 then "BTC"
167167 else if ((pmt.assetId == wEUR))
168168 then "EUR"
169169 else if ((pmt.assetId == wUSD))
170170 then "USD"
171171 else throw("AssetId is incorrect")
172172 let newFreezedBalance = increaseFreezedBalance(pmtAssetName, auctionPrice)
173173 WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((((((((((((((stateOpen + "_") + auctionInfo) + "_") + auctionCustomer) + "_") + toString(auctionStart)) + "_") + toString(auctionDurationBlocks)) + "_") + toString(blocksForExecution)) + "_") + pmtAssetName) + "_") + toString(auctionPrice))), DataEntry((auctionId + "_AuctionInfo"), auctionInfo), DataEntry((pmtAssetName + "_Freezed"), newFreezedBalance)])
174174 }
175175
176176
177177
178178 @Callable(i)
179179 func makeBid (auctionId,betPrice) = {
180180 let callerPub = toBase58String(i.callerPublicKey)
181181 let betTime = height
182182 let AuctionIdKey = AuctionIdDataKey(auctionId)
183183 let auctionDataList = getDataList(AuctionIdKey)
184184 let auctionState = auctionDataList[0]
185185 let auctionInfo = auctionDataList[1]
186186 let auctionCustomer = fromBase58String(auctionDataList[2])
187187 let auctionStart = parseIntValue(auctionDataList[3])
188188 let auctionDuration = parseIntValue(auctionDataList[4])
189189 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
190190 let auctionAssetName = auctionDataList[6]
191191 let auctionPrice = parseIntValue(auctionDataList[7])
192192 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
193193 let newBid = betPriceCheck(betPrice, auctionPrice)
194194 let newFreelancer = freelancerIsRegistered(callerPub)
195195 let dAppCommission = ((auctionPrice * 3) / 100)
196196 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
197197 let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration)
198198 if (auctionTimeisOver)
199199 then if ((auctionState == stateOpen))
200200 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)]))
201201 else if ((auctionState == stateSuggested))
202202 then {
203203 let auctionFreelancer = auctionDataList[7]
204204 let auctionJobCost = auctionDataList[8]
205205 WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + auctionFreelancer) + "_") + auctionJobCost))])
206206 }
207207 else throw("Incorrect auction state")
208208 else if ((auctionState == stateOpen))
209209 then WriteSet([DataEntry(((auctionId + "_") + newFreelancer), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newFreelancer))])
210210 else if ((auctionState == stateSuggested))
211211 then {
212212 let auctionLowestBidder = auctionDataList[7]
213213 let newAuctionLowestBidder = {
214214 let keyCurrentLowestBid = ((auctionId + "_") + auctionLowestBidder)
215215 let valueCurrentLowestBid = getInteger(this, keyCurrentLowestBid)
216216 let currentLowestBid = match valueCurrentLowestBid {
217217 case a: Int =>
218218 a
219219 case _ =>
220220 throw("Can't find lowest bid by public key")
221221 }
222222 if ((currentLowestBid > newBid))
223223 then newFreelancer
224224 else auctionLowestBidder
225225 }
226226 WriteSet([DataEntry(((auctionId + "_") + callerPub), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newAuctionLowestBidder))])
227227 }
228228 else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested))
229229 }
230230
231231
232232
233233 @Callable(i)
234234 func chooseFreelancer (auctionId,freelancerPub) = {
235235 let callerPub = extract(i.callerPublicKey)
236236 let betTime = height
237237 let AuctionIdKey = AuctionIdDataKey(auctionId)
238238 let auctionDataList = getDataList(AuctionIdKey)
239239 let auctionState = auctionDataList[0]
240240 let auctionInfo = auctionDataList[1]
241241 let auctionCustomer = fromBase58String(auctionDataList[2])
242242 let auctionStart = parseIntValue(auctionDataList[3])
243243 let auctionDuration = parseIntValue(auctionDataList[4])
244244 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
245245 let auctionAssetName = auctionDataList[6]
246246 let auctionPrice = parseIntValue(auctionDataList[7])
247247 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
248248 let FreelancerBidAmount = {
249249 let keyFreelancerBid = ((auctionId + "_") + freelancerPub)
250250 let valueFreelacerBid = getInteger(this, keyFreelancerBid)
251251 match valueFreelacerBid {
252252 case a: Int =>
253253 a
254254 case _ =>
255255 throw("Freelancer's bet was not found")
256256 }
257257 }
258258 let dAppCommission = ((auctionPrice * 3) / 100)
259259 let amountDifference = ((auctionPrice - FreelancerBidAmount) - dAppCommission)
260260 let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration)
261261 if ((callerPub == auctionCustomer))
262262 then if (auctionTimeisOver)
263263 then if ((auctionState == stateOpen))
264264 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)]))
265265 else if ((auctionState == stateSuggested))
266266 then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))])
267267 else throw("Incorrect auction state")
268268 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)]))
269269 else throw("Only auction customer can choose a freelancer")
270270 }
271271
272272
273273
274274 @Callable(i)
275275 func increaseExecutionTime (auctionId,executionDays) = {
276276 let caller = extract(i.callerPublicKey)
277277 let AuctionIdKey = AuctionIdDataKey(auctionId)
278278 let auctionDataList = getDataList(AuctionIdKey)
279279 let auctionState = auctionDataList[0]
280280 let auctionInfo = auctionDataList[1]
281281 let auctionCustomer = fromBase58String(auctionDataList[2])
282282 let auctionStart = parseIntValue(auctionDataList[3])
283283 let auctionDuration = parseIntValue(auctionDataList[4])
284284 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
285285 let auctionAssetName = auctionDataList[6]
286286 let auctionPrice = parseIntValue(auctionDataList[7])
287287 let newAuctionExecutionTime = {
288288 let newAuctionBlocksForExecution = (executionDays * day)
289289 if ((newAuctionBlocksForExecution > auctionBlocksForExecution))
290290 then newAuctionBlocksForExecution
291291 else throw("New execution time must more than current execution time")
292292 }
293293 if ((caller == auctionCustomer))
294294 then if ((auctionState == stateOpen))
295295 then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))])
296296 else if (if ((auctionState == stateSuggested))
297297 then true
298298 else (auctionState == stateInProgress))
299299 then {
300300 let freelancerPub = auctionDataList[7]
301301 WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + freelancerPub))])
302302 }
303303 else throw("Incorrect state")
304304 else throw("Only customer can increase execution time")
305305 }
306306
307307
308308
309309 @Callable(i)
310310 func cancelAuction (auctionId) = {
311311 let AuctionIdKey = AuctionIdDataKey(auctionId)
312312 let auctionDataList = getDataList(AuctionIdKey)
313313 let auctionState = auctionDataList[0]
314314 let auctionInfo = auctionDataList[1]
315315 let auctionCustomer = fromBase58String(auctionDataList[2])
316316 let auctionStart = parseIntValue(auctionDataList[3])
317317 let auctionDuration = parseIntValue(auctionDataList[4])
318318 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
319319 let auctionAssetName = auctionDataList[6]
320320 let auctionPrice = parseIntValue(auctionDataList[7])
321321 let auctionIdOwnerCheck = if ((i.callerPublicKey == auctionCustomer))
322322 then true
323323 else throw("Auction can be canceled only by owner.")
324324 if ((auctionState == stateOpen))
325325 then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))])
326326 else throw("Incorrect auction state.")
327327 }
328328
329329
330330
331331 @Callable(i)
332332 func openDispute (auctionId) = {
333333 let caller = extract(i.callerPublicKey)
334334 let AuctionIdKey = AuctionIdDataKey(auctionId)
335335 let auctionDataList = getDataList(AuctionIdKey)
336336 let auctionState = auctionDataList[0]
337337 let auctionInfo = auctionDataList[1]
338338 let auctionCustomer = fromBase58String(auctionDataList[2])
339339 let auctionStart = parseIntValue(auctionDataList[3])
340340 let auctionDuration = parseIntValue(auctionDataList[4])
341341 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
342342 let auctionAssetName = auctionDataList[6]
343343 let auctionPrice = parseIntValue(auctionDataList[7])
344344 let auctionFreelancer = fromBase58String(auctionDataList[8])
345345 if (if ((caller == auctionCustomer))
346346 then true
347347 else (caller == auctionFreelancer))
348348 then {
349349 let dataString = "1"
350350 WriteSet([DataEntry(AuctionIdKey, ((((stateDispute + "_") + auctionInfo) + "_") + dataString)), DataEntry((auctionId + "_Dispute"), "0")])
351351 }
352352 else throw("Only customer and freelancer can open dispute")
353353 }
354354
355355
356356
357357 @Callable(i)
358358 func voteDispute (auctionId,vote) = {
359359 let AuctionIdKey = AuctionIdDataKey(auctionId)
360360 let auctionDataList = getDataList(AuctionIdKey)
361+ let auctionState = auctionDataList[0]
361362 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))
370374 let newVote = if (if ((vote == customer))
371375 then true
372376 else (vote == freelancer))
373377 then vote
374378 else throw(((("Vote is incorrect. Must be: " + customer) + " or ") + freelancer))
375379 let newVoter = if (if (if (if (if ((i.callerPublicKey == ambassador1))
376380 then true
377381 else (i.callerPublicKey == ambassador2))
378382 then true
379383 else (i.callerPublicKey == ambassador3))
380384 then true
381385 else (i.callerPublicKey == ambassador4))
382386 then true
383387 else (i.callerPublicKey == ambassador5))
384388 then toBase58String(i.callerPublicKey)
385389 else throw("You have no rights for disputes resolving")
386390 let disputeData = {
387391 let keyDispute = ((auctionId + "_") + stateDispute)
388392 let valueDispute = getString(this, keyDispute)
389393 match valueDispute {
390394 case a: String =>
391395 a
392396 case _ =>
393397 throw("Cannot find data of dispute in storage")
394398 }
395399 }
396400 let disputeDataList = split(disputeData, "/")
397401 let votesCounter = disputeDataList[0]
398402 if ((votesCounter == "4"))
399403 then {
400404 let votersList = split(disputeDataList[1], "_")
401405 let votesList = split(disputeDataList[2], "_")
402406 let alreadyVoted = if ((newVoter == votersList[0]))
403407 then true
404408 else (newVoter == votersList[1])
405409 if (alreadyVoted)
406410 then throw("You already voted")
407411 else {
408412 let newVotesCounter = "5"
409413 let newVoters = ((disputeDataList[1] + "_") + newVoter)
410414 let newVotes = ((disputeDataList[2] + "_") + newVote)
411415 let newDisputeDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes)
412416 let disputeWinner = {
413417 let vote1 = if ((votesList[0] == customer))
414418 then 1
415419 else 0
416420 let vote2 = if ((votesList[1] == customer))
417421 then 1
418422 else 0
419423 let vote3 = if ((votesList[2] == customer))
420424 then 1
421425 else 0
422426 let vote4 = if ((votesList[3] == customer))
423427 then 1
424428 else 0
425429 let vote5 = if ((newVote == customer))
426430 then 1
427431 else 0
428432 let customerVotes = ((((vote1 + vote2) + vote3) + vote4) + vote5)
429433 if ((customerVotes > 2))
430434 then customer
431435 else freelancer
432436 }
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))]))
439445 }
440446 }
441447 else {
442448 let newDisputeDataString = if ((votesCounter == "0"))
443449 then {
444450 let newVotesCounter = "1"
445451 let newVoters = newVoter
446452 let newVotes = newVote
447453 let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes)
448454 newDataString
449455 }
450456 else if ((votesCounter == "1"))
451457 then {
452458 let voter1 = disputeDataList[1]
453459 let vote1 = disputeDataList[2]
454460 let alreadyVoted = (newVoter == voter1)
455461 if (alreadyVoted)
456462 then throw("You already voted")
457463 else {
458464 let newVotesCounter = "1"
459465 let newVoters = (voter1 + newVoter)
460466 let newVotes = (vote1 + newVote)
461467 let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes)
462468 newDataString
463469 }
464470 }
465471 else if ((votesCounter == "2"))
466472 then {
467473 let votersList = split(disputeDataList[1], "_")
468474 let votesList = split(disputeDataList[2], "_")
469475 let alreadyVoted = if ((newVoter == votersList[0]))
470476 then true
471477 else (newVoter == votersList[1])
472478 if (alreadyVoted)
473479 then throw("You already voted")
474480 else {
475481 let newVotesCounter = "3"
476482 let newVoters = ((disputeDataList[1] + "_") + newVoter)
477483 let newVotes = ((disputeDataList[2] + "_") + newVote)
478484 let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes)
479485 newDataString
480486 }
481487 }
482488 else if ((votesCounter == "3"))
483489 then {
484490 let votersList = split(disputeDataList[1], "_")
485491 let votesList = split(disputeDataList[2], "_")
486492 let alreadyVoted = if (if ((newVoter == votersList[0]))
487493 then true
488494 else (newVoter == votersList[1]))
489495 then true
490496 else (newVoter == votersList[2])
491497 if (alreadyVoted)
492498 then throw("You already voted")
493499 else {
494500 let newVotesCounter = "4"
495501 let newVoters = ((disputeDataList[1] + "_") + newVoter)
496502 let newVotes = ((disputeDataList[2] + "_") + newVote)
497503 let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes)
498504 newDataString
499505 }
500506 }
501507 else throw("Dispute has been already resolved")
502508 WriteSet([DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)])
503509 }
504510 }
505511
506512
507513
508514 @Callable(i)
509515 func workHandOver (auctionId) = {
516+ let callerPub = extract(i.callerPublicKey)
510517 let AuctionIdKey = AuctionIdDataKey(auctionId)
511518 let auctionDataList = getDataList(AuctionIdKey)
512519 let auctionState = auctionDataList[0]
513520 let auctionInfo = auctionDataList[1]
514521 let auctionCustomer = fromBase58String(auctionDataList[2])
515522 let auctionStart = parseIntValue(auctionDataList[3])
516523 let auctionDuration = parseIntValue(auctionDataList[4])
517524 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
518525 let auctionAssetName = auctionDataList[6]
519526 let auctionPrice = parseIntValue(auctionDataList[7])
527+ let auctionFreelancer = fromBase58String(auctionDataList[8])
520528 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")
528532 let timeIsOver = ((currentTime - auctionStart) > auctionBlocksForExecution)
529533 if ((auctionState == stateInProgress))
530534 then if (timeIsOver)
531535 then {
532536 let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6])
533537 WriteSet([DataEntry(AuctionIdKey, ((((stateDispute + "_") + auctionInfo) + "_") + newDataString))])
534538 }
535539 else {
536540 let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6])
537541 WriteSet([DataEntry(AuctionIdKey, ((((stateWait4Confirm + "_") + auctionInfo) + "_") + newDataString))])
538542 }
539543 else throw("Auction state is incorrect")
540544 }
541545
542546
543547
544548 @Callable(i)
545549 func acceptWork (auctionId) = {
546550 let AuctionIdKey = AuctionIdDataKey(auctionId)
547551 let auctionDataList = getDataList(AuctionIdKey)
548552 let auctionState = auctionDataList[0]
549553 let auctionInfo = auctionDataList[1]
550554 let auctionCustomer = fromBase58String(auctionDataList[2])
551555 let auctionStart = parseIntValue(auctionDataList[3])
552556 let auctionDuration = parseIntValue(auctionDataList[4])
553557 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
554558 let auctionAssetName = auctionDataList[6]
555559 let auctionPrice = parseIntValue(auctionDataList[7])
556560 let auctionFreelancer = auctionDataList[2]
557561 let caller = extract(i.callerPublicKey)
558562 let dAppCommission = ((auctionPrice * 3) / 100)
559563 let amountWithoutComm = (auctionPrice - dAppCommission)
560- let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
561564 let newRating = {
562565 let valueRating = getInteger(this, (auctionFreelancer + "_Rating"))
563566 let currentRating = match valueRating {
564567 case a: Int =>
565568 a
566569 case _ =>
567570 0
568571 }
569572 (currentRating + 1)
570573 }
571574 if ((caller == auctionCustomer))
572575 then if ((auctionState == stateWait4Confirm))
573576 then {
574577 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, auctionAssetId58)]))
578+ ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((stateComplete + "_") + auctionInfo) + "_") + newDataString)), DataEntry((auctionFreelancer + "_Rating"), newRating)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionFreelancer)), amountWithoutComm, AssetNameToBase58(auctionAssetName))]))
576579 }
577580 else throw(("Incorrect state. Must be: " + stateWait4Confirm))
578581 else throw("Only auction customer can use this function")
579582 }
580583
581584
582585 @Verifier(tx)
583586 func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
584587 then match tx {
585588 case ttx: TransferTransaction =>
586589 true
587590 case stx: SetScriptTransaction =>
588591 true
589592 case _ =>
590593 false
591594 }
592595 else false
593596

github/deemru/w8io/026f985 
67.96 ms