tx · Fy7eLGGrcuxDh6jUaRWWbRsJvw8XYnvsnfBYoqL1VDYt

3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh:  -0.01000000 Waves

2023.04.18 10:38 [2539707] smart account 3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh > SELF 0.00000000 Waves

{ "type": 13, "id": "Fy7eLGGrcuxDh6jUaRWWbRsJvw8XYnvsnfBYoqL1VDYt", "fee": 1000000, "feeAssetId": null, "timestamp": 1681803564923, "version": 2, "chainId": 84, "sender": "3N4ziXSMRverXyxHDUKKMR9MHXnB3TyU3Yh", "senderPublicKey": "EU9obW1yVhR8qug3EmXPeew3DMagvJFQzY5Ku8bmcsU7", "proofs": [ "NhyWhGnM7f2DWnH11HNyRXzRC7Gu6zmk1Y527xZxnUE94VY3R2Tv2CWQYDwQbHJAZKxGvF65QYxHBMvSs2QuwQG" ], "script": "base64:BgICCAIPAANTRVACAl9fABBjb250cmFjdEZpbGVuYW1lAgl0ZXN0LnJpZGUBEGtleVB1YmxpY0tleUxpc3QACQC5CQIJAMwIAgICJXMJAMwIAgIVbXVsdGlzaWdQdWJsaWNLZXlMaXN0BQNuaWwFA1NFUAEIdGhyb3dFcnIBAXMJAAIBCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBHGdldE11bHRpc2lnUHViS2V5c0xpc3RPclVuaXQABBJyYXdNdWx0aXNpZ1B1YktleXMJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwkBEGtleVB1YmxpY0tleUxpc3QAAgAJALUJAgUScmF3TXVsdGlzaWdQdWJLZXlzBQNTRVABD2NvbXBhcmVGdW5jdGlvbgIBYQFiAwkAAAIFAWEFAWIAAQAAAQ1jb21wYXJlSGVscGVyAgNsc3QBYQQJJHQwNTY5NTk1BQNsc3QEBnJlc3VsdAgFCSR0MDU2OTU5NQJfMQQGZXhwZWN0CAUJJHQwNTY5NTk1Al8yCQCUCgIJAM0IAgUGcmVzdWx0CQ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WEEBWxpc3QxCQDMCAICAWEJAMwIAgIBYwkAzAgCAgFlCQDMCAICAmFhCQDMCAICAmFhCQDMCAICAWQFA25pbAQFbGlzdDIJAMwIAgIBYQkAzAgCAgFiCQDMCAICAWMJAMwIAgIBZAkAzAgCAgFlCQDMCAICAWMJAMwIAgIBYwkAzAgCAgFlCQDMCAICAWEJAMwIAgIBYQkAzAgCAgFhBQNuaWwEAWIJAQhsaXN0TGlzdAIFBWxpc3QxBQVsaXN0MgkAlAoCCQEHc3VtTGlzdAEFAWIFAWIAAHBbpUI=", "height": 2539707, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5M7gF4EphEfSp7AMj1j2HYJ2ioKQqT4EXP2WGxXTLT5r Next: CPx3kEcRhu8T8usPLjXb4owfVeGrU183M7aoNSnNsbQL Diff:
OldNewDifferences
115115
116116 func test (a) = {
117117 let list1 = ["a", "c", "e", "aa", "aa", "d"]
118- let list2 = ["a", "b", "c", "d", "e", "c", "c", "e"]
118+ let list2 = ["a", "b", "c", "d", "e", "c", "c", "e", "a", "a", "a"]
119119 let b = listList(list1, list2)
120120 $Tuple2(sumList(b), b)
121121 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEP = "__"
55
66 let contractFilename = "test.ride"
77
88 func keyPublicKeyList () = makeString(["%s", "multisigPublicKeyList"], SEP)
99
1010
1111 func throwErr (s) = throw(((contractFilename + ": ") + s))
1212
1313
1414 func getMultisigPubKeysListOrUnit () = {
1515 let rawMultisigPubKeys = valueOrElse(getString(this, keyPublicKeyList()), "")
1616 split(rawMultisigPubKeys, SEP)
1717 }
1818
1919
2020 func compareFunction (a,b) = if ((a == b))
2121 then 1
2222 else 0
2323
2424
2525 func compareHelper (lst,a) = {
2626 let $t0569595 = lst
2727 let result = $t0569595._1
2828 let expect = $t0569595._2
2929 $Tuple2((result :+ compareFunction(expect, a)), expect)
3030 }
3131
3232
3333 func compare (list,a) = {
3434 let $l = list
3535 let $s = size($l)
3636 let $acc0 = $Tuple2(nil, a)
3737 func $f0_1 ($a,$i) = if (($i >= $s))
3838 then $a
3939 else compareHelper($a, $l[$i])
4040
4141 func $f0_2 ($a,$i) = if (($i >= $s))
4242 then $a
4343 else throw("List size exceeds 10")
4444
4545 $f0_2($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)
4646 }
4747
4848
4949 func accum (sum,val) = (sum + val)
5050
5151
5252 func sumList (list) = {
5353 let $l = list
5454 let $s = size($l)
5555 let $acc0 = 0
5656 func $f0_1 ($a,$i) = if (($i >= $s))
5757 then $a
5858 else accum($a, $l[$i])
5959
6060 func $f0_2 ($a,$i) = if (($i >= $s))
6161 then $a
6262 else throw("List size exceeds 10")
6363
6464 $f0_2($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)
6565 }
6666
6767
6868 func compareListHelper (a,b) = {
6969 let $t0925946 = a
7070 let result = $t0925946._1
7171 let lst = $t0925946._2
7272 let compareList = compare(lst, b)._1
7373 let sum = sumList(compareList)
7474 $Tuple2((result :+ sum), lst)
7575 }
7676
7777
7878 func normilizeHelper (list,next) = (list :+ min([1, next]))
7979
8080
8181 func normilize (list) = {
8282 let $l = list
8383 let $s = size($l)
8484 let $acc0 = nil
8585 func $f0_1 ($a,$i) = if (($i >= $s))
8686 then $a
8787 else normilizeHelper($a, $l[$i])
8888
8989 func $f0_2 ($a,$i) = if (($i >= $s))
9090 then $a
9191 else throw("List size exceeds 10")
9292
9393 $f0_2($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)
9494 }
9595
9696
9797 func listList (list1,list2) = {
9898 let a = {
9999 let $l = list1
100100 let $s = size($l)
101101 let $acc0 = $Tuple2(nil, list2)
102102 func $f0_1 ($a,$i) = if (($i >= $s))
103103 then $a
104104 else compareListHelper($a, $l[$i])
105105
106106 func $f0_2 ($a,$i) = if (($i >= $s))
107107 then $a
108108 else throw("List size exceeds 10")
109109
110110 $f0_2($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)
111111 }
112112 normilize(a._1)
113113 }
114114
115115
116116 func test (a) = {
117117 let list1 = ["a", "c", "e", "aa", "aa", "d"]
118- let list2 = ["a", "b", "c", "d", "e", "c", "c", "e"]
118+ let list2 = ["a", "b", "c", "d", "e", "c", "c", "e", "a", "a", "a"]
119119 let b = listList(list1, list2)
120120 $Tuple2(sumList(b), b)
121121 }
122122
123123
124124

github/deemru/w8io/026f985 
25.29 ms