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 teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
5 | 5 | | |
---|
6 | | - | func addStringEntry (accum,nextValue) = { |
---|
7 | | - | let price = "1" |
---|
8 | | - | [ScriptTransfer(Address(fromBase58String(nextValue)), parseIntValue(price), unit), StringEntry(("Key_" + nextValue), nextValue)] |
---|
9 | | - | } |
---|
10 | | - | |
---|
11 | | - | |
---|
12 | 6 | | @Callable(i) |
---|
13 | 7 | | func buyNft () = { |
---|
14 | 8 | | let values = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
| 9 | + | func addStringEntry (accum,nextValue) = { |
---|
| 10 | + | let price = "1" |
---|
| 11 | + | [ScriptTransfer(Address(fromBase58String(nextValue)), parseIntValue(price), unit), StringEntry(("Key_" + nextValue), nextValue), (accum + 1)] |
---|
| 12 | + | } |
---|
| 13 | + | |
---|
15 | 14 | | let result = { |
---|
16 | 15 | | let $l = values |
---|
17 | 16 | | let $s = size($l) |
---|
|
22 | 21 | | |
---|
23 | 22 | | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
24 | 23 | | then $a |
---|
25 | | - | else throw("List size exceeds 10") |
---|
| 24 | + | else throw("List size exceeds 2") |
---|
26 | 25 | | |
---|
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) |
---|
| 26 | + | $f0_2($f0_1($f0_1($acc0, 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 teams = base58'9yhJDfWjPpv6tFjWRD1AJyBQwausJf2ZdxzLn86Uknnq' |
---|
5 | 5 | | |
---|
6 | | - | func addStringEntry (accum,nextValue) = { |
---|
7 | | - | let price = "1" |
---|
8 | | - | [ScriptTransfer(Address(fromBase58String(nextValue)), parseIntValue(price), unit), StringEntry(("Key_" + nextValue), nextValue)] |
---|
9 | | - | } |
---|
10 | | - | |
---|
11 | | - | |
---|
12 | 6 | | @Callable(i) |
---|
13 | 7 | | func buyNft () = { |
---|
14 | 8 | | let values = ["3N7Sy4QRgLrhjWChbpiyFxaRrYtTNRGuNUs", "3N85YW6NZ9pLYvSdt1ASMQTGxvncnU1vUNx"] |
---|
| 9 | + | func addStringEntry (accum,nextValue) = { |
---|
| 10 | + | let price = "1" |
---|
| 11 | + | [ScriptTransfer(Address(fromBase58String(nextValue)), parseIntValue(price), unit), StringEntry(("Key_" + nextValue), nextValue), (accum + 1)] |
---|
| 12 | + | } |
---|
| 13 | + | |
---|
15 | 14 | | let result = { |
---|
16 | 15 | | let $l = values |
---|
17 | 16 | | let $s = size($l) |
---|
18 | 17 | | let $acc0 = 0 |
---|
19 | 18 | | func $f0_1 ($a,$i) = if (($i >= $s)) |
---|
20 | 19 | | then $a |
---|
21 | 20 | | else addStringEntry($a, $l[$i]) |
---|
22 | 21 | | |
---|
23 | 22 | | func $f0_2 ($a,$i) = if (($i >= $s)) |
---|
24 | 23 | | then $a |
---|
25 | | - | else throw("List size exceeds 10") |
---|
| 24 | + | else throw("List size exceeds 2") |
---|
26 | 25 | | |
---|
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) |
---|
| 26 | + | $f0_2($f0_1($f0_1($acc0, 0), 1), 2) |
---|
28 | 27 | | } |
---|
29 | 28 | | nil |
---|
30 | 29 | | } |
---|
31 | 30 | | |
---|
32 | 31 | | |
---|