tx · AkPaxZnUXHXp5r718RqpFzA7td1J6CTDsRTU76RaLJyy

3MsFVHr6Tndc77gAYDoLnWDG6otpjYUs7A9:  -0.01100000 Waves

2022.09.25 21:30 [2245026] smart account 3MsFVHr6Tndc77gAYDoLnWDG6otpjYUs7A9 > SELF 0.00000000 Waves

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

github/deemru/w8io/026f985 
24.89 ms