tx · 3uZCKwLwBUGgk17hG3ABbfMvvyq7eLqTZ4ne7NoK7YJX

3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN:  -0.01000000 Waves

2021.12.03 22:47 [1818532] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves

{ "type": 13, "id": "3uZCKwLwBUGgk17hG3ABbfMvvyq7eLqTZ4ne7NoK7YJX", "fee": 1000000, "feeAssetId": null, "timestamp": 1638560816005, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "5rcEMVtRS3Q3EaVAZpGseY32KDkecnjjw2w4knqLoEaepAGFkbhTB7C8w2Cg6Qp2eogKTSAwboa4ESf6mydoynj9" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAABAAAAAWkBAAAABXBhaW50AAAAAQAAAAVpZGF0YQQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXBpeHh5CQAEtQAAAAIFAAAABWlkYXRhBQAAAAVzZXBhcgQAAAAGbnVtYmVyCQABkAAAAAEFAAAABXBpeHh5BAAAAAdyZWNvcmRzBQAAAANuaWwKAQAAAAd2YWxpZHh5AAAAAQAAAAF4BAAAAAckbWF0Y2gwCQAEtgAAAAEJAAGRAAAAAgUAAAAFcGl4eHkFAAAAAXgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAMDCQAAZgAAAAIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACBQAAAAVwaXh4eQUAAAABe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AAAEJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAAAwAAAAAAAAAAAAkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAAAwAAAAAAAAAAAQkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAAACQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAABBQAAAANuaWwFAAAABHVuaXQAAAAA42ynHg==", "height": 1818532, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F9bRKsUi97WNP3c93SqmUCXnqguj21Wf8LwDJmMNdAEc Next: 69JH8nYfBhgaXFnwdT9FsUQtZHxfxLvRNssZv5UgVQPJ Diff:
OldNewDifferences
3737 then [pixxy[x], makeString([callerAdress, "100", "color", "url"], separ), "", "100"]
3838 else {
3939 let nextprice = (parseIntValue(split(getStringValue(pixxy[x]), separ)[1]) + 100)
40-[pixxy[x], makeString([callerAdress, toString(nextprice), "color", "url"], separ)]
40+[pixxy[x], makeString([callerAdress, toString(nextprice), "color", "url"], separ), "", "0"]
4141 }
4242
4343 let payment = 0
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 ["--", "--"]
3434 else if ((validxy(x) == false))
3535 then ["--", "--"]
3636 else if ((getrecord(x) == false))
3737 then [pixxy[x], makeString([callerAdress, "100", "color", "url"], separ), "", "100"]
3838 else {
3939 let nextprice = (parseIntValue(split(getStringValue(pixxy[x]), separ)[1]) + 100)
40-[pixxy[x], makeString([callerAdress, toString(nextprice), "color", "url"], separ)]
40+[pixxy[x], makeString([callerAdress, toString(nextprice), "color", "url"], separ), "", "0"]
4141 }
4242
4343 let payment = 0
4444 let all = [makerecord(0), makerecord(1), makerecord(2), makerecord(3), makerecord(4)]
4545 $Tuple2([StringEntry(all[0][0], all[0][1]), ScriptTransfer(master, parseIntValue(all[0][3]), unit), 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)
4646 }
4747
4848

github/deemru/w8io/026f985 
23.90 ms