tx · GqvEGRiopGZ44JcdFrNx3qUcZt6RHTG5wvdbogwNZn1T 3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE: -0.01000000 Waves 2022.10.20 09:50 [2280373] smart account 3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE > SELF 0.00000000 Waves
{ "type": 13, "id": "GqvEGRiopGZ44JcdFrNx3qUcZt6RHTG5wvdbogwNZn1T", "fee": 1000000, "feeAssetId": null, "timestamp": 1666248640856, "version": 2, "chainId": 84, "sender": "3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE", "senderPublicKey": "3nPFqmiV1yaNvmSrQdE1QHbTAF8bfJB1GjbegBWbNNCK", "proofs": [ "PYSHroGjHuyLkbmuH2BcDJUhk55EMTqbGvUBE8xHgHTpxBFjHvGN51doHozwNG7JJxo3Y5XmU3PpFfW24fJvwRa" ], "script": "base64:AAIFAAAAAAAAACIIAhIDCgEIEgMKAQgSBAoCCAgSAwoBCBIECgIICBIDCgEIAAAACQEAAAAJa2V5X293bmVyAAAAAQAAAAdzdWJOYW1lCQABLAAAAAICAAAABm93bmVyXwUAAAAHc3ViTmFtZQEAAAANa2V5X3JlZ2lzdHJhcgAAAAEAAAAHc3ViTmFtZQkAASwAAAACAgAAAApyZWdpc3RyYXJfBQAAAAdzdWJOYW1lAQAAAAlfZ2V0T3duZXIAAAABAAAAB3N1Yk5hbWUJAAQdAAAAAgUAAAAEdGhpcwkBAAAACWtleV9vd25lcgAAAAEFAAAAB3N1Yk5hbWUBAAAACV9zZXRPd25lcgAAAAIAAAAHc3ViTmFtZQAAAAVvd25lcgkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAAJa2V5X293bmVyAAAAAQUAAAAHc3ViTmFtZQUAAAAFb3duZXIFAAAAA25pbAEAAAANX2dldFJlZ2lzdHJhcgAAAAEAAAAHc3ViTmFtZQkABB0AAAACBQAAAAR0aGlzCQEAAAANa2V5X3JlZ2lzdHJhcgAAAAEF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5hbWUCAAAAFGAgYWxyZWFkeSByZWdpc3RlcmVkCQEAAAAJX3NldE93bmVyAAAAAgUAAAAHc3ViTmFtZQUAAAAFb3duZXIAAAADaW52AQAAABFzdXBwb3J0c0ludGVyZmFjZQAAAAEAAAALaW50ZXJmYWNlSWQJAAUUAAAAAgUAAAADbmlsCQEAAAAPY29udGFpbnNFbGVtZW50AAAAAgkABEwAAAACAgAAAARhZGRyCQAETAAAAAICAAAABW93bmVyBQAAAANuaWwFAAAAC2ludGVyZmFjZUlkAAAAA2ludgEAAAAHc2V0QWRkcgAAAAIAAAAEbmFtZQAAAAdhZGRyZXNzAwkBAAAAASEAAAABCQEAAAAHaXNPd25lcgAAAAIFAAAAA2ludgUAAAAEbmFtZQkAAAIAAAABAgAAABFQZXJtaXNzaW9uIGRlbmllZAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQEAAAALa2V5X2FkZHJlc3MAAAABBQAAAARuYW1lBQAAAAdhZGRyZXNzBQAAAANuaWwAAAADaW52AQAAAARhZGRyAAAAAQAAAARuYW1lCQAFFAAAAAIFAAAAA25pbAkABB0AAAACBQAAAAR0aGlzCQEAAAALa2V5X2FkZHJlc3MAAAABBQAAAARuYW1lAAAAAIXu98Q=", "height": 2280373, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 83XR9igMH8K8pQfcZ9TNQ6GtsLDBAhxzgwgDEiAXKtA4 Next: 7fTgMY2W5gvix1Vayp6sAWv96kdWxc7SUTAvFZ7u2XWN Diff:
Old | New | Differences | |
---|---|---|---|
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Callable(n) | |
61 | - | func supportsInterface (q) = $Tuple2(nil, containsElement(["addr", "owner" | |
61 | + | func supportsInterface (q) = $Tuple2(nil, containsElement(["addr", "owner"], q)) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = ("owner_" + b) | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func c (b) = ("registrar_" + b) | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func d (b) = getString(this, a(b)) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func e (b,f) = [StringEntry(a(b), f)] | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g (b) = getString(this, c(b)) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func h (b,i) = [StringEntry(c(b), i)] | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j (k) = ("address_" + k) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | let l = this | |
26 | 26 | ||
27 | 27 | func m (n,k) = if ((n.caller == this)) | |
28 | 28 | then true | |
29 | 29 | else { | |
30 | 30 | let o = invoke(l, "owner", [k], nil) | |
31 | 31 | if ($isInstanceOf(o, "String")) | |
32 | 32 | then { | |
33 | 33 | let f = o | |
34 | 34 | (f == toString(n.caller)) | |
35 | 35 | } | |
36 | 36 | else false | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | @Callable(n) | |
41 | 41 | func owner (b) = $Tuple2(nil, d(b)) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | ||
45 | 45 | @Callable(n) | |
46 | 46 | func registrar (b) = $Tuple2(nil, g(b)) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | ||
50 | 50 | @Callable(n) | |
51 | 51 | func register (b,f) = { | |
52 | 52 | let p = d(b) | |
53 | 53 | if (isDefined(p)) | |
54 | 54 | then throw((("`" + b) + "` already registered")) | |
55 | 55 | else e(b, f) | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | ||
60 | 60 | @Callable(n) | |
61 | - | func supportsInterface (q) = $Tuple2(nil, containsElement(["addr", "owner" | |
61 | + | func supportsInterface (q) = $Tuple2(nil, containsElement(["addr", "owner"], q)) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | ||
65 | 65 | @Callable(n) | |
66 | 66 | func setAddr (k,r) = if (!(m(n, k))) | |
67 | 67 | then throw("Permission denied") | |
68 | 68 | else [StringEntry(j(k), r)] | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | ||
72 | 72 | @Callable(n) | |
73 | 73 | func addr (k) = $Tuple2(nil, getString(this, j(k))) | |
74 | 74 | ||
75 | 75 |
github/deemru/w8io/169f3d6 64.46 ms ◑