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:
OldNewDifferences
4949 }
5050
5151
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+
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func v (f) = if ((i.caller != this))
88 then throw("only admin allowed")
99 else {
1010 let inv = invoke(addressFromStringValue(f), "vf", [false, true], nil)
1111 if ((inv == inv))
1212 then nil
1313 else throw("Strict value is not equal to itself.")
1414 }
1515
1616
1717
1818 @Callable(i)
1919 func vfa5 (addresses) = {
2020 func w (accum,address) = {
2121 let res = invoke(addressFromStringValue(address), "vf", [false, true], nil)
2222 if ((res == res))
2323 then nil
2424 else throw("Strict value is not equal to itself.")
2525 }
2626
2727 if ((i.caller != this))
2828 then throw("only admin allowed")
2929 else {
3030 let list = split(addresses, ",")
3131 let fold = {
3232 let $l = list
3333 let $s = size($l)
3434 let $acc0 = ""
3535 func $f0_1 ($a,$i) = if (($i >= $s))
3636 then $a
3737 else w($a, $l[$i])
3838
3939 func $f0_2 ($a,$i) = if (($i >= $s))
4040 then $a
4141 else throw("List size exceeds 5")
4242
4343 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
4444 }
4545 if ((fold == fold))
4646 then nil
4747 else throw("Strict value is not equal to itself.")
4848 }
4949 }
5050
5151
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