tx · BrSEDXN3uw1CkZwTDdkzk2A6tZoubK1rxkEDJ5FGhads 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk: -0.01500000 Waves 2021.06.07 20:49 [1560261] smart account 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk > SELF 0.00000000 Waves
{ "type": 13, "id": "BrSEDXN3uw1CkZwTDdkzk2A6tZoubK1rxkEDJ5FGhads", "fee": 1500000, "feeAssetId": null, "timestamp": 1623088182568, "version": 2, "chainId": 84, "sender": "3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk", "senderPublicKey": "BfXK2ez9xjdgWtoFNsnaGPRFjHcFixy3UUrQ2iN8wVfX", "proofs": [ "2QBUXBSop8HbAyEgpVuLwQYD4GmKUC8dL9NfDTu3m2TqnjF3HcpdLftwHkphQzcu2xMsuP46TJUBN4am4rCfB6Uj" ], "script": "base64:AAIEAAAAAAAAABUIAhIICgYICAgBAQESBwoFCAEBAQgAAAABAQAAABZjcmVhdGVQYXJraW5nU3BvdFNsaWNlAAAABAAAAA1wYXJraW5nU3BvdElkAAAACXN0YXJ0VGltZQAAAAdlbmRUaW1lAAAABXNsaWNlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1wYXJraW5nU3BvdElkAgAAAAdfc2xpY2VfCQABpAAAAAEFAAAABXNsaWNlAgAAAApfc3RhcnRUaW1lBQAAAAlzdGFydFRpbWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADXBhcmtpbmdTcG90SWQCAAAAB19zbGljZV8JAAGkAAAAAQUAAAAFc2xpY2UCAAAACF9lbmRUaW1lBQAAAAdlbmRUaW1lBQAAAANuaWwAAAACAAAAAWkBAAAAEWNyZWF0ZVBhcmtpbmdTcG90AAAABgAAAAVvd25lcgAAAANsYXQAAAAEbG9uZwAAAAlzdGFydFRpbWUAA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AAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlBI1X/", "height": 1560261, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6PKMMujEckxQ4ZnMjRRYqsDbuM4LHk3neCNigSHCbNkm Next: FEqb3kmLbHwwggTGLfNGTqxwthvr878249TrjcDLajfe Diff:
Old | New | Differences | |
---|---|---|---|
21 | 21 | then throw("missing payment") | |
22 | 22 | else if (isDefined(o.assetId)) | |
23 | 23 | then throw("payment should be in waves") | |
24 | - | else if (( | |
25 | - | then throw(((("payment is less than required, sent: " + toString( | |
24 | + | else if ((j != j)) | |
25 | + | then throw(((("payment is less than required, sent: " + toString(j)) + " , required: ") + toString(j))) | |
26 | 26 | else { | |
27 | 27 | let p = (c - (c % 3600)) | |
28 | 28 | let q = (d - (d % 3600)) |
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)] | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | @Callable(f) | |
8 | 8 | func createParkingSpot (g,h,i,c,d,j) = { | |
9 | 9 | let k = (c - (c % 3600)) | |
10 | 10 | let l = (d - (d % 3600)) | |
11 | 11 | ([StringEntry((toBase64String(f.transactionId) + "_owner"), g), StringEntry((toBase64String(f.transactionId) + "_lat"), h), StringEntry((toBase64String(f.transactionId) + "_long"), i), IntegerEntry((toBase64String(f.transactionId) + "_cost"), j), IntegerEntry((toBase64String(f.transactionId) + "_slice"), 0)] ++ a(toBase64String(f.transactionId), k, l, 0)) | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(f) | |
17 | 17 | func bookParkingSpotSlice (b,m,c,d,n) = { | |
18 | 18 | let o = f.payments[0] | |
19 | 19 | let j = getIntegerValue(this, (b + "_cost")) | |
20 | 20 | if (!(isDefined(j))) | |
21 | 21 | then throw("missing payment") | |
22 | 22 | else if (isDefined(o.assetId)) | |
23 | 23 | then throw("payment should be in waves") | |
24 | - | else if (( | |
25 | - | then throw(((("payment is less than required, sent: " + toString( | |
24 | + | else if ((j != j)) | |
25 | + | then throw(((("payment is less than required, sent: " + toString(j)) + " , required: ") + toString(j))) | |
26 | 26 | else { | |
27 | 27 | let p = (c - (c % 3600)) | |
28 | 28 | let q = (d - (d % 3600)) | |
29 | 29 | let r = getIntegerValue(this, (((b + "_slice_") + toString(m)) + "_startTime")) | |
30 | 30 | let s = getIntegerValue(this, (((b + "_slice_") + toString(m)) + "_endTime")) | |
31 | 31 | let t = getIntegerValue(this, (b + "_slice")) | |
32 | 32 | if (if ((r > p)) | |
33 | 33 | then true | |
34 | 34 | else (q > s)) | |
35 | 35 | then throw("time is out of range for parking spot") | |
36 | 36 | else { | |
37 | 37 | let u = getString(this, (((b + "_slice_") + toString(m)) + "_renter")) | |
38 | 38 | if ((u != unit)) | |
39 | 39 | then throw("parking spot has already been booked") | |
40 | 40 | else if (if ((p == r)) | |
41 | 41 | then (q == s) | |
42 | 42 | else false) | |
43 | 43 | then [StringEntry((((b + "_slice_") + toString(m)) + "_renter"), n), IntegerEntry((((b + "_slice_") + toString(m)) + "_slicetest0"), m)] | |
44 | 44 | else if (if ((p == r)) | |
45 | 45 | then (q != s) | |
46 | 46 | else false) | |
47 | 47 | then ([StringEntry((((b + "_slice_") + toString(m)) + "_renter"), n), IntegerEntry((((b + "_slice_") + toString(m)) + "_startTime"), p), IntegerEntry((((b + "_slice_") + toString(m)) + "_endTime"), q), IntegerEntry((b + "_slice"), (t + 1))] ++ a(b, q, s, (t + 1))) | |
48 | 48 | else if (if ((q == s)) | |
49 | 49 | then (p != r) | |
50 | 50 | else false) | |
51 | 51 | then ([StringEntry((((b + "_slice_") + toString(m)) + "_renter"), n), IntegerEntry((((b + "_slice_") + toString(m)) + "_startTime"), p), IntegerEntry((((b + "_slice_") + toString(m)) + "_endTime"), q), IntegerEntry((b + "_slice"), (t + 1))] ++ a(b, r, p, (t + 1))) | |
52 | 52 | else (([StringEntry((((b + "_slice_") + toString(m)) + "_renter"), n), IntegerEntry((((b + "_slice_") + toString(m)) + "_startTime"), p), IntegerEntry((((b + "_slice_") + toString(m)) + "_endTime"), q), IntegerEntry((b + "_slice"), (t + 2))] ++ a(b, r, p, (t + 1))) ++ a(b, q, s, (t + 2))) | |
53 | 53 | } | |
54 | 54 | } | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | @Verifier(v) | |
59 | 59 | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) | |
60 | 60 |
github/deemru/w8io/026f985 38.37 ms ◑