tx · GN8fXwkRt4e1c7KNwFo8LwtSNYmyorwwLCmDjrZCiUAp

3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN:  -0.01000000 Waves

2021.12.04 16:24 [1819581] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves

{ "type": 13, "id": "GN8fXwkRt4e1c7KNwFo8LwtSNYmyorwwLCmDjrZCiUAp", "fee": 1000000, "feeAssetId": null, "timestamp": 1638624261541, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "64ZjhP2JRG2bPb47meZ5vLb16eWJoYqJAJo6e5UCeoZk5hnJQZSu61rUfg1TFyKVh3sHF9kUPmS2dAijjFAWHX2Y" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAABAAAAAWkBAAAABXBhaW50AAAAAQAAAAVpZGF0YQQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXBpeHh5CQAEtQAAAAIFAAAABWlkYXRhBQAAAAVzZXBhcgQAAAAGbnVtYmVyCQABkAAAAAEFAAAABXBpeHh5BAAAAAdyZWNvcmRzBQAAAANuaWwKAQAAAAd2YWxpZHh5AAAAAQAAAAF4BAAAAAckbWF0Y2gwCQAEtgAAAAEJAAGRAAAAAgUAAAAFcGl4eHkFAAAAAXgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAMDCQAAZgAAAAIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAAVwaXh4eQUAAAABe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WUAAAABCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAADAAAAAAAAAAADBQAAAAR1bml0CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAQAAAAAAAAAAAAJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAQAAAAAAAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwUAAAAGbWFzdGVyCQEAAAANcGFyc2VJbnRWYWx1ZQAAAAEJAAGRAAAAAgkAAZEAAAACBQAAAANhbGwAAAAAAAAAAAQAAAAAAAAAAAMFAAAABHVuaXQFAAAAA25pbAUAAAAEdW5pdAAAAACCJy6a", "height": 1819581, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 846ht8tYfcFxxFLu5f2ccRpuxsJ4bsVWXpXct7JJ8Asa Next: DN4iW24vYvaAvA2g1Dzy9qo3E9D34Zir9FZFm3HNWDR9 Diff:
OldNewDifferences
3131
3232 func makerecord (x) = if ((x > (number - 1)))
3333 then ["--", "--", "--", "--"]
34- else ["good", "good", "--", "100"]
34+ else if ((validxy(x) == false))
35+ then ["--", "--", "--", "--"]
36+ else ["ok", "--", "--", "--"]
3537
3638 let payment = 0
3739 let all = [makerecord(0), makerecord(1), makerecord(2), makerecord(3), makerecord(4)]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let master = Address(base58'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
3232 func makerecord (x) = if ((x > (number - 1)))
3333 then ["--", "--", "--", "--"]
34- else ["good", "good", "--", "100"]
34+ else if ((validxy(x) == false))
35+ then ["--", "--", "--", "--"]
36+ else ["ok", "--", "--", "--"]
3537
3638 let payment = 0
3739 let all = [makerecord(0), makerecord(1), makerecord(2), makerecord(3), makerecord(4)]
3840 $Tuple2([StringEntry(all[0][0], all[0][1]), ScriptTransfer(master, parseIntValue(all[0][3]), unit), StringEntry(all[1][0], all[1][1]), ScriptTransfer(master, parseIntValue(all[1][3]), unit), StringEntry(all[2][0], all[2][1]), ScriptTransfer(master, parseIntValue(all[2][3]), unit), StringEntry(all[3][0], all[3][1]), ScriptTransfer(master, parseIntValue(all[3][3]), unit), StringEntry(all[4][0], all[4][1]), ScriptTransfer(master, parseIntValue(all[4][3]), unit)], unit)
3941 }
4042
4143

github/deemru/w8io/026f985 
25.74 ms