tx · AQGZtp25SwDPbQBYoHzSr2XGxb4t5gcYdy26w4WBRLMW

3N8AAVCWsARDFzZzMWAoc6fd1zgzURX75PW:  -0.01400000 Waves

2022.09.30 00:34 [2250946] smart account 3N8AAVCWsARDFzZzMWAoc6fd1zgzURX75PW > SELF 0.00000000 Waves

{ "type": 13, "id": "AQGZtp25SwDPbQBYoHzSr2XGxb4t5gcYdy26w4WBRLMW", "fee": 1400000, "feeAssetId": null, "timestamp": 1664487302484, "version": 2, "chainId": 84, "sender": "3N8AAVCWsARDFzZzMWAoc6fd1zgzURX75PW", "senderPublicKey": "4BCU8zQVCosScmMYyYVitbyjZVd3AdrWEdU4bouAv7RY", "proofs": [ "3w5tQ6FN4bS31SAXBCv8ZWDdE9tAmWi7sufRvZNWZPZiFxaRr8quPAC1r3suC6x2ksJqDNKCippyyHaAfhKHZK4M" ], "script": "base64:BgJACAISAwoBCBIAEgMKAQgSAwoBCBIDCgEIEgcKBQgIAQEIEgQKAggIEgUKAwgIARIDCgEIEgASBQoDCAgIEgASACMABXdhdmVzAIDC1y8ADnRpY2tldFByaWNlSW50AMCEPQALdGlja2V0UHJpY2UFDnRpY2tldFByaWNlSW50AAZpbnZGZWUAoMIeABJ3aXRoZHJhd0ZlZVBlcmNlbnQABQAWZmVlQ29sbGVjdG9yQWRkcmVzc0tleQITZmVlQ29sbGVjdG9yQWRkcmVzcwAOZGVwb3NpdEFzc2V0SWQCLDV1ZTFmaXVWNmo2VUJyNlhmMjhRbXM2eTVGcXpLdHF2YXh4aHd1N2hUUTU4AQ10cnlHZXRJbnRlZ2VyAQNrZXkEByRtYXRjaDAJAJoIAgUEdGhpcwUDa2V5AwkAAQIFByRtYXRjaDACA0ludAQBYgUHJG1hdGNoMAUBYgAAARJnZXRUaWNrZXRzQ291bnRLZXkBDWFkZHJlc3NTdHJpbmcJAKwCAgUNYWRkcmVzc1N0cmluZwINX3RpY2tldHNDb3VudAEiYnV5SW5BbW91bnRGb3JUb3VybmFtZW50Rm9yQW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WNrZXRzQ291bnQAAQUDbmlsAAEBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5Z0lP0g==", "height": 2250946, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
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 + "_buyInAmountForAccount_") + p)
33+
34+
35+func q (o,p) = ((o + "_buyInAssetIdForAccount_") + p)
36+
37+
38+func r (o,p) = ((o + "_ticketForAccount_") + p)
39+
40+
41+func s (o) = (o + "_tournamentTotalBuyInCollectedAmount")
42+
43+
44+func t (o) = (o + "_tournamentCreator")
45+
46+
47+func u (o) = (o + "_tournamentName")
48+
49+
50+func v (o) = (o + "_tournamentPrizeAmount")
51+
52+
53+func w (o) = (o + "_tournamentMaxPlayersCount")
54+
55+
56+func x (o) = (o + "_tournamentPlayersCount")
57+
58+
59+func y (o) = (o + "_tournamentPrizeAssetId")
60+
61+
62+func z (o) = (o + "_tournamentPrizeAssetName")
63+
64+
65+func A (o) = (o + "_tournamentBuyInAmount")
66+
67+
68+func B (o) = (o + "_tournamentBuyInAssetId")
69+
70+
71+func C (o) = (o + "_tournamentBuyInAssetName")
72+
73+
74+func D (o) = (o + "_tournamentBuyInAssetDecimals")
75+
76+
77+func E (o) = (o + "_tournamentPrizeAssetDecimals")
78+
79+
80+func F (o) = (o + "_tournamentStatus")
81+
82+
83+func G (o) = (o + "_tournamentWinningTransactionId")
84+
85+
86+func H (I) = (I + "_winner")
87+
88+
89+func J (K) = (K + "_availableFunds")
90+
91+
92+func L (K) = (K + "_totalLockedFunds")
93+
94+
95+func M (K) = (K + "_lockedFundsTotalHistory")
96+
97+
98+func N (K,I) = ((K + "_lockedFunds_") + I)
99+
100+
101+func O (K) = (K + "_availableRewards")
102+
103+
104+func P (m) = h(l(m))
105+
106+
107+func Q (R) = {
108+ let S = P(R)
109+ let T = (S - 1)
110+ if ((0 > T))
111+ then 0
112+ else T
113+ }
114+
115+
116+@Callable(U)
117+func setFeeCollectorAddress (V) = if ((U.caller != this))
118+ then throw("Admin Only")
119+ else [StringEntry(f, V)]
120+
121+
122+
123+@Callable(U)
124+func depositFunds () = {
125+ let W = if ((size(U.payments) == 1))
126+ then U.payments[0]
127+ else throw("Please attach exactly one payment")
128+ if ((W.assetId != fromBase58String(g)))
129+ then throw("You can only deposit USDN")
130+ else {
131+ let X = toBase58String(U.caller.bytes)
132+ let Y = h(J(X))
133+ $Tuple2([IntegerEntry(J(X), (Y + W.amount))], 1)
134+ }
135+ }
136+
137+
138+
139+@Callable(U)
140+func cancelSignUpToTournament (o) = {
141+ let Z = getStringValue(F(o))
142+ if ((Z != "registration"))
143+ then throw("Tournament is not in registration phase!")
144+ else {
145+ let X = toBase58String(U.caller.bytes)
146+ let aa = getIntegerValue(n(o, X))
147+ let ab = getStringValue(q(o, X))
148+ let ac = h(x(o))
149+ let ad = h(s(o))
150+ $Tuple2([ScriptTransfer(addressFromStringValue(X), aa, fromBase58String(ab)), DeleteEntry(r(o, X)), DeleteEntry(n(o, X)), DeleteEntry(q(o, X)), IntegerEntry(x(o), (ac - 1)), IntegerEntry(s(o), (ad - aa))], 1)
151+ }
152+ }
153+
154+
155+
156+@Callable(U)
157+func signUpToTournament (o) = {
158+ let ae = getIntegerValue(this, w(o))
159+ let ac = h(x(o))
160+ let Z = getStringValue(F(o))
161+ if ((Z != "registration"))
162+ then throw("Tournament is not in registration phase!")
163+ else if ((ac == ae))
164+ then throw("Tournament is currently full, please try again later!")
165+ else {
166+ let W = if ((size(U.payments) == 1))
167+ then U.payments[0]
168+ else throw("Please attach exactly one payment")
169+ let af = {
170+ let j = W.assetId
171+ if ($isInstanceOf(j, "Unit"))
172+ then {
173+ let k = j
174+ ""
175+ }
176+ else if ($isInstanceOf(j, "ByteVector"))
177+ then {
178+ let k = j
179+ toBase58String(k)
180+ }
181+ else throw("Match error")
182+ }
183+ let ag = getIntegerValue(this, A(o))
184+ let ah = getStringValue(this, B(o))
185+ if ((ag != W.amount))
186+ then throw(("Attached payment amount is invalid, must be " + toString(ag)))
187+ else if ((ah != af))
188+ then throw(("Attached payment asset id is invalid, must be " + ah))
189+ else {
190+ let X = toBase58String(U.caller.bytes)
191+ let ad = h(s(o))
192+ $Tuple2([BooleanEntry(r(o, X), true), IntegerEntry(n(o, X), W.amount), StringEntry(q(o, X), af), IntegerEntry(x(o), (ac + 1)), IntegerEntry(s(o), (ad + W.amount))], 1)
193+ }
194+ }
195+ }
196+
197+
198+
199+@Callable(U)
200+func cancelTournament (o) = {
201+ let X = toBase58String(U.caller.bytes)
202+ let ai = getStringValue(t(o))
203+ if ((ai != X))
204+ then throw("Only tournament creator can cancel it!")
205+ else {
206+ let Z = getStringValue(F(o))
207+ if ((Z != "registration"))
208+ then throw("Tournament is not in registration phase!")
209+ else {
210+ let ac = h(x(o))
211+ if ((ac > 0))
212+ then throw("Cannot cancel a tournament when players are already registered to it!")
213+ else {
214+ let aj = getIntegerValue(v(o))
215+ let ak = getStringValue(y(o))
216+ $Tuple2([DeleteEntry(v(o)), DeleteEntry(x(o)), DeleteEntry(w(o)), DeleteEntry(y(o)), DeleteEntry(z(o)), DeleteEntry(E(o)), DeleteEntry(F(o)), DeleteEntry(A(o)), DeleteEntry(C(o)), DeleteEntry(D(o)), DeleteEntry(B(o)), DeleteEntry(u(o)), DeleteEntry(t(o)), ScriptTransfer(addressFromStringValue(ai), aj, fromBase58String(ak))], 1)
217+ }
218+ }
219+ }
220+ }
221+
222+
223+
224+@Callable(U)
225+func createTournament (o,al,am,an,ao) = {
226+ let W = if ((size(U.payments) == 1))
227+ then U.payments[0]
228+ else throw("Please attach exactly one payment")
229+ let ap = {
230+ let j = W.assetId
231+ if ($isInstanceOf(j, "Unit"))
232+ then {
233+ let k = j
234+ ""
235+ }
236+ else if ($isInstanceOf(j, "ByteVector"))
237+ then {
238+ let k = j
239+ toBase58String(k)
240+ }
241+ else throw("Match error")
242+ }
243+ let aq = {
244+ let j = W.assetId
245+ if ($isInstanceOf(j, "Unit"))
246+ then {
247+ let k = j
248+["Waves", 8]
249+ }
250+ else if ($isInstanceOf(j, "ByteVector"))
251+ then {
252+ let k = j
253+ let ar = assetInfo(k)
254+ if ($isInstanceOf(ar, "Asset"))
255+ then {
256+ let as = ar
257+[as.name, as.decimals]
258+ }
259+ else throw("Can't find asset")
260+ }
261+ else throw("Match error")
262+ }
263+ let at = {
264+ let j = assetInfo(fromBase58String(ao))
265+ if ($isInstanceOf(j, "Asset"))
266+ then {
267+ let as = j
268+[as.name, as.decimals]
269+ }
270+ else ["", 0]
271+ }
272+ let X = toBase58String(U.caller.bytes)
273+ $Tuple2([IntegerEntry(v(o), W.amount), IntegerEntry(x(o), 0), IntegerEntry(w(o), am), StringEntry(y(o), ap), StringEntry(z(o), {
274+ let au = aq[0]
275+ if ($isInstanceOf(au, "String"))
276+ then au
277+ else throw(($getType(aq[0]) + " couldn't be cast to String"))
278+ }), IntegerEntry(E(o), {
279+ let au = aq[1]
280+ if ($isInstanceOf(au, "Int"))
281+ then au
282+ else throw(($getType(aq[1]) + " couldn't be cast to Int"))
283+ }), StringEntry(F(o), "registration"), IntegerEntry(A(o), an), StringEntry(C(o), {
284+ let au = at[0]
285+ if ($isInstanceOf(au, "String"))
286+ then au
287+ else throw(($getType(at[0]) + " couldn't be cast to String"))
288+ }), IntegerEntry(D(o), {
289+ let au = at[1]
290+ if ($isInstanceOf(au, "Int"))
291+ then au
292+ else throw(($getType(at[1]) + " couldn't be cast to Int"))
293+ }), StringEntry(B(o), ao), StringEntry(u(o), al), StringEntry(t(o), X)], 1)
294+ }
295+
296+
297+
298+@Callable(U)
299+func finishTournament (o,av) = if ((U.caller != this))
300+ then throw("Admin Only")
301+ else $Tuple2([StringEntry(G(o), av), StringEntry(F(o), "finished")], 1)
302+
303+
304+
305+@Callable(U)
306+func playerExitGame (I,R,aw) = if ((U.caller != this))
307+ then throw("Admin Only")
308+ else {
309+ let ax = h(L(R))
310+ let ay = h(N(R, I))
311+ $Tuple2([IntegerEntry(L(R), (ax - ay)), IntegerEntry(N(R, I), 0), ScriptTransfer(addressFromStringValue(R), aw, fromBase58String(g))], 1)
312+ }
313+
314+
315+
316+@Callable(U)
317+func lockFundsForGame (I) = {
318+ let W = if ((size(U.payments) == 1))
319+ then U.payments[0]
320+ else throw("Please attach exactly one payment")
321+ if ((W.assetId != fromBase58String(g)))
322+ then throw("You can only deposit USDN")
323+ else {
324+ let X = toBase58String(U.caller.bytes)
325+ let ax = h(L(X))
326+ let az = h(M(X))
327+ $Tuple2([IntegerEntry(L(X), (ax + W.amount)), IntegerEntry(M(X), (az + W.amount)), IntegerEntry(N(X, I), W.amount)], 1)
328+ }
329+ }
330+
331+
332+
333+@Callable(U)
334+func withdrawFunds () = {
335+ let X = toBase58String(U.caller.bytes)
336+ let aA = addressFromStringValue(getStringValue(f))
337+ let Y = h(J(X))
338+ let aB = fraction(Y, e, 100)
339+ let aC = (Y - aB)
340+ if ((0 >= aC))
341+ then throw("No available funds to withdraw")
342+ else [IntegerEntry(J(X), 0), ScriptTransfer(U.caller, aC, fromBase58String(g)), ScriptTransfer(aA, aB, fromBase58String(g))]
343+ }
344+
345+
346+
347+@Callable(U)
348+func setWinnerHeadsUp (I,aD,aE) = if ((U.caller != this))
349+ then throw("Admin Only")
350+ else {
351+ let aF = O(aD)
352+ let aG = h(aF)
353+ let aH = Q(aD)
354+ let aI = Q(aE)
355+[StringEntry(H(I), aD), IntegerEntry(aF, (aG + (c * 2))), IntegerEntry(l(aD), aH), IntegerEntry(l(aE), aI)]
356+ }
357+
358+
359+
360+@Callable(U)
361+func withdrawRewards () = {
362+ let X = toBase58String(U.caller.bytes)
363+ let aA = addressFromStringValue(getStringValue(f))
364+ let aG = h(O(X))
365+ let aB = fraction(aG, e, 100)
366+ let aJ = ((aG - d) - aB)
367+ if ((0 >= aG))
368+ then throw("No available rewards to withdraw")
369+ else [IntegerEntry(O(X), 0), ScriptTransfer(U.caller, aJ, unit), ScriptTransfer(aA, aB, unit)]
370+ }
371+
372+
373+
374+@Callable(U)
375+func buyTickets () = {
376+ let W = if ((size(U.payments) == 1))
377+ then U.payments[0]
378+ else throw("Please attach exactly one payment")
379+ if (isDefined(W.assetId))
380+ then throw("Tickets can only ibe purchased in Waves")
381+ else if ((W.amount != c))
382+ then throw((("The payment must be of exactly " + toString(b)) + " waves"))
383+ else {
384+ let X = toBase58String(U.caller.bytes)
385+ let aK = h(l(X))
386+ $Tuple2([IntegerEntry(l(X), (aK + 1))], 1)
387+ }
388+ }
389+
390+
391+@Verifier(aL)
392+func aM () = sigVerify(aL.bodyBytes, aL.proofs[0], aL.senderPublicKey)
393+

github/deemru/w8io/026f985 
35.05 ms