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