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////////+cCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAAjEyBAAAAAckbWF0Y2gwCQEAAAACZjEAA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XF1YWwgdG8gaXRzZWxmLgAAAAB1QMoS", "height": 1725680, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3wZKtPyiQoSs9uupEB1EbPmmXGas1DBDhNTwh9EKaJGE Next: 32eBRuG5i299FgsN7Aknw1YotpJecnfvviCHc7mtC12i Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = if ($isInstanceOf(b, "Int")) | |
5 | + | then b | |
6 | + | else unit | |
4 | 7 | ||
5 | 8 | ||
6 | - | @Callable(a) | |
7 | - | func call () = [ScriptTransfer(a.caller, 1, unit), ScriptTransfer(a.caller, 2, unit), ScriptTransfer(a.caller, 3, unit), ScriptTransfer(a.caller, 4, unit), ScriptTransfer(a.caller, 5, unit), ScriptTransfer(a.caller, 6, unit), ScriptTransfer(a.caller, 7, unit), ScriptTransfer(a.caller, 8, unit), ScriptTransfer(a.caller, 9, unit), ScriptTransfer(a.caller, 10, unit), ScriptTransfer(a.caller, 11, unit), ScriptTransfer(a.caller, 12, unit), ScriptTransfer(a.caller, 13, unit), ScriptTransfer(a.caller, 14, unit), ScriptTransfer(a.caller, 15, unit)] | |
9 | + | func c (b) = if ($isInstanceOf(b, "(Int, String)")) | |
10 | + | then b | |
11 | + | else unit | |
12 | + | ||
13 | + | ||
14 | + | func d (b) = if ($isInstanceOf(b, "List[Any]")) | |
15 | + | then b | |
16 | + | else throw("Couldn't cast Any to List[Any]") | |
17 | + | ||
18 | + | ||
19 | + | @Callable(e) | |
20 | + | func call1 () = [IntegerEntry("11", { | |
21 | + | let f = a(10) | |
22 | + | if ($isInstanceOf(f, "Int")) | |
23 | + | then { | |
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("31", { | |
53 | + | let f = d([12, "Ride"]) | |
54 | + | if ($isInstanceOf(f, "List[Any]")) | |
55 | + | then { | |
56 | + | let g = f | |
57 | + | let h = g[0] | |
58 | + | if ($isInstanceOf(h, "Int")) | |
59 | + | then { | |
60 | + | let i = h | |
61 | + | i | |
62 | + | } | |
63 | + | else -100 | |
64 | + | } | |
65 | + | else -100 | |
66 | + | })] | |
67 | + | ||
68 | + | ||
69 | + | ||
70 | + | @Callable(e) | |
71 | + | func call2 () = { | |
72 | + | let b = d(88) | |
73 | + | if ((b == b)) | |
74 | + | then [StringEntry("32", "ok")] | |
75 | + | else throw("Strict value is not equal to itself.") | |
76 | + | } | |
8 | 77 | ||
9 | 78 |
github/deemru/w8io/169f3d6 23.76 ms ◑