tx · 9xKf5HBMGuYtxBKoruKveWTn9snWhpRZzVfRSjZrtEKG
3Mz3A1UYGJv1646xRXHZzTy4nofAbg4QPaH: -0.01400000 Waves
2023.03.05 01:07 [2475903] smart account 3Mz3A1UYGJv1646xRXHZzTy4nofAbg4QPaH > SELF 0.00000000 Waves
{
"type": 13,
"id": "9xKf5HBMGuYtxBKoruKveWTn9snWhpRZzVfRSjZrtEKG",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1677967633264,
"version": 2,
"chainId": 84,
"sender": "3Mz3A1UYGJv1646xRXHZzTy4nofAbg4QPaH",
"senderPublicKey": "8wkcC4wZzidr4PipMnDKcJn4CP25PZn9Mj15Tx51kiB9",
"proofs": [
"tntjVHHQLdiWd1xLZXdoGL4PPq58P2WusLyMZsCF6g8XvCirpRwjzqQxWdnJUVxJLkAcsDshcYZpDBpRtAjiuNC"
],
"script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAAAWEJAARMAAAAAgAAAAAAAKoeyAkABEwAAAACAAAAAAAAEYhIBQAAAANuaWwKAQAAAAhmb2xkRnVuYwAAAAIAAAADYWNjAAAAAWUJAARMAAAAAgUAAAABZQUAAAADYWNjBAAAAAx3aW5uaW5nVG9rZW4KAAAAAAIkbAUAAAABYQoAAAAAAiRzCQABkAAAAAEFAAAAAiRsCgAAAAAFJGFjYzAFAAAAA25pbAoBAAAABSRmMF8xAAAAAgAAAAIkYQAAAAIkaQMJAABnAAAAAgUAAAACJGkFAAAAAiRzBQAAAAIkYQkBAAAACGZvbGRGdW5jAAAAAgUAAAACJGEJAAGRAAAAAgUAAAACJGwFAAAAAiRpCgEAAAAFJGYwXzIAAAACAAAAAiRhAAAAAiRpAwkAAGcAAAACBQAAAAIkaQUAAAACJHMFAAAAAiRhCQAAAgAAAAECAAAAE0xpc3Qgc2l6ZSBleGNlZWRzIDIJAQAAAAUkZjBfMgAAAAIJAQAAAAUkZjBfMQAAAAIJAQAAAAUkZjBfMQAAAAIFAAAABSRhY2MwAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAACCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAARMaXN0CQABkQAAAAIFAAAADHdpbm5pbmdUb2tlbgAAAAAAAAAAAgUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlRgVUo",
"height": 2475903,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: R1DqS3PmQL2NcAeJuRQwtPERJNuYMhxKamik84jqsf1
Next: 8ZyYmHYVunKjdQ4eBhnJhRwmfsmWH8HdPmt8kBZcQVyn
Diff:
Old | New | | Differences |
---|
22 | 22 | | |
---|
23 | 23 | | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) |
---|
24 | 24 | | } |
---|
25 | | - | [IntegerEntry("List", winningToken[1])] |
---|
| 25 | + | [IntegerEntry("List", winningToken[2])] |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func call () = { |
---|
8 | 8 | | let a = [11149000, 1149000] |
---|
9 | 9 | | func foldFunc (acc,e) = e :: acc |
---|
10 | 10 | | |
---|
11 | 11 | | let winningToken = { |
---|
12 | 12 | | let $l = a |
---|
13 | 13 | | let $s = size($l) |
---|
14 | 14 | | let $acc0 = nil |
---|
15 | 15 | | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
16 | 16 | | then $a |
---|
17 | 17 | | else foldFunc($a, $l[$i]) |
---|
18 | 18 | | |
---|
19 | 19 | | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
20 | 20 | | then $a |
---|
21 | 21 | | else throw("List size exceeds 2") |
---|
22 | 22 | | |
---|
23 | 23 | | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) |
---|
24 | 24 | | } |
---|
25 | | - | [IntegerEntry("List", winningToken[1])] |
---|
| 25 | + | [IntegerEntry("List", winningToken[2])] |
---|
26 | 26 | | } |
---|
27 | 27 | | |
---|
28 | 28 | | |
---|
29 | 29 | | @Verifier(tx) |
---|
30 | 30 | | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
31 | 31 | | |
---|