tx · Dx2W2axuJzX9PE9vCoiLigzwqaFQ7UrMxqCfTpqxXqj

3MtsQpwSQr7knQgF1Mzdc3nd7ms3JEKo7B8:  -0.01000000 Waves

2023.02.05 01:40 [2435498] smart account 3MtsQpwSQr7knQgF1Mzdc3nd7ms3JEKo7B8 > SELF 0.00000000 Waves

{ "type": 13, "id": "Dx2W2axuJzX9PE9vCoiLigzwqaFQ7UrMxqCfTpqxXqj", "fee": 1000000, "feeAssetId": null, "timestamp": 1675550499869, "version": 2, "chainId": 84, "sender": "3MtsQpwSQr7knQgF1Mzdc3nd7ms3JEKo7B8", "senderPublicKey": "DBrgC8MVcZdynxH3pXpNcQcSP3CSPx1oeHWTjdWKatxF", "proofs": [ "51Ge51WHbtEdRWpPCN9Tr99FeqTZuQNfsJEoZvRv5rv1af9jU2FkchkkxxAHuL6J1qAExA3x3AkHmQTZV2wgjMF6" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIYGAAAAAIBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHBQAAAARkYXRhAQAAAAhhdXRoVXNlcgAAAAEAAAABaQQAAAASZWdnZXJQdWJsaWNLZXlIYXNoCQAB9wAAAAEIBQAAAAFpAAAAD2NhbGxlclB1YmxpY0tleQQAAAAjZWdnZXJQdWJsaWNLZXlIYXNoT25TdXBwbGllckFjY291bnQJAQAAABFAZXh0ck5hdGl2ZSgxMDUyKQAAAAIFAAAABHRoaXMCAAAAFGNvbm5lY3Rpb24uRWdnZXIucmVmAwkAAAAAAAACBQAAACNlZ2dlclB1YmxpY0tleUhhc2hPblN1cHBsaWVyQWNjb3VudAUAAAASZWdnZXJQdWJsaWNLZXlIYXNoBgkAAAIAAAABAgAAAD1BY2NvdW50IGhhdCB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AgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgUAAAAFJGFjYzAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAIAAAAAAAAAAAMAAAAAAAAAAAQAAAAAAAAAAAUAAAAAAAAAAAYAAAAAAAAAAAcAAAAAAAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoIBQAAAAFyAAAAAl8xCQAAAgAAAAECAAAAPUFjY291bnQgaGF0IG5pY2h0IGRpZSBuw7Z0aWdlIEJlcmVjaHRpZ3VuZyBmw7xyIGRpZXNlIEFrdGlvbi4AAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleePF7FM=", "height": 2435498, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9qXYNkAdQtZQhJVHcmJrkYijkRo2H8RivtRTzEm2enE8 Next: 3FyzkQsMAujHXY39xiLzc3WW9UvnBZyECL6Q7KSc25EE Diff:
OldNewDifferences
2424 @Callable(i)
2525 func saveListOnSupplierAccount (keys,values) = {
2626 let authenticated = authUser(i)
27- func addStringEntry (accum,nextValue) = {
28- let $t09771000 = accum
29- let result = $t09771000._1
30- let j = $t09771000._2
31- $Tuple2((result :+ StringEntry(keys[j], nextValue)), (j + 1))
32- }
27+ if (authenticated)
28+ then {
29+ func addStringEntry (accum,nextValue) = {
30+ let $t09991022 = accum
31+ let result = $t09991022._1
32+ let j = $t09991022._2
33+ $Tuple2((result :+ StringEntry(keys[j], nextValue)), (j + 1))
34+ }
3335
34- let r = {
35- let $l = values
36- let $s = size($l)
37- let $acc0 = $Tuple2(nil, 0)
38- func $f0_1 ($a,$i) = if (($i >= $s))
39- then $a
40- else addStringEntry($a, $l[$i])
36+ let r = {
37+ let $l = values
38+ let $s = size($l)
39+ let $acc0 = $Tuple2(nil, 0)
40+ func $f0_1 ($a,$i) = if (($i >= $s))
41+ then $a
42+ else addStringEntry($a, $l[$i])
4143
42- func $f0_2 ($a,$i) = if (($i >= $s))
43- then $a
44- else throw("List size exceeds 10")
44+ func $f0_2 ($a,$i) = if (($i >= $s))
45+ then $a
46+ else throw("List size exceeds 10")
4547
46- $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)
47- }
48- r._1
48+ $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)
49+ }
50+ r._1
51+ }
52+ else throw("Account hat nicht die nötige Berechtigung für diese Aktion.")
4953 }
5054
5155
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func getData (adr,key) = {
55 let data = match getBoolean(adr, key) {
66 case a: Boolean =>
77 a
88 case _ =>
99 false
1010 }
1111 data
1212 }
1313
1414
1515 func authUser (i) = {
1616 let eggerPublicKeyHash = sha256(i.callerPublicKey)
1717 let eggerPublicKeyHashOnSupplierAccount = getBinaryValue(this, "connection.Egger.ref")
1818 if ((eggerPublicKeyHashOnSupplierAccount == eggerPublicKeyHash))
1919 then true
2020 else throw("Account hat nicht die nötige Berechtigung für diese Aktion.")
2121 }
2222
2323
2424 @Callable(i)
2525 func saveListOnSupplierAccount (keys,values) = {
2626 let authenticated = authUser(i)
27- func addStringEntry (accum,nextValue) = {
28- let $t09771000 = accum
29- let result = $t09771000._1
30- let j = $t09771000._2
31- $Tuple2((result :+ StringEntry(keys[j], nextValue)), (j + 1))
32- }
27+ if (authenticated)
28+ then {
29+ func addStringEntry (accum,nextValue) = {
30+ let $t09991022 = accum
31+ let result = $t09991022._1
32+ let j = $t09991022._2
33+ $Tuple2((result :+ StringEntry(keys[j], nextValue)), (j + 1))
34+ }
3335
34- let r = {
35- let $l = values
36- let $s = size($l)
37- let $acc0 = $Tuple2(nil, 0)
38- func $f0_1 ($a,$i) = if (($i >= $s))
39- then $a
40- else addStringEntry($a, $l[$i])
36+ let r = {
37+ let $l = values
38+ let $s = size($l)
39+ let $acc0 = $Tuple2(nil, 0)
40+ func $f0_1 ($a,$i) = if (($i >= $s))
41+ then $a
42+ else addStringEntry($a, $l[$i])
4143
42- func $f0_2 ($a,$i) = if (($i >= $s))
43- then $a
44- else throw("List size exceeds 10")
44+ func $f0_2 ($a,$i) = if (($i >= $s))
45+ then $a
46+ else throw("List size exceeds 10")
4547
46- $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)
47- }
48- r._1
48+ $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)
49+ }
50+ r._1
51+ }
52+ else throw("Account hat nicht die nötige Berechtigung für diese Aktion.")
4953 }
5054
5155
5256 @Verifier(tx)
5357 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5458

github/deemru/w8io/026f985 
42.83 ms