tx · 3of6iNHtWsukBtDHy6pU5bBydRw1zWbDwfUVTS81bQYQ 3MqBZQSfaCVFG3HXjE7Jaeq6Z4ztMU2miPz: -0.00300000 Waves 2022.07.22 14:20 [2150909] smart account 3MqBZQSfaCVFG3HXjE7Jaeq6Z4ztMU2miPz > SELF 0.00000000 Waves
{ "type": 13, "id": "3of6iNHtWsukBtDHy6pU5bBydRw1zWbDwfUVTS81bQYQ", "fee": 300000, "feeAssetId": null, "timestamp": 1658488830450, "version": 2, "chainId": 84, "sender": "3MqBZQSfaCVFG3HXjE7Jaeq6Z4ztMU2miPz", "senderPublicKey": "HfEpHsKBiv2JxCkN63ubUCnTfKx6PqsjC6pYWHMwHXYp", "proofs": [ "35P89yy9suA4FMcURac7HBpqAHYQWSBQHo4D8fh2ZVbJWgD5FFsMPyzGZrtvj9TSTvHbmxkTYrmFdTJoEdSPzZon" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAABAAAAAADVBBWU1FTlRfQVNTRVQBAAAAIK2dSBaFkXln78NKeoaZ0d1Q6QVJPOT+QERHjOGDxML0AAAAAAxSRVdBUkRfQVNTRVQBAAAAIC03E4HTJDddn+FvdtPRD5PvLCz03YmtXEpW6HzJAXIbAAAAAA9TVEFLSU5HX0FDQ09VTlQJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVSj9n5m9ycP2zvtkCELF/VNfkeDSHwQHTgAAAAADlBBWU1FTlRfQU1PVU5UAAAAAAAAD0JAAAAAAAZwaXhlbHMFAAAADFJFV0FSRF9BU1NFVAAAAAAEeE1JTgAAAAAAAAAAAAAAAAAEeE1BWAAAAAAAAAAEsQAAAAAEeU1JTgAAAAAAAAAAAAAAAAAEeU1BWAAAAAAAAAACWQAAAAANUkVXQVJEX0FNT1VOVAAAAAAABfXhAAAAAAAMU1RBUlRfSEVJR0hUAAAAAAAAINEjAAAAAApFTkRfSEVJR0hUCQAAZAAAAAIFAAAADFNUQVJUX0hFSUdIVAkAAGgAAAACAAAAAAAAAA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HQJAAACAAAAAQIAAAAgbWF4IDEwMDAgcGl4ZWxzIGZvciBlYWNoIHdhbGxldCEJAAACAAAAAQIAAAAPYWxsIHNvbGQuIHRoYW54CQAAAgAAAAECAAAAC3dyb25nIGNvbG9yCQAAAgAAAAECAAAAHGdhbWUgaXMgbm90IGFjdGl2ZSByaWdodCBub3cAAAAAygNBYQ==", "height": 2150909, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HSsEQsvThjfWCbMyPd74wr6yY4XGYvWRNv2v2URssNVC Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh' | |
5 | + | ||
6 | + | let b = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS' | |
7 | + | ||
8 | + | let c = Address(base58'3N4s3CsjSLPaiV5ZsMHNMbPN6YNxYePkD5h') | |
9 | + | ||
10 | + | let d = 1000000 | |
11 | + | ||
12 | + | let e = b | |
13 | + | ||
14 | + | let f = 0 | |
15 | + | ||
16 | + | let g = 1201 | |
17 | + | ||
18 | + | let h = 0 | |
19 | + | ||
20 | + | let i = 601 | |
21 | + | ||
22 | + | let j = 100000000 | |
23 | + | ||
24 | + | let k = 2150691 | |
25 | + | ||
26 | + | let l = (k + (1440 * 14)) | |
27 | + | ||
28 | + | let m = 1000 | |
29 | + | ||
30 | + | let n = 2250000000000 | |
31 | + | ||
32 | + | let o = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "ff0200", "ff00ff", "feff00", "0800ff", "09feff", "7076e9", "c0c0c0", "c3103b"] | |
33 | + | ||
34 | + | func p (q) = { | |
35 | + | let r = a | |
36 | + | if ((size(q.payments) == 0)) | |
37 | + | then throw("Payment not attached") | |
38 | + | else { | |
39 | + | let s = q.payments[0] | |
40 | + | let t = s.assetId | |
41 | + | if ($isInstanceOf(t, "ByteVector")) | |
42 | + | then { | |
43 | + | let u = t | |
44 | + | if ((u == r)) | |
45 | + | then (s.amount == 1000000) | |
46 | + | else false | |
47 | + | } | |
48 | + | else throw("Wrong payment asset") | |
49 | + | } | |
50 | + | } | |
51 | + | ||
52 | + | ||
53 | + | @Callable(q) | |
54 | + | func coordinates (v,w) = if (if ((height > k)) | |
55 | + | then (l > height) | |
56 | + | else false) | |
57 | + | then { | |
58 | + | let x = containsElement(o, v) | |
59 | + | if (x) | |
60 | + | then { | |
61 | + | let y = toBase58String(q.caller.bytes) | |
62 | + | let z = split(w, "_") | |
63 | + | let A = valueOrElse(parseInt(z[0]), 0) | |
64 | + | let B = valueOrElse(parseInt(z[1]), 0) | |
65 | + | if (if (((A % 8) != 0)) | |
66 | + | then true | |
67 | + | else ((B % 8) != 0)) | |
68 | + | then throw("not cool.") | |
69 | + | else { | |
70 | + | let C = ((toString(A) + "_") + toString(B)) | |
71 | + | let D = (((y + "_") + C) + "_c") | |
72 | + | let E = (y + "_count") | |
73 | + | let F = "pixels_count" | |
74 | + | let G = valueOrElse(getInteger(this, E), 0) | |
75 | + | let H = valueOrElse(getInteger(this, F), 0) | |
76 | + | if ((n >= H)) | |
77 | + | then if ((m >= G)) | |
78 | + | then if (if (if (if ((A >= f)) | |
79 | + | then (g > A) | |
80 | + | else false) | |
81 | + | then (B >= h) | |
82 | + | else false) | |
83 | + | then (i > B) | |
84 | + | else false) | |
85 | + | then if (p(q)) | |
86 | + | then [IntegerEntry(E, (G + 1)), IntegerEntry(F, (H + 1)), StringEntry(D, v), ScriptTransfer(q.caller, j, e), ScriptTransfer(c, 250000, a)] | |
87 | + | else throw("Wrong payment amount or asset") | |
88 | + | else throw("out of context") | |
89 | + | else throw("max 1000 pixels for each wallet!") | |
90 | + | else throw("all sold. thanx") | |
91 | + | } | |
92 | + | } | |
93 | + | else throw("wrong color") | |
94 | + | } | |
95 | + | else throw("game is not active right now") | |
96 | + | ||
97 | + |
github/deemru/w8io/169f3d6 29.15 ms ◑