tx · 815rVuikumPyfBmtnVfVfz5mvGzMR3py6Vipgv5tUT3X 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk: -0.09000000 Waves 2021.06.19 22:18 [1577672] smart account 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk > SELF 0.00000000 Waves
{ "type": 13, "id": "815rVuikumPyfBmtnVfVfz5mvGzMR3py6Vipgv5tUT3X", "fee": 9000000, "feeAssetId": null, "timestamp": 1624130304502, "version": 2, "chainId": 84, "sender": "3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk", "senderPublicKey": "BfXK2ez9xjdgWtoFNsnaGPRFjHcFixy3UUrQ2iN8wVfX", "proofs": [ "3sQSr5uozEJdK3neW2TajhrcykT8t7NWQDbRfkJ9osXD5LWQX1Tqp1kji2R7qzcuPne87YMrtr6ecGQ5pzTquB9p" ], "script": "base64:AAIEAAAAAAAAABoIAhIHCgUICAEBARIECgIIARIHCgUIAQEBCAAAAAEBAAAAFmNyZWF0ZVBhcmtpbmdTcG90U2xpY2UAAAAEAAAADXBhcmtpbmdTcG90SWQAAAAJc3RhcnRUaW1lAAAAB2VuZFRpbWUAAAAFc2xpY2UJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADXBhcmtpbmdTcG90SWQCAAAAB19zbGljZV8JAAGkAAAAAQUAAAAFc2xpY2UCAAAACl9zdGFydFRpbWUFAAAACXN0YXJ0VGltZQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAANcGFya2luZ1Nwb3RJZAIAAAAHX3NsaWNlXwkAAaQAAAABBQAAAAVzbGljZQIAAAAIX2VuZFRpbWUFAAAAB2VuZFRpbWUJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADXBhcmtpbmdTcG90SWQCAAAAB19zb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VQYXlvdXQFAAAACXRvdGFsQ29zdAUAAAADbmlsCQEAAAAWY3JlYXRlUGFya2luZ1Nwb3RTbGljZQAAAAQFAAAADXBhcmtpbmdTcG90SWQFAAAAFHBhcmtpbmdTcG90U3RhcnRUaW1lBQAAAA9ib29rZWRTdGFydFRpbWUJAABkAAAAAgUAAAANZXhpc3RpbmdTbGljZQAAAAAAAAAAAQkBAAAAFmNyZWF0ZVBhcmtpbmdTcG90U2xpY2UAAAAEBQAAAA1wYXJraW5nU3BvdElkBQAAAA1ib29rZWRFbmRUaW1lBQAAABJwYXJraW5nU3BvdEVuZFRpbWUJAABkAAAAAgUAAAANZXhpc3RpbmdTbGljZQAAAAAAAAAAAgAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5NYFl+A==", "height": 1577672, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BBXyxmqazjyQk4fTAH12pwmQGJT5iwT9kJmDBB3MwgQ4 Next: 3L24tHNjvoX89Wq6sbzm9Wz4gZwpQS5GEQcr3msFg16b Diff:
Old | New | Differences | |
---|---|---|---|
8 | 8 | func createParkingSpot (lat,long,startTime,endTime,cost) = { | |
9 | 9 | let roundedStartTime = (startTime - (startTime % 3600)) | |
10 | 10 | let roundedEndTime = (endTime - (endTime % 3600)) | |
11 | - | ([StringEntry((toBase58String(i.transactionId) + "_owner"), toString(i.caller)), StringEntry((toBase58String(i.transactionId) + "_lat"), lat), StringEntry((toBase58String(i.transactionId) + "_long"), long), IntegerEntry((toBase58String(i.transactionId) + "_cost"), cost), IntegerEntry((toBase58String(i.transactionId) + "_slice"), 0), IntegerEntry((toBase58String(i.transactionId) + "_payoutTime"), (roundedEndTime + 3600)), IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), IntegerEntry((toBase58String(i.transactionId) + "_blockedPayout"), 0)] ++ createParkingSpotSlice(toBase58String(i.transactionId), roundedStartTime, roundedEndTime, 0)) | |
11 | + | ([StringEntry((toBase58String(i.transactionId) + "_owner"), toString(i.caller)), StringEntry((toBase58String(i.transactionId) + "_lat"), lat), StringEntry((toBase58String(i.transactionId) + "_long"), long), IntegerEntry((toBase58String(i.transactionId) + "_cost"), cost), IntegerEntry((toBase58String(i.transactionId) + "_slice"), 0), IntegerEntry((toBase58String(i.transactionId) + "_payoutTime"), (roundedEndTime + 3600)), IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), IntegerEntry((toBase58String(i.transactionId) + "_blockedPayout"), 0), IntegerEntry((toBase58String(i.transactionId) + "_blockedPayout"), 0)] ++ createParkingSpotSlice(toBase58String(i.transactionId), roundedStartTime, roundedEndTime, 0)) | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
22 | 22 | let sliceCost = ((costPerHour * (parkingSpotStartTime - parkingSpotEndTime)) / 3600) | |
23 | 23 | let owner = getStringValue(this, (parkingSpotId + "_owner")) | |
24 | 24 | let complaint = getString(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_complaint")) | |
25 | - | let payed = getBooleanValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_payed")) | |
25 | + | let payedParkingSpotSlice = getBooleanValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_payed")) | |
26 | + | let payedParkingSpot = getBoolean(this, (parkingSpotId + "_payed")) | |
26 | 27 | let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout")) | |
27 | 28 | let currentTime = lastBlock.timestamp | |
28 | 29 | if ((toString(i.caller) != owner)) | |
33 | 34 | then throw("you have to wait one hour, until you can receive the payment for this slice") | |
34 | 35 | else if ((complaint != unit)) | |
35 | 36 | then throw("there is an active complaint, please resolve it first") | |
36 | - | else if (( | |
37 | + | else if ((payedParkingSpotSlice == true)) | |
37 | 38 | then throw("slice has already been payed, denying payment") | |
38 | - | else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), (availablePayout - sliceCost)), ScriptTransfer(i.caller, sliceCost, unit), BooleanEntry((((parkingSpotId + "_slice_") + toString(slice)) + "_payed"), true)] | |
39 | + | else if ((payedParkingSpot == true)) | |
40 | + | then throw("whole parking spot has already been payed, denying payment") | |
41 | + | else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), (availablePayout - sliceCost)), ScriptTransfer(i.caller, sliceCost, unit), BooleanEntry((((parkingSpotId + "_slice_") + toString(slice)) + "_payed"), true)] | |
39 | 42 | } | |
40 | 43 | ||
41 | 44 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func createParkingSpotSlice (parkingSpotId,startTime,endTime,slice) = [IntegerEntry((((parkingSpotId + "_slice_") + toString(slice)) + "_startTime"), startTime), IntegerEntry((((parkingSpotId + "_slice_") + toString(slice)) + "_endTime"), endTime), BooleanEntry((((parkingSpotId + "_slice_") + toString(slice)) + "_payed"), false)] | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | @Callable(i) | |
8 | 8 | func createParkingSpot (lat,long,startTime,endTime,cost) = { | |
9 | 9 | let roundedStartTime = (startTime - (startTime % 3600)) | |
10 | 10 | let roundedEndTime = (endTime - (endTime % 3600)) | |
11 | - | ([StringEntry((toBase58String(i.transactionId) + "_owner"), toString(i.caller)), StringEntry((toBase58String(i.transactionId) + "_lat"), lat), StringEntry((toBase58String(i.transactionId) + "_long"), long), IntegerEntry((toBase58String(i.transactionId) + "_cost"), cost), IntegerEntry((toBase58String(i.transactionId) + "_slice"), 0), IntegerEntry((toBase58String(i.transactionId) + "_payoutTime"), (roundedEndTime + 3600)), IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), IntegerEntry((toBase58String(i.transactionId) + "_blockedPayout"), 0)] ++ createParkingSpotSlice(toBase58String(i.transactionId), roundedStartTime, roundedEndTime, 0)) | |
11 | + | ([StringEntry((toBase58String(i.transactionId) + "_owner"), toString(i.caller)), StringEntry((toBase58String(i.transactionId) + "_lat"), lat), StringEntry((toBase58String(i.transactionId) + "_long"), long), IntegerEntry((toBase58String(i.transactionId) + "_cost"), cost), IntegerEntry((toBase58String(i.transactionId) + "_slice"), 0), IntegerEntry((toBase58String(i.transactionId) + "_payoutTime"), (roundedEndTime + 3600)), IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), IntegerEntry((toBase58String(i.transactionId) + "_blockedPayout"), 0), IntegerEntry((toBase58String(i.transactionId) + "_blockedPayout"), 0)] ++ createParkingSpotSlice(toBase58String(i.transactionId), roundedStartTime, roundedEndTime, 0)) | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(i) | |
17 | 17 | func payoutParkingSpotSlice (parkingSpotId,slice) = { | |
18 | 18 | let parkingSpotStartTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_startTime")) | |
19 | 19 | let parkingSpotEndTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_endTime")) | |
20 | 20 | let parkingSpotPayoutTime = getIntegerValue(this, (parkingSpotId + "_payoutTime")) | |
21 | 21 | let costPerHour = getIntegerValue(this, (parkingSpotId + "_cost")) | |
22 | 22 | let sliceCost = ((costPerHour * (parkingSpotStartTime - parkingSpotEndTime)) / 3600) | |
23 | 23 | let owner = getStringValue(this, (parkingSpotId + "_owner")) | |
24 | 24 | let complaint = getString(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_complaint")) | |
25 | - | let payed = getBooleanValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_payed")) | |
25 | + | let payedParkingSpotSlice = getBooleanValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_payed")) | |
26 | + | let payedParkingSpot = getBoolean(this, (parkingSpotId + "_payed")) | |
26 | 27 | let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout")) | |
27 | 28 | let currentTime = lastBlock.timestamp | |
28 | 29 | if ((toString(i.caller) != owner)) | |
29 | 30 | then throw("caller does not match owner of parking spot") | |
30 | 31 | else if ((((currentTime / 1000) + 3600) > parkingSpotPayoutTime)) | |
31 | 32 | then throw("parking spot payout time is due, please cash out all slices at once") | |
32 | 33 | else if ((parkingSpotEndTime > ((currentTime / 1000) + 3600))) | |
33 | 34 | then throw("you have to wait one hour, until you can receive the payment for this slice") | |
34 | 35 | else if ((complaint != unit)) | |
35 | 36 | then throw("there is an active complaint, please resolve it first") | |
36 | - | else if (( | |
37 | + | else if ((payedParkingSpotSlice == true)) | |
37 | 38 | then throw("slice has already been payed, denying payment") | |
38 | - | else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), (availablePayout - sliceCost)), ScriptTransfer(i.caller, sliceCost, unit), BooleanEntry((((parkingSpotId + "_slice_") + toString(slice)) + "_payed"), true)] | |
39 | + | else if ((payedParkingSpot == true)) | |
40 | + | then throw("whole parking spot has already been payed, denying payment") | |
41 | + | else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), (availablePayout - sliceCost)), ScriptTransfer(i.caller, sliceCost, unit), BooleanEntry((((parkingSpotId + "_slice_") + toString(slice)) + "_payed"), true)] | |
39 | 42 | } | |
40 | 43 | ||
41 | 44 | ||
42 | 45 | ||
43 | 46 | @Callable(i) | |
44 | 47 | func bookParkingSpotSlice (parkingSpotId,desiredSlice,startTime,endTime,renter) = { | |
45 | 48 | let payment = value(i.payments[0]) | |
46 | 49 | let bookedStartTime = (startTime - (startTime % 3600)) | |
47 | 50 | let bookedEndTime = (endTime - (endTime % 3600)) | |
48 | 51 | let parkingSpotStartTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_startTime")) | |
49 | 52 | let parkingSpotEndTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_endTime")) | |
50 | 53 | let existingSlice = getIntegerValue(this, (parkingSpotId + "_slice")) | |
51 | 54 | let costPerHour = getIntegerValue(this, (parkingSpotId + "_cost")) | |
52 | 55 | let totalCost = ((costPerHour * (bookedEndTime - bookedStartTime)) / 3600) | |
53 | 56 | let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout")) | |
54 | 57 | let existingRenter = getString(this, (((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_renter")) | |
55 | 58 | if (!(isDefined(payment))) | |
56 | 59 | then throw("no payment defined") | |
57 | 60 | else if ((payment.assetId != unit)) | |
58 | 61 | then throw("payment should be in waves") | |
59 | 62 | else if ((payment.amount != totalCost)) | |
60 | 63 | then throw((((("payment does not match cost, got '" + toString(payment.amount)) + "' Waves, excpected: '") + toString(totalCost)) + "' Waves.")) | |
61 | 64 | else if (if ((parkingSpotStartTime > bookedStartTime)) | |
62 | 65 | then true | |
63 | 66 | else (bookedEndTime > parkingSpotEndTime)) | |
64 | 67 | then throw("time is out of range for parking spot") | |
65 | 68 | else if ((existingRenter != unit)) | |
66 | 69 | then throw("parking spot has already been booked") | |
67 | 70 | else if (if ((bookedStartTime == parkingSpotStartTime)) | |
68 | 71 | then (bookedEndTime == parkingSpotEndTime) | |
69 | 72 | else false) | |
70 | 73 | then [StringEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_renter"), renter), IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), (availablePayout + totalCost))] | |
71 | 74 | else if (if ((bookedStartTime == parkingSpotStartTime)) | |
72 | 75 | then (bookedEndTime != parkingSpotEndTime) | |
73 | 76 | else false) | |
74 | 77 | then ([StringEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_renter"), renter), IntegerEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_startTime"), bookedStartTime), IntegerEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_endTime"), bookedEndTime), IntegerEntry((parkingSpotId + "_slice"), (existingSlice + 1)), IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), (availablePayout + totalCost))] ++ createParkingSpotSlice(parkingSpotId, bookedEndTime, parkingSpotEndTime, (existingSlice + 1))) | |
75 | 78 | else if (if ((bookedEndTime == parkingSpotEndTime)) | |
76 | 79 | then (bookedStartTime != parkingSpotStartTime) | |
77 | 80 | else false) | |
78 | 81 | then ([StringEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_renter"), renter), IntegerEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_startTime"), bookedStartTime), IntegerEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_endTime"), bookedEndTime), IntegerEntry((parkingSpotId + "_slice"), (existingSlice + 1)), IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), (availablePayout + totalCost))] ++ createParkingSpotSlice(parkingSpotId, parkingSpotStartTime, bookedStartTime, (existingSlice + 1))) | |
79 | 82 | else (([StringEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_renter"), renter), IntegerEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_startTime"), bookedStartTime), IntegerEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_endTime"), bookedEndTime), IntegerEntry((parkingSpotId + "_slice"), (existingSlice + 2)), IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), (availablePayout + totalCost))] ++ createParkingSpotSlice(parkingSpotId, parkingSpotStartTime, bookedStartTime, (existingSlice + 1))) ++ createParkingSpotSlice(parkingSpotId, bookedEndTime, parkingSpotEndTime, (existingSlice + 2))) | |
80 | 83 | } | |
81 | 84 | ||
82 | 85 | ||
83 | 86 | @Verifier(tx) | |
84 | 87 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
85 | 88 |
github/deemru/w8io/026f985 52.35 ms ◑