tx · J5GdV5YUehTDnRBLrWLDvi9VcV7ErhkabcsV7LZ6mSXL 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk: -0.09000000 Waves 2021.06.19 21:46 [1577642] smart account 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk > SELF 0.00000000 Waves
{ "type": 13, "id": "J5GdV5YUehTDnRBLrWLDvi9VcV7ErhkabcsV7LZ6mSXL", "fee": 9000000, "feeAssetId": null, "timestamp": 1624128337313, "version": 2, "chainId": 84, "sender": "3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk", "senderPublicKey": "BfXK2ez9xjdgWtoFNsnaGPRFjHcFixy3UUrQ2iN8wVfX", "proofs": [ "3QdwDrw882VuQbD8N8bPr1MNNpxpcnWwuvc54fLMJnoPi4Do7veikcaeR4REtRyAkWX25NYEFWsYFTw5XTuRJqMS" ], "script": "base64:AAIEAAAAAAAAABsIAhIICgYICAgBAQESBAoCCAESBwoFCAEBAQgAAAABAQAAABZjcmVhdGVQYXJraW5nU3BvdFNsaWNlAAAABAAAAA1wYXJraW5nU3BvdElkAAAACXN0YXJ0VGltZQAAAAdlbmRUaW1lAAAABXNsaWNlCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1wYXJraW5nU3BvdElkAgAAAAdfc2xpY2VfCQABpAAAAAEFAAAABXNsaWNlAgAAAApfc3RhcnRUaW1lBQAAAAlzdGFydFRpbWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADXBhcmtpbmdTcG90SWQCAAAAB19zbGljZV8JAAGkAAAAAQUAAAAFc2xpY2UCAAAACF9lbmRUaW1lBQAAAAdlbmRUaW1lCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAA1wYXJraW5nU3BvdElkAgAAAAdfc2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AAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5KVRTYA==", "height": 1577642, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9ibQAuMmVMAjicr8ajGPpgxiaKoBQshcA3wssXggfft3 Next: a73hVWSUoirdJbwUXZq5CM3HaVsB61rB9qT3oxtemwL Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b,c,d,e) = [IntegerEntry((((b + "_slice_") + toString(e)) + "_startTime"), c), IntegerEntry((((b + "_slice_") + toString(e)) + "_endTime"), d)] | |
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,i,c,d,j) = { | |
9 | 9 | let k = (c - (c % 3600)) | |
10 | 10 | let l = (d - (d % 3600)) | |
11 | - | ([StringEntry((toBase58String(f.transactionId) + "_owner"), | |
11 | + | ([StringEntry((toBase58String(f.transactionId) + "_owner"), toString(f.caller)), StringEntry((toBase58String(f.transactionId) + "_lat"), h), StringEntry((toBase58String(f.transactionId) + "_long"), i), IntegerEntry((toBase58String(f.transactionId) + "_cost"), j), IntegerEntry((toBase58String(f.transactionId) + "_slice"), 0), IntegerEntry((toBase58String(f.transactionId) + "_payoutTime"), (l + 3600)), IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), 0), IntegerEntry((toBase58String(f.transactionId) + "_blockedPayout"), 0)] ++ a(toBase58String(f.transactionId), k, l, 0)) | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | ||
16 | 16 | @Callable(f) | |
17 | - | func bookParkingSpotSlice (b,m,c,d,n) = { | |
18 | - | let o = value(f.payments[0]) | |
19 | - | let p = (c - (c % 3600)) | |
20 | - | let q = (d - (d % 3600)) | |
21 | - | let r = getIntegerValue(this, (((b + "_slice_") + toString(m)) + "_startTime")) | |
22 | - | let s = getIntegerValue(this, (((b + "_slice_") + toString(m)) + "_endTime")) | |
23 | - | let t = getIntegerValue(this, (b + "_slice")) | |
24 | - | let u = getIntegerValue(this, (b + "_cost")) | |
25 | - | let v = ((u * (q - p)) / 3600) | |
26 | - | if (!(isDefined(o))) | |
27 | - | then throw("no payment defined") | |
28 | - | else if ((o.assetId != unit)) | |
29 | - | then throw("payment should be in waves") | |
30 | - | else if ((o.amount != v)) | |
31 | - | then throw((((("payment does not match cost, got '" + toString(o.amount)) + "' Waves, excpected: '") + toString(v)) + "' Waves.")) | |
32 | - | else if (if ((r > p)) | |
33 | - | then true | |
34 | - | else (q > s)) | |
35 | - | then throw("time is out of range for parking spot") | |
36 | - | else { | |
37 | - | let w = getString(this, (((b + "_slice_") + toString(m)) + "_renter")) | |
38 | - | if ((w != unit)) | |
39 | - | then throw("parking spot has already been booked") | |
40 | - | else if (if ((p == r)) | |
41 | - | then (q == s) | |
42 | - | else false) | |
43 | - | then [StringEntry((((b + "_slice_") + toString(m)) + "_renter"), n), IntegerEntry((((b + "_slice_") + toString(m)) + "_slicetest0"), m)] | |
44 | - | else if (if ((p == r)) | |
45 | - | then (q != s) | |
46 | - | else false) | |
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 | - | else if (if ((q == s)) | |
49 | - | then (p != r) | |
50 | - | else false) | |
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 | - | 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 | - | } | |
17 | + | func payoutParkingSpotSlice (b,e) = { | |
18 | + | let m = getIntegerValue(this, (((b + "_slice_") + toString(e)) + "_startTime")) | |
19 | + | let n = getIntegerValue(this, (((b + "_slice_") + toString(e)) + "_endTime")) | |
20 | + | let o = getIntegerValue(this, (b + "_payoutTime")) | |
21 | + | let p = getIntegerValue(this, (b + "_cost")) | |
22 | + | let q = ((p * (m - n)) / 3600) | |
23 | + | let g = getStringValue(this, (b + "_owner")) | |
24 | + | let r = getString(this, (((b + "_slice_") + toString(e)) + "_complaint")) | |
25 | + | let s = getBooleanValue(this, (((b + "_slice_") + toString(e)) + "_payed")) | |
26 | + | let t = getIntegerValue(this, (b + "_availablePayout")) | |
27 | + | let u = lastBlock.timestamp | |
28 | + | if ((toString(f.caller) != g)) | |
29 | + | then throw("caller does not match owner of parking spot") | |
30 | + | else if ((((u / 1000) + 3600) > o)) | |
31 | + | then throw("parking spot payout time is due, please cash out all slices at once") | |
32 | + | else if ((n > ((u / 1000) + 3600))) | |
33 | + | then throw("you have to wait one hour, until you can receive the payment for this slice") | |
34 | + | else if ((r != unit)) | |
35 | + | then throw("there is an active complaint, please resolve it first") | |
36 | + | else if ((s == true)) | |
37 | + | then throw("slice has already been payed, denying payment") | |
38 | + | else [IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), (t - q)), ScriptTransfer(f.caller, q, unit), BooleanEntry((((b + "_slice_") + toString(e)) + "_payed"), true)] | |
54 | 39 | } | |
55 | 40 | ||
56 | 41 | ||
57 | - | @Verifier(x) | |
58 | - | func y () = sigVerify(x.bodyBytes, x.proofs[0], x.senderPublicKey) | |
42 | + | ||
43 | + | @Callable(f) | |
44 | + | func bookParkingSpotSlice (b,v,c,d,w) = { | |
45 | + | let x = value(f.payments[0]) | |
46 | + | let y = (c - (c % 3600)) | |
47 | + | let z = (d - (d % 3600)) | |
48 | + | let m = getIntegerValue(this, (((b + "_slice_") + toString(v)) + "_startTime")) | |
49 | + | let n = getIntegerValue(this, (((b + "_slice_") + toString(v)) + "_endTime")) | |
50 | + | let A = getIntegerValue(this, (b + "_slice")) | |
51 | + | let p = getIntegerValue(this, (b + "_cost")) | |
52 | + | let B = ((p * (z - y)) / 3600) | |
53 | + | let t = getIntegerValue(this, (b + "_availablePayout")) | |
54 | + | let C = getString(this, (((b + "_slice_") + toString(v)) + "_renter")) | |
55 | + | if (!(isDefined(x))) | |
56 | + | then throw("no payment defined") | |
57 | + | else if ((x.assetId != unit)) | |
58 | + | then throw("payment should be in waves") | |
59 | + | else if ((x.amount != B)) | |
60 | + | then throw((((("payment does not match cost, got '" + toString(x.amount)) + "' Waves, excpected: '") + toString(B)) + "' Waves.")) | |
61 | + | else if (if ((m > y)) | |
62 | + | then true | |
63 | + | else (z > n)) | |
64 | + | then throw("time is out of range for parking spot") | |
65 | + | else if ((C != unit)) | |
66 | + | then throw("parking spot has already been booked") | |
67 | + | else if (if ((y == m)) | |
68 | + | then (z == n) | |
69 | + | else false) | |
70 | + | then [StringEntry((((b + "_slice_") + toString(v)) + "_renter"), w), IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), (t + B))] | |
71 | + | else if (if ((y == m)) | |
72 | + | then (z != n) | |
73 | + | else false) | |
74 | + | then ([StringEntry((((b + "_slice_") + toString(v)) + "_renter"), w), IntegerEntry((((b + "_slice_") + toString(v)) + "_startTime"), y), IntegerEntry((((b + "_slice_") + toString(v)) + "_endTime"), z), IntegerEntry((b + "_slice"), (A + 1)), IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), (t + B))] ++ a(b, z, n, (A + 1))) | |
75 | + | else if (if ((z == n)) | |
76 | + | then (y != m) | |
77 | + | else false) | |
78 | + | then ([StringEntry((((b + "_slice_") + toString(v)) + "_renter"), w), IntegerEntry((((b + "_slice_") + toString(v)) + "_startTime"), y), IntegerEntry((((b + "_slice_") + toString(v)) + "_endTime"), z), IntegerEntry((b + "_slice"), (A + 1)), IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), (t + B))] ++ a(b, m, y, (A + 1))) | |
79 | + | else (([StringEntry((((b + "_slice_") + toString(v)) + "_renter"), w), IntegerEntry((((b + "_slice_") + toString(v)) + "_startTime"), y), IntegerEntry((((b + "_slice_") + toString(v)) + "_endTime"), z), IntegerEntry((b + "_slice"), (A + 2)), IntegerEntry((toBase58String(f.transactionId) + "_availablePayout"), (t + B))] ++ a(b, m, y, (A + 1))) ++ a(b, z, n, (A + 2))) | |
80 | + | } | |
81 | + | ||
82 | + | ||
83 | + | @Verifier(D) | |
84 | + | func E () = sigVerify(D.bodyBytes, D.proofs[0], D.senderPublicKey) | |
59 | 85 |
github/deemru/w8io/026f985 34.66 ms ◑