tx · AzXmMMBZEyL7qwFa4j5o5z8V3xQ1KTqgE23JaZtcSpE

3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8:  -0.01000000 Waves

2023.10.21 12:33 [2808180] smart account 3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8 > SELF 0.00000000 Waves

{ "type": 13, "id": "AzXmMMBZEyL7qwFa4j5o5z8V3xQ1KTqgE23JaZtcSpE", "fee": 1000000, "feeAssetId": null, "timestamp": 1697880843516, "version": 2, "chainId": 84, "sender": "3Myg9C6tNDTG6uXmwvkhAU3uLkA6WzNrTx8", "senderPublicKey": "8EXR9gFY3exPzo6wV3v2oa96CYznA1QszMLFXiwWuptJ", "proofs": [ "ugHXA6qU9mkWinMwv9NHRooVFnepsz5hSAQomM2hMnrLv2b5jjQGDEsZX3NjpEDGXZDDajoCJWQTM5Sj4QDus5X" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEYAAAAAQEAAAAOYWRkU3RyaW5nRW50cnkAAAACAAAABWFjY3VtAAAACW5leHRWYWx1ZQkABE0AAAACBQAAAAVhY2N1bQkBAAAADEJvb2xlYW5FbnRyeQAAAAIJAAEsAAAAAgUAAAAJbmV4dFZhbHVlAgAAAAxfd2hpdGVMaXN0ZWQGAAAAAQAAAAFpAQAAABZhZGRUb011bHRpcGxlV2hpdGVMaXN0AAAAAQAAAAlhZGRyZXNzZXMJAARNAAAAAgoAAAAAAiRsBQAAAAlhZGRyZXNzZXMKAAAAAAIkcwkAAZAAAAABBQAAAAIkbAoAAAAABSRhY2MwBQAAAANuaWwKAQAAAAUkZjBfMQAAAAIAAAACJGEAAAACJGkDCQAAZwAAAAIFAAAAAiRpBQAAAAIkcwUAAAACJGEJAQAAAA5hZGRTdHJpbmdFbnRyeQAAAAIFAAAAAiRhCQABkQAAAAIFAAAAAiRsBQAAAAIkaQoBAAAABSRmMF8yAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkAAAIAAAABAgAAABRMaXN0IHNpemUgZXhjZWVkcyAxMAkBAAAABSRmMF8yAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgUAAAAFJGFjYzAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAIAAAAAAAAAAAMAAAAAAAAAAAQAAAAAAAAAAAUAAAAAAAAAAAYAAAAAAAAAAAcAAAAAAAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAABB3aGl0ZWxpc3RXcml0dGVuBgAAAAC+Q8aN", "height": 2808180, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9D4uCqwWXvGkTpJ5xosdryESZe7VKdiurxsC1BpdwV57 Next: 9ELTLP3hyR9cteHUCPvx2yNGEaJvoroeCWGsjutdaaVt Full:
OldNewDifferences
1-{-# STDLIB_VERSION 6 #-}
1+{-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = [1, 2, 3, 4, 5]
5-
6-func foldFunc (acc,e) = (e + 1) :: acc
4+func addStringEntry (accum,nextValue) = (accum :+ BooleanEntry((nextValue + "_whiteListed"), true))
75
86
97 @Callable(i)
10-func x () = {
11- let b = {
12- let $l = a
13- let $s = size($l)
14- let $acc0 = nil
15- func $f0_1 ($a,$i) = if (($i >= $s))
16- then $a
17- else foldFunc($a, $l[$i])
8+func addToMultipleWhiteList (addresses) = ({
9+ let $l = addresses
10+ let $s = size($l)
11+ let $acc0 = nil
12+ func $f0_1 ($a,$i) = if (($i >= $s))
13+ then $a
14+ else addStringEntry($a, $l[$i])
1815
19- func $f0_2 ($a,$i) = if (($i >= $s))
20- then $a
21- else throw("List size exceeds 5")
16+ func $f0_2 ($a,$i) = if (($i >= $s))
17+ then $a
18+ else throw("List size exceeds 10")
2219
23- $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5)
24- }
25- nil
26- }
20+ $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)
21+ } :+ BooleanEntry("whitelistWritten", true))
2722
2823

github/deemru/w8io/026f985 
35.59 ms