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