tx · 4j575PixthHe3uJ3ydGM91uLNoEx9dUiAWb9Acw7nXqr
3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE: -0.01000000 Waves
2022.10.17 14:29 [2276312] smart account 3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE > SELF 0.00000000 Waves
{
"type": 13,
"id": "4j575PixthHe3uJ3ydGM91uLNoEx9dUiAWb9Acw7nXqr",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1666006171293,
"version": 2,
"chainId": 84,
"sender": "3MvVeqqFHW9M6r9ggG3Ma5Que4Rqgb4BjJE",
"senderPublicKey": "3nPFqmiV1yaNvmSrQdE1QHbTAF8bfJB1GjbegBWbNNCK",
"proofs": [
"pasxZJiKD4qiZKcyGANZMPNYZcLoyVzmPVWLPadngN4mfP6sz23Q74EHETNfo82XVtPJMavvhqGwbDUFpH9rktC"
],
"script": "base64:AAIFAAAAAAAAAB0IAhIDCgEIEgQKAggIEgMKAQgSBAoCCAgSAwoBCAAAAAYBAAAACWtleV9vd25lcgAAAAEAAAAHc3ViTmFtZQkAASwAAAACAgAAAAZvd25lcl8FAAAAB3N1Yk5hbWUBAAAACV9nZXRPd25lcgAAAAEAAAAHc3ViTmFtZQkABB0AAAACBQAAAAR0aGlzCQEAAAAJa2V5X293bmVyAAAAAQUAAAAHc3ViTmFtZQEAAAAJX3NldE93bmVyAAAAAgAAAAdzdWJOYW1lAAAABW93bmVyCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAAAlrZXlfb3duZXIAAAABBQAAAAdzdWJOYW1lBQAAAAVvd25lcgUAAAADbmlsAQAAAAtrZXlfYWRkcmVzcwAAAAEAAAAEbmFtZQkAASwAAAACAgAAAAhhZGRyZXNzXwUAAAAEbmFtZQAAAAAJcmVnaXN0cmFyBQAAAAR0aGlzAQAAAAdpc093bmVyAAAAAgAAAANpbnYAAAAEbmFtZQMJAAAAAAAAAggFAAAAA2ludgAAAAZjYWxsZXIFAAA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AAAARuYW1lCQAFFAAAAAIFAAAAA25pbAkABB0AAAACBQAAAAR0aGlzCQEAAAALa2V5X2FkZHJlc3MAAAABBQAAAARuYW1lAAAAAG/pB40=",
"height": 2276312,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 7T3vQ6rekucZZVuT8UBsCj2rZsJqi1bzpE3wMMwsS7oB
Next: 7Qgzuj2XekvVrfT835ebFy3NbaXpx1oHGd4sY2jrUsNz
Diff:
Old | New | | Differences |
---|
26 | 26 | | } |
---|
27 | 27 | | else false |
---|
28 | 28 | | } |
---|
| 29 | + | |
---|
| 30 | + | |
---|
| 31 | + | @Callable(j) |
---|
| 32 | + | func owner (b) = $Tuple2(nil, c(b)) |
---|
| 33 | + | |
---|
29 | 34 | | |
---|
30 | 35 | | |
---|
31 | 36 | | @Callable(j) |
---|
Full:
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) = getString(this, a(b)) |
---|
8 | 8 | | |
---|
9 | 9 | | |
---|
10 | 10 | | func d (b,e) = [StringEntry(a(b), e)] |
---|
11 | 11 | | |
---|
12 | 12 | | |
---|
13 | 13 | | func f (g) = ("address_" + g) |
---|
14 | 14 | | |
---|
15 | 15 | | |
---|
16 | 16 | | let h = this |
---|
17 | 17 | | |
---|
18 | 18 | | func i (j,g) = if ((j.caller == this)) |
---|
19 | 19 | | then true |
---|
20 | 20 | | else { |
---|
21 | 21 | | let k = invoke(h, "owner", [g], nil) |
---|
22 | 22 | | if ($isInstanceOf(k, "String")) |
---|
23 | 23 | | then { |
---|
24 | 24 | | let e = k |
---|
25 | 25 | | (e == toString(j.caller)) |
---|
26 | 26 | | } |
---|
27 | 27 | | else false |
---|
28 | 28 | | } |
---|
| 29 | + | |
---|
| 30 | + | |
---|
| 31 | + | @Callable(j) |
---|
| 32 | + | func owner (b) = $Tuple2(nil, c(b)) |
---|
| 33 | + | |
---|
29 | 34 | | |
---|
30 | 35 | | |
---|
31 | 36 | | @Callable(j) |
---|
32 | 37 | | func register (b,e) = { |
---|
33 | 38 | | let l = c(b) |
---|
34 | 39 | | if (isDefined(l)) |
---|
35 | 40 | | then throw((("`" + b) + "` already registered")) |
---|
36 | 41 | | else d(b, e) |
---|
37 | 42 | | } |
---|
38 | 43 | | |
---|
39 | 44 | | |
---|
40 | 45 | | |
---|
41 | 46 | | @Callable(j) |
---|
42 | 47 | | func supportsInterface (m) = $Tuple2(nil, (m == "addr")) |
---|
43 | 48 | | |
---|
44 | 49 | | |
---|
45 | 50 | | |
---|
46 | 51 | | @Callable(j) |
---|
47 | 52 | | func setAddr (g,n) = if (!(i(j, g))) |
---|
48 | 53 | | then throw("Permission denied") |
---|
49 | 54 | | else [StringEntry(f(g), n)] |
---|
50 | 55 | | |
---|
51 | 56 | | |
---|
52 | 57 | | |
---|
53 | 58 | | @Callable(j) |
---|
54 | 59 | | func addr (g) = $Tuple2(nil, getString(this, f(g))) |
---|
55 | 60 | | |
---|
56 | 61 | | |
---|