tx · BMzqnMjVMQrK9WcQC1eQELsNQe24yYtqXqhf9zLv73wX 3N6oB7VbceD3NoguGkfGnBMF4hcHZVbK8io: -0.01700000 Waves 2024.11.25 23:35 [3387426] smart account 3N6oB7VbceD3NoguGkfGnBMF4hcHZVbK8io > SELF 0.00000000 Waves
{ "type": 13, "id": "BMzqnMjVMQrK9WcQC1eQELsNQe24yYtqXqhf9zLv73wX", "fee": 1700000, "feeAssetId": null, "timestamp": 1732567004147, "version": 2, "chainId": 84, "sender": "3N6oB7VbceD3NoguGkfGnBMF4hcHZVbK8io", "senderPublicKey": "2cUCdub81Us7Le3h97BRsS5HupDXo5sErj1dwyNHKNU2", "proofs": [ "4Snahu4RnEBRqz8EKQvJR5n1jfxfq8tCRJLupgo8hiQA9o99vPxzzFowNUpMJjhzt83hZGYFgwK7VkmgsKy735ND" ], "script": "base64:BgJACAISAwoBCBIDCgEBEgMKAQESAwoBCBIDCgEIEgMKAQgSBAoCCAgSBQoDCAgIEgUKAwgICBIECgIICBIECgIICCABFHRyeUdldFN0cmluZ0V4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAnQgCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBQFhAgABDHRyeUdldFN0cmluZwEDa2V5CQEUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwCBQR0aGlzBQNrZXkBHnN0YXRpY0tleV90dXJ0bGVSZWJpcnRoQWRkcmVzcwACG3N0YXRpY190dXJ0bGVSZWJpcnRoQWRkcmVzcwEJZ2V0T3JhY2xlAAkBB0FkZHJlc3MBCQDZBAEJAQx0cnlHZXRTdHJpbmcBAhRzdGF0aWNfb3JhY2xlQWRkcmVzcwENZ2V0RWdnQXNzZXRJZAAJANkEAQkBFHRyeUdldFN0cmluZ0V4dGVybmFsAgkBCWdldE9yYWNsZQACEXN0YXRpY19lZ2dBc3NldElkARFnZXRSZWJpcnRoQWRkcmVzcwAJAQdBZ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ZzAAEFCnNlY29uZFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFCnNlY29uZFVzZXIAAQAABA90aGlyZFVzZXJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQl0aGlyZFVzZXIAAQMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFCXRoaXJkVXNlcgABAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUJdGhpcmRVc2VyAAEAAAQPc2lnbmF0dXJlc0NvdW50CQBkAgkAZAIFD2ZpcnN0VXNlclNpZ25lZAUQc2Vjb25kVXNlclNpZ25lZAUPdGhpcmRVc2VyU2lnbmVkBAckbWF0Y2gwBQJ0eAkAZwIFD3NpZ25hdHVyZXNDb3VudAACp1NTQQ==", "height": 3387426, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GKU2UhMYuSVNJUSFZV9jmYQBspiC5UjYpYxHwtxZGxbb 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,c) = { | |
5 | 5 | let d = getString(b, c) | |
6 | 6 | if ($isInstanceOf(d, "String")) | |
7 | 7 | then { | |
8 | 8 | let e = d | |
9 | 9 | e | |
10 | 10 | } | |
11 | 11 | else "" | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f (c) = a(this, c) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func g () = "static_turtleRebirthAddress" | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func h () = Address(fromBase58String(f("static_oracleAddress"))) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func i () = fromBase58String(a(h(), "static_eggAssetId")) | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func j () = Address(fromBase58String(a(h(), "static_rebirthAddress"))) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func k () = Address(fromBase58String(a(h(), "static_babyDuckAddress"))) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func l () = Address(fromBase58String(a(h(), "static_refContractAddress"))) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func m () = Address(fromBase58String(a(h(), "static_couponsAddress"))) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func n () = Address(fromBase58String(a(h(), "static_burnAddress"))) | |
40 | 40 | ||
41 | 41 | ||
42 | 42 | func o () = Address(fromBase58String(a(h(), g()))) | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | let p = 2 | |
46 | 46 | ||
47 | 47 | let q = 10 | |
48 | 48 | ||
49 | 49 | let r = 5 | |
50 | 50 | ||
51 | 51 | let s = "HATCHING_STARTED" | |
52 | 52 | ||
53 | 53 | let t = "HATCHING_FINISHED" | |
54 | 54 | ||
55 | 55 | func u () = { | |
56 | 56 | let v = Address(base58'3PEPftf2kWZDmAaWBjs6BUJa9957kiA2PkU') | |
57 | 57 | let d = getInteger(v, "egglock") | |
58 | 58 | if ($isInstanceOf(d, "Int")) | |
59 | 59 | then { | |
60 | 60 | let w = d | |
61 | 61 | w | |
62 | 62 | } | |
63 | 63 | else 0 | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func x (b,y) = (((b + "_") + toBase58String(y)) + "_status") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func z (b,y) = (((b + "_") + toBase58String(y)) + "_fh") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func A (b,y) = (((b + "_") + toBase58String(y)) + "_di") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func B (C) = (("stats_" + C) + "_amount") | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func D (c) = { | |
80 | 80 | let E = { | |
81 | 81 | let d = getInteger(this, c) | |
82 | 82 | if ($isInstanceOf(d, "Int")) | |
83 | 83 | then { | |
84 | 84 | let w = d | |
85 | 85 | w | |
86 | 86 | } | |
87 | 87 | else 0 | |
88 | 88 | } | |
89 | 89 | E | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | let F = D("discountCoefficient") | |
94 | 94 | ||
95 | 95 | let G = D("saleCoefficient") | |
96 | 96 | ||
97 | 97 | func H (I,y,J,K) = { | |
98 | 98 | let L = value(blockInfoByHeight((J - 1))) | |
99 | 99 | let M = sha256(((base58'incubator' + y) + value(L.vrf))) | |
100 | 100 | (toInt(M, K) % I) | |
101 | 101 | } | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func N (O) = D(B(O)) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func P (y,J) = { | |
108 | 108 | let Q = H(200, y, J, 4) | |
109 | 109 | let R = IntegerEntry("last_jackpot_random", Q) | |
110 | 110 | let S = H(4, y, J, 5) | |
111 | 111 | let T = H(4, y, J, 6) | |
112 | 112 | let U = if ((T == 0)) | |
113 | 113 | then "Y" | |
114 | 114 | else if ((T == 1)) | |
115 | 115 | then "G" | |
116 | 116 | else if ((T == 2)) | |
117 | 117 | then "B" | |
118 | 118 | else "R" | |
119 | 119 | if ((S == 0)) | |
120 | 120 | then $Tuple3(("DUCK-MMMMMMMM-G" + U), "8M-G", R) | |
121 | 121 | else if ((S == 1)) | |
122 | 122 | then $Tuple3(("DUCK-NNNNNNNN-G" + U), "8N-G", R) | |
123 | 123 | else if ((S == 2)) | |
124 | 124 | then $Tuple3(("DUCK-OOOOOOOO-G" + U), "8O-G", R) | |
125 | 125 | else $Tuple3(("DUCK-PPPPPPPP-G" + U), "8P-G", R) | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func V (W) = { | |
130 | 130 | let X = W | |
131 | 131 | let Y = F | |
132 | 132 | let Z = G | |
133 | 133 | let aa = q | |
134 | 134 | let ab = pow((100 + ((X * Y) / (10 * aa))), 2, 5, 1, 2, DOWN) | |
135 | 135 | if ((G == 0)) | |
136 | 136 | then (ab * 1000000) | |
137 | 137 | else (((ab * 1000000) / 100) * (100 - G)) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ac (ad) = { | |
142 | 142 | let d = ad | |
143 | 143 | if ($isInstanceOf(d, "Int")) | |
144 | 144 | then { | |
145 | 145 | let ae = d | |
146 | 146 | ae | |
147 | 147 | } | |
148 | 148 | else throw("IAI: wrong type, expected: Int") | |
149 | 149 | } | |
150 | 150 | ||
151 | 151 | ||
152 | 152 | func af (ag,ah) = { | |
153 | 153 | let y = fromBase58String(ag) | |
154 | 154 | let ai = x(ah, y) | |
155 | 155 | let aj = z(ah, y) | |
156 | 156 | let ak = A(ah, y) | |
157 | 157 | let al = { | |
158 | 158 | let d = getBoolean((("hatching_" + ag) + "_babyDuck")) | |
159 | 159 | if ($isInstanceOf(d, "Boolean")) | |
160 | 160 | then { | |
161 | 161 | let aa = d | |
162 | 162 | aa | |
163 | 163 | } | |
164 | 164 | else false | |
165 | 165 | } | |
166 | 166 | let am = getStringValue(this, ai) | |
167 | 167 | let J = getIntegerValue(this, aj) | |
168 | 168 | if ((am == t)) | |
169 | 169 | then { | |
170 | 170 | let an = getStringValue(this, A(ah, y)) | |
171 | 171 | throw(("IFDH: The duck was hatched and claimed already, here is the folowing: " + an)) | |
172 | 172 | } | |
173 | 173 | else if ((J > height)) | |
174 | 174 | then throw((((("Hatching is not finished yet " + toString((J - height))) + " blocks remaining, it will take around ") + toString((J - height))) + " minutes")) | |
175 | 175 | else { | |
176 | 176 | let ao = P(y, J) | |
177 | 177 | let ap = ao._1 | |
178 | 178 | let aq = ao._2 | |
179 | 179 | let ar = ao._3 | |
180 | 180 | let as = (("{\"genotype\": \"" + ap) + "\", \"crossbreeding\": true}") | |
181 | 181 | let at = Issue(ap, as, 1, 0, false, unit, J) | |
182 | 182 | let au = calculateAssetId(at) | |
183 | 183 | let av = (D(B(ap)) + 1) | |
184 | 184 | [StringEntry(ai, t), StringEntry(ak, toBase58String(au)), StringEntry(toBase58String(au), ak), BooleanEntry((("duck_" + toBase58String(au)) + "_grown"), al), IntegerEntry(B(ap), av), ar, IntegerEntry((("stats_" + aq) + "_quantity"), (D((("stats_" + aq) + "_quantity")) + 1)), at, ScriptTransfer(Address(fromBase58String(ah)), 1, au)] | |
185 | 185 | } | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func aw (c) = { | |
190 | 190 | let d = getBoolean(this, c) | |
191 | 191 | if ($isInstanceOf(d, "Boolean")) | |
192 | 192 | then { | |
193 | 193 | let w = d | |
194 | 194 | w | |
195 | 195 | } | |
196 | 196 | else false | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func ax () = aw("TESTENV") | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | @Callable(ay) | |
204 | 204 | func configureOracle (az) = if ((ay.caller != this)) | |
205 | 205 | then throw("ICU: admin only") | |
206 | 206 | else [StringEntry("static_oracleAddress", az)] | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | ||
210 | 210 | @Callable(ay) | |
211 | 211 | func setDiscount (E) = if ((ay.caller != this)) | |
212 | 212 | then throw("ISD: admin_only") | |
213 | 213 | else [IntegerEntry("discountCoefficient", E)] | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | ||
217 | 217 | @Callable(ay) | |
218 | 218 | func setSale (E) = if ((ay.caller != this)) | |
219 | 219 | then throw("ISS: admin_only") | |
220 | 220 | else [IntegerEntry("saleCoefficient", E)] | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | ||
224 | 224 | @Callable(ay) | |
225 | 225 | func startDuckHatching (aA) = if ((k() != ay.caller)) | |
226 | 226 | then throw("ISDHFA: From now on this is only possible through ducklings!") | |
227 | 227 | else if ((u() > 0)) | |
228 | 228 | then throw("ISDH: EGG operations are temporarily locked") | |
229 | 229 | else { | |
230 | 230 | let W = D("ducks_amount") | |
231 | 231 | let aB = V(W) | |
232 | 232 | [StringEntry(x(toString(ay.originCaller), ay.transactionId), s), IntegerEntry(z(toString(ay.originCaller), ay.transactionId), (height + p)), IntegerEntry("ducks_amount", (W + 1)), IntegerEntry("ducks_last_price", (aB / 1000000)), BooleanEntry((("hatching_" + toBase58String(ay.transactionId)) + "_babyDuck"), true)] | |
233 | 233 | } | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | ||
237 | 237 | @Callable(ay) | |
238 | 238 | func startDuckHatchingForAddress (b) = if ((u() > 0)) | |
239 | 239 | then throw("ISDHFA: EGG operations are temporarily locked") | |
240 | 240 | else if ((ay.caller != this)) | |
241 | 241 | then throw("ISDHFA: Permission denied") | |
242 | 242 | else { | |
243 | 243 | let W = D("ducks_amount") | |
244 | 244 | let aB = V(W) | |
245 | 245 | [StringEntry(x(b, ay.transactionId), s), IntegerEntry(z(b, ay.transactionId), (height + p)), IntegerEntry("ducks_amount", (W + 1)), IntegerEntry("ducks_last_price", (aB / 1000000)), BooleanEntry((("hatching_" + toBase58String(ay.transactionId)) + "_promo"), true)] | |
246 | 246 | } | |
247 | 247 | ||
248 | 248 | ||
249 | 249 | ||
250 | 250 | @Callable(ay) | |
251 | 251 | func finishDuckHatching (ag) = { | |
252 | 252 | let ah = toString(ay.originCaller) | |
253 | 253 | af(ag, ah) | |
254 | 254 | } | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(ay) | |
259 | 259 | func issueFreeDuck (b,ag) = if ((ay.caller != j())) | |
260 | 260 | then throw("ISFD: rebirth only") | |
261 | 261 | else { | |
262 | 262 | let y = fromBase58String(ag) | |
263 | 263 | let ai = x(b, y) | |
264 | 264 | let aj = z(b, y) | |
265 | 265 | let W = D("ducks_amount") | |
266 | 266 | let aB = V(W) | |
267 | 267 | let aC = P(y, (valueOrErrorMessage(transactionHeightById(y), ((ag + " not found ") + toBase58String(y))) + 1)) | |
268 | 268 | let ap = aC._1 | |
269 | 269 | let aq = aC._2 | |
270 | 270 | let ar = aC._3 | |
271 | 271 | let as = (("{\"genotype\": \"" + ap) + "\", \"crossbreeding\": true}") | |
272 | 272 | let at = Issue(ap, as, 1, 0, false, unit, height) | |
273 | 273 | let au = calculateAssetId(at) | |
274 | 274 | let av = (D(B(ap)) + 1) | |
275 | 275 | let ak = A(b, y) | |
276 | 276 | $Tuple2([IntegerEntry(z(b, y), height), IntegerEntry("ducks_amount", (W + 1)), IntegerEntry("ducks_last_price", (aB / 1000000)), ar, StringEntry(ai, t), StringEntry(ak, toBase58String(au)), StringEntry(toBase58String(au), ak), IntegerEntry(B(ap), av), IntegerEntry((("stats_" + aq) + "_quantity"), (D((("stats_" + aq) + "_quantity")) + 1)), at, ScriptTransfer(value(addressFromString(b)), 1, au)], toBase58String(au)) | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | ||
281 | 281 | @Callable(ay) | |
282 | 282 | func issueFreeDuckDefinedGenes (b,ag,aD) = if (if ((ay.caller != this)) | |
283 | 283 | then (ay.caller != o()) | |
284 | 284 | else false) | |
285 | 285 | then throw("IIFDDG: Admin only!") | |
286 | 286 | else { | |
287 | 287 | let y = fromBase58String(ag) | |
288 | 288 | let ai = x(b, y) | |
289 | 289 | let aj = z(b, y) | |
290 | 290 | let W = D("ducks_amount") | |
291 | 291 | let aB = V(W) | |
292 | 292 | let T = H(4, y, height, 6) | |
293 | 293 | let U = if ((T == 0)) | |
294 | 294 | then "Y" | |
295 | 295 | else if ((T == 1)) | |
296 | 296 | then "G" | |
297 | 297 | else if ((T == 2)) | |
298 | 298 | then "B" | |
299 | 299 | else "R" | |
300 | 300 | let aE = $Tuple2(((("DUCK-" + aD) + "-G") + U), (("8" + take(aD, 1)) + "-G")) | |
301 | 301 | let ap = aE._1 | |
302 | 302 | let aq = aE._2 | |
303 | 303 | let as = (("{\"genotype\": \"" + ap) + "\", \"crossbreeding\": true}") | |
304 | 304 | let at = Issue(ap, as, 1, 0, false, unit, height) | |
305 | 305 | let au = calculateAssetId(at) | |
306 | 306 | let av = (D(B(ap)) + 1) | |
307 | 307 | let ak = A(b, y) | |
308 | 308 | $Tuple2([IntegerEntry(z(b, y), height), IntegerEntry("ducks_amount", (W + 1)), IntegerEntry("ducks_last_price", (aB / 1000000)), StringEntry(ai, t), StringEntry(ak, toBase58String(au)), StringEntry(toBase58String(au), ak), IntegerEntry(B(ap), av), IntegerEntry((("stats_" + aq) + "_quantity"), (D((("stats_" + aq) + "_quantity")) + 1)), at, ScriptTransfer(value(addressFromString(b)), 1, au)], toBase58String(au)) | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | ||
313 | 313 | @Callable(ay) | |
314 | 314 | func issueJackpot (b,ag,O) = if (if ((ay.caller != j())) | |
315 | 315 | then (ay.caller != this) | |
316 | 316 | else false) | |
317 | 317 | then throw("ISJ: admin or rebirth only") | |
318 | 318 | else { | |
319 | 319 | let y = fromBase58String(ag) | |
320 | 320 | let ai = x(b, y) | |
321 | 321 | let aj = z(b, y) | |
322 | 322 | let W = D("ducks_amount") | |
323 | 323 | let aB = V(W) | |
324 | 324 | let aF = $Tuple2((("DUCK-" + O) + "-JU"), "8W-J") | |
325 | 325 | let ap = aF._1 | |
326 | 326 | let aq = aF._2 | |
327 | 327 | let as = (("{\"genotype\": \"" + ap) + "\", \"crossbreeding\": true}") | |
328 | 328 | let at = Issue(ap, as, 1, 0, false, unit, height) | |
329 | 329 | let au = calculateAssetId(at) | |
330 | 330 | let ak = A(b, y) | |
331 | 331 | let aG = f(ak) | |
332 | 332 | if ((aG != "")) | |
333 | 333 | then throw((("ISJ: You will override following duckId :" + ak) + " make sure that your txId is unique!")) | |
334 | 334 | else $Tuple2([IntegerEntry(z(b, y), height), IntegerEntry("ducks_amount", (W + 1)), IntegerEntry("ducks_last_price", (aB / 1000000)), StringEntry(ai, t), StringEntry(ak, toBase58String(au)), StringEntry(toBase58String(au), ak), IntegerEntry(B(ap), (D(B(ap)) + 1)), IntegerEntry((("stats_" + aq) + "_quantity"), (D((("stats_" + aq) + "_quantity")) + 1)), at, ScriptTransfer(value(addressFromString(b)), 1, au)], toBase58String(au)) | |
335 | 335 | } | |
336 | 336 | ||
337 | 337 | ||
338 | 338 | ||
339 | 339 | @Callable(ay) | |
340 | 340 | func reduceRarity (au,aH) = { | |
341 | 341 | let at = fromBase58String(au) | |
342 | 342 | if (if ((ay.caller != j())) | |
343 | 343 | then (ay.caller != this) | |
344 | 344 | else false) | |
345 | 345 | then throw("IRR: admin or rebirth only") | |
346 | 346 | else { | |
347 | 347 | let ap = value(assetInfo(at)).name | |
348 | 348 | let aI = takeRight(take(ap, 6), 1) | |
349 | 349 | let aq = (("8" + aI) + "-G") | |
350 | 350 | [IntegerEntry(B(ap), (D(B(ap)) - 1)), IntegerEntry((("stats_" + aq) + "_quantity"), (D((("stats_" + aq) + "_quantity")) - 1))] | |
351 | 351 | } | |
352 | 352 | } | |
353 | 353 | ||
354 | 354 | ||
355 | 355 | ||
356 | 356 | @Callable(ay) | |
357 | 357 | func finishDuckHatchingAdmin (ag,ah) = if ((ay.caller != this)) | |
358 | 358 | then throw("IFDHA: Only admins can run this!") | |
359 | 359 | else af(ag, ah) | |
360 | 360 | ||
361 | 361 | ||
362 | 362 | @Verifier(aJ) | |
363 | 363 | func aK () = if (ax()) | |
364 | 364 | then sigVerify(aJ.bodyBytes, aJ.proofs[0], aJ.senderPublicKey) | |
365 | 365 | else { | |
366 | 366 | let aL = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
367 | 367 | let aM = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
368 | 368 | let aN = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
369 | 369 | let aO = if (sigVerify(aJ.bodyBytes, aJ.proofs[0], aL)) | |
370 | 370 | then 1 | |
371 | 371 | else if (sigVerify(aJ.bodyBytes, aJ.proofs[1], aL)) | |
372 | 372 | then 1 | |
373 | 373 | else if (sigVerify(aJ.bodyBytes, aJ.proofs[2], aL)) | |
374 | 374 | then 1 | |
375 | 375 | else 0 | |
376 | 376 | let aP = if (sigVerify(aJ.bodyBytes, aJ.proofs[0], aM)) | |
377 | 377 | then 1 | |
378 | 378 | else if (sigVerify(aJ.bodyBytes, aJ.proofs[1], aM)) | |
379 | 379 | then 1 | |
380 | 380 | else if (sigVerify(aJ.bodyBytes, aJ.proofs[2], aM)) | |
381 | 381 | then 1 | |
382 | 382 | else 0 | |
383 | 383 | let aQ = if (sigVerify(aJ.bodyBytes, aJ.proofs[0], aN)) | |
384 | 384 | then 1 | |
385 | 385 | else if (sigVerify(aJ.bodyBytes, aJ.proofs[1], aN)) | |
386 | 386 | then 1 | |
387 | 387 | else if (sigVerify(aJ.bodyBytes, aJ.proofs[2], aN)) | |
388 | 388 | then 1 | |
389 | 389 | else 0 | |
390 | 390 | let aR = ((aO + aP) + aQ) | |
391 | 391 | let d = aJ | |
392 | 392 | (aR >= 2) | |
393 | 393 | } | |
394 | 394 |
github/deemru/w8io/169f3d6 81.54 ms ◑