tx · 9tpUKcQVGhuycuVzhSEuKhsdpGLa8VYP4J1mAMzdsVkc 3MtsQpwSQr7knQgF1Mzdc3nd7ms3JEKo7B8: -0.01000000 Waves 2023.02.05 00:45 [2435448] smart account 3MtsQpwSQr7knQgF1Mzdc3nd7ms3JEKo7B8 > SELF 0.00000000 Waves
{ "type": 13, "id": "9tpUKcQVGhuycuVzhSEuKhsdpGLa8VYP4J1mAMzdsVkc", "fee": 1000000, "feeAssetId": null, "timestamp": 1675547225908, "version": 2, "chainId": 84, "sender": "3MtsQpwSQr7knQgF1Mzdc3nd7ms3JEKo7B8", "senderPublicKey": "DBrgC8MVcZdynxH3pXpNcQcSP3CSPx1oeHWTjdWKatxF", "proofs": [ "5CStcz6r8EhhWmRSntp42XYCWpP3ondgtDno9kWsXVNekxguZTxt1Ht7PZkhsBgNxC8c78gKZjUTtYFW9DXyENN4" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIYGAAAAAEBAAAAB2dldERhdGEAAAACAAAAA2FkcgAAAANrZXkEAAAABGRhdGEEAAAAByRtYXRjaDAJAAQbAAAAAgUAAAADYWRyBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHBQAAAARkYXRhAAAAAQAAAAFpAQAAABlzYXZlTGlzdE9uU3VwcGxpZXJBY2NvdW50AAAAAgAAAARrZXlzAAAABnZhbHVlcwoBAAAADmFkZFN0cmluZ0VudHJ5AAAAAgAAAAVhY2N1bQAAAAluZXh0VmFsdWUEAAAACSR0MDUwMDUyMwUAAAAFYWNjdW0EAAAABnJlc3VsdAgFAAAACSR0MDUwMDUyMwAAAAJfMQQAAAABaggFAAAACSR0MDUwMDUyMwAAAAJfMgkABRQAAAACCQAETQAAAAIFAAAABnJlc3VsdAkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAZEAAAACBQAAAARrZXlzBQAAAAFqBQAAAAluZXh0VmFsdWUJAABkAAAAAgUAAAABagAAAAAAAAAAAQQAAAABcgoAAAAAAiRsBQAAAAZ2YWx1ZXMKAAAAAAIkcwkAAZAAAAABBQAAAAIkbAoAAAAABSRhY2MwCQAFFAAAAAIFAAAAA25pbAAAAAAAAAAAAAoBAAAABSRmMF8xAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkBAAAADmFkZFN0cmluZ0VudHJ5AAAAAgUAAAACJGEJAAGRAAAAAgUAAAACJGwFAAAAAiRpCgEAAAAFJGYwXzIAAAACAAAAAiRhAAAAAiRpAwkAAGcAAAACBQAAAAIkaQUAAAACJHMFAAAAAiRhCQAAAgAAAAECAAAAFExpc3Qgc2l6ZSBleGNlZWRzIDEwCQEAAAAFJGYwXzIAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACBQAAAAUkYWNjMAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAAAAAAAABgAAAAAAAAAABwAAAAAAAAAACAAAAAAAAAAACQAAAAAAAAAACggFAAAAAXIAAAACXzEAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlebcbUks=", "height": 2435448, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 9qXYNkAdQtZQhJVHcmJrkYijkRo2H8RivtRTzEm2enE8 Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func getData (adr,key) = { | |
5 | + | let data = match getBoolean(adr, key) { | |
6 | + | case a: Boolean => | |
7 | + | a | |
8 | + | case _ => | |
9 | + | false | |
10 | + | } | |
11 | + | data | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | @Callable(i) | |
16 | + | func saveListOnSupplierAccount (keys,values) = { | |
17 | + | func addStringEntry (accum,nextValue) = { | |
18 | + | let $t0500523 = accum | |
19 | + | let result = $t0500523._1 | |
20 | + | let j = $t0500523._2 | |
21 | + | $Tuple2((result :+ StringEntry(keys[j], nextValue)), (j + 1)) | |
22 | + | } | |
23 | + | ||
24 | + | let r = { | |
25 | + | let $l = values | |
26 | + | let $s = size($l) | |
27 | + | let $acc0 = $Tuple2(nil, 0) | |
28 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
29 | + | then $a | |
30 | + | else addStringEntry($a, $l[$i]) | |
31 | + | ||
32 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
33 | + | then $a | |
34 | + | else throw("List size exceeds 10") | |
35 | + | ||
36 | + | $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) | |
37 | + | } | |
38 | + | r._1 | |
39 | + | } | |
40 | + | ||
41 | + | ||
42 | + | @Verifier(tx) | |
43 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
44 | + |
github/deemru/w8io/026f985 19.29 ms ◑