tx · 7Xoozv2ABG3b8KjyCV5FcpQuyx86BSXXGaU7nvKynzyj 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42: -0.00200000 Waves 2022.07.07 13:25 [2129146] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves
{ "type": 13, "id": "7Xoozv2ABG3b8KjyCV5FcpQuyx86BSXXGaU7nvKynzyj", "fee": 200000, "feeAssetId": null, "timestamp": 1657189550381, "version": 2, "chainId": 84, "sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42", "senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB", "proofs": [ "62QnTAFR39BYiwJXHA9xQTyQTKcJttAXLyinF9DHwoyq6Bvo1y1oMT8PUEBzZhzxt4tKdjBZ6J5SiyrxdSS9V7o6" ], "script": "base64:AAIFAAAAAAAAABAIAhIDCgEIEgMKAQgSABIAAAAABAEAAAAMZ2V0T3duZXJBZGRyAAAAAAQAAAAFb3duZXIJAAQdAAAAAgUAAAAEdGhpcwIAAAAFb3duZXIDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAAAVvd25lcgkAAAIAAAABAgAAAAppbml0IGZpcnN0CQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAAFdmFsdWUAAAABBQAAAAVvd25lcgEAAAAKY2hlY2tPd25lcgAAAAEAAAAGY2FsbGVyCQAAAAAAAAIFAAAABmNhbGxlcgkBAAAADGdldE93bmVyQWRkcgAAAAABAAAAE2NoYW5nZU93bmVySW50ZXJuYWwAAAACAAAABmNhbGxlcgAAAARhZGRyAwkBAAAACmNoZWNrT3duZXIAAAABBQAAAAZjYWxsZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAFb3duZXIJAAQlAAAAAQUAAAAEYWRkcgUAAAADbmlsCQAAAgAAAAECAAAACk9ubHkgb3duZXIBAAAADGluaXRJbnRlcm5hbAAAAAIAAAAGY2FsbGVyAAAABGFkZHIEAAAABW93bmVyCQAEHQAAAAIFAAAABHRoaXMCAAAABW93bmVyAwMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAR0aGlzCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAAAVvd25lcgcJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAFb3duZXIFAAAABGFkZHIFAAAAA25pbAkAAAIAAAABAgAAAApPbmx5IGFkbWluAAAABAAAAAFpAQAAAAlpbml0T3duZXIAAAABAAAABGFkZHIJAQAAAAxpbml0SW50ZXJuYWwAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABGFkZHIAAAABaQEAAAALY2hhbmdlT3duZXIAAAABAAAABGFkZHIJAQAAABNjaGFuZ2VPd25lckludGVybmFsAAAAAggFAAAAAWkAAAAGY2FsbGVyCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAARhZGRyAAAAAWkBAAAACGNhbGxGdW5jAAAAAAMJAQAAAApjaGVja093bmVyAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAGaGVpZ2h0BQAAAANuaWwJAAACAAAAAQIAAAAKT25seSBPd25lcgAAAAFpAQAAAAlzaG93T3duZXIAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAATEJAAQlAAAAAQkBAAAADGdldE93bmVyQWRkcgAAAAAFAAAAA25pbAAAAAAJCgWg", "height": 2129146, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7VbCGjFHGxK3KZ61w1AjXM1vDyHwFcGRPShxfwmrKTqJ Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a () = { | |
5 | 5 | let b = getString(this, "owner") | |
6 | 6 | if (!(isDefined(b))) | |
7 | 7 | then throw("init first") | |
8 | 8 | else addressFromStringValue(value(b)) | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func c (d) = (d == a()) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func e (d,f) = if (c(d)) | |
16 | 16 | then [StringEntry("owner", toString(f))] | |
17 | 17 | else throw("Only owner") | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func g (d,f) = { | |
21 | 21 | let b = getString(this, "owner") | |
22 | 22 | if (if ((d == this)) | |
23 | 23 | then !(isDefined(b)) | |
24 | 24 | else false) | |
25 | 25 | then [StringEntry("owner", f)] | |
26 | 26 | else throw("Only admin") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | @Callable(h) | |
31 | 31 | func initOwner (f) = g(h.caller, f) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | ||
35 | 35 | @Callable(h) | |
36 | 36 | func changeOwner (f) = e(h.caller, addressFromStringValue(f)) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | ||
40 | 40 | @Callable(h) | |
41 | 41 | func callFunc () = if (c(h.caller)) | |
42 | 42 | then [IntegerEntry(toString(h.caller), height)] | |
43 | 43 | else throw("Only Owner") | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | ||
47 | 47 | @Callable(h) | |
48 | 48 | func showOwner () = [StringEntry("1", toString(a()))] | |
49 | 49 | ||
50 | 50 |
github/deemru/w8io/169f3d6 30.92 ms ◑