tx · FxN4rwRzeAP3Q9ReyULee7N62wNExCRPgpCMdSvmFKEZ 3MziHAi4DvL9Kw17pxkcdEuk8YnnwGidT7G: -0.01100000 Waves 2022.09.25 01:42 [2243831] smart account 3MziHAi4DvL9Kw17pxkcdEuk8YnnwGidT7G > SELF 0.00000000 Waves
{ "type": 13, "id": "FxN4rwRzeAP3Q9ReyULee7N62wNExCRPgpCMdSvmFKEZ", "fee": 1100000, "feeAssetId": null, "timestamp": 1664059415692, "version": 2, "chainId": 84, "sender": "3MziHAi4DvL9Kw17pxkcdEuk8YnnwGidT7G", "senderPublicKey": "2DjA7PW4uAmVxbQcmv9KVPPFhBhYYwLkyeeg45btWLKr", "proofs": [ "pce1AGCsrq2Y7FSS1YNAwcFVbww7EWHcksLYsucA46qg4zq2zzpnwPTejyT4Yb3RURpWxqpMXCzAPktRf8ToKiD" ], "script": "base64:BgI1CAISAwoBCBIAEgMKAQgSBgoECAEBCBIECgIICBIFCgMICAESAwoBCBIAEgUKAwgICBIAEgAfAAV3YXZlcwCAwtcvAA50aWNrZXRQcmljZUludADAhD0AC3RpY2tldFByaWNlBQ50aWNrZXRQcmljZUludAAGaW52RmVlAKDCHgASd2l0aGRyYXdGZWVQZXJjZW50AAUAFmZlZUNvbGxlY3RvckFkZHJlc3NLZXkCE2ZlZUNvbGxlY3RvckFkZHJlc3MADmRlcG9zaXRBc3NldElkAiw1dWUxZml1VjZqNlVCcjZYZjI4UW1zNnk1RnF6S3RxdmF4eGh3dTdoVFE1OAENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAESZ2V0VGlja2V0c0NvdW50S2V5AQ1hZGRyZXNzU3RyaW5nCQCsAgIFDWFkZHJlc3NTdHJpbmcCDV90aWNrZXRzQ291bnQBHXRpY2tldEZvclRvdXJuYW1lbnRGb3JBY2NvdW50Agx0b3VybmFtZW50SWQHY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HJpY2UJAAIBCQCsAgIJAKwCAgIfVGhlIHBheW1lbnQgbXVzdCBiZSBvZiBleGFjdGx5IAkApAMBBQ50aWNrZXRQcmljZUludAIGIHdhdmVzBA1jYWxsZXJBZGRyU3RyCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEE2N1cnJlbnRUaWNrZXRzQ291bnQJAQ10cnlHZXRJbnRlZ2VyAQkBEmdldFRpY2tldHNDb3VudEtleQEFDWNhbGxlckFkZHJTdHIJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgkBEmdldFRpY2tldHNDb3VudEtleQEFDWNhbGxlckFkZHJTdHIJAGQCBRNjdXJyZW50VGlja2V0c0NvdW50AAEFA25pbAABAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleTespGY=", "height": 2243831, "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 = "5ue1fiuV6j6UBr6Xf28Qms6y5FqzKtqvaxxhwu7hTQ58" | |
17 | + | ||
18 | + | func h (i) = { | |
19 | + | let j = getInteger(this, i) | |
20 | + | if ($isInstanceOf(j, "Int")) | |
21 | + | then { | |
22 | + | let k = j | |
23 | + | k | |
24 | + | } | |
25 | + | else 0 | |
26 | + | } | |
27 | + | ||
28 | + | ||
29 | + | func l (m) = (m + "_ticketsCount") | |
30 | + | ||
31 | + | ||
32 | + | func n (o,p) = ((o + "_ticketForAccount_") + p) | |
33 | + | ||
34 | + | ||
35 | + | func q (o) = (o + "_tournamentTotalBuyInCollectedAmount") | |
36 | + | ||
37 | + | ||
38 | + | func r (o) = (o + "_tournamentPrizeAmount") | |
39 | + | ||
40 | + | ||
41 | + | func s (o) = (o + "_tournamentMaxPlayersCount") | |
42 | + | ||
43 | + | ||
44 | + | func t (o) = (o + "_tournamentPlayersCount") | |
45 | + | ||
46 | + | ||
47 | + | func u (o) = (o + "_tournamentPrizeAssetId") | |
48 | + | ||
49 | + | ||
50 | + | func v (o) = (o + "_tournamentPrizeAssetName") | |
51 | + | ||
52 | + | ||
53 | + | func w (o) = (o + "_tournamentBuyInAmount") | |
54 | + | ||
55 | + | ||
56 | + | func x (o) = (o + "_tournamentBuyInAssetId") | |
57 | + | ||
58 | + | ||
59 | + | func y (o) = (o + "_tournamentBuyInAssetName") | |
60 | + | ||
61 | + | ||
62 | + | func z (o) = (o + "_tournamentBuyInAssetDecimals") | |
63 | + | ||
64 | + | ||
65 | + | func A (o) = (o + "_tournamentPrizeAssetDecimals") | |
66 | + | ||
67 | + | ||
68 | + | func B (o) = (o + "_tournamentStatus") | |
69 | + | ||
70 | + | ||
71 | + | func C (o) = (o + "_tournamentWinningTransactionId") | |
72 | + | ||
73 | + | ||
74 | + | func D (E) = (E + "_winner") | |
75 | + | ||
76 | + | ||
77 | + | func F (G) = (G + "_availableFunds") | |
78 | + | ||
79 | + | ||
80 | + | func H (G) = (G + "_totalLockedFunds") | |
81 | + | ||
82 | + | ||
83 | + | func I (G) = (G + "_lockedFundsTotalHistory") | |
84 | + | ||
85 | + | ||
86 | + | func J (G,E) = ((G + "_lockedFunds_") + E) | |
87 | + | ||
88 | + | ||
89 | + | func K (G) = (G + "_availableRewards") | |
90 | + | ||
91 | + | ||
92 | + | func L (m) = h(l(m)) | |
93 | + | ||
94 | + | ||
95 | + | func M (N) = { | |
96 | + | let O = L(N) | |
97 | + | let P = (O - 1) | |
98 | + | if ((0 > P)) | |
99 | + | then 0 | |
100 | + | else P | |
101 | + | } | |
102 | + | ||
103 | + | ||
104 | + | @Callable(Q) | |
105 | + | func setFeeCollectorAddress (R) = if ((Q.caller != this)) | |
106 | + | then throw("Admin Only") | |
107 | + | else [StringEntry(f, R)] | |
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | @Callable(Q) | |
112 | + | func depositFunds () = { | |
113 | + | let S = if ((size(Q.payments) == 1)) | |
114 | + | then Q.payments[0] | |
115 | + | else throw("Please attach exactly one payment") | |
116 | + | if ((S.assetId != fromBase58String(g))) | |
117 | + | then throw("You can only deposit USDN") | |
118 | + | else { | |
119 | + | let T = toBase58String(Q.caller.bytes) | |
120 | + | let U = h(F(T)) | |
121 | + | $Tuple2([IntegerEntry(F(T), (U + S.amount))], 1) | |
122 | + | } | |
123 | + | } | |
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | @Callable(Q) | |
128 | + | func signUpToTournament (o) = { | |
129 | + | let V = getIntegerValue(this, s(o)) | |
130 | + | let W = h(t(o)) | |
131 | + | let X = getStringValue(B(o)) | |
132 | + | if ((X != "registration")) | |
133 | + | then throw("Tournament is not in registration phase!") | |
134 | + | else if ((W == V)) | |
135 | + | then throw("Tournament is currently full, please try again later!") | |
136 | + | else { | |
137 | + | let S = if ((size(Q.payments) == 1)) | |
138 | + | then Q.payments[0] | |
139 | + | else throw("Please attach exactly one payment") | |
140 | + | let Y = { | |
141 | + | let j = S.assetId | |
142 | + | if ($isInstanceOf(j, "Unit")) | |
143 | + | then { | |
144 | + | let k = j | |
145 | + | "" | |
146 | + | } | |
147 | + | else if ($isInstanceOf(j, "ByteVector")) | |
148 | + | then { | |
149 | + | let k = j | |
150 | + | toBase58String(k) | |
151 | + | } | |
152 | + | else throw("Match error") | |
153 | + | } | |
154 | + | let Z = getIntegerValue(this, w(o)) | |
155 | + | let aa = getStringValue(this, x(o)) | |
156 | + | if ((Z != S.amount)) | |
157 | + | then throw(("Attached payment amount is invalid, must be " + toString(Z))) | |
158 | + | else if ((aa != Y)) | |
159 | + | then throw(("Attached payment asset id is invalid, must be " + aa)) | |
160 | + | else { | |
161 | + | let T = toBase58String(Q.caller.bytes) | |
162 | + | let ab = h(q(o)) | |
163 | + | $Tuple2([BooleanEntry(n(o, T), true), IntegerEntry(t(o), (W + 1)), IntegerEntry(q(o), (ab + S.amount))], 1) | |
164 | + | } | |
165 | + | } | |
166 | + | } | |
167 | + | ||
168 | + | ||
169 | + | ||
170 | + | @Callable(Q) | |
171 | + | func createTournament (o,ac,ad,ae) = { | |
172 | + | let S = if ((size(Q.payments) == 1)) | |
173 | + | then Q.payments[0] | |
174 | + | else throw("Please attach exactly one payment") | |
175 | + | let af = { | |
176 | + | let j = S.assetId | |
177 | + | if ($isInstanceOf(j, "Unit")) | |
178 | + | then { | |
179 | + | let k = j | |
180 | + | "" | |
181 | + | } | |
182 | + | else if ($isInstanceOf(j, "ByteVector")) | |
183 | + | then { | |
184 | + | let k = j | |
185 | + | toBase58String(k) | |
186 | + | } | |
187 | + | else throw("Match error") | |
188 | + | } | |
189 | + | let ag = { | |
190 | + | let j = S.assetId | |
191 | + | if ($isInstanceOf(j, "Unit")) | |
192 | + | then { | |
193 | + | let k = j | |
194 | + | ["Waves", 8] | |
195 | + | } | |
196 | + | else if ($isInstanceOf(j, "ByteVector")) | |
197 | + | then { | |
198 | + | let k = j | |
199 | + | let ah = assetInfo(k) | |
200 | + | if ($isInstanceOf(ah, "Asset")) | |
201 | + | then { | |
202 | + | let ai = ah | |
203 | + | [ai.name, ai.decimals] | |
204 | + | } | |
205 | + | else throw("Can't find asset") | |
206 | + | } | |
207 | + | else throw("Match error") | |
208 | + | } | |
209 | + | let aj = { | |
210 | + | let j = assetInfo(fromBase58String(ae)) | |
211 | + | if ($isInstanceOf(j, "Asset")) | |
212 | + | then { | |
213 | + | let ai = j | |
214 | + | [ai.name, ai.decimals] | |
215 | + | } | |
216 | + | else ["", 0] | |
217 | + | } | |
218 | + | $Tuple2([IntegerEntry(r(o), S.amount), IntegerEntry(s(o), ac), StringEntry(u(o), af), StringEntry(v(o), { | |
219 | + | let ak = ag[0] | |
220 | + | if ($isInstanceOf(ak, "String")) | |
221 | + | then ak | |
222 | + | else throw(($getType(ag[0]) + " couldn't be cast to String")) | |
223 | + | }), IntegerEntry(A(o), { | |
224 | + | let ak = ag[1] | |
225 | + | if ($isInstanceOf(ak, "Int")) | |
226 | + | then ak | |
227 | + | else throw(($getType(ag[1]) + " couldn't be cast to Int")) | |
228 | + | }), StringEntry(B(o), "registration"), IntegerEntry(w(o), ad), StringEntry(y(o), { | |
229 | + | let ak = aj[0] | |
230 | + | if ($isInstanceOf(ak, "String")) | |
231 | + | then ak | |
232 | + | else throw(($getType(aj[0]) + " couldn't be cast to String")) | |
233 | + | }), IntegerEntry(z(o), { | |
234 | + | let ak = aj[1] | |
235 | + | if ($isInstanceOf(ak, "Int")) | |
236 | + | then ak | |
237 | + | else throw(($getType(aj[1]) + " couldn't be cast to Int")) | |
238 | + | }), StringEntry(x(o), ae)], 1) | |
239 | + | } | |
240 | + | ||
241 | + | ||
242 | + | ||
243 | + | @Callable(Q) | |
244 | + | func finishTournament (o,al) = if ((Q.caller != this)) | |
245 | + | then throw("Admin Only") | |
246 | + | else $Tuple2([StringEntry(C(o), al), StringEntry(B(o), "finished")], 1) | |
247 | + | ||
248 | + | ||
249 | + | ||
250 | + | @Callable(Q) | |
251 | + | func playerExitGame (E,N,am) = if ((Q.caller != this)) | |
252 | + | then throw("Admin Only") | |
253 | + | else { | |
254 | + | let an = h(H(N)) | |
255 | + | let ao = h(J(N, E)) | |
256 | + | $Tuple2([IntegerEntry(H(N), (an - ao)), IntegerEntry(J(N, E), 0), ScriptTransfer(addressFromStringValue(N), am, fromBase58String(g))], 1) | |
257 | + | } | |
258 | + | ||
259 | + | ||
260 | + | ||
261 | + | @Callable(Q) | |
262 | + | func lockFundsForGame (E) = { | |
263 | + | let S = if ((size(Q.payments) == 1)) | |
264 | + | then Q.payments[0] | |
265 | + | else throw("Please attach exactly one payment") | |
266 | + | if ((S.assetId != fromBase58String(g))) | |
267 | + | then throw("You can only deposit USDN") | |
268 | + | else { | |
269 | + | let T = toBase58String(Q.caller.bytes) | |
270 | + | let an = h(H(T)) | |
271 | + | let ap = h(I(T)) | |
272 | + | $Tuple2([IntegerEntry(H(T), (an + S.amount)), IntegerEntry(I(T), (ap + S.amount)), IntegerEntry(J(T, E), S.amount)], 1) | |
273 | + | } | |
274 | + | } | |
275 | + | ||
276 | + | ||
277 | + | ||
278 | + | @Callable(Q) | |
279 | + | func withdrawFunds () = { | |
280 | + | let T = toBase58String(Q.caller.bytes) | |
281 | + | let aq = addressFromStringValue(getStringValue(f)) | |
282 | + | let U = h(F(T)) | |
283 | + | let ar = fraction(U, e, 100) | |
284 | + | let as = (U - ar) | |
285 | + | if ((0 >= as)) | |
286 | + | then throw("No available funds to withdraw") | |
287 | + | else [IntegerEntry(F(T), 0), ScriptTransfer(Q.caller, as, fromBase58String(g)), ScriptTransfer(aq, ar, fromBase58String(g))] | |
288 | + | } | |
289 | + | ||
290 | + | ||
291 | + | ||
292 | + | @Callable(Q) | |
293 | + | func setWinnerHeadsUp (E,at,au) = if ((Q.caller != this)) | |
294 | + | then throw("Admin Only") | |
295 | + | else { | |
296 | + | let av = K(at) | |
297 | + | let aw = h(av) | |
298 | + | let ax = M(at) | |
299 | + | let ay = M(au) | |
300 | + | [StringEntry(D(E), at), IntegerEntry(av, (aw + (c * 2))), IntegerEntry(l(at), ax), IntegerEntry(l(au), ay)] | |
301 | + | } | |
302 | + | ||
303 | + | ||
304 | + | ||
305 | + | @Callable(Q) | |
306 | + | func withdrawRewards () = { | |
307 | + | let T = toBase58String(Q.caller.bytes) | |
308 | + | let aq = addressFromStringValue(getStringValue(f)) | |
309 | + | let aw = h(K(T)) | |
310 | + | let ar = fraction(aw, e, 100) | |
311 | + | let az = ((aw - d) - ar) | |
312 | + | if ((0 >= aw)) | |
313 | + | then throw("No available rewards to withdraw") | |
314 | + | else [IntegerEntry(K(T), 0), ScriptTransfer(Q.caller, az, unit), ScriptTransfer(aq, ar, unit)] | |
315 | + | } | |
316 | + | ||
317 | + | ||
318 | + | ||
319 | + | @Callable(Q) | |
320 | + | func buyTickets () = { | |
321 | + | let S = if ((size(Q.payments) == 1)) | |
322 | + | then Q.payments[0] | |
323 | + | else throw("Please attach exactly one payment") | |
324 | + | if (isDefined(S.assetId)) | |
325 | + | then throw("Tickets can only ibe purchased in Waves") | |
326 | + | else if ((S.amount != c)) | |
327 | + | then throw((("The payment must be of exactly " + toString(b)) + " waves")) | |
328 | + | else { | |
329 | + | let T = toBase58String(Q.caller.bytes) | |
330 | + | let aA = h(l(T)) | |
331 | + | $Tuple2([IntegerEntry(l(T), (aA + 1))], 1) | |
332 | + | } | |
333 | + | } | |
334 | + | ||
335 | + | ||
336 | + | @Verifier(aB) | |
337 | + | func aC () = sigVerify(aB.bodyBytes, aB.proofs[0], aB.senderPublicKey) | |
338 | + |
github/deemru/w8io/026f985 23.93 ms ◑