tx · zfySaf3kNTaAh5JWXcwku6LtXwLZcozwh6phEXdqmzC 3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx: -0.01000000 Waves 2021.09.30 17:40 [1725829] smart account 3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx > SELF 0.00000000 Waves
{ "type": 13, "id": "zfySaf3kNTaAh5JWXcwku6LtXwLZcozwh6phEXdqmzC", "fee": 1000000, "feeAssetId": null, "timestamp": 1633012807265, "version": 2, "chainId": 84, "sender": "3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx", "senderPublicKey": "9a8JNLXFvTm9Bd3kg8DyJr3itTNZhfReuJtgPGzSTPLQ", "proofs": [ "2AGZbBnpaKypzUaguX9pr9CaFDo81UJJmjwmpDXnjJ9QNjT3amr6cxpQkQoJ4S4yRxjgoZnP81pAiqKPcujeb3a" ], "script": "base64:AAIFAAAAAAAAAAoIAhIAEgASABIAAAAAAwEAAAACZjEAAAABAAAAAWEDCQAAAQAAAAIFAAAAAWECAAAAA0ludAUAAAABYQUAAAAEdW5pdAEAAAACZjIAAAABAAAAAWEDCQAAAQAAAAIFAAAAAWECAAAADShJbnQsIFN0cmluZykFAAAAAWEFAAAABHVuaXQBAAAAAmYzAAAAAQAAAAFhAwkAAAEAAAACBQAAAAFhAgAAAAlMaXN0W0FueV0FAAAAAWEJAAACAAAAAQIAAAAeQ291bGRuJ3QgY2FzdCBBbnkgdG8gTGlzdFtBbnldAAAABAAAAAFpAQAAAAVjYWxsMwAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAA18xMQkAAGQAAAACCQEAAAAFdmFsdWUAAAABCQEAAAACZjEAAAABAAAAAAAAAAAKAAAAAAAAAAABCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAANfMTIJAQAAAAlpc0RlZmluZWQAAAABCQEAAAACZjEAAAABAgAAAAVXYXZlcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACAgAAAANfM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HNlbGYuAAAAAWkBAAAABnNlY29uZAAAAAAJAAUUAAAAAgUAAAADbmlsAAAAAAAAAAAqAAAAAMKursQ=", "height": 1725829, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7oN5RPSwnpe5K94YwVHgj6KCJqS1BsnKc5P7A3JFEKRc Next: ELahC9Few6hESNQ4FJYto8LEHciuqhAEHf6Gox6wxyzV Diff:
Old | New | Differences | |
---|---|---|---|
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | + | ||
36 | + | @Callable(i) | |
37 | + | func first () = { | |
38 | + | let d = invoke(this, "second", nil, nil) | |
39 | + | if ((d == d)) | |
40 | + | then [IntegerEntry("key", if ($isInstanceOf(d, "Int")) | |
41 | + | then d | |
42 | + | else throw("Couldn't cast Any to Int"))] | |
43 | + | else throw("Strict value is not equal to itself.") | |
44 | + | } | |
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | @Callable(i) | |
49 | + | func second () = $Tuple2(nil, 42) | |
50 | + | ||
51 | + |
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 | 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("_53", if ($isInstanceOf(f3([12, "Ride"])[0], "Int")) | |
21 | 21 | then f3([12, "Ride"])[0] | |
22 | 22 | else throw("Couldn't cast Any to Int"))] | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | ||
26 | 26 | @Callable(i) | |
27 | 27 | func call2 () = { | |
28 | 28 | let a = f3(88) | |
29 | 29 | if ((a == a)) | |
30 | 30 | then [StringEntry("32", "ok")] | |
31 | 31 | else throw("Strict value is not equal to itself.") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | + | ||
36 | + | @Callable(i) | |
37 | + | func first () = { | |
38 | + | let d = invoke(this, "second", nil, nil) | |
39 | + | if ((d == d)) | |
40 | + | then [IntegerEntry("key", if ($isInstanceOf(d, "Int")) | |
41 | + | then d | |
42 | + | else throw("Couldn't cast Any to Int"))] | |
43 | + | else throw("Strict value is not equal to itself.") | |
44 | + | } | |
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | @Callable(i) | |
49 | + | func second () = $Tuple2(nil, 42) | |
50 | + | ||
51 | + |
github/deemru/w8io/169f3d6 23.37 ms ◑