tx · 4DQNUZy9y5U7sKNDm6pzvSJAEHAR8pZdGaNsqexDbaDq

3Mpr1wfDciEQw5PvCEx5kuWCvCek9pggFt6:  -0.01000000 Waves

2022.09.24 23:16 [2243683] smart account 3Mpr1wfDciEQw5PvCEx5kuWCvCek9pggFt6 > SELF 0.00000000 Waves

{ "type": 13, "id": "4DQNUZy9y5U7sKNDm6pzvSJAEHAR8pZdGaNsqexDbaDq", "fee": 1000000, "feeAssetId": null, "timestamp": 1664050584345, "version": 2, "chainId": 84, "sender": "3Mpr1wfDciEQw5PvCEx5kuWCvCek9pggFt6", "senderPublicKey": "3c4mSLT5SBjmdUSuGz4YLZTZncEGNkfpc8XknzZ2G1EF", "proofs": [ "5Y9mYQoxgozQxR93y57PhEUFfqis4SNX9rweTBMT9r5oJsFzyRKeYGKsKVn4isUMV6iaPiuCBRT6cky8tNV9SczH" ], "script": "base64:BgIvCAISAwoBCBIAEgUKAwgBCBIECgIICBIFCgMICAESAwoBCBIAEgUKAwgICBIAEgAbAAV3YXZlcwCAwtcvAA50aWNrZXRQcmljZUludADAhD0AC3RpY2tldFByaWNlBQ50aWNrZXRQcmljZUludAAGaW52RmVlAKDCHgASd2l0aGRyYXdGZWVQZXJjZW50AAUAFmZlZUNvbGxlY3RvckFkZHJlc3NLZXkCE2ZlZUNvbGxlY3RvckFkZHJlc3MADmRlcG9zaXRBc3NldElkAiw1dWUxZml1VjZqNlVCcjZYZjI4UW1zNnk1RnF6S3RxdmF4eGh3dTdoVFE1OAENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAESZ2V0VGlja2V0c0NvdW50S2V5AQ1hZGRyZXNzU3RyaW5nCQCsAgIFDWFkZHJlc3NTdHJpbmcCDV90aWNrZXRzQ291bnQBGHRvdXJuYW1lbnRQcml6ZUFtb3VudEtleQEMdG91cm5hbWVudElkCQCsAgIFDH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BBQ1jYWxsZXJBZGRyU3RyAAAJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBRZhY3R1YWxBdmFpbGFibGVSZXdhcmRzBQR1bml0CQDMCAIJAQ5TY3JpcHRUcmFuc2ZlcgMFEGZlZUNvbGxlY3RvckFkZHIFC3dpdGhkcmF3RmVlBQR1bml0BQNuaWwBaQEKYnV5VGlja2V0cwAEA3BtdAMJAAACCQCQAwEIBQFpCHBheW1lbnRzAAEJAJEDAggFAWkIcGF5bWVudHMAAAkAAgECIVBsZWFzZSBhdHRhY2ggZXhhY3RseSBvbmUgcGF5bWVudAMJAQlpc0RlZmluZWQBCAUDcG10B2Fzc2V0SWQJAAIBAidUaWNrZXRzIGNhbiBvbmx5IGliZSBwdXJjaGFzZWQgaW4gV2F2ZXMDCQECIT0CCAUDcG10BmFtb3VudAULdGlja2V0UHJpY2UJAAIBCQCsAgIJAKwCAgIfVGhlIHBheW1lbnQgbXVzdCBiZSBvZiBleGFjdGx5IAkApAMBBQ50aWNrZXRQcmljZUludAIGIHdhdmVzBA1jYWxsZXJBZGRyU3RyCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMEE2N1cnJlbnRUaWNrZXRzQ291bnQJAQ10cnlHZXRJbnRlZ2VyAQkBEmdldFRpY2tldHNDb3VudEtleQEFDWNhbGxlckFkZHJTdHIJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgkBEmdldFRpY2tldHNDb3VudEtleQEFDWNhbGxlckFkZHJTdHIJAGQCBRNjdXJyZW50VGlja2V0c0NvdW50AAEFA25pbAABAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleWeGbxY=", "height": 2243683, "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) = (o + "_tournamentPrizeAmount")
33+
34+
35+func p (o) = (o + "_tournamentPrizeAssetId")
36+
37+
38+func q (o) = (o + "_tournamentPrizeAssetName")
39+
40+
41+func r (o) = (o + "_tournamentBuyInAmount")
42+
43+
44+func s (o) = (o + "_tournamentBuyInAssetId")
45+
46+
47+func t (o) = (o + "_tournamentBuyInAssetName")
48+
49+
50+func u (o) = (o + "_tournamentBuyInAssetDecimals")
51+
52+
53+func v (o) = (o + "_tournamentPrizeAssetDecimals")
54+
55+
56+func w (o) = (o + "_tournamentStatus")
57+
58+
59+func x (o) = (o + "_tournamentWinningTransactionId")
60+
61+
62+func y (z) = (z + "_winner")
63+
64+
65+func A (B) = (B + "_availableFunds")
66+
67+
68+func C (B) = (B + "_totalLockedFunds")
69+
70+
71+func D (B) = (B + "_lockedFundsTotalHistory")
72+
73+
74+func E (B,z) = ((B + "_lockedFunds_") + z)
75+
76+
77+func F (B) = (B + "_availableRewards")
78+
79+
80+func G (m) = h(l(m))
81+
82+
83+func H (I) = {
84+ let J = G(I)
85+ let K = (J - 1)
86+ if ((0 > K))
87+ then 0
88+ else K
89+ }
90+
91+
92+@Callable(L)
93+func setFeeCollectorAddress (M) = if ((L.caller != this))
94+ then throw("Admin Only")
95+ else [StringEntry(f, M)]
96+
97+
98+
99+@Callable(L)
100+func depositFunds () = {
101+ let N = if ((size(L.payments) == 1))
102+ then L.payments[0]
103+ else throw("Please attach exactly one payment")
104+ if ((N.assetId != fromBase58String(g)))
105+ then throw("You can only deposit USDN")
106+ else {
107+ let O = toBase58String(L.caller.bytes)
108+ let P = h(A(O))
109+ $Tuple2([IntegerEntry(A(O), (P + N.amount))], 1)
110+ }
111+ }
112+
113+
114+
115+@Callable(L)
116+func createTournament (o,Q,R) = {
117+ let N = if ((size(L.payments) == 1))
118+ then L.payments[0]
119+ else throw("Please attach exactly one payment")
120+ let S = {
121+ let j = N.assetId
122+ if ($isInstanceOf(j, "Unit"))
123+ then {
124+ let k = j
125+ ""
126+ }
127+ else if ($isInstanceOf(j, "ByteVector"))
128+ then {
129+ let k = j
130+ toBase58String(k)
131+ }
132+ else throw("Match error")
133+ }
134+ let T = {
135+ let j = N.assetId
136+ if ($isInstanceOf(j, "Unit"))
137+ then {
138+ let k = j
139+["Waves", 8]
140+ }
141+ else if ($isInstanceOf(j, "ByteVector"))
142+ then {
143+ let k = j
144+ let U = assetInfo(k)
145+ if ($isInstanceOf(U, "Asset"))
146+ then {
147+ let V = U
148+[V.name, V.decimals]
149+ }
150+ else throw("Can't find asset")
151+ }
152+ else throw("Match error")
153+ }
154+ let W = {
155+ let j = assetInfo(fromBase58String(R))
156+ if ($isInstanceOf(j, "Asset"))
157+ then {
158+ let V = j
159+[V.name, V.decimals]
160+ }
161+ else ["", 0]
162+ }
163+ $Tuple2([IntegerEntry(n(o), N.amount), StringEntry(p(o), S), StringEntry(q(o), {
164+ let X = T[0]
165+ if ($isInstanceOf(X, "String"))
166+ then X
167+ else throw(($getType(T[0]) + " couldn't be cast to String"))
168+ }), IntegerEntry(v(o), {
169+ let X = T[1]
170+ if ($isInstanceOf(X, "Int"))
171+ then X
172+ else throw(($getType(T[1]) + " couldn't be cast to Int"))
173+ }), StringEntry(w(o), "registration"), IntegerEntry(r(o), Q), StringEntry(t(o), {
174+ let X = W[0]
175+ if ($isInstanceOf(X, "String"))
176+ then X
177+ else throw(($getType(W[0]) + " couldn't be cast to String"))
178+ }), IntegerEntry(u(o), {
179+ let X = W[1]
180+ if ($isInstanceOf(X, "Int"))
181+ then X
182+ else throw(($getType(W[1]) + " couldn't be cast to Int"))
183+ }), StringEntry(s(o), R)], 1)
184+ }
185+
186+
187+
188+@Callable(L)
189+func finishTournament (o,Y) = if ((L.caller != this))
190+ then throw("Admin Only")
191+ else $Tuple2([StringEntry(x(o), Y), StringEntry(w(o), "finished")], 1)
192+
193+
194+
195+@Callable(L)
196+func playerExitGame (z,I,Z) = if ((L.caller != this))
197+ then throw("Admin Only")
198+ else {
199+ let aa = h(C(I))
200+ let ab = h(E(I, z))
201+ $Tuple2([IntegerEntry(C(I), (aa - ab)), IntegerEntry(E(I, z), 0), ScriptTransfer(addressFromStringValue(I), Z, fromBase58String(g))], 1)
202+ }
203+
204+
205+
206+@Callable(L)
207+func lockFundsForGame (z) = {
208+ let N = if ((size(L.payments) == 1))
209+ then L.payments[0]
210+ else throw("Please attach exactly one payment")
211+ if ((N.assetId != fromBase58String(g)))
212+ then throw("You can only deposit USDN")
213+ else {
214+ let O = toBase58String(L.caller.bytes)
215+ let aa = h(C(O))
216+ let ac = h(D(O))
217+ $Tuple2([IntegerEntry(C(O), (aa + N.amount)), IntegerEntry(D(O), (ac + N.amount)), IntegerEntry(E(O, z), N.amount)], 1)
218+ }
219+ }
220+
221+
222+
223+@Callable(L)
224+func withdrawFunds () = {
225+ let O = toBase58String(L.caller.bytes)
226+ let ad = addressFromStringValue(getStringValue(f))
227+ let P = h(A(O))
228+ let ae = fraction(P, e, 100)
229+ let af = (P - ae)
230+ if ((0 >= af))
231+ then throw("No available funds to withdraw")
232+ else [IntegerEntry(A(O), 0), ScriptTransfer(L.caller, af, fromBase58String(g)), ScriptTransfer(ad, ae, fromBase58String(g))]
233+ }
234+
235+
236+
237+@Callable(L)
238+func setWinnerHeadsUp (z,ag,ah) = if ((L.caller != this))
239+ then throw("Admin Only")
240+ else {
241+ let ai = F(ag)
242+ let aj = h(ai)
243+ let ak = H(ag)
244+ let al = H(ah)
245+[StringEntry(y(z), ag), IntegerEntry(ai, (aj + (c * 2))), IntegerEntry(l(ag), ak), IntegerEntry(l(ah), al)]
246+ }
247+
248+
249+
250+@Callable(L)
251+func withdrawRewards () = {
252+ let O = toBase58String(L.caller.bytes)
253+ let ad = addressFromStringValue(getStringValue(f))
254+ let aj = h(F(O))
255+ let ae = fraction(aj, e, 100)
256+ let am = ((aj - d) - ae)
257+ if ((0 >= aj))
258+ then throw("No available rewards to withdraw")
259+ else [IntegerEntry(F(O), 0), ScriptTransfer(L.caller, am, unit), ScriptTransfer(ad, ae, unit)]
260+ }
261+
262+
263+
264+@Callable(L)
265+func buyTickets () = {
266+ let N = if ((size(L.payments) == 1))
267+ then L.payments[0]
268+ else throw("Please attach exactly one payment")
269+ if (isDefined(N.assetId))
270+ then throw("Tickets can only ibe purchased in Waves")
271+ else if ((N.amount != c))
272+ then throw((("The payment must be of exactly " + toString(b)) + " waves"))
273+ else {
274+ let O = toBase58String(L.caller.bytes)
275+ let an = h(l(O))
276+ $Tuple2([IntegerEntry(l(O), (an + 1))], 1)
277+ }
278+ }
279+
280+
281+@Verifier(ao)
282+func ap () = sigVerify(ao.bodyBytes, ao.proofs[0], ao.senderPublicKey)
283+

github/deemru/w8io/026f985 
32.52 ms