tx · EGPYfndVDx1uRHe1HMGzHvBgs5yFShFgYyXnWnGFFbgq 3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd: -0.10010000 Waves 2022.01.16 04:30 [1880843] smart account 3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd > SELF 0.00000000 Waves
{ "type": 13, "id": "EGPYfndVDx1uRHe1HMGzHvBgs5yFShFgYyXnWnGFFbgq", "fee": 10010000, "feeAssetId": null, "timestamp": 1642296612845, "version": 2, "chainId": 84, "sender": "3N6hQF6HBBQ5JCKB8Xs17Q61wkG3VrLvbGd", "senderPublicKey": "7Hi4o6vBstRs79NMVMjEove52dmP87RAcvNDAXN8C4Wi", "proofs": [ "2x8tqRqCSZtrizWKpBadhBXQB7zGMNJet5cMfrcNddhU9gp3DgNa21ySju9jdvqXXQpy8urmBHznKEY9UpFUdEbs" ], "script": "base64:AAIEAAAAAAAAACkIAhIFCgMBCAgSABIAEgUKAwEICBIECgIBARIHCgUBCAgICBIECgIBAQAAACUAAAAAE2dhbWVNYXN0ZXJQdWJsaWNLZXkBAAAAIIdjXkgFFtrkHsQ9EVCCVH0dcNZ4QrNMHlHueDDmJyUCAAAAAAlSU0FQVUJMSUMJAAJbAAAAAQIAAAGTYmFzZTY0Ok1JSUJJekFOQmdrcWhraUc5dzBCQVFFRkFBT0NBUkFBTUlJQkN3S0NBUUlBK0NwYnpNQktwcSs3VmFyU0RITFcwd1FTb2gyTFRiZ2wxckFoZnJ1WkdDanQ2TU80bzF2MWlMcUt5TkgzRkpzdndsTFVxbXFFN0UyV2w3TGJJUEEyNlB4TzJYQ0RmdmowT1dwN2NFSmtVQkVpeVBZQ24raXVQWFVQd3Vkb0ZnTTRXSGYwSVBiREoyTzZPZ3pRbEJCbU51Nk93cjduYUlUaUpyUEF2YWtQZ0FkbVVQdjRyT3pjdTZCUjBUOEd3c3p3cHJ2d1dabEtGNkFkMDBvbUxGRG14NjZIdkJFNTFzUkJpWElSYkpuakRobG9waXplNExv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AnR4AAAAD3NlbmRlclB1YmxpY0tleX9Bw+4=", "height": 1880843, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4DHYVU6v44pS9MUae5794QcfpYfLyG1Efr69dwADHhkn Next: AkaeEnMSGWu5rEgQnC4vueHt97UCNw9YgsdaxYQ6Rpbu Diff:
Old | New | Differences | |
---|---|---|---|
43 | 43 | func s (r) = (("G_" + toString(r)) + "_TIEAMOUNT") | |
44 | 44 | ||
45 | 45 | ||
46 | - | func t (r) = (("G_" + toString(r)) + "_ | |
46 | + | func t (r) = (("G_" + toString(r)) + "_FEEAMOUNT") | |
47 | 47 | ||
48 | 48 | ||
49 | - | func u (r) = (("G_" + toString(r)) + "_ | |
49 | + | func u (r) = (("G_" + toString(r)) + "_PLAYER") | |
50 | 50 | ||
51 | 51 | ||
52 | - | func v (r) = (("G_" + toString(r)) + "_ | |
52 | + | func v (r) = (("G_" + toString(r)) + "_PAYOUT") | |
53 | 53 | ||
54 | 54 | ||
55 | - | func w (r) = (("G_" + toString(r)) + "_ | |
55 | + | func w (r) = (("G_" + toString(r)) + "_STATE") | |
56 | 56 | ||
57 | 57 | ||
58 | - | func x (r | |
58 | + | func x (r) = (("G_" + toString(r)) + "_OFFSET") | |
59 | 59 | ||
60 | 60 | ||
61 | - | func | |
61 | + | func y (r,z) = ((("G_" + toString(r)) + "_CARDSIGNATURE_") + toString(z)) | |
62 | 62 | ||
63 | 63 | ||
64 | - | func | |
64 | + | func A (B) = (("P_" + B) + "_CURRENTGAME") | |
65 | 65 | ||
66 | 66 | ||
67 | - | func C ( | |
67 | + | func C (B) = getInteger(this, A(B)) | |
68 | 68 | ||
69 | 69 | ||
70 | - | func D (r) = getInteger(this, | |
70 | + | func D (r) = getInteger(this, q(r)) | |
71 | 71 | ||
72 | 72 | ||
73 | - | func E (r) = getInteger(this, | |
73 | + | func E (r) = getInteger(this, s(r)) | |
74 | 74 | ||
75 | 75 | ||
76 | - | func F (r) = | |
76 | + | func F (r) = getInteger(this, t(r)) | |
77 | 77 | ||
78 | 78 | ||
79 | - | func G (r | |
79 | + | func G (r) = getInteger(this, w(r)) | |
80 | 80 | ||
81 | 81 | ||
82 | - | func H (r | |
82 | + | func H (r) = getString(this, u(r)) | |
83 | 83 | ||
84 | 84 | ||
85 | - | func I (r, | |
85 | + | func I (r,z) = getString(this, y(r, z)) | |
86 | 86 | ||
87 | 87 | ||
88 | - | func O (A,P,Q) = { | |
89 | - | let R = (value(m()) + 1) | |
90 | - | let S = value(n()) | |
91 | - | [IntegerEntry(f, R), IntegerEntry(z(A), R), IntegerEntry(v(R), 1), IntegerEntry(q(R), P), IntegerEntry(s(R), Q), StringEntry(g, ((value(n()) + ",") + toString(R))), StringEntry(t(R), A)] | |
88 | + | func J (r,z) = ((("G_" + toString(r)) + "_CARD_") + toString(z)) | |
89 | + | ||
90 | + | ||
91 | + | func K (r,L,M,N,O,P) = [IntegerEntry(e, r), IntegerEntry(w(r), 0), IntegerEntry(x(r), L), StringEntry(y(r, 0), M), StringEntry(y(r, 1), N), StringEntry(y(r, 2), O), StringEntry(y(r, 3), P)] | |
92 | + | ||
93 | + | ||
94 | + | func Q (B,R,S,T) = { | |
95 | + | let U = (value(m()) + 1) | |
96 | + | let V = value(n()) | |
97 | + | [IntegerEntry(f, U), IntegerEntry(A(B), U), IntegerEntry(w(U), 1), IntegerEntry(q(U), R), IntegerEntry(s(U), S), IntegerEntry(t(U), T), StringEntry(g, ((value(n()) + ",") + toString(U))), StringEntry(u(U), B)] | |
92 | 98 | } | |
93 | 99 | ||
94 | 100 | ||
95 | - | func | |
101 | + | func W (X) = parseIntValue(split(X, "/")[0]) | |
96 | 102 | ||
97 | 103 | ||
98 | - | func | |
104 | + | func Y (Z) = if ((size(Z.payments) == 0)) | |
99 | 105 | then throw("Payment must be attached") | |
100 | - | else if ((size( | |
106 | + | else if ((size(Z.payments) == 1)) | |
101 | 107 | then { | |
102 | - | let | |
103 | - | | |
108 | + | let aa = Z.payments[0] | |
109 | + | aa.amount | |
104 | 110 | } | |
105 | 111 | else throw("There should be only one payment") | |
106 | 112 | ||
107 | 113 | ||
108 | - | func | |
114 | + | func ab (z,r,ac) = rsaVerify_16Kb(SHA256, toBytes(z), fromBase64String(split(value(I(r, ac)), " ")[0]), b) | |
109 | 115 | ||
110 | 116 | ||
111 | - | @Callable( | |
112 | - | func revealRound2 ( | |
117 | + | @Callable(Z) | |
118 | + | func revealRound2 (ad,ae,af) = if (o(Z.callerPublicKey)) | |
113 | 119 | then throw("revealRound2_FORBBIDEN") | |
114 | 120 | else { | |
115 | - | let | |
116 | - | let | |
117 | - | if (( | |
118 | - | then if (if (if ((value( | |
119 | - | then | |
121 | + | let V = value(n()) | |
122 | + | let ag = split(V, ",")[1] | |
123 | + | if ((ag == toString(ad))) | |
124 | + | then if (if (if ((value(G(ad)) == 3)) | |
125 | + | then ab(ae, ad, 2) | |
120 | 126 | else false) | |
121 | - | then | |
127 | + | then ab(af, ad, 3) | |
122 | 128 | else false) | |
123 | 129 | then { | |
124 | - | let | |
125 | - | let | |
126 | - | if (( | |
130 | + | let ah = W(split(ae, "+")[d]) | |
131 | + | let ai = W(split(af, "+")[d]) | |
132 | + | if ((ah >= ai)) | |
127 | 133 | then { | |
128 | - | let ag = value(C(aa)) | |
129 | - | let A = value(addressFromString(value(F(aa)))) | |
130 | - | [StringEntry(H(aa, 2), ab), StringEntry(H(aa, 3), ac), IntegerEntry(v(aa), 6), StringEntry(g, takeRight(S, (size(S) - (1 + size(toString(aa)))))), IntegerEntry((H(aa, 2) + "d1"), ag), IntegerEntry((H(aa, 2) + "d2"), W.fee), IntegerEntry((H(aa, 2) + "d3"), (ag + ag)), IntegerEntry((H(aa, 2) + "d4"), (ag - W.fee)), IntegerEntry((H(aa, 2) + "d5"), ((ag + ag) + (ag - W.fee))), ScriptTransfer(A, ((ag + ag) + (ag - W.fee)), unit)] | |
134 | + | let aj = value(D(ad)) | |
135 | + | let ak = value(F(ad)) | |
136 | + | let B = value(addressFromString(value(H(ad)))) | |
137 | + | [StringEntry(J(ad, 2), ae), StringEntry(J(ad, 3), af), IntegerEntry(w(ad), 6), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad)))))), ScriptTransfer(B, (((aj + ak) * 2) + aj), unit)] | |
131 | 138 | } | |
132 | - | else [StringEntry( | |
139 | + | else [StringEntry(J(ad, 2), ae), StringEntry(J(ad, 3), af), IntegerEntry(w(ad), 6), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad))))))] | |
133 | 140 | } | |
134 | 141 | else throw("One of the cards failed to be verified or game is not in state 1.") | |
135 | - | else throw(("The next game to process is " + | |
142 | + | else throw(("The next game to process is " + ag)) | |
136 | 143 | } | |
137 | 144 | ||
138 | 145 | ||
139 | 146 | ||
140 | - | @Callable( | |
147 | + | @Callable(Z) | |
141 | 148 | func war () = { | |
142 | - | let | |
143 | - | let | |
144 | - | if ((value( | |
149 | + | let B = toBase58String(Z.caller.bytes) | |
150 | + | let ad = value(C(B)) | |
151 | + | if ((value(G(ad)) != 2)) | |
145 | 152 | then throw("Game is not in correct state.") | |
146 | 153 | else { | |
147 | - | let | |
148 | - | let | |
149 | - | if (( | |
150 | - | then throw((("Payment must me same as the original bet (" + toString( | |
151 | - | else [IntegerEntry( | |
154 | + | let aj = value(D(ad)) | |
155 | + | let al = Y(Z) | |
156 | + | if ((al != aj)) | |
157 | + | then throw((("Payment must me same as the original bet (" + toString(aj)) + ")")) | |
158 | + | else [IntegerEntry(w(ad), 3), StringEntry(g, ((value(n()) + ",") + toString(ad)))] | |
152 | 159 | } | |
153 | 160 | } | |
154 | 161 | ||
155 | 162 | ||
156 | 163 | ||
157 | - | @Callable( | |
164 | + | @Callable(Z) | |
158 | 165 | func surrender () = { | |
159 | - | let | |
160 | - | let | |
161 | - | if ((value( | |
166 | + | let B = toBase58String(Z.caller.bytes) | |
167 | + | let ad = value(C(B)) | |
168 | + | if ((value(G(ad)) != 2)) | |
162 | 169 | then throw("Game is not in correct state.") | |
163 | 170 | else { | |
164 | - | let P = value(C(aa)) | |
165 | - | let S = value(n()) | |
166 | - | [IntegerEntry(v(aa), 5), ScriptTransfer(W.caller, (P / 2), unit)] | |
171 | + | let aj = value(D(ad)) | |
172 | + | let ak = value(F(ad)) | |
173 | + | let V = value(n()) | |
174 | + | [IntegerEntry(w(ad), 5), ScriptTransfer(Z.caller, (((aj + ak) + ak) / 2), unit)] | |
167 | 175 | } | |
168 | 176 | } | |
169 | 177 | ||
170 | 178 | ||
171 | 179 | ||
172 | - | @Callable( | |
173 | - | func revealRound1 ( | |
180 | + | @Callable(Z) | |
181 | + | func revealRound1 (ad,am,an) = if (o(Z.callerPublicKey)) | |
174 | 182 | then throw("revealRound1_FORBBIDEN") | |
175 | 183 | else { | |
176 | - | let | |
177 | - | let | |
178 | - | if (( | |
179 | - | then if (if (if ((value( | |
180 | - | then | |
184 | + | let V = value(n()) | |
185 | + | let ag = split(V, ",")[1] | |
186 | + | if ((ag == toString(ad))) | |
187 | + | then if (if (if ((value(G(ad)) == 1)) | |
188 | + | then ab(am, ad, 0) | |
181 | 189 | else false) | |
182 | - | then | |
190 | + | then ab(an, ad, 1) | |
183 | 191 | else false) | |
184 | 192 | then { | |
185 | - | let | |
186 | - | let | |
187 | - | if (( | |
193 | + | let ah = W(split(am, "+")[d]) | |
194 | + | let ai = W(split(an, "+")[d]) | |
195 | + | if ((ah == ai)) | |
188 | 196 | then { | |
189 | - | let | |
190 | - | let | |
191 | - | if (( | |
192 | - | then [StringEntry( | |
193 | - | else [StringEntry( | |
197 | + | let ao = value(E(ad)) | |
198 | + | let B = value(addressFromString(value(H(ad)))) | |
199 | + | if ((ao != 0)) | |
200 | + | then [StringEntry(J(ad, 0), am), StringEntry(J(ad, 1), an), IntegerEntry(w(ad), 2), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad)))))), ScriptTransfer(B, ((ao * 10) + ao), unit)] | |
201 | + | else [StringEntry(J(ad, 0), am), StringEntry(J(ad, 1), an), IntegerEntry(w(ad), 2), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad))))))] | |
194 | 202 | } | |
195 | - | else if (( | |
203 | + | else if ((ah > ai)) | |
196 | 204 | then { | |
197 | - | let ag = value(C(aa)) | |
198 | - | let A = value(addressFromString(value(F(aa)))) | |
199 | - | [StringEntry(H(aa, 0), ai), StringEntry(H(aa, 1), aj), IntegerEntry(v(aa), 4), StringEntry(g, takeRight(S, (size(S) - (1 + size(toString(aa)))))), ScriptTransfer(A, ag, unit)] | |
205 | + | let aj = value(D(ad)) | |
206 | + | let ak = value(F(ad)) | |
207 | + | let B = value(addressFromString(value(H(ad)))) | |
208 | + | [StringEntry(J(ad, 0), am), StringEntry(J(ad, 1), an), IntegerEntry(w(ad), 4), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad)))))), ScriptTransfer(B, ((aj * 2) + ak), unit)] | |
200 | 209 | } | |
201 | - | else [StringEntry( | |
210 | + | else [StringEntry(J(ad, 0), am), StringEntry(J(ad, 1), an), IntegerEntry(w(ad), 4), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad))))))] | |
202 | 211 | } | |
203 | 212 | else throw("One of the cards failed to be verified or game is not in state 1.") | |
204 | - | else throw(("The next game to process is " + | |
213 | + | else throw(("The next game to process is " + ag)) | |
205 | 214 | } | |
206 | 215 | ||
207 | 216 | ||
208 | 217 | ||
209 | - | @Callable(W) | |
210 | - | func bet (ag,ak) = { | |
211 | - | let al = toBase58String(W.caller.bytes) | |
212 | - | let ah = V(W) | |
213 | - | let P = (ag + W.fee) | |
214 | - | let Q = ak | |
215 | - | let A = toBase58String(W.caller.bytes) | |
216 | - | if ((ah != (ag + ak))) | |
218 | + | @Callable(Z) | |
219 | + | func bet (aj,ao) = { | |
220 | + | let ap = toBase58String(Z.caller.bytes) | |
221 | + | let al = Y(Z) | |
222 | + | let B = toBase58String(Z.caller.bytes) | |
223 | + | if ((al != (aj + ao))) | |
217 | 224 | then throw("normal bet + tie bet should be equal to the payment") | |
218 | - | else if (if ((value(k()) > | |
225 | + | else if (if ((value(k()) > al)) | |
219 | 226 | then true | |
220 | - | else ( | |
227 | + | else (al > value(j()))) | |
221 | 228 | then throw((((("Payment needs to be in the following interval [" + toString(value(k()))) + " ") + toString(value(j()))) + "]")) | |
222 | - | else if (( | |
229 | + | else if ((aj == 0)) | |
223 | 230 | then throw("normal bet has to be greater than 0") | |
224 | 231 | else if ((value(m()) >= value(l()))) | |
225 | 232 | then throw("No available set up games to use.") | |
226 | 233 | else { | |
227 | - | let | |
228 | - | if ($isInstanceOf( | |
234 | + | let aq = C(B) | |
235 | + | if ($isInstanceOf(aq, "Int")) | |
229 | 236 | then { | |
230 | - | let | |
231 | - | if ((4 > value( | |
232 | - | then throw((("Game " + toString( | |
233 | - | else | |
237 | + | let ar = aq | |
238 | + | if ((4 > value(G(ar)))) | |
239 | + | then throw((("Game " + toString(ar)) + " is still in progress.")) | |
240 | + | else Q(B, aj, ao, Z.fee) | |
234 | 241 | } | |
235 | - | else if ($isInstanceOf( | |
236 | - | then | |
242 | + | else if ($isInstanceOf(aq, "Unit")) | |
243 | + | then Q(B, aj, ao, Z.fee) | |
237 | 244 | else throw("Match error") | |
238 | 245 | } | |
239 | 246 | } | |
240 | 247 | ||
241 | 248 | ||
242 | 249 | ||
243 | - | @Callable( | |
244 | - | func setupGame (r, | |
250 | + | @Callable(Z) | |
251 | + | func setupGame (r,am,an,ae,af) = if (o(Z.callerPublicKey)) | |
245 | 252 | then throw("setupGame_FORBBIDEN") | |
246 | 253 | else { | |
247 | - | let | |
248 | - | if ($isInstanceOf( | |
254 | + | let aq = l() | |
255 | + | if ($isInstanceOf(aq, "Int")) | |
249 | 256 | then { | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | if ((r != | |
257 | + | let as = aq | |
258 | + | let L = (toInt(sha256((take(lastBlock.generationSignature, 16) + take(Z.transactionId, 16)))) % 2) | |
259 | + | let ad = (as + 1) | |
260 | + | if ((r != ad)) | |
254 | 261 | then throw("Wrong game number.") | |
255 | - | else if ((( | |
256 | - | then | |
257 | - | else | |
262 | + | else if (((L % 2) == 1)) | |
263 | + | then K(ad, L, am, an, ae, af) | |
264 | + | else K(ad, L, am, an, ae, af) | |
258 | 265 | } | |
259 | 266 | else throw("InitGame Required") | |
260 | 267 | } | |
261 | 268 | ||
262 | 269 | ||
263 | 270 | ||
264 | - | @Callable( | |
265 | - | func initGame ( | |
271 | + | @Callable(Z) | |
272 | + | func initGame (at,au) = if (o(Z.callerPublicKey)) | |
266 | 273 | then throw("initGame_FORBBIDEN") | |
267 | 274 | else { | |
268 | - | let | |
269 | - | if ($isInstanceOf( | |
275 | + | let aq = l() | |
276 | + | if ($isInstanceOf(aq, "Int")) | |
270 | 277 | then { | |
271 | - | let | |
278 | + | let av = aq | |
272 | 279 | throw("INIT_ALREADY_DONE") | |
273 | 280 | } | |
274 | - | else [IntegerEntry(e, 0), IntegerEntry(f, 0), IntegerEntry(h, | |
281 | + | else [IntegerEntry(e, 0), IntegerEntry(f, 0), IntegerEntry(h, at), IntegerEntry(i, au), StringEntry(g, "")] | |
275 | 282 | } | |
276 | 283 | ||
277 | 284 | ||
278 | - | @Verifier( | |
279 | - | func | |
285 | + | @Verifier(aw) | |
286 | + | func ax () = sigVerify(aw.bodyBytes, aw.proofs[0], aw.senderPublicKey) | |
280 | 287 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'A7VvRHtZro8bvGa9KAahiP9xovdKJ5hGsTjHLMa6nRPo' | |
5 | 5 | ||
6 | 6 | let b = fromBase64String("base64:MIIBIzANBgkqhkiG9w0BAQEFAAOCARAAMIIBCwKCAQIA+CpbzMBKpq+7VarSDHLW0wQSoh2LTbgl1rAhfruZGCjt6MO4o1v1iLqKyNH3FJsvwlLUqmqE7E2Wl7LbIPA26PxO2XCDfvj0OWp7cEJkUBEiyPYCn+iuPXUPwudoFgM4WHf0IPbDJ2O6OgzQlBBmNu6Owr7naITiJrPAvakPgAdmUPv4rOzcu6BR0T8GwszwprvwWZlKF6Ad00omLFDmx66HvBE51sRBiXIRbJnjDhlopize4LoR1FIrQaAu1sfs5bEHLA33jvKybne+IDawCsiINZYdPZV1WWcURC+XAFfBiYCw4PYyguxaBRHotzLc2dOsBV1HDNIjLKVoRknyt50CAwEAAQ==") | |
7 | 7 | ||
8 | 8 | let c = base58'AJRyxpsv9Z4v46eg9b5TpnVXn3DteJYPHRJSbMckYPWw' | |
9 | 9 | ||
10 | 10 | let d = 3 | |
11 | 11 | ||
12 | 12 | let e = "G_SETUPGAMESCOUNTER" | |
13 | 13 | ||
14 | 14 | let f = "G_USEDGAMESCOUNTER" | |
15 | 15 | ||
16 | 16 | let g = "G_DEALERQUEUE" | |
17 | 17 | ||
18 | 18 | let h = "G_MAXBET" | |
19 | 19 | ||
20 | 20 | let i = "G_MINBET" | |
21 | 21 | ||
22 | 22 | func j () = getInteger(this, h) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func k () = getInteger(this, i) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func l () = getInteger(this, e) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func m () = getInteger(this, f) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func n () = getString(this, g) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func o (p) = (p != a) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func q (r) = (("G_" + toString(r)) + "_BETAMOUNT") | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func s (r) = (("G_" + toString(r)) + "_TIEAMOUNT") | |
44 | 44 | ||
45 | 45 | ||
46 | - | func t (r) = (("G_" + toString(r)) + "_ | |
46 | + | func t (r) = (("G_" + toString(r)) + "_FEEAMOUNT") | |
47 | 47 | ||
48 | 48 | ||
49 | - | func u (r) = (("G_" + toString(r)) + "_ | |
49 | + | func u (r) = (("G_" + toString(r)) + "_PLAYER") | |
50 | 50 | ||
51 | 51 | ||
52 | - | func v (r) = (("G_" + toString(r)) + "_ | |
52 | + | func v (r) = (("G_" + toString(r)) + "_PAYOUT") | |
53 | 53 | ||
54 | 54 | ||
55 | - | func w (r) = (("G_" + toString(r)) + "_ | |
55 | + | func w (r) = (("G_" + toString(r)) + "_STATE") | |
56 | 56 | ||
57 | 57 | ||
58 | - | func x (r | |
58 | + | func x (r) = (("G_" + toString(r)) + "_OFFSET") | |
59 | 59 | ||
60 | 60 | ||
61 | - | func | |
61 | + | func y (r,z) = ((("G_" + toString(r)) + "_CARDSIGNATURE_") + toString(z)) | |
62 | 62 | ||
63 | 63 | ||
64 | - | func | |
64 | + | func A (B) = (("P_" + B) + "_CURRENTGAME") | |
65 | 65 | ||
66 | 66 | ||
67 | - | func C ( | |
67 | + | func C (B) = getInteger(this, A(B)) | |
68 | 68 | ||
69 | 69 | ||
70 | - | func D (r) = getInteger(this, | |
70 | + | func D (r) = getInteger(this, q(r)) | |
71 | 71 | ||
72 | 72 | ||
73 | - | func E (r) = getInteger(this, | |
73 | + | func E (r) = getInteger(this, s(r)) | |
74 | 74 | ||
75 | 75 | ||
76 | - | func F (r) = | |
76 | + | func F (r) = getInteger(this, t(r)) | |
77 | 77 | ||
78 | 78 | ||
79 | - | func G (r | |
79 | + | func G (r) = getInteger(this, w(r)) | |
80 | 80 | ||
81 | 81 | ||
82 | - | func H (r | |
82 | + | func H (r) = getString(this, u(r)) | |
83 | 83 | ||
84 | 84 | ||
85 | - | func I (r, | |
85 | + | func I (r,z) = getString(this, y(r, z)) | |
86 | 86 | ||
87 | 87 | ||
88 | - | func O (A,P,Q) = { | |
89 | - | let R = (value(m()) + 1) | |
90 | - | let S = value(n()) | |
91 | - | [IntegerEntry(f, R), IntegerEntry(z(A), R), IntegerEntry(v(R), 1), IntegerEntry(q(R), P), IntegerEntry(s(R), Q), StringEntry(g, ((value(n()) + ",") + toString(R))), StringEntry(t(R), A)] | |
88 | + | func J (r,z) = ((("G_" + toString(r)) + "_CARD_") + toString(z)) | |
89 | + | ||
90 | + | ||
91 | + | func K (r,L,M,N,O,P) = [IntegerEntry(e, r), IntegerEntry(w(r), 0), IntegerEntry(x(r), L), StringEntry(y(r, 0), M), StringEntry(y(r, 1), N), StringEntry(y(r, 2), O), StringEntry(y(r, 3), P)] | |
92 | + | ||
93 | + | ||
94 | + | func Q (B,R,S,T) = { | |
95 | + | let U = (value(m()) + 1) | |
96 | + | let V = value(n()) | |
97 | + | [IntegerEntry(f, U), IntegerEntry(A(B), U), IntegerEntry(w(U), 1), IntegerEntry(q(U), R), IntegerEntry(s(U), S), IntegerEntry(t(U), T), StringEntry(g, ((value(n()) + ",") + toString(U))), StringEntry(u(U), B)] | |
92 | 98 | } | |
93 | 99 | ||
94 | 100 | ||
95 | - | func | |
101 | + | func W (X) = parseIntValue(split(X, "/")[0]) | |
96 | 102 | ||
97 | 103 | ||
98 | - | func | |
104 | + | func Y (Z) = if ((size(Z.payments) == 0)) | |
99 | 105 | then throw("Payment must be attached") | |
100 | - | else if ((size( | |
106 | + | else if ((size(Z.payments) == 1)) | |
101 | 107 | then { | |
102 | - | let | |
103 | - | | |
108 | + | let aa = Z.payments[0] | |
109 | + | aa.amount | |
104 | 110 | } | |
105 | 111 | else throw("There should be only one payment") | |
106 | 112 | ||
107 | 113 | ||
108 | - | func | |
114 | + | func ab (z,r,ac) = rsaVerify_16Kb(SHA256, toBytes(z), fromBase64String(split(value(I(r, ac)), " ")[0]), b) | |
109 | 115 | ||
110 | 116 | ||
111 | - | @Callable( | |
112 | - | func revealRound2 ( | |
117 | + | @Callable(Z) | |
118 | + | func revealRound2 (ad,ae,af) = if (o(Z.callerPublicKey)) | |
113 | 119 | then throw("revealRound2_FORBBIDEN") | |
114 | 120 | else { | |
115 | - | let | |
116 | - | let | |
117 | - | if (( | |
118 | - | then if (if (if ((value( | |
119 | - | then | |
121 | + | let V = value(n()) | |
122 | + | let ag = split(V, ",")[1] | |
123 | + | if ((ag == toString(ad))) | |
124 | + | then if (if (if ((value(G(ad)) == 3)) | |
125 | + | then ab(ae, ad, 2) | |
120 | 126 | else false) | |
121 | - | then | |
127 | + | then ab(af, ad, 3) | |
122 | 128 | else false) | |
123 | 129 | then { | |
124 | - | let | |
125 | - | let | |
126 | - | if (( | |
130 | + | let ah = W(split(ae, "+")[d]) | |
131 | + | let ai = W(split(af, "+")[d]) | |
132 | + | if ((ah >= ai)) | |
127 | 133 | then { | |
128 | - | let ag = value(C(aa)) | |
129 | - | let A = value(addressFromString(value(F(aa)))) | |
130 | - | [StringEntry(H(aa, 2), ab), StringEntry(H(aa, 3), ac), IntegerEntry(v(aa), 6), StringEntry(g, takeRight(S, (size(S) - (1 + size(toString(aa)))))), IntegerEntry((H(aa, 2) + "d1"), ag), IntegerEntry((H(aa, 2) + "d2"), W.fee), IntegerEntry((H(aa, 2) + "d3"), (ag + ag)), IntegerEntry((H(aa, 2) + "d4"), (ag - W.fee)), IntegerEntry((H(aa, 2) + "d5"), ((ag + ag) + (ag - W.fee))), ScriptTransfer(A, ((ag + ag) + (ag - W.fee)), unit)] | |
134 | + | let aj = value(D(ad)) | |
135 | + | let ak = value(F(ad)) | |
136 | + | let B = value(addressFromString(value(H(ad)))) | |
137 | + | [StringEntry(J(ad, 2), ae), StringEntry(J(ad, 3), af), IntegerEntry(w(ad), 6), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad)))))), ScriptTransfer(B, (((aj + ak) * 2) + aj), unit)] | |
131 | 138 | } | |
132 | - | else [StringEntry( | |
139 | + | else [StringEntry(J(ad, 2), ae), StringEntry(J(ad, 3), af), IntegerEntry(w(ad), 6), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad))))))] | |
133 | 140 | } | |
134 | 141 | else throw("One of the cards failed to be verified or game is not in state 1.") | |
135 | - | else throw(("The next game to process is " + | |
142 | + | else throw(("The next game to process is " + ag)) | |
136 | 143 | } | |
137 | 144 | ||
138 | 145 | ||
139 | 146 | ||
140 | - | @Callable( | |
147 | + | @Callable(Z) | |
141 | 148 | func war () = { | |
142 | - | let | |
143 | - | let | |
144 | - | if ((value( | |
149 | + | let B = toBase58String(Z.caller.bytes) | |
150 | + | let ad = value(C(B)) | |
151 | + | if ((value(G(ad)) != 2)) | |
145 | 152 | then throw("Game is not in correct state.") | |
146 | 153 | else { | |
147 | - | let | |
148 | - | let | |
149 | - | if (( | |
150 | - | then throw((("Payment must me same as the original bet (" + toString( | |
151 | - | else [IntegerEntry( | |
154 | + | let aj = value(D(ad)) | |
155 | + | let al = Y(Z) | |
156 | + | if ((al != aj)) | |
157 | + | then throw((("Payment must me same as the original bet (" + toString(aj)) + ")")) | |
158 | + | else [IntegerEntry(w(ad), 3), StringEntry(g, ((value(n()) + ",") + toString(ad)))] | |
152 | 159 | } | |
153 | 160 | } | |
154 | 161 | ||
155 | 162 | ||
156 | 163 | ||
157 | - | @Callable( | |
164 | + | @Callable(Z) | |
158 | 165 | func surrender () = { | |
159 | - | let | |
160 | - | let | |
161 | - | if ((value( | |
166 | + | let B = toBase58String(Z.caller.bytes) | |
167 | + | let ad = value(C(B)) | |
168 | + | if ((value(G(ad)) != 2)) | |
162 | 169 | then throw("Game is not in correct state.") | |
163 | 170 | else { | |
164 | - | let P = value(C(aa)) | |
165 | - | let S = value(n()) | |
166 | - | [IntegerEntry(v(aa), 5), ScriptTransfer(W.caller, (P / 2), unit)] | |
171 | + | let aj = value(D(ad)) | |
172 | + | let ak = value(F(ad)) | |
173 | + | let V = value(n()) | |
174 | + | [IntegerEntry(w(ad), 5), ScriptTransfer(Z.caller, (((aj + ak) + ak) / 2), unit)] | |
167 | 175 | } | |
168 | 176 | } | |
169 | 177 | ||
170 | 178 | ||
171 | 179 | ||
172 | - | @Callable( | |
173 | - | func revealRound1 ( | |
180 | + | @Callable(Z) | |
181 | + | func revealRound1 (ad,am,an) = if (o(Z.callerPublicKey)) | |
174 | 182 | then throw("revealRound1_FORBBIDEN") | |
175 | 183 | else { | |
176 | - | let | |
177 | - | let | |
178 | - | if (( | |
179 | - | then if (if (if ((value( | |
180 | - | then | |
184 | + | let V = value(n()) | |
185 | + | let ag = split(V, ",")[1] | |
186 | + | if ((ag == toString(ad))) | |
187 | + | then if (if (if ((value(G(ad)) == 1)) | |
188 | + | then ab(am, ad, 0) | |
181 | 189 | else false) | |
182 | - | then | |
190 | + | then ab(an, ad, 1) | |
183 | 191 | else false) | |
184 | 192 | then { | |
185 | - | let | |
186 | - | let | |
187 | - | if (( | |
193 | + | let ah = W(split(am, "+")[d]) | |
194 | + | let ai = W(split(an, "+")[d]) | |
195 | + | if ((ah == ai)) | |
188 | 196 | then { | |
189 | - | let | |
190 | - | let | |
191 | - | if (( | |
192 | - | then [StringEntry( | |
193 | - | else [StringEntry( | |
197 | + | let ao = value(E(ad)) | |
198 | + | let B = value(addressFromString(value(H(ad)))) | |
199 | + | if ((ao != 0)) | |
200 | + | then [StringEntry(J(ad, 0), am), StringEntry(J(ad, 1), an), IntegerEntry(w(ad), 2), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad)))))), ScriptTransfer(B, ((ao * 10) + ao), unit)] | |
201 | + | else [StringEntry(J(ad, 0), am), StringEntry(J(ad, 1), an), IntegerEntry(w(ad), 2), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad))))))] | |
194 | 202 | } | |
195 | - | else if (( | |
203 | + | else if ((ah > ai)) | |
196 | 204 | then { | |
197 | - | let ag = value(C(aa)) | |
198 | - | let A = value(addressFromString(value(F(aa)))) | |
199 | - | [StringEntry(H(aa, 0), ai), StringEntry(H(aa, 1), aj), IntegerEntry(v(aa), 4), StringEntry(g, takeRight(S, (size(S) - (1 + size(toString(aa)))))), ScriptTransfer(A, ag, unit)] | |
205 | + | let aj = value(D(ad)) | |
206 | + | let ak = value(F(ad)) | |
207 | + | let B = value(addressFromString(value(H(ad)))) | |
208 | + | [StringEntry(J(ad, 0), am), StringEntry(J(ad, 1), an), IntegerEntry(w(ad), 4), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad)))))), ScriptTransfer(B, ((aj * 2) + ak), unit)] | |
200 | 209 | } | |
201 | - | else [StringEntry( | |
210 | + | else [StringEntry(J(ad, 0), am), StringEntry(J(ad, 1), an), IntegerEntry(w(ad), 4), StringEntry(g, takeRight(V, (size(V) - (1 + size(toString(ad))))))] | |
202 | 211 | } | |
203 | 212 | else throw("One of the cards failed to be verified or game is not in state 1.") | |
204 | - | else throw(("The next game to process is " + | |
213 | + | else throw(("The next game to process is " + ag)) | |
205 | 214 | } | |
206 | 215 | ||
207 | 216 | ||
208 | 217 | ||
209 | - | @Callable(W) | |
210 | - | func bet (ag,ak) = { | |
211 | - | let al = toBase58String(W.caller.bytes) | |
212 | - | let ah = V(W) | |
213 | - | let P = (ag + W.fee) | |
214 | - | let Q = ak | |
215 | - | let A = toBase58String(W.caller.bytes) | |
216 | - | if ((ah != (ag + ak))) | |
218 | + | @Callable(Z) | |
219 | + | func bet (aj,ao) = { | |
220 | + | let ap = toBase58String(Z.caller.bytes) | |
221 | + | let al = Y(Z) | |
222 | + | let B = toBase58String(Z.caller.bytes) | |
223 | + | if ((al != (aj + ao))) | |
217 | 224 | then throw("normal bet + tie bet should be equal to the payment") | |
218 | - | else if (if ((value(k()) > | |
225 | + | else if (if ((value(k()) > al)) | |
219 | 226 | then true | |
220 | - | else ( | |
227 | + | else (al > value(j()))) | |
221 | 228 | then throw((((("Payment needs to be in the following interval [" + toString(value(k()))) + " ") + toString(value(j()))) + "]")) | |
222 | - | else if (( | |
229 | + | else if ((aj == 0)) | |
223 | 230 | then throw("normal bet has to be greater than 0") | |
224 | 231 | else if ((value(m()) >= value(l()))) | |
225 | 232 | then throw("No available set up games to use.") | |
226 | 233 | else { | |
227 | - | let | |
228 | - | if ($isInstanceOf( | |
234 | + | let aq = C(B) | |
235 | + | if ($isInstanceOf(aq, "Int")) | |
229 | 236 | then { | |
230 | - | let | |
231 | - | if ((4 > value( | |
232 | - | then throw((("Game " + toString( | |
233 | - | else | |
237 | + | let ar = aq | |
238 | + | if ((4 > value(G(ar)))) | |
239 | + | then throw((("Game " + toString(ar)) + " is still in progress.")) | |
240 | + | else Q(B, aj, ao, Z.fee) | |
234 | 241 | } | |
235 | - | else if ($isInstanceOf( | |
236 | - | then | |
242 | + | else if ($isInstanceOf(aq, "Unit")) | |
243 | + | then Q(B, aj, ao, Z.fee) | |
237 | 244 | else throw("Match error") | |
238 | 245 | } | |
239 | 246 | } | |
240 | 247 | ||
241 | 248 | ||
242 | 249 | ||
243 | - | @Callable( | |
244 | - | func setupGame (r, | |
250 | + | @Callable(Z) | |
251 | + | func setupGame (r,am,an,ae,af) = if (o(Z.callerPublicKey)) | |
245 | 252 | then throw("setupGame_FORBBIDEN") | |
246 | 253 | else { | |
247 | - | let | |
248 | - | if ($isInstanceOf( | |
254 | + | let aq = l() | |
255 | + | if ($isInstanceOf(aq, "Int")) | |
249 | 256 | then { | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | if ((r != | |
257 | + | let as = aq | |
258 | + | let L = (toInt(sha256((take(lastBlock.generationSignature, 16) + take(Z.transactionId, 16)))) % 2) | |
259 | + | let ad = (as + 1) | |
260 | + | if ((r != ad)) | |
254 | 261 | then throw("Wrong game number.") | |
255 | - | else if ((( | |
256 | - | then | |
257 | - | else | |
262 | + | else if (((L % 2) == 1)) | |
263 | + | then K(ad, L, am, an, ae, af) | |
264 | + | else K(ad, L, am, an, ae, af) | |
258 | 265 | } | |
259 | 266 | else throw("InitGame Required") | |
260 | 267 | } | |
261 | 268 | ||
262 | 269 | ||
263 | 270 | ||
264 | - | @Callable( | |
265 | - | func initGame ( | |
271 | + | @Callable(Z) | |
272 | + | func initGame (at,au) = if (o(Z.callerPublicKey)) | |
266 | 273 | then throw("initGame_FORBBIDEN") | |
267 | 274 | else { | |
268 | - | let | |
269 | - | if ($isInstanceOf( | |
275 | + | let aq = l() | |
276 | + | if ($isInstanceOf(aq, "Int")) | |
270 | 277 | then { | |
271 | - | let | |
278 | + | let av = aq | |
272 | 279 | throw("INIT_ALREADY_DONE") | |
273 | 280 | } | |
274 | - | else [IntegerEntry(e, 0), IntegerEntry(f, 0), IntegerEntry(h, | |
281 | + | else [IntegerEntry(e, 0), IntegerEntry(f, 0), IntegerEntry(h, at), IntegerEntry(i, au), StringEntry(g, "")] | |
275 | 282 | } | |
276 | 283 | ||
277 | 284 | ||
278 | - | @Verifier( | |
279 | - | func | |
285 | + | @Verifier(aw) | |
286 | + | func ax () = sigVerify(aw.bodyBytes, aw.proofs[0], aw.senderPublicKey) | |
280 | 287 |
github/deemru/w8io/169f3d6 110.92 ms ◑