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:AAIFAAAAAAAAAAgIAhIECgIIAQAAAAAAAAABAAAAAWkBAAAAGmluc2VydEludG9Tb3J0ZWRMaW5rZWRMaXN0AAAAAgAAAA1zb3J0ZWRMaXN0U3RyAAAACG5ld0VudHJ5BAAAAAhpZHhBcnJheQkABEwAAAACAAAAAAAAAAAACQAETAAAAAIAAAAAAAAAAAEJAARMAAAAAgAAAAAAAAAAAgkABEwAAAACAAAAAAAAAAADCQAETAAAAAIAAAAAAAAAAAQJAARMAAAAAgAAAAAAAAAABQkABEwAAAACAAAAAAAAAAAGCQAETAAAAAIAAAAAAAAAAAcJAARMAAAAAgAAAAAAAAAACAkABEwAAAACAAAAAAAAAAAJCQAETAAAAAIAAAAAAAAAAAoJAARMAAAAAgAAAAAAAAAACwkABEwAAAACAAAAAAAAAAAMCQAETAAAAAIAAAAAAAAAAA0JAARMAAAAAgAAAAAAAAAADgkABEwAAAACAAAAAAAAAAAPCQAETAAAAAIAAAAAAAAAABAJAARMAAAAAgAAAAAAAAAAEQkABEwAAAACAAAAAAAAAAASCQAETAAAAAIAAAAAAAAAABMFAAAAA25pbAQAAAAKc29ydGVkT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UAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5mDgXLA==", "height": 2127746, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C8NPzsMiC75NXgW65a8ktbLZooMZZ34os1td1N6H3L26 Next: 5tNSZkqNw31guhiDBftFS9n98kLpUzWRhMRfuamMaMEs Diff:
OldNewDifferences
1010 if ((size(sortedList) >= size(idxArray)))
1111 then throw("passed sortedList size is too long...")
1212 else {
13- func internalInsert (newSortedList,idx) = if ((idx >= size(newSortedList)))
13+ func internalInsert (newSortedList,idx) = if ((idx >= size(sortedList)))
1414 then newSortedList
1515 else {
1616 let val = sortedList[idx]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func insertIntoSortedLinkedList (sortedListStr,newEntry) = {
88 let idxArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
99 let sortedList = split(sortedListStr, "__")
1010 if ((size(sortedList) >= size(idxArray)))
1111 then throw("passed sortedList size is too long...")
1212 else {
13- func internalInsert (newSortedList,idx) = if ((idx >= size(newSortedList)))
13+ func internalInsert (newSortedList,idx) = if ((idx >= size(sortedList)))
1414 then newSortedList
1515 else {
1616 let val = sortedList[idx]
1717 if (((idx + 1) == size(newSortedList)))
1818 then if ((newEntry >= parseIntValue(val)))
1919 then ((newSortedList :+ val) :+ toString(newEntry))
2020 else ((newSortedList :+ toString(newEntry)) :+ val)
2121 else if ((newEntry >= parseIntValue(val)))
2222 then (newSortedList :+ val)
2323 else ((newSortedList :+ toString(newEntry)) :+ val)
2424 }
2525
2626 let modifiedSortedList = {
2727 let $l = idxArray
2828 let $s = size($l)
2929 let $acc0 = nil
3030 func $f0_1 ($a,$i) = if (($i >= $s))
3131 then $a
3232 else internalInsert($a, $l[$i])
3333
3434 func $f0_2 ($a,$i) = if (($i >= $s))
3535 then $a
3636 else throw("List size exceeds 20")
3737
3838 $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)
3939 }
4040 $Tuple2(nil, modifiedSortedList)
4141 }
4242 }
4343
4444
4545 @Verifier(tx)
4646 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4747

github/deemru/w8io/fabc49c 
24.40 ms