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(tx) | |
53 | + | func verify () = match tx { | |
54 | + | case inv: InvokeScriptTransaction => | |
55 | + | if ((addressFromRecipient(inv.dApp) == this)) | |
56 | + | then true | |
57 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
58 | + | case _ => | |
59 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
60 | + | } | |
61 | + |
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(i) | |
7 | 7 | func v (f) = if ((i.caller != this)) | |
8 | 8 | then throw("only admin allowed") | |
9 | 9 | else { | |
10 | 10 | let inv = invoke(addressFromStringValue(f), "vf", [false, true], nil) | |
11 | 11 | if ((inv == inv)) | |
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(i) | |
19 | 19 | func vfa5 (addresses) = { | |
20 | 20 | func w (accum,address) = { | |
21 | 21 | let res = invoke(addressFromStringValue(address), "vf", [false, true], nil) | |
22 | 22 | if ((res == res)) | |
23 | 23 | then nil | |
24 | 24 | else throw("Strict value is not equal to itself.") | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | if ((i.caller != this)) | |
28 | 28 | then throw("only admin allowed") | |
29 | 29 | else { | |
30 | 30 | let list = split(addresses, ",") | |
31 | 31 | let fold = { | |
32 | 32 | let $l = list | |
33 | 33 | let $s = size($l) | |
34 | 34 | let $acc0 = "" | |
35 | 35 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
36 | 36 | then $a | |
37 | 37 | else w($a, $l[$i]) | |
38 | 38 | ||
39 | 39 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
40 | 40 | then $a | |
41 | 41 | else throw("List size exceeds 5") | |
42 | 42 | ||
43 | 43 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) | |
44 | 44 | } | |
45 | 45 | if ((fold == fold)) | |
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(tx) | |
53 | + | func verify () = match tx { | |
54 | + | case inv: InvokeScriptTransaction => | |
55 | + | if ((addressFromRecipient(inv.dApp) == this)) | |
56 | + | then true | |
57 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
58 | + | case _ => | |
59 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
60 | + | } | |
61 | + |
github/deemru/w8io/169f3d6 26.60 ms ◑