tx · AMBiFo4QtNhZPrAM7mk9PHXmEqxgaqMffqHHuo2kMuBf 3MpKerSR9PBCK33A6cqgrBdr5qatGkeQkG2: -0.01800000 Waves 2022.11.05 01:22 [2302956] smart account 3MpKerSR9PBCK33A6cqgrBdr5qatGkeQkG2 > SELF 0.00000000 Waves
{ "type": 13, "id": "AMBiFo4QtNhZPrAM7mk9PHXmEqxgaqMffqHHuo2kMuBf", "fee": 1800000, "feeAssetId": null, "timestamp": 1667600580253, "version": 2, "chainId": 84, "sender": "3MpKerSR9PBCK33A6cqgrBdr5qatGkeQkG2", "senderPublicKey": "9bzCoo2Wj1JTjfjLCRWgZPP6E1LPhuTGyJZkRLKNdWcG", "proofs": [ "3mm8mhrrqyHZYa18JVWnZBetF6ZDqUTKp5rNDiQY5Y5PzGoBittwpCtmTCxVK27YQUrCBTGjXNz99YvjkWVUvavb" ], "script": "base64:BgJNCAISAwoBCBIAEgASBQoDCAEBEgMKAQgSAwoBCBIDCgEIEgcKBQgIAQEIEgMKAQgSBAoCCAgSBQoDCAgBEgMKAQgSAwoBCBIFCgMICAguAAV3YXZlcwCAwtcvAA50aWNrZXRQcmljZUludADAhD0AC3RpY2tldFByaWNlBQ50aWNrZXRQcmljZUludAAGaW52RmVlAKDCHgASd2l0aGRyYXdGZWVQZXJjZW50AAUAFmZlZUNvbGxlY3RvckFkZHJlc3NLZXkCE2ZlZUNvbGxlY3RvckFkZHJlc3MAGXRvdXJuYW1lbnRCdXlJbkZlZVBlcmNlbnQACgAOZGVwb3NpdEFzc2V0SWQCLDV1ZTFmaXVWNmo2VUJyNlhmMjhRbXM2eTVGcXpLdHF2YXh4aHd1N2hUUTU4AB9hbGxvd2VkU3BlY2lhbFRvdXJuYW1lbnRDcmVhdG9yAiMzTXhEcGRYa3hZaDdLdVNnTTk4ZFliZFhRaWNpZkRXZFQ5WAENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2g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AkAzAgCCQEMSW50ZWdlckVudHJ5AgkBGXZpZGVvUG9rZXJSZXN1bHRQcm9maXRLZXkBBQZnYW1lSWQFCWFtb3VudFdvbgkAzAgCCQELU3RyaW5nRW50cnkCCQETdmlkZW9Qb2tlclN0YXR1c0tleQEFBmdhbWVJZAIIZmluaXNoZWQJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwkBEUBleHRyTmF0aXZlKDEwNjIpAQUKcGxheWVyQWRkcgUJYW1vdW50V29uCQDZBAEFDmRlcG9zaXRBc3NldElkBQNuaWwAAQkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmUS6+k", "height": 2302956, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = 100000000 | |
5 | + | ||
6 | + | let b = 1000000 | |
7 | + | ||
8 | + | let c = b | |
9 | + | ||
10 | + | let d = 500000 | |
11 | + | ||
12 | + | let e = 5 | |
13 | + | ||
14 | + | let f = "feeCollectorAddress" | |
15 | + | ||
16 | + | let g = 10 | |
17 | + | ||
18 | + | let h = "5ue1fiuV6j6UBr6Xf28Qms6y5FqzKtqvaxxhwu7hTQ58" | |
19 | + | ||
20 | + | let i = "3MxDpdXkxYh7KuSgM98dYbdXQicifDWdT9X" | |
21 | + | ||
22 | + | func j (k) = { | |
23 | + | let l = getInteger(this, k) | |
24 | + | if ($isInstanceOf(l, "Int")) | |
25 | + | then { | |
26 | + | let m = l | |
27 | + | m | |
28 | + | } | |
29 | + | else 0 | |
30 | + | } | |
31 | + | ||
32 | + | ||
33 | + | func n (o) = (o + "_ticketsCount") | |
34 | + | ||
35 | + | ||
36 | + | func p (q,r) = ((q + "_buyInAmountForAccount_") + r) | |
37 | + | ||
38 | + | ||
39 | + | func s (q,r) = ((q + "_buyInAssetIdForAccount_") + r) | |
40 | + | ||
41 | + | ||
42 | + | func t (q,r) = ((q + "_ticketForAccount_") + r) | |
43 | + | ||
44 | + | ||
45 | + | func u (q) = (q + "_tournamentTotalBuyInCollectedAmount") | |
46 | + | ||
47 | + | ||
48 | + | func v (q) = (q + "_tournamentTotalBuyInCollectedAmountMinusFees") | |
49 | + | ||
50 | + | ||
51 | + | func w (q) = (q + "_tournamentCreator") | |
52 | + | ||
53 | + | ||
54 | + | func x (q) = (q + "_tournamentName") | |
55 | + | ||
56 | + | ||
57 | + | func y (q) = (q + "_tournamentPrizeAmount") | |
58 | + | ||
59 | + | ||
60 | + | func z (q) = (q + "_tournamentMaxPlayersCount") | |
61 | + | ||
62 | + | ||
63 | + | func A (q) = (q + "_tournamentPlayersCount") | |
64 | + | ||
65 | + | ||
66 | + | func B (q) = (q + "_tournamentPrizeAssetId") | |
67 | + | ||
68 | + | ||
69 | + | func C (q) = (q + "_tournamentPrizeAssetName") | |
70 | + | ||
71 | + | ||
72 | + | func D (q) = (q + "_tournamentBuyInAmount") | |
73 | + | ||
74 | + | ||
75 | + | func E (q) = (q + "_tournamentBuyInAssetId") | |
76 | + | ||
77 | + | ||
78 | + | func F (q) = (q + "_tournamentBuyInAssetName") | |
79 | + | ||
80 | + | ||
81 | + | func G (q) = (q + "_tournamentBuyInAssetDecimals") | |
82 | + | ||
83 | + | ||
84 | + | func H (q) = (q + "_tournamentPrizeAssetDecimals") | |
85 | + | ||
86 | + | ||
87 | + | func I (q) = (q + "_tournamentStatus") | |
88 | + | ||
89 | + | ||
90 | + | func J (q) = (q + "_tournamentBuyInFeeCollected") | |
91 | + | ||
92 | + | ||
93 | + | func K (q) = (q + "_tournamentServiceFeeCollected") | |
94 | + | ||
95 | + | ||
96 | + | func L (q) = (q + "_tournamentWinningTransactionId") | |
97 | + | ||
98 | + | ||
99 | + | func M (N) = (N + "_winner") | |
100 | + | ||
101 | + | ||
102 | + | func O (P) = (P + "_availableFunds") | |
103 | + | ||
104 | + | ||
105 | + | func Q (P) = (P + "_totalLockedFunds") | |
106 | + | ||
107 | + | ||
108 | + | func R (P) = (P + "_lockedFundsTotalHistory") | |
109 | + | ||
110 | + | ||
111 | + | func S (P,N) = ((P + "_lockedFunds_") + N) | |
112 | + | ||
113 | + | ||
114 | + | func T (P) = (P + "_availableRewards") | |
115 | + | ||
116 | + | ||
117 | + | func U (N,r) = ((N + "_videoPokerBetFor_") + r) | |
118 | + | ||
119 | + | ||
120 | + | func V (N) = (N + "_videoPokerCardsDrawn") | |
121 | + | ||
122 | + | ||
123 | + | func W (N) = (N + "_videoPokerResult") | |
124 | + | ||
125 | + | ||
126 | + | func X (N) = (N + "_videoPokerResultProfit") | |
127 | + | ||
128 | + | ||
129 | + | func Y (N) = (N + "_videoPokerStatus") | |
130 | + | ||
131 | + | ||
132 | + | func Z (N) = (N + "_videoPokerPlayerAddress") | |
133 | + | ||
134 | + | ||
135 | + | func aa (o) = j(n(o)) | |
136 | + | ||
137 | + | ||
138 | + | func ab (ac) = { | |
139 | + | let ad = aa(ac) | |
140 | + | let ae = (ad - 1) | |
141 | + | if ((0 > ae)) | |
142 | + | then 0 | |
143 | + | else ae | |
144 | + | } | |
145 | + | ||
146 | + | ||
147 | + | @Callable(af) | |
148 | + | func setFeeCollectorAddress (ag) = if ((af.caller != this)) | |
149 | + | then throw("Admin Only") | |
150 | + | else [StringEntry(f, ag)] | |
151 | + | ||
152 | + | ||
153 | + | ||
154 | + | @Callable(af) | |
155 | + | func depositFunds () = { | |
156 | + | let ah = if ((size(af.payments) == 1)) | |
157 | + | then af.payments[0] | |
158 | + | else throw("Please attach exactly one payment") | |
159 | + | if ((ah.assetId != fromBase58String(h))) | |
160 | + | then throw("You can only deposit USDN") | |
161 | + | else { | |
162 | + | let ai = toBase58String(af.caller.bytes) | |
163 | + | let aj = j(O(ai)) | |
164 | + | $Tuple2([IntegerEntry(O(ai), (aj + ah.amount))], 1) | |
165 | + | } | |
166 | + | } | |
167 | + | ||
168 | + | ||
169 | + | ||
170 | + | @Callable(af) | |
171 | + | func withdrawFunds () = { | |
172 | + | let ai = toBase58String(af.caller.bytes) | |
173 | + | let aj = j(O(ai)) | |
174 | + | $Tuple2([IntegerEntry(O(ai), 0), ScriptTransfer(addressFromStringValue(ai), aj, fromBase58String(h))], 1) | |
175 | + | } | |
176 | + | ||
177 | + | ||
178 | + | ||
179 | + | @Callable(af) | |
180 | + | func finishDiceGame (ak,al,am) = if ((af.caller != this)) | |
181 | + | then throw("Admin Only") | |
182 | + | else { | |
183 | + | let aj = j(O(ak)) | |
184 | + | let an = if ((al > aj)) | |
185 | + | then throw("Not enough available funds to cover the bet!") | |
186 | + | else true | |
187 | + | if ((an == an)) | |
188 | + | then $Tuple2([IntegerEntry(O(ak), ((aj - al) + fraction(al, am, 10000))), ScriptTransfer(addressFromStringValue(ak), aj, fromBase58String(h))], 1) | |
189 | + | else throw("Strict value is not equal to itself.") | |
190 | + | } | |
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | @Callable(af) | |
195 | + | func cancelSignUpToTournament (q) = { | |
196 | + | let ao = getStringValue(I(q)) | |
197 | + | if ((ao != "registration")) | |
198 | + | then throw("Tournament is not in registration phase!") | |
199 | + | else { | |
200 | + | let ai = toBase58String(af.caller.bytes) | |
201 | + | let ap = getIntegerValue(p(q, ai)) | |
202 | + | let aq = getStringValue(s(q, ai)) | |
203 | + | let ar = j(A(q)) | |
204 | + | let as = (j(u(q)) - ap) | |
205 | + | let at = fraction(as, g, 100) | |
206 | + | $Tuple2([ScriptTransfer(addressFromStringValue(ai), ap, fromBase58String(aq)), DeleteEntry(t(q, ai)), DeleteEntry(p(q, ai)), DeleteEntry(s(q, ai)), IntegerEntry(A(q), (ar - 1)), IntegerEntry(u(q), as), IntegerEntry(v(q), (as - at))], 1) | |
207 | + | } | |
208 | + | } | |
209 | + | ||
210 | + | ||
211 | + | ||
212 | + | @Callable(af) | |
213 | + | func signUpToTournament (q) = { | |
214 | + | let au = getIntegerValue(this, z(q)) | |
215 | + | let ar = j(A(q)) | |
216 | + | let ao = getStringValue(I(q)) | |
217 | + | if (if ((ao != "registration")) | |
218 | + | then (ao != "started") | |
219 | + | else false) | |
220 | + | then throw("Tournament is not in registration phase!") | |
221 | + | else if ((ar == au)) | |
222 | + | then throw("Tournament is currently full, please try again later!") | |
223 | + | else { | |
224 | + | let ah = if ((size(af.payments) == 1)) | |
225 | + | then af.payments[0] | |
226 | + | else throw("Please attach exactly one payment") | |
227 | + | let av = { | |
228 | + | let l = ah.assetId | |
229 | + | if ($isInstanceOf(l, "Unit")) | |
230 | + | then { | |
231 | + | let m = l | |
232 | + | "" | |
233 | + | } | |
234 | + | else if ($isInstanceOf(l, "ByteVector")) | |
235 | + | then { | |
236 | + | let m = l | |
237 | + | toBase58String(m) | |
238 | + | } | |
239 | + | else throw("Match error") | |
240 | + | } | |
241 | + | let aw = getIntegerValue(this, D(q)) | |
242 | + | let ax = getStringValue(this, E(q)) | |
243 | + | if ((aw != ah.amount)) | |
244 | + | then throw(("Attached payment amount is invalid, must be " + toString(aw))) | |
245 | + | else if ((ax != av)) | |
246 | + | then throw(("Attached payment asset id is invalid, must be " + ax)) | |
247 | + | else { | |
248 | + | let ai = toBase58String(af.caller.bytes) | |
249 | + | let as = (j(u(q)) + ah.amount) | |
250 | + | let at = fraction(as, g, 100) | |
251 | + | $Tuple2([BooleanEntry(t(q, ai), true), IntegerEntry(p(q, ai), ah.amount), StringEntry(s(q, ai), av), IntegerEntry(A(q), (ar + 1)), IntegerEntry(u(q), as), IntegerEntry(v(q), (as - at))], 1) | |
252 | + | } | |
253 | + | } | |
254 | + | } | |
255 | + | ||
256 | + | ||
257 | + | ||
258 | + | @Callable(af) | |
259 | + | func cancelTournament (q) = { | |
260 | + | let ai = toBase58String(af.caller.bytes) | |
261 | + | let ay = getStringValue(w(q)) | |
262 | + | let az = if ((ay == ai)) | |
263 | + | then true | |
264 | + | else if ((af.caller == this)) | |
265 | + | then true | |
266 | + | else throw("Only tournament creator can cancel it!") | |
267 | + | if ((az == az)) | |
268 | + | then { | |
269 | + | let ao = getStringValue(I(q)) | |
270 | + | if (if ((af.caller != this)) | |
271 | + | then (ao != "registration") | |
272 | + | else false) | |
273 | + | then throw("Tournament is not in registration phase!") | |
274 | + | else { | |
275 | + | let ar = j(A(q)) | |
276 | + | if ((ar > 0)) | |
277 | + | then throw("Cannot cancel a tournament when players are already registered to it!") | |
278 | + | else { | |
279 | + | let aA = getIntegerValue(y(q)) | |
280 | + | let aB = getStringValue(B(q)) | |
281 | + | $Tuple2([DeleteEntry(y(q)), DeleteEntry(A(q)), DeleteEntry(z(q)), DeleteEntry(B(q)), DeleteEntry(C(q)), DeleteEntry(H(q)), DeleteEntry(I(q)), DeleteEntry(D(q)), DeleteEntry(F(q)), DeleteEntry(G(q)), DeleteEntry(E(q)), DeleteEntry(x(q)), DeleteEntry(w(q)), ScriptTransfer(addressFromStringValue(ay), aA, fromBase58String(aB))], 1) | |
282 | + | } | |
283 | + | } | |
284 | + | } | |
285 | + | else throw("Strict value is not equal to itself.") | |
286 | + | } | |
287 | + | ||
288 | + | ||
289 | + | ||
290 | + | @Callable(af) | |
291 | + | func createTournament (q,aC,aD,aE,aF) = { | |
292 | + | let ah = if ((size(af.payments) == 1)) | |
293 | + | then af.payments[0] | |
294 | + | else { | |
295 | + | let ai = toBase58String(af.caller.bytes) | |
296 | + | if ((ai == i)) | |
297 | + | then AttachedPayment(unit, 0) | |
298 | + | else throw("Please attach exactly one payment") | |
299 | + | } | |
300 | + | let ay = { | |
301 | + | let l = getString(w(q)) | |
302 | + | if ($isInstanceOf(l, "String")) | |
303 | + | then { | |
304 | + | let aG = l | |
305 | + | throw(("Tournament already exists with this id " + q)) | |
306 | + | } | |
307 | + | else unit | |
308 | + | } | |
309 | + | if ((ay == ay)) | |
310 | + | then { | |
311 | + | let aH = { | |
312 | + | let l = ah.assetId | |
313 | + | if ($isInstanceOf(l, "Unit")) | |
314 | + | then { | |
315 | + | let m = l | |
316 | + | "" | |
317 | + | } | |
318 | + | else if ($isInstanceOf(l, "ByteVector")) | |
319 | + | then { | |
320 | + | let m = l | |
321 | + | toBase58String(m) | |
322 | + | } | |
323 | + | else throw("Match error") | |
324 | + | } | |
325 | + | let aI = { | |
326 | + | let l = ah.assetId | |
327 | + | if ($isInstanceOf(l, "Unit")) | |
328 | + | then { | |
329 | + | let m = l | |
330 | + | ["Waves", 8] | |
331 | + | } | |
332 | + | else if ($isInstanceOf(l, "ByteVector")) | |
333 | + | then { | |
334 | + | let m = l | |
335 | + | let aJ = assetInfo(m) | |
336 | + | if ($isInstanceOf(aJ, "Asset")) | |
337 | + | then { | |
338 | + | let aK = aJ | |
339 | + | [aK.name, aK.decimals] | |
340 | + | } | |
341 | + | else throw("Can't find asset") | |
342 | + | } | |
343 | + | else throw("Match error") | |
344 | + | } | |
345 | + | let aL = { | |
346 | + | let l = assetInfo(fromBase58String(aF)) | |
347 | + | if ($isInstanceOf(l, "Asset")) | |
348 | + | then { | |
349 | + | let aK = l | |
350 | + | [aK.name, aK.decimals] | |
351 | + | } | |
352 | + | else ["", 0] | |
353 | + | } | |
354 | + | let ai = toBase58String(af.caller.bytes) | |
355 | + | $Tuple2([IntegerEntry(y(q), ah.amount), IntegerEntry(A(q), 0), IntegerEntry(z(q), aD), StringEntry(B(q), aH), StringEntry(C(q), { | |
356 | + | let aM = aI[0] | |
357 | + | if ($isInstanceOf(aM, "String")) | |
358 | + | then aM | |
359 | + | else throw(($getType(aM) + " couldn't be cast to String")) | |
360 | + | }), IntegerEntry(H(q), { | |
361 | + | let aM = aI[1] | |
362 | + | if ($isInstanceOf(aM, "Int")) | |
363 | + | then aM | |
364 | + | else throw(($getType(aM) + " couldn't be cast to Int")) | |
365 | + | }), StringEntry(I(q), "registration"), IntegerEntry(D(q), aE), StringEntry(F(q), { | |
366 | + | let aM = aL[0] | |
367 | + | if ($isInstanceOf(aM, "String")) | |
368 | + | then aM | |
369 | + | else throw(($getType(aM) + " couldn't be cast to String")) | |
370 | + | }), IntegerEntry(G(q), { | |
371 | + | let aM = aL[1] | |
372 | + | if ($isInstanceOf(aM, "Int")) | |
373 | + | then aM | |
374 | + | else throw(($getType(aM) + " couldn't be cast to Int")) | |
375 | + | }), StringEntry(E(q), aF), StringEntry(x(q), aC), StringEntry(w(q), ai)], 1) | |
376 | + | } | |
377 | + | else throw("Strict value is not equal to itself.") | |
378 | + | } | |
379 | + | ||
380 | + | ||
381 | + | ||
382 | + | @Callable(af) | |
383 | + | func startTournament (q) = if ((af.caller != this)) | |
384 | + | then throw("Admin Only") | |
385 | + | else $Tuple2([StringEntry(I(q), "started")], 1) | |
386 | + | ||
387 | + | ||
388 | + | ||
389 | + | @Callable(af) | |
390 | + | func finishTournament (q,aN) = if ((af.caller != this)) | |
391 | + | then throw("Admin Only") | |
392 | + | else { | |
393 | + | let ay = getStringValue(w(q)) | |
394 | + | let aO = j(u(q)) | |
395 | + | let aP = getIntegerValue(D(q)) | |
396 | + | let aQ = { | |
397 | + | let l = getString(E(q)) | |
398 | + | if ($isInstanceOf(l, "String")) | |
399 | + | then { | |
400 | + | let aR = l | |
401 | + | if ((aR == "")) | |
402 | + | then unit | |
403 | + | else fromBase58String(aR) | |
404 | + | } | |
405 | + | else unit | |
406 | + | } | |
407 | + | let aS = fraction(aO, g, 100) | |
408 | + | let aA = getIntegerValue(y(q)) | |
409 | + | if ((aA > 0)) | |
410 | + | then $Tuple2([StringEntry(L(q), aN), StringEntry(I(q), "finished"), IntegerEntry(J(q), aS), ScriptTransfer(addressFromStringValue(ay), (aO - aS), aQ)], 1) | |
411 | + | else { | |
412 | + | let aT = fraction(aS, 20, 100) | |
413 | + | $Tuple2([StringEntry(L(q), aN), StringEntry(I(q), "finished"), IntegerEntry(J(q), aS), IntegerEntry(K(q), aT), ScriptTransfer(addressFromStringValue(ay), (aS - aT), aQ)], 1) | |
414 | + | } | |
415 | + | } | |
416 | + | ||
417 | + | ||
418 | + | ||
419 | + | @Callable(af) | |
420 | + | func playerExitGame (N,ac,aU) = if ((af.caller != this)) | |
421 | + | then throw("Admin Only") | |
422 | + | else { | |
423 | + | let aV = j(Q(ac)) | |
424 | + | let aW = j(S(ac, N)) | |
425 | + | $Tuple2([IntegerEntry(Q(ac), (aV - aW)), IntegerEntry(S(ac, N), 0), ScriptTransfer(addressFromStringValue(ac), aU, fromBase58String(h))], 1) | |
426 | + | } | |
427 | + | ||
428 | + | ||
429 | + | ||
430 | + | @Callable(af) | |
431 | + | func lockFundsForGame (N) = { | |
432 | + | let ah = if ((size(af.payments) == 1)) | |
433 | + | then af.payments[0] | |
434 | + | else throw("Please attach exactly one payment") | |
435 | + | if ((ah.assetId != fromBase58String(h))) | |
436 | + | then throw("You can only deposit USDN") | |
437 | + | else { | |
438 | + | let ai = toBase58String(af.caller.bytes) | |
439 | + | let aV = j(Q(ai)) | |
440 | + | let aX = j(R(ai)) | |
441 | + | $Tuple2([IntegerEntry(Q(ai), (aV + ah.amount)), IntegerEntry(R(ai), (aX + ah.amount)), IntegerEntry(S(ai, N), ah.amount)], 1) | |
442 | + | } | |
443 | + | } | |
444 | + | ||
445 | + | ||
446 | + | ||
447 | + | @Callable(af) | |
448 | + | func betOnVideoPokerGame (N) = { | |
449 | + | let ah = if ((size(af.payments) == 1)) | |
450 | + | then af.payments[0] | |
451 | + | else throw("Please attach exactly one payment") | |
452 | + | if ((ah.assetId != fromBase58String(h))) | |
453 | + | then throw("You can only deposit USDN") | |
454 | + | else { | |
455 | + | let ai = toBase58String(af.caller.bytes) | |
456 | + | $Tuple2([IntegerEntry(U(N, ai), ah.amount), StringEntry(Z(N), ai), StringEntry(Y(N), "created")], 1) | |
457 | + | } | |
458 | + | } | |
459 | + | ||
460 | + | ||
461 | + | ||
462 | + | @Callable(af) | |
463 | + | func finishVideoPokerGame (N,aY,aZ) = if ((af.caller != this)) | |
464 | + | then throw("Admin Only") | |
465 | + | else { | |
466 | + | let ac = getStringValue(Z(N)) | |
467 | + | let ba = getIntegerValue(U(N, ac)) | |
468 | + | let bb = getStringValue(Y(N)) | |
469 | + | let bc = if ((bb == "created")) | |
470 | + | then true | |
471 | + | else throw("Game is not in the correct status!") | |
472 | + | if ((bc == bc)) | |
473 | + | then { | |
474 | + | let bd = if ((aY == "Pair, J's")) | |
475 | + | then 1 | |
476 | + | else if ((aY == "Pair, Q's")) | |
477 | + | then 1 | |
478 | + | else if ((aY == "Pair, K's")) | |
479 | + | then 1 | |
480 | + | else if ((aY == "Pair, A's")) | |
481 | + | then 1 | |
482 | + | else if ((aY == "Two Pair")) | |
483 | + | then 2 | |
484 | + | else if ((aY == "Three of a Kind")) | |
485 | + | then 3 | |
486 | + | else if ((aY == "Straight")) | |
487 | + | then 4 | |
488 | + | else if ((aY == "Flush")) | |
489 | + | then 6 | |
490 | + | else if ((aY == "Full House")) | |
491 | + | then 9 | |
492 | + | else if ((aY == "Four of a Kind")) | |
493 | + | then 25 | |
494 | + | else if ((aY == "Straight Flush")) | |
495 | + | then 50 | |
496 | + | else if ((aY == "Royal Flush")) | |
497 | + | then 800 | |
498 | + | else 0 | |
499 | + | if ((bd == bd)) | |
500 | + | then { | |
501 | + | let be = (ba * bd) | |
502 | + | $Tuple2([StringEntry(V(N), aZ), StringEntry(W(N), aY), IntegerEntry(X(N), be), StringEntry(Y(N), "finished"), ScriptTransfer(addressFromStringValue(ac), be, fromBase58String(h))], 1) | |
503 | + | } | |
504 | + | else throw("Strict value is not equal to itself.") | |
505 | + | } | |
506 | + | else throw("Strict value is not equal to itself.") | |
507 | + | } | |
508 | + | ||
509 | + | ||
510 | + | @Verifier(bf) | |
511 | + | func bg () = sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey) | |
512 | + |
github/deemru/w8io/169f3d6 34.68 ms ◑