tx · GawZ3g3uLJqCgFPbbjuaS6rfNwHPCk55myHb38Q1cbhb 3MwFCBSWkWf9JMqmRyN5WEdoF2MCEPUB1Jx: -0.01600000 Waves 2024.12.09 20:53 [3407396] smart account 3MwFCBSWkWf9JMqmRyN5WEdoF2MCEPUB1Jx > SELF 0.00000000 Waves
{ "type": 13, "id": "GawZ3g3uLJqCgFPbbjuaS6rfNwHPCk55myHb38Q1cbhb", "fee": 1600000, "feeAssetId": null, "timestamp": 1733766817370, "version": 2, "chainId": 84, "sender": "3MwFCBSWkWf9JMqmRyN5WEdoF2MCEPUB1Jx", "senderPublicKey": "BVdzAdt4eF9ScXGp5dwKiwoMQXBwMDeVSxLhL4LT1ceu", "proofs": [ "3Cj2dYJD4PdgeE2UUvgveaSVp4vmCcAHu7ieEAn3zRwneu5mu9cNBUEnQshKu8SeS3j3YyGReJjTf9LiVV175JPp" ], "script": "base64:BgIyCAISAwoBCBIECgIIARIDCgEIEgQKAggBEgMKAQgSBAoCCAESAwoBARIDCgEIEgMKAQg6AQlpc1Rlc3RFbnYABAd0ZXN0ZW52BAckbWF0Y2gwCQCbCAIFBHRoaXMCB1RFU1RFTlYDCQABAgUHJG1hdGNoMAIHQm9vbGVhbgQBeAUHJG1hdGNoMAUBeAcFB3Rlc3RlbnYBFHRyeUdldFN0cmluZ0V4dGVybmFsAgdhZGRyZXNzA2tleQQHJG1hdGNoMAkAnQgCBQdhZGRyZXNzBQNrZXkDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAFhBQckbWF0Y2gwBQFhAgABDXRyeUdldEJvb2xlYW4BA2tleQQHJG1hdGNoMAkAoAgBBQNrZXkDCQABAgUHJG1hdGNoMAIHQm9vbGVhbgQBYgUHJG1hdGNoMAUBYgcBDHRyeUdldFN0cmluZwEDa2V5CQEUdHJ5R2V0U3RyaW5nRXh0ZXJuYWwCBQR0aGlzBQNrZXkBDXRyeUdldEludGVnZXIBA2tleQQHJG1hdGNoMAkAmggCBQR0aGlzBQNrZXkDCQ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RCbUzpShJa2amf Diff:
Old | New | Differences | |
---|---|---|---|
369 | 369 | let br = invoke(P(), "topUpReward", [((bn / 100) * 25)], nil) | |
370 | 370 | if ((br == br)) | |
371 | 371 | then { | |
372 | - | let bs = (l(bp) + bn) | |
373 | - | let bt = (l(bq) + bn) | |
374 | - | $Tuple2([IntegerEntry(bp, bs), IntegerEntry(ao, bl), IntegerEntry(bk, bo), IntegerEntry(bq, bt)], bn) | |
372 | + | let bs = if ((bj == R())) | |
373 | + | then unit | |
374 | + | else invoke(R(), "topUpReward", ["VEGG", ((bn / 100) * 15)], nil) | |
375 | + | if ((bs == bs)) | |
376 | + | then { | |
377 | + | let bt = (l(bp) + bn) | |
378 | + | let bu = (l(bq) + bn) | |
379 | + | $Tuple2([IntegerEntry(bp, bt), IntegerEntry(ao, bl), IntegerEntry(bk, bo), IntegerEntry(bq, bu)], bn) | |
380 | + | } | |
381 | + | else throw("Strict value is not equal to itself.") | |
375 | 382 | } | |
376 | 383 | else throw("Strict value is not equal to itself.") | |
377 | 384 | } | |
396 | 403 | } | |
397 | 404 | ||
398 | 405 | ||
399 | - | @Verifier( | |
400 | - | func | |
401 | - | then sigVerify( | |
406 | + | @Verifier(bv) | |
407 | + | func bw () = if (a()) | |
408 | + | then sigVerify(bv.bodyBytes, bv.proofs[0], bv.senderPublicKey) | |
402 | 409 | else { | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
410 | + | let bx = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
411 | + | let by = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
412 | + | let bz = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
413 | + | let bA = if (sigVerify(bv.bodyBytes, bv.proofs[0], bx)) | |
407 | 414 | then 1 | |
408 | - | else if (sigVerify( | |
415 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[1], bx)) | |
409 | 416 | then 1 | |
410 | - | else if (sigVerify( | |
417 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[2], bx)) | |
411 | 418 | then 1 | |
412 | 419 | else 0 | |
413 | - | let | |
420 | + | let bB = if (sigVerify(bv.bodyBytes, bv.proofs[0], by)) | |
414 | 421 | then 1 | |
415 | - | else if (sigVerify( | |
422 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[1], by)) | |
416 | 423 | then 1 | |
417 | - | else if (sigVerify( | |
424 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[2], by)) | |
418 | 425 | then 1 | |
419 | 426 | else 0 | |
420 | - | let | |
427 | + | let bC = if (sigVerify(bv.bodyBytes, bv.proofs[0], bz)) | |
421 | 428 | then 1 | |
422 | - | else if (sigVerify( | |
429 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[1], bz)) | |
423 | 430 | then 1 | |
424 | - | else if (sigVerify( | |
431 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[2], bz)) | |
425 | 432 | then 1 | |
426 | 433 | else 0 | |
427 | - | let | |
428 | - | let c = | |
429 | - | ( | |
434 | + | let bD = ((bA + bB) + bC) | |
435 | + | let c = bv | |
436 | + | (bD >= 1) | |
430 | 437 | } | |
431 | 438 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a () = { | |
5 | 5 | let b = { | |
6 | 6 | let c = getBoolean(this, "TESTENV") | |
7 | 7 | if ($isInstanceOf(c, "Boolean")) | |
8 | 8 | then { | |
9 | 9 | let d = c | |
10 | 10 | d | |
11 | 11 | } | |
12 | 12 | else false | |
13 | 13 | } | |
14 | 14 | b | |
15 | 15 | } | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func e (f,g) = { | |
19 | 19 | let c = getString(f, g) | |
20 | 20 | if ($isInstanceOf(c, "String")) | |
21 | 21 | then { | |
22 | 22 | let h = c | |
23 | 23 | h | |
24 | 24 | } | |
25 | 25 | else "" | |
26 | 26 | } | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func i (g) = { | |
30 | 30 | let c = getBoolean(g) | |
31 | 31 | if ($isInstanceOf(c, "Boolean")) | |
32 | 32 | then { | |
33 | 33 | let j = c | |
34 | 34 | j | |
35 | 35 | } | |
36 | 36 | else false | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func k (g) = e(this, g) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func l (g) = { | |
44 | 44 | let c = getInteger(this, g) | |
45 | 45 | if ($isInstanceOf(c, "Int")) | |
46 | 46 | then { | |
47 | 47 | let j = c | |
48 | 48 | j | |
49 | 49 | } | |
50 | 50 | else 0 | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | func m () = Address(fromBase58String(k("static_oracleAddress"))) | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func n () = "static_turtleStakingAddress" | |
58 | 58 | ||
59 | 59 | ||
60 | 60 | func o () = "static_turtleRebirthAddress" | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func p () = "static_ropeAddress" | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func q () = "static_levelSystemAddress" | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func r () = "static_spiceAssetId" | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func s () = "static_marketplaceAddress" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func t () = "static_capacityAddress" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func u () = "static_veggFarmingAddress" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func v () = "static_itemsAddress" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func w () = "static_mutantFarmingAddress" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func x () = "static_canineBreederAddress" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func y () = "static_felineBreederAddress" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func z () = "static_turtleBreederAddress" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func A () = Address(fromBase58String(e(m(), "static_rebirthAddress"))) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func B () = Address(fromBase58String(e(m(), "static_incubatorAddress"))) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func C () = Address(fromBase58String(e(m(), "static_farmingAddressNew"))) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func D () = Address(fromBase58String(e(m(), "static_gameDappAddress"))) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func E () = Address(fromBase58String(e(m(), t()))) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func F () = Address(fromBase58String(e(m(), "static_burnAddress"))) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func G () = Address(fromBase58String(e(m(), "static_babyDuckAddress"))) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func H () = Address(fromBase58String(e(m(), "static_breederAddress"))) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func I () = Address(fromBase58String(e(m(), "static_cfMasterAddress"))) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func J () = Address(fromBase58String(e(m(), n()))) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func K () = Address(fromBase58String(e(m(), o()))) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func L () = Address(fromBase58String(e(m(), p()))) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func M () = fromBase58String(e(m(), r())) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func N () = Address(fromBase58String(e(m(), q()))) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func O () = Address(fromBase58String(e(m(), s()))) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func P () = Address(fromBase58String(e(m(), u()))) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func Q () = Address(fromBase58String(e(m(), v()))) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func R () = Address(fromBase58String(e(m(), w()))) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func S () = Address(fromBase58String(e(m(), "static_canineStakingAddress"))) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func T () = Address(fromBase58String(e(m(), "static_felineStakingAddress"))) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func U () = Address(fromBase58String(e(m(), x()))) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func V () = Address(fromBase58String(e(m(), y()))) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func W () = Address(fromBase58String(e(m(), z()))) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | let X = fromBase58String(valueOrErrorMessage(getString(m(), "static_warsPKey"), "static_warsPKey not defined")) | |
166 | 166 | ||
167 | 167 | let Y = [A(), B(), C(), D(), G(), H(), J(), K(), L(), N(), O(), E(), R(), S(), T(), U(), V(), W(), this] | |
168 | 168 | ||
169 | 169 | func Z (aa) = (aa + "_spend") | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func ab (aa) = (aa + "_active") | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func ac (aa) = (ab(aa) + "_old") | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func ad (ae) = (ae + "_spend_by_using") | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func af (aa,ag,ah,ai) = (((((((ah + "_") + ag) + "_") + aa) + "_") + ai) + "_actions") | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func aj (aa,ag) = (((ag + "_") + aa) + "_actions_check_day") | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func ak (aa,ag) = (((ag + "_") + aa) + "_actions_amount_in_row") | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func al (aa) = (aa + "_experience") | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func am (aa,an) = { | |
194 | 194 | let ao = ac(aa) | |
195 | 195 | let g = ab(aa) | |
196 | 196 | let ap = l(g) | |
197 | 197 | let aq = (ap + an) | |
198 | 198 | [IntegerEntry(ao, ap), IntegerEntry(g, aq)] | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | let ar = 1695427200000 | |
203 | 203 | ||
204 | 204 | func as () = { | |
205 | 205 | let at = (lastBlock.timestamp - ar) | |
206 | 206 | let au = (at / (86400 * 1000)) | |
207 | 207 | au | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func av (ai,f,aw,ax,ay) = { | |
212 | 212 | let az = al(f) | |
213 | 213 | let aA = l(az) | |
214 | 214 | let aB = aj(f, aw) | |
215 | 215 | let aC = ak(f, aw) | |
216 | 216 | let aD = l(aB) | |
217 | 217 | let aE = l(aC) | |
218 | 218 | let aF = if ((aD == (ai - 1))) | |
219 | 219 | then (aE + 1) | |
220 | 220 | else if (((ai - 1) > aD)) | |
221 | 221 | then 1 | |
222 | 222 | else 0 | |
223 | 223 | let aG = ai | |
224 | 224 | let aH = if ((aF == 7)) | |
225 | 225 | then [ScriptTransfer(addressFromStringValue(f), ay, M()), IntegerEntry(aC, 0)] | |
226 | 226 | else [IntegerEntry(aC, aF)] | |
227 | 227 | ([IntegerEntry(aB, aG), ScriptTransfer(addressFromStringValue(f), ax, M()), IntegerEntry(az, (aA + 1))] ++ aH) | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func aI (aw,aJ,an,ai) = { | |
232 | 232 | let aK = if (i((("TASK_" + aw) + "_EVERY"))) | |
233 | 233 | then aw | |
234 | 234 | else ((aw + "_") + toString(an)) | |
235 | 235 | if (i(("TASK_" + aK))) | |
236 | 236 | then av(ai, toString(aJ), aK, l((("TASK_" + aK) + "_REWARD_DAILY")), l((("TASK_" + aK) + "_REWARD_WEEKLY"))) | |
237 | 237 | else nil | |
238 | 238 | } | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | func aL (aw,aM,f) = if (!(containsElement(Y, aM))) | |
242 | 242 | then throw("CRA: Only certain smart contracts can use this reward module!") | |
243 | 243 | else { | |
244 | 244 | let ai = as() | |
245 | 245 | let aN = af(toString(f), aw, toString(aM), toString(ai)) | |
246 | 246 | let aO = (l(aN) + 1) | |
247 | 247 | ([IntegerEntry(aN, aO)] ++ aI(aw, f, aO, ai)) | |
248 | 248 | } | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | @Callable(aP) | |
252 | 252 | func configureOracle (aQ) = if ((aP.caller != this)) | |
253 | 253 | then throw("CCO: admin only") | |
254 | 254 | else [StringEntry("static_oracleAddress", aQ)] | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | ||
258 | 258 | @Callable(aP) | |
259 | 259 | func addCoupons (aa,an) = if (if ((aP.caller != this)) | |
260 | 260 | then (aP.callerPublicKey != X) | |
261 | 261 | else false) | |
262 | 262 | then throw("CAC: admin only") | |
263 | 263 | else if ((an >= 10000000)) | |
264 | 264 | then (aL("VEGG10000000", this, addressFromStringValue(aa)) ++ am(aa, an)) | |
265 | 265 | else if ((an >= 500000)) | |
266 | 266 | then (aL("VEGG500000", this, addressFromStringValue(aa)) ++ am(aa, an)) | |
267 | 267 | else am(aa, an) | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | ||
271 | 271 | @Callable(aP) | |
272 | 272 | func resetCheater (aa) = if (if ((aP.caller != this)) | |
273 | 273 | then (aP.callerPublicKey != X) | |
274 | 274 | else false) | |
275 | 275 | then throw("CAC: admin only") | |
276 | 276 | else { | |
277 | 277 | let ao = ac(aa) | |
278 | 278 | let g = ab(aa) | |
279 | 279 | let ap = l(g) | |
280 | 280 | let aq = -100000000 | |
281 | 281 | [IntegerEntry(ao, ap), IntegerEntry(g, aq)] | |
282 | 282 | } | |
283 | 283 | ||
284 | 284 | ||
285 | 285 | ||
286 | 286 | @Callable(aP) | |
287 | 287 | func addCouponsFarming (aa,an) = if (if ((aP.caller != P())) | |
288 | 288 | then (aP.caller != R()) | |
289 | 289 | else false) | |
290 | 290 | then throw("Method only for farming sc!") | |
291 | 291 | else am(aa, an) | |
292 | 292 | ||
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Callable(aP) | |
296 | 296 | func addCouponsBatch (aR) = if (if ((aP.caller != this)) | |
297 | 297 | then (aP.callerPublicKey != X) | |
298 | 298 | else false) | |
299 | 299 | then throw("CAC: admin only") | |
300 | 300 | else { | |
301 | 301 | let aS = split(aR, ";") | |
302 | 302 | func aT (aU,aV) = { | |
303 | 303 | let aW = split(aV, ":") | |
304 | 304 | let aa = aW[0] | |
305 | 305 | let an = parseIntValue(aW[1]) | |
306 | 306 | let aX = invoke(F(), "burnByInvoke", [an], nil) | |
307 | 307 | if ((aX == aX)) | |
308 | 308 | then if ((an >= 10000000)) | |
309 | 309 | then ((aU ++ aL("VEGG10000000", this, addressFromStringValue(aa))) ++ am(aa, an)) | |
310 | 310 | else if ((an >= 500000)) | |
311 | 311 | then ((aU ++ aL("VEGG500000", this, addressFromStringValue(aa))) ++ am(aa, an)) | |
312 | 312 | else (aU ++ am(aa, an)) | |
313 | 313 | else throw("Strict value is not equal to itself.") | |
314 | 314 | } | |
315 | 315 | ||
316 | 316 | let aY = aS | |
317 | 317 | let aZ = size(aY) | |
318 | 318 | let ba = nil | |
319 | 319 | func bb (bc,bd) = if ((bd >= aZ)) | |
320 | 320 | then bc | |
321 | 321 | else aT(bc, aY[bd]) | |
322 | 322 | ||
323 | 323 | func be (bc,bd) = if ((bd >= aZ)) | |
324 | 324 | then bc | |
325 | 325 | else throw("List size exceeds 20") | |
326 | 326 | ||
327 | 327 | be(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(bb(ba, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
328 | 328 | } | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | ||
332 | 332 | @Callable(aP) | |
333 | 333 | func CFRefund (bf,an) = { | |
334 | 334 | let bg = getStringValue(aP.caller, "CF_ADDRESS") | |
335 | 335 | let g = (("f_" + bg) + "_stake_address") | |
336 | 336 | let bh = getStringValue(I(), g) | |
337 | 337 | if ((bh != toString(aP.caller))) | |
338 | 338 | then throw("CCR: This is something fishy going on!") | |
339 | 339 | else am(bf, an) | |
340 | 340 | } | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | ||
344 | 344 | @Callable(aP) | |
345 | 345 | func useCoupons (bi) = { | |
346 | 346 | let bj = aP.caller | |
347 | 347 | if ((0 > bi)) | |
348 | 348 | then throw("CUC: Only positive amount of money can be paid!") | |
349 | 349 | else if (!(containsElement(Y, bj))) | |
350 | 350 | then throw("CUC: Only certain smart contracts can use this coupon module!") | |
351 | 351 | else { | |
352 | 352 | let aa = toString(aP.originCaller) | |
353 | 353 | let bk = ab(aa) | |
354 | 354 | let bl = l(bk) | |
355 | 355 | if ((0 > bl)) | |
356 | 356 | then throw("CUC: Get rekt!") | |
357 | 357 | else { | |
358 | 358 | let bm = if ((bi > bl)) | |
359 | 359 | then (bi - bl) | |
360 | 360 | else 0 | |
361 | 361 | let bn = (bi - bm) | |
362 | 362 | let bo = (bl - bn) | |
363 | 363 | if ((0 > bo)) | |
364 | 364 | then throw("CUC: You try to overspend!") | |
365 | 365 | else { | |
366 | 366 | let bp = Z(aa) | |
367 | 367 | let ao = ac(aa) | |
368 | 368 | let bq = ad(toString(aP.caller)) | |
369 | 369 | let br = invoke(P(), "topUpReward", [((bn / 100) * 25)], nil) | |
370 | 370 | if ((br == br)) | |
371 | 371 | then { | |
372 | - | let bs = (l(bp) + bn) | |
373 | - | let bt = (l(bq) + bn) | |
374 | - | $Tuple2([IntegerEntry(bp, bs), IntegerEntry(ao, bl), IntegerEntry(bk, bo), IntegerEntry(bq, bt)], bn) | |
372 | + | let bs = if ((bj == R())) | |
373 | + | then unit | |
374 | + | else invoke(R(), "topUpReward", ["VEGG", ((bn / 100) * 15)], nil) | |
375 | + | if ((bs == bs)) | |
376 | + | then { | |
377 | + | let bt = (l(bp) + bn) | |
378 | + | let bu = (l(bq) + bn) | |
379 | + | $Tuple2([IntegerEntry(bp, bt), IntegerEntry(ao, bl), IntegerEntry(bk, bo), IntegerEntry(bq, bu)], bn) | |
380 | + | } | |
381 | + | else throw("Strict value is not equal to itself.") | |
375 | 382 | } | |
376 | 383 | else throw("Strict value is not equal to itself.") | |
377 | 384 | } | |
378 | 385 | } | |
379 | 386 | } | |
380 | 387 | } | |
381 | 388 | ||
382 | 389 | ||
383 | 390 | ||
384 | 391 | @Callable(aP) | |
385 | 392 | func recordAction (aw) = aL(aw, aP.caller, aP.originCaller) | |
386 | 393 | ||
387 | 394 | ||
388 | 395 | ||
389 | 396 | @Callable(aP) | |
390 | 397 | func increaseExp (f) = if ((aP.caller != Q())) | |
391 | 398 | then nil | |
392 | 399 | else { | |
393 | 400 | let az = al(f) | |
394 | 401 | let aA = l(az) | |
395 | 402 | [IntegerEntry(az, (aA + 1))] | |
396 | 403 | } | |
397 | 404 | ||
398 | 405 | ||
399 | - | @Verifier( | |
400 | - | func | |
401 | - | then sigVerify( | |
406 | + | @Verifier(bv) | |
407 | + | func bw () = if (a()) | |
408 | + | then sigVerify(bv.bodyBytes, bv.proofs[0], bv.senderPublicKey) | |
402 | 409 | else { | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
410 | + | let bx = base58'6TdaXEfhnjYquvPf3yV7MFxt2CbgFmaqsvGwkKfXtKi4' | |
411 | + | let by = base58'7DsP2WaMLocbHuUxux7pbXRjTrrZ1TFQPsi5QumS3gr8' | |
412 | + | let bz = base58'BpFWP3p3JgYrrP45xfrKzeMcWMEXoinj4FVPPkUiA8D3' | |
413 | + | let bA = if (sigVerify(bv.bodyBytes, bv.proofs[0], bx)) | |
407 | 414 | then 1 | |
408 | - | else if (sigVerify( | |
415 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[1], bx)) | |
409 | 416 | then 1 | |
410 | - | else if (sigVerify( | |
417 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[2], bx)) | |
411 | 418 | then 1 | |
412 | 419 | else 0 | |
413 | - | let | |
420 | + | let bB = if (sigVerify(bv.bodyBytes, bv.proofs[0], by)) | |
414 | 421 | then 1 | |
415 | - | else if (sigVerify( | |
422 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[1], by)) | |
416 | 423 | then 1 | |
417 | - | else if (sigVerify( | |
424 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[2], by)) | |
418 | 425 | then 1 | |
419 | 426 | else 0 | |
420 | - | let | |
427 | + | let bC = if (sigVerify(bv.bodyBytes, bv.proofs[0], bz)) | |
421 | 428 | then 1 | |
422 | - | else if (sigVerify( | |
429 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[1], bz)) | |
423 | 430 | then 1 | |
424 | - | else if (sigVerify( | |
431 | + | else if (sigVerify(bv.bodyBytes, bv.proofs[2], bz)) | |
425 | 432 | then 1 | |
426 | 433 | else 0 | |
427 | - | let | |
428 | - | let c = | |
429 | - | ( | |
434 | + | let bD = ((bA + bB) + bC) | |
435 | + | let c = bv | |
436 | + | (bD >= 1) | |
430 | 437 | } | |
431 | 438 |
github/deemru/w8io/026f985 49.93 ms ◑