tx · JBcAPHuhATkoUnwnNuyy92tkUdHURTsfSEdMvtXofvGm

3MyGudsuRJvLhsUjiQmxb1XakvxaLH3HD6L:  -0.01000000 Waves

2022.09.15 22:51 [2230666] smart account 3MyGudsuRJvLhsUjiQmxb1XakvxaLH3HD6L > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
25.65 ms