tx · 9XUuyYF5LpKDCzUDPsGCW9JabjFVmFhBa3GQXjJJGFfE

3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm:  -0.00200000 Waves

2022.07.07 13:21 [2129143] smart account 3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm > SELF 0.00000000 Waves

{ "type": 13, "id": "9XUuyYF5LpKDCzUDPsGCW9JabjFVmFhBa3GQXjJJGFfE", "fee": 200000, "feeAssetId": null, "timestamp": 1657189313221, "version": 2, "chainId": 84, "sender": "3MshLEZwkjz17HtsouWjFBXrXkPBVBHD7gm", "senderPublicKey": "CAYySFNuYSLU5jGWNBottZuyHbvGh2JxucGYSXF3aEi8", "proofs": [ "3Qs5SJ4Y8CimzorUYAt8buEqpkHbRhpGktQeMPnadorjBhFjSGqCb7fYMwyt6yDzZgKeoX89acGTPp57Lqm4w2HW" ], "script": "base64:AAIFAAAAAAAAABAIAhIDCgEIEgMKAQgSABIAAAAABAEAAAAMZ2V0T3duZXJBZGRyAAAAAAQAAAAFb3duZXIJAAQdAAAAAgUAAAAEdGhpcwIAAAAFb3duZXIDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAAAVvd25lcgkAAAIAAAABAgAAAAppbml0IGZpcnN0CQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAAFdmFsdWUAAAABBQAAAAVvd25lcgEAAAAKY2hlY2tPd25lcgAAAAEAAAAGY2FsbGVyCQAAAAAAAAIFAAAABmNhbGxlcgkBAAAADGdldE93bmVyQWRkcgAAAAABAAAAE2NoYW5nZU93bmVySW50ZXJuYWwAAAACAAAABmNhbGxlcgAAAARhZGRyAwkBAAAACmNoZWNrT3duZXIAAAABBQAAAAZjYWxsZXIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAFb3duZXIJAAQlAAAAAQUAAAAEYWRkcgUAAAADbmlsCQAAAgAAAAECAAAACk9ubHkgb3duZXIBAAAADGluaXRJbnRlcm5hbAAAAAIAAAAGY2FsbGVyAAAABGFkZHIEAAAABW93bmVyCQAEHQAAAAIFAAAABHRoaXMCAAAABW93bmVyAwMJAAAAAAAAAgUAAAAGY2FsbGVyBQAAAAR0aGlzCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAAAVvd25lcgcJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgIAAAAFb3duZXIFAAAABGFkZHIFAAAAA25pbAkAAAIAAAABAgAAAApPbmx5IGFkbWluAAAABAAAAAFpAQAAAAlpbml0T3duZXIAAAABAAAABGFkZHIJAQAAAAxpbml0SW50ZXJuYWwAAAACCAUAAAABaQAAAAZjYWxsZXIFAAAABGFkZHIAAAABaQEAAAALY2hhbmdlT3duZXIAAAABAAAABGFkZHIJAQAAABNjaGFuZ2VPd25lckludGVybmFsAAAAAggFAAAAAWkAAAAGY2FsbGVyCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABBQAAAARhZGRyAAAAAWkBAAAACGNhbGxGdW5jAAAAAAMJAQAAAApjaGVja093bmVyAAAAAQgFAAAAAWkAAAAGY2FsbGVyCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAGaGVpZ2h0BQAAAANuaWwJAAACAAAAAQIAAAAKT25seSBPd25lcgAAAAFpAQAAAAlzaG93T3duZXIAAAAACQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAATEJAAQlAAAAAQkBAAAADGdldE93bmVyQWRkcgAAAAAFAAAAA25pbAAAAAAJCgWg", "height": 2129143, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3SwY9rYs3WMJLF9jSV7YfHNr5V8SAeebg7DzJCSkHey4 Next: 9J2hPenVVshpSzUZ7Mu7edo5hzSPBmViYPZb5K5WRVxV 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/026f985 
54.09 ms