tx · FAHbfQ8K2HaAEMKjn9RJMJCdZEJyW6S1sGo8GMYQbbuV

3MumW7BtRwX8w1dn9tWwB7TpHAUkqoSEXve:  -0.01000000 Waves

2022.10.25 12:41 [2287751] smart account 3MumW7BtRwX8w1dn9tWwB7TpHAUkqoSEXve > SELF 0.00000000 Waves

{ "type": 13, "id": "FAHbfQ8K2HaAEMKjn9RJMJCdZEJyW6S1sGo8GMYQbbuV", "fee": 1000000, "feeAssetId": null, "timestamp": 1666690935382, "version": 2, "chainId": 84, "sender": "3MumW7BtRwX8w1dn9tWwB7TpHAUkqoSEXve", "senderPublicKey": "3H3TbYHdAJUPh9yFbybSbc1SGAgghXJ3kVJxDE8duuPJ", "proofs": [ "Xt3f8HQrxSnKXtVBzw7EH2LWuRDgzS5oiU1ZKBPTzA8b3AqhqDm1via3R6DvAVCnwYwJKUKz5wsRym7QaED1Nc2" ], "script": "base64:AAIFAAAAAAAAABEIAhIDCgEIEgMKAQgSAwoBCAAAAAkBAAAAEGdldFN0cmluZ09yVGhyb3cAAAACAAAAB2FkZHJlc3MAAAADa2V5CQEAAAATdmFsdWVPckVycm9yTWVzc2FnZQAAAAIJAAQdAAAAAgUAAAAHYWRkcmVzcwUAAAADa2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAxDYW4ndCByZWFkICcFAAAAA2tleQIAAAANJyBhdCBhZGRyZXNzIAkABCUAAAABBQAAAAdhZGRyZXNzAQAAABNwYXJzZUFkZHJlc3NPclRocm93AAAAAQAAAAxtYXliZUFkZHJlc3MJAQAAABN2YWx1ZU9yRXJyb3JNZXNzYWdlAAAAAgkABCYAAAABBQAAAAxtYXliZUFkZHJlc3MJAAEsAAAAAgkAASwAAAACAgAAABpDYW4ndCBwYXJzZSBhZGRyZXNzIGZyb20gJwUAAAAMbWF5YmVBZGRyZXNzAgAAAAEnAAAAAAxrZXlfcmVnaXN0cnkCAAAACHJlZ2lzdHJ5AAAAAAhyZWdpc3RyeQkBAAAAE3BhcnNlQ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AAAEFAAAAA2ludgUAAAADbmlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAADGtleV9yZWdpc3RyeQUAAAAPcmVnaXN0cnlBZGRyZXNzBQAAAANuaWwAAAADaW52AQAAABFzdXBwb3J0c0ludGVyZmFjZQAAAAEAAAALaW50ZXJmYWNlSWQJAAUUAAAAAgUAAAADbmlsCQAAAAAAAAIFAAAAC2ludGVyZmFjZUlkAgAAAAdnZXRBZGRyAAAAA2ludgEAAAAHZ2V0QWRkcgAAAAEAAAAFbGFiZWwJAAUUAAAAAgUAAAADbmlsCQEAAAAIX2dldEFkZHIAAAABBQAAAAVsYWJlbAAAAAAQWAOs", "height": 2287751, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EKSF1CPRMXgvASwhygcKrR3guqfAtmEULJL9M6Wh8cYN Next: F3V1HSLY6Cw26U3eU64kQJw66xRJPX1psUZR7YJoxwCD Diff:
OldNewDifferences
2222 else throw("Permission denied")
2323
2424
25-func _addr (label) = match invoke(registry, "owner", [label], nil) {
25+func _getAddr (label) = match invoke(registry, "getOwner", [label], nil) {
2626 case owner: String =>
2727 owner
2828 case _ =>
4545
4646
4747 @Callable(inv)
48-func supportsInterface (interfaceId) = $Tuple2(nil, (interfaceId == "addr"))
48+func supportsInterface (interfaceId) = $Tuple2(nil, (interfaceId == "getAddr"))
4949
5050
5151
5252 @Callable(inv)
53-func addr (label) = $Tuple2(nil, _addr(label))
53+func getAddr (label) = $Tuple2(nil, _getAddr(label))
5454
5555
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getStringOrThrow (address,key) = valueOrErrorMessage(getString(address, key), ((("Can't read '" + key) + "' at address ") + toString(address)))
55
66
77 func parseAddressOrThrow (maybeAddress) = valueOrErrorMessage(addressFromString(maybeAddress), (("Can't parse address from '" + maybeAddress) + "'"))
88
99
1010 let key_registry = "registry"
1111
1212 let registry = parseAddressOrThrow(getStringOrThrow(this, key_registry))
1313
1414 func isAdmin (inv) = (inv.caller == this)
1515
1616
1717 func modifiers (validations) = unit
1818
1919
2020 func onlyAdmin (inv) = if (isAdmin(inv))
2121 then unit
2222 else throw("Permission denied")
2323
2424
25-func _addr (label) = match invoke(registry, "owner", [label], nil) {
25+func _getAddr (label) = match invoke(registry, "getOwner", [label], nil) {
2626 case owner: String =>
2727 owner
2828 case _ =>
2929 unit
3030 }
3131
3232
3333 func _splitLastLabel (name) = {
3434 let labels = split(name, ".")
3535 let lastIndex = (size(labels) - 1)
3636 let lastLabel = labels[lastIndex]
3737 let restLabels = makeString(removeByIndex(labels, lastIndex), ".")
3838 $Tuple2(lastLabel, restLabels)
3939 }
4040
4141
4242 @Callable(inv)
4343 func init (registryAddress) = valueOrElse(modifiers([onlyAdmin(inv)]), [StringEntry(key_registry, registryAddress)])
4444
4545
4646
4747 @Callable(inv)
48-func supportsInterface (interfaceId) = $Tuple2(nil, (interfaceId == "addr"))
48+func supportsInterface (interfaceId) = $Tuple2(nil, (interfaceId == "getAddr"))
4949
5050
5151
5252 @Callable(inv)
53-func addr (label) = $Tuple2(nil, _addr(label))
53+func getAddr (label) = $Tuple2(nil, _getAddr(label))
5454
5555

github/deemru/w8io/169f3d6 
37.86 ms