tx · F7Una8HMpMRRtASbWs4FRQAegsqm4xUQcdDSW8DWUAPA 3N49shcErzZepEy7HDR1fjAce8humpL7QiH: -0.01000000 Waves 2022.12.14 22:06 [2360378] smart account 3N49shcErzZepEy7HDR1fjAce8humpL7QiH > SELF 0.00000000 Waves
{ "type": 13, "id": "F7Una8HMpMRRtASbWs4FRQAegsqm4xUQcdDSW8DWUAPA", "fee": 1000000, "feeAssetId": null, "timestamp": 1671044772379, "version": 2, "chainId": 84, "sender": "3N49shcErzZepEy7HDR1fjAce8humpL7QiH", "senderPublicKey": "9frGdXQHcSntKXRWwZ4YJZWnnKREWwYH4cEzMVQwcwYj", "proofs": [ "5LRJSjgYEjfoTLwzP76XrajWy8NDcZtTSMrERnQzT6hcUebeRaS7uzAsoAXD2ND2Buzgrx1iseM7ZjLn6kjJYBSC" ], "script": "base64:BgIMCAISAwoBCBIDCgEIAAIBaQEBdgEBZgMJAQIhPQIIBQFpBmNhbGxlcgUEdGhpcwkAAgECEm9ubHkgYWRtaW4gYWxsb3dlZAQDaW52CQD8BwQJARFAZXh0ck5hdGl2ZSgxMDYyKQEFAWYCAnZmCQDMCAIHCQDMCAIGBQNuaWwFA25pbAMJAAACBQNpbnYFA2ludgUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBBHZmYTUBCWFkZHJlc3NlcwoBAXcCBWFjY3VtB2FkZHJlc3MEA3JlcwkA/AcECQERQGV4dHJOYXRpdmUoMTA2MikBBQdhZGRyZXNzAgJ2ZgkAzAgCBwkAzAgCBgUDbmlsBQNuaWwDCQAAAgUDcmVzBQNyZXMFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgMJAQIhPQIIBQFpBmNhbGxlcgUEdGhpcwkAAgECEm9ubHkgYWRtaW4gYWxsb3dlZAQEbGlzdAkAtQkCBQlhZGRyZXNzZXMCASwEBGZvbGQKAAIkbAUEbGlzdAoAAiRzCQCQAwEFAiRsCgAFJGFjYzACAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEBdwIFAiRhCQCRAwIFAiRsBQIkaQoBBSRmMF8yAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQACAQITTGlzdCBzaXplIGV4Y2VlZHMgNQkBBSRmMF8yAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgUFJGFjYzAAAAABAAIAAwAEAAUDCQAAAgUEZm9sZAUEZm9sZAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgDCQABAgUHJG1hdGNoMAIXSW52b2tlU2NyaXB0VHJhbnNhY3Rpb24EA2ludgUHJG1hdGNoMAMJAAACCQCkCAEIBQNpbnYEZEFwcAUEdGhpcwYJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmGc+4i", "height": 2360378, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 751d6XsShSJ97x6Wq8Gsnoikapqn6wR2Y337sSV92GNC Next: 9cSYNsLTd3fx3hGfXi44uWrhEdpLxew9z4kXYiePdUDK Diff:
Old | New | Differences | |
---|---|---|---|
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | + | @Verifier(r) | |
53 | + | func s () = { | |
54 | + | let t = r | |
55 | + | if ($isInstanceOf(t, "InvokeScriptTransaction")) | |
56 | + | then { | |
57 | + | let c = t | |
58 | + | if ((addressFromRecipient(c.dApp) == this)) | |
59 | + | then true | |
60 | + | else sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey) | |
61 | + | } | |
62 | + | else sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey) | |
63 | + | } | |
64 | + |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(a) | |
7 | 7 | func v (b) = if ((a.caller != this)) | |
8 | 8 | then throw("only admin allowed") | |
9 | 9 | else { | |
10 | 10 | let c = invoke(addressFromStringValue(b), "vf", [false, true], nil) | |
11 | 11 | if ((c == c)) | |
12 | 12 | then nil | |
13 | 13 | else throw("Strict value is not equal to itself.") | |
14 | 14 | } | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | ||
18 | 18 | @Callable(a) | |
19 | 19 | func vfa5 (d) = { | |
20 | 20 | func e (f,g) = { | |
21 | 21 | let h = invoke(addressFromStringValue(g), "vf", [false, true], nil) | |
22 | 22 | if ((h == h)) | |
23 | 23 | then nil | |
24 | 24 | else throw("Strict value is not equal to itself.") | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | if ((a.caller != this)) | |
28 | 28 | then throw("only admin allowed") | |
29 | 29 | else { | |
30 | 30 | let i = split(d, ",") | |
31 | 31 | let j = { | |
32 | 32 | let k = i | |
33 | 33 | let l = size(k) | |
34 | 34 | let m = "" | |
35 | 35 | func n (o,p) = if ((p >= l)) | |
36 | 36 | then o | |
37 | 37 | else e(o, k[p]) | |
38 | 38 | ||
39 | 39 | func q (o,p) = if ((p >= l)) | |
40 | 40 | then o | |
41 | 41 | else throw("List size exceeds 5") | |
42 | 42 | ||
43 | 43 | q(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5) | |
44 | 44 | } | |
45 | 45 | if ((j == j)) | |
46 | 46 | then nil | |
47 | 47 | else throw("Strict value is not equal to itself.") | |
48 | 48 | } | |
49 | 49 | } | |
50 | 50 | ||
51 | 51 | ||
52 | + | @Verifier(r) | |
53 | + | func s () = { | |
54 | + | let t = r | |
55 | + | if ($isInstanceOf(t, "InvokeScriptTransaction")) | |
56 | + | then { | |
57 | + | let c = t | |
58 | + | if ((addressFromRecipient(c.dApp) == this)) | |
59 | + | then true | |
60 | + | else sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey) | |
61 | + | } | |
62 | + | else sigVerify(r.bodyBytes, r.proofs[0], r.senderPublicKey) | |
63 | + | } | |
64 | + |
github/deemru/w8io/169f3d6 25.34 ms ◑