tx · 4jbx8Zbz1J86PgbLdD5AFjwHnC1Rg86AsCDk8j98k4rw 3MwSJhsm3YngKUPgEMsjBNuq5JaETsywtcD: -0.00500000 Waves 2022.08.02 14:19 [2166802] smart account 3MwSJhsm3YngKUPgEMsjBNuq5JaETsywtcD > SELF 0.00000000 Waves
{ "type": 13, "id": "4jbx8Zbz1J86PgbLdD5AFjwHnC1Rg86AsCDk8j98k4rw", "fee": 500000, "feeAssetId": null, "timestamp": 1659439198096, "version": 2, "chainId": 84, "sender": "3MwSJhsm3YngKUPgEMsjBNuq5JaETsywtcD", "senderPublicKey": "DuG16HmDLNnqp4eX1MeM1DX5DuWxFCARi1TAXvrekhGb", "proofs": [ "4ShkAeBPjyjfy7zhyJoca1XCLduoE43UnJxNiR4RsJQ4fxtbWSATCbivxrZXdTWYZ3KP47L41icU45nki24xkkMt" ], "script": "base64:AAIFAAAAAAAAABQIAhIECgIBARIECgIECBIECgIICAAAABcAAAAADVBBWU1FTlRfQVNTRVQBAAAAIK2dSBaFkXln78NKeoaZ0d1Q6QVJPOT+QERHjOGDxML0AAAAAAxSRVdBUkRfQVNTRVQBAAAAIC03E4HTJDddn+FvdtPRD5PvLCz03YmtXEpW6HzJAXIbAAAAAAthZG1pblB1YktleQEAAAAgqLWmf98toNE9vqPG9aON6EpqB9vXYJJsZXUlC8eDPgUAAAAADlBBWU1FTlRfQU1PVU5UAAAAAAAAD0JAAAAAAAZwaXhlbHMFAAAADFJFV0FSRF9BU1NFVAAAAAAEeE1JTgAAAAAAAAAAAAAAAAAEeE1BWAAAAAAAAAAEsQAAAAAEeU1JTgAAAAAAAAAAAAAAAAAEeU1BWAAAAAAAAAACWQAAAAANUkVXQVJEX0FNT1VOVAAAAAAABfXhAAAAAAAMU1RBUlRfSEVJR0hUAAAAAAAAINEjAAAAAApFTkRfSEVJR0hUCQAAZAAAAAIFAAAADFNUQVJUX0hFSUdIVAkAAGgAAAACAAAAAAAAAAWgAAAAAAAAAAAOAAAAAAdNQVhFQUN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xsZXQhCQAAAgAAAAECAAAAEGFsbCBzb2xkLiB0aGFueC4JAAACAAAAAQIAAAALd3JvbmcgY29sb3IJAAACAAAAAQIAAAAcZ2FtZSBpcyBub3QgYWN0aXZlIHJpZ2h0IG5vdwAAAAAOL9im", "height": 2166802, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5dTRutLZtGeqSQGHR53tzMy7SRjAPsJ9WhAFuy6RJMMX Next: 24TitN355UTRJLtxJtQ3Y9zY85VMutQKTSn8JSYxdfXE Diff:
Old | New | Differences | |
---|---|---|---|
80 | 80 | ||
81 | 81 | @Callable(x) | |
82 | 82 | func coordinates (G,H) = { | |
83 | - | let | |
84 | - | let | |
85 | - | let | |
86 | - | let | |
87 | - | let | |
88 | - | let | |
89 | - | let | |
90 | - | let C = valueOrErrorMessage(parseInt( | |
91 | - | if (if (if ((height > | |
92 | - | then ( | |
83 | + | let E = valueOrElse(getBoolean(this, q), true) | |
84 | + | let I = (s + t) | |
85 | + | let J = ((((toString(s) + "_") + toString(I)) + "_") + toString(u)) | |
86 | + | let K = valueOrElse(getString(this, p), J) | |
87 | + | let L = split(K, "_") | |
88 | + | let M = valueOrErrorMessage(parseInt(L[0]), "int_str err") | |
89 | + | let N = valueOrErrorMessage(parseInt(L[1]), "int_str err") | |
90 | + | let C = valueOrErrorMessage(parseInt(L[2]), "int_str err") | |
91 | + | if (if (if ((height > M)) | |
92 | + | then (N > height) | |
93 | 93 | else false) | |
94 | - | then | |
94 | + | then E | |
95 | 95 | else false) | |
96 | 96 | then { | |
97 | - | let | |
98 | - | if ( | |
97 | + | let O = containsElement(v, G) | |
98 | + | if (O) | |
99 | 99 | then { | |
100 | - | let | |
101 | - | let | |
102 | - | let | |
103 | - | let | |
104 | - | if (if ((( | |
100 | + | let P = toBase58String(x.caller.bytes) | |
101 | + | let Q = split(H, "_") | |
102 | + | let R = valueOrElse(parseInt(Q[0]), 0) | |
103 | + | let S = valueOrElse(parseInt(Q[1]), 0) | |
104 | + | if (if (((R % 8) != 0)) | |
105 | 105 | then true | |
106 | - | else (( | |
106 | + | else ((S % 8) != 0)) | |
107 | 107 | then throw("not cool.") | |
108 | 108 | else { | |
109 | - | let U = ((toString(S) + "_") + toString(T)) | |
110 | - | let V = (((((Q + "_") + U) + "_c") + "_") + toString(C)) | |
111 | - | let W = ((Q + "_count") + toString(C)) | |
112 | - | let X = ("pixels_count" + toString(C)) | |
109 | + | let T = ((toString(R) + "_") + toString(S)) | |
110 | + | let U = (((((P + "_") + T) + "_c") + "_") + toString(C)) | |
111 | + | let V = ((P + "_count") + toString(C)) | |
112 | + | let W = ("pixels_count" + toString(C)) | |
113 | + | let X = valueOrElse(getInteger(this, V), 0) | |
113 | 114 | let Y = valueOrElse(getInteger(this, W), 0) | |
114 | - | let Z = valueOrElse(getInteger(this, X), 0) | |
115 | - | if ((n >= Z)) | |
116 | - | then if ((m >= Y)) | |
117 | - | then if (if (if (if ((S >= f)) | |
118 | - | then (g > S) | |
115 | + | if ((n >= Y)) | |
116 | + | then if ((m >= X)) | |
117 | + | then if (if (if (if ((R >= f)) | |
118 | + | then (g > R) | |
119 | 119 | else false) | |
120 | - | then ( | |
120 | + | then (S >= h) | |
121 | 121 | else false) | |
122 | - | then (i > | |
122 | + | then (i > S) | |
123 | 123 | else false) | |
124 | 124 | then if (w(x)) | |
125 | - | then [IntegerEntry(W, (Y + 1)), | |
125 | + | then [IntegerEntry(V, (X + 1)), IntegerEntry(W, (Y + 1)), StringEntry(U, G), ScriptTransfer(x.caller, j, e)] | |
126 | 126 | else throw("wrong payment amount or asset") | |
127 | 127 | else throw("out of context") | |
128 | 128 | else throw((("max " + toString(m)) + " pixels for each wallet!")) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh' | |
5 | 5 | ||
6 | 6 | let b = base58'43W4FcqA1rEpSmUGHoGiXvpSLfhadws9LS5j3SJsKxxS' | |
7 | 7 | ||
8 | 8 | let c = base58'CMa9TJH8JthRv8Uq8pZc4FSpgZ9bvpk6XRsZktUm2ivx' | |
9 | 9 | ||
10 | 10 | let d = 1000000 | |
11 | 11 | ||
12 | 12 | let e = b | |
13 | 13 | ||
14 | 14 | let f = 0 | |
15 | 15 | ||
16 | 16 | let g = 1201 | |
17 | 17 | ||
18 | 18 | let h = 0 | |
19 | 19 | ||
20 | 20 | let i = 601 | |
21 | 21 | ||
22 | 22 | let j = 100000000 | |
23 | 23 | ||
24 | 24 | let k = 2150691 | |
25 | 25 | ||
26 | 26 | let l = (k + (1440 * 14)) | |
27 | 27 | ||
28 | 28 | let m = 1000 | |
29 | 29 | ||
30 | 30 | let n = 2250000000000 | |
31 | 31 | ||
32 | 32 | let o = "activeSession" | |
33 | 33 | ||
34 | 34 | let p = "activeBlock" | |
35 | 35 | ||
36 | 36 | let q = "isOpen" | |
37 | 37 | ||
38 | 38 | let r = "shutDownReason" | |
39 | 39 | ||
40 | 40 | let s = 2166753 | |
41 | 41 | ||
42 | 42 | let t = (1440 * 7) | |
43 | 43 | ||
44 | 44 | let u = 1 | |
45 | 45 | ||
46 | 46 | let v = ["000", "fff", "000000", "ffffff", "FF0200", "800080", "FF00FF", "008001", "FEFF00", "020080", "0800FF", "183937", "09FEFF", "7076E9", "C0C0C0", "C3103B", "ff0200", "ff00ff", "feff00", "0800ff", "09feff", "7076e9", "c0c0c0", "c3103b"] | |
47 | 47 | ||
48 | 48 | func w (x) = { | |
49 | 49 | let y = a | |
50 | 50 | if ((size(x.payments) == 0)) | |
51 | 51 | then throw("Payment not attached") | |
52 | 52 | else { | |
53 | 53 | let z = x.payments[0] | |
54 | 54 | let A = z.assetId | |
55 | 55 | if ($isInstanceOf(A, "ByteVector")) | |
56 | 56 | then { | |
57 | 57 | let B = A | |
58 | 58 | if ((B == y)) | |
59 | 59 | then (z.amount == 1000000) | |
60 | 60 | else false | |
61 | 61 | } | |
62 | 62 | else throw("Wrong payment asset") | |
63 | 63 | } | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | @Callable(x) | |
68 | 68 | func activeSession (C,D) = if ((c != x.callerPublicKey)) | |
69 | 69 | then throw("you can not") | |
70 | 70 | else [IntegerEntry(o, C), StringEntry(p, ((((toString(D) + "_") + toString((D + t))) + "_") + toString(C)))] | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | ||
74 | 74 | @Callable(x) | |
75 | 75 | func shutdown (E,F) = if ((c != x.callerPublicKey)) | |
76 | 76 | then throw("you can not") | |
77 | 77 | else [BooleanEntry(q, E), StringEntry(r, F)] | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | ||
81 | 81 | @Callable(x) | |
82 | 82 | func coordinates (G,H) = { | |
83 | - | let | |
84 | - | let | |
85 | - | let | |
86 | - | let | |
87 | - | let | |
88 | - | let | |
89 | - | let | |
90 | - | let C = valueOrErrorMessage(parseInt( | |
91 | - | if (if (if ((height > | |
92 | - | then ( | |
83 | + | let E = valueOrElse(getBoolean(this, q), true) | |
84 | + | let I = (s + t) | |
85 | + | let J = ((((toString(s) + "_") + toString(I)) + "_") + toString(u)) | |
86 | + | let K = valueOrElse(getString(this, p), J) | |
87 | + | let L = split(K, "_") | |
88 | + | let M = valueOrErrorMessage(parseInt(L[0]), "int_str err") | |
89 | + | let N = valueOrErrorMessage(parseInt(L[1]), "int_str err") | |
90 | + | let C = valueOrErrorMessage(parseInt(L[2]), "int_str err") | |
91 | + | if (if (if ((height > M)) | |
92 | + | then (N > height) | |
93 | 93 | else false) | |
94 | - | then | |
94 | + | then E | |
95 | 95 | else false) | |
96 | 96 | then { | |
97 | - | let | |
98 | - | if ( | |
97 | + | let O = containsElement(v, G) | |
98 | + | if (O) | |
99 | 99 | then { | |
100 | - | let | |
101 | - | let | |
102 | - | let | |
103 | - | let | |
104 | - | if (if ((( | |
100 | + | let P = toBase58String(x.caller.bytes) | |
101 | + | let Q = split(H, "_") | |
102 | + | let R = valueOrElse(parseInt(Q[0]), 0) | |
103 | + | let S = valueOrElse(parseInt(Q[1]), 0) | |
104 | + | if (if (((R % 8) != 0)) | |
105 | 105 | then true | |
106 | - | else (( | |
106 | + | else ((S % 8) != 0)) | |
107 | 107 | then throw("not cool.") | |
108 | 108 | else { | |
109 | - | let U = ((toString(S) + "_") + toString(T)) | |
110 | - | let V = (((((Q + "_") + U) + "_c") + "_") + toString(C)) | |
111 | - | let W = ((Q + "_count") + toString(C)) | |
112 | - | let X = ("pixels_count" + toString(C)) | |
109 | + | let T = ((toString(R) + "_") + toString(S)) | |
110 | + | let U = (((((P + "_") + T) + "_c") + "_") + toString(C)) | |
111 | + | let V = ((P + "_count") + toString(C)) | |
112 | + | let W = ("pixels_count" + toString(C)) | |
113 | + | let X = valueOrElse(getInteger(this, V), 0) | |
113 | 114 | let Y = valueOrElse(getInteger(this, W), 0) | |
114 | - | let Z = valueOrElse(getInteger(this, X), 0) | |
115 | - | if ((n >= Z)) | |
116 | - | then if ((m >= Y)) | |
117 | - | then if (if (if (if ((S >= f)) | |
118 | - | then (g > S) | |
115 | + | if ((n >= Y)) | |
116 | + | then if ((m >= X)) | |
117 | + | then if (if (if (if ((R >= f)) | |
118 | + | then (g > R) | |
119 | 119 | else false) | |
120 | - | then ( | |
120 | + | then (S >= h) | |
121 | 121 | else false) | |
122 | - | then (i > | |
122 | + | then (i > S) | |
123 | 123 | else false) | |
124 | 124 | then if (w(x)) | |
125 | - | then [IntegerEntry(W, (Y + 1)), | |
125 | + | then [IntegerEntry(V, (X + 1)), IntegerEntry(W, (Y + 1)), StringEntry(U, G), ScriptTransfer(x.caller, j, e)] | |
126 | 126 | else throw("wrong payment amount or asset") | |
127 | 127 | else throw("out of context") | |
128 | 128 | else throw((("max " + toString(m)) + " pixels for each wallet!")) | |
129 | 129 | else throw("all sold. thanx.") | |
130 | 130 | } | |
131 | 131 | } | |
132 | 132 | else throw("wrong color") | |
133 | 133 | } | |
134 | 134 | else throw("game is not active right now") | |
135 | 135 | } | |
136 | 136 | ||
137 | 137 |
github/deemru/w8io/169f3d6 36.31 ms ◑