tx · 7rvQMyy4CtojGSToxHZYVY9okMpf53U8Fdwv8LiVYyex

3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2:  -0.01500000 Waves

2019.09.26 15:49 [693345] smart account 3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2 > SELF 0.00000000 Waves

{ "type": 13, "id": "7rvQMyy4CtojGSToxHZYVY9okMpf53U8Fdwv8LiVYyex", "fee": 1500000, "feeAssetId": null, "timestamp": 1569502174703, "version": 1, "sender": "3N2EM5HFgf6UMBnvcJX3Cegmozwdv1iDeq2", "senderPublicKey": "8y2Uc9uYf5gRD6Dzm1aC73zYe3LZvtVDUVAnAhNdN2mg", "proofs": [ "3ffTPsgxk4GNmLoGeirFdRRptfH4LfVffTUy8QrXXmjSdEGQMauA4KuWc9sVjETDj4Yjw6ueESLAQ2DrwRtVF9jP" ], "script": "base64:AAIDAAAAAAAAAD8IARIDCgEIEgMKAQgSBQoDAQEIEgQKAggBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIECgIICBIDCgEIEgMKAQgAAAAcAAAAAANkYXkAAAAAAAAABaAAAAAABVdBVkVTBQAAAAR1bml0AAAAAAR3QlRDAQAAACBs+mr/xe2qjAt/tSqT0qIML4KC23R6BIxT+/0TH3Og/wAAAAAEd0VVUgEAAAAg7BZhBF97kSFBBjs38+fX1Pjz08YOqoCX85C/0PoVupkAAAAABHdVU0QBAAAAIN0cvQHwz3UFMHgHsqi2OJjRRd1cH7ozWuNAb/pmWXD9AAAAAAlzdGF0ZU9wZW4CAAAABk9wZW5lZAAAAAAOc3RhdGVTdWdnZXN0ZWQCAAAACVN1Z2dlc3RlZAAAAAALc3RhdGVDYW5jZWwCAAAACENhbmNlbGVkAAAAAA9zdGF0ZUluUHJvZ3Jlc3MCAAAACkluUHJvZ3Jlc3MAAAAAEXN0YXRlV2FpdDRDb25maXJtAgAAABNXYWl0Rm9yQ29uZmlybWF0aW9uAAAAAA1zdGF0ZUNvbXBsZXRlAgAAAAlDb21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AAAAAnR4AQAAAAZ2ZXJpZnkAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAN0dHgFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAADc3R4BQAAAAckbWF0Y2gwBgcHFGZfiA==", "chainId": 84, "height": 693345, "spentComplexity": 0 } View: original | compacted Prev: B7LnJBzoDvajfnDqSFAPgQrKdDwUpRco2CnqWCvvSRxH Next: FgtBeHs5LpX3qTrV2Cim5CQ2PryMgAaToPSjLfzxth8x Diff:
OldNewDifferences
8080 else throw("Incorrect Asset Id")
8181
8282
83-func betPriceCheck (betPrice,auctionPrice) = if ((auctionPrice > betPrice))
84- then betPrice
85- else throw(("Bet price must be lower than actual price. Actual price: " + toString(auctionPrice)))
86-
87-
8883 func timeCheck (currentTime,startTime,expirationTime) = ((currentTime - startTime) > expirationTime)
8984
9085
151146 @Callable(i)
152147 func createAuction (jobExecutionDays,auctionDurationDays,auctionInfo) = {
153148 let auctionId = toBase58String(i.transactionId)
154- let auctionCustomer = toBase58String(i.callerPublicKey)
149+ let auctionClient = toBase58String(i.callerPublicKey)
155150 let pmt = extract(i.payment)
156151 let pmtAmount = pmt.amount
157152 let auctionPrice = if ((pmtAmount > 0))
170165 then "USD"
171166 else throw("AssetId is incorrect")
172167 let newFreezedBalance = increaseFreezedBalance(pmtAssetName, auctionPrice)
173- WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((((((((((((((stateOpen + "_") + auctionInfo) + "_") + auctionCustomer) + "_") + toString(auctionStart)) + "_") + toString(auctionDurationBlocks)) + "_") + toString(blocksForExecution)) + "_") + pmtAssetName) + "_") + toString(auctionPrice))), DataEntry((pmtAssetName + "_Freezed"), newFreezedBalance)])
168+ WriteSet([DataEntry((auctionId + "_State"), auctionId), DataEntry((auctionId + "_Info"), auctionInfo), DataEntry((auctionId + "_Client"), 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)])
174169 }
175170
176171
179174 func makeBid (auctionId,betPrice) = {
180175 let callerPub = toBase58String(i.callerPublicKey)
181176 let betTime = height
182- let AuctionIdKey = AuctionIdDataKey(auctionId)
183- let auctionDataList = getDataList(AuctionIdKey)
184- let auctionState = auctionDataList[0]
185- let auctionInfo = auctionDataList[1]
186- let auctionCustomer = fromBase58String(auctionDataList[2])
187- let auctionStart = parseIntValue(auctionDataList[3])
188- let auctionDuration = parseIntValue(auctionDataList[4])
189- let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
190- let auctionAssetName = auctionDataList[6]
191- let auctionPrice = parseIntValue(auctionDataList[7])
177+ let auctionState = {
178+ let valueState = getString(this, (auctionId + "_State"))
179+ match valueState {
180+ case a: String =>
181+ a
182+ case _ =>
183+ throw("Auction State was not found")
184+ }
185+ }
186+ let auctionInfo = {
187+ let valueAuctionInfo = getString(this, (auctionId + "_Info"))
188+ match valueAuctionInfo {
189+ case a: String =>
190+ a
191+ case _ =>
192+ throw("Auction info was not found")
193+ }
194+ }
195+ let auctionClient = {
196+ let valueClient = getString(this, (auctionId + "_Client"))
197+ let a = match valueClient {
198+ case a: String =>
199+ a
200+ case _ =>
201+ throw("Auction Client was not found")
202+ }
203+ fromBase58String(a)
204+ }
205+ let auctionStart = {
206+ let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart"))
207+ match valueAuctionStart {
208+ case a: Int =>
209+ a
210+ case _ =>
211+ throw("Auction Start time was not found")
212+ }
213+ }
214+ let auctionDuration = {
215+ let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration"))
216+ match valueauctionDuration {
217+ case a: Int =>
218+ a
219+ case _ =>
220+ throw("Auction duration time was not found")
221+ }
222+ }
223+ let auctionBlocksForExecution = {
224+ let valueBlocksForExecution = getInteger(this, (auctionId + "JobPerformance"))
225+ match valueBlocksForExecution {
226+ case a: Int =>
227+ a
228+ case _ =>
229+ throw("Auction job performance time was not found")
230+ }
231+ }
232+ let auctionAssetName = {
233+ let valueAssetName = getString(this, (auctionId + "_AssetName"))
234+ match valueAssetName {
235+ case a: String =>
236+ a
237+ case _ =>
238+ throw("Auction asset name was not found")
239+ }
240+ }
241+ let auctionPrice = {
242+ let valuePrice = getInteger(this, (auctionId + "_Price"))
243+ match valuePrice {
244+ case a: Int =>
245+ a
246+ case _ =>
247+ throw("Auction price was not found")
248+ }
249+ }
192250 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
193- let newBid = betPriceCheck(betPrice, auctionPrice)
194251 let newFreelancer = freelancerIsRegistered(callerPub)
195252 let dAppCommission = ((auctionPrice * 3) / 100)
196253 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
197254 let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration)
198255 if (auctionTimeisOver)
199256 then if ((auctionState == stateOpen))
200- then ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + "NoFreelancer") + "_") + "NoBid")), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionCustomer), (auctionPrice - dAppCommission), auctionAssetId58)]))
257+ then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (auctionPrice - dAppCommission), auctionAssetId58)]))
201258 else if ((auctionState == stateSuggested))
202259 then {
203- let auctionFreelancer = auctionDataList[8]
204- WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + auctionFreelancer))])
260+ let auctionLowestBidder = {
261+ let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
262+ match valueLowestBidder {
263+ case a: String =>
264+ a
265+ case _ =>
266+ throw("Auction lowest bidder was not found")
267+ }
268+ }
269+ let newAuctionPrice = {
270+ let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder))
271+ match valueNewAuctionPrice {
272+ case a: Int =>
273+ a
274+ case _ =>
275+ throw("Auction lowest bid was not found")
276+ }
277+ }
278+ let amountDifference = ((auctionPrice - newAuctionPrice) - dAppCommission)
279+ ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_Freelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)]))
205280 }
206281 else throw("Incorrect auction state")
207282 else if ((auctionState == stateOpen))
208- then WriteSet([DataEntry(((auctionId + "_") + newFreelancer), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newFreelancer))])
283+ then WriteSet([DataEntry(((auctionId + "_Bid_") + newFreelancer), betPrice), DataEntry((auctionId + "_State"), stateSuggested), DataEntry((auctionId + "_LowestBidderPub"), callerPub), DataEntry((auctionId + callerPub), betPrice)])
209284 else if ((auctionState == stateSuggested))
210285 then {
211- let auctionLowestBidder = auctionDataList[8]
212- let newAuctionLowestBidder = {
213- let keyCurrentLowestBid = ((auctionId + "_") + auctionLowestBidder)
214- let valueCurrentLowestBid = getInteger(this, keyCurrentLowestBid)
286+ let currentLowestBidderPub = {
287+ let lowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
288+ match lowestBidder {
289+ case a: String =>
290+ a
291+ case _ =>
292+ throw("Auction lowest bidder was not found")
293+ }
294+ }
295+ let newLowestBidderPub = {
296+ let valueCurrentLowestBid = getInteger(this, ((auctionId + "_Bid_") + currentLowestBidderPub))
215297 let currentLowestBid = match valueCurrentLowestBid {
216298 case a: Int =>
217299 a
218300 case _ =>
219- throw("Can't find lowest bid by public key")
301+ throw("Auction lowest bid was not found")
220302 }
221- if ((currentLowestBid > newBid))
303+ if ((currentLowestBid > betPrice))
222304 then newFreelancer
223- else auctionLowestBidder
305+ else currentLowestBidderPub
224306 }
225- WriteSet([DataEntry(((auctionId + "_Bid_") + callerPub), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newAuctionLowestBidder))])
307+ WriteSet([DataEntry((auctionId + "_LowestBidderPub"), newLowestBidderPub), DataEntry(((auctionId + "_Bid_") + newFreelancer), betPrice)])
226308 }
227309 else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested))
228310 }
233315 func chooseFreelancer (auctionId,freelancerPub) = {
234316 let callerPub = extract(i.callerPublicKey)
235317 let betTime = height
236- let AuctionIdKey = AuctionIdDataKey(auctionId)
237- let auctionDataList = getDataList(AuctionIdKey)
238- let auctionState = auctionDataList[0]
239- let auctionInfo = auctionDataList[1]
240- let auctionCustomer = fromBase58String(auctionDataList[2])
241- let auctionStart = parseIntValue(auctionDataList[3])
242- let auctionDuration = parseIntValue(auctionDataList[4])
243- let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
244- let auctionAssetName = auctionDataList[6]
245- let auctionPrice = parseIntValue(auctionDataList[7])
318+ let auctionState = {
319+ let valueState = getString(this, (auctionId + "_State"))
320+ match valueState {
321+ case a: String =>
322+ a
323+ case _ =>
324+ throw("Auction State was not found")
325+ }
326+ }
327+ let auctionClient = {
328+ let valueClient = getString(this, (auctionId + "_Client"))
329+ let a = match valueClient {
330+ case a: String =>
331+ a
332+ case _ =>
333+ throw("Auction Client was not found")
334+ }
335+ fromBase58String(a)
336+ }
337+ let auctionStart = {
338+ let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart"))
339+ match valueAuctionStart {
340+ case a: Int =>
341+ a
342+ case _ =>
343+ throw("Auction Start time was not found")
344+ }
345+ }
346+ let auctionDuration = {
347+ let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration"))
348+ match valueauctionDuration {
349+ case a: Int =>
350+ a
351+ case _ =>
352+ throw("Auction duration time was not found")
353+ }
354+ }
355+ let auctionAssetName = {
356+ let valueAssetName = getString(this, (auctionId + "_AssetName"))
357+ match valueAssetName {
358+ case a: String =>
359+ a
360+ case _ =>
361+ throw("Auction asset name was not found")
362+ }
363+ }
364+ let auctionPrice = {
365+ let valuePrice = getInteger(this, (auctionId + "_Price"))
366+ match valuePrice {
367+ case a: Int =>
368+ a
369+ case _ =>
370+ throw("Auction price was not found")
371+ }
372+ }
246373 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
247- let FreelancerBidAmount = {
374+ let freelancerBidAmount = {
248375 let keyFreelancerBid = ((auctionId + "_") + freelancerPub)
249376 let valueFreelacerBid = getInteger(this, keyFreelancerBid)
250377 match valueFreelacerBid {
254381 throw("Freelancer's bet was not found")
255382 }
256383 }
384+ let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
257385 let dAppCommission = ((auctionPrice * 3) / 100)
258- let amountDifference = ((auctionPrice - FreelancerBidAmount) - dAppCommission)
386+ let amountDifference = ((auctionPrice - freelancerBidAmount) - dAppCommission)
259387 let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration)
260- if ((callerPub == auctionCustomer))
388+ if ((callerPub == auctionClient))
261389 then if (auctionTimeisOver)
262390 then if ((auctionState == stateOpen))
263- 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)]))
391+ then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (auctionPrice - dAppCommission), auctionAssetId58)]))
264392 else if ((auctionState == stateSuggested))
265- then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))])
393+ then {
394+ let auctionLowestBidder = {
395+ let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
396+ match valueLowestBidder {
397+ case a: String =>
398+ a
399+ case _ =>
400+ throw("Auction lowest bidder was not found")
401+ }
402+ }
403+ let newAuctionPrice = {
404+ let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder))
405+ match valueNewAuctionPrice {
406+ case a: Int =>
407+ a
408+ case _ =>
409+ throw("Auction lowest bid was not found")
410+ }
411+ }
412+ WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_Freelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice)])
413+ }
266414 else throw("Incorrect auction state")
267- 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)]))
415+ else {
416+ let setNewFreelancer = {
417+ let newFreelancer = getInteger(this, ((auctionId + "_Bid_") + freelancerPub))
418+ match newFreelancer {
419+ case a: Int =>
420+ freelancerPub
421+ case _ =>
422+ throw("Error: Incorrect freelancerPub")
423+ }
424+ }
425+ let setNewPrice = {
426+ let lowestBidder = getInteger(this, ((auctionId + "_Bid_") + freelancerPub))
427+ match lowestBidder {
428+ case a: Int =>
429+ a
430+ case _ =>
431+ throw("Auction lowest bidder was not found")
432+ }
433+ }
434+ ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_Freelancer"), setNewFreelancer), DataEntry((auctionId + "_Price"), setNewPrice)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)]))
435+ }
268436 else throw("Only auction customer can choose a freelancer")
269437 }
270438
276444 let AuctionIdKey = AuctionIdDataKey(auctionId)
277445 let auctionDataList = getDataList(AuctionIdKey)
278446 let auctionState = auctionDataList[0]
279- let auctionInfo = auctionDataList[1]
280- let auctionCustomer = fromBase58String(auctionDataList[2])
447+ let auctionClient = {
448+ let valueClient = getString(this, (auctionId + "_Client"))
449+ let a = match valueClient {
450+ case a: String =>
451+ a
452+ case _ =>
453+ throw("Auction Client was not found")
454+ }
455+ fromBase58String(a)
456+ }
281457 let auctionStart = parseIntValue(auctionDataList[3])
282458 let auctionDuration = parseIntValue(auctionDataList[4])
283459 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
289465 then newAuctionBlocksForExecution
290466 else throw("New execution time must more than current execution time")
291467 }
292- if ((caller == auctionCustomer))
468+ if ((caller == auctionClient))
293469 then if ((auctionState == stateOpen))
294- then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))])
470+ then WriteSet([DataEntry(AuctionIdKey, ((((((((((((auctionState + "_") + toBase58String(auctionClient)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))])
295471 else if (if ((auctionState == stateSuggested))
296472 then true
297473 else (auctionState == stateInProgress))
298474 then {
299475 let freelancerPub = auctionDataList[7]
300- WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + freelancerPub))])
476+ WriteSet([DataEntry(AuctionIdKey, ((((((((((((((auctionState + "_") + toBase58String(auctionClient)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + freelancerPub))])
301477 }
302478 else throw("Incorrect state")
303479 else throw("Only customer can increase execution time")
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
83-func betPriceCheck (betPrice,auctionPrice) = if ((auctionPrice > betPrice))
84- then betPrice
85- else throw(("Bet price must be lower than actual price. Actual price: " + toString(auctionPrice)))
86-
87-
8883 func timeCheck (currentTime,startTime,expirationTime) = ((currentTime - startTime) > expirationTime)
8984
9085
9186 func increaseFreezedBalance (pmtAssetName,auctionPrice) = {
9287 let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed"))
9388 let currentFreezedBalance = match keyFreezedFunds {
9489 case a: Int =>
9590 a
9691 case _ =>
9792 0
9893 }
9994 (currentFreezedBalance + auctionPrice)
10095 }
10196
10297
10398 func decreaseFreezedBalance (pmtAssetName,auctionPrice) = {
10499 let keyFreezedFunds = getInteger(this, (pmtAssetName + "_Freezed"))
105100 let currentFreezedBalance = match keyFreezedFunds {
106101 case a: Int =>
107102 a
108103 case _ =>
109104 0
110105 }
111106 let a = (currentFreezedBalance - auctionPrice)
112107 if ((a > 0))
113108 then a
114109 else throw("Freezed amount couldn't be less than 0")
115110 }
116111
117112
118113 func freelancerIsRegistered (callerPub) = {
119114 let freelancerIsRegistered = getString(this, (callerPub + "_Freelancer"))
120115 match freelancerIsRegistered {
121116 case a: String =>
122117 callerPub
123118 case _ =>
124119 throw("Only registered users can make bets")
125120 }
126121 }
127122
128123
129124 @Callable(i)
130125 func freelancerSignUp (info) = {
131126 let userPublicKey = toBase58String(i.callerPublicKey)
132127 let alreadyRegistered = getString(this, (userPublicKey + "_Freelancer"))
133128 if (isDefined(alreadyRegistered))
134129 then throw("User already registered")
135130 else WriteSet([DataEntry((userPublicKey + "_Freelancer"), info)])
136131 }
137132
138133
139134
140135 @Callable(i)
141136 func clientSignUp (info) = {
142137 let userPublicKey = toBase58String(i.callerPublicKey)
143138 let alreadyRegistered = getString(this, (userPublicKey + "_Client"))
144139 if (isDefined(alreadyRegistered))
145140 then throw("User already registered")
146141 else WriteSet([DataEntry((userPublicKey + "_Client"), info)])
147142 }
148143
149144
150145
151146 @Callable(i)
152147 func createAuction (jobExecutionDays,auctionDurationDays,auctionInfo) = {
153148 let auctionId = toBase58String(i.transactionId)
154- let auctionCustomer = toBase58String(i.callerPublicKey)
149+ let auctionClient = toBase58String(i.callerPublicKey)
155150 let pmt = extract(i.payment)
156151 let pmtAmount = pmt.amount
157152 let auctionPrice = if ((pmtAmount > 0))
158153 then pmtAmount
159154 else throw("Amount must be higher then 0")
160155 let auctionStart = height
161156 let auctionDurationBlocks = (auctionDurationDays * day)
162157 let blocksForExecution = (jobExecutionDays * day)
163158 let pmtAssetName = if (!(isDefined(pmt.assetId)))
164159 then "WAVES"
165160 else if ((pmt.assetId == wBTC))
166161 then "BTC"
167162 else if ((pmt.assetId == wEUR))
168163 then "EUR"
169164 else if ((pmt.assetId == wUSD))
170165 then "USD"
171166 else throw("AssetId is incorrect")
172167 let newFreezedBalance = increaseFreezedBalance(pmtAssetName, auctionPrice)
173- WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((((((((((((((stateOpen + "_") + auctionInfo) + "_") + auctionCustomer) + "_") + toString(auctionStart)) + "_") + toString(auctionDurationBlocks)) + "_") + toString(blocksForExecution)) + "_") + pmtAssetName) + "_") + toString(auctionPrice))), DataEntry((pmtAssetName + "_Freezed"), newFreezedBalance)])
168+ WriteSet([DataEntry((auctionId + "_State"), auctionId), DataEntry((auctionId + "_Info"), auctionInfo), DataEntry((auctionId + "_Client"), 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)])
174169 }
175170
176171
177172
178173 @Callable(i)
179174 func makeBid (auctionId,betPrice) = {
180175 let callerPub = toBase58String(i.callerPublicKey)
181176 let betTime = height
182- let AuctionIdKey = AuctionIdDataKey(auctionId)
183- let auctionDataList = getDataList(AuctionIdKey)
184- let auctionState = auctionDataList[0]
185- let auctionInfo = auctionDataList[1]
186- let auctionCustomer = fromBase58String(auctionDataList[2])
187- let auctionStart = parseIntValue(auctionDataList[3])
188- let auctionDuration = parseIntValue(auctionDataList[4])
189- let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
190- let auctionAssetName = auctionDataList[6]
191- let auctionPrice = parseIntValue(auctionDataList[7])
177+ let auctionState = {
178+ let valueState = getString(this, (auctionId + "_State"))
179+ match valueState {
180+ case a: String =>
181+ a
182+ case _ =>
183+ throw("Auction State was not found")
184+ }
185+ }
186+ let auctionInfo = {
187+ let valueAuctionInfo = getString(this, (auctionId + "_Info"))
188+ match valueAuctionInfo {
189+ case a: String =>
190+ a
191+ case _ =>
192+ throw("Auction info was not found")
193+ }
194+ }
195+ let auctionClient = {
196+ let valueClient = getString(this, (auctionId + "_Client"))
197+ let a = match valueClient {
198+ case a: String =>
199+ a
200+ case _ =>
201+ throw("Auction Client was not found")
202+ }
203+ fromBase58String(a)
204+ }
205+ let auctionStart = {
206+ let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart"))
207+ match valueAuctionStart {
208+ case a: Int =>
209+ a
210+ case _ =>
211+ throw("Auction Start time was not found")
212+ }
213+ }
214+ let auctionDuration = {
215+ let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration"))
216+ match valueauctionDuration {
217+ case a: Int =>
218+ a
219+ case _ =>
220+ throw("Auction duration time was not found")
221+ }
222+ }
223+ let auctionBlocksForExecution = {
224+ let valueBlocksForExecution = getInteger(this, (auctionId + "JobPerformance"))
225+ match valueBlocksForExecution {
226+ case a: Int =>
227+ a
228+ case _ =>
229+ throw("Auction job performance time was not found")
230+ }
231+ }
232+ let auctionAssetName = {
233+ let valueAssetName = getString(this, (auctionId + "_AssetName"))
234+ match valueAssetName {
235+ case a: String =>
236+ a
237+ case _ =>
238+ throw("Auction asset name was not found")
239+ }
240+ }
241+ let auctionPrice = {
242+ let valuePrice = getInteger(this, (auctionId + "_Price"))
243+ match valuePrice {
244+ case a: Int =>
245+ a
246+ case _ =>
247+ throw("Auction price was not found")
248+ }
249+ }
192250 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
193- let newBid = betPriceCheck(betPrice, auctionPrice)
194251 let newFreelancer = freelancerIsRegistered(callerPub)
195252 let dAppCommission = ((auctionPrice * 3) / 100)
196253 let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
197254 let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration)
198255 if (auctionTimeisOver)
199256 then if ((auctionState == stateOpen))
200- then ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + "NoFreelancer") + "_") + "NoBid")), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionCustomer), (auctionPrice - dAppCommission), auctionAssetId58)]))
257+ then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (auctionPrice - dAppCommission), auctionAssetId58)]))
201258 else if ((auctionState == stateSuggested))
202259 then {
203- let auctionFreelancer = auctionDataList[8]
204- WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + auctionFreelancer))])
260+ let auctionLowestBidder = {
261+ let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
262+ match valueLowestBidder {
263+ case a: String =>
264+ a
265+ case _ =>
266+ throw("Auction lowest bidder was not found")
267+ }
268+ }
269+ let newAuctionPrice = {
270+ let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder))
271+ match valueNewAuctionPrice {
272+ case a: Int =>
273+ a
274+ case _ =>
275+ throw("Auction lowest bid was not found")
276+ }
277+ }
278+ let amountDifference = ((auctionPrice - newAuctionPrice) - dAppCommission)
279+ ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_Freelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)]))
205280 }
206281 else throw("Incorrect auction state")
207282 else if ((auctionState == stateOpen))
208- then WriteSet([DataEntry(((auctionId + "_") + newFreelancer), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newFreelancer))])
283+ then WriteSet([DataEntry(((auctionId + "_Bid_") + newFreelancer), betPrice), DataEntry((auctionId + "_State"), stateSuggested), DataEntry((auctionId + "_LowestBidderPub"), callerPub), DataEntry((auctionId + callerPub), betPrice)])
209284 else if ((auctionState == stateSuggested))
210285 then {
211- let auctionLowestBidder = auctionDataList[8]
212- let newAuctionLowestBidder = {
213- let keyCurrentLowestBid = ((auctionId + "_") + auctionLowestBidder)
214- let valueCurrentLowestBid = getInteger(this, keyCurrentLowestBid)
286+ let currentLowestBidderPub = {
287+ let lowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
288+ match lowestBidder {
289+ case a: String =>
290+ a
291+ case _ =>
292+ throw("Auction lowest bidder was not found")
293+ }
294+ }
295+ let newLowestBidderPub = {
296+ let valueCurrentLowestBid = getInteger(this, ((auctionId + "_Bid_") + currentLowestBidderPub))
215297 let currentLowestBid = match valueCurrentLowestBid {
216298 case a: Int =>
217299 a
218300 case _ =>
219- throw("Can't find lowest bid by public key")
301+ throw("Auction lowest bid was not found")
220302 }
221- if ((currentLowestBid > newBid))
303+ if ((currentLowestBid > betPrice))
222304 then newFreelancer
223- else auctionLowestBidder
305+ else currentLowestBidderPub
224306 }
225- WriteSet([DataEntry(((auctionId + "_Bid_") + callerPub), betPrice), DataEntry(AuctionIdKey, ((((((((((((((((stateSuggested + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + newAuctionLowestBidder))])
307+ WriteSet([DataEntry((auctionId + "_LowestBidderPub"), newLowestBidderPub), DataEntry(((auctionId + "_Bid_") + newFreelancer), betPrice)])
226308 }
227309 else throw(((((("Incorrect jobId state. Now: " + auctionState) + ", must be: ") + stateOpen) + " or ") + stateSuggested))
228310 }
229311
230312
231313
232314 @Callable(i)
233315 func chooseFreelancer (auctionId,freelancerPub) = {
234316 let callerPub = extract(i.callerPublicKey)
235317 let betTime = height
236- let AuctionIdKey = AuctionIdDataKey(auctionId)
237- let auctionDataList = getDataList(AuctionIdKey)
238- let auctionState = auctionDataList[0]
239- let auctionInfo = auctionDataList[1]
240- let auctionCustomer = fromBase58String(auctionDataList[2])
241- let auctionStart = parseIntValue(auctionDataList[3])
242- let auctionDuration = parseIntValue(auctionDataList[4])
243- let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
244- let auctionAssetName = auctionDataList[6]
245- let auctionPrice = parseIntValue(auctionDataList[7])
318+ let auctionState = {
319+ let valueState = getString(this, (auctionId + "_State"))
320+ match valueState {
321+ case a: String =>
322+ a
323+ case _ =>
324+ throw("Auction State was not found")
325+ }
326+ }
327+ let auctionClient = {
328+ let valueClient = getString(this, (auctionId + "_Client"))
329+ let a = match valueClient {
330+ case a: String =>
331+ a
332+ case _ =>
333+ throw("Auction Client was not found")
334+ }
335+ fromBase58String(a)
336+ }
337+ let auctionStart = {
338+ let valueAuctionStart = getInteger(this, (auctionId + "_AuctionStart"))
339+ match valueAuctionStart {
340+ case a: Int =>
341+ a
342+ case _ =>
343+ throw("Auction Start time was not found")
344+ }
345+ }
346+ let auctionDuration = {
347+ let valueauctionDuration = getInteger(this, (auctionId + "_AuctionDuration"))
348+ match valueauctionDuration {
349+ case a: Int =>
350+ a
351+ case _ =>
352+ throw("Auction duration time was not found")
353+ }
354+ }
355+ let auctionAssetName = {
356+ let valueAssetName = getString(this, (auctionId + "_AssetName"))
357+ match valueAssetName {
358+ case a: String =>
359+ a
360+ case _ =>
361+ throw("Auction asset name was not found")
362+ }
363+ }
364+ let auctionPrice = {
365+ let valuePrice = getInteger(this, (auctionId + "_Price"))
366+ match valuePrice {
367+ case a: Int =>
368+ a
369+ case _ =>
370+ throw("Auction price was not found")
371+ }
372+ }
246373 let auctionAssetId58 = AssetNameToBase58(auctionAssetName)
247- let FreelancerBidAmount = {
374+ let freelancerBidAmount = {
248375 let keyFreelancerBid = ((auctionId + "_") + freelancerPub)
249376 let valueFreelacerBid = getInteger(this, keyFreelancerBid)
250377 match valueFreelacerBid {
251378 case a: Int =>
252379 a
253380 case _ =>
254381 throw("Freelancer's bet was not found")
255382 }
256383 }
384+ let newFreezedBalance = decreaseFreezedBalance(auctionAssetName, auctionPrice)
257385 let dAppCommission = ((auctionPrice * 3) / 100)
258- let amountDifference = ((auctionPrice - FreelancerBidAmount) - dAppCommission)
386+ let amountDifference = ((auctionPrice - freelancerBidAmount) - dAppCommission)
259387 let auctionTimeisOver = timeCheck(betTime, auctionStart, auctionDuration)
260- if ((callerPub == auctionCustomer))
388+ if ((callerPub == auctionClient))
261389 then if (auctionTimeisOver)
262390 then if ((auctionState == stateOpen))
263- 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)]))
391+ then ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateCancel), DataEntry((auctionAssetName + "_Freezed"), newFreezedBalance)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), (auctionPrice - dAppCommission), auctionAssetId58)]))
264392 else if ((auctionState == stateSuggested))
265- then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateInProgress + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))])
393+ then {
394+ let auctionLowestBidder = {
395+ let valueLowestBidder = getString(this, (auctionId + "_LowestBidderPub"))
396+ match valueLowestBidder {
397+ case a: String =>
398+ a
399+ case _ =>
400+ throw("Auction lowest bidder was not found")
401+ }
402+ }
403+ let newAuctionPrice = {
404+ let valueNewAuctionPrice = getInteger(this, ((auctionId + "_Bid_") + auctionLowestBidder))
405+ match valueNewAuctionPrice {
406+ case a: Int =>
407+ a
408+ case _ =>
409+ throw("Auction lowest bid was not found")
410+ }
411+ }
412+ WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_Freelancer"), auctionLowestBidder), DataEntry((auctionId + "_Price"), newAuctionPrice)])
413+ }
266414 else throw("Incorrect auction state")
267- 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)]))
415+ else {
416+ let setNewFreelancer = {
417+ let newFreelancer = getInteger(this, ((auctionId + "_Bid_") + freelancerPub))
418+ match newFreelancer {
419+ case a: Int =>
420+ freelancerPub
421+ case _ =>
422+ throw("Error: Incorrect freelancerPub")
423+ }
424+ }
425+ let setNewPrice = {
426+ let lowestBidder = getInteger(this, ((auctionId + "_Bid_") + freelancerPub))
427+ match lowestBidder {
428+ case a: Int =>
429+ a
430+ case _ =>
431+ throw("Auction lowest bidder was not found")
432+ }
433+ }
434+ ScriptResult(WriteSet([DataEntry((auctionId + "_State"), stateInProgress), DataEntry((auctionId + "_Freelancer"), setNewFreelancer), DataEntry((auctionId + "_Price"), setNewPrice)]), TransferSet([ScriptTransfer(addressFromPublicKey(auctionClient), amountDifference, auctionAssetId58)]))
435+ }
268436 else throw("Only auction customer can choose a freelancer")
269437 }
270438
271439
272440
273441 @Callable(i)
274442 func increaseExecutionTime (auctionId,executionDays) = {
275443 let caller = extract(i.callerPublicKey)
276444 let AuctionIdKey = AuctionIdDataKey(auctionId)
277445 let auctionDataList = getDataList(AuctionIdKey)
278446 let auctionState = auctionDataList[0]
279- let auctionInfo = auctionDataList[1]
280- let auctionCustomer = fromBase58String(auctionDataList[2])
447+ let auctionClient = {
448+ let valueClient = getString(this, (auctionId + "_Client"))
449+ let a = match valueClient {
450+ case a: String =>
451+ a
452+ case _ =>
453+ throw("Auction Client was not found")
454+ }
455+ fromBase58String(a)
456+ }
281457 let auctionStart = parseIntValue(auctionDataList[3])
282458 let auctionDuration = parseIntValue(auctionDataList[4])
283459 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
284460 let auctionAssetName = auctionDataList[6]
285461 let auctionPrice = parseIntValue(auctionDataList[7])
286462 let newAuctionExecutionTime = {
287463 let newAuctionBlocksForExecution = (executionDays * day)
288464 if ((newAuctionBlocksForExecution > auctionBlocksForExecution))
289465 then newAuctionBlocksForExecution
290466 else throw("New execution time must more than current execution time")
291467 }
292- if ((caller == auctionCustomer))
468+ if ((caller == auctionClient))
293469 then if ((auctionState == stateOpen))
294- then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))])
470+ then WriteSet([DataEntry(AuctionIdKey, ((((((((((((auctionState + "_") + toBase58String(auctionClient)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))])
295471 else if (if ((auctionState == stateSuggested))
296472 then true
297473 else (auctionState == stateInProgress))
298474 then {
299475 let freelancerPub = auctionDataList[7]
300- WriteSet([DataEntry(AuctionIdKey, ((((((((((((((((auctionState + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + freelancerPub))])
476+ WriteSet([DataEntry(AuctionIdKey, ((((((((((((((auctionState + "_") + toBase58String(auctionClient)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + freelancerPub))])
301477 }
302478 else throw("Incorrect state")
303479 else throw("Only customer can increase execution time")
304480 }
305481
306482
307483
308484 @Callable(i)
309485 func cancelAuction (auctionId) = {
310486 let AuctionIdKey = AuctionIdDataKey(auctionId)
311487 let auctionDataList = getDataList(AuctionIdKey)
312488 let auctionState = auctionDataList[0]
313489 let auctionInfo = auctionDataList[1]
314490 let auctionCustomer = fromBase58String(auctionDataList[2])
315491 let auctionStart = parseIntValue(auctionDataList[3])
316492 let auctionDuration = parseIntValue(auctionDataList[4])
317493 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
318494 let auctionAssetName = auctionDataList[6]
319495 let auctionPrice = parseIntValue(auctionDataList[7])
320496 let auctionIdOwnerCheck = if ((i.callerPublicKey == auctionCustomer))
321497 then true
322498 else throw("Auction can be canceled only by owner.")
323499 if ((auctionState == stateOpen))
324500 then WriteSet([DataEntry(AuctionIdKey, ((((((((((((((stateCancel + "_") + auctionInfo) + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)))])
325501 else throw("Incorrect auction state.")
326502 }
327503
328504
329505
330506 @Callable(i)
331507 func openDispute (auctionId) = {
332508 let caller = extract(i.callerPublicKey)
333509 let AuctionIdKey = AuctionIdDataKey(auctionId)
334510 let auctionDataList = getDataList(AuctionIdKey)
335511 let auctionState = auctionDataList[0]
336512 let auctionInfo = auctionDataList[1]
337513 let auctionCustomer = fromBase58String(auctionDataList[2])
338514 let auctionStart = parseIntValue(auctionDataList[3])
339515 let auctionDuration = parseIntValue(auctionDataList[4])
340516 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
341517 let auctionAssetName = auctionDataList[6]
342518 let auctionPrice = parseIntValue(auctionDataList[7])
343519 let auctionFreelancer = fromBase58String(auctionDataList[8])
344520 if (if ((caller == auctionCustomer))
345521 then true
346522 else (caller == auctionFreelancer))
347523 then {
348524 let dataString = "1"
349525 WriteSet([DataEntry(AuctionIdKey, ((((stateDispute + "_") + auctionInfo) + "_") + dataString)), DataEntry((auctionId + "_Dispute"), "0")])
350526 }
351527 else throw("Only customer and freelancer can open dispute")
352528 }
353529
354530
355531
356532 @Callable(i)
357533 func voteDispute (auctionId,vote) = {
358534 let AuctionIdKey = AuctionIdDataKey(auctionId)
359535 let auctionDataList = getDataList(AuctionIdKey)
360536 let auctionState = auctionDataList[0]
361537 let auctionInfo = auctionDataList[1]
362538 let auctionCustomer = fromBase58String(auctionDataList[2])
363539 let auctionStart = parseIntValue(auctionDataList[3])
364540 let auctionDuration = parseIntValue(auctionDataList[4])
365541 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
366542 let auctionAssetName = auctionDataList[6]
367543 let auctionPrice = parseIntValue(auctionDataList[7])
368544 let auctionFreelancer = fromBase58String(auctionDataList[8])
369545 let comission = ((auctionPrice * 3) / 100)
370546 let auctionStateCheck = if ((auctionState == stateDispute))
371547 then true
372548 else throw(("Incorrect state. Must be: " + stateDispute))
373549 let newVote = if (if ((vote == customer))
374550 then true
375551 else (vote == freelancer))
376552 then vote
377553 else throw(((("Vote is incorrect. Must be: " + customer) + " or ") + freelancer))
378554 let newVoter = if (if (if (if (if ((i.callerPublicKey == ambassador1))
379555 then true
380556 else (i.callerPublicKey == ambassador2))
381557 then true
382558 else (i.callerPublicKey == ambassador3))
383559 then true
384560 else (i.callerPublicKey == ambassador4))
385561 then true
386562 else (i.callerPublicKey == ambassador5))
387563 then toBase58String(i.callerPublicKey)
388564 else throw("You have no rights for disputes resolving")
389565 let disputeData = {
390566 let keyDispute = ((auctionId + "_") + stateDispute)
391567 let valueDispute = getString(this, keyDispute)
392568 match valueDispute {
393569 case a: String =>
394570 a
395571 case _ =>
396572 throw("Cannot find data of dispute in storage")
397573 }
398574 }
399575 let disputeDataList = split(disputeData, "/")
400576 let votesCounter = disputeDataList[0]
401577 if ((votesCounter == "4"))
402578 then {
403579 let votersList = split(disputeDataList[1], "_")
404580 let votesList = split(disputeDataList[2], "_")
405581 let alreadyVoted = if ((newVoter == votersList[0]))
406582 then true
407583 else (newVoter == votersList[1])
408584 if (alreadyVoted)
409585 then throw("You already voted")
410586 else {
411587 let newVotesCounter = "5"
412588 let newVoters = ((disputeDataList[1] + "_") + newVoter)
413589 let newVotes = ((disputeDataList[2] + "_") + newVote)
414590 let newDisputeDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes)
415591 let disputeWinner = {
416592 let vote1 = if ((votesList[0] == customer))
417593 then 1
418594 else 0
419595 let vote2 = if ((votesList[1] == customer))
420596 then 1
421597 else 0
422598 let vote3 = if ((votesList[2] == customer))
423599 then 1
424600 else 0
425601 let vote4 = if ((votesList[3] == customer))
426602 then 1
427603 else 0
428604 let vote5 = if ((newVote == customer))
429605 then 1
430606 else 0
431607 let customerVotes = ((((vote1 + vote2) + vote3) + vote4) + vote5)
432608 if ((customerVotes > 2))
433609 then customer
434610 else freelancer
435611 }
436612 let newDataString = ((((((((((((((auctionInfo + "_") + toBase58String(auctionCustomer)) + "_") + toString(auctionStart)) + "_") + toString(auctionDuration)) + "_") + toString(auctionBlocksForExecution)) + "_") + auctionAssetName) + "_") + toString(auctionPrice)) + "_") + toBase58String(auctionFreelancer))
437613 let disputeWinnerPublic = if ((disputeWinner == customer))
438614 then auctionCustomer
439615 else auctionFreelancer
440616 let amountWithoutComm = if ((disputeWinnerPublic == auctionCustomer))
441617 then (auctionPrice - comission)
442618 else ((auctionPrice - comission) - comission)
443619 ScriptResult(WriteSet([DataEntry(AuctionIdDataKey(auctionId), ((stateDisputeResolved + "_") + newDataString)), DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)]), TransferSet([ScriptTransfer(addressFromPublicKey(disputeWinnerPublic), amountWithoutComm, AssetNameToBase58(auctionAssetName))]))
444620 }
445621 }
446622 else {
447623 let newDisputeDataString = if ((votesCounter == "0"))
448624 then {
449625 let newVotesCounter = "1"
450626 let newVoters = newVoter
451627 let newVotes = newVote
452628 let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes)
453629 newDataString
454630 }
455631 else if ((votesCounter == "1"))
456632 then {
457633 let voter1 = disputeDataList[1]
458634 let vote1 = disputeDataList[2]
459635 let alreadyVoted = (newVoter == voter1)
460636 if (alreadyVoted)
461637 then throw("You already voted")
462638 else {
463639 let newVotesCounter = "1"
464640 let newVoters = (voter1 + newVoter)
465641 let newVotes = (vote1 + newVote)
466642 let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes)
467643 newDataString
468644 }
469645 }
470646 else if ((votesCounter == "2"))
471647 then {
472648 let votersList = split(disputeDataList[1], "_")
473649 let votesList = split(disputeDataList[2], "_")
474650 let alreadyVoted = if ((newVoter == votersList[0]))
475651 then true
476652 else (newVoter == votersList[1])
477653 if (alreadyVoted)
478654 then throw("You already voted")
479655 else {
480656 let newVotesCounter = "3"
481657 let newVoters = ((disputeDataList[1] + "_") + newVoter)
482658 let newVotes = ((disputeDataList[2] + "_") + newVote)
483659 let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes)
484660 newDataString
485661 }
486662 }
487663 else if ((votesCounter == "3"))
488664 then {
489665 let votersList = split(disputeDataList[1], "_")
490666 let votesList = split(disputeDataList[2], "_")
491667 let alreadyVoted = if (if ((newVoter == votersList[0]))
492668 then true
493669 else (newVoter == votersList[1]))
494670 then true
495671 else (newVoter == votersList[2])
496672 if (alreadyVoted)
497673 then throw("You already voted")
498674 else {
499675 let newVotesCounter = "4"
500676 let newVoters = ((disputeDataList[1] + "_") + newVoter)
501677 let newVotes = ((disputeDataList[2] + "_") + newVote)
502678 let newDataString = ((((newVotesCounter + "/") + newVoters) + "/") + newVotes)
503679 newDataString
504680 }
505681 }
506682 else throw("Dispute has been already resolved")
507683 WriteSet([DataEntry(((auctionId + "_") + stateDispute), newDisputeDataString)])
508684 }
509685 }
510686
511687
512688
513689 @Callable(i)
514690 func workHandOver (auctionId) = {
515691 let callerPub = extract(i.callerPublicKey)
516692 let AuctionIdKey = AuctionIdDataKey(auctionId)
517693 let auctionDataList = getDataList(AuctionIdKey)
518694 let auctionState = auctionDataList[0]
519695 let auctionInfo = auctionDataList[1]
520696 let auctionCustomer = fromBase58String(auctionDataList[2])
521697 let auctionStart = parseIntValue(auctionDataList[3])
522698 let auctionDuration = parseIntValue(auctionDataList[4])
523699 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
524700 let auctionAssetName = auctionDataList[6]
525701 let auctionPrice = parseIntValue(auctionDataList[7])
526702 let auctionFreelancer = fromBase58String(auctionDataList[8])
527703 let currentTime = height
528704 let freelancerPubCheck = if ((callerPub == auctionFreelancer))
529705 then callerPub
530706 else throw("Only a freelancer can indicate that the work is done")
531707 let timeIsOver = ((currentTime - auctionStart) > auctionBlocksForExecution)
532708 if ((auctionState == stateInProgress))
533709 then if (timeIsOver)
534710 then {
535711 let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6])
536712 WriteSet([DataEntry(AuctionIdKey, ((((stateDispute + "_") + auctionInfo) + "_") + newDataString))])
537713 }
538714 else {
539715 let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6])
540716 WriteSet([DataEntry(AuctionIdKey, ((((stateWait4Confirm + "_") + auctionInfo) + "_") + newDataString))])
541717 }
542718 else throw("Auction state is incorrect")
543719 }
544720
545721
546722
547723 @Callable(i)
548724 func acceptWork (auctionId) = {
549725 let AuctionIdKey = AuctionIdDataKey(auctionId)
550726 let auctionDataList = getDataList(AuctionIdKey)
551727 let auctionState = auctionDataList[0]
552728 let auctionInfo = auctionDataList[1]
553729 let auctionCustomer = fromBase58String(auctionDataList[2])
554730 let auctionStart = parseIntValue(auctionDataList[3])
555731 let auctionDuration = parseIntValue(auctionDataList[4])
556732 let auctionBlocksForExecution = parseIntValue(auctionDataList[5])
557733 let auctionAssetName = auctionDataList[6]
558734 let auctionPrice = parseIntValue(auctionDataList[7])
559735 let auctionFreelancer = auctionDataList[2]
560736 let caller = extract(i.callerPublicKey)
561737 let dAppCommission = ((auctionPrice * 3) / 100)
562738 let amountWithoutComm = (auctionPrice - dAppCommission)
563739 let newRating = {
564740 let valueRating = getInteger(this, (auctionFreelancer + "_Rating"))
565741 let currentRating = match valueRating {
566742 case a: Int =>
567743 a
568744 case _ =>
569745 0
570746 }
571747 (currentRating + 1)
572748 }
573749 if ((caller == auctionCustomer))
574750 then if ((auctionState == stateWait4Confirm))
575751 then {
576752 let newDataString = ((((((((((auctionDataList[1] + "_") + auctionDataList[2]) + "_") + auctionDataList[3]) + "_") + auctionDataList[4]) + "_") + auctionDataList[5]) + "_") + auctionDataList[6])
577753 ScriptResult(WriteSet([DataEntry(AuctionIdKey, ((((stateComplete + "_") + auctionInfo) + "_") + newDataString)), DataEntry((auctionFreelancer + "_Rating"), newRating)]), TransferSet([ScriptTransfer(addressFromPublicKey(fromBase58String(auctionFreelancer)), amountWithoutComm, AssetNameToBase58(auctionAssetName))]))
578754 }
579755 else throw(("Incorrect state. Must be: " + stateWait4Confirm))
580756 else throw("Only auction customer can use this function")
581757 }
582758
583759
584760 @Verifier(tx)
585761 func verify () = if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
586762 then match tx {
587763 case ttx: TransferTransaction =>
588764 true
589765 case stx: SetScriptTransaction =>
590766 true
591767 case _ =>
592768 false
593769 }
594770 else false
595771

github/deemru/w8io/169f3d6 
142.17 ms