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:AAIEAAAAAAAAACQIAhIHCgUICAEBARIDCgEIEgQKAggBEgcKBQgBAQEIEgMKAQgAAAABAQAAABZjcmVhdGVQYXJraW5nU3BvdFNsaWNlAAAABAAAAA1wYXJraW5nU3BvdElkAAAACXN0YXJ0VGltZQAAAAdlbmRUaW1lAAAABXNsaWNlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1wYXJraW5nU3BvdElkAgAAAAdfc2xpY2VfCQABpAAAAAEFAAAABXNsaWNlAgAAAApfc3RhcnRUaW1lBQAAAAlzdGFydFRpbWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADXBhcmtpbmdTcG90SWQCAAAAB19zbGljZV8JAAGkAAAAAQUAAAAFc2xpY2UCAAAACF9lbmRUaW1lBQAAAAdlbmRUaW1lCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1wYXJraW5nU3BvdElkAg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BheWVkBAAAAA9hdmFpbGFibGVQYXlvdXQJAQAAABFAZXh0ck5hdGl2ZSgxMDUwKQAAAAIFAAAABHRoaXMJAAEsAAAAAgUAAAANcGFya2luZ1Nwb3RJZAIAAAAQX2F2YWlsYWJsZVBheW91dAQAAAALY3VycmVudFRpbWUIBQAAAAlsYXN0QmxvY2sAAAAJdGltZXN0YW1wAwkBAAAAAiE9AAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAABW93bmVyCQAAAgAAAAECAAAAK2NhbGxlciBkb2VzIG5vdCBtYXRjaCBvd25lciBvZiBwYXJraW5nIHNwb3QDCQAAZgAAAAIFAAAAFXBhcmtpbmdTcG90UGF5b3V0VGltZQkAAGQAAAACCQAAaQAAAAIFAAAAC2N1cnJlbnRUaW1lAAAAAAAAAAPoAAAAAAAAAA4QCQAAAgAAAAECAAAAOnBheW91dCBjYW4gb25seSBoYXBwZW4gb25lIGhvdXIgYWZ0ZXIgcGFya2luZyBzcG90IGVuZHRpbWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAAlgAAAABCAUAAAABaQAAAA10cmFuc2FjdGlvbklkAgAAABBfYXZhaWxhYmxlUGF5b3V0AAAAAAAAAAAACQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAAPYXZhaWxhYmxlUGF5b3V0BQAAAAR1bml0CQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIFAAAADXBhcmtpbmdTcG90SWQCAAAABl9wYXllZAYFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5kx2G9Q==", "height": 1594717, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ET2WW1D4xK43gyqKmgwW2NWmDGW1Td28B8BvA7sHQir8 Next: none Diff:
Old | New | Differences | |
---|---|---|---|
24 | 24 | then throw("caller does not match owner of parking spot") | |
25 | 25 | else if ((l > ((p / 1000) + 3600))) | |
26 | 26 | then throw("payout can only happen one hour after parking spot endtime") | |
27 | - | else [IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), 0), ScriptTransfer(f.caller, o, unit), BooleanEntry((b + "_payed"), true)] | |
27 | + | else if ((o == 0)) | |
28 | + | then throw("available payout is 0, skipping") | |
29 | + | else [IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), 0), ScriptTransfer(f.caller, o, unit), BooleanEntry((b + "_payed"), true)] | |
28 | 30 | } | |
29 | 31 | ||
30 | 32 | ||
99 | 101 | } | |
100 | 102 | ||
101 | 103 | ||
104 | + | ||
105 | + | @Callable(f) | |
106 | + | func uploadImage (b) = { | |
107 | + | let l = getIntegerValue(this, (b + "_payoutTime")) | |
108 | + | let m = getStringValue(this, (b + "_owner")) | |
109 | + | let n = getBoolean(this, (b + "_payed")) | |
110 | + | let o = getIntegerValue(this, (b + "_availablePayout")) | |
111 | + | let p = lastBlock.timestamp | |
112 | + | if ((toString(f.caller) != m)) | |
113 | + | then throw("caller does not match owner of parking spot") | |
114 | + | else if ((l > ((p / 1000) + 3600))) | |
115 | + | then throw("payout can only happen one hour after parking spot endtime") | |
116 | + | else [IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), 0), ScriptTransfer(f.caller, o, unit), BooleanEntry((b + "_payed"), true)] | |
117 | + | } | |
118 | + | ||
119 | + | ||
102 | 120 | @Verifier(E) | |
103 | 121 | func F () = sigVerify(E.bodyBytes, E.proofs[0], E.senderPublicKey) | |
104 | 122 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c,d,e) = [IntegerEntry((((b + "_slice_") + toString(e)) + "_startTime"), c), IntegerEntry((((b + "_slice_") + toString(e)) + "_endTime"), d), BooleanEntry((((b + "_slice_") + toString(e)) + "_payed"), false)] | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | @Callable(f) | |
8 | 8 | func createParkingSpot (g,h,c,d,i) = { | |
9 | 9 | let j = (c - (c % 3600)) | |
10 | 10 | let k = (d - (d % 3600)) | |
11 | 11 | ([StringEntry((toBase58String(f.transactionId) + "_owner"), toString(f.caller)), StringEntry((toBase58String(f.transactionId) + "_lat"), g), StringEntry((toBase58String(f.transactionId) + "_long"), h), IntegerEntry((toBase58String(f.transactionId) + "_cost"), i), IntegerEntry((toBase58String(f.transactionId) + "_slice"), 0), IntegerEntry((toBase58String(f.transactionId) + "_payoutTime"), (k + 3600)), IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), 0), IntegerEntry((toBase58String(f.transactionId) + "_blockedPayout"), 0), IntegerEntry((toBase58String(f.transactionId) + "_blockedPayout"), 0)] ++ a(toBase58String(f.transactionId), j, k, 0)) | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(f) | |
17 | 17 | func payoutParkingSpot (b) = { | |
18 | 18 | let l = getIntegerValue(this, (b + "_payoutTime")) | |
19 | 19 | let m = getStringValue(this, (b + "_owner")) | |
20 | 20 | let n = getBoolean(this, (b + "_payed")) | |
21 | 21 | let o = getIntegerValue(this, (b + "_availablePayout")) | |
22 | 22 | let p = lastBlock.timestamp | |
23 | 23 | if ((toString(f.caller) != m)) | |
24 | 24 | then throw("caller does not match owner of parking spot") | |
25 | 25 | else if ((l > ((p / 1000) + 3600))) | |
26 | 26 | then throw("payout can only happen one hour after parking spot endtime") | |
27 | - | else [IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), 0), ScriptTransfer(f.caller, o, unit), BooleanEntry((b + "_payed"), true)] | |
27 | + | else if ((o == 0)) | |
28 | + | then throw("available payout is 0, skipping") | |
29 | + | else [IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), 0), ScriptTransfer(f.caller, o, unit), BooleanEntry((b + "_payed"), true)] | |
28 | 30 | } | |
29 | 31 | ||
30 | 32 | ||
31 | 33 | ||
32 | 34 | @Callable(f) | |
33 | 35 | func payoutParkingSpotSlice (b,e) = { | |
34 | 36 | let q = getIntegerValue(this, (((b + "_slice_") + toString(e)) + "_startTime")) | |
35 | 37 | let r = getIntegerValue(this, (((b + "_slice_") + toString(e)) + "_endTime")) | |
36 | 38 | let l = getIntegerValue(this, (b + "_payoutTime")) | |
37 | 39 | let s = getIntegerValue(this, (b + "_cost")) | |
38 | 40 | let t = ((s * (q - r)) / 3600) | |
39 | 41 | let m = getStringValue(this, (b + "_owner")) | |
40 | 42 | let u = getString(this, (((b + "_slice_") + toString(e)) + "_complaint")) | |
41 | 43 | let v = getBooleanValue(this, (((b + "_slice_") + toString(e)) + "_payed")) | |
42 | 44 | let n = getBoolean(this, (b + "_payed")) | |
43 | 45 | let o = getIntegerValue(this, (b + "_availablePayout")) | |
44 | 46 | let p = lastBlock.timestamp | |
45 | 47 | if ((toString(f.caller) != m)) | |
46 | 48 | then throw("caller does not match owner of parking spot") | |
47 | 49 | else if ((((p / 1000) + 3600) > l)) | |
48 | 50 | then throw("parking spot payout time is due, please cash out all slices at once") | |
49 | 51 | else if ((r > ((p / 1000) + 3600))) | |
50 | 52 | then throw("you have to wait one hour, until you can receive the payment for this slice") | |
51 | 53 | else if ((u != unit)) | |
52 | 54 | then throw("there is an active complaint, please resolve it first") | |
53 | 55 | else if ((v == true)) | |
54 | 56 | then throw("slice has already been payed, denying payment") | |
55 | 57 | else if ((n == true)) | |
56 | 58 | then throw("whole parking spot has already been payed, denying payment") | |
57 | 59 | else [IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), (o - t)), ScriptTransfer(f.caller, t, unit), BooleanEntry((((b + "_slice_") + toString(e)) + "_payed"), true)] | |
58 | 60 | } | |
59 | 61 | ||
60 | 62 | ||
61 | 63 | ||
62 | 64 | @Callable(f) | |
63 | 65 | func bookParkingSpotSlice (b,w,c,d,x) = { | |
64 | 66 | let y = value(f.payments[0]) | |
65 | 67 | let z = (c - (c % 3600)) | |
66 | 68 | let A = (d - (d % 3600)) | |
67 | 69 | let q = getIntegerValue(this, (((b + "_slice_") + toString(w)) + "_startTime")) | |
68 | 70 | let r = getIntegerValue(this, (((b + "_slice_") + toString(w)) + "_endTime")) | |
69 | 71 | let B = getIntegerValue(this, (b + "_slice")) | |
70 | 72 | let s = getIntegerValue(this, (b + "_cost")) | |
71 | 73 | let C = ((s * (A - z)) / 3600) | |
72 | 74 | let o = getIntegerValue(this, (b + "_availablePayout")) | |
73 | 75 | let D = getString(this, (((b + "_slice_") + toString(w)) + "_renter")) | |
74 | 76 | if (!(isDefined(y))) | |
75 | 77 | then throw("no payment defined") | |
76 | 78 | else if ((y.assetId != unit)) | |
77 | 79 | then throw("payment should be in waves") | |
78 | 80 | else if ((y.amount != C)) | |
79 | 81 | then throw((((("payment does not match cost, got '" + toString(y.amount)) + "' Waves, excpected: '") + toString(C)) + "' Waves.")) | |
80 | 82 | else if (if ((q > z)) | |
81 | 83 | then true | |
82 | 84 | else (A > r)) | |
83 | 85 | then throw("time is out of range for parking spot") | |
84 | 86 | else if ((D != unit)) | |
85 | 87 | then throw("parking spot has already been booked") | |
86 | 88 | else if (if ((z == q)) | |
87 | 89 | then (A == r) | |
88 | 90 | else false) | |
89 | 91 | then [StringEntry((((b + "_slice_") + toString(w)) + "_renter"), x), IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), (o + C))] | |
90 | 92 | else if (if ((z == q)) | |
91 | 93 | then (A != r) | |
92 | 94 | else false) | |
93 | 95 | then ([StringEntry((((b + "_slice_") + toString(w)) + "_renter"), x), IntegerEntry((((b + "_slice_") + toString(w)) + "_startTime"), z), IntegerEntry((((b + "_slice_") + toString(w)) + "_endTime"), A), IntegerEntry((b + "_slice"), (B + 1)), IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), (o + C))] ++ a(b, A, r, (B + 1))) | |
94 | 96 | else if (if ((A == r)) | |
95 | 97 | then (z != q) | |
96 | 98 | else false) | |
97 | 99 | then ([StringEntry((((b + "_slice_") + toString(w)) + "_renter"), x), IntegerEntry((((b + "_slice_") + toString(w)) + "_startTime"), z), IntegerEntry((((b + "_slice_") + toString(w)) + "_endTime"), A), IntegerEntry((b + "_slice"), (B + 1)), IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), (o + C))] ++ a(b, q, z, (B + 1))) | |
98 | 100 | else (([StringEntry((((b + "_slice_") + toString(w)) + "_renter"), x), IntegerEntry((((b + "_slice_") + toString(w)) + "_startTime"), z), IntegerEntry((((b + "_slice_") + toString(w)) + "_endTime"), A), IntegerEntry((b + "_slice"), (B + 2)), IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), (o + C))] ++ a(b, q, z, (B + 1))) ++ a(b, A, r, (B + 2))) | |
99 | 101 | } | |
100 | 102 | ||
101 | 103 | ||
104 | + | ||
105 | + | @Callable(f) | |
106 | + | func uploadImage (b) = { | |
107 | + | let l = getIntegerValue(this, (b + "_payoutTime")) | |
108 | + | let m = getStringValue(this, (b + "_owner")) | |
109 | + | let n = getBoolean(this, (b + "_payed")) | |
110 | + | let o = getIntegerValue(this, (b + "_availablePayout")) | |
111 | + | let p = lastBlock.timestamp | |
112 | + | if ((toString(f.caller) != m)) | |
113 | + | then throw("caller does not match owner of parking spot") | |
114 | + | else if ((l > ((p / 1000) + 3600))) | |
115 | + | then throw("payout can only happen one hour after parking spot endtime") | |
116 | + | else [IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), 0), ScriptTransfer(f.caller, o, unit), BooleanEntry((b + "_payed"), true)] | |
117 | + | } | |
118 | + | ||
119 | + | ||
102 | 120 | @Verifier(E) | |
103 | 121 | func F () = sigVerify(E.bodyBytes, E.proofs[0], E.senderPublicKey) | |
104 | 122 |
github/deemru/w8io/026f985 48.74 ms ◑