tx · CzikbkX2EM2uxFbabx5BkK5WWZQTbsqBFcaufvbiipoT

3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6:  -0.01000000 Waves

2021.12.05 15:51 [1820984] smart account 3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6 > SELF 0.00000000 Waves

{ "type": 13, "id": "CzikbkX2EM2uxFbabx5BkK5WWZQTbsqBFcaufvbiipoT", "fee": 1000000, "feeAssetId": null, "timestamp": 1638708686068, "version": 2, "chainId": 84, "sender": "3MuVEuhXaTvF3ELakZksUP77a4bT8gPJtm6", "senderPublicKey": "2LizaCNygFYwGFKe34vvFHgJc4ckK7MpzRzziRNn56Cu", "proofs": [ "npPaav3mzp24yhPoosgEvDLCyfMfdkG38LjiJtA4ugFTnDFtcmmqCQz3KZ4exCpnSqqQbHsdeq84aNFZawrXzyG" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAABgAAAAAJbWFzdGVyYWRyAgAAACMzTXVXNHQxakNYSHQ4V1JzSFZMVWFyMzJFbnZKeFphUVdBeAAAAAAGbWFzdGVyCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFUPUYGSQjhSwi99Mcha5hyYJjHFzCelkk9AAAAAAVzZXBhcgIAAAAFfHx8fHwAAAAACWluY3JwcmljZQAAAAAAAAAAMgAAAAAJaW5pdHByaWNlAgAAAAYxMDAwMDAAAAAACG1hc3JlZmVlAAAAAAAAAAABAAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAdyZXFkYXRhCQAEtQAAAAIFAAAABWlkYXRhAgAAAAMtfC0EAAAABWNvbG9yAwkAAGYAAAACCQABkAAAAAEFAAAAB3JlcWRhdGEAAAAAAAAAAAEJAAGRAAAAAgUAAAAHcmVxZGF0YQAAAAAAAAAAAQIAAAABMAQAAAADdXJsAwkAAGYAAAACCQABkAAAA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cmluZ0VudHJ5AAAAAgkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAACQAAAAAAAAAAAAkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAACQAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAHQWRkcmVzcwAAAAEJAAJZAAAAAQkAAZEAAAACCQABkQAAAAIFAAAAA2FsbAAAAAAAAAAACQAAAAAAAAAAAgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIJAAGRAAAAAgUAAAADYWxsAAAAAAAAAAAJAAAAAAAAAAADBQAAAAR1bml0CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgkAAGUAAAACCAUAAAADcG10AAAABmFtb3VudAkBAAAADXBhcnNlSW50VmFsdWUAAAABBQAAAAdwYXltZW50BQAAAAR1bml0BQAAAANuaWwFAAAABHVuaXQAAAAAyFwADA==", "height": 1820984, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6uF5cWudUw3867MK5LRrCN6myCztX4v6p8kkfEqQaisf Next: qT5ijRU8RdYySPanReDugCW7fLuroSSkV1MXfXRJqeg Diff:
OldNewDifferences
1717 func paint (idata) = {
1818 let callerAdress = toBase58String(i.caller.bytes)
1919 let reqdata = split(idata, "-|-")
20- let color = if (isDefined((size(reqdata) > 1)))
20+ let color = if ((size(reqdata) > 1))
2121 then reqdata[1]
2222 else "0"
23- let url = if (isDefined((size(reqdata) > 2)))
23+ let url = if ((size(reqdata) > 2))
2424 then reqdata[2]
2525 else "-"
2626 let pixxy = split(reqdata[0], separ)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let masteradr = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx"
55
66 let master = Address(base58'3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx')
77
88 let separ = "|||||"
99
1010 let incrprice = 50
1111
1212 let initprice = "100000"
1313
1414 let masrefee = 1
1515
1616 @Callable(i)
1717 func paint (idata) = {
1818 let callerAdress = toBase58String(i.caller.bytes)
1919 let reqdata = split(idata, "-|-")
20- let color = if (isDefined((size(reqdata) > 1)))
20+ let color = if ((size(reqdata) > 1))
2121 then reqdata[1]
2222 else "0"
23- let url = if (isDefined((size(reqdata) > 2)))
23+ let url = if ((size(reqdata) > 2))
2424 then reqdata[2]
2525 else "-"
2626 let pixxy = split(reqdata[0], separ)
2727 let number = min([10, size(pixxy)])
2828 let emptycommand = ["--", "--", masteradr, "0"]
2929 let newrecord = [callerAdress, initprice, color, url]
3030 func validxy (x) = match parseInt(pixxy[x]) {
3131 case a: Int =>
3232 if (if ((parseIntValue(pixxy[x]) > -1))
3333 then (1000 > parseIntValue(pixxy[x]))
3434 else false)
3535 then parseIntValue(pixxy[x])
3636 else -1
3737 case _ =>
3838 -1
3939 }
4040
4141 func getrecord (x) = match getString(pixxy[x]) {
4242 case a: String =>
4343 getStringValue(pixxy[x])
4444 case _ =>
4545 ""
4646 }
4747
4848 func command (x) = if (if ((x > (number - 1)))
4949 then true
5050 else (0 > validxy(x)))
5151 then emptycommand
5252 else if ((getrecord(x) == ""))
5353 then [pixxy[x], makeString(newrecord, separ), masteradr, initprice]
5454 else {
5555 let oldrecord = split(getStringValue(pixxy[x]), separ)
5656 let price = parseIntValue(oldrecord[1])
5757 let receiver = oldrecord[0]
5858 [pixxy[x], makeString([callerAdress, toString(fraction(price, (100 + incrprice), 100)), color, url], separ), receiver, toString(price)]
5959 }
6060
6161 let all = [command(0), command(1), command(2), command(3), command(4), command(5), command(6), command(7), command(8), command(9)]
6262 let payment = toString((((((((((parseIntValue(all[0][3]) + parseIntValue(all[1][3])) + parseIntValue(all[2][3])) + parseIntValue(all[3][3])) + parseIntValue(all[4][3])) + parseIntValue(all[5][3])) + parseIntValue(all[6][3])) + parseIntValue(all[7][3])) + parseIntValue(all[8][3])) + parseIntValue(all[9][3])))
6363 let pmt = if ((size(i.payments) == 1))
6464 then i.payments[0]
6565 else throw(("Attached payment is required: " + payment))
6666 if (isDefined(pmt.assetId))
6767 then throw("works with waves only")
6868 else if ((parseIntValue(payment) > pmt.amount))
6969 then throw(((("you give: " + toString(pmt.amount)) + ", but deal needs: ") + payment))
7070 else $Tuple2([StringEntry(all[0][0], all[0][1]), ScriptTransfer(Address(fromBase58String(all[0][2])), parseIntValue(all[0][3]), unit), StringEntry(all[1][0], all[1][1]), ScriptTransfer(Address(fromBase58String(all[1][2])), parseIntValue(all[1][3]), unit), StringEntry(all[2][0], all[2][1]), ScriptTransfer(Address(fromBase58String(all[2][2])), parseIntValue(all[2][3]), unit), StringEntry(all[3][0], all[3][1]), ScriptTransfer(Address(fromBase58String(all[3][2])), parseIntValue(all[3][3]), unit), StringEntry(all[4][0], all[4][1]), ScriptTransfer(Address(fromBase58String(all[4][2])), parseIntValue(all[4][3]), unit), StringEntry(all[5][0], all[5][1]), ScriptTransfer(Address(fromBase58String(all[5][2])), parseIntValue(all[5][3]), unit), StringEntry(all[6][0], all[6][1]), ScriptTransfer(Address(fromBase58String(all[6][2])), parseIntValue(all[6][3]), unit), StringEntry(all[7][0], all[7][1]), ScriptTransfer(Address(fromBase58String(all[7][2])), parseIntValue(all[7][3]), unit), StringEntry(all[8][0], all[8][1]), ScriptTransfer(Address(fromBase58String(all[8][2])), parseIntValue(all[8][3]), unit), StringEntry(all[9][0], all[9][1]), ScriptTransfer(Address(fromBase58String(all[9][2])), parseIntValue(all[9][3]), unit), ScriptTransfer(i.caller, (pmt.amount - parseIntValue(payment)), unit)], unit)
7171 }
7272
7373

github/deemru/w8io/169f3d6 
35.82 ms