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:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func a () = {
55 let b = getString(this, "owner")
66 if (!(isDefined(b)))
77 then throw("init first")
88 else addressFromStringValue(value(b))
99 }
1010
1111
1212 func c (d) = (d == a())
1313
1414
1515 func e (d,f) = if (c(d))
1616 then [StringEntry("owner", toString(f))]
1717 else throw("Only owner")
1818
1919
2020 func g (d,f) = {
2121 let b = getString(this, "owner")
2222 if (if ((d == this))
2323 then !(isDefined(b))
2424 else false)
2525 then [StringEntry("owner", f)]
2626 else throw("Only admin")
2727 }
2828
2929
3030 @Callable(h)
3131 func initOwner (f) = g(h.caller, f)
3232
3333
3434
3535 @Callable(h)
3636 func changeOwner (f) = e(h.caller, addressFromStringValue(f))
3737
3838
3939
4040 @Callable(h)
4141 func callFunc () = if (c(h.caller))
4242 then [IntegerEntry(toString(h.caller), height)]
4343 else throw("Only Owner")
4444
4545
4646
4747 @Callable(h)
4848 func showOwner () = [StringEntry("1", toString(a()))]
4949
5050

github/deemru/w8io/169f3d6 
30.92 ms