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