tx · BXytkJEP4K29dKBUc1usZ7yqjfGqyxyGLMAQi9GjqZZc

3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6:  -0.01000000 Waves

2021.12.04 17:08 [1819633] smart account 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6 > SELF 0.00000000 Waves

{ "type": 13, "id": "BXytkJEP4K29dKBUc1usZ7yqjfGqyxyGLMAQi9GjqZZc", "fee": 1000000, "feeAssetId": null, "timestamp": 1638626910113, "version": 2, "chainId": 84, "sender": "3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6", "senderPublicKey": "2LizaCNygFYwGFKe34vvFHgJc4ckK7MpzRzziRNn56Cu", "proofs": [ "4xbLvpU9tZoyCExueEjJAYd2tcfBctyz23c2FcQQw9iwNcr6JmX9bHERa8HDpK46L3PuPoGrm6Hg7Jvi95nKp4sq" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAABAAAAAWkBAAAABXBhaW50AAAAAQAAAAVpZGF0YQQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXBpeHh5CQAEtQAAAAIFAAAABWlkYXRhBQAAAAVzZXBhcgQAAAAGbnVtYmVyCQABlwAAAAEJAARMAAAAAgAAAAAAAAAABQkABEwAAAACCQABkAAAAAEFAAAABXBpeHh5BQAAAANuaWwEAAAAB3JlY29yZHMFAAAAA25pbAoBAAAAB3ZhbGlkeHkAAAABAAAAAXgEAAAAByRtYXRjaDAJAAS2AAAAAQkAAZEAAAACBQAAAAVwaXh4eQUAAAABeAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwAwMJAABmAAAAAgkBAAAADXBhcnNlSW50Vm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AAAAAAAAAAwUAAAAEdW5pdAUAAAADbmlsBQAAAAR1bml0AAAAACEmp9E=", "height": 1819633, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3EsNoqVdat6ovLaYiJLSYqzvzQQdMRGVPUZDek59C2eE Next: 2jz8E7xVCf3sphJsWUzQxdB96taAquTVWk7p2DWs9isy Diff:
OldNewDifferences
5454 if (isDefined(pmt.assetId))
5555 then throw("works with waves only")
5656 else if ((payment > pmt.amount))
57- then throw(("need more money: " + toString(payment)))
57+ then throw(((("you give: " + toString(pmt.amount)) + "deal needs: ") + toString(payment)))
5858 else {
5959 let all = [makerecord(0), makerecord(1), makerecord(2), makerecord(3), makerecord(4)]
6060 $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)
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 = min([5, 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 ["--", "--", "--", "0"]
3434 else if ((validxy(x) == false))
3535 then ["--", "--", "--", "0"]
3636 else if ((getrecord(x) == false))
3737 then [pixxy[x], makeString([callerAdress, "100", "color", "url"], separ), "", "100"]
3838 else {
3939 let price = parseIntValue(split(getStringValue(pixxy[x]), separ)[1])
4040 [pixxy[x], makeString([callerAdress, toString((price + 100)), "color", "url"], separ), "", toString(price)]
4141 }
4242
4343 func paymentforpix (x) = match parseInt(split(getStringValue(pixxy[x]), separ)[1]) {
4444 case a: Int =>
4545 parseIntValue(split(getStringValue(pixxy[x]), separ)[1])
4646 case _ =>
4747 0
4848 }
4949
5050 let pmt = if ((size(i.payments) == 1))
5151 then i.payments[0]
5252 else throw("Attached payment is required")
5353 let payment = ((((paymentforpix(0) + paymentforpix(1)) + paymentforpix(2)) + paymentforpix(3)) + paymentforpix(4))
5454 if (isDefined(pmt.assetId))
5555 then throw("works with waves only")
5656 else if ((payment > pmt.amount))
57- then throw(("need more money: " + toString(payment)))
57+ then throw(((("you give: " + toString(pmt.amount)) + "deal needs: ") + toString(payment)))
5858 else {
5959 let all = [makerecord(0), makerecord(1), makerecord(2), makerecord(3), makerecord(4)]
6060 $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)
6161 }
6262 }
6363
6464

github/deemru/w8io/169f3d6 
30.38 ms