tx · 6hBVYB2pvmpeH75aKWcEPPyYvKTb2oUkp1qYqL5GxKmT 3MwSJhsm3YngKUPgEMsjBNuq5JaETsywtcD: -0.00500000 Waves 2022.08.02 14:16 [2166798] smart account 3MwSJhsm3YngKUPgEMsjBNuq5JaETsywtcD > SELF 0.00000000 Waves
{ "type": 13, "id": "6hBVYB2pvmpeH75aKWcEPPyYvKTb2oUkp1qYqL5GxKmT", "fee": 500000, "feeAssetId": null, "timestamp": 1659438976835, "version": 2, "chainId": 84, "sender": "3MwSJhsm3YngKUPgEMsjBNuq5JaETsywtcD", "senderPublicKey": "DuG16HmDLNnqp4eX1MeM1DX5DuWxFCARi1TAXvrekhGb", "proofs": [ "2DuEDUCDGUGaAXdhQHWkhdFJs5XEKgL8yNBeeeofQGJmWSbrCjHCPdVpCZu6zXMqXhXnqRUCtZPiWcrkPLdwWjeU" ], "script": "base64:AAIFAAAAAAAAABQIAhIECgIBARIECgIECBIECgIICAAAABcAAAAADVBBWU1FTlRfQVNTRVQBAAAAIK2dSBaFkXln78NKeoaZ0d1Q6QVJPOT+QERHjOGDxML0AAAAAAxSRVdBUkRfQVNTRVQBAAAAIC03E4HTJDddn+FvdtPRD5PvLCz03YmtXEpW6HzJAXIbAAAAAAthZG1pblB1YktleQEAAAAgqLWmf98toNE9vqPG9aON6EpqB9vXYJJsZXUlC8eDPgUAAAAADlBBWU1FTlRfQU1PVU5UAAAAAAAAD0JAAAAAAAZwaXhlbHMFAAAADFJFV0FSRF9BU1NFVAAAAAAEeE1JTgAAAAAAAAAAAAAAAAAEeE1BWAAAAAAAAAAEsQAAAAAEeU1JTgAAAAAAAAAAAAAAAAAEeU1BWAAAAAAAAAACWQAAAAANUkVXQVJEX0FNT1VOVAAAAAAABfXhAAAAAAAMU1RBUlRfSEVJR0hUAAAAAAAAINEjAAAAAApFTkRfSEVJR0hUCQAAZAAAAAIFAAAADFNUQVJUX0hFSUdIVAkAAGgAAAACAAAAAAAAAAWgAAAAAAAAAAAOAAAAAAd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jb2xvcgkAAAIAAAABAgAAABxnYW1lIGlzIG5vdCBhY3RpdmUgcmlnaHQgbm93AAAAAAGaSiE=", "height": 2166798, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FGdxHFk4Z6tLRuhEBSRi8Wmu7272Xi7Gen3WeMM1MUC Next: HqbspicDkNotWLjfPktmfA9qKviod8xy8c1qeoKGh53o Diff:
Old | New | Differences | |
---|---|---|---|
84 | 84 | let J = (s + t) | |
85 | 85 | let K = (((toString(s) + "_") + toString(J)) + "_0") | |
86 | 86 | let L = valueOrElse(getString(this, p), K) | |
87 | - | if (if (if ((height > k)) | |
88 | - | then (l > height) | |
87 | + | let M = split(L, "_") | |
88 | + | let N = valueOrErrorMessage(parseInt(M[0]), "int_str err") | |
89 | + | let O = valueOrErrorMessage(parseInt(M[1]), "int_str err") | |
90 | + | let C = valueOrErrorMessage(parseInt(M[2]), "int_str err") | |
91 | + | if (if (if ((height > N)) | |
92 | + | then (O > height) | |
89 | 93 | else false) | |
90 | 94 | then I | |
91 | 95 | else false) | |
92 | 96 | then { | |
93 | - | let M = containsElement(v, G) | |
94 | - | let N = valueOrElse(getInteger(this, o), u) | |
95 | - | if (M) | |
97 | + | let P = containsElement(v, G) | |
98 | + | if (P) | |
96 | 99 | then { | |
97 | - | let | |
98 | - | let | |
99 | - | let | |
100 | - | let | |
101 | - | if (if ((( | |
100 | + | let Q = toBase58String(x.caller.bytes) | |
101 | + | let R = split(H, "_") | |
102 | + | let S = valueOrElse(parseInt(R[0]), 0) | |
103 | + | let T = valueOrElse(parseInt(R[1]), 0) | |
104 | + | if (if (((S % 8) != 0)) | |
102 | 105 | then true | |
103 | - | else (( | |
106 | + | else ((T % 8) != 0)) | |
104 | 107 | then throw("not cool.") | |
105 | 108 | else { | |
106 | - | let | |
107 | - | let | |
108 | - | let | |
109 | - | let | |
110 | - | let | |
111 | - | let | |
112 | - | if ((n >= | |
113 | - | then if ((m >= | |
114 | - | then if (if (if (if (( | |
115 | - | then (g > | |
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)) | |
113 | + | 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) | |
116 | 119 | else false) | |
117 | - | then ( | |
120 | + | then (T >= h) | |
118 | 121 | else false) | |
119 | - | then (i > | |
122 | + | then (i > T) | |
120 | 123 | else false) | |
121 | 124 | then if (w(x)) | |
122 | - | then [IntegerEntry( | |
125 | + | then [IntegerEntry(W, (Y + 1)), IntegerEntry(X, (Z + 1)), StringEntry(V, G), ScriptTransfer(x.caller, j, e)] | |
123 | 126 | else throw("wrong payment amount or asset") | |
124 | 127 | else throw("out of context") | |
125 | 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 | 83 | let I = valueOrElse(getBoolean(this, q), true) | |
84 | 84 | let J = (s + t) | |
85 | 85 | let K = (((toString(s) + "_") + toString(J)) + "_0") | |
86 | 86 | let L = valueOrElse(getString(this, p), K) | |
87 | - | if (if (if ((height > k)) | |
88 | - | then (l > height) | |
87 | + | let M = split(L, "_") | |
88 | + | let N = valueOrErrorMessage(parseInt(M[0]), "int_str err") | |
89 | + | let O = valueOrErrorMessage(parseInt(M[1]), "int_str err") | |
90 | + | let C = valueOrErrorMessage(parseInt(M[2]), "int_str err") | |
91 | + | if (if (if ((height > N)) | |
92 | + | then (O > height) | |
89 | 93 | else false) | |
90 | 94 | then I | |
91 | 95 | else false) | |
92 | 96 | then { | |
93 | - | let M = containsElement(v, G) | |
94 | - | let N = valueOrElse(getInteger(this, o), u) | |
95 | - | if (M) | |
97 | + | let P = containsElement(v, G) | |
98 | + | if (P) | |
96 | 99 | then { | |
97 | - | let | |
98 | - | let | |
99 | - | let | |
100 | - | let | |
101 | - | if (if ((( | |
100 | + | let Q = toBase58String(x.caller.bytes) | |
101 | + | let R = split(H, "_") | |
102 | + | let S = valueOrElse(parseInt(R[0]), 0) | |
103 | + | let T = valueOrElse(parseInt(R[1]), 0) | |
104 | + | if (if (((S % 8) != 0)) | |
102 | 105 | then true | |
103 | - | else (( | |
106 | + | else ((T % 8) != 0)) | |
104 | 107 | then throw("not cool.") | |
105 | 108 | else { | |
106 | - | let | |
107 | - | let | |
108 | - | let | |
109 | - | let | |
110 | - | let | |
111 | - | let | |
112 | - | if ((n >= | |
113 | - | then if ((m >= | |
114 | - | then if (if (if (if (( | |
115 | - | then (g > | |
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)) | |
113 | + | 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) | |
116 | 119 | else false) | |
117 | - | then ( | |
120 | + | then (T >= h) | |
118 | 121 | else false) | |
119 | - | then (i > | |
122 | + | then (i > T) | |
120 | 123 | else false) | |
121 | 124 | then if (w(x)) | |
122 | - | then [IntegerEntry( | |
125 | + | then [IntegerEntry(W, (Y + 1)), IntegerEntry(X, (Z + 1)), StringEntry(V, G), ScriptTransfer(x.caller, j, e)] | |
123 | 126 | else throw("wrong payment amount or asset") | |
124 | 127 | else throw("out of context") | |
125 | 128 | else throw((("max " + toString(m)) + " pixels for each wallet!")) | |
126 | 129 | else throw("all sold. thanx.") | |
127 | 130 | } | |
128 | 131 | } | |
129 | 132 | else throw("wrong color") | |
130 | 133 | } | |
131 | 134 | else throw("game is not active right now") | |
132 | 135 | } | |
133 | 136 | ||
134 | 137 |
github/deemru/w8io/169f3d6 73.85 ms ◑