tx · 7VbCGjFHGxK3KZ61w1AjXM1vDyHwFcGRPShxfwmrKTqJ

3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42:  -0.00200000 Waves

2022.07.07 13:23 [2129144] smart account 3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42 > SELF 0.00000000 Waves

{ "type": 13, "id": "7VbCGjFHGxK3KZ61w1AjXM1vDyHwFcGRPShxfwmrKTqJ", "fee": 200000, "feeAssetId": null, "timestamp": 1657189433688, "version": 2, "chainId": 84, "sender": "3MvCKDNrXFLCPCMjLTQXzfiHYejGf5QST42", "senderPublicKey": "Bm8NA6cDADuRW1tDcjPsFdpsoUGwdxSD16MjDxtar9JB", "proofs": [ "52pJBu9boYg4izAEKczYEuKmgGbCQCN8pGywUcChXjY7N9E5M4d9NjGchvtieV2x4hX5oaQEAsUPawLnoCT4B1w9" ], "script": "base64:AAIFAAAAAAAAABAIAhIDCgEIEgMKAQgSABIAAAAABAEAAAAMZ2V0T3duZXJBZGRyAAAAAAQAAAAFb3duZXIJAAQdAAAAAgUAAAAEdGhpcwIAAAAFb3duZXIDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAAAVvd25lcgkAAAIAAAABAgAAAAppbml0IGZpcnN0CQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAAFdmFsdWUAAAABBQAAAAVvd25lcgEAAAAKY2hlY2tPd25lcgAAAAEAAAAGY2FsbGVyCQAAAAAAAAIFAAAABmNhbGxlcgkBAAAADGdldE93bmVyQWRkcgAAAAABAAAAE2NoYW5nZU93bmVySW50ZXJuYWwAAAACAAAABmNhbGxlcgAAAARhZGRyAwkBAAAACmNoZWNrT3duZXIAAAABBQAAAAZjYWxsZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAFb3duZXIJAAQlAAAAAQUAAAAEYWRkcgUAAAADbmlsCQAAAgAAAAECAAAACk9ubHkgb3duZXIBAAAADGluaXRJbnRlcm5hbAAAAAIAAAAGY2FsbGVyAAAABGFkZHIEAAAABW93bmVyCQAEHQAAAAIFAAAABHRoaXMCAAAABW93bmVyAwMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAR0aGlzCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAAAVvd25lcgcJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAFb3duZXIFAAAABGFkZHIFAAAAA25pbAkAAAIAAAABAgAAAApPbmx5IGFkbWluAAAABAAAAAFpAQAAAAlpbml0T3duZXIAAAABAAAABGFkZHIJAQAAAAxpbml0SW50ZXJuYWwAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABGFkZHIAAAABaQEAAAALY2hhbmdlT3duZXIAAAABAAAABGFkZHIJAQAAABNjaGFuZ2VPd25lckludGVybmFsAAAAAggFAAAAAWkAAAAGY2FsbGVyCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAARhZGRyAAAAAWkBAAAACGNhbGxGdW5jAAAAAAMJAQAAAApjaGVja093bmVyAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAGaGVpZ2h0BQAAAANuaWwJAAACAAAAAQIAAAAKT25seSBPd25lcgAAAAFpAQAAAAlzaG93T3duZXIAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAATEJAAQlAAAAAQkBAAAADGdldE93bmVyQWRkcgAAAAAFAAAAA25pbAAAAAAJCgWg", "height": 2129144, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9uKLfQRDDJSQqLUEYkvnqMYo19MGS1MeUucqWhPuRnM2 Next: 7Xoozv2ABG3b8KjyCV5FcpQuyx86BSXXGaU7nvKynzyj Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getOwnerAddr () = {
55 let owner = getString(this, "owner")
66 if (!(isDefined(owner)))
77 then throw("init first")
88 else addressFromStringValue(value(owner))
99 }
1010
1111
1212 func checkOwner (caller) = (caller == getOwnerAddr())
1313
1414
1515 func changeOwnerInternal (caller,addr) = if (checkOwner(caller))
1616 then [StringEntry("owner", toString(addr))]
1717 else throw("Only owner")
1818
1919
2020 func initInternal (caller,addr) = {
2121 let owner = getString(this, "owner")
2222 if (if ((caller == this))
2323 then !(isDefined(owner))
2424 else false)
2525 then [StringEntry("owner", addr)]
2626 else throw("Only admin")
2727 }
2828
2929
3030 @Callable(i)
3131 func initOwner (addr) = initInternal(i.caller, addr)
3232
3333
3434
3535 @Callable(i)
3636 func changeOwner (addr) = changeOwnerInternal(i.caller, addressFromStringValue(addr))
3737
3838
3939
4040 @Callable(i)
4141 func callFunc () = if (checkOwner(i.caller))
4242 then [IntegerEntry(toString(i.caller), height)]
4343 else throw("Only Owner")
4444
4545
4646
4747 @Callable(i)
4848 func showOwner () = [StringEntry("1", toString(getOwnerAddr()))]
4949
5050

github/deemru/w8io/169f3d6 
43.07 ms