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(i) | |
20 | - | func call1 () = [IntegerEntry("11", match f1(10) { | |
21 | - | case t: Int => | |
22 | - | (t + 1) | |
23 | - | case _ => | |
24 | - | -100 | |
25 | - | }), StringEntry("12", match f1("Waves") { | |
26 | - | case t: Unit => | |
27 | - | "unit" | |
28 | - | case _ => | |
29 | - | "other" | |
30 | - | }), StringEntry("21", match f2($Tuple2(11, "Ride")) { | |
31 | - | case t: (Int, String) => | |
32 | - | (t._2 + " the Waves!") | |
33 | - | case _ => | |
34 | - | "other" | |
35 | - | }), StringEntry("22", match f2(true) { | |
36 | - | case t: Unit => | |
37 | - | "unit" | |
38 | - | case _ => | |
39 | - | "other" | |
40 | - | }), IntegerEntry("23", match f3([12, "Ride"])[0] { | |
20 | + | func call3 () = [IntegerEntry("_11", (value(f1(10)) + 1)), BooleanEntry("_12", isDefined(f1("Waves"))), StringEntry("_21", (value(f2($Tuple2(11, "Ride")))._2 + " the Waves!")), BooleanEntry("_22", isDefined(f2(true))), IntegerEntry("_23", match f3([12, "Ride"])[0] { | |
41 | 21 | case e: Int => | |
42 | 22 | e | |
43 | 23 | case _ => |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func f1 (a) = if ($isInstanceOf(a, "Int")) | |
5 | 5 | then a | |
6 | 6 | else unit | |
7 | 7 | ||
8 | 8 | ||
9 | 9 | func f2 (a) = if ($isInstanceOf(a, "(Int, String)")) | |
10 | 10 | then a | |
11 | 11 | else unit | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f3 (a) = if ($isInstanceOf(a, "List[Any]")) | |
15 | 15 | then a | |
16 | 16 | else throw("Couldn't cast Any to List[Any]") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(i) | |
20 | - | func call1 () = [IntegerEntry("11", match f1(10) { | |
21 | - | case t: Int => | |
22 | - | (t + 1) | |
23 | - | case _ => | |
24 | - | -100 | |
25 | - | }), StringEntry("12", match f1("Waves") { | |
26 | - | case t: Unit => | |
27 | - | "unit" | |
28 | - | case _ => | |
29 | - | "other" | |
30 | - | }), StringEntry("21", match f2($Tuple2(11, "Ride")) { | |
31 | - | case t: (Int, String) => | |
32 | - | (t._2 + " the Waves!") | |
33 | - | case _ => | |
34 | - | "other" | |
35 | - | }), StringEntry("22", match f2(true) { | |
36 | - | case t: Unit => | |
37 | - | "unit" | |
38 | - | case _ => | |
39 | - | "other" | |
40 | - | }), IntegerEntry("23", match f3([12, "Ride"])[0] { | |
20 | + | func call3 () = [IntegerEntry("_11", (value(f1(10)) + 1)), BooleanEntry("_12", isDefined(f1("Waves"))), StringEntry("_21", (value(f2($Tuple2(11, "Ride")))._2 + " the Waves!")), BooleanEntry("_22", isDefined(f2(true))), IntegerEntry("_23", match f3([12, "Ride"])[0] { | |
41 | 21 | case e: Int => | |
42 | 22 | e | |
43 | 23 | case _ => | |
44 | 24 | -100 | |
45 | 25 | })] | |
46 | 26 | ||
47 | 27 | ||
48 | 28 | ||
49 | 29 | @Callable(i) | |
50 | 30 | func call2 () = { | |
51 | 31 | let a = f3(88) | |
52 | 32 | if ((a == a)) | |
53 | 33 | then [StringEntry("32", "ok")] | |
54 | 34 | else throw("Strict value is not equal to itself.") | |
55 | 35 | } | |
56 | 36 | ||
57 | 37 |
github/deemru/w8io/169f3d6 22.22 ms ◑