tx · DWvWq7mzDhzeu9uMFvH9c3Vvqmt3vZu2Ct1Bc6K7n339

3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6:  -0.01000000 Waves

2021.12.05 10:58 [1820693] smart account 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6 > SELF 0.00000000 Waves

{ "type": 13, "id": "DWvWq7mzDhzeu9uMFvH9c3Vvqmt3vZu2Ct1Bc6K7n339", "fee": 1000000, "feeAssetId": null, "timestamp": 1638691112001, "version": 2, "chainId": 84, "sender": "3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6", "senderPublicKey": "2LizaCNygFYwGFKe34vvFHgJc4ckK7MpzRzziRNn56Cu", "proofs": [ "5K2ishXbCtrwU856JMy7jAk8r5TkzepauJdFkW6EKKEnugdWZA986qkWuSgmLtPZzbYmt7A3mFnHiD5QPRpmhkhB" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAABAAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAAACWluaXRwcmljZQIAAAAGMTAwMDAwAQAAAAd0b3dhdmVzAAAAAQAAAAFhAwkAAGYAAAACAAAAAAAAAAAJCQABMQAAAAEFAAAAAWEJAAEsAAAAAgkAASwAAAACAgAAAAEwAgAAAAEuBQAAAAFhCQABLAAAAAIJAAEsAAAAAgkAAS8AAAACBQAAAAFhCQAAZQAAAAIJAAExAAAAAQUAAAABYQAAAAAAAAAACAIAAAABLgkBAAAACXRha2VSaWdodAAAAAIFAAAAAWEAAAAAAAAAAAgAAAABAAAAAWkBAAAABXBhaW50AAAAAQAAAAVpZGF0YQQAAAAMY2FsbGVyQWRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXBpeHh5CQAEtQAAAAIFAAAABWlkYXRhBQAAAAVzZXBhcgQAAAAGbnVtYmVyC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AAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADBQAAAAZtYXN0ZXIJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAAAwAAAAAAAAAAAwUAAAAEdW5pdAkABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAAACQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMFAAAABm1hc3RlcgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAEAAAAAAAAAAADBQAAAAR1bml0BQAAAANuaWwFAAAABHVuaXQAAAAASPMc+g==", "height": 1820693, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7T7rnGZmw59p4gBpe8VEVTvN2CQt2oYFHbaPKT8UmCp5 Next: AD8cdBS4gbR43u5737PCaMPVfJYGMfaCuUGvATCwFTYu Diff:
OldNewDifferences
4949 [pixxy[x], makeString([callerAdress, toString((price + parseIntValue(initprice))), "color", "url"], separ), "", toString(price)]
5050 }
5151
52- let payment = ((((command(0)[3] + command(1)[3]) + command(2)[3]) + command(3)[3]) + command(4)[3])
52+ let payment = toString(((((parseIntValue(command(0)[3]) + parseIntValue(command(1)[3])) + parseIntValue(command(2)[3])) + parseIntValue(command(3)[3])) + parseIntValue(command(4)[3])))
5353 let pmt = if ((size(i.payments) == 1))
5454 then i.payments[0]
5555 else throw(((("Attached payment is required: " + towaves(payment)) + " peymentstr=") + payment))
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 let initprice = "100000"
99
1010 func towaves (a) = if ((9 > size(a)))
1111 then (("0" + ".") + a)
1212 else ((take(a, (size(a) - 8)) + ".") + takeRight(a, 8))
1313
1414
1515 @Callable(i)
1616 func paint (idata) = {
1717 let callerAdress = toBase58String(i.caller.bytes)
1818 let pixxy = split(idata, separ)
1919 let number = min([5, size(pixxy)])
2020 let records = nil
2121 let emptycommand = ["--", "--", "--", "0"]
2222 let newrecord = [callerAdress, initprice, "color", "url"]
2323 func validxy (x) = match parseInt(pixxy[x]) {
2424 case a: Int =>
2525 if (if ((parseIntValue(pixxy[x]) > -1))
2626 then (1000 > parseIntValue(pixxy[x]))
2727 else false)
2828 then parseIntValue(pixxy[x])
2929 else -1
3030 case _ =>
3131 -1
3232 }
3333
3434 func getrecord (x) = match getString(pixxy[x]) {
3535 case a: String =>
3636 getStringValue(pixxy[x])
3737 case _ =>
3838 ""
3939 }
4040
4141 func command (x) = if (if ((x > (number - 1)))
4242 then true
4343 else (0 > validxy(x)))
4444 then emptycommand
4545 else if ((getrecord(x) == ""))
4646 then [pixxy[x], makeString(newrecord, separ), "reciever=master", initprice]
4747 else {
4848 let price = parseIntValue(split(getStringValue(pixxy[x]), separ)[1])
4949 [pixxy[x], makeString([callerAdress, toString((price + parseIntValue(initprice))), "color", "url"], separ), "", toString(price)]
5050 }
5151
52- let payment = ((((command(0)[3] + command(1)[3]) + command(2)[3]) + command(3)[3]) + command(4)[3])
52+ let payment = toString(((((parseIntValue(command(0)[3]) + parseIntValue(command(1)[3])) + parseIntValue(command(2)[3])) + parseIntValue(command(3)[3])) + parseIntValue(command(4)[3])))
5353 let pmt = if ((size(i.payments) == 1))
5454 then i.payments[0]
5555 else throw(((("Attached payment is required: " + towaves(payment)) + " peymentstr=") + payment))
5656 if (isDefined(pmt.assetId))
5757 then throw("works with waves only")
5858 else if ((parseIntValue(payment) > pmt.amount))
5959 then throw(((("you give: " + towaves(toString(pmt.amount))) + ", but deal needs: ") + towaves(payment)))
6060 else {
6161 let all = [command(0), command(1), command(2), command(3), command(4)]
6262 $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)
6363 }
6464 }
6565
6666

github/deemru/w8io/169f3d6 
43.50 ms