tx · 63aM1jzYWZQa5B18BH9SgJHfrUYH73njzfnrWWq6bWkU 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV: -0.01000000 Waves 2021.12.08 16:44 [1825356] smart account 3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV > SELF 0.00000000 Waves
{ "type": 13, "id": "63aM1jzYWZQa5B18BH9SgJHfrUYH73njzfnrWWq6bWkU", "fee": 1000000, "feeAssetId": null, "timestamp": 1638971081179, "version": 2, "chainId": 84, "sender": "3N7Gg64FJ3ESaqn41qu1ete7zmzbmoP1AAV", "senderPublicKey": "5amLtMwixiEesBDKPy9dkFWntG2fNxhTs5n69JbQE9F7", "proofs": [ "5DM7yoAytrHTHu8NfPbCXX114tVC8Jhmy95zoWnqg6yQfJKxNk9srGcEWrZ6xzPGgeNbkoiWnqbp5LapUTEg1nH2" ], "script": "base64:AAIFAAAAAAAAAAoIAhIECgIIARIAAAAAAQAAAAAFc2VwYXICAAAAAXwAAAACAAAAAWkBAAAADHNldGNoYWxsZW5nZQAAAAIAAAAEc2lkZQAAAAVzdGFrZQMDCQAAAAAAAAIFAAAABHNpZGUCAAAABWJsYWNrBgkAAAAAAAACBQAAAARzaWRlAgAAAAV3aGl0ZQQAAAADcG10AwkAAAAAAAACCQABkAAAAAEIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAACQAAAgAAAAECAAAAFW11c3Qgc3Rha2Ugc29tZSB3YXZlcwMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAVd29ya3Mgd2l0aCB3YXZlcyBvbmx5BAAAAAxjYWxsZXJBZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABLAAAAAICAAAACmNoYWxsZW5nZS0FAAAADGNhbGxlck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AAAABAgAAABRjaGFsbGVuZ2Ugbm90IGV4aXN0cwkAAAIAAAABAgAAABRjaGFsbGVuZ2Ugbm90IGV4aXN0cwAAAADE3Wnk", "height": 1825356, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CPr39sQjAkQAMmGCEKrgHtPT6PBenPYHxpzkidP6apCm Next: FgdxQLhK9hLNCCsR7HWMxXX4wQiDwEUL79HygmyGvWFT Diff:
Old | New | Differences | |
---|---|---|---|
35 | 35 | else "" | |
36 | 36 | } | |
37 | 37 | ||
38 | - | let k = split(g( | |
38 | + | let k = split(g(f), a) | |
39 | 39 | if ((size(k) == 1)) | |
40 | 40 | then if ((k[0] == "awaiting")) | |
41 | 41 | then [StringEntry(("challenge-" + f), makeString(["unset", k[1], k[2]], a))] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "|" | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func setchallenge (c,d) = if (if ((c == "black")) | |
8 | 8 | then true | |
9 | 9 | else (c == "white")) | |
10 | 10 | then { | |
11 | 11 | let e = if ((size(b.payments) == 1)) | |
12 | 12 | then b.payments[0] | |
13 | 13 | else throw("must stake some waves") | |
14 | 14 | if (isDefined(e.assetId)) | |
15 | 15 | then throw("works with waves only") | |
16 | 16 | else { | |
17 | 17 | let f = toBase58String(b.caller.bytes) | |
18 | 18 | [StringEntry(("challenge-" + f), makeString(["awaiting", c, toString(e.amount)], a))] | |
19 | 19 | } | |
20 | 20 | } | |
21 | 21 | else throw("invalid side") | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | ||
25 | 25 | @Callable(b) | |
26 | 26 | func unsetchallenge () = { | |
27 | 27 | let f = toBase58String(b.caller.bytes) | |
28 | 28 | func g (h) = { | |
29 | 29 | let i = getString(("challenge-" + h)) | |
30 | 30 | if ($isInstanceOf(i, "String")) | |
31 | 31 | then { | |
32 | 32 | let j = i | |
33 | 33 | getStringValue(("challenge-" + h)) | |
34 | 34 | } | |
35 | 35 | else "" | |
36 | 36 | } | |
37 | 37 | ||
38 | - | let k = split(g( | |
38 | + | let k = split(g(f), a) | |
39 | 39 | if ((size(k) == 1)) | |
40 | 40 | then if ((k[0] == "awaiting")) | |
41 | 41 | then [StringEntry(("challenge-" + f), makeString(["unset", k[1], k[2]], a))] | |
42 | 42 | else throw("challenge not exists") | |
43 | 43 | else throw("challenge not exists") | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 |
github/deemru/w8io/026f985 21.94 ms ◑