tx · CG3oKNKWmECa99EZjKVGLwMWLy4YaJYk7W82Ur7yLCdk
3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx: -0.01000000 Waves
2021.09.30 16:02 [1725730] smart account 3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx > SELF 0.00000000 Waves
{
"type": 13,
"id": "CG3oKNKWmECa99EZjKVGLwMWLy4YaJYk7W82Ur7yLCdk",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1633007002302,
"version": 2,
"chainId": 84,
"sender": "3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx",
"senderPublicKey": "9a8JNLXFvTm9Bd3kg8DyJr3itTNZhfReuJtgPGzSTPLQ",
"proofs": [
"28hiG4dyj8A6ok6cQPiMZMxJ1DRLYkTbFqc38vcJt6WFqqTQJwECRwSbUeDhvEt2hbf6Y8bd9vd5qrsnx8phVS9w"
],
"script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAADAQAAAAJmMQAAAAEAAAABYQMJAAABAAAAAgUAAAABYQIAAAADSW50BQAAAAFhBQAAAAR1bml0AQAAAAJmMgAAAAEAAAABYQMJAAABAAAAAgUAAAABYQIAAAANKEludCwgU3RyaW5nKQUAAAABYQUAAAAEdW5pdAEAAAACZjMAAAABAAAAAWEDCQAAAQAAAAIFAAAAAWECAAAACUxpc3RbQW55XQUAAAABYQkAAAIAAAABAgAAAB5Db3VsZG4ndCBjYXN0IEFueSB0byBMaXN0W0FueV0AAAACAAAAAWkBAAAABWNhbGwzAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADXzExCQAAZAAAAAIJAQAAAAV2YWx1ZQAAAAEJAQAAAAJmMQAAAAEAAAAAAAAAAAoAAAAAAAAAAAEJAARMAAAAAgkBAAAADEJvb2xlYW5FbnRyeQAAAAICAAAAA18xMgkBAAAACWlzRGVmaW5lZAAAAAEJAQAAAAJmMQAAAAECAAAABVdhdmVzCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA18yMQkAASwAAAACCAkBAAAABXZhbHVlAAAAAQkBAAAAAmYyAAAAAQkABRQAAAACAAAAAAAAAAALAgAAAARSaWRlAAAAAl8yAgAAAAsgdGhlIFdhdmVzIQkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgIAAAADXzIyCQEAAAAJaXNEZWZpbmVkAAAAAQkBAAAAAmYyAAAAAQYJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAA18yMwQAAAAHJG1hdGNoMAkAAZEAAAACCQEAAAACZjMAAAABCQAETAAAAAIAAAAAAAAAAAwJAARMAAAAAgIAAAAEUmlkZQUAAAADbmlsAAAAAAAAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWUFAAAAByRtYXRjaDAFAAAAAWUA/////////5wFAAAAA25pbAAAAAFpAQAAAAVjYWxsMgAAAAAEAAAAAWEJAQAAAAJmMwAAAAEAAAAAAAAAAFgDCQAAAAAAAAIFAAAAAWEFAAAAAWEJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAACMzICAAAAAm9rBQAAAANuaWwJAAACAAAAAQIAAAAkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAAAAAPvBMeM=",
"height": 1725730,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 32eBRuG5i299FgsN7Aknw1YotpJecnfvviCHc7mtC12i
Next: 7oN5RPSwnpe5K94YwVHgj6KCJqS1BsnKc5P7A3JFEKRc
Diff:
Old | New | | Differences |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(e) |
---|
20 | | - | func call1 () = [IntegerEntry("11", { |
---|
21 | | - | let f = a(10) |
---|
| 20 | + | func call3 () = [IntegerEntry("_11", (value(a(10)) + 1)), BooleanEntry("_12", isDefined(a("Waves"))), StringEntry("_21", (value(c($Tuple2(11, "Ride")))._2 + " the Waves!")), BooleanEntry("_22", isDefined(c(true))), IntegerEntry("_23", { |
---|
| 21 | + | let f = d([12, "Ride"])[0] |
---|
22 | 22 | | if ($isInstanceOf(f, "Int")) |
---|
23 | 23 | | then { |
---|
24 | 24 | | let g = f |
---|
25 | | - | (g + 1) |
---|
26 | | - | } |
---|
27 | | - | else -100 |
---|
28 | | - | }), StringEntry("12", { |
---|
29 | | - | let f = a("Waves") |
---|
30 | | - | if ($isInstanceOf(f, "Unit")) |
---|
31 | | - | then { |
---|
32 | | - | let g = f |
---|
33 | | - | "unit" |
---|
34 | | - | } |
---|
35 | | - | else "other" |
---|
36 | | - | }), StringEntry("21", { |
---|
37 | | - | let f = c($Tuple2(11, "Ride")) |
---|
38 | | - | if ($isInstanceOf(f, "(Int, String)")) |
---|
39 | | - | then { |
---|
40 | | - | let g = f |
---|
41 | | - | (g._2 + " the Waves!") |
---|
42 | | - | } |
---|
43 | | - | else "other" |
---|
44 | | - | }), StringEntry("22", { |
---|
45 | | - | let f = c(true) |
---|
46 | | - | if ($isInstanceOf(f, "Unit")) |
---|
47 | | - | then { |
---|
48 | | - | let g = f |
---|
49 | | - | "unit" |
---|
50 | | - | } |
---|
51 | | - | else "other" |
---|
52 | | - | }), IntegerEntry("23", { |
---|
53 | | - | let f = d([12, "Ride"])[0] |
---|
54 | | - | if ($isInstanceOf(f, "Int")) |
---|
55 | | - | then { |
---|
56 | | - | let h = f |
---|
57 | | - | h |
---|
| 25 | + | g |
---|
58 | 26 | | } |
---|
59 | 27 | | else -100 |
---|
60 | 28 | | })] |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b) = if ($isInstanceOf(b, "Int")) |
---|
5 | 5 | | then b |
---|
6 | 6 | | else unit |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | func c (b) = if ($isInstanceOf(b, "(Int, String)")) |
---|
10 | 10 | | then b |
---|
11 | 11 | | else unit |
---|
12 | 12 | | |
---|
13 | 13 | | |
---|
14 | 14 | | func d (b) = if ($isInstanceOf(b, "List[Any]")) |
---|
15 | 15 | | then b |
---|
16 | 16 | | else throw("Couldn't cast Any to List[Any]") |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | @Callable(e) |
---|
20 | | - | func call1 () = [IntegerEntry("11", { |
---|
21 | | - | let f = a(10) |
---|
| 20 | + | func call3 () = [IntegerEntry("_11", (value(a(10)) + 1)), BooleanEntry("_12", isDefined(a("Waves"))), StringEntry("_21", (value(c($Tuple2(11, "Ride")))._2 + " the Waves!")), BooleanEntry("_22", isDefined(c(true))), IntegerEntry("_23", { |
---|
| 21 | + | let f = d([12, "Ride"])[0] |
---|
22 | 22 | | if ($isInstanceOf(f, "Int")) |
---|
23 | 23 | | then { |
---|
24 | 24 | | let g = f |
---|
25 | | - | (g + 1) |
---|
26 | | - | } |
---|
27 | | - | else -100 |
---|
28 | | - | }), StringEntry("12", { |
---|
29 | | - | let f = a("Waves") |
---|
30 | | - | if ($isInstanceOf(f, "Unit")) |
---|
31 | | - | then { |
---|
32 | | - | let g = f |
---|
33 | | - | "unit" |
---|
34 | | - | } |
---|
35 | | - | else "other" |
---|
36 | | - | }), StringEntry("21", { |
---|
37 | | - | let f = c($Tuple2(11, "Ride")) |
---|
38 | | - | if ($isInstanceOf(f, "(Int, String)")) |
---|
39 | | - | then { |
---|
40 | | - | let g = f |
---|
41 | | - | (g._2 + " the Waves!") |
---|
42 | | - | } |
---|
43 | | - | else "other" |
---|
44 | | - | }), StringEntry("22", { |
---|
45 | | - | let f = c(true) |
---|
46 | | - | if ($isInstanceOf(f, "Unit")) |
---|
47 | | - | then { |
---|
48 | | - | let g = f |
---|
49 | | - | "unit" |
---|
50 | | - | } |
---|
51 | | - | else "other" |
---|
52 | | - | }), IntegerEntry("23", { |
---|
53 | | - | let f = d([12, "Ride"])[0] |
---|
54 | | - | if ($isInstanceOf(f, "Int")) |
---|
55 | | - | then { |
---|
56 | | - | let h = f |
---|
57 | | - | h |
---|
| 25 | + | g |
---|
58 | 26 | | } |
---|
59 | 27 | | else -100 |
---|
60 | 28 | | })] |
---|
61 | 29 | | |
---|
62 | 30 | | |
---|
63 | 31 | | |
---|
64 | 32 | | @Callable(e) |
---|
65 | 33 | | func call2 () = { |
---|
66 | 34 | | let b = d(88) |
---|
67 | 35 | | if ((b == b)) |
---|
68 | 36 | | then [StringEntry("32", "ok")] |
---|
69 | 37 | | else throw("Strict value is not equal to itself.") |
---|
70 | 38 | | } |
---|
71 | 39 | | |
---|
72 | 40 | | |
---|