tx · GydxjFpRdsKwCAkH8bRWkqPvdzD5ar6heVjDpwJXvFSY 3MzYJ5tJs1rdz6Pzr7zvyfezTLPuVxFSRvT: -0.01800000 Waves 2024.12.24 04:10 [3427949] smart account 3MzYJ5tJs1rdz6Pzr7zvyfezTLPuVxFSRvT > SELF 0.00000000 Waves
{ "type": 13, "id": "GydxjFpRdsKwCAkH8bRWkqPvdzD5ar6heVjDpwJXvFSY", "fee": 1800000, "feeAssetId": null, "timestamp": 1735002660423, "version": 2, "chainId": 84, "sender": "3MzYJ5tJs1rdz6Pzr7zvyfezTLPuVxFSRvT", "senderPublicKey": "FvkktUPDqYCGhXKDauJAZkkkVp1b5yKhS6NUf7vhP3tR", "proofs": [ "57VeYeK3uuWQWPkFmJYGCAKXMepoa6iYV74Zxy1ydJYqM34s6evDrmy5Xcnk7y7uNQP3FoJ1nFmuG4adp4Nzkan5" ], "script": "base64:BgI8CAISAwoBCBIGCgQICAgIEgMKAQgSABIAEgMKAQgSABIDCgEIEgMKAQgSBAoCCAgSAwoBCBIGCgQIAQQIOQENdHJ5R2V0SW50ZWdlcgEDa2V5BAckbWF0Y2gwCQCaCAIFBHRoaXMFA2tleQMJAAECBQckbWF0Y2gwAgNJbnQEAWIFByRtYXRjaDAFAWIAAAEJaXNUZXN0RW52AAQHdGVzdGVudgQHJG1hdGNoMAkAmwgCBQR0aGlzAgdURVNURU5WAwkAAQIFByRtYXRjaDACB0Jvb2xlYW4EAXgFByRtYXRjaDAFAXgHBQd0ZXN0ZW52ARVrZXlEdWNrUGxheVVubG9ja1RpbWUBB2Fzc2V0SWQJAKwCAgkArAICAgVkdWNrXwkA2AQBBQdhc3NldElkAgtfdW5sb2NrVGltZQEXa2V5RHVja0ZpbmlzaFVubG9ja1RpbWUBB2Fzc2V0SWQJAKwCAgkArAICAgVkdWNrXwkA2AQBBQdhc3NldElkAhFmaW5pc2hfdW5sb2NrVGltZQEMa2V5RHVja093bmVyAQdhc3NldElkCQCsAgIJAKwCAgIFZHVja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QD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQpzZWNvbmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQpzZWNvbmRVc2VyAAEAAAQPdGhpcmRVc2VyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJdGhpcmRVc2VyAAEDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQl0aGlyZFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCXRoaXJkVXNlcgABAAAED3NpZ25hdHVyZXNDb3VudAkAZAIJAGQCBQ9maXJzdFVzZXJTaWduZWQFEHNlY29uZFVzZXJTaWduZWQFD3RoaXJkVXNlclNpZ25lZAQHJG1hdGNoMAUCdHgJAGcCBQ9zaWduYXR1cmVzQ291bnQAAiS2xRI=", "height": 3427949, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: yMgF7fgiwDqXDeXVKw4vdaMjRcR3UCyMWn6RE3uqfB7 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 (b) = { | |
5 | 5 | let c = getInteger(this, b) | |
6 | 6 | if ($isInstanceOf(c, "Int")) | |
7 | 7 | then { | |
8 | 8 | let d = c | |
9 | 9 | d | |
10 | 10 | } | |
11 | 11 | else 0 | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func e () = { | |
16 | 16 | let f = { | |
17 | 17 | let c = getBoolean(this, "TESTENV") | |
18 | 18 | if ($isInstanceOf(c, "Boolean")) | |
19 | 19 | then { | |
20 | 20 | let g = c | |
21 | 21 | g | |
22 | 22 | } | |
23 | 23 | else false | |
24 | 24 | } | |
25 | 25 | f | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func h (i) = (("duck_" + toBase58String(i)) + "_unlockTime") | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func j (i) = (("duck_" + toBase58String(i)) + "finish_unlockTime") | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func k (i) = (("duck_" + toBase58String(i)) + "_owner") | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func l (m) = (("address_" + m) + "_spotsBought") | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func n (m) = (("address_" + m) + "_spotsBusy") | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func o (m,p) = (((("address_" + m) + "_lockedDuck_") + p) + "_status") | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func q (m,p) = (((("address_" + m) + "_lockedDuck_") + p) + "_v2") | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func r (i) = { | |
51 | 51 | let s = value(value(assetInfo(i)).name) | |
52 | 52 | let t = split(s, "") | |
53 | 53 | let u = (t[(size(t) - 2)] == "J") | |
54 | 54 | let v = if (u) | |
55 | 55 | then "B" | |
56 | 56 | else t[(size(t) - 1)] | |
57 | 57 | $Tuple2(v, u) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func w (x,b) = { | |
62 | 62 | let c = getString(x, b) | |
63 | 63 | if ($isInstanceOf(c, "String")) | |
64 | 64 | then { | |
65 | 65 | let y = c | |
66 | 66 | y | |
67 | 67 | } | |
68 | 68 | else "" | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func z (b) = { | |
73 | 73 | let c = getBoolean(b) | |
74 | 74 | if ($isInstanceOf(c, "Boolean")) | |
75 | 75 | then { | |
76 | 76 | let d = c | |
77 | 77 | d | |
78 | 78 | } | |
79 | 79 | else false | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func A (b) = w(this, b) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func B () = "static_oracleAddress" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func C () = "static_eggAssetId" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func D () = "static_incubatorAddress" | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func E () = "static_breederAddress" | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func F () = "static_farmingAddress" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func G () = "static_rentingAddress" | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func H () = "static_shortGameName" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func I () = "static_longGameName" | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func J () = "static_nftName" | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func K () = "static_backendPubKey" | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func L () = "static_accessItemAssetId" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func M () = "static_accessItemPrice" | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func N () = "static_minLockDuration" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func O () = "static_UnlockDuration" | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func P () = "static_boosterBuyAssetId" | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func Q () = "static_extraFee" | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func R () = "static_feeAggregator" | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func S (T) = ("static_boosterPriceLevel_" + T) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func U (T) = ("static_boosterName_" + T) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func V () = "static_burnAddress" | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func W () = Address(fromBase58String(A(B()))) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func X () = valueOrErrorMessage(getString(H()), "3GGN: There is no game name defined!") | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func Y () = valueOrErrorMessage(getString(I()), "3GLGN: There is no long game name defined!") | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func Z () = valueOrErrorMessage(getString(J()), "3GNN: There is no nft name defined!") | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func aa () = Address(fromBase58String(w(W(), D()))) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func ab () = Address(fromBase58String(w(W(), E()))) | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func ac () = Address(fromBase58String(w(W(), G()))) | |
165 | 165 | ||
166 | 166 | ||
167 | 167 | func ad () = Address(fromBase58String(w(W(), F()))) | |
168 | 168 | ||
169 | 169 | ||
170 | 170 | func ae () = fromBase58String(w(W(), C())) | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func af () = fromBase58String(w(W(), K())) | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func ag () = Address(fromBase58String(w(W(), R()))) | |
177 | 177 | ||
178 | 178 | ||
179 | 179 | func ah () = Address(fromBase58String(w(W(), V()))) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func ai () = fromBase58String(A(L())) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func aj () = a(M()) | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func ak () = a(N()) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func al () = a(O()) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func am () = fromBase58String(A(P())) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | func an (T) = valueOrErrorMessage(getInteger(S(toString(T))), "3GBPFL: There is no price value for this level of booster") | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func ao (T) = valueOrErrorMessage(getString(U(toString(T))), "3GBNFL: There is no such booster") | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func ap (aq) = if (isDefined(aq.assetId)) | |
204 | 204 | then throw("RCAP: Please attach waves") | |
205 | 205 | else { | |
206 | 206 | let ar = getIntegerValue(W(), Q()) | |
207 | 207 | if ((aq.amount != ar)) | |
208 | 208 | then throw((("RCAP: Please attach exactly " + toString(ar)) + " amount of wavelets")) | |
209 | 209 | else [ScriptTransfer(ag(), ar, unit)] | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func as (at) = { | |
214 | 214 | let c = at | |
215 | 215 | if ($isInstanceOf(c, "String")) | |
216 | 216 | then { | |
217 | 217 | let au = c | |
218 | 218 | au | |
219 | 219 | } | |
220 | 220 | else throw("3AS: wrong type, expected: String") | |
221 | 221 | } | |
222 | 222 | ||
223 | 223 | ||
224 | 224 | func av (m,aw,ax) = { | |
225 | 225 | let i = value(ax.assetId) | |
226 | 226 | let ay = value(assetInfo(i)).issuer | |
227 | 227 | let az = r(i) | |
228 | 228 | let v = az._1 | |
229 | 229 | let u = az._2 | |
230 | 230 | let aA = n(aw) | |
231 | 231 | let aB = a(aA) | |
232 | 232 | let aC = l(aw) | |
233 | 233 | let aD = (a(aC) - aB) | |
234 | 234 | if ((ax.amount != 1)) | |
235 | 235 | then throw("NFT is not attached") | |
236 | 236 | else if (if ((ay != aa())) | |
237 | 237 | then (ay != ab()) | |
238 | 238 | else false) | |
239 | 239 | then throw("ivalid NFT attached") | |
240 | 240 | else if ((0 >= aD)) | |
241 | 241 | then throw(("No spots available in hunt for: " + aw)) | |
242 | 242 | else { | |
243 | 243 | let aE = ((("address_" + toString(this)) + "_perchesAvailable_") + v) | |
244 | 244 | let aF = { | |
245 | 245 | let c = getInteger(ad(), aE) | |
246 | 246 | if ($isInstanceOf(c, "Int")) | |
247 | 247 | then { | |
248 | 248 | let d = c | |
249 | 249 | d | |
250 | 250 | } | |
251 | 251 | else 0 | |
252 | 252 | } | |
253 | 253 | if ((aF == aF)) | |
254 | 254 | then { | |
255 | 255 | let aG = ae() | |
256 | 256 | [IntegerEntry(aA, (aB + 1)), StringEntry(k(i), m), BooleanEntry(o(m, toBase58String(i)), true), IntegerEntry(h(i), (lastBlock.timestamp + ak())), BooleanEntry(q(m, toBase58String(i)), true)] | |
257 | 257 | } | |
258 | 258 | else throw("Strict value is not equal to itself.") | |
259 | 259 | } | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func aH (p,m) = { | |
264 | 264 | let i = fromBase58String(p) | |
265 | 265 | let az = r(i) | |
266 | 266 | let v = az._1 | |
267 | 267 | let u = az._2 | |
268 | 268 | let aA = n(m) | |
269 | 269 | let aI = k(i) | |
270 | 270 | let aJ = (a(h(i)) - lastBlock.timestamp) | |
271 | 271 | if ((A(aI) != m)) | |
272 | 272 | then throw("3IULD: The duck is not yours") | |
273 | 273 | else if ((aJ > 0)) | |
274 | 274 | then throw((("3IUL: You need to wait to unlock " + toString((aJ / 1000))) + " seconds")) | |
275 | 275 | else [IntegerEntry(j(i), (lastBlock.timestamp + al()))] | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func aK (p,m,aL) = { | |
280 | 280 | let i = fromBase58String(p) | |
281 | 281 | let az = r(i) | |
282 | 282 | let v = az._1 | |
283 | 283 | let u = az._2 | |
284 | 284 | let aA = n(aL) | |
285 | 285 | let aI = k(i) | |
286 | 286 | let aJ = (a(j(i)) - lastBlock.timestamp) | |
287 | 287 | if ((A(aI) != m)) | |
288 | 288 | then throw("3UD: The duck is not yours") | |
289 | 289 | else if ((aJ > 0)) | |
290 | 290 | then throw((("3UD: You need to wait to unlock " + toString((aJ / 1000))) + " seconds")) | |
291 | 291 | else [ScriptTransfer(Address(fromBase58String(m)), 1, i), DeleteEntry(o(m, p)), DeleteEntry(aI), IntegerEntry(aA, (a(aA) - 1))] | |
292 | 292 | } | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Callable(aM) | |
296 | 296 | func buyAccessItemInternal (m) = if ((aM.caller != this)) | |
297 | 297 | then throw("3BAII: internal use only") | |
298 | 298 | else { | |
299 | 299 | let aN = Issue(("ACCESS-" + X()), ((("[Access] " + Y()) + " access NFT for ") + Z()), 1, 0, false) | |
300 | 300 | let aO = toBase58String(calculateAssetId(aN)) | |
301 | 301 | let aC = l(m) | |
302 | 302 | $Tuple2([aN, StringEntry((("accessItem_" + aO) + "_owner"), m), StringEntry((("address_" + m) + "_owning"), aO), IntegerEntry(aC, (a(aC) + 1))], aO) | |
303 | 303 | } | |
304 | 304 | ||
305 | 305 | ||
306 | 306 | ||
307 | 307 | @Callable(aM) | |
308 | 308 | func configureOracle (aP,aQ,aR,aS) = if ((aM.caller != this)) | |
309 | 309 | then throw("3CO: admin only") | |
310 | 310 | else [StringEntry("static_oracleAddress", aP), StringEntry("static_shortGameName", aQ), StringEntry("static_longGameName", aR), StringEntry("static_nftName", aS)] | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | ||
314 | 314 | @Callable(aM) | |
315 | 315 | func deleteSetting (b) = if ((aM.caller != this)) | |
316 | 316 | then throw("3DS: Only administrator can call this method") | |
317 | 317 | else [DeleteEntry(b)] | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | ||
321 | 321 | @Callable(aM) | |
322 | 322 | func buyAccessItemAndLockDuck () = { | |
323 | 323 | let aT = value(aM.payments[0]) | |
324 | 324 | let aU = value(aM.payments[1]) | |
325 | 325 | let m = toString(aM.originCaller) | |
326 | 326 | if ((aT.assetId != ai())) | |
327 | 327 | then throw("3BAI: Wrong asset attached") | |
328 | 328 | else if ((aT.amount != aj())) | |
329 | 329 | then throw("3BAI: Wrong amount of assets attached") | |
330 | 330 | else { | |
331 | 331 | let aV = as(invoke(this, "buyAccessItemInternal", [m], nil)) | |
332 | 332 | if ((aV == aV)) | |
333 | 333 | then { | |
334 | 334 | let aW = invoke(ah(), "burnAttachedPayments", nil, [AttachedPayment(ae(), aT.amount)]) | |
335 | 335 | if ((aW == aW)) | |
336 | 336 | then { | |
337 | 337 | let aX = if ((aM.caller == ac())) | |
338 | 338 | then nil | |
339 | 339 | else ap(aM.payments[2]) | |
340 | 340 | if ((aX == aX)) | |
341 | 341 | then { | |
342 | 342 | let aY = (av(m, m, aU) ++ aX) | |
343 | 343 | $Tuple2(aY, aV) | |
344 | 344 | } | |
345 | 345 | else throw("Strict value is not equal to itself.") | |
346 | 346 | } | |
347 | 347 | else throw("Strict value is not equal to itself.") | |
348 | 348 | } | |
349 | 349 | else throw("Strict value is not equal to itself.") | |
350 | 350 | } | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | 354 | ||
355 | 355 | @Callable(aM) | |
356 | 356 | func buyAccessItem () = { | |
357 | 357 | let m = toString(aM.originCaller) | |
358 | 358 | let aT = value(aM.payments[0]) | |
359 | 359 | if ((aT.assetId != ai())) | |
360 | 360 | then throw(("3BAI: Wrong asset attached " + toBase58String(ai()))) | |
361 | 361 | else if ((aT.amount != aj())) | |
362 | 362 | then throw("3BAI: Wrong amount of assets attached") | |
363 | 363 | else { | |
364 | 364 | let aV = as(invoke(this, "buyAccessItemInternal", [m], nil)) | |
365 | 365 | if ((aV == aV)) | |
366 | 366 | then { | |
367 | 367 | let aW = invoke(ah(), "burnAttachedPayments", nil, [AttachedPayment(ae(), aT.amount)]) | |
368 | 368 | if ((aW == aW)) | |
369 | 369 | then { | |
370 | 370 | let aX = if ((aM.caller == ac())) | |
371 | 371 | then nil | |
372 | 372 | else ap(aM.payments[1]) | |
373 | 373 | if ((aX == aX)) | |
374 | 374 | then $Tuple2(aX, aV) | |
375 | 375 | else throw("Strict value is not equal to itself.") | |
376 | 376 | } | |
377 | 377 | else throw("Strict value is not equal to itself.") | |
378 | 378 | } | |
379 | 379 | else throw("Strict value is not equal to itself.") | |
380 | 380 | } | |
381 | 381 | } | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | ||
385 | 385 | @Callable(aM) | |
386 | 386 | func buyAccessItemOther (aZ) = { | |
387 | 387 | let aT = value(aM.payments[0]) | |
388 | 388 | if ((aT.assetId != ai())) | |
389 | 389 | then throw("3BAI: Wrong asset attached") | |
390 | 390 | else if ((aT.amount != aj())) | |
391 | 391 | then throw("3BAI: Wrong amount of assets attached") | |
392 | 392 | else { | |
393 | 393 | let aV = as(invoke(this, "buyAccessItemInternal", [aZ], nil)) | |
394 | 394 | if ((aV == aV)) | |
395 | 395 | then { | |
396 | 396 | let aW = invoke(ah(), "burnAttachedPayments", nil, [AttachedPayment(ae(), aT.amount)]) | |
397 | 397 | if ((aW == aW)) | |
398 | 398 | then $Tuple2(nil, aV) | |
399 | 399 | else throw("Strict value is not equal to itself.") | |
400 | 400 | } | |
401 | 401 | else throw("Strict value is not equal to itself.") | |
402 | 402 | } | |
403 | 403 | } | |
404 | 404 | ||
405 | 405 | ||
406 | 406 | ||
407 | 407 | @Callable(aM) | |
408 | 408 | func lockDuck () = { | |
409 | 409 | let m = toString(aM.originCaller) | |
410 | 410 | let aU = value(aM.payments[0]) | |
411 | 411 | let aX = ap(aM.payments[1]) | |
412 | 412 | if ((aX == aX)) | |
413 | 413 | then (av(m, m, aU) ++ aX) | |
414 | 414 | else throw("Strict value is not equal to itself.") | |
415 | 415 | } | |
416 | 416 | ||
417 | 417 | ||
418 | 418 | ||
419 | 419 | @Callable(aM) | |
420 | 420 | func initUnlock (p) = { | |
421 | 421 | let m = toString(aM.caller) | |
422 | 422 | let aX = ap(aM.payments[0]) | |
423 | 423 | if ((aX == aX)) | |
424 | 424 | then (aH(p, m) ++ aX) | |
425 | 425 | else throw("Strict value is not equal to itself.") | |
426 | 426 | } | |
427 | 427 | ||
428 | 428 | ||
429 | 429 | ||
430 | 430 | @Callable(aM) | |
431 | 431 | func lockDuckRenting (ba) = if ((aM.caller != ac())) | |
432 | 432 | then throw("3UDO: Renting only!") | |
433 | 433 | else { | |
434 | 434 | let m = toString(aM.caller) | |
435 | 435 | let aU = value(aM.payments[0]) | |
436 | 436 | av(m, ba, aU) | |
437 | 437 | } | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | ||
441 | 441 | @Callable(aM) | |
442 | 442 | func unlockDuckRenting (p,aL) = if ((aM.caller != ac())) | |
443 | 443 | then throw("3UDO: Renting only!") | |
444 | 444 | else { | |
445 | 445 | let m = toString(aM.caller) | |
446 | 446 | aK(p, m, aL) | |
447 | 447 | } | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | ||
451 | 451 | @Callable(aM) | |
452 | 452 | func unlockDuckOther (p) = if ((aM.caller != this)) | |
453 | 453 | then throw("3UDO: Admin only!") | |
454 | 454 | else { | |
455 | 455 | let bb = A(k(fromBase58String(p))) | |
456 | 456 | aK(p, bb, bb) | |
457 | 457 | } | |
458 | 458 | ||
459 | 459 | ||
460 | 460 | ||
461 | 461 | @Callable(aM) | |
462 | 462 | func unlockDuck (p,bc,bd,be) = if ((bd != true)) | |
463 | 463 | then throw("3UD: Not allowed to unlock the duck!") | |
464 | 464 | else { | |
465 | 465 | let bf = 3600000 | |
466 | 466 | let bg = lastBlock.timestamp | |
467 | 467 | if ((bg > (bc + bf))) | |
468 | 468 | then throw("3UD: Outdated signature!") | |
469 | 469 | else { | |
470 | 470 | let m = toString(aM.caller) | |
471 | 471 | let bh = makeString([p, toString(bc), toString(bd)], ";") | |
472 | 472 | if (!(sigVerify_8Kb(toBytes(bh), fromBase58String(be), af()))) | |
473 | 473 | then throw(((("3UD: Invalid proof from backend key" + toBase58String(af())) + " ") + bh)) | |
474 | 474 | else { | |
475 | 475 | let aX = ap(aM.payments[0]) | |
476 | 476 | if ((aX == aX)) | |
477 | 477 | then (aK(p, m, m) ++ aX) | |
478 | 478 | else throw("Strict value is not equal to itself.") | |
479 | 479 | } | |
480 | 480 | } | |
481 | 481 | } | |
482 | 482 | ||
483 | 483 | ||
484 | 484 | @Verifier(bi) | |
485 | 485 | func bj () = if (e()) | |
486 | 486 | then sigVerify(bi.bodyBytes, bi.proofs[0], bi.senderPublicKey) | |
487 | 487 | else { | |
488 | 488 | let bk = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
489 | 489 | let bl = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
490 | 490 | let bm = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
491 | 491 | let bn = if (sigVerify(bi.bodyBytes, bi.proofs[0], bk)) | |
492 | 492 | then 1 | |
493 | 493 | else if (sigVerify(bi.bodyBytes, bi.proofs[1], bk)) | |
494 | 494 | then 1 | |
495 | 495 | else if (sigVerify(bi.bodyBytes, bi.proofs[2], bk)) | |
496 | 496 | then 1 | |
497 | 497 | else 0 | |
498 | 498 | let bo = if (sigVerify(bi.bodyBytes, bi.proofs[0], bl)) | |
499 | 499 | then 1 | |
500 | 500 | else if (sigVerify(bi.bodyBytes, bi.proofs[1], bl)) | |
501 | 501 | then 1 | |
502 | 502 | else if (sigVerify(bi.bodyBytes, bi.proofs[2], bl)) | |
503 | 503 | then 1 | |
504 | 504 | else 0 | |
505 | 505 | let bp = if (sigVerify(bi.bodyBytes, bi.proofs[0], bm)) | |
506 | 506 | then 1 | |
507 | 507 | else if (sigVerify(bi.bodyBytes, bi.proofs[1], bm)) | |
508 | 508 | then 1 | |
509 | 509 | else if (sigVerify(bi.bodyBytes, bi.proofs[2], bm)) | |
510 | 510 | then 1 | |
511 | 511 | else 0 | |
512 | 512 | let bq = ((bn + bo) + bp) | |
513 | 513 | let c = bi | |
514 | 514 | (bq >= 2) | |
515 | 515 | } | |
516 | 516 |
github/deemru/w8io/169f3d6 41.59 ms ◑