tx · AmA6T9GqiqKNdUWgEDbt5v5JZLHnLdDLJqZQWkSU9m7b 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN: -0.01000000 Waves 2021.12.03 20:53 [1818430] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves
{ "type": 13, "id": "AmA6T9GqiqKNdUWgEDbt5v5JZLHnLdDLJqZQWkSU9m7b", "fee": 1000000, "feeAssetId": null, "timestamp": 1638554046303, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "2C7Jm6kMwPwfXBjZWd6AKwpkBtot8AYA3f4j9KRgn653prFdLyC1XzrLiT6484NfyzMgUgiTDXGiRyzP6Cjiu2fW" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyAgAAACMzTXVXNHQxakNYSHQ4V1JzSFZMVWFyMzJFbnZKeFphUVdBeAAAAAAFc2VwYXICAAAABXx8fHx8AAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwaXh4eQkABLUAAAACBQAAAAVpZGF0YQUAAAAFc2VwYXIEAAAAB3JlY29yZHMFAAAAA25pbAoBAAAAB3ZhbGlkeHkAAAABAAAAAXgEAAAAByRtYXRjaDAJAAS2AAAAAQkAAZEAAAACBQAAAAVwaXh4eQUAAAABeAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwAwMJAABmAAAAAgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAABXBpeHh5BQAAAAF4AP//////////CQAAZgAAAAIAAAAAAAAAA+gJAQAAAA1wYXJzZUludFZhbHVlAAA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A2FsbAkABEwAAAACBQAAAANyZXMFAAAAA25pbAkABRQAAAACCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAAAAAAAAAAAAAAJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAEAAAAAAAAAAAAFAAAAA25pbAUAAAAEdW5pdAAAAABNYkFj", "height": 1818430, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Dw5RnSGvs7v8jz76KMewNAS473Fwxx6hW7uaJFvmDgso Next: TQKTJ8wgKfTtVbLRFw36MGWQk6d3oaSAs3awBvXMk9e Diff:
Old | New | Differences | |
---|---|---|---|
39 | 39 | ||
40 | 40 | let x = 0 | |
41 | 41 | let res = makerecord(x) | |
42 | - | $Tuple2([StringEntry(res[0], res[1])], unit) | |
42 | + | let all = [res] | |
43 | + | $Tuple2([StringEntry(all[0][0], all[1][0])], unit) | |
43 | 44 | } | |
44 | 45 | ||
45 | 46 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let master = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx" | |
5 | 5 | ||
6 | 6 | let separ = "|||||" | |
7 | 7 | ||
8 | 8 | @Callable(i) | |
9 | 9 | func paint (idata) = { | |
10 | 10 | let callerAdress = toBase58String(i.caller.bytes) | |
11 | 11 | let pixxy = split(idata, separ) | |
12 | 12 | let records = nil | |
13 | 13 | func validxy (x) = match parseInt(pixxy[x]) { | |
14 | 14 | case a: Int => | |
15 | 15 | if (if ((parseIntValue(pixxy[x]) > -1)) | |
16 | 16 | then (1000 > parseIntValue(pixxy[x])) | |
17 | 17 | else false) | |
18 | 18 | then parseInt(pixxy[x]) | |
19 | 19 | else false | |
20 | 20 | case _ => | |
21 | 21 | false | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | func getrecord (x) = match getString(pixxy[x]) { | |
25 | 25 | case a: String => | |
26 | 26 | a | |
27 | 27 | case _ => | |
28 | 28 | false | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | func makerecord (x) = if ((validxy(x) == false)) | |
32 | 32 | then ["--", "--"] | |
33 | 33 | else if ((getrecord(x) == false)) | |
34 | 34 | then [pixxy[x], makeString([callerAdress, "100", "color", "url"], separ)] | |
35 | 35 | else { | |
36 | 36 | let price = (parseIntValue(split(getStringValue(pixxy[x]), separ)[1]) + 100) | |
37 | 37 | [pixxy[x], makeString([callerAdress, toString(price), "color", "url"], separ)] | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | let x = 0 | |
41 | 41 | let res = makerecord(x) | |
42 | - | $Tuple2([StringEntry(res[0], res[1])], unit) | |
42 | + | let all = [res] | |
43 | + | $Tuple2([StringEntry(all[0][0], all[1][0])], unit) | |
43 | 44 | } | |
44 | 45 | ||
45 | 46 |
github/deemru/w8io/026f985 22.74 ms ◑