tx · F9PCvEfqSrdaULXZtYAC1HzXV2W4Z5KaokaUw6m3pnz
3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk: -0.01400000 Waves
2021.05.25 19:21 [1541413] smart account 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk > SELF 0.00000000 Waves
{
"type": 13,
"id": "F9PCvEfqSrdaULXZtYAC1HzXV2W4Z5KaokaUw6m3pnz",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1621959697104,
"version": 2,
"chainId": 84,
"sender": "3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk",
"senderPublicKey": "BfXK2ez9xjdgWtoFNsnaGPRFjHcFixy3UUrQ2iN8wVfX",
"proofs": [
"2MYsBE4cXK5H2X5MnzvX5sNMwENMUtNEJHewAescsVe9EQRR5gg97QYrQyt9iDu648mUmoRm1ATwueFhKKTZ2ket"
],
"script": "base64:AAIEAAAAAAAAABMIAhIAEgUKAwgBARIGCgQIAQEBAAAAAQEAAAAKZmlsdGVyU3RlcAAAAAIAAAALYWNjdW11bGF0ZWQAAAABYQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAAaQAAAABBQAAAAFhBQAAAAFhBQAAAAthY2N1bXVsYXRlZAAAAAMAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA2FycgkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAIJAARMAAAAAgAAAAAAAAAAAwkABEwAAAACAAAAAAAAAAAECQAETAAAAAIAAAAAAAAAAAUFAAAAA25pbAQAAAALJGxpc3QyNTEyODAFAAAAA2FycgQAAAALJHNpemUyNTEyODAJAAGQAAAAAQUAAAALJGxpc3QyNTEyODAEAAAACyRhY2MwMjUxMjgwBQAAAANuaWwDCQAAAAAAAAIFAAAACyRzaXplMjUxMjgwAAAAAAAAAAAABQAAAAskYWNjMDI1MTI4MAQAAAALJGFjYzEyNTEyODAJAQAAAApmaWx0ZXJTdGVwAAAAAgUAAAALJGFjYzAy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AAAAWkAAAANdHJhbnNhY3Rpb25JZAIAAAAEX2xhdAUAAAADbGF0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAJYAAAAAQgFAAAAAWkAAAANdHJhbnNhY3Rpb25JZAIAAAAFX2xvbmcFAAAABGxvbmcFAAAAA25pbAAAAAFpAQAAABVjcmVhdGVCb29raW5nVGltZXNsb3QAAAAEAAAADHBhcmtpblNsb3RJZAAAAARjb3N0AAAACXN0YXJ0VGltZQAAAAdlbmRUaW1lCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAAxwYXJraW5TbG90SWQCAAAAAV8JAAGkAAAAAQUAAAAJc3RhcnRUaW1lAgAAAApfc3RhcnRUaW1lBQAAAAlzdGFydFRpbWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAADHBhcmtpblNsb3RJZAIAAAABXwkAAaQAAAABBQAAAAlzdGFydFRpbWUCAAAACF9lbmRUaW1lBQAAAAdlbmRUaW1lCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIFAAAADHBhcmtpblNsb3RJZAIAAAAFX2Nvc3QFAAAABGNvc3QFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5L5bH1A==",
"height": 1541413,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: BiUPN3AdFyzRXEH5CxTEdBawNUSnjk7kTfJrmMCeznaU
Next: EtpcrdHaicHV7Q1oKpK2DWL8VP1Lqjg2mMM4FEBuS9EZ
Diff:
Old | New | | Differences |
---|
34 | 34 | | then m |
---|
35 | 35 | | else { |
---|
36 | 36 | | let n = a(m, f[5]) |
---|
37 | | - | throw("List size exceed 5") |
---|
| 37 | + | if ((g == 6)) |
---|
| 38 | + | then n |
---|
| 39 | + | else { |
---|
| 40 | + | let o = a(n, f[6]) |
---|
| 41 | + | if ((g == 7)) |
---|
| 42 | + | then o |
---|
| 43 | + | else { |
---|
| 44 | + | let p = a(o, f[7]) |
---|
| 45 | + | if ((g == 8)) |
---|
| 46 | + | then p |
---|
| 47 | + | else { |
---|
| 48 | + | let q = a(p, f[8]) |
---|
| 49 | + | if ((g == 9)) |
---|
| 50 | + | then q |
---|
| 51 | + | else { |
---|
| 52 | + | let r = a(q, f[9]) |
---|
| 53 | + | if ((g == 10)) |
---|
| 54 | + | then r |
---|
| 55 | + | else { |
---|
| 56 | + | let s = a(r, f[10]) |
---|
| 57 | + | throw("List size exceed 10") |
---|
| 58 | + | } |
---|
| 59 | + | } |
---|
| 60 | + | } |
---|
| 61 | + | } |
---|
| 62 | + | } |
---|
38 | 63 | | } |
---|
39 | 64 | | } |
---|
40 | 65 | | } |
---|
|
46 | 71 | | |
---|
47 | 72 | | |
---|
48 | 73 | | @Callable(d) |
---|
49 | | - | func createParkingSpot (o,p,q) = [StringEntry((toBase58String(d.transactionId) + "_owner"), o), IntegerEntry((toBase58String(d.transactionId) + "_lat"), p), IntegerEntry((toBase58String(d.transactionId) + "_long"), q)] |
---|
| 74 | + | func createParkingSpot (t,u,v) = [StringEntry((toBase58String(d.transactionId) + "_owner"), t), IntegerEntry((toBase58String(d.transactionId) + "_lat"), u), IntegerEntry((toBase58String(d.transactionId) + "_long"), v)] |
---|
50 | 75 | | |
---|
51 | 76 | | |
---|
52 | 77 | | |
---|
53 | 78 | | @Callable(d) |
---|
54 | | - | func createBookingTimeslot (r,s,t,u) = [IntegerEntry((((r + "_") + toString(t)) + "_startTime"), t), IntegerEntry((((r + "_") + toString(t)) + "_endTime"), u), IntegerEntry((r + "_cost"), s)] |
---|
| 79 | + | func createBookingTimeslot (w,x,y,z) = [IntegerEntry((((w + "_") + toString(y)) + "_startTime"), y), IntegerEntry((((w + "_") + toString(y)) + "_endTime"), z), IntegerEntry((w + "_cost"), x)] |
---|
55 | 80 | | |
---|
56 | 81 | | |
---|
57 | | - | @Verifier(v) |
---|
58 | | - | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) |
---|
| 82 | + | @Verifier(A) |
---|
| 83 | + | func B () = sigVerify(A.bodyBytes, A.proofs[0], A.senderPublicKey) |
---|
59 | 84 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 4 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b,c) = IntegerEntry(toString(c), c) :: b |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Callable(d) |
---|
8 | 8 | | func deposit () = { |
---|
9 | 9 | | let e = [1, 2, 3, 4, 5] |
---|
10 | 10 | | let f = e |
---|
11 | 11 | | let g = size(f) |
---|
12 | 12 | | let h = nil |
---|
13 | 13 | | if ((g == 0)) |
---|
14 | 14 | | then h |
---|
15 | 15 | | else { |
---|
16 | 16 | | let i = a(h, f[0]) |
---|
17 | 17 | | if ((g == 1)) |
---|
18 | 18 | | then i |
---|
19 | 19 | | else { |
---|
20 | 20 | | let j = a(i, f[1]) |
---|
21 | 21 | | if ((g == 2)) |
---|
22 | 22 | | then j |
---|
23 | 23 | | else { |
---|
24 | 24 | | let k = a(j, f[2]) |
---|
25 | 25 | | if ((g == 3)) |
---|
26 | 26 | | then k |
---|
27 | 27 | | else { |
---|
28 | 28 | | let l = a(k, f[3]) |
---|
29 | 29 | | if ((g == 4)) |
---|
30 | 30 | | then l |
---|
31 | 31 | | else { |
---|
32 | 32 | | let m = a(l, f[4]) |
---|
33 | 33 | | if ((g == 5)) |
---|
34 | 34 | | then m |
---|
35 | 35 | | else { |
---|
36 | 36 | | let n = a(m, f[5]) |
---|
37 | | - | throw("List size exceed 5") |
---|
| 37 | + | if ((g == 6)) |
---|
| 38 | + | then n |
---|
| 39 | + | else { |
---|
| 40 | + | let o = a(n, f[6]) |
---|
| 41 | + | if ((g == 7)) |
---|
| 42 | + | then o |
---|
| 43 | + | else { |
---|
| 44 | + | let p = a(o, f[7]) |
---|
| 45 | + | if ((g == 8)) |
---|
| 46 | + | then p |
---|
| 47 | + | else { |
---|
| 48 | + | let q = a(p, f[8]) |
---|
| 49 | + | if ((g == 9)) |
---|
| 50 | + | then q |
---|
| 51 | + | else { |
---|
| 52 | + | let r = a(q, f[9]) |
---|
| 53 | + | if ((g == 10)) |
---|
| 54 | + | then r |
---|
| 55 | + | else { |
---|
| 56 | + | let s = a(r, f[10]) |
---|
| 57 | + | throw("List size exceed 10") |
---|
| 58 | + | } |
---|
| 59 | + | } |
---|
| 60 | + | } |
---|
| 61 | + | } |
---|
| 62 | + | } |
---|
38 | 63 | | } |
---|
39 | 64 | | } |
---|
40 | 65 | | } |
---|
41 | 66 | | } |
---|
42 | 67 | | } |
---|
43 | 68 | | } |
---|
44 | 69 | | } |
---|
45 | 70 | | |
---|
46 | 71 | | |
---|
47 | 72 | | |
---|
48 | 73 | | @Callable(d) |
---|
49 | | - | func createParkingSpot (o,p,q) = [StringEntry((toBase58String(d.transactionId) + "_owner"), o), IntegerEntry((toBase58String(d.transactionId) + "_lat"), p), IntegerEntry((toBase58String(d.transactionId) + "_long"), q)] |
---|
| 74 | + | func createParkingSpot (t,u,v) = [StringEntry((toBase58String(d.transactionId) + "_owner"), t), IntegerEntry((toBase58String(d.transactionId) + "_lat"), u), IntegerEntry((toBase58String(d.transactionId) + "_long"), v)] |
---|
50 | 75 | | |
---|
51 | 76 | | |
---|
52 | 77 | | |
---|
53 | 78 | | @Callable(d) |
---|
54 | | - | func createBookingTimeslot (r,s,t,u) = [IntegerEntry((((r + "_") + toString(t)) + "_startTime"), t), IntegerEntry((((r + "_") + toString(t)) + "_endTime"), u), IntegerEntry((r + "_cost"), s)] |
---|
| 79 | + | func createBookingTimeslot (w,x,y,z) = [IntegerEntry((((w + "_") + toString(y)) + "_startTime"), y), IntegerEntry((((w + "_") + toString(y)) + "_endTime"), z), IntegerEntry((w + "_cost"), x)] |
---|
55 | 80 | | |
---|
56 | 81 | | |
---|
57 | | - | @Verifier(v) |
---|
58 | | - | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) |
---|
| 82 | + | @Verifier(A) |
---|
| 83 | + | func B () = sigVerify(A.bodyBytes, A.proofs[0], A.senderPublicKey) |
---|
59 | 84 | | |
---|