tx · E4k317uDTRPnPANtjsNzh44UGUJCUteEKAmYnzsC3xJn 3MyZr42eC2kca59w82tafyemrC7V2b97yxN: -0.01000000 Waves 2022.07.06 14:21 [2127757] smart account 3MyZr42eC2kca59w82tafyemrC7V2b97yxN > SELF 0.00000000 Waves
{ "type": 13, "id": "E4k317uDTRPnPANtjsNzh44UGUJCUteEKAmYnzsC3xJn", "fee": 1000000, "feeAssetId": null, "timestamp": 1657106557457, "version": 2, "chainId": 84, "sender": "3MyZr42eC2kca59w82tafyemrC7V2b97yxN", "senderPublicKey": "4gLjFBxeVDJ31pmQaSSAuf5ZiLHzuSGQP6Vk6EHepAiy", "proofs": [ "3uNpMk3LgUgtitZpCk4hkvdy2g2NzenUr6TZpci8nJxMULRKKmiihdjbDYCPrT3kRzP9W3JtXZQADcZmpdK4dJqv" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAAAAAABAAAAAWkBAAAAGmluc2VydEludG9Tb3J0ZWRMaW5rZWRMaXN0AAAAAgAAAA1zb3J0ZWRMaXN0U3RyAAAACG5ld0VudHJ5BAAAAAhpZHhBcnJheQkABEwAAAACAAAAAAAAAAAACQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAgkABEwAAAACAAAAAAAAAAADCQAETAAAAAIAAAAAAAAAAAQJAARMAAAAAgAAAAAAAAAABQkABEwAAAACAAAAAAAAAAAGCQAETAAAAAIAAAAAAAAAAAcJAARMAAAAAgAAAAAAAAAACAkABEwAAAACAAAAAAAAAAAJCQAETAAAAAIAAAAAAAAAAAoJAARMAAAAAgAAAAAAAAAACwkABEwAAAACAAAAAAAAAAAMCQAETAAAAAIAAAAAAAAAAA0JAARMAAAAAgAAAAAAAAAADgkABEwAAAACAAAAAAAAAAAPCQAETAAAAAIAAAAAAAAAABAJAARMAAAAAgAAAAAAAAAAEQkABEwAAAACAAAAAAAAAAASCQAETAAAAAIAAAAAAAAAABMFAAAAA25pbAQAAAAKc29ydGVkTGlzdAkABL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AAACwAAAAAAAAAADAAAAAAAAAAADQAAAAAAAAAADgAAAAAAAAAADwAAAAAAAAAAEAAAAAAAAAAAEQAAAAAAAAAAEgAAAAAAAAAAEwAAAAAAAAAAFAkABRQAAAACBQAAAANuaWwFAAAAEm1vZGlmaWVkU29ydGVkTGlzdAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5wmnbtA==", "height": 2127757, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EmEc73AeJFuth5FRNU8rjDQgfVyfbwJvPpiu6wCh6ENn Next: 9qks43qcrstMuzeX9PpGFHHDCURxQTFWpUx43vC5yHbR Diff:
Old | New | Differences | |
---|---|---|---|
23 | 23 | else $Tuple2((newSortedList :+ val), true) | |
24 | 24 | else if ((newEntry >= parseIntValue(val))) | |
25 | 25 | then $Tuple2((newSortedList :+ val), false) | |
26 | - | else $Tuple2(((newSortedList :+ toString(newEntry)) :+ val), true) | |
26 | + | else if ((tupleResult._2 == false)) | |
27 | + | then $Tuple2(((newSortedList :+ toString(newEntry)) :+ val), true) | |
28 | + | else $Tuple2((newSortedList :+ val), true) | |
27 | 29 | } | |
28 | 30 | ||
29 | 31 | let modifiedSortedList = { |
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 | 13 | func internalInsert (tupleResult,idx) = if ((idx >= size(sortedList))) | |
14 | 14 | then tupleResult | |
15 | 15 | else { | |
16 | 16 | let val = sortedList[idx] | |
17 | 17 | let newSortedList = tupleResult._1 | |
18 | 18 | if (((idx + 1) == size(sortedList))) | |
19 | 19 | then if ((tupleResult._2 == false)) | |
20 | 20 | then if ((newEntry >= parseIntValue(val))) | |
21 | 21 | then $Tuple2(((newSortedList :+ val) :+ toString(newEntry)), true) | |
22 | 22 | else $Tuple2(((newSortedList :+ toString(newEntry)) :+ val), true) | |
23 | 23 | else $Tuple2((newSortedList :+ val), true) | |
24 | 24 | else if ((newEntry >= parseIntValue(val))) | |
25 | 25 | then $Tuple2((newSortedList :+ val), false) | |
26 | - | else $Tuple2(((newSortedList :+ toString(newEntry)) :+ val), true) | |
26 | + | else if ((tupleResult._2 == false)) | |
27 | + | then $Tuple2(((newSortedList :+ toString(newEntry)) :+ val), true) | |
28 | + | else $Tuple2((newSortedList :+ val), true) | |
27 | 29 | } | |
28 | 30 | ||
29 | 31 | let modifiedSortedList = { | |
30 | 32 | let $l = idxArray | |
31 | 33 | let $s = size($l) | |
32 | 34 | let $acc0 = $Tuple2(nil, false) | |
33 | 35 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
34 | 36 | then $a | |
35 | 37 | else internalInsert($a, $l[$i]) | |
36 | 38 | ||
37 | 39 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
38 | 40 | then $a | |
39 | 41 | else throw("List size exceeds 20") | |
40 | 42 | ||
41 | 43 | $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) | |
42 | 44 | } | |
43 | 45 | $Tuple2(nil, modifiedSortedList) | |
44 | 46 | } | |
45 | 47 | } | |
46 | 48 | ||
47 | 49 | ||
48 | 50 | @Verifier(tx) | |
49 | 51 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
50 | 52 |
github/deemru/w8io/fabc49c 28.37 ms ◑