tx · 8FSeP4uFcbJif1vaQCAR9KvWJyjk1AgkXdLxzSkpELGd 3MpkFCdSispaqdDqUAAWqEnVxLKPT6nKzJ4: -0.01700000 Waves 2022.10.25 00:45 [2287047] smart account 3MpkFCdSispaqdDqUAAWqEnVxLKPT6nKzJ4 > SELF 0.00000000 Waves
{ "type": 13, "id": "8FSeP4uFcbJif1vaQCAR9KvWJyjk1AgkXdLxzSkpELGd", "fee": 1700000, "feeAssetId": null, "timestamp": 1666647985872, "version": 2, "chainId": 84, "sender": "3MpkFCdSispaqdDqUAAWqEnVxLKPT6nKzJ4", "senderPublicKey": "6QC3XgxZ7LknQ4t7GpdJ6ojyVp67T2oyBKA4Kwq83LLs", "proofs": [ "4pZUERFgqnkwg4ZLy198xMGLjcVC2Bfv2pVbopXp7TX1iAWvLBLUgjCUDpC2yK57FEzEvvknToxF6QGcyjaDZhRM" ], "script": "base64:BgI4CAISAwoBCBIAEgMKAQgSAwoBCBIDCgEIEgcKBQgIAQEIEgMKAQgSBAoCCAgSBQoDCAgBEgMKAQgoAAV3YXZlcwCAwtcvAA50aWNrZXRQcmljZUludADAhD0AC3RpY2tldFByaWNlBQ50aWNrZXRQcmljZUludAAGaW52RmVlAKDCHgASd2l0aGRyYXdGZWVQZXJjZW50AAUAFmZlZUNvbGxlY3RvckFkZHJlc3NLZXkCE2ZlZUNvbGxlY3RvckFkZHJlc3MAGXRvdXJuYW1lbnRCdXlJbkZlZVBlcmNlbnQACgAOZGVwb3NpdEFzc2V0SWQCLDV1ZTFmaXVWNmo2VUJyNlhmMjhRbXM2eTVGcXpLdHF2YXh4aHd1N2hUUTU4AB9hbGxvd2VkU3BlY2lhbFRvdXJuYW1lbnRDcmVhdG9yAiMzTjI0ejdja2VGWnRTa2pLbkRqVEppejd2VGhac1ozdG1idQENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAW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nlLZXkBBQ1jYWxsZXJBZGRyU3RyCQCUCgIJAMwIAgkBDEludGVnZXJFbnRyeQIJARphZGRyZXNzVG90YWxMb2NrZWRGdW5kc0tleQEFDWNhbGxlckFkZHJTdHIJAGQCBRdjdXJyZW50VG90YWxMb2NrZWRGdW5kcwgFA3BtdAZhbW91bnQJAMwIAgkBDEludGVnZXJFbnRyeQIJASFhZGRyZXNzTG9ja2VkRnVuZHNUb3RhbEhpc3RvcnlLZXkBBQ1jYWxsZXJBZGRyU3RyCQBkAgUeY3VycmVudExvY2tlZEZ1bmRzVG90YWxIaXN0b3J5CAUDcG10BmFtb3VudAkAzAgCCQEMSW50ZWdlckVudHJ5AgkBHGFkZHJlc3NMb2NrZWRGdW5kc0ZvckdhbWVLZXkCBQ1jYWxsZXJBZGRyU3RyBQZnYW1lSWQIBQNwbXQGYW1vdW50BQNuaWwAAQECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlHb3bT", "height": 2287047, "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 = "3N24z7ckeFZtSkjKnDjTJiz7vThZsZ3tmbu" | |
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 (o) = j(n(o)) | |
118 | + | ||
119 | + | ||
120 | + | func V (W) = { | |
121 | + | let X = U(W) | |
122 | + | let Y = (X - 1) | |
123 | + | if ((0 > Y)) | |
124 | + | then 0 | |
125 | + | else Y | |
126 | + | } | |
127 | + | ||
128 | + | ||
129 | + | @Callable(Z) | |
130 | + | func setFeeCollectorAddress (aa) = if ((Z.caller != this)) | |
131 | + | then throw("Admin Only") | |
132 | + | else [StringEntry(f, aa)] | |
133 | + | ||
134 | + | ||
135 | + | ||
136 | + | @Callable(Z) | |
137 | + | func depositFunds () = { | |
138 | + | let ab = if ((size(Z.payments) == 1)) | |
139 | + | then Z.payments[0] | |
140 | + | else throw("Please attach exactly one payment") | |
141 | + | if ((ab.assetId != fromBase58String(h))) | |
142 | + | then throw("You can only deposit USDN") | |
143 | + | else { | |
144 | + | let ac = toBase58String(Z.caller.bytes) | |
145 | + | let ad = j(O(ac)) | |
146 | + | $Tuple2([IntegerEntry(O(ac), (ad + ab.amount))], 1) | |
147 | + | } | |
148 | + | } | |
149 | + | ||
150 | + | ||
151 | + | ||
152 | + | @Callable(Z) | |
153 | + | func cancelSignUpToTournament (q) = { | |
154 | + | let ae = getStringValue(I(q)) | |
155 | + | if ((ae != "registration")) | |
156 | + | then throw("Tournament is not in registration phase!") | |
157 | + | else { | |
158 | + | let ac = toBase58String(Z.caller.bytes) | |
159 | + | let af = getIntegerValue(p(q, ac)) | |
160 | + | let ag = getStringValue(s(q, ac)) | |
161 | + | let ah = j(A(q)) | |
162 | + | let ai = (j(u(q)) - af) | |
163 | + | let aj = fraction(ai, g, 100) | |
164 | + | $Tuple2([ScriptTransfer(addressFromStringValue(ac), af, fromBase58String(ag)), DeleteEntry(t(q, ac)), DeleteEntry(p(q, ac)), DeleteEntry(s(q, ac)), IntegerEntry(A(q), (ah - 1)), IntegerEntry(u(q), ai), IntegerEntry(v(q), (ai - aj))], 1) | |
165 | + | } | |
166 | + | } | |
167 | + | ||
168 | + | ||
169 | + | ||
170 | + | @Callable(Z) | |
171 | + | func signUpToTournament (q) = { | |
172 | + | let ak = getIntegerValue(this, z(q)) | |
173 | + | let ah = j(A(q)) | |
174 | + | let ae = getStringValue(I(q)) | |
175 | + | if (if ((ae != "registration")) | |
176 | + | then (ae != "started") | |
177 | + | else false) | |
178 | + | then throw("Tournament is not in registration phase!") | |
179 | + | else if ((ah == ak)) | |
180 | + | then throw("Tournament is currently full, please try again later!") | |
181 | + | else { | |
182 | + | let ab = if ((size(Z.payments) == 1)) | |
183 | + | then Z.payments[0] | |
184 | + | else throw("Please attach exactly one payment") | |
185 | + | let al = { | |
186 | + | let l = ab.assetId | |
187 | + | if ($isInstanceOf(l, "Unit")) | |
188 | + | then { | |
189 | + | let m = l | |
190 | + | "" | |
191 | + | } | |
192 | + | else if ($isInstanceOf(l, "ByteVector")) | |
193 | + | then { | |
194 | + | let m = l | |
195 | + | toBase58String(m) | |
196 | + | } | |
197 | + | else throw("Match error") | |
198 | + | } | |
199 | + | let am = getIntegerValue(this, D(q)) | |
200 | + | let an = getStringValue(this, E(q)) | |
201 | + | if ((am != ab.amount)) | |
202 | + | then throw(("Attached payment amount is invalid, must be " + toString(am))) | |
203 | + | else if ((an != al)) | |
204 | + | then throw(("Attached payment asset id is invalid, must be " + an)) | |
205 | + | else { | |
206 | + | let ac = toBase58String(Z.caller.bytes) | |
207 | + | let ai = (j(u(q)) + ab.amount) | |
208 | + | let aj = fraction(ai, g, 100) | |
209 | + | $Tuple2([BooleanEntry(t(q, ac), true), IntegerEntry(p(q, ac), ab.amount), StringEntry(s(q, ac), al), IntegerEntry(A(q), (ah + 1)), IntegerEntry(u(q), ai), IntegerEntry(v(q), (ai - aj))], 1) | |
210 | + | } | |
211 | + | } | |
212 | + | } | |
213 | + | ||
214 | + | ||
215 | + | ||
216 | + | @Callable(Z) | |
217 | + | func cancelTournament (q) = { | |
218 | + | let ac = toBase58String(Z.caller.bytes) | |
219 | + | let ao = getStringValue(w(q)) | |
220 | + | let ap = if ((ao == ac)) | |
221 | + | then true | |
222 | + | else if ((Z.caller == this)) | |
223 | + | then true | |
224 | + | else throw("Only tournament creator can cancel it!") | |
225 | + | if ((ap == ap)) | |
226 | + | then { | |
227 | + | let ae = getStringValue(I(q)) | |
228 | + | if (if ((Z.caller != this)) | |
229 | + | then (ae != "registration") | |
230 | + | else false) | |
231 | + | then throw("Tournament is not in registration phase!") | |
232 | + | else { | |
233 | + | let ah = j(A(q)) | |
234 | + | if ((ah > 0)) | |
235 | + | then throw("Cannot cancel a tournament when players are already registered to it!") | |
236 | + | else { | |
237 | + | let aq = getIntegerValue(y(q)) | |
238 | + | let ar = getStringValue(B(q)) | |
239 | + | $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(ao), aq, fromBase58String(ar))], 1) | |
240 | + | } | |
241 | + | } | |
242 | + | } | |
243 | + | else throw("Strict value is not equal to itself.") | |
244 | + | } | |
245 | + | ||
246 | + | ||
247 | + | ||
248 | + | @Callable(Z) | |
249 | + | func createTournament (q,as,at,au,av) = { | |
250 | + | let ab = if ((size(Z.payments) == 1)) | |
251 | + | then Z.payments[0] | |
252 | + | else { | |
253 | + | let ac = toBase58String(Z.caller.bytes) | |
254 | + | if ((ac == i)) | |
255 | + | then AttachedPayment(unit, 0) | |
256 | + | else throw("Please attach exactly one payment") | |
257 | + | } | |
258 | + | let ao = { | |
259 | + | let l = getString(w(q)) | |
260 | + | if ($isInstanceOf(l, "String")) | |
261 | + | then { | |
262 | + | let aw = l | |
263 | + | throw(("Tournament already exists with this id " + q)) | |
264 | + | } | |
265 | + | else unit | |
266 | + | } | |
267 | + | if ((ao == ao)) | |
268 | + | then { | |
269 | + | let ax = { | |
270 | + | let l = ab.assetId | |
271 | + | if ($isInstanceOf(l, "Unit")) | |
272 | + | then { | |
273 | + | let m = l | |
274 | + | "" | |
275 | + | } | |
276 | + | else if ($isInstanceOf(l, "ByteVector")) | |
277 | + | then { | |
278 | + | let m = l | |
279 | + | toBase58String(m) | |
280 | + | } | |
281 | + | else throw("Match error") | |
282 | + | } | |
283 | + | let ay = { | |
284 | + | let l = ab.assetId | |
285 | + | if ($isInstanceOf(l, "Unit")) | |
286 | + | then { | |
287 | + | let m = l | |
288 | + | ["Waves", 8] | |
289 | + | } | |
290 | + | else if ($isInstanceOf(l, "ByteVector")) | |
291 | + | then { | |
292 | + | let m = l | |
293 | + | let az = assetInfo(m) | |
294 | + | if ($isInstanceOf(az, "Asset")) | |
295 | + | then { | |
296 | + | let aA = az | |
297 | + | [aA.name, aA.decimals] | |
298 | + | } | |
299 | + | else throw("Can't find asset") | |
300 | + | } | |
301 | + | else throw("Match error") | |
302 | + | } | |
303 | + | let aB = { | |
304 | + | let l = assetInfo(fromBase58String(av)) | |
305 | + | if ($isInstanceOf(l, "Asset")) | |
306 | + | then { | |
307 | + | let aA = l | |
308 | + | [aA.name, aA.decimals] | |
309 | + | } | |
310 | + | else ["", 0] | |
311 | + | } | |
312 | + | let ac = toBase58String(Z.caller.bytes) | |
313 | + | $Tuple2([IntegerEntry(y(q), ab.amount), IntegerEntry(A(q), 0), IntegerEntry(z(q), at), StringEntry(B(q), ax), StringEntry(C(q), { | |
314 | + | let aC = ay[0] | |
315 | + | if ($isInstanceOf(aC, "String")) | |
316 | + | then aC | |
317 | + | else throw(($getType(aC) + " couldn't be cast to String")) | |
318 | + | }), IntegerEntry(H(q), { | |
319 | + | let aC = ay[1] | |
320 | + | if ($isInstanceOf(aC, "Int")) | |
321 | + | then aC | |
322 | + | else throw(($getType(aC) + " couldn't be cast to Int")) | |
323 | + | }), StringEntry(I(q), "registration"), IntegerEntry(D(q), au), StringEntry(F(q), { | |
324 | + | let aC = aB[0] | |
325 | + | if ($isInstanceOf(aC, "String")) | |
326 | + | then aC | |
327 | + | else throw(($getType(aC) + " couldn't be cast to String")) | |
328 | + | }), IntegerEntry(G(q), { | |
329 | + | let aC = aB[1] | |
330 | + | if ($isInstanceOf(aC, "Int")) | |
331 | + | then aC | |
332 | + | else throw(($getType(aC) + " couldn't be cast to Int")) | |
333 | + | }), StringEntry(E(q), av), StringEntry(x(q), as), StringEntry(w(q), ac)], 1) | |
334 | + | } | |
335 | + | else throw("Strict value is not equal to itself.") | |
336 | + | } | |
337 | + | ||
338 | + | ||
339 | + | ||
340 | + | @Callable(Z) | |
341 | + | func startTournament (q) = if ((Z.caller != this)) | |
342 | + | then throw("Admin Only") | |
343 | + | else $Tuple2([StringEntry(I(q), "started")], 1) | |
344 | + | ||
345 | + | ||
346 | + | ||
347 | + | @Callable(Z) | |
348 | + | func finishTournament (q,aD) = if ((Z.caller != this)) | |
349 | + | then throw("Admin Only") | |
350 | + | else { | |
351 | + | let ao = getStringValue(w(q)) | |
352 | + | let aE = j(u(q)) | |
353 | + | let aF = getIntegerValue(D(q)) | |
354 | + | let aG = { | |
355 | + | let l = getString(E(q)) | |
356 | + | if ($isInstanceOf(l, "String")) | |
357 | + | then { | |
358 | + | let aH = l | |
359 | + | if ((aH == "")) | |
360 | + | then unit | |
361 | + | else fromBase58String(aH) | |
362 | + | } | |
363 | + | else unit | |
364 | + | } | |
365 | + | let aI = fraction(aE, g, 100) | |
366 | + | let aq = getIntegerValue(y(q)) | |
367 | + | if ((aq > 0)) | |
368 | + | then $Tuple2([StringEntry(L(q), aD), StringEntry(I(q), "finished"), IntegerEntry(J(q), aI), ScriptTransfer(addressFromStringValue(ao), (aE - aI), aG)], 1) | |
369 | + | else { | |
370 | + | let aJ = fraction(aI, 20, 100) | |
371 | + | $Tuple2([StringEntry(L(q), aD), StringEntry(I(q), "finished"), IntegerEntry(J(q), aI), IntegerEntry(K(q), aJ), ScriptTransfer(addressFromStringValue(ao), (aI - aJ), aG)], 1) | |
372 | + | } | |
373 | + | } | |
374 | + | ||
375 | + | ||
376 | + | ||
377 | + | @Callable(Z) | |
378 | + | func playerExitGame (N,W,aK) = if ((Z.caller != this)) | |
379 | + | then throw("Admin Only") | |
380 | + | else { | |
381 | + | let aL = j(Q(W)) | |
382 | + | let aM = j(S(W, N)) | |
383 | + | $Tuple2([IntegerEntry(Q(W), (aL - aM)), IntegerEntry(S(W, N), 0), ScriptTransfer(addressFromStringValue(W), aK, fromBase58String(h))], 1) | |
384 | + | } | |
385 | + | ||
386 | + | ||
387 | + | ||
388 | + | @Callable(Z) | |
389 | + | func lockFundsForGame (N) = { | |
390 | + | let ab = if ((size(Z.payments) == 1)) | |
391 | + | then Z.payments[0] | |
392 | + | else throw("Please attach exactly one payment") | |
393 | + | if ((ab.assetId != fromBase58String(h))) | |
394 | + | then throw("You can only deposit USDN") | |
395 | + | else { | |
396 | + | let ac = toBase58String(Z.caller.bytes) | |
397 | + | let aL = j(Q(ac)) | |
398 | + | let aN = j(R(ac)) | |
399 | + | $Tuple2([IntegerEntry(Q(ac), (aL + ab.amount)), IntegerEntry(R(ac), (aN + ab.amount)), IntegerEntry(S(ac, N), ab.amount)], 1) | |
400 | + | } | |
401 | + | } | |
402 | + | ||
403 | + | ||
404 | + | @Verifier(aO) | |
405 | + | func aP () = sigVerify(aO.bodyBytes, aO.proofs[0], aO.senderPublicKey) | |
406 | + |
github/deemru/w8io/026f985 29.45 ms ◑