tx · CVggWNjra9Aq2kE3E9k13vNvV7zUs7jKZ54c5hYfRs9P 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M: -0.01000000 Waves 2023.03.21 21:33 [2500139] smart account 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M > SELF 0.00000000 Waves
{ "type": 13, "id": "CVggWNjra9Aq2kE3E9k13vNvV7zUs7jKZ54c5hYfRs9P", "fee": 1000000, "feeAssetId": null, "timestamp": 1679423632321, "version": 2, "chainId": 84, "sender": "3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M", "senderPublicKey": "CPR2z4Q8kdV2M4JHaFVVTRzdEWPUA1Whqtw6SWE8kyU9", "proofs": [ "5BWcRCcL68DzDz5RkTvhDRGVHuK4LtPo5zoE6cAR2dRbv4SX9mBKMHB3JKvg1Ar4D6nye1PTTH9vboM57iG3x9Ju" ], "script": "base64:BgILCAISABIFCgMBAREAAgFpAQtleGFtcGxlQ2FsbAAEAXoJAP0HBAUEdGhpcwIRaW50ZXJuYWxSZWN1cnNpb24JAMwIAgAKCQDMCAIAAAkAzAgCBQNuaWwFA25pbAUDbmlsAwkAAAIFAXoFAXoEByRtYXRjaDAFAXoDCQABAgUHJG1hdGNoMAIJTGlzdFtBbnldBARsaXN0BQckbWF0Y2gwCQDMCAIJAQxJbnRlZ2VyRW50cnkCAglMaXN0IHNpemUJAJADAQUEbGlzdAUDbmlsCQACAQIeV3JvbmcgaW50ZXJuYWwgZnVuY3Rpb24gcmVzdWx0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBEWludGVybmFsUmVjdXJzaW9uAw1tYXhJdGVyYXRpb25zEGN1cnJlbnRJdGVyYXRpb24RYWNjdW11bGF0ZWRSZXN1bHQDCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAiNPbmx5IGNhbiBiZSBjYWxsZWQgYnkgdGhpcyBjb250cmFjdAMJAGYCBQ1tYXhJdGVyYXRpb25zBRBjdXJyZW50SXRlcmF0aW9uBAF6CQD9BwQFBHRoaXMCEWludGVybmFsUmVjdXJzaW9uCQDMCAIFDW1heEl0ZXJhdGlvbnMJAMwIAgkAZAIFEGN1cnJlbnRJdGVyYXRpb24AAQkAzAgCCQDNCAIFEWFjY3VtdWxhdGVkUmVzdWx0BRBjdXJyZW50SXRlcmF0aW9uBQNuaWwFA25pbAMJAAACBQF6BQF6BQNuaWwJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAJQKAgUDbmlsBRFhY2N1bXVsYXRlZFJlc3VsdAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXl8GZXh", "height": 2500139, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: F3Vn7yYoGiwzPoiP8HyCWtbTB9hwqKL2nwK41MYEBH7X Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | @Callable(i) | |
7 | + | func exampleCall () = { | |
8 | + | let z = reentrantInvoke(this, "internalRecursion", [10, 0, nil], nil) | |
9 | + | if ((z == z)) | |
10 | + | then match z { | |
11 | + | case list: List[Any] => | |
12 | + | [IntegerEntry("List size", size(list))] | |
13 | + | case _ => | |
14 | + | throw("Wrong internal function result") | |
15 | + | } | |
16 | + | else throw("Strict value is not equal to itself.") | |
17 | + | } | |
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | @Callable(i) | |
22 | + | func internalRecursion (maxIterations,currentIteration,accumulatedResult) = if ((i.caller != this)) | |
23 | + | then throw("Only can be called by this contract") | |
24 | + | else if ((maxIterations > currentIteration)) | |
25 | + | then { | |
26 | + | let z = reentrantInvoke(this, "internalRecursion", [maxIterations, (currentIteration + 1), (accumulatedResult :+ currentIteration)], nil) | |
27 | + | if ((z == z)) | |
28 | + | then nil | |
29 | + | else throw("Strict value is not equal to itself.") | |
30 | + | } | |
31 | + | else $Tuple2(nil, accumulatedResult) | |
32 | + | ||
33 | + | ||
34 | + | @Verifier(tx) | |
35 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
36 | + |
github/deemru/w8io/026f985 16.80 ms ◑