tx · GQuMpVjWxhC8hfeSzgp56RXH9LMcpf7VXBuAcHqBNx8P

3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx:  -0.01000000 Waves

2021.09.30 15:12 [1725680] smart account 3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx > SELF 0.00000000 Waves

{ "type": 13, "id": "GQuMpVjWxhC8hfeSzgp56RXH9LMcpf7VXBuAcHqBNx8P", "fee": 1000000, "feeAssetId": null, "timestamp": 1633003879343, "version": 2, "chainId": 84, "sender": "3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx", "senderPublicKey": "9a8JNLXFvTm9Bd3kg8DyJr3itTNZhfReuJtgPGzSTPLQ", "proofs": [ "4EuhK7NDYMW4wQXcruPT17kemX8LEzmqzRRtr2beNKz5mTSHeQKe54x25JrR9T4aFTWouN6Nery7V7Q9awwKTscf" ], "script": "base64:AAIFAAAAAAAAAAYIAhIAEgAAAAADAQAAAAJmMQAAAAEAAAABYQMJAAABAAAAAgUAAAABYQIAAAADSW50BQAAAAFhBQAAAAR1bml0AQAAAAJmMgAAAAEAAAABYQMJAAABAAAAAgUAAAABYQIAAAANKEludCwgU3RyaW5nKQUAAAABYQUAAAAEdW5pdAEAAAACZjMAAAABAAAAAWEDCQAAAQAAAAIFAAAAAWECAAAACUxpc3RbQW55XQUAAAABYQkAAAIAAAABAgAAAB5Db3VsZG4ndCBjYXN0IEFueSB0byBMaXN0W0FueV0AAAACAAAAAWkBAAAABWNhbGwxAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAACMTEEAAAAByRtYXRjaDAJAQAAAAJmMQAAAAEAAAAAAAAAAAoDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABdAUAAAAHJG1hdGNoMAkAAGQAAAACBQAAAAF0AAAAAAAAAAABAP////////+cCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAAjEyBAAAAAckbWF0Y2gwCQEAAAACZjEA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ZXF1YWwgdG8gaXRzZWxmLgAAAAB1QMoS", "height": 1725680, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3wZKtPyiQoSs9uupEB1EbPmmXGas1DBDhNTwh9EKaJGE Next: 32eBRuG5i299FgsN7Aknw1YotpJecnfvviCHc7mtC12i Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+func f1 (a) = if ($isInstanceOf(a, "Int"))
5+ then a
6+ else unit
7+
8+
9+func f2 (a) = if ($isInstanceOf(a, "(Int, String)"))
10+ then a
11+ else unit
12+
13+
14+func f3 (a) = if ($isInstanceOf(a, "List[Any]"))
15+ then a
16+ else throw("Couldn't cast Any to List[Any]")
417
518
619 @Callable(i)
7-func call () = [ScriptTransfer(i.caller, 1, unit), ScriptTransfer(i.caller, 2, unit), ScriptTransfer(i.caller, 3, unit), ScriptTransfer(i.caller, 4, unit), ScriptTransfer(i.caller, 5, unit), ScriptTransfer(i.caller, 6, unit), ScriptTransfer(i.caller, 7, unit), ScriptTransfer(i.caller, 8, unit), ScriptTransfer(i.caller, 9, unit), ScriptTransfer(i.caller, 10, unit), ScriptTransfer(i.caller, 11, unit), ScriptTransfer(i.caller, 12, unit), ScriptTransfer(i.caller, 13, unit), ScriptTransfer(i.caller, 14, unit), ScriptTransfer(i.caller, 15, unit)]
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("31", match f3([12, "Ride"]) {
41+ case t: List[Any] =>
42+ match t[0] {
43+ case e: Int =>
44+ e
45+ case _ =>
46+ -100
47+ }
48+ case _ =>
49+ -100
50+})]
51+
52+
53+
54+@Callable(i)
55+func call2 () = {
56+ let a = f3(88)
57+ if ((a == a))
58+ then [StringEntry("32", "ok")]
59+ else throw("Strict value is not equal to itself.")
60+ }
861
962

github/deemru/w8io/169f3d6 
31.58 ms