tx · ELahC9Few6hESNQ4FJYto8LEHciuqhAEHf6Gox6wxyzV 3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx: -0.01000000 Waves 2022.02.09 12:01 [1915879] smart account 3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx > SELF 0.00000000 Waves
{ "type": 13, "id": "ELahC9Few6hESNQ4FJYto8LEHciuqhAEHf6Gox6wxyzV", "fee": 1000000, "feeAssetId": null, "timestamp": 1644397223777, "version": 2, "chainId": 84, "sender": "3N38TQrBBEMzBaDvd7FLc17TvpDSaUKrRPx", "senderPublicKey": "9a8JNLXFvTm9Bd3kg8DyJr3itTNZhfReuJtgPGzSTPLQ", "proofs": [ "5FUixhVFsFAkoJF7qeeNFF3dm6qtnzTyXH8v6F6JbUZKynuchdtayJvob1SEoVyiGSnGmLLBibUedB3WRr7oj9iv" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAIaXNzdWVORlQAAAAABAAAAAVhc3NldAkABEIAAAAFAgAAAAVNeU5GVAIAAAAFZGVzYzEAAAAAAAAAAAEAAAAAAAAAAAAHCQAETAAAAAIFAAAABWFzc2V0BQAAAANuaWwAAAAA1WYBPg==", "height": 1915879, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: zfySaf3kNTaAh5JWXcwku6LtXwLZcozwh6phEXdqmzC Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# 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]") | |
17 | 4 | ||
18 | 5 | ||
19 | 6 | @Callable(i) | |
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 | - | then f3([12, "Ride"])[0] | |
22 | - | else throw("Couldn't cast Any to Int"))] | |
23 | - | ||
24 | - | ||
25 | - | ||
26 | - | @Callable(i) | |
27 | - | func call2 () = { | |
28 | - | let a = f3(88) | |
29 | - | if ((a == a)) | |
30 | - | then [StringEntry("32", "ok")] | |
31 | - | else throw("Strict value is not equal to itself.") | |
7 | + | func issueNFT () = { | |
8 | + | let asset = Issue("MyNFT", "desc1", 1, 0, false) | |
9 | + | [asset] | |
32 | 10 | } | |
33 | - | ||
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 | 11 | ||
51 | 12 |
github/deemru/w8io/169f3d6 27.19 ms ◑