tx · EeHr4hgq1yxx3w4mpeeRa7AWjXcgmJqdtssRuCzirVfC

3MrF6QFGLaSKfoNPMd8L3u7KYNm7cE43Ydw:  -0.00200000 Waves

2022.10.09 17:15 [2264909] smart account 3MrF6QFGLaSKfoNPMd8L3u7KYNm7cE43Ydw > SELF 0.00000000 Waves

{ "type": 13, "id": "EeHr4hgq1yxx3w4mpeeRa7AWjXcgmJqdtssRuCzirVfC", "fee": 200000, "feeAssetId": null, "timestamp": 1665324906273, "version": 2, "chainId": 84, "sender": "3MrF6QFGLaSKfoNPMd8L3u7KYNm7cE43Ydw", "senderPublicKey": "6NSakbUsm1WyESQ8yj3qpc1kQUfHWNd5C6CHVpbs4X7c", "proofs": [ "5pi4yNxTKZWtdYYSfU8shM7YTsUjxtdLCnLwJv27uB2DFeCpKrpkikT4RmLJkErmuTwQbqf3AU7ExC29aN8LgrdG" ], "script": "base64:AAIFAAAAAAAAAAwIAhIDCgEIEgMKAQgAAAAFAQAAABBnZXRTdHJpbmdPclRocm93AAAAAgAAAAdhZGRyZXNzAAAAA2tleQkBAAAAE3ZhbHVlT3JFcnJvck1lc3NhZ2UAAAACCQAEHQAAAAIFAAAAB2FkZHJlc3MFAAAAA2tleQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgIAAAAMQ2FuJ3QgcmVhZCAnBQAAAANrZXkCAAAADScgYXQgYWRkcmVzcyAJAAQlAAAAAQUAAAAHYWRkcmVzcwEAAAATcGFyc2VBZGRyZXNzT3JUaHJvdwAAAAEAAAAMbWF5YmVBZGRyZXNzCQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQmAAAAAQUAAAAMbWF5YmVBZGRyZXNzCQABLAAAAAIJAAEsAAAAAgIAAAAaQ2FuJ3QgcGFyc2UgYWRkcmVzcyBmcm9tICcFAAAADG1heWJlQWRkcmVzcwIAAAABJwAAAAAMa2V5X3JlZ2lzdHJ5AgAAAAhyZWdpc3RyeQAAAAAIcmVnaXN0cnkJAQAAABNwYXJzZUFkZHJlc3NPclRocm93AAAAAQkBAAAAEGdldFN0cmluZ09yVGhyb3cAAAACBQAAAAR0aGlzBQAAAAxrZXlfcmVnaXN0cnkBAAAABGFkZHIAAAABAAAABWxhYmVsBAAAAAckbWF0Y2gwCQAD/AAAAAQFAAAACHJlZ2lzdHJ5AgAAAAVvd25lcgkABEwAAAACBQAAAAVsYWJlbAUAAAADbmlsBQAAAANuaWwDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAAFb3duZXIFAAAAByRtYXRjaDAFAAAABW93bmVyBQAAAAR1bml0AAAAAgAAAANpbnYBAAAABGluaXQAAAABAAAAD3JlZ2lzdHJ5QWRkcmVzcwkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACBQAAAAxrZXlfcmVnaXN0cnkFAAAAD3JlZ2lzdHJ5QWRkcmVzcwUAAAADbmlsAAAAA2ludgEAAAAHcmVzb2x2ZQAAAAEAAAAEbmFtZQQAAAAGbGFiZWxzAwkAAAAAAAACCQABMQAAAAEFAAAABG5hbWUAAAAAAAAAAAAJAAACAAAAAQIAAAAUTmFtZSBjYW5ub3QgYmUgZW1wdHkJAAS1AAAAAgUAAAAEbmFtZQIAAAABLgQAAAAGbGV2ZWxzCQABkAAAAAEFAAAABmxhYmVscwQAAAAFbGFiZWwJAAGRAAAAAgUAAAAGbGFiZWxzCQAAZQAAAAIFAAAABmxldmVscwAAAAAAAAAAAQkABRQAAAACBQAAAANuaWwJAQAAAARhZGRyAAAAAQUAAAAFbGFiZWwAAAAAr9cgYg==", "height": 2264909, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: eRxGEJS7CwTN94owiyWe2ntedNWegeJxrf9DaU29xFE Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+func getStringOrThrow (address,key) = valueOrErrorMessage(getString(address, key), ((("Can't read '" + key) + "' at address ") + toString(address)))
5+
6+
7+func parseAddressOrThrow (maybeAddress) = valueOrErrorMessage(addressFromString(maybeAddress), (("Can't parse address from '" + maybeAddress) + "'"))
8+
9+
10+let key_registry = "registry"
11+
12+let registry = parseAddressOrThrow(getStringOrThrow(this, key_registry))
13+
14+func addr (label) = match invoke(registry, "owner", [label], nil) {
15+ case owner: String =>
16+ owner
17+ case _ =>
18+ unit
19+}
20+
21+
22+@Callable(inv)
23+func init (registryAddress) = [StringEntry(key_registry, registryAddress)]
24+
25+
26+
27+@Callable(inv)
28+func resolve (name) = {
29+ let labels = if ((size(name) == 0))
30+ then throw("Name cannot be empty")
31+ else split(name, ".")
32+ let levels = size(labels)
33+ let label = labels[(levels - 1)]
34+ $Tuple2(nil, addr(label))
35+ }
36+
37+

github/deemru/w8io/169f3d6 
17.67 ms