tx · 3RMcybpxRtZGNKdd9V2bBdGNSHrVaQDqRrbLZdppgNSp 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M: -0.01000000 Waves 2023.03.23 15:39 [2502659] smart account 3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M > SELF 0.00000000 Waves
{ "type": 13, "id": "3RMcybpxRtZGNKdd9V2bBdGNSHrVaQDqRrbLZdppgNSp", "fee": 1000000, "feeAssetId": null, "timestamp": 1679575225549, "version": 2, "chainId": 84, "sender": "3MxN9yafHqAds69z7NeaYgeXjeDUdzJya1M", "senderPublicKey": "CPR2z4Q8kdV2M4JHaFVVTRzdEWPUA1Whqtw6SWE8kyU9", "proofs": [ "4XRADqyoUqimVyBvW1kLmMDRKjHPJumNRFvRKowqxnZFyWafrfWRU9CZeUZA1QmYm263PUy6Eg8wBsvs9M73TzjF" ], "script": "base64:BgILCAISABIFCgMBAREAAgFpAQtleGFtcGxlQ2FsbAAEAXoJAPwHBAUEdGhpcwIRaW50ZXJuYWxSZWN1cnNpb24JAMwIAgBlCQDMCAIAAAkAzAgCBQNuaWwFA25pbAUDbmlsAwkAAAIFAXoFAXoEByRtYXRjaDAFAXoDCQABAgUHJG1hdGNoMAIDSW50BARsaXN0BQckbWF0Y2gwCQDMCAIJAQxJbnRlZ2VyRW50cnkCCQCsAgICCkVYRUNVVEVEX18JAKQDAQUEbGlzdAUEbGlzdAUDbmlsCQACAQIeV3JvbmcgaW50ZXJuYWwgZnVuY3Rpb24gcmVzdWx0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBEWludGVybmFsUmVjdXJzaW9uAw1tYXhJdGVyYXRpb25zEGN1cnJlbnRJdGVyYXRpb24RYWNjdW11bGF0ZWRSZXN1bHQDCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAiNPbmx5IGNhbiBiZSBjYWxsZWQgYnkgdGhpcyBjb250cmFjdAMJAGYCBQ1tYXhJdGVyYXRpb25zBRBjdXJyZW50SXRlcmF0aW9uBAF6CQD8BwQFBHRoaXMCEWludGVybmFsUmVjdXJzaW9uCQDMCAIFDW1heEl0ZXJhdGlvbnMJAMwIAgkAZAIFEGN1cnJlbnRJdGVyYXRpb24AAQkAzAgCCQDNCAIFEWFjY3VtdWxhdGVkUmVzdWx0BRBjdXJyZW50SXRlcmF0aW9uBQNuaWwFA25pbAMJAAACBQF6BQF6CQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIJAKwCAgITY3VycmVudF9pdGVyYXRpb25fXwkApAMBBRBjdXJyZW50SXRlcmF0aW9uBRBjdXJyZW50SXRlcmF0aW9uBQNuaWwFEGN1cnJlbnRJdGVyYXRpb24JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAJQKAgUDbmlsACgBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V54seaiQ==", "height": 2502659, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7U4YvyLcQvcipJ4sMor8rStvM3knNZS4dfsTkpaaDWDZ Next: Fpnmd341NSqrvJvEACDXgmHRxPnyYbGKF1gwX8kUSU8W Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func exampleCall () = { | |
8 | - | let z = invoke(this, "internalRecursion", [ | |
8 | + | let z = invoke(this, "internalRecursion", [101, 0, nil], nil) | |
9 | 9 | if ((z == z)) | |
10 | 10 | then match z { | |
11 | 11 | case list: Int => |
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 exampleCall () = { | |
8 | - | let z = invoke(this, "internalRecursion", [ | |
8 | + | let z = invoke(this, "internalRecursion", [101, 0, nil], nil) | |
9 | 9 | if ((z == z)) | |
10 | 10 | then match z { | |
11 | 11 | case list: Int => | |
12 | 12 | [IntegerEntry(("EXECUTED__" + toString(list)), list)] | |
13 | 13 | case _ => | |
14 | 14 | throw("Wrong internal function result") | |
15 | 15 | } | |
16 | 16 | else throw("Strict value is not equal to itself.") | |
17 | 17 | } | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | ||
21 | 21 | @Callable(i) | |
22 | 22 | func internalRecursion (maxIterations,currentIteration,accumulatedResult) = if ((i.caller != this)) | |
23 | 23 | then throw("Only can be called by this contract") | |
24 | 24 | else if ((maxIterations > currentIteration)) | |
25 | 25 | then { | |
26 | 26 | let z = invoke(this, "internalRecursion", [maxIterations, (currentIteration + 1), (accumulatedResult :+ currentIteration)], nil) | |
27 | 27 | if ((z == z)) | |
28 | 28 | then $Tuple2([IntegerEntry(("current_iteration__" + toString(currentIteration)), currentIteration)], currentIteration) | |
29 | 29 | else throw("Strict value is not equal to itself.") | |
30 | 30 | } | |
31 | 31 | else $Tuple2(nil, 40) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | @Verifier(tx) | |
35 | 35 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
36 | 36 |
github/deemru/w8io/169f3d6 33.62 ms ◑