tx · Dw5RnSGvs7v8jz76KMewNAS473Fwxx6hW7uaJFvmDgso

3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN:  -0.01000000 Waves

2021.12.03 20:46 [1818423] smart account 3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN > SELF 0.00000000 Waves

{ "type": 13, "id": "Dw5RnSGvs7v8jz76KMewNAS473Fwxx6hW7uaJFvmDgso", "fee": 1000000, "feeAssetId": null, "timestamp": 1638553630377, "version": 2, "chainId": 84, "sender": "3N377MSFzFdwxW97ENpfqfZLYSnGzSMWvNN", "senderPublicKey": "3TJhvM5a7VSAiRyvEVwygRkiPC9ow5nM4LQ252H4vxWK", "proofs": [ "51R9ThsriuVHWYNy9dAztEHYuo2qcYnBHXkEyqF1zYofYHY5Y5vH1WyFPFkoTp9am3EmYBmUXuhTqtg6qYyJChys" ], "script": "base64:AAIFAAAAAAAAAAcIAhIDCgEIAAAAAgAAAAAGbWFzdGVyAgAAACMzTXVXNHQxakNYSHQ4V1JzSFZMVWFyMzJFbnZKeFphUVdBeAAAAAAFc2VwYXICAAAABXx8fHx8AAAAAQAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAADGNhbGxlckFkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwaXh4eQkABLUAAAACBQAAAAVpZGF0YQUAAAAFc2VwYXIEAAAAB3JlY29yZHMFAAAAA25pbAoBAAAAB3ZhbGlkeHkAAAABAAAAAXgEAAAAByRtYXRjaDAJAAS2AAAAAQkAAZEAAAACBQAAAAVwaXh4eQUAAAABeAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwAwMJAABmAAAAAgkBAAAADXBhcnNlSW50VmFsdWUAAAABCQABkQAAAAIFAAAABXBpeHh5BQAAAAF4AP//////////CQAAZgAAAAIAAAAAAAAAA+gJAQAAAA1wYXJzZUludFZhbHVlAAAAAQkAAZ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ABEwAAAACCQEAAAALU3RyaW5nRW50cnkAAAACCQABkQAAAAIFAAAAA3JlcwAAAAAAAAAAAAkAAZEAAAACBQAAAANyZXMAAAAAAAAAAAEFAAAAA25pbAUAAAAEdW5pdAAAAACbNvOA", "height": 1818423, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CNnzQaBHNRiW3JUtG5zPncmtU8Hh7woDo7WoAubm6Tt7 Next: AmA6T9GqiqKNdUWgEDbt5v5JZLHnLdDLJqZQWkSU9m7b Diff:
OldNewDifferences
77
88 @Callable(i)
99 func paint (idata) = {
10- let maxi = 1
11- let pixi = 0
1210 let callerAdress = toBase58String(i.caller.bytes)
1311 let pixxy = split(idata, separ)
14- let mess = ((((((master + separ) + "1000000") + separ) + "0") + separ) + "url")
15- func isvalidxy (x) = match parseInt(pixxy[x]) {
12+ let records = nil
13+ func validxy (x) = match parseInt(pixxy[x]) {
1614 case a: Int =>
17- parseInt(pixxy[x])
15+ if (if ((parseIntValue(pixxy[x]) > -1))
16+ then (1000 > parseIntValue(pixxy[x]))
17+ else false)
18+ then parseInt(pixxy[x])
19+ else false
1820 case _ =>
1921 false
2022 }
2628 false
2729 }
2830
29- if ((isvalidxy(0) == false))
30- then throw("not correct coord")
31- else {
32- let xycoord = parseIntValue(pixxy[0])
33- if (if ((xycoord > -1))
34- then (1000 > xycoord)
35- else false)
36- then if ((getrecord(0) == false))
37- then $Tuple2([StringEntry(toString(xycoord), mess)], unit)
38- else throw("exists")
39- else throw("out of range")
40- }
31+ func makerecord (x) = if ((validxy(x) == false))
32+ then ["--", "--"]
33+ else if ((getrecord(x) == false))
34+ then [pixxy[x], makeString([callerAdress, "100", "color", "url"], separ)]
35+ else {
36+ let price = (parseIntValue(split(getStringValue(pixxy[x]), separ)[1]) + 100)
37+[pixxy[x], makeString([callerAdress, toString(price), "color", "url"], separ)]
38+ }
39+
40+ let x = 0
41+ let res = makerecord(x)
42+ $Tuple2([StringEntry(res[0], res[1])], unit)
4143 }
4244
4345
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let master = "3MuW4t1jCXHt8WRsHVLUar32EnvJxZaQWAx"
55
66 let separ = "|||||"
77
88 @Callable(i)
99 func paint (idata) = {
10- let maxi = 1
11- let pixi = 0
1210 let callerAdress = toBase58String(i.caller.bytes)
1311 let pixxy = split(idata, separ)
14- let mess = ((((((master + separ) + "1000000") + separ) + "0") + separ) + "url")
15- func isvalidxy (x) = match parseInt(pixxy[x]) {
12+ let records = nil
13+ func validxy (x) = match parseInt(pixxy[x]) {
1614 case a: Int =>
17- parseInt(pixxy[x])
15+ if (if ((parseIntValue(pixxy[x]) > -1))
16+ then (1000 > parseIntValue(pixxy[x]))
17+ else false)
18+ then parseInt(pixxy[x])
19+ else false
1820 case _ =>
1921 false
2022 }
2123
2224 func getrecord (x) = match getString(pixxy[x]) {
2325 case a: String =>
2426 a
2527 case _ =>
2628 false
2729 }
2830
29- if ((isvalidxy(0) == false))
30- then throw("not correct coord")
31- else {
32- let xycoord = parseIntValue(pixxy[0])
33- if (if ((xycoord > -1))
34- then (1000 > xycoord)
35- else false)
36- then if ((getrecord(0) == false))
37- then $Tuple2([StringEntry(toString(xycoord), mess)], unit)
38- else throw("exists")
39- else throw("out of range")
40- }
31+ func makerecord (x) = if ((validxy(x) == false))
32+ then ["--", "--"]
33+ else if ((getrecord(x) == false))
34+ then [pixxy[x], makeString([callerAdress, "100", "color", "url"], separ)]
35+ else {
36+ let price = (parseIntValue(split(getStringValue(pixxy[x]), separ)[1]) + 100)
37+[pixxy[x], makeString([callerAdress, toString(price), "color", "url"], separ)]
38+ }
39+
40+ let x = 0
41+ let res = makerecord(x)
42+ $Tuple2([StringEntry(res[0], res[1])], unit)
4143 }
4244
4345

github/deemru/w8io/026f985 
29.57 ms