tx · ERnjHYdJx2URMpk9S5shHb6fHkvuLQpiGYS7t5hkHqeQ

3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE:  -0.01000000 Waves

2022.10.17 14:17 [2276303] smart account 3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE > SELF 0.00000000 Waves

{ "type": 13, "id": "ERnjHYdJx2URMpk9S5shHb6fHkvuLQpiGYS7t5hkHqeQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1666005494651, "version": 2, "chainId": 84, "sender": "3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE", "senderPublicKey": "3nPFqmiV1yaNvmSrQdE1QHbTAF8bfJB1GjbegBWbNNCK", "proofs": [ "3dGiw5jxjympuJBXvRTWg4iNH2RyMnefqHxvhFc8vYYx9tkrKeHm3pS91X3kpFkzop7gzNREAWj43hN9huKmNwCf" ], "script": "base64:AAIFAAAAAAAAABIIAhIDCgEIEgQKAggIEgMKAQgAAAACAQAAAAtrZXlfYWRkcmVzcwAAAAEAAAAEbmFtZQkAASwAAAACAgAAAAhhZGRyZXNzXwUAAAAEbmFtZQEAAAAHaXNPd25lcgAAAAEAAAADaW52CQAAAAAAAAIIBQAAAANpbnYAAAAGY2FsbGVyBQAAAAR0aGlzAAAAAwAAAANpbnYBAAAAEXN1cHBvcnRzSW50ZXJmYWNlAAAAAQAAAAtpbnRlcmZhY2VJZAkABRQAAAACBQAAAANuaWwJAAAAAAAAAgUAAAALaW50ZXJmYWNlSWQCAAAABGFkZHIAAAADaW52AQAAAAdzZXRBZGRyAAAAAgAAAARuYW1lAAAAB2FkZHJlc3MDCQEAAAABIQAAAAEJAQAAAAdpc093bmVyAAAAAQUAAAADaW52CQAAAgAAAAECAAAAEVBlcm1pc3Npb24gZGVuaWVkCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAAtrZXlfYWRkcmVzcwAAAAEFAAAABG5hbWUFAAAAB2FkZHJlc3MFAAAAA25pbAAAAANpbnYBAAAABGFkZHIAAAABAAAABG5hbWUJAAUUAAAAAgUAAAADbmlsCQAEHQAAAAIFAAAABHRoaXMJAQAAAAtrZXlfYWRkcmVzcwAAAAEFAAAABG5hbWUAAAAAaT+PKg==", "height": 2276303, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8V7VbH6Nhs1TYYL2AqyAUbFMptWBL85EYBawu8rvKvHd Next: 7T3vQ6rekucZZVuT8UBsCj2rZsJqi1bzpE3wMMwsS7oB Diff:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+func key_address (name) = ("address_" + name)
5+
6+
7+func isOwner (inv) = (inv.caller == this)
48
59
610 @Callable(inv)
913
1014
1115 @Callable(inv)
12-func addr (name) = $Tuple2(nil, "3NCUSxFG35TxkPL9zvrVuLdzE7fgAJZBYnT")
16+func setAddr (name,address) = if (!(isOwner(inv)))
17+ then throw("Permission denied")
18+ else [StringEntry(key_address(name), address)]
19+
20+
21+
22+@Callable(inv)
23+func addr (name) = $Tuple2(nil, getString(this, key_address(name)))
1324
1425
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4+func key_address (name) = ("address_" + name)
5+
6+
7+func isOwner (inv) = (inv.caller == this)
48
59
610 @Callable(inv)
711 func supportsInterface (interfaceId) = $Tuple2(nil, (interfaceId == "addr"))
812
913
1014
1115 @Callable(inv)
12-func addr (name) = $Tuple2(nil, "3NCUSxFG35TxkPL9zvrVuLdzE7fgAJZBYnT")
16+func setAddr (name,address) = if (!(isOwner(inv)))
17+ then throw("Permission denied")
18+ else [StringEntry(key_address(name), address)]
19+
20+
21+
22+@Callable(inv)
23+func addr (name) = $Tuple2(nil, getString(this, key_address(name)))
1324
1425

github/deemru/w8io/169f3d6 
24.71 ms