tx · DsuSuSxqWftmzUC5NozXCyhjSmN4cJJe3YiqMjTgSZvr
3MpDfDT359qSSmNFZnMeoPQpyJA2U1K51u5: -0.00100000 Waves
2022.06.20 02:51 [2103931] smart account 3MpDfDT359qSSmNFZnMeoPQpyJA2U1K51u5 > SELF 0.00000000 Waves
{
"type": 13,
"id": "DsuSuSxqWftmzUC5NozXCyhjSmN4cJJe3YiqMjTgSZvr",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1655682742050,
"version": 2,
"chainId": 84,
"sender": "3MpDfDT359qSSmNFZnMeoPQpyJA2U1K51u5",
"senderPublicKey": "4HvXfbbYdzoa25fmF92mrAKoyF4WnjbjTz9YtT1mhSoz",
"proofs": [
"44qMDQi66C45GJ7PWwVGGw757ZXY1ozezjTfwZyWKi4xhqJK4Zp3gt2e7ikCrmvswB7N6uqK8tNqyrGUXnUu1RB7"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAwAAAAABYQkABEwAAAACAAAAAAAAAAABCQAETAAAAAIAAAAAAAAAAAIJAARMAAAAAgAAAAAAAAAAAwkABEwAAAACAAAAAAAAAAAECQAETAAAAAIAAAAAAAAAAAUFAAAAA25pbAEAAAADYWRkAAAAAgAAAAF4AAAAAXkJAABkAAAAAgUAAAABeAUAAAABeQAAAAAEdGVzdAoAAAAAAiRsBQAAAAFhCgAAAAACJHMJAAGQAAAAAQUAAAACJGwKAAAAAAUkYWNjMAAAAAAAAAAAAwoBAAAABSRmMF8xAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkBAAAAA2FkZAAAAAIFAAAAAiRhCQABkQAAAAIFAAAAAiRsBQAAAAIkaQoBAAAABSRmMF8yAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkAAAIAAAABAgAAABNMaXN0IHNpemUgZXhjZWVkcyA1CQEAAAAFJGYwXzIAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACCQEAAAAFJGYwXzEAAAACBQAAAAUkYWNjMAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAgAAAAAAAAAAAwAAAAAAAAAABAAAAAAAAAAABQAAAAEAAAABaQEAAAADc2FtAAAAAAQAAAAGZW50cmV5CQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAGcmVzdWx0BQAAAAR0ZXN0CQAETAAAAAIFAAAABmVudHJleQUAAAADbmlsAAAAAJjJjMY=",
"height": 2103931,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 8toDnibUaJnm2cx7in1wvvk951T8yiFvE1FmSUSVVdA6
Next: none
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = [1, 2, 3, 4, 5] |
---|
5 | 5 | | |
---|
6 | 6 | | func add (x,y) = (x + y) |
---|
7 | 7 | | |
---|
8 | 8 | | |
---|
9 | 9 | | let test = { |
---|
10 | 10 | | let $l = a |
---|
11 | 11 | | let $s = size($l) |
---|
12 | 12 | | let $acc0 = 3 |
---|
13 | 13 | | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
14 | 14 | | then $a |
---|
15 | 15 | | else add($a, $l[$i]) |
---|
16 | 16 | | |
---|
17 | 17 | | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
18 | 18 | | then $a |
---|
19 | 19 | | else throw("List size exceeds 5") |
---|
20 | 20 | | |
---|
21 | 21 | | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | @Callable(i) |
---|
25 | 25 | | func sam () = { |
---|
26 | 26 | | let entrey = IntegerEntry("result", test) |
---|
27 | 27 | | [entrey] |
---|
28 | 28 | | } |
---|
29 | 29 | | |
---|
30 | 30 | | |
---|