tx · 5Q3yyTs5ydttEmAA9LNc75qYfGCgfPZqyTjqNQtfnnXN
3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH: -0.00100000 Waves
2023.10.29 17:34 [2820056] smart account 3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH > SELF 0.00000000 Waves
{
"type": 13,
"id": "5Q3yyTs5ydttEmAA9LNc75qYfGCgfPZqyTjqNQtfnnXN",
"fee": 100000,
"feeAssetId": null,
"timestamp": 1698590184997,
"version": 2,
"chainId": 84,
"sender": "3N3y7nQfqDc7rBUExjKQi5ZbspWRh9q8PYH",
"senderPublicKey": "9ggtmbyecVRfUY2zeZhNaoLBp2iymhnQhffXQhemTJaG",
"proofs": [
"42M7a2yQ7342Vau7hTJjXS757mTUqQR7N9NGQZL21ZxrNWRzmessRvdyUK1YQwtZcye91wzafxJQ9swTBg5db2j9"
],
"script": "base64:BgIECAISAAABAWkBCHRyYW5zZmVyAAQGYW1vdW50CQBkAgABAAMJAMwIAgkBDEludGVnZXJFbnRyeQICBmFtb3VudAUGYW1vdW50BQNuaWwADVMN6g==",
"height": 2820056,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 43PxFJhrftcuWGw9H7GR9izwpmpt8Kfz4ghzYvC5QRwS
Next: 3LvwFhBhwGX12zb88vt6kCB72EkZWzg9dwATmojaSTZe
Full:
Old | New | | Differences |
---|
1 | | - | {-# STDLIB_VERSION 5 #-} |
---|
| 1 | + | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | func sum (accum,next) = (accum + next) |
---|
5 | 4 | | |
---|
6 | 5 | | |
---|
7 | | - | let arr = [1, 2, 3, 4, 5] |
---|
8 | | - | |
---|
9 | | - | let s = { |
---|
10 | | - | let $l = arr |
---|
11 | | - | let $s = size($l) |
---|
12 | | - | let $acc0 = 0 |
---|
13 | | - | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
14 | | - | then $a |
---|
15 | | - | else sum($a, $l[$i]) |
---|
16 | | - | |
---|
17 | | - | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
18 | | - | then $a |
---|
19 | | - | else throw("List size exceeds 5") |
---|
20 | | - | |
---|
21 | | - | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5) |
---|
| 6 | + | @Callable(i) |
---|
| 7 | + | func transfer () = { |
---|
| 8 | + | let amount = (1 + 3) |
---|
| 9 | + | [IntegerEntry("amount", amount)] |
---|
22 | 10 | | } |
---|
23 | 11 | | |
---|
24 | 12 | | |
---|