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 e = c |
---|
8 | 8 | | let f = e._1 |
---|
9 | 9 | | let g = e._2 |
---|
10 | | - | [StringEntry(("Key_" + d), d)] |
---|
| 10 | + | let h = "1" |
---|
| 11 | + | [ScriptTransfer(Address(fromBase58String(d)), parseIntValue(h), unit), StringEntry(("Key_" + d), d)] |
---|
11 | 12 | | } |
---|
12 | 13 | | |
---|
13 | 14 | | |
---|
14 | | - | @Callable(h) |
---|
| 15 | + | @Callable(i) |
---|
15 | 16 | | func buyNft () = { |
---|
16 | | - | let i = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
| 17 | + | let j = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
17 | 18 | | let f = { |
---|
18 | | - | let j = i |
---|
19 | | - | let k = size(j) |
---|
20 | | - | let l = $Tuple2(nil, 0) |
---|
21 | | - | func m (n,o) = if ((o >= k)) |
---|
22 | | - | then n |
---|
23 | | - | else b(n, j[o]) |
---|
| 19 | + | let k = j |
---|
| 20 | + | let l = size(k) |
---|
| 21 | + | let m = $Tuple2(nil, 0) |
---|
| 22 | + | func n (o,p) = if ((p >= l)) |
---|
| 23 | + | then o |
---|
| 24 | + | else b(o, k[p]) |
---|
24 | 25 | | |
---|
25 | | - | func p (n,o) = if ((o >= k)) |
---|
26 | | - | then n |
---|
| 26 | + | func q (o,p) = if ((p >= l)) |
---|
| 27 | + | then o |
---|
27 | 28 | | else throw("List size exceeds 10") |
---|
28 | 29 | | |
---|
29 | | - | p(m(m(m(m(m(m(m(m(m(m(l, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) |
---|
| 30 | + | q(n(n(n(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) |
---|
30 | 31 | | } |
---|
31 | 32 | | nil |
---|
32 | 33 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 6 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
5 | 5 | | |
---|
6 | 6 | | func b (c,d) = { |
---|
7 | 7 | | let e = c |
---|
8 | 8 | | let f = e._1 |
---|
9 | 9 | | let g = e._2 |
---|
10 | | - | [StringEntry(("Key_" + d), d)] |
---|
| 10 | + | let h = "1" |
---|
| 11 | + | [ScriptTransfer(Address(fromBase58String(d)), parseIntValue(h), unit), StringEntry(("Key_" + d), d)] |
---|
11 | 12 | | } |
---|
12 | 13 | | |
---|
13 | 14 | | |
---|
14 | | - | @Callable(h) |
---|
| 15 | + | @Callable(i) |
---|
15 | 16 | | func buyNft () = { |
---|
16 | | - | let i = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
| 17 | + | let j = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
17 | 18 | | let f = { |
---|
18 | | - | let j = i |
---|
19 | | - | let k = size(j) |
---|
20 | | - | let l = $Tuple2(nil, 0) |
---|
21 | | - | func m (n,o) = if ((o >= k)) |
---|
22 | | - | then n |
---|
23 | | - | else b(n, j[o]) |
---|
| 19 | + | let k = j |
---|
| 20 | + | let l = size(k) |
---|
| 21 | + | let m = $Tuple2(nil, 0) |
---|
| 22 | + | func n (o,p) = if ((p >= l)) |
---|
| 23 | + | then o |
---|
| 24 | + | else b(o, k[p]) |
---|
24 | 25 | | |
---|
25 | | - | func p (n,o) = if ((o >= k)) |
---|
26 | | - | then n |
---|
| 26 | + | func q (o,p) = if ((p >= l)) |
---|
| 27 | + | then o |
---|
27 | 28 | | else throw("List size exceeds 10") |
---|
28 | 29 | | |
---|
29 | | - | p(m(m(m(m(m(m(m(m(m(m(l, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) |
---|
| 30 | + | q(n(n(n(n(n(n(n(n(n(n(m, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) |
---|
30 | 31 | | } |
---|
31 | 32 | | nil |
---|
32 | 33 | | } |
---|
33 | 34 | | |
---|
34 | 35 | | |
---|