tx · jxgSN9NqUkPxfx442Ajcu2AtNhMuLCRhcLnFJKNjBhe 3NBLe4xzkgpMKGWL8QgqDkVnkxHnLsGsi3a: -0.09000000 Waves 2021.07.01 18:56 [1594764] smart account 3NBLe4xzkgpMKGWL8QgqDkVnkxHnLsGsi3a > SELF 0.00000000 Waves
{ "type": 13, "id": "jxgSN9NqUkPxfx442Ajcu2AtNhMuLCRhcLnFJKNjBhe", "fee": 9000000, "feeAssetId": null, "timestamp": 1625155044445, "version": 2, "chainId": 84, "sender": "3NBLe4xzkgpMKGWL8QgqDkVnkxHnLsGsi3a", "senderPublicKey": "GrooFTfmnAwZPXYbL5faJSzKDpyALDvuhUU9V5ztzFxy", "proofs": [ "Rfk2TajpxLgt2zMfEDthAGMRP8fYxPts27GDjWzBcpTXhy9Nw3pP8hzB5RNiErSxbzFWBf42ecG7Q2YdU3Sx9D8" ], "script": "base64:AAIEAAAAAAAAACQIAhIHCgUICAEBARIDCgEIEgQKAggBEgcKBQgBAQEIEgMKAQgAAAABAQAAABZjcmVhdGVQYXJraW5nU3BvdFNsaWNlAAAABAAAAA1wYXJraW5nU3BvdElkAAAACXN0YXJ0VGltZQAAAAdlbmRUaW1lAAAABXNsaWNlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1wYXJraW5nU3BvdElkAgAAAAdfc2xpY2VfCQABpAAAAAEFAAAABXNsaWNlAgAAAApfc3RhcnRUaW1lBQAAAAlzdGFydFRpbWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADXBhcmtpbmdTcG90SWQCAAAAB19zbGljZV8JAAGkAAAAAQUAAAAFc2xpY2UCAAAACF9lbmRUaW1lBQAAAAdlbmRUaW1lCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1wYXJraW5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 0 } View: original | compacted Prev: BhKobKskqTpcQ8gRQfwZJVKTL6QF2VZUyWr3buaVhoq6 Next: FNFvzW2FKXqjcT6WJYA4MaYLtz3zm7LwJ1h9ocHs4Tm9 Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | then throw("payout can only happen one hour after parking spot endtime") | |
27 | 27 | else if ((availablePayout == 0)) | |
28 | 28 | then throw("available payout is 0, skipping") | |
29 | - | else [IntegerEntry(( | |
29 | + | else [IntegerEntry((parkingSpotId + "_availablePayout"), 0), ScriptTransfer(i.caller, availablePayout, unit), BooleanEntry((parkingSpotId + "_payed"), true)] | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 |
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 | 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 payoutParkingSpot (parkingSpotId) = { | |
18 | 18 | let parkingSpotPayoutTime = getIntegerValue(this, (parkingSpotId + "_payoutTime")) | |
19 | 19 | let owner = getStringValue(this, (parkingSpotId + "_owner")) | |
20 | 20 | let payedParkingSpot = getBoolean(this, (parkingSpotId + "_payed")) | |
21 | 21 | let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout")) | |
22 | 22 | let currentTime = lastBlock.timestamp | |
23 | 23 | if ((toString(i.caller) != owner)) | |
24 | 24 | then throw("caller does not match owner of parking spot") | |
25 | 25 | else if ((parkingSpotPayoutTime > ((currentTime / 1000) + 3600))) | |
26 | 26 | then throw("payout can only happen one hour after parking spot endtime") | |
27 | 27 | else if ((availablePayout == 0)) | |
28 | 28 | then throw("available payout is 0, skipping") | |
29 | - | else [IntegerEntry(( | |
29 | + | else [IntegerEntry((parkingSpotId + "_availablePayout"), 0), ScriptTransfer(i.caller, availablePayout, unit), BooleanEntry((parkingSpotId + "_payed"), true)] | |
30 | 30 | } | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Callable(i) | |
35 | 35 | func payoutParkingSpotSlice (parkingSpotId,slice) = { | |
36 | 36 | let parkingSpotStartTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_startTime")) | |
37 | 37 | let parkingSpotEndTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_endTime")) | |
38 | 38 | let parkingSpotPayoutTime = getIntegerValue(this, (parkingSpotId + "_payoutTime")) | |
39 | 39 | let costPerHour = getIntegerValue(this, (parkingSpotId + "_cost")) | |
40 | 40 | let sliceCost = ((costPerHour * (parkingSpotStartTime - parkingSpotEndTime)) / 3600) | |
41 | 41 | let owner = getStringValue(this, (parkingSpotId + "_owner")) | |
42 | 42 | let complaint = getString(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_complaint")) | |
43 | 43 | let payedParkingSpotSlice = getBooleanValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_payed")) | |
44 | 44 | let payedParkingSpot = getBoolean(this, (parkingSpotId + "_payed")) | |
45 | 45 | let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout")) | |
46 | 46 | let currentTime = lastBlock.timestamp | |
47 | 47 | if ((toString(i.caller) != owner)) | |
48 | 48 | then throw("caller does not match owner of parking spot") | |
49 | 49 | else if ((((currentTime / 1000) + 3600) > parkingSpotPayoutTime)) | |
50 | 50 | then throw("parking spot payout time is due, please cash out all slices at once") | |
51 | 51 | else if ((parkingSpotEndTime > ((currentTime / 1000) + 3600))) | |
52 | 52 | then throw("you have to wait one hour, until you can receive the payment for this slice") | |
53 | 53 | else if ((complaint != unit)) | |
54 | 54 | then throw("there is an active complaint, please resolve it first") | |
55 | 55 | else if ((payedParkingSpotSlice == true)) | |
56 | 56 | then throw("slice has already been payed, denying payment") | |
57 | 57 | else if ((payedParkingSpot == true)) | |
58 | 58 | then throw("whole parking spot has already been payed, denying payment") | |
59 | 59 | else [IntegerEntry((parkingSpotId + "_availablePayout"), (availablePayout - sliceCost)), ScriptTransfer(i.caller, sliceCost, unit), BooleanEntry((((parkingSpotId + "_slice_") + toString(slice)) + "_payed"), true)] | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | ||
64 | 64 | @Callable(i) | |
65 | 65 | func bookParkingSpotSlice (parkingSpotId,desiredSlice,startTime,endTime,renter) = { | |
66 | 66 | let payment = value(i.payments[0]) | |
67 | 67 | let bookedStartTime = (startTime - (startTime % 3600)) | |
68 | 68 | let bookedEndTime = (endTime - (endTime % 3600)) | |
69 | 69 | let parkingSpotStartTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_startTime")) | |
70 | 70 | let parkingSpotEndTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_endTime")) | |
71 | 71 | let existingSlice = getIntegerValue(this, (parkingSpotId + "_slice")) | |
72 | 72 | let costPerHour = getIntegerValue(this, (parkingSpotId + "_cost")) | |
73 | 73 | let totalCost = ((costPerHour * (bookedEndTime - bookedStartTime)) / 3600) | |
74 | 74 | let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout")) | |
75 | 75 | let existingRenter = getString(this, (((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_renter")) | |
76 | 76 | let currentTime = (lastBlock.timestamp / 1000) | |
77 | 77 | if (!(isDefined(payment))) | |
78 | 78 | then throw("no payment defined") | |
79 | 79 | else if ((payment.assetId != unit)) | |
80 | 80 | then throw("payment should be in waves") | |
81 | 81 | else if ((payment.amount != totalCost)) | |
82 | 82 | then throw((((("payment does not match cost, got '" + toString(payment.amount)) + "' Waves, excpected: '") + toString(totalCost)) + "' Waves.")) | |
83 | 83 | else if (if ((parkingSpotStartTime > bookedStartTime)) | |
84 | 84 | then true | |
85 | 85 | else (bookedEndTime > parkingSpotEndTime)) | |
86 | 86 | then throw("time is out of range for parking spot") | |
87 | 87 | else if ((existingRenter != unit)) | |
88 | 88 | then throw("parking spot has already been booked") | |
89 | 89 | else if (if ((bookedStartTime == parkingSpotStartTime)) | |
90 | 90 | then (bookedEndTime == parkingSpotEndTime) | |
91 | 91 | else false) | |
92 | 92 | then [StringEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_renter"), renter), IntegerEntry((parkingSpotId + "_availablePayout"), (availablePayout + totalCost))] | |
93 | 93 | else if (if ((bookedStartTime == parkingSpotStartTime)) | |
94 | 94 | then (bookedEndTime != parkingSpotEndTime) | |
95 | 95 | else false) | |
96 | 96 | 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((parkingSpotId + "_availablePayout"), (availablePayout + totalCost))] ++ createParkingSpotSlice(parkingSpotId, bookedEndTime, parkingSpotEndTime, (existingSlice + 1))) | |
97 | 97 | else if (if ((bookedEndTime == parkingSpotEndTime)) | |
98 | 98 | then (bookedStartTime != parkingSpotStartTime) | |
99 | 99 | else false) | |
100 | 100 | 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((parkingSpotId + "_availablePayout"), (availablePayout + totalCost))] ++ createParkingSpotSlice(parkingSpotId, parkingSpotStartTime, bookedStartTime, (existingSlice + 1))) | |
101 | 101 | 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((parkingSpotId + "_availablePayout"), (availablePayout + totalCost))] ++ createParkingSpotSlice(parkingSpotId, parkingSpotStartTime, bookedStartTime, (existingSlice + 1))) ++ createParkingSpotSlice(parkingSpotId, bookedEndTime, parkingSpotEndTime, (existingSlice + 2))) | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | ||
106 | 106 | @Callable(i) | |
107 | 107 | func uploadImage (parkingSpotId) = { | |
108 | 108 | let parkingSpotPayoutTime = getIntegerValue(this, (parkingSpotId + "_payoutTime")) | |
109 | 109 | let owner = getStringValue(this, (parkingSpotId + "_owner")) | |
110 | 110 | let payedParkingSpot = getBoolean(this, (parkingSpotId + "_payed")) | |
111 | 111 | let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout")) | |
112 | 112 | let currentTime = lastBlock.timestamp | |
113 | 113 | if ((toString(i.caller) != owner)) | |
114 | 114 | then throw("caller does not match owner of parking spot") | |
115 | 115 | else if ((parkingSpotPayoutTime > ((currentTime / 1000) + 3600))) | |
116 | 116 | then throw("payout can only happen one hour after parking spot endtime") | |
117 | 117 | else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), ScriptTransfer(i.caller, availablePayout, unit), BooleanEntry((parkingSpotId + "_payed"), true)] | |
118 | 118 | } | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | @Verifier(tx) | |
122 | 122 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
123 | 123 |
github/deemru/w8io/169f3d6 36.30 ms ◑