tx · EStQtC4qWqHnEesFDheQr1e8GqZKcYSf8pWwJxh6LJtx
3NCnz63Wq3UgikV5jJfQpG5snnibGbfUHR1: -0.00500000 Waves
2023.03.25 19:46 [2505784] smart account 3NCnz63Wq3UgikV5jJfQpG5snnibGbfUHR1 > SELF 0.00000000 Waves
{
"type": 13,
"id": "EStQtC4qWqHnEesFDheQr1e8GqZKcYSf8pWwJxh6LJtx",
"fee": 500000,
"feeAssetId": null,
"timestamp": 1679762864656,
"version": 2,
"chainId": 84,
"sender": "3NCnz63Wq3UgikV5jJfQpG5snnibGbfUHR1",
"senderPublicKey": "4aqyXQp8dTe3bcQoReatzejrngYuQvyooFPeNe8925zb",
"proofs": [
"2GpJEeUPJhw3sJizifDMuY541NnUfHSb3fof1CfMtPfVnp1WyC6enqPVUNi8YWDUEGWBhgG6KGKuJdCWUEX67BBM"
],
"script": "base64:BgIECAISAAEABXRlYW1zASCFY5Wj84iOsN4MF44ITr+aP5K7Jts66HaOFtwUIipIfgEBaQEGYnV5TmZ0AAQGdmFsdWVzCQDMCAICIzNON1N5NFFSZ0xyaGpXQ2hicGl5RnhhUnJZdFROUkd1TlVzCQDMCAICIzNOODVZVzZOWjlwTFl2U2R0MUFTTVFUR3h2bmNuVTF2VU54BQNuaWwKAQ5hZGRTdHJpbmdFbnRyeQIFYWNjdW0JbmV4dFZhbHVlBAVwcmljZQIBMQkAzAgCCQEOU2NyaXB0VHJhbnNmZXIDCQEHQWRkcmVzcwEJANkEAQUJbmV4dFZhbHVlCQENcGFyc2VJbnRWYWx1ZQEFBXByaWNlBQR1bml0CQDMCAIJAQtTdHJpbmdFbnRyeQIJAKwCAgIES2V5XwUJbmV4dFZhbHVlBQluZXh0VmFsdWUJAMwIAgkAZAIFBWFjY3VtAAEFA25pbAQGcmVzdWx0CgACJGwFBnZhbHVlcwoAAiRzCQCQAwEFAiRsCgAFJGFjYzAAAAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEOYWRkU3RyaW5nRW50cnkCBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECE0xpc3Qgc2l6ZSBleGNlZWRzIDIJAQUkZjBfMgIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACBQNuaWwAYqeMJQ==",
"height": 2505784,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: HPvu1dnfPDHiKjFttpBPMQtVKBSEFCjeGxxSAZyFmZVG
Next: AXNCTJJVBPr29AxuLRQBdPxgirUfGvk5D3uZY2pPzHCo
Diff:
Old | New | | Differences |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
5 | 5 | | |
---|
6 | | - | func b (c,d) = { |
---|
7 | | - | let e = "1" |
---|
8 | | - | [ScriptTransfer(Address(fromBase58String(d)), parseIntValue(e), unit), StringEntry(("Key_" + d), d)] |
---|
9 | | - | } |
---|
| 6 | + | @Callable(b) |
---|
| 7 | + | func buyNft () = { |
---|
| 8 | + | let c = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
| 9 | + | func d (e,f) = { |
---|
| 10 | + | let g = "1" |
---|
| 11 | + | [ScriptTransfer(Address(fromBase58String(f)), parseIntValue(g), unit), StringEntry(("Key_" + f), f), (e + 1)] |
---|
| 12 | + | } |
---|
10 | 13 | | |
---|
11 | | - | |
---|
12 | | - | @Callable(f) |
---|
13 | | - | func buyNft () = { |
---|
14 | | - | let g = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
15 | 14 | | let h = { |
---|
16 | | - | let i = g |
---|
| 15 | + | let i = c |
---|
17 | 16 | | let j = size(i) |
---|
18 | 17 | | let k = 0 |
---|
19 | 18 | | func l (m,n) = if ((n >= j)) |
---|
20 | 19 | | then m |
---|
21 | | - | else b(m, i[n]) |
---|
| 20 | + | else d(m, i[n]) |
---|
22 | 21 | | |
---|
23 | 22 | | func o (m,n) = if ((n >= j)) |
---|
24 | 23 | | then m |
---|
25 | | - | else throw("List size exceeds 10") |
---|
| 24 | + | else throw("List size exceeds 2") |
---|
26 | 25 | | |
---|
27 | | - | o(l(l(l(l(l(l(l(l(l(l(k, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) |
---|
| 26 | + | o(l(l(k, 0), 1), 2) |
---|
28 | 27 | | } |
---|
29 | 28 | | nil |
---|
30 | 29 | | } |
---|
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 | | - | func b (c,d) = { |
---|
7 | | - | let e = "1" |
---|
8 | | - | [ScriptTransfer(Address(fromBase58String(d)), parseIntValue(e), unit), StringEntry(("Key_" + d), d)] |
---|
9 | | - | } |
---|
| 6 | + | @Callable(b) |
---|
| 7 | + | func buyNft () = { |
---|
| 8 | + | let c = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
| 9 | + | func d (e,f) = { |
---|
| 10 | + | let g = "1" |
---|
| 11 | + | [ScriptTransfer(Address(fromBase58String(f)), parseIntValue(g), unit), StringEntry(("Key_" + f), f), (e + 1)] |
---|
| 12 | + | } |
---|
10 | 13 | | |
---|
11 | | - | |
---|
12 | | - | @Callable(f) |
---|
13 | | - | func buyNft () = { |
---|
14 | | - | let g = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
15 | 14 | | let h = { |
---|
16 | | - | let i = g |
---|
| 15 | + | let i = c |
---|
17 | 16 | | let j = size(i) |
---|
18 | 17 | | let k = 0 |
---|
19 | 18 | | func l (m,n) = if ((n >= j)) |
---|
20 | 19 | | then m |
---|
21 | | - | else b(m, i[n]) |
---|
| 20 | + | else d(m, i[n]) |
---|
22 | 21 | | |
---|
23 | 22 | | func o (m,n) = if ((n >= j)) |
---|
24 | 23 | | then m |
---|
25 | | - | else throw("List size exceeds 10") |
---|
| 24 | + | else throw("List size exceeds 2") |
---|
26 | 25 | | |
---|
27 | | - | o(l(l(l(l(l(l(l(l(l(l(k, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) |
---|
| 26 | + | o(l(l(k, 0), 1), 2) |
---|
28 | 27 | | } |
---|
29 | 28 | | nil |
---|
30 | 29 | | } |
---|
31 | 30 | | |
---|
32 | 31 | | |
---|