tx · BiUPN3AdFyzRXEH5CxTEdBawNUSnjk7kTfJrmMCeznaU 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk: -0.01400000 Waves 2021.05.25 19:18 [1541409] smart account 3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk > SELF 0.00000000 Waves
{ "type": 13, "id": "BiUPN3AdFyzRXEH5CxTEdBawNUSnjk7kTfJrmMCeznaU", "fee": 1400000, "feeAssetId": null, "timestamp": 1621959549010, "version": 2, "chainId": 84, "sender": "3N8nB5XeXcXTUDeiH6657UHa3wHa2rbZfDk", "senderPublicKey": "BfXK2ez9xjdgWtoFNsnaGPRFjHcFixy3UUrQ2iN8wVfX", "proofs": [ "4qS71LgMJrat8ga1KimxV5ha6TspApJDnLp4hC5mMkgouSevmTJZp4DS9CY1GwmHvhtfzQR1bDD3r9cdaUvdmtfy" ], "script": "base64:AAIEAAAAAAAAABMIAhIAEgUKAwgBARIGCgQIAQEBAAAAAQEAAAAKZmlsdGVyU3RlcAAAAAIAAAALYWNjdW11bGF0ZWQAAAABYQkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAAaQAAAABBQAAAAFhBQAAAAFhBQAAAAthY2N1bXVsYXRlZAAAAAMAAAABaQEAAAAHZGVwb3NpdAAAAAAEAAAAA2FycgkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAIJAARMAAAAAgAAAAAAAAAAAwkABEwAAAACAAAAAAAAAAAECQAETAAAAAIAAAAAAAAAAAUFAAAAA25pbAQAAAALJGxpc3QyNTEyNzkFAAAAA2FycgQAAAALJHNpemUyNTEyNzkJAAGQAAAAAQUAAAALJGxpc3QyNTEyNzkEAAAACyRhY2MwMjUxMjc5BQAAAANuaWwDCQAAAAAAAAIFAAAACyRzaXplMjUxMjc5AAAAAAAAAAAABQAAAAskYWNjMDI1MTI3OQQAAAALJGFjYzEyNTEyNzkJAQAAAApmaWx0ZXJTdGVwAAAAAgUAAAALJGFjYzAyNTEyN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"succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6YVdNeebGgf6agKXuVjpsVwiKga6eER7x744ac4mrBzH Next: F9PCvEfqSrdaULXZtYAC1HzXV2W4Z5KaokaUw6m3pnz Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func filterStep (accumulated,a) = if (((a % 2) == 0)) | |
5 | - | then a :: accumulated | |
6 | - | else accumulated | |
4 | + | func filterStep (accumulated,a) = IntegerEntry(toString(a), a) :: accumulated | |
5 | + | ||
6 | + | ||
7 | + | @Callable(i) | |
8 | + | func deposit () = { | |
9 | + | let arr = [1, 2, 3, 4, 5] | |
10 | + | let $list251279 = arr | |
11 | + | let $size251279 = size($list251279) | |
12 | + | let $acc0251279 = nil | |
13 | + | if (($size251279 == 0)) | |
14 | + | then $acc0251279 | |
15 | + | else { | |
16 | + | let $acc1251279 = filterStep($acc0251279, $list251279[0]) | |
17 | + | if (($size251279 == 1)) | |
18 | + | then $acc1251279 | |
19 | + | else { | |
20 | + | let $acc2251279 = filterStep($acc1251279, $list251279[1]) | |
21 | + | if (($size251279 == 2)) | |
22 | + | then $acc2251279 | |
23 | + | else { | |
24 | + | let $acc3251279 = filterStep($acc2251279, $list251279[2]) | |
25 | + | if (($size251279 == 3)) | |
26 | + | then $acc3251279 | |
27 | + | else { | |
28 | + | let $acc4251279 = filterStep($acc3251279, $list251279[3]) | |
29 | + | if (($size251279 == 4)) | |
30 | + | then $acc4251279 | |
31 | + | else { | |
32 | + | let $acc5251279 = filterStep($acc4251279, $list251279[4]) | |
33 | + | if (($size251279 == 5)) | |
34 | + | then $acc5251279 | |
35 | + | else { | |
36 | + | let $acc6251279 = filterStep($acc5251279, $list251279[5]) | |
37 | + | throw("List size exceed 5") | |
38 | + | } | |
39 | + | } | |
40 | + | } | |
41 | + | } | |
42 | + | } | |
43 | + | } | |
44 | + | } | |
45 | + | ||
7 | 46 | ||
8 | 47 | ||
9 | 48 | @Callable(i) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func filterStep (accumulated,a) = if (((a % 2) == 0)) | |
5 | - | then a :: accumulated | |
6 | - | else accumulated | |
4 | + | func filterStep (accumulated,a) = IntegerEntry(toString(a), a) :: accumulated | |
5 | + | ||
6 | + | ||
7 | + | @Callable(i) | |
8 | + | func deposit () = { | |
9 | + | let arr = [1, 2, 3, 4, 5] | |
10 | + | let $list251279 = arr | |
11 | + | let $size251279 = size($list251279) | |
12 | + | let $acc0251279 = nil | |
13 | + | if (($size251279 == 0)) | |
14 | + | then $acc0251279 | |
15 | + | else { | |
16 | + | let $acc1251279 = filterStep($acc0251279, $list251279[0]) | |
17 | + | if (($size251279 == 1)) | |
18 | + | then $acc1251279 | |
19 | + | else { | |
20 | + | let $acc2251279 = filterStep($acc1251279, $list251279[1]) | |
21 | + | if (($size251279 == 2)) | |
22 | + | then $acc2251279 | |
23 | + | else { | |
24 | + | let $acc3251279 = filterStep($acc2251279, $list251279[2]) | |
25 | + | if (($size251279 == 3)) | |
26 | + | then $acc3251279 | |
27 | + | else { | |
28 | + | let $acc4251279 = filterStep($acc3251279, $list251279[3]) | |
29 | + | if (($size251279 == 4)) | |
30 | + | then $acc4251279 | |
31 | + | else { | |
32 | + | let $acc5251279 = filterStep($acc4251279, $list251279[4]) | |
33 | + | if (($size251279 == 5)) | |
34 | + | then $acc5251279 | |
35 | + | else { | |
36 | + | let $acc6251279 = filterStep($acc5251279, $list251279[5]) | |
37 | + | throw("List size exceed 5") | |
38 | + | } | |
39 | + | } | |
40 | + | } | |
41 | + | } | |
42 | + | } | |
43 | + | } | |
44 | + | } | |
45 | + | ||
7 | 46 | ||
8 | 47 | ||
9 | 48 | @Callable(i) | |
10 | 49 | func createParkingSpot (owner,lat,long) = [StringEntry((toBase58String(i.transactionId) + "_owner"), owner), IntegerEntry((toBase58String(i.transactionId) + "_lat"), lat), IntegerEntry((toBase58String(i.transactionId) + "_long"), long)] | |
11 | 50 | ||
12 | 51 | ||
13 | 52 | ||
14 | 53 | @Callable(i) | |
15 | 54 | func createBookingTimeslot (parkinSlotId,cost,startTime,endTime) = [IntegerEntry((((parkinSlotId + "_") + toString(startTime)) + "_startTime"), startTime), IntegerEntry((((parkinSlotId + "_") + toString(startTime)) + "_endTime"), endTime), IntegerEntry((parkinSlotId + "_cost"), cost)] | |
16 | 55 | ||
17 | 56 | ||
18 | 57 | @Verifier(tx) | |
19 | 58 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
20 | 59 |
github/deemru/w8io/169f3d6 47.92 ms ◑