tx · DmuuVeDPUk8ux45jNoVesGQv4gNCkPY7vtzak6TL9bRZ 3MyZr42eC2kca59w82tafyemrC7V2b97yxN: -0.01000000 Waves 2022.07.06 14:11 [2127746] smart account 3MyZr42eC2kca59w82tafyemrC7V2b97yxN > SELF 0.00000000 Waves
{ "type": 13, "id": "DmuuVeDPUk8ux45jNoVesGQv4gNCkPY7vtzak6TL9bRZ", "fee": 1000000, "feeAssetId": null, "timestamp": 1657105880669, "version": 2, "chainId": 84, "sender": "3MyZr42eC2kca59w82tafyemrC7V2b97yxN", "senderPublicKey": "4gLjFBxeVDJ31pmQaSSAuf5ZiLHzuSGQP6Vk6EHepAiy", "proofs": [ "2QRy4RPeEo8z2cqdKnhuFPX1U7Hq6DfCiiJwKtcZquh64wfGARfu5odAAZaApBcpWJGPHDEqtf28ssp8u3eV5KVa" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAAAAAABAAAAAWkBAAAAGmluc2VydEludG9Tb3J0ZWRMaW5rZWRMaXN0AAAAAgAAAA1zb3J0ZWRMaXN0U3RyAAAACG5ld0VudHJ5BAAAAAhpZHhBcnJheQkABEwAAAACAAAAAAAAAAAACQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAgkABEwAAAACAAAAAAAAAAADCQAETAAAAAIAAAAAAAAAAAQJAARMAAAAAgAAAAAAAAAABQkABEwAAAACAAAAAAAAAAAGCQAETAAAAAIAAAAAAAAAAAcJAARMAAAAAgAAAAAAAAAACAkABEwAAAACAAAAAAAAAAAJCQAETAAAAAIAAAAAAAAAAAoJAARMAAAAAgAAAAAAAAAACwkABEwAAAACAAAAAAAAAAAMCQAETAAAAAIAAAAAAAAAAA0JAARMAAAAAgAAAAAAAAAADgkABEwAAAACAAAAAAAAAAAPCQAETAAAAAIAAAAAAAAAABAJAARMAAAAAgAAAAAAAAAAEQkABEwAAAACAAAAAAAAAAASCQAETAAAAAIAAAAAAAAAABMFAAAAA25pbAQAAAAKc29ydGVkTG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AAAACdHgAAAAPc2VuZGVyUHVibGljS2V5mDgXLA==", "height": 2127746, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C8NPzsMiC75NXgW65a8ktbLZooMZZ34os1td1N6H3L26 Next: 5tNSZkqNw31guhiDBftFS9n98kLpUzWRhMRfuamMaMEs Diff:
Old | New | Differences | |
---|---|---|---|
10 | 10 | if ((size(sortedList) >= size(idxArray))) | |
11 | 11 | then throw("passed sortedList size is too long...") | |
12 | 12 | else { | |
13 | - | func internalInsert (newSortedList,idx) = if ((idx >= size( | |
13 | + | func internalInsert (newSortedList,idx) = if ((idx >= size(sortedList))) | |
14 | 14 | then newSortedList | |
15 | 15 | else { | |
16 | 16 | let val = sortedList[idx] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func insertIntoSortedLinkedList (sortedListStr,newEntry) = { | |
8 | 8 | let idxArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
9 | 9 | let sortedList = split(sortedListStr, "__") | |
10 | 10 | if ((size(sortedList) >= size(idxArray))) | |
11 | 11 | then throw("passed sortedList size is too long...") | |
12 | 12 | else { | |
13 | - | func internalInsert (newSortedList,idx) = if ((idx >= size( | |
13 | + | func internalInsert (newSortedList,idx) = if ((idx >= size(sortedList))) | |
14 | 14 | then newSortedList | |
15 | 15 | else { | |
16 | 16 | let val = sortedList[idx] | |
17 | 17 | if (((idx + 1) == size(newSortedList))) | |
18 | 18 | then if ((newEntry >= parseIntValue(val))) | |
19 | 19 | then ((newSortedList :+ val) :+ toString(newEntry)) | |
20 | 20 | else ((newSortedList :+ toString(newEntry)) :+ val) | |
21 | 21 | else if ((newEntry >= parseIntValue(val))) | |
22 | 22 | then (newSortedList :+ val) | |
23 | 23 | else ((newSortedList :+ toString(newEntry)) :+ val) | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | let modifiedSortedList = { | |
27 | 27 | let $l = idxArray | |
28 | 28 | let $s = size($l) | |
29 | 29 | let $acc0 = nil | |
30 | 30 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
31 | 31 | then $a | |
32 | 32 | else internalInsert($a, $l[$i]) | |
33 | 33 | ||
34 | 34 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
35 | 35 | then $a | |
36 | 36 | else throw("List size exceeds 20") | |
37 | 37 | ||
38 | 38 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
39 | 39 | } | |
40 | 40 | $Tuple2(nil, modifiedSortedList) | |
41 | 41 | } | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | @Verifier(tx) | |
46 | 46 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
47 | 47 |
github/deemru/w8io/fabc49c 24.40 ms ◑