tx · A8cJVJWaQKwAxd4vujfAewoobad9cUH9QD22x2YBGzyV 3Mr1kq2Xf6MTBbXFoxF2giBr5DWjc1RZm9S: -0.01600000 Waves 2024.10.03 15:19 [3310662] smart account 3Mr1kq2Xf6MTBbXFoxF2giBr5DWjc1RZm9S > SELF 0.00000000 Waves
{ "type": 13, "id": "A8cJVJWaQKwAxd4vujfAewoobad9cUH9QD22x2YBGzyV", "fee": 1600000, "feeAssetId": null, "timestamp": 1727958006639, "version": 2, "chainId": 84, "sender": "3Mr1kq2Xf6MTBbXFoxF2giBr5DWjc1RZm9S", "senderPublicKey": "6VfcgiUzfgdxbMEsGa5ZZ1vN8wDQxPGb4kUz8Kron4Pt", "proofs": [ "3gD1DKNSTX2mvF4W1PghXBi7CNx6Zk9yFE4XRJbqDdBHJJPkTENAY39NcHBvaPSz2qmQxb2sVuQDJfRH7Cxvpe9z" ], "script": "base64:BgIuCAISBAoCAQESBAoCAQESBAoCCAgSBAoCGAgSAwoBCBIDCgEIEgMKAQgSAwoBCCUBF3N0YXRpY0tleV9vcmFjbGVBZGRyZXNzAAIUc3RhdGljX29yYWNsZUFkZHJlc3MBFXN0YXRpY0tleV9odW50QWRkcmVzcwACEnN0YXRpY19odW50QWRkcmVzcwEYc3RhdGljS2V5X2JyZWVkZXJBZGRyZXNzAAIVc3RhdGljX2JyZWVkZXJBZGRyZXNzARRzdGF0aWNLZXlfZWdnQXNzZXRJZAACEXN0YXRpY19lZ2dBc3NldElkARdzdGF0aWNLZXlfbWluUGVyY2VudGFnZQACFHN0YXRpY19taW5QZXJjZW50YWdlARdzdGF0aWNLZXlfbWF4UGVyY2VudGFnZQACFHN0YXRpY19tYXhQZXJjZW50YWdlARtzdGF0aWNLZXlfYWNjZXNzSXRlbUFzc2V0SWQAAhhzdGF0aWNfYWNjZXNzSXRlbUFzc2V0SWQBGXN0YXRpY0tleV9hY2Nlc3NJdGVtUHJpY2UAAhZzdGF0aWNfYWNjZXNzSXRlbVByaWNlARZzdGF0aW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W50cnkCCQEac3RhdGljS2V5X3JlbnRTbG90c0dlbmVyYWwAAAUFA25pbABZ998O", "height": 3310662, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 1Mz7mwzezs2d338Rz2xSKHzeTQouTYDtwBNRdU2jdgP Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a () = "static_oracleAddress" | |
5 | 5 | ||
6 | 6 | ||
7 | 7 | func b () = "static_huntAddress" | |
8 | 8 | ||
9 | 9 | ||
10 | 10 | func c () = "static_breederAddress" | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func d () = "static_eggAssetId" | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func e () = "static_minPercentage" | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func f () = "static_maxPercentage" | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func g () = "static_accessItemAssetId" | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func h () = "static_accessItemPrice" | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func i () = "static_depositSteps" | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func j () = "static_rentSlots" | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func k (l) = (("duck_" + l) + "_owner") | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func m (l) = (("duck_" + l) + "_status") | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func n (l) = (("duck_" + l) + "_rentedBy") | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func o (l) = (("duck_" + l) + "_duration") | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p (l) = (("duck_" + l) + "_start_ts") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func q (l) = (("duck_" + l) + "_percentage") | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func r (l) = (("duck_" + l) + "_lastPaid") | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func s (t) = (("rented_" + t) + "_amount") | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func u (t) = (("spots_" + t) + "_amount") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func v (t,l) = (((("refund_" + t) + "_") + l) + "_amount") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func w (l) = ("access_funded_" + l) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func x (y) = (("address_" + y) + "_spotsBought") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func z (y) = (("address_" + y) + "_spotsBusy") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func A (B,C) = { | |
74 | 74 | let D = getString(B, C) | |
75 | 75 | if ($isInstanceOf(D, "String")) | |
76 | 76 | then { | |
77 | 77 | let E = D | |
78 | 78 | E | |
79 | 79 | } | |
80 | 80 | else "" | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func F (C) = A(this, C) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func G (B,C) = { | |
88 | 88 | let D = getInteger(B, C) | |
89 | 89 | if ($isInstanceOf(D, "Int")) | |
90 | 90 | then { | |
91 | 91 | let H = D | |
92 | 92 | H | |
93 | 93 | } | |
94 | 94 | else 0 | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func I (C) = G(this, C) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func J (K) = { | |
102 | 102 | let D = K | |
103 | 103 | if ($isInstanceOf(D, "Int")) | |
104 | 104 | then { | |
105 | 105 | let L = D | |
106 | 106 | L | |
107 | 107 | } | |
108 | 108 | else throw("RAI: wrong type, expected: Int") | |
109 | 109 | } | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | let M = ["G", "H", "I", "K", "L", "M", "N", "O"] | |
113 | 113 | ||
114 | 114 | func N () = Address(fromBase58String(F(a()))) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func O () = Address(fromBase58String(A(N(), b()))) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func P () = Address(fromBase58String(A(N(), c()))) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func Q () = fromBase58String(A(N(), d())) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func R () = fromBase58String(A(O(), g())) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func S () = G(O(), h()) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func T (U,V,W) = { | |
133 | 133 | let X = value(U.payments[0]) | |
134 | 134 | let Y = toBase58String(value(X.assetId)) | |
135 | 135 | if ((X.amount != 1)) | |
136 | 136 | then throw("RPFR: NFT is not attached") | |
137 | 137 | else { | |
138 | 138 | let Z = J(invoke(P(), "validateAndGetChildren", [Y], nil)) | |
139 | 139 | if ((Z == Z)) | |
140 | 140 | then { | |
141 | 141 | let aa = G(O(), x(toString(U.caller))) | |
142 | 142 | let ab = G(O(), z(toString(U.caller))) | |
143 | 143 | if ((ab >= aa)) | |
144 | 144 | then throw(((((((("RPFR: No free spots! " + toString(ab)) + " ") + toString(aa)) + " ") + toString(U.caller)) + " ") + toString(O()))) | |
145 | 145 | else if (if ((W > getIntegerValue(this, f()))) | |
146 | 146 | then true | |
147 | 147 | else (getIntegerValue(this, e()) > W)) | |
148 | 148 | then throw((((("RPFR: please pick a percentage between " + e()) + " and ") + f()) + "%")) | |
149 | 149 | else [IntegerEntry(q(Y), W), IntegerEntry(o(Y), V), StringEntry(k(Y), toString(U.caller)), StringEntry(m(Y), "IDLE")] | |
150 | 150 | } | |
151 | 151 | else throw("Strict value is not equal to itself.") | |
152 | 152 | } | |
153 | 153 | } | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ac (C) = { | |
157 | 157 | let D = getBoolean(C) | |
158 | 158 | if ($isInstanceOf(D, "Boolean")) | |
159 | 159 | then { | |
160 | 160 | let H = D | |
161 | 161 | H | |
162 | 162 | } | |
163 | 163 | else false | |
164 | 164 | } | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | @Callable(U) | |
168 | 168 | func putForRent (V,W) = T(U, V, W) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | ||
172 | 172 | @Callable(U) | |
173 | 173 | func buyGlassesAndPutForRent (V,W) = { | |
174 | 174 | let ad = invoke(O(), "buyAccessItem", nil, [U.payments[1]]) | |
175 | 175 | if ((ad == ad)) | |
176 | 176 | then T(U, V, W) | |
177 | 177 | else throw("Strict value is not equal to itself.") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | ||
182 | 182 | @Callable(U) | |
183 | 183 | func rentDuckFromUser (Y,ae) = { | |
184 | 184 | let af = split(value(assetInfo(fromBase58String(Y))).name, "") | |
185 | 185 | let ag = af[14] | |
186 | 186 | let ah = if ((ag == "J")) | |
187 | 187 | then 8 | |
188 | 188 | else (value(indexOf(M, ag)) + 1) | |
189 | 189 | let ai = (ah * getIntegerValue(i())) | |
190 | 190 | let aj = value(U.payments[0]) | |
191 | 191 | if ((value(aj.assetId) != Q())) | |
192 | 192 | then throw("TBT: Please attach the correct payment!") | |
193 | 193 | else if ((aj.amount != ai)) | |
194 | 194 | then throw("RRDFU: Please attach enough refundable deposits!") | |
195 | 195 | else { | |
196 | 196 | let ak = F(m(Y)) | |
197 | 197 | if ((ak != "IDLE")) | |
198 | 198 | then throw(("RRDFU: You can only rent ducks with IDLE status. Current status: " + ak)) | |
199 | 199 | else { | |
200 | 200 | let al = F(k(Y)) | |
201 | 201 | let aa = G(O(), x(al)) | |
202 | 202 | let ab = G(O(), z(al)) | |
203 | 203 | let am = if ((aa == ab)) | |
204 | 204 | then { | |
205 | 205 | let an = invoke(O(), "buyAccessItemOther", [al], [AttachedPayment(fromBase58String(A(O(), g())), getIntegerValue(O(), h()))]) | |
206 | 206 | if ((an == an)) | |
207 | 207 | then [BooleanEntry(w(Y), true)] | |
208 | 208 | else throw("Strict value is not equal to itself.") | |
209 | 209 | } | |
210 | 210 | else nil | |
211 | 211 | if ((am == am)) | |
212 | 212 | then if ((ae != "HUNT")) | |
213 | 213 | then throw("RRDFU: Unsupported game!") | |
214 | 214 | else { | |
215 | 215 | let ao = lastBlock.timestamp | |
216 | 216 | let ap = invoke(O(), "lockDuckRenting", [al], [AttachedPayment(fromBase58String(Y), 1)]) | |
217 | 217 | if ((ap == ap)) | |
218 | 218 | then { | |
219 | 219 | let aq = s(toString(U.caller)) | |
220 | 220 | let ar = u(toString(U.caller)) | |
221 | 221 | let as = (I(aq) + 1) | |
222 | 222 | let at = (I(ar) + getIntegerValue(this, j())) | |
223 | 223 | if ((as > at)) | |
224 | 224 | then throw(("RRDFU: You already rented max amount of ducks! " + toString(at))) | |
225 | 225 | else ([IntegerEntry(p(Y), ao), IntegerEntry(v(toString(U.caller), Y), ai), IntegerEntry(aq, as), StringEntry(m(Y), "RENTED"), StringEntry(n(Y), toString(U.caller))] ++ am) | |
226 | 226 | } | |
227 | 227 | else throw("Strict value is not equal to itself.") | |
228 | 228 | } | |
229 | 229 | else throw("Strict value is not equal to itself.") | |
230 | 230 | } | |
231 | 231 | } | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | ||
236 | 236 | @Callable(U) | |
237 | 237 | func topUpRewards (au,av) = { | |
238 | 238 | func aw (ax,ay) = { | |
239 | 239 | let az = split(ay, ":") | |
240 | 240 | let t = az[0] | |
241 | 241 | let aA = parseIntValue(az[1]) | |
242 | 242 | let Y = az[2] | |
243 | 243 | [ScriptTransfer(addressFromStringValue(t), (aA * 100000), fromBase58String(av)), IntegerEntry(r(Y), lastBlock.timestamp)] | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | let aB = au | |
247 | 247 | let aC = size(aB) | |
248 | 248 | let aD = nil | |
249 | 249 | func aE (aF,aG) = if ((aG >= aC)) | |
250 | 250 | then aF | |
251 | 251 | else aw(aF, aB[aG]) | |
252 | 252 | ||
253 | 253 | func aH (aF,aG) = if ((aG >= aC)) | |
254 | 254 | then aF | |
255 | 255 | else throw("List size exceeds 15") | |
256 | 256 | ||
257 | 257 | aH(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aE(aD, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | ||
262 | 262 | @Callable(U) | |
263 | 263 | func claimDuckBack (Y) = { | |
264 | 264 | let al = F(k(Y)) | |
265 | 265 | if ((al != toString(U.caller))) | |
266 | 266 | then throw("RCDB: Please don't try to steal someone else duck!") | |
267 | 267 | else if (if (ac(w(Y))) | |
268 | 268 | then if (if ((size(U.payments) != 1)) | |
269 | 269 | then true | |
270 | 270 | else (U.payments[0].assetId != fromBase58String(A(O(), g())))) | |
271 | 271 | then true | |
272 | 272 | else (U.payments[0].amount != getIntegerValue(O(), h())) | |
273 | 273 | else false) | |
274 | 274 | then throw(("Please make sure to attach enough funds to pay for your previous spot! " + toString(U.payments[0].amount))) | |
275 | 275 | else { | |
276 | 276 | let ak = F(m(Y)) | |
277 | 277 | if ((ak == "IDLE")) | |
278 | 278 | then [ScriptTransfer(U.caller, 1, fromBase58String(Y)), DeleteEntry(m(Y)), DeleteEntry(w(Y))] | |
279 | 279 | else { | |
280 | 280 | let ao = I(p(Y)) | |
281 | 281 | if ((lastBlock.timestamp > (ao + I(o(Y))))) | |
282 | 282 | then { | |
283 | 283 | let aI = F(n(Y)) | |
284 | 284 | let aJ = invoke(O(), "unlockDuckRenting", [Y, al], nil) | |
285 | 285 | if ((aJ == aJ)) | |
286 | 286 | then { | |
287 | 287 | let aq = s(aI) | |
288 | 288 | let as = (getIntegerValue(this, aq) - 1) | |
289 | 289 | let aK = v(aI, Y) | |
290 | 290 | [IntegerEntry(aq, as), ScriptTransfer(addressFromStringValue(aI), I(aK), Q()), DeleteEntry(aK), ScriptTransfer(addressFromStringValue(al), 1, fromBase58String(Y)), DeleteEntry(m(Y)), DeleteEntry(n(Y)), DeleteEntry(w(Y))] | |
291 | 291 | } | |
292 | 292 | else throw("Strict value is not equal to itself.") | |
293 | 293 | } | |
294 | 294 | else { | |
295 | 295 | let aL = I(r(Y)) | |
296 | 296 | let aM = (((3 * 24) * 60) * 1000) | |
297 | 297 | if ((lastBlock.height > (aL + aM))) | |
298 | 298 | then { | |
299 | 299 | let aI = F(n(Y)) | |
300 | 300 | let aN = invoke(O(), "unlockDuckRenting", [Y, al], nil) | |
301 | 301 | if ((aN == aN)) | |
302 | 302 | then { | |
303 | 303 | let aq = s(aI) | |
304 | 304 | let as = (getIntegerValue(this, aq) - 1) | |
305 | 305 | [IntegerEntry(aq, as), ScriptTransfer(addressFromStringValue(al), 1, fromBase58String(Y)), DeleteEntry(m(Y)), DeleteEntry(n(Y)), DeleteEntry(w(Y))] | |
306 | 306 | } | |
307 | 307 | else throw("Strict value is not equal to itself.") | |
308 | 308 | } | |
309 | 309 | else throw("RCDB: Renting period is not over and player is active!") | |
310 | 310 | } | |
311 | 311 | } | |
312 | 312 | } | |
313 | 313 | } | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | ||
317 | 317 | @Callable(U) | |
318 | 318 | func sendDuckBack (Y) = { | |
319 | 319 | let aO = F(n(Y)) | |
320 | 320 | if ((aO != toString(U.caller))) | |
321 | 321 | then throw("RSDB: You didn't rent this duck!") | |
322 | 322 | else { | |
323 | 323 | let al = F(k(Y)) | |
324 | 324 | let aK = v(toString(U.caller), Y) | |
325 | 325 | let aq = s(toString(U.caller)) | |
326 | 326 | let as = (getIntegerValue(this, aq) - 1) | |
327 | 327 | let aJ = invoke(O(), "unlockDuckRenting", [Y, al], nil) | |
328 | 328 | if ((aJ == aJ)) | |
329 | 329 | then [ScriptTransfer(U.caller, I(aK), Q()), DeleteEntry(aK), StringEntry(m(Y), "IDLE"), DeleteEntry(n(Y)), IntegerEntry(aq, as)] | |
330 | 330 | else throw("Strict value is not equal to itself.") | |
331 | 331 | } | |
332 | 332 | } | |
333 | 333 | ||
334 | 334 | ||
335 | 335 | ||
336 | 336 | @Callable(U) | |
337 | 337 | func sendDuckBackOther (Y) = if ((U.caller != this)) | |
338 | 338 | then throw("RUO: admin only") | |
339 | 339 | else { | |
340 | 340 | let aO = F(n(Y)) | |
341 | 341 | let al = F(k(Y)) | |
342 | 342 | let aK = v(aO, Y) | |
343 | 343 | let aq = s(aO) | |
344 | 344 | let as = (getIntegerValue(this, aq) - 1) | |
345 | 345 | [ScriptTransfer(addressFromStringValue(aO), I(aK), Q()), DeleteEntry(aK), StringEntry(m(Y), "IDLE"), DeleteEntry(n(Y)), IntegerEntry(aq, as)] | |
346 | 346 | } | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | ||
350 | 350 | @Callable(U) | |
351 | 351 | func configureOracle (aP) = if ((U.caller != this)) | |
352 | 352 | then throw("RCO: admin only") | |
353 | 353 | else [StringEntry(a(), aP), IntegerEntry(e(), 5), IntegerEntry(f(), 80), IntegerEntry(i(), 50000000), IntegerEntry(j(), 5)] | |
354 | 354 | ||
355 | 355 |
github/deemru/w8io/026f985 32.16 ms ◑