tx · 7fTgMY2W5gvix1Vayp6sAWv96kdWxc7SUTAvFZ7u2XWN

3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE:  -0.01000000 Waves

2022.10.20 09:52 [2280377] smart account 3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE > SELF 0.00000000 Waves

{ "type": 13, "id": "7fTgMY2W5gvix1Vayp6sAWv96kdWxc7SUTAvFZ7u2XWN", "fee": 1000000, "feeAssetId": null, "timestamp": 1666248782665, "version": 2, "chainId": 84, "sender": "3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE", "senderPublicKey": "3nPFqmiV1yaNvmSrQdE1QHbTAF8bfJB1GjbegBWbNNCK", "proofs": [ "3L9HSTRTj7AYzsKZkp5WEfLFpumbzkmZo118GrTbvAozkhJ9H9FBLfT8pFo9i577bWJx9Pp8kfNAwC6mmDDBgu5V" ], "script": "base64:AAIFAAAAAAAAACIIAhIDCgEIEgMKAQgSBAoCCAgSAwoBCBIECgIICBIDCgEIAAAACQEAAAAJa2V5X293bmVyAAAAAQAAAAdzdWJOYW1lCQABLAAAAAICAAAABm93bmVyXwUAAAAHc3ViTmFtZQEAAAANa2V5X3JlZ2lzdHJhcgAAAAEAAAAHc3ViTmFtZQkAASwAAAACAgAAAApyZWdpc3RyYXJfBQAAAAdzdWJOYW1lAQAAAAlfZ2V0T3duZXIAAAABAAAAB3N1Yk5hbWUJAAQdAAAAAgUAAAAEdGhpcwkBAAAACWtleV9vd25lcgAAAAEFAAAAB3N1Yk5hbWUBAAAACV9zZXRPd25lcgAAAAIAAAAHc3ViTmFtZQAAAAVvd25lcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAJa2V5X293bmVyAAAAAQUAAAAHc3ViTmFtZQUAAAAFb3duZXIFAAAAA25pbAEAAAANX2dldFJlZ2lzdHJhcgAAAAEAAAAHc3ViTmFtZQkABB0AAAACBQAAAAR0aGlzCQEAAAANa2V5X3JlZ2lzdHJhcg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3N1Yk5hbWUCAAAAFGAgYWxyZWFkeSByZWdpc3RlcmVkCQEAAAAJX3NldE93bmVyAAAAAgUAAAAHc3ViTmFtZQUAAAAFb3duZXIAAAADaW52AQAAABFzdXBwb3J0c0ludGVyZmFjZQAAAAEAAAALaW50ZXJmYWNlSWQJAAUUAAAAAgUAAAADbmlsCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgkABEwAAAACAgAAAARhZGRyCQAETAAAAAICAAAABW93bmVyCQAETAAAAAICAAAACXJlZ2lzdHJhcgUAAAADbmlsBQAAAAtpbnRlcmZhY2VJZAAAAANpbnYBAAAAB3NldEFkZHIAAAACAAAABG5hbWUAAAAHYWRkcmVzcwMJAQAAAAEhAAAAAQkBAAAAB2lzT3duZXIAAAACBQAAAANpbnYFAAAABG5hbWUJAAACAAAAAQIAAAARUGVybWlzc2lvbiBkZW5pZWQJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkBAAAAC2tleV9hZGRyZXNzAAAAAQUAAAAEbmFtZQUAAAAHYWRkcmVzcwUAAAADbmlsAAAAA2ludgEAAAAEYWRkcgAAAAEAAAAEbmFtZQkABRQAAAACBQAAAANuaWwJAAQdAAAAAgUAAAAEdGhpcwkBAAAAC2tleV9hZGRyZXNzAAAAAQUAAAAEbmFtZQAAAAAjCKie", "height": 2280377, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GqvEGRiopGZ44JcdFrNx3qUcZt6RHTG5wvdbogwNZn1T Next: CiKFybD3ZJj3pgfziLH4yRBuPUiEVueWuyMRNJHh69XU Diff:
OldNewDifferences
5555
5656
5757 @Callable(inv)
58-func supportsInterface (interfaceId) = $Tuple2(nil, containsElement(["addr", "owner"], interfaceId))
58+func supportsInterface (interfaceId) = $Tuple2(nil, containsElement(["addr", "owner", "registrar"], interfaceId))
5959
6060
6161
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func key_owner (subName) = ("owner_" + subName)
55
66
77 func key_registrar (subName) = ("registrar_" + subName)
88
99
1010 func _getOwner (subName) = getString(this, key_owner(subName))
1111
1212
1313 func _setOwner (subName,owner) = [StringEntry(key_owner(subName), owner)]
1414
1515
1616 func _getRegistrar (subName) = getString(this, key_registrar(subName))
1717
1818
1919 func _setRegistrar (subName,registrar) = [StringEntry(key_registrar(subName), registrar)]
2020
2121
2222 func key_address (name) = ("address_" + name)
2323
2424
2525 let registry = this
2626
2727 func isOwner (inv,name) = if ((inv.caller == this))
2828 then true
2929 else match invoke(registry, "owner", [name], nil) {
3030 case owner: String =>
3131 (owner == toString(inv.caller))
3232 case _ =>
3333 false
3434 }
3535
3636
3737 @Callable(inv)
3838 func owner (subName) = $Tuple2(nil, _getOwner(subName))
3939
4040
4141
4242 @Callable(inv)
4343 func registrar (subName) = $Tuple2(nil, _getRegistrar(subName))
4444
4545
4646
4747 @Callable(inv)
4848 func register (subName,owner) = {
4949 let currentOwner = _getOwner(subName)
5050 if (isDefined(currentOwner))
5151 then throw((("`" + subName) + "` already registered"))
5252 else _setOwner(subName, owner)
5353 }
5454
5555
5656
5757 @Callable(inv)
58-func supportsInterface (interfaceId) = $Tuple2(nil, containsElement(["addr", "owner"], interfaceId))
58+func supportsInterface (interfaceId) = $Tuple2(nil, containsElement(["addr", "owner", "registrar"], interfaceId))
5959
6060
6161
6262 @Callable(inv)
6363 func setAddr (name,address) = if (!(isOwner(inv, name)))
6464 then throw("Permission denied")
6565 else [StringEntry(key_address(name), address)]
6666
6767
6868
6969 @Callable(inv)
7070 func addr (name) = $Tuple2(nil, getString(this, key_address(name)))
7171
7272

github/deemru/w8io/169f3d6 
51.39 ms