tx · Hsz9rLnjK8By2SdfnJwVhJgr9JcGugjMjU1DBQcvJ7py 3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o: -0.01000000 Waves 2022.04.27 16:19 [2026931] smart account 3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o > SELF 0.00000000 Waves
{ "type": 13, "id": "Hsz9rLnjK8By2SdfnJwVhJgr9JcGugjMjU1DBQcvJ7py", "fee": 1000000, "feeAssetId": null, "timestamp": 1651065605362, "version": 2, "chainId": 84, "sender": "3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o", "senderPublicKey": "E3TwKTkJRoqHq8mpKDYP1GvftP8ECfnCUT5atXuMXq53", "proofs": [ "2pqtW8NxjT9qPH4CpkJi2MrWo4jx2ckUmAxd4kS23eJ1hsckyujn6A6dhx4Jv1SLbGugR8nEXWLjWuG6Pg7WcuTD" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAC2lzUGF5bWVudE9rAAAAAQAAAAFpBAAAABFhY2NlcHRhYmxlQXNzZXRJZAEAAAAgrZ1IFoWReWfvw0p6hpnR3VDpBUk85P5AREeM4YPEwvQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAB2Fzc2V0SWQFAAAAByRtYXRjaDADCQAAAAAAAAIFAAAAB2Fzc2V0SWQFAAAAEWFjY2VwdGFibGVBc3NldElkCQAAAAAAAAIIBQAAAAFwAAAABmFtb3VudAAAAAAAAA9CQAcJAAACAAAAAQIAAAATV3JvbmcgcGF5bWVudCBhc3NldAAAAAEAAAABaQEAAAALY29v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AAABAAAAAAAAAAAAAwMDAwkAAGYAAAACBQAAAAF4BQAAAAR4TUlOCQAAZgAAAAIFAAAABHhNQVgFAAAAAXgHCQAAZgAAAAIFAAAAAXkFAAAABHlNSU4HCQAAZgAAAAIFAAAABHlNQVgFAAAAAXkHBAAAAAdpc0VtcHR5CQAEHQAAAAIFAAAABHRoaXMFAAAABndhbGxldAMJAQAAAAtpc1BheW1lbnRPawAAAAEFAAAAAWkJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgUAAAAGd2FsbGV0BQAAAAR2ZXJpCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgAAAAAABfXhAAUAAAAGcGl4ZWxzBQAAAANuaWwJAAACAAAAAQIAAAAdV3JvbmcgcGF5bWVudCBhbW91bnQgb3IgYXNzZXQJAAACAAAAAQIAAAAOb3V0IG9mIGNvbnRleHQJAAACAAAAAQIAAAALd3JvbmcgY29sb3IAAAAA+jjfwA==", "height": 2026931, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 747ELjUHo2newq1JdHQecMaE58dcbSGHkrvquk54BAUs Next: 28rTFSUciLcCD2f96df7oPmPLrhwhfxRN7uEvaLnrbgT Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | let xMAX = 1201 | |
27 | 27 | let yMIN = 0 | |
28 | 28 | let yMAX = 601 | |
29 | - | let colors = ["000", "fff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B"] | |
29 | + | let colors = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B"] | |
30 | 30 | let color = containsElement(colors, veri) | |
31 | 31 | if (color) | |
32 | 32 | then { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func isPaymentOk (i) = { | |
5 | 5 | let acceptableAssetId = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh' | |
6 | 6 | if ((size(i.payments) == 0)) | |
7 | 7 | then throw("Payment not attached") | |
8 | 8 | else { | |
9 | 9 | let p = i.payments[0] | |
10 | 10 | match p.assetId { | |
11 | 11 | case assetId: ByteVector => | |
12 | 12 | if ((assetId == acceptableAssetId)) | |
13 | 13 | then (p.amount == 1000000) | |
14 | 14 | else false | |
15 | 15 | case _ => | |
16 | 16 | throw("Wrong payment asset") | |
17 | 17 | } | |
18 | 18 | } | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | @Callable(i) | |
23 | 23 | func coordinates (veri,xy) = { | |
24 | 24 | let pixels = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS' | |
25 | 25 | let xMIN = 0 | |
26 | 26 | let xMAX = 1201 | |
27 | 27 | let yMIN = 0 | |
28 | 28 | let yMAX = 601 | |
29 | - | let colors = ["000", "fff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B"] | |
29 | + | let colors = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B"] | |
30 | 30 | let color = containsElement(colors, veri) | |
31 | 31 | if (color) | |
32 | 32 | then { | |
33 | 33 | let currentKey = toBase58String(i.caller.bytes) | |
34 | 34 | let wallet = (((currentKey + "_") + xy) + "_c") | |
35 | 35 | let splitter = split(xy, "_") | |
36 | 36 | let x = valueOrElse(parseInt(splitter[0]), 0) | |
37 | 37 | let y = valueOrElse(parseInt(splitter[1]), 0) | |
38 | 38 | if (if (if (if ((x > xMIN)) | |
39 | 39 | then (xMAX > x) | |
40 | 40 | else false) | |
41 | 41 | then (y > yMIN) | |
42 | 42 | else false) | |
43 | 43 | then (yMAX > y) | |
44 | 44 | else false) | |
45 | 45 | then { | |
46 | 46 | let isEmpty = getString(this, wallet) | |
47 | 47 | if (isPaymentOk(i)) | |
48 | 48 | then [StringEntry(wallet, veri), ScriptTransfer(i.caller, 100000000, pixels)] | |
49 | 49 | else throw("Wrong payment amount or asset") | |
50 | 50 | } | |
51 | 51 | else throw("out of context") | |
52 | 52 | } | |
53 | 53 | else throw("wrong color") | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 |
github/deemru/w8io/169f3d6 35.16 ms ◑