tx · jQmnSQmj7HJqz929epWJVakj1Qrj5TyhyRJLoGnYmU3

3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk:  -0.01500000 Waves

2021.06.04 18:50 [1555824] smart account 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk > SELF 0.00000000 Waves

{ "type": 13, "id": "jQmnSQmj7HJqz929epWJVakj1Qrj5TyhyRJLoGnYmU3", "fee": 1500000, "feeAssetId": null, "timestamp": 1622821944417, "version": 2, "chainId": 84, "sender": "3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk", "senderPublicKey": "BfXK2ez9xjdgWtoFNsnaGPRFjHcFixy3UUrQ2iN8wVfX", "proofs": [ "44nN6XdNqnsTMtYc5AvnBiSZj76gNDxPPSgLxd4QYm7MakPjuB6PUeB8TWmz8vcbpkqw5gjuZ4qbXzCQwiEEgAEH" ], "script": "base64:AAIEAAAAAAAAABUIAhIICgYIAQEBAQESBwoFCAEBAQgAAAABAQAAABZjcmVhdGVQYXJraW5nU3BvdFNsaWNlAAAABAAAAA1wYXJraW5nU3BvdElkAAAACXN0YXJ0VGltZQAAAAdlbmRUaW1lAAAABXNsaWNlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1wYXJraW5nU3BvdElkAgAAAAdfc2xpY2VfCQABpAAAAAEFAAAABXNsaWNlAgAAAApfc3RhcnRUaW1lBQAAAAlzdGFydFRpbWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADXBhcmtpbmdTcG90SWQCAAAAB19zbGljZV8JAAGkAAAAAQUAAAAFc2xpY2UCAAAACF9lbmRUaW1lBQAAAAdlbmRUaW1lBQAAAANuaWwAAAACAAAAAWkBAAAAEWNyZWF0ZVBhcmtpbmdTcG90AAAABgAAAAVvd25lcgAAAANsYXQAAAAEbG9uZwAAAAlzdGFydFRpbWUAA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VzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnYoBbE", "height": 1555824, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BSA9esCEXHMnRKDvhLYPjbdTaXjHwXkXWAPUzSZ6X6kR Next: PgGMoNfv4i55MHYkV7RT3VGANEhqHsrn9xzn9AhbYdg Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a (b,c,d,e) = [IntegerEntry((((b + "_slice_") + toString(e)) + "_startTime"), c), IntegerEntry((((b + "_slice_") + toString(e)) + "_endTime"), d)]
55
66
77 @Callable(f)
88 func createParkingSpot (g,h,i,c,d,j) = {
99 let k = (c - (c % 3600))
1010 let l = (d - (d % 3600))
1111 ([StringEntry((toBase58String(f.transactionId) + "_owner"), g), IntegerEntry((toBase58String(f.transactionId) + "_lat"), h), IntegerEntry((toBase58String(f.transactionId) + "_long"), i), IntegerEntry((toBase58String(f.transactionId) + "_cost"), j), IntegerEntry((toBase58String(f.transactionId) + "_slice"), 0)] ++ a(toBase64String(f.transactionId), k, l, 0))
1212 }
1313
1414
1515
1616 @Callable(f)
1717 func bookParkingSpotSlice (b,e,c,d,m) = {
1818 let k = (c - (c % 3600))
1919 let l = (c - (c % 3600))
2020 let n = getIntegerValue(this, (((b + "_slice_") + toString(e)) + "_startTime"))
2121 let o = getIntegerValue(this, (((b + "_slice_") + toString(e)) + "_endTime"))
2222 if (if ((n > k))
2323 then true
2424 else ((k + 3600) > o))
2525 then throw("time is out of range for parking spot")
2626 else {
2727 let p = getString(this, (((b + "_slice_") + toString(e)) + "_renter"))
2828 if ((p != unit))
2929 then throw("parking spot has already been booked")
3030 else if (if ((k == n))
3131 then (k == o)
3232 else false)
3333 then [StringEntry((((b + "_slice_") + toString(e)) + "_renter"), m)]
3434 else if ((k == n))
3535 then ([StringEntry((((b + "_slice_") + toString(e)) + "_renter"), m), IntegerEntry((((b + "_slice_") + toString(e)) + "_startTime"), k), IntegerEntry((((b + "_slice_") + toString(e)) + "_startTime"), l), IntegerEntry((toBase58String(f.transactionId) + "_slice"), (e + 1))] ++ a(b, l, o, (e + 1)))
3636 else if ((l == o))
3737 then ([StringEntry((((b + "_slice_") + toString(e)) + "_renter"), m), IntegerEntry((((b + "_slice_") + toString(e)) + "_startTime"), k), IntegerEntry((((b + "_slice_") + toString(e)) + "_startTime"), l), IntegerEntry((toBase58String(f.transactionId) + "_slice"), (e + 1))] ++ a(b, n, k, (e + 1)))
3838 else (([StringEntry((((b + "_slice_") + toString(e)) + "_renter"), m), IntegerEntry((((b + "_slice_") + toString(e)) + "_startTime"), k), IntegerEntry((((b + "_slice_") + toString(e)) + "_startTime"), l), IntegerEntry((toBase58String(f.transactionId) + "_slice"), (e + 2))] ++ a(b, n, k, (e + 1))) ++ a(b, l, o, (e + 2)))
3939 }
4040 }
4141
4242
4343 @Verifier(q)
4444 func r () = sigVerify(q.bodyBytes, q.proofs[0], q.senderPublicKey)
4545

github/deemru/w8io/026f985 
26.94 ms