tx · BuLcmdKBRBbdveTuLtxJHv4q6cDfsWggwroK1x836t3v

3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk:  -0.09000000 Waves

2021.07.01 18:09 [1594717] smart account 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk > SELF 0.00000000 Waves

{ "type": 13, "id": "BuLcmdKBRBbdveTuLtxJHv4q6cDfsWggwroK1x836t3v", "fee": 9000000, "feeAssetId": null, "timestamp": 1625152159772, "version": 2, "chainId": 84, "sender": "3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk", "senderPublicKey": "BfXK2ez9xjdgWtoFNsnaGPRFjHcFixy3UUrQ2iN8wVfX", "proofs": [ "YNayBEBGVr4g4VLyqpEvc8pXGvcxNiABpEpuPDa31SG6a1yEjDYBe4d49mqj6FNiXowy2Dk9rSaQaWEW7Y3RJDr" ], "script": "base64:AAIEAAAAAAAAACQIAhIHCgUICAEBARIDCgEIEgQKAggBEgcKBQgBAQEIEgMKAQgAAAABAQAAABZjcmVhdGVQYXJraW5nU3BvdFNsaWNlAAAABAAAAA1wYXJraW5nU3BvdElkAAAACXN0YXJ0VGltZQAAAAdlbmRUaW1lAAAABXNsaWNlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1wYXJraW5nU3BvdElkAgAAAAdfc2xpY2VfCQABpAAAAAEFAAAABXNsaWNlAgAAAApfc3RhcnRUaW1lBQAAAAlzdGFydFRpbWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADXBhcmtpbmdTcG90SWQCAAAAB19zbGljZV8JAAGkAAAAAQUAAAAFc2xpY2UCAAAACF9lbmRUaW1lBQAAAAdlbmRUaW1lCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1wYXJraW5nU3BvdElkA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3BheWVkBAAAAA9hdmFpbGFibGVQYXlvdXQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAANcGFya2luZ1Nwb3RJZAIAAAAQX2F2YWlsYWJsZVBheW91dAQAAAALY3VycmVudFRpbWUIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAwkBAAAAAiE9AAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAABW93bmVyCQAAAgAAAAECAAAAK2NhbGxlciBkb2VzIG5vdCBtYXRjaCBvd25lciBvZiBwYXJraW5nIHNwb3QDCQAAZgAAAAIFAAAAFXBhcmtpbmdTcG90UGF5b3V0VGltZQkAAGQAAAACCQAAaQAAAAIFAAAAC2N1cnJlbnRUaW1lAAAAAAAAAAPoAAAAAAAAAA4QCQAAAgAAAAECAAAAOnBheW91dCBjYW4gb25seSBoYXBwZW4gb25lIGhvdXIgYWZ0ZXIgcGFya2luZyBzcG90IGVuZHRpbWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkAgAAABBfYXZhaWxhYmxlUGF5b3V0AAAAAAAAAAAACQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAPYXZhaWxhYmxlUGF5b3V0BQAAAAR1bml0CQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIFAAAADXBhcmtpbmdTcG90SWQCAAAABl9wYXllZAYFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5kx2G9Q==", "height": 1594717, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ET2WW1D4xK43gyqKmgwW2NWmDGW1Td28B8BvA7sHQir8 Next: none Diff:
OldNewDifferences
2424 then throw("caller does not match owner of parking spot")
2525 else if ((parkingSpotPayoutTime > ((currentTime / 1000) + 3600)))
2626 then throw("payout can only happen one hour after parking spot endtime")
27- else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), ScriptTransfer(i.caller, availablePayout, unit), BooleanEntry((parkingSpotId + "_payed"), true)]
27+ else if ((availablePayout == 0))
28+ then throw("available payout is 0, skipping")
29+ else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), ScriptTransfer(i.caller, availablePayout, unit), BooleanEntry((parkingSpotId + "_payed"), true)]
2830 }
2931
3032
99101 }
100102
101103
104+
105+@Callable(i)
106+func uploadImage (parkingSpotId) = {
107+ let parkingSpotPayoutTime = getIntegerValue(this, (parkingSpotId + "_payoutTime"))
108+ let owner = getStringValue(this, (parkingSpotId + "_owner"))
109+ let payedParkingSpot = getBoolean(this, (parkingSpotId + "_payed"))
110+ let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout"))
111+ let currentTime = lastBlock.timestamp
112+ if ((toString(i.caller) != owner))
113+ then throw("caller does not match owner of parking spot")
114+ else if ((parkingSpotPayoutTime > ((currentTime / 1000) + 3600)))
115+ then throw("payout can only happen one hour after parking spot endtime")
116+ else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), ScriptTransfer(i.caller, availablePayout, unit), BooleanEntry((parkingSpotId + "_payed"), true)]
117+ }
118+
119+
102120 @Verifier(tx)
103121 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
104122
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 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)]
55
66
77 @Callable(i)
88 func createParkingSpot (lat,long,startTime,endTime,cost) = {
99 let roundedStartTime = (startTime - (startTime % 3600))
1010 let roundedEndTime = (endTime - (endTime % 3600))
1111 ([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))
1212 }
1313
1414
1515
1616 @Callable(i)
1717 func payoutParkingSpot (parkingSpotId) = {
1818 let parkingSpotPayoutTime = getIntegerValue(this, (parkingSpotId + "_payoutTime"))
1919 let owner = getStringValue(this, (parkingSpotId + "_owner"))
2020 let payedParkingSpot = getBoolean(this, (parkingSpotId + "_payed"))
2121 let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout"))
2222 let currentTime = lastBlock.timestamp
2323 if ((toString(i.caller) != owner))
2424 then throw("caller does not match owner of parking spot")
2525 else if ((parkingSpotPayoutTime > ((currentTime / 1000) + 3600)))
2626 then throw("payout can only happen one hour after parking spot endtime")
27- else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), ScriptTransfer(i.caller, availablePayout, unit), BooleanEntry((parkingSpotId + "_payed"), true)]
27+ else if ((availablePayout == 0))
28+ then throw("available payout is 0, skipping")
29+ else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), ScriptTransfer(i.caller, availablePayout, unit), BooleanEntry((parkingSpotId + "_payed"), true)]
2830 }
2931
3032
3133
3234 @Callable(i)
3335 func payoutParkingSpotSlice (parkingSpotId,slice) = {
3436 let parkingSpotStartTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_startTime"))
3537 let parkingSpotEndTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_endTime"))
3638 let parkingSpotPayoutTime = getIntegerValue(this, (parkingSpotId + "_payoutTime"))
3739 let costPerHour = getIntegerValue(this, (parkingSpotId + "_cost"))
3840 let sliceCost = ((costPerHour * (parkingSpotStartTime - parkingSpotEndTime)) / 3600)
3941 let owner = getStringValue(this, (parkingSpotId + "_owner"))
4042 let complaint = getString(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_complaint"))
4143 let payedParkingSpotSlice = getBooleanValue(this, (((parkingSpotId + "_slice_") + toString(slice)) + "_payed"))
4244 let payedParkingSpot = getBoolean(this, (parkingSpotId + "_payed"))
4345 let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout"))
4446 let currentTime = lastBlock.timestamp
4547 if ((toString(i.caller) != owner))
4648 then throw("caller does not match owner of parking spot")
4749 else if ((((currentTime / 1000) + 3600) > parkingSpotPayoutTime))
4850 then throw("parking spot payout time is due, please cash out all slices at once")
4951 else if ((parkingSpotEndTime > ((currentTime / 1000) + 3600)))
5052 then throw("you have to wait one hour, until you can receive the payment for this slice")
5153 else if ((complaint != unit))
5254 then throw("there is an active complaint, please resolve it first")
5355 else if ((payedParkingSpotSlice == true))
5456 then throw("slice has already been payed, denying payment")
5557 else if ((payedParkingSpot == true))
5658 then throw("whole parking spot has already been payed, denying payment")
5759 else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), (availablePayout - sliceCost)), ScriptTransfer(i.caller, sliceCost, unit), BooleanEntry((((parkingSpotId + "_slice_") + toString(slice)) + "_payed"), true)]
5860 }
5961
6062
6163
6264 @Callable(i)
6365 func bookParkingSpotSlice (parkingSpotId,desiredSlice,startTime,endTime,renter) = {
6466 let payment = value(i.payments[0])
6567 let bookedStartTime = (startTime - (startTime % 3600))
6668 let bookedEndTime = (endTime - (endTime % 3600))
6769 let parkingSpotStartTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_startTime"))
6870 let parkingSpotEndTime = getIntegerValue(this, (((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_endTime"))
6971 let existingSlice = getIntegerValue(this, (parkingSpotId + "_slice"))
7072 let costPerHour = getIntegerValue(this, (parkingSpotId + "_cost"))
7173 let totalCost = ((costPerHour * (bookedEndTime - bookedStartTime)) / 3600)
7274 let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout"))
7375 let existingRenter = getString(this, (((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_renter"))
7476 if (!(isDefined(payment)))
7577 then throw("no payment defined")
7678 else if ((payment.assetId != unit))
7779 then throw("payment should be in waves")
7880 else if ((payment.amount != totalCost))
7981 then throw((((("payment does not match cost, got '" + toString(payment.amount)) + "' Waves, excpected: '") + toString(totalCost)) + "' Waves."))
8082 else if (if ((parkingSpotStartTime > bookedStartTime))
8183 then true
8284 else (bookedEndTime > parkingSpotEndTime))
8385 then throw("time is out of range for parking spot")
8486 else if ((existingRenter != unit))
8587 then throw("parking spot has already been booked")
8688 else if (if ((bookedStartTime == parkingSpotStartTime))
8789 then (bookedEndTime == parkingSpotEndTime)
8890 else false)
8991 then [StringEntry((((parkingSpotId + "_slice_") + toString(desiredSlice)) + "_renter"), renter), IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), (availablePayout + totalCost))]
9092 else if (if ((bookedStartTime == parkingSpotStartTime))
9193 then (bookedEndTime != parkingSpotEndTime)
9294 else false)
9395 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)))
9496 else if (if ((bookedEndTime == parkingSpotEndTime))
9597 then (bookedStartTime != parkingSpotStartTime)
9698 else false)
9799 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)))
98100 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)))
99101 }
100102
101103
104+
105+@Callable(i)
106+func uploadImage (parkingSpotId) = {
107+ let parkingSpotPayoutTime = getIntegerValue(this, (parkingSpotId + "_payoutTime"))
108+ let owner = getStringValue(this, (parkingSpotId + "_owner"))
109+ let payedParkingSpot = getBoolean(this, (parkingSpotId + "_payed"))
110+ let availablePayout = getIntegerValue(this, (parkingSpotId + "_availablePayout"))
111+ let currentTime = lastBlock.timestamp
112+ if ((toString(i.caller) != owner))
113+ then throw("caller does not match owner of parking spot")
114+ else if ((parkingSpotPayoutTime > ((currentTime / 1000) + 3600)))
115+ then throw("payout can only happen one hour after parking spot endtime")
116+ else [IntegerEntry((toBase58String(i.transactionId) + "_availablePayout"), 0), ScriptTransfer(i.caller, availablePayout, unit), BooleanEntry((parkingSpotId + "_payed"), true)]
117+ }
118+
119+
102120 @Verifier(tx)
103121 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
104122

github/deemru/w8io/026f985 
39.31 ms