tx · HPvu1dnfPDHiKjFttpBPMQtVKBSEFCjeGxxSAZyFmZVG
3NCnz63Wq3UgikV5jJfQpG5snnibGbfUHR1: -0.00500000 Waves
2023.03.25 19:33 [2505771] smart account 3NCnz63Wq3UgikV5jJfQpG5snnibGbfUHR1 > SELF 0.00000000 Waves
{
"type": 13,
"id": "HPvu1dnfPDHiKjFttpBPMQtVKBSEFCjeGxxSAZyFmZVG",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1679762025486,
"version": 2,
"chainId": 84,
"sender": "3NCnz63Wq3UgikV5jJfQpG5snnibGbfUHR1",
"senderPublicKey": "4aqyXQp8dTe3bcQoReatzejrngYuQvyooFPeNe8925zb",
"proofs": [
"LWfKpMyUx47DiQvt3Rqyovkk2XmhgudFFmP7LDJgJRxphBMUNy8FRdN35Jr1Ev3eeNDCwMyFXE6CwvLMmmhpToV"
],
"script": "base64:BgIECAISAAIABXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgEOYWRkU3RyaW5nRW50cnkCBWFjY3VtCW5leHRWYWx1ZQQFcHJpY2UCATEJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBB0FkZHJlc3MBCQDZBAEFCW5leHRWYWx1ZQkBDXBhcnNlSW50VmFsdWUBBQVwcmljZQUEdW5pdAkAzAgCCQELU3RyaW5nRW50cnkCCQCsAgICBEtleV8FCW5leHRWYWx1ZQUJbmV4dFZhbHVlBQNuaWwBAWkBBmJ1eU5mdAAEBnZhbHVlcwkAzAgCAiMzTjdTeTRRUmdMcmhqV0NoYnBpeUZ4YVJyWXRUTlJHdU5VcwkAzAgCAiMzTjg1WVc2Tlo5cExZdlNkdDFBU01RVEd4dm5jblUxdlVOeAUDbmlsBAZyZXN1bHQKAAIkbAUGdmFsdWVzCgACJHMJAJADAQUCJGwKAAUkYWNjMAAACgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQ5hZGRTdHJpbmdFbnRyeQIFAiRhCQCRAwIFAiRsBQIkaQoBBSRmMF8yAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQACAQIUTGlzdCBzaXplIGV4Y2VlZHMgMTAJAQUkZjBfMgIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYABwAIAAkACgUDbmlsAOAkGNM=",
"height": 2505771,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3jFCwJFyNzuWnNhnETDo6wH8NdE83YxRWq84c9AcmnEb
Next: EStQtC4qWqHnEesFDheQr1e8GqZKcYSf8pWwJxh6LJtx
Diff:
Old | New | | Differences |
---|
4 | 4 | | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
5 | 5 | | |
---|
6 | 6 | | func addStringEntry (accum,nextValue) = { |
---|
7 | | - | let $t0228251 = accum |
---|
8 | | - | let result = $t0228251._1 |
---|
9 | | - | let j = $t0228251._2 |
---|
10 | 7 | | let price = "1" |
---|
11 | 8 | | [ScriptTransfer(Address(fromBase58String(nextValue)), parseIntValue(price), unit), StringEntry(("Key_" + nextValue), nextValue)] |
---|
12 | 9 | | } |
---|
|
18 | 15 | | let result = { |
---|
19 | 16 | | let $l = values |
---|
20 | 17 | | let $s = size($l) |
---|
21 | | - | let $acc0 = $Tuple2(nil, 0) |
---|
| 18 | + | let $acc0 = 0 |
---|
22 | 19 | | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
23 | 20 | | then $a |
---|
24 | 21 | | else addStringEntry($a, $l[$i]) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
5 | 5 | | |
---|
6 | 6 | | func addStringEntry (accum,nextValue) = { |
---|
7 | | - | let $t0228251 = accum |
---|
8 | | - | let result = $t0228251._1 |
---|
9 | | - | let j = $t0228251._2 |
---|
10 | 7 | | let price = "1" |
---|
11 | 8 | | [ScriptTransfer(Address(fromBase58String(nextValue)), parseIntValue(price), unit), StringEntry(("Key_" + nextValue), nextValue)] |
---|
12 | 9 | | } |
---|
13 | 10 | | |
---|
14 | 11 | | |
---|
15 | 12 | | @Callable(i) |
---|
16 | 13 | | func buyNft () = { |
---|
17 | 14 | | let values = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
18 | 15 | | let result = { |
---|
19 | 16 | | let $l = values |
---|
20 | 17 | | let $s = size($l) |
---|
21 | | - | let $acc0 = $Tuple2(nil, 0) |
---|
| 18 | + | let $acc0 = 0 |
---|
22 | 19 | | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
23 | 20 | | then $a |
---|
24 | 21 | | else addStringEntry($a, $l[$i]) |
---|
25 | 22 | | |
---|
26 | 23 | | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
27 | 24 | | then $a |
---|
28 | 25 | | else throw("List size exceeds 10") |
---|
29 | 26 | | |
---|
30 | 27 | | $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) |
---|
31 | 28 | | } |
---|
32 | 29 | | nil |
---|
33 | 30 | | } |
---|
34 | 31 | | |
---|
35 | 32 | | |
---|