tx · GkRbN5G8bQjjkd6Lf6Q4YmAEqQJZEmkocrZszp6ymPKA

3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN:  -0.01000000 Waves

2021.12.03 21:30 [1818464] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves

{ "type": 13, "id": "GkRbN5G8bQjjkd6Lf6Q4YmAEqQJZEmkocrZszp6ymPKA", "fee": 1000000, "feeAssetId": null, "timestamp": 1638556329056, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "5MGjBZKHJBLCkARyrWXb9yqcGxW9BYmk6e3HDxsCLiBz9tSoe6YgcwUFgB3bnKDNR8us3UuJCyDvmRuPiVR2GQDf" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyAgAAACMzTXVXNHQxakNYSHQ4V1JzSFZMVWFyMzJFbnZKeFphUVdBeAAAAAAFc2VwYXICAAAABXx8fHx8AAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwaXh4eQkABLUAAAACBQAAAAVpZGF0YQUAAAAFc2VwYXIEAAAABm51bWJlcgkAAZAAAAABBQAAAAVwaXh4eQQAAAAHcmVjb3JkcwUAAAADbmlsCgEAAAAHdmFsaWR4eQAAAAEAAAABeAQAAAAHJG1hdGNoMAkABLYAAAABCQABkQAAAAIFAAAABXBpeHh5BQAAAAF4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDADAwkAAGYAAAACCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgUAAAAFcGl4eHkFAAAAAXgA//////////8JAABmAAA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pdAAAAADRRAkO", "height": 1818464, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CQGq16gFx6uAwDyPJCnNF9kR6k1W7NQorceeapsbEF5T Next: WxDNU3Di9PhBxhovXoYMsJ9rx6FEWQNmP4CP8MM66n5 Diff:
OldNewDifferences
2929 false
3030 }
3131
32- func makerecord (x) = {
33- let xx = min([x, (number - 1)])
34- if ((validxy(xx) == false))
35- then ["--", "--"]
36- else if ((getrecord(xx) == false))
37- then [pixxy[xx], makeString([callerAdress, "100", "color", "url"], separ)]
38- else {
39- let price = (parseIntValue(split(getStringValue(pixxy[xx]), separ)[1]) + 100)
40-[pixxy[xx], makeString([callerAdress, toString(price), "color", "url"], separ)]
41- }
42- }
32+ func makerecord (x) = if (if ((validxy(x) == false))
33+ then true
34+ else (x > (number - 1)))
35+ then ["--", "--"]
36+ else if ((getrecord(x) == false))
37+ then [pixxy[x], makeString([callerAdress, "100", "color", "url"], separ)]
38+ else {
39+ let price = (parseIntValue(split(getStringValue(pixxy[x]), separ)[1]) + 100)
40+[pixxy[x], makeString([callerAdress, toString(price), "color", "url"], separ)]
41+ }
4342
4443 let all = [makerecord(0), makerecord(1), makerecord(2), makerecord(3), makerecord(4)]
4544 $Tuple2([StringEntry(all[0][0], all[0][1]), StringEntry(all[1][0], all[1][1]), StringEntry(all[2][0], all[2][1]), StringEntry(all[3][0], all[3][1]), StringEntry(all[4][0], all[4][1])], unit)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let master = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx"
55
66 let separ = "|||||"
77
88 @Callable(i)
99 func paint (idata) = {
1010 let callerAdress = toBase58String(i.caller.bytes)
1111 let pixxy = split(idata, separ)
1212 let number = size(pixxy)
1313 let records = nil
1414 func validxy (x) = match parseInt(pixxy[x]) {
1515 case a: Int =>
1616 if (if ((parseIntValue(pixxy[x]) > -1))
1717 then (1000 > parseIntValue(pixxy[x]))
1818 else false)
1919 then parseInt(pixxy[x])
2020 else false
2121 case _ =>
2222 false
2323 }
2424
2525 func getrecord (x) = match getString(pixxy[x]) {
2626 case a: String =>
2727 a
2828 case _ =>
2929 false
3030 }
3131
32- func makerecord (x) = {
33- let xx = min([x, (number - 1)])
34- if ((validxy(xx) == false))
35- then ["--", "--"]
36- else if ((getrecord(xx) == false))
37- then [pixxy[xx], makeString([callerAdress, "100", "color", "url"], separ)]
38- else {
39- let price = (parseIntValue(split(getStringValue(pixxy[xx]), separ)[1]) + 100)
40-[pixxy[xx], makeString([callerAdress, toString(price), "color", "url"], separ)]
41- }
42- }
32+ func makerecord (x) = if (if ((validxy(x) == false))
33+ then true
34+ else (x > (number - 1)))
35+ then ["--", "--"]
36+ else if ((getrecord(x) == false))
37+ then [pixxy[x], makeString([callerAdress, "100", "color", "url"], separ)]
38+ else {
39+ let price = (parseIntValue(split(getStringValue(pixxy[x]), separ)[1]) + 100)
40+[pixxy[x], makeString([callerAdress, toString(price), "color", "url"], separ)]
41+ }
4342
4443 let all = [makerecord(0), makerecord(1), makerecord(2), makerecord(3), makerecord(4)]
4544 $Tuple2([StringEntry(all[0][0], all[0][1]), StringEntry(all[1][0], all[1][1]), StringEntry(all[2][0], all[2][1]), StringEntry(all[3][0], all[3][1]), StringEntry(all[4][0], all[4][1])], unit)
4645 }
4746
4847

github/deemru/w8io/026f985 
20.60 ms