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