tx · EP1UgKEVvxPxEhFsGZUbi8MrsVjuyR7Xbp1w4fdE1Pd3 3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx: -0.01400000 Waves 2023.08.08 15:15 [2701600] smart account 3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx > SELF 0.00000000 Waves
{ "type": 13, "id": "EP1UgKEVvxPxEhFsGZUbi8MrsVjuyR7Xbp1w4fdE1Pd3", "fee": 1400000, "feeAssetId": null, "timestamp": 1691496917876, "version": 2, "chainId": 84, "sender": "3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx", "senderPublicKey": "62CHk4MqTdq3LqeUycy7TPnpvwrjgerSa2FqAY2EafXn", "proofs": [ "2qJWnozqpmndJPa5VRNVUUzC1Yp8wb8P31BzVcfAsvLCzMTciWuCFgDGWqLCitMjVpEoTVvpWUQhmroyWebqdhDG" ], "script": "base64:BwJ5CAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIDCgEBEgMKAQESBQoDAgECEgUKAwIYGBIECgICARIECgICARIFCgMBAQESBQoDAQEBEgASAwoBCBIDCgESEgASABIDCgEIEgASBAoCCAgSBAoCCBISAwoBCDEAA1NFUAICX18ABVdBVkVTAgVXQVZFUwAQY29udHJhY3RGaWxlbmFtZQIMZmFjdG9yeS5yaWRlAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ9zdHJpbmdUb0Fzc2V0SWQBAXMDCQAAAgUBcwUFV0FWRVMFBHVuaXQJANkEAQUBcwAPQURNSU5fTElTVF9TSVpFAAUABlFVT1JVTQADABFUWElEX0JZVEVTX0xFTkdUSAAgARhrZXlBbGxvd2VkVHhJZFZvdGVQcmVmaXgBBHR4SWQJALkJAgkAzAgCAgYlcyVzJXMJAMwIAgIJYWxsb3dUeElkCQDMCAIFBHR4SWQFA25pbAUDU0VQARBrZ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lrZXlQcm9wb3NhbEFsbG93QnJvYWRjYXN0AgUEdGhpcwgFAnR4AmlkBwcECGJ5QWRtaW5zCQAAAggFAnR4AmlkCQDZBAEJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwkBDmtleUFsbG93ZWRUeElkAAIABAdieU93bmVyAwkAZwIJAJADAQkBDWdldEFkbWluc0xpc3QABQZRVU9SVU0HCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwMFCmJ5UHJvcG9zYWwGBQhieUFkbWlucwYFB2J5T3duZXK3z05k", "height": 2701600, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D5Td2rbPe6mDS8JpFxjA4iKjmL2Eh7q69gtXFsJkT3FZ Next: CLMt6aWU3TZQHh7iQUHVgmaY9N9TvoF9dj9ZKzg4rwmH Diff:
Old | New | Differences | |
---|---|---|---|
417 | 417 | ||
418 | 418 | ||
419 | 419 | @Callable(aB) | |
420 | + | func claimCollateralBulk (bb) = $Tuple2(nil, reentrantInvoke(ah, "claimCollateralBulk", [aB.caller.bytes, bb], aB.payments)) | |
421 | + | ||
422 | + | ||
423 | + | ||
424 | + | @Callable(aB) | |
420 | 425 | func invest () = $Tuple2(nil, reentrantInvoke(ah, "invest", [aB.caller.bytes], aB.payments)) | |
421 | 426 | ||
422 | 427 | ||
442 | 447 | ||
443 | 448 | ||
444 | 449 | @Callable(aB) | |
450 | + | func claimCollateralBulkREADONLY (aq,bb) = $Tuple2(nil, reentrantInvoke(ah, "claimCollateralBulkREADONLY", [fromBase58String(aq), bb], nil)) | |
451 | + | ||
452 | + | ||
453 | + | ||
454 | + | @Callable(aB) | |
445 | 455 | func voteForTxId (l) = { | |
446 | 456 | let U = toBase58String(aB.caller.bytes) | |
447 | 457 | let D = k(l) | |
448 | 458 | let B = [StringEntry(q(), l)] | |
449 | - | let | |
459 | + | let bc = getString(this, q()) | |
450 | 460 | let Y = [if ((size(fromBase58String(l)) == j)) | |
451 | 461 | then true | |
452 | - | else f((l + " is not valid txId")), if (if (( | |
462 | + | else f((l + " is not valid txId")), if (if ((bc == unit)) | |
453 | 463 | then true | |
454 | - | else (value( | |
464 | + | else (value(bc) != l)) | |
455 | 465 | then true | |
456 | 466 | else f((l + " is already allowed"))] | |
457 | 467 | if ((Y == Y)) | |
460 | 470 | } | |
461 | 471 | ||
462 | 472 | ||
463 | - | @Verifier( | |
464 | - | func | |
465 | - | let | |
473 | + | @Verifier(bd) | |
474 | + | func be () = { | |
475 | + | let bf = { | |
466 | 476 | let v = at | |
467 | 477 | if ($isInstanceOf(v, "Address")) | |
468 | 478 | then { | |
469 | - | let | |
470 | - | valueOrElse(getBoolean( | |
479 | + | let bg = v | |
480 | + | valueOrElse(getBoolean(bg, an(this, bd.id)), false) | |
471 | 481 | } | |
472 | 482 | else false | |
473 | 483 | } | |
474 | - | let | |
475 | - | let | |
484 | + | let bh = (bd.id == fromBase58String(valueOrElse(getString(this, q()), ""))) | |
485 | + | let bi = if ((size(u()) >= i)) | |
476 | 486 | then false | |
477 | - | else sigVerify( | |
478 | - | if (if ( | |
487 | + | else sigVerify(bd.bodyBytes, bd.proofs[0], bd.senderPublicKey) | |
488 | + | if (if (bf) | |
479 | 489 | then true | |
480 | - | else | |
490 | + | else bh) | |
481 | 491 | then true | |
482 | - | else | |
492 | + | else bi | |
483 | 493 | } | |
484 | 494 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "WAVES" | |
7 | 7 | ||
8 | 8 | let c = "factory.ride" | |
9 | 9 | ||
10 | 10 | func d (e) = ((c + ": ") + e) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func f (e) = throw(d(e)) | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g (e) = if ((e == b)) | |
17 | 17 | then unit | |
18 | 18 | else fromBase58String(e) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | let h = 5 | |
22 | 22 | ||
23 | 23 | let i = 3 | |
24 | 24 | ||
25 | 25 | let j = 32 | |
26 | 26 | ||
27 | 27 | func k (l) = makeString(["%s%s%s", "allowTxId", l], a) | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func m (n,o) = makeString([n, o], a) | |
31 | 31 | ||
32 | 32 | ||
33 | 33 | func p () = makeString(["%s", "adminAddressList"], a) | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | func q () = makeString(["%s", "txId"], a) | |
37 | 37 | ||
38 | 38 | ||
39 | 39 | func r (n,s) = { | |
40 | 40 | let t = m(n, s) | |
41 | 41 | valueOrElse(getInteger(t), 0) | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func u () = { | |
46 | 46 | let v = getString(this, p()) | |
47 | 47 | if ($isInstanceOf(v, "String")) | |
48 | 48 | then { | |
49 | 49 | let e = v | |
50 | 50 | split(e, a) | |
51 | 51 | } | |
52 | 52 | else nil | |
53 | 53 | } | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | func w (x) = containsElement(u(), x) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func y (z,o) = { | |
60 | 60 | let A = z | |
61 | 61 | let B = A._1 | |
62 | 62 | let n = A._2 | |
63 | 63 | $Tuple2((B :+ m(n, o)), n) | |
64 | 64 | } | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func C (D) = { | |
68 | 68 | let E = p() | |
69 | 69 | let F = { | |
70 | 70 | let G = u() | |
71 | 71 | let H = size(G) | |
72 | 72 | let I = $Tuple2(nil, D) | |
73 | 73 | func J (K,L) = if ((L >= H)) | |
74 | 74 | then K | |
75 | 75 | else y(K, G[L]) | |
76 | 76 | ||
77 | 77 | func M (K,L) = if ((L >= H)) | |
78 | 78 | then K | |
79 | 79 | else throw("List size exceeds 5") | |
80 | 80 | ||
81 | 81 | M(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5) | |
82 | 82 | } | |
83 | 83 | let B = F._1 | |
84 | 84 | let n = F._2 | |
85 | 85 | B | |
86 | 86 | } | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func N (B,t) = (B + valueOrElse(getInteger(t), 0)) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func O (n) = { | |
93 | 93 | let P = C(n) | |
94 | 94 | let G = P | |
95 | 95 | let H = size(G) | |
96 | 96 | let I = 0 | |
97 | 97 | func J (K,L) = if ((L >= H)) | |
98 | 98 | then K | |
99 | 99 | else N(K, G[L]) | |
100 | 100 | ||
101 | 101 | func M (K,L) = if ((L >= H)) | |
102 | 102 | then K | |
103 | 103 | else throw("List size exceeds 5") | |
104 | 104 | ||
105 | 105 | M(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5) | |
106 | 106 | } | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func Q (B,R) = (B :+ DeleteEntry(R)) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func S (n) = { | |
113 | 113 | let P = C(n) | |
114 | 114 | let G = P | |
115 | 115 | let H = size(G) | |
116 | 116 | let I = nil | |
117 | 117 | func J (K,L) = if ((L >= H)) | |
118 | 118 | then K | |
119 | 119 | else Q(K, G[L]) | |
120 | 120 | ||
121 | 121 | func M (K,L) = if ((L >= H)) | |
122 | 122 | then K | |
123 | 123 | else throw("List size exceeds 5") | |
124 | 124 | ||
125 | 125 | M(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5) | |
126 | 126 | } | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func T (U,D,V,W) = { | |
130 | 130 | let t = m(D, U) | |
131 | 131 | let X = r(D, U) | |
132 | 132 | let Y = if (!(w(U))) | |
133 | 133 | then f((("Address: " + U) + " not in Admin list")) | |
134 | 134 | else if ((X == 1)) | |
135 | 135 | then f((t + " you already voted")) | |
136 | 136 | else unit | |
137 | 137 | if ((Y == Y)) | |
138 | 138 | then { | |
139 | 139 | let P = O(D) | |
140 | 140 | if (((P + 1) >= V)) | |
141 | 141 | then { | |
142 | 142 | let Z = S(D) | |
143 | 143 | (Z ++ W) | |
144 | 144 | } | |
145 | 145 | else [IntegerEntry(t, 1)] | |
146 | 146 | } | |
147 | 147 | else throw("Strict value is not equal to itself.") | |
148 | 148 | } | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func aa () = "%s__calculator" | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ab () = "%s__proxyTreasury" | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func ac () = "%s__child" | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func ad () = "%s__blockProcessingReward" | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func ae () = "%s__nextBlockToProcess" | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func af () = "%s__lpAssetId" | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | let ag = { | |
170 | 170 | let v = getString(this, aa()) | |
171 | 171 | if ($isInstanceOf(v, "String")) | |
172 | 172 | then { | |
173 | 173 | let e = v | |
174 | 174 | addressFromString(e) | |
175 | 175 | } | |
176 | 176 | else if ($isInstanceOf(v, "Unit")) | |
177 | 177 | then unit | |
178 | 178 | else throw("Match error") | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | let ah = valueOrErrorMessage(ag, d("invalid calculator address")) | |
182 | 182 | ||
183 | 183 | let ai = { | |
184 | 184 | let v = getString(this, ab()) | |
185 | 185 | if ($isInstanceOf(v, "String")) | |
186 | 186 | then { | |
187 | 187 | let e = v | |
188 | 188 | addressFromString(e) | |
189 | 189 | } | |
190 | 190 | else if ($isInstanceOf(v, "Unit")) | |
191 | 191 | then unit | |
192 | 192 | else throw("Match error") | |
193 | 193 | } | |
194 | 194 | ||
195 | 195 | let aj = valueOrErrorMessage(ai, d("invalid proxy treasury address")) | |
196 | 196 | ||
197 | 197 | func ak () = "%s__config" | |
198 | 198 | ||
199 | 199 | ||
200 | 200 | func al () = "contract_children" | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func am () = "contract_voting_result" | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | func an (x,l) = ((("proposal_allow_broadcast_" + toString(x)) + "_") + toBase58String(l)) | |
207 | 207 | ||
208 | 208 | ||
209 | 209 | func ao (ap,aq) = makeString(["investor", toString(ap), toString(aq)], "_") | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | let ar = { | |
213 | 213 | let v = getString(this, ak()) | |
214 | 214 | if ($isInstanceOf(v, "String")) | |
215 | 215 | then { | |
216 | 216 | let e = v | |
217 | 217 | addressFromString(e) | |
218 | 218 | } | |
219 | 219 | else if ($isInstanceOf(v, "Unit")) | |
220 | 220 | then unit | |
221 | 221 | else throw("Match error") | |
222 | 222 | } | |
223 | 223 | ||
224 | 224 | let as = valueOrErrorMessage(ar, d("invalid config address")) | |
225 | 225 | ||
226 | 226 | let at = { | |
227 | 227 | let v = ar | |
228 | 228 | if ($isInstanceOf(v, "Address")) | |
229 | 229 | then { | |
230 | 230 | let z = v | |
231 | 231 | let au = getString(z, am()) | |
232 | 232 | if ($isInstanceOf(au, "String")) | |
233 | 233 | then { | |
234 | 234 | let e = au | |
235 | 235 | addressFromString(e) | |
236 | 236 | } | |
237 | 237 | else if ($isInstanceOf(au, "Unit")) | |
238 | 238 | then unit | |
239 | 239 | else throw("Match error") | |
240 | 240 | } | |
241 | 241 | else if ($isInstanceOf(v, "Unit")) | |
242 | 242 | then unit | |
243 | 243 | else throw("Match error") | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | let av = valueOrErrorMessage(at, d("invalid voting result address")) | |
247 | 247 | ||
248 | 248 | let aw = { | |
249 | 249 | let v = ar | |
250 | 250 | if ($isInstanceOf(v, "Address")) | |
251 | 251 | then { | |
252 | 252 | let z = v | |
253 | 253 | let au = getString(z, al()) | |
254 | 254 | if ($isInstanceOf(au, "String")) | |
255 | 255 | then { | |
256 | 256 | let e = au | |
257 | 257 | addressFromString(e) | |
258 | 258 | } | |
259 | 259 | else if ($isInstanceOf(au, "Unit")) | |
260 | 260 | then unit | |
261 | 261 | else throw("Match error") | |
262 | 262 | } | |
263 | 263 | else if ($isInstanceOf(v, "Unit")) | |
264 | 264 | then unit | |
265 | 265 | else throw("Match error") | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | let ax = valueOrErrorMessage(aw, d("invalid children address")) | |
269 | 269 | ||
270 | 270 | let ay = { | |
271 | 271 | let v = getString(this, af()) | |
272 | 272 | if ($isInstanceOf(v, "String")) | |
273 | 273 | then { | |
274 | 274 | let e = v | |
275 | 275 | fromBase58String(e) | |
276 | 276 | } | |
277 | 277 | else if ($isInstanceOf(v, "Unit")) | |
278 | 278 | then unit | |
279 | 279 | else throw("Match error") | |
280 | 280 | } | |
281 | 281 | ||
282 | 282 | let az = valueOrErrorMessage(ay, d("invalid lpAssetId")) | |
283 | 283 | ||
284 | 284 | func aA (aB,x) = if ((aB.caller == x)) | |
285 | 285 | then true | |
286 | 286 | else f("permission denied") | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func aC (aB) = aA(aB, this) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func aD (aB) = aA(aB, ah) | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | @Callable(aB) | |
296 | 296 | func stringEntry (R,aE) = if (aD(aB)) | |
297 | 297 | then $Tuple2([StringEntry(R, aE)], R) | |
298 | 298 | else $Tuple2(nil, unit) | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | ||
302 | 302 | @Callable(aB) | |
303 | 303 | func integerEntry (R,aE) = if (aD(aB)) | |
304 | 304 | then $Tuple2([IntegerEntry(R, aE)], R) | |
305 | 305 | else $Tuple2(nil, unit) | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | ||
309 | 309 | @Callable(aB) | |
310 | 310 | func booleanEntry (R,aE) = if (aD(aB)) | |
311 | 311 | then $Tuple2([BooleanEntry(R, aE)], R) | |
312 | 312 | else $Tuple2(nil, unit) | |
313 | 313 | ||
314 | 314 | ||
315 | 315 | ||
316 | 316 | @Callable(aB) | |
317 | 317 | func binaryEntry (R,aE) = if (aD(aB)) | |
318 | 318 | then $Tuple2([BinaryEntry(R, aE)], R) | |
319 | 319 | else $Tuple2(nil, unit) | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | ||
323 | 323 | @Callable(aB) | |
324 | 324 | func deleteEntry (R) = if (aD(aB)) | |
325 | 325 | then $Tuple2([DeleteEntry(R)], R) | |
326 | 326 | else $Tuple2(nil, unit) | |
327 | 327 | ||
328 | 328 | ||
329 | 329 | ||
330 | 330 | @Callable(aB) | |
331 | 331 | func reissue (aF) = if (aD(aB)) | |
332 | 332 | then $Tuple2([Reissue(az, aF, true)], aF) | |
333 | 333 | else $Tuple2(nil, unit) | |
334 | 334 | ||
335 | 335 | ||
336 | 336 | ||
337 | 337 | @Callable(aB) | |
338 | 338 | func burn (aF) = if (aD(aB)) | |
339 | 339 | then $Tuple2([Burn(az, aF)], aF) | |
340 | 340 | else $Tuple2(nil, unit) | |
341 | 341 | ||
342 | 342 | ||
343 | 343 | ||
344 | 344 | @Callable(aB) | |
345 | 345 | func transferAsset (aG,aF,aH) = if (aD(aB)) | |
346 | 346 | then $Tuple2([ScriptTransfer(Address(aG), aF, aH)], aF) | |
347 | 347 | else $Tuple2(nil, unit) | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | ||
351 | 351 | @Callable(aB) | |
352 | 352 | func transferAssets (aG,aI,aJ) = if (aD(aB)) | |
353 | 353 | then { | |
354 | 354 | func aK (aL,aM) = { | |
355 | 355 | let aN = aL | |
356 | 356 | let aO = aN._1 | |
357 | 357 | let aP = aN._2 | |
358 | 358 | let aQ = ScriptTransfer(Address(aG), parseIntValue(aJ[aP]), g(aI[aP])) | |
359 | 359 | let aR = (aO :+ aQ) | |
360 | 360 | $Tuple2(aR, (aP + 1)) | |
361 | 361 | } | |
362 | 362 | ||
363 | 363 | let aS = { | |
364 | 364 | let G = aI | |
365 | 365 | let H = size(G) | |
366 | 366 | let I = $Tuple2(nil, 0) | |
367 | 367 | func J (K,L) = if ((L >= H)) | |
368 | 368 | then K | |
369 | 369 | else aK(K, G[L]) | |
370 | 370 | ||
371 | 371 | func M (K,L) = if ((L >= H)) | |
372 | 372 | then K | |
373 | 373 | else throw("List size exceeds 10") | |
374 | 374 | ||
375 | 375 | M(J(J(J(J(J(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
376 | 376 | } | |
377 | 377 | let aT = aS._1 | |
378 | 378 | let aU = aS._2 | |
379 | 379 | $Tuple2(aT, unit) | |
380 | 380 | } | |
381 | 381 | else $Tuple2(nil, unit) | |
382 | 382 | ||
383 | 383 | ||
384 | 384 | ||
385 | 385 | @Callable(aB) | |
386 | 386 | func transferWaves (aG,aF) = if (aD(aB)) | |
387 | 387 | then $Tuple2([ScriptTransfer(Address(aG), aF, unit)], aF) | |
388 | 388 | else $Tuple2(nil, unit) | |
389 | 389 | ||
390 | 390 | ||
391 | 391 | ||
392 | 392 | @Callable(aB) | |
393 | 393 | func transferFromProxyTreasury (aV,aW) = if (aD(aB)) | |
394 | 394 | then $Tuple2(nil, invoke(aj, "transferWaves", [aV, aW], nil)) | |
395 | 395 | else $Tuple2(nil, unit) | |
396 | 396 | ||
397 | 397 | ||
398 | 398 | ||
399 | 399 | @Callable(aB) | |
400 | 400 | func finalize (aX,aY,aZ) = $Tuple2(nil, reentrantInvoke(ah, "finalize", [aB.caller.bytes, aX, aY, aZ], aB.payments)) | |
401 | 401 | ||
402 | 402 | ||
403 | 403 | ||
404 | 404 | @Callable(aB) | |
405 | 405 | func finalizeREADONLY (aX,aY,aZ) = $Tuple2(nil, reentrantInvoke(ah, "finalizeREADONLY", [aX, aY, aZ], nil)) | |
406 | 406 | ||
407 | 407 | ||
408 | 408 | ||
409 | 409 | @Callable(aB) | |
410 | 410 | func claimLP () = $Tuple2(nil, reentrantInvoke(ah, "claimLP", [aB.caller.bytes], aB.payments)) | |
411 | 411 | ||
412 | 412 | ||
413 | 413 | ||
414 | 414 | @Callable(aB) | |
415 | 415 | func claimCollateral (ba) = $Tuple2(nil, reentrantInvoke(ah, "claimCollateral", [aB.caller.bytes, fromBase58String(ba)], aB.payments)) | |
416 | 416 | ||
417 | 417 | ||
418 | 418 | ||
419 | 419 | @Callable(aB) | |
420 | + | func claimCollateralBulk (bb) = $Tuple2(nil, reentrantInvoke(ah, "claimCollateralBulk", [aB.caller.bytes, bb], aB.payments)) | |
421 | + | ||
422 | + | ||
423 | + | ||
424 | + | @Callable(aB) | |
420 | 425 | func invest () = $Tuple2(nil, reentrantInvoke(ah, "invest", [aB.caller.bytes], aB.payments)) | |
421 | 426 | ||
422 | 427 | ||
423 | 428 | ||
424 | 429 | @Callable(aB) | |
425 | 430 | func withdraw () = $Tuple2(nil, reentrantInvoke(ah, "withdraw", [aB.caller.bytes], aB.payments)) | |
426 | 431 | ||
427 | 432 | ||
428 | 433 | ||
429 | 434 | @Callable(aB) | |
430 | 435 | func cancelWithdraw (ba) = $Tuple2(nil, reentrantInvoke(ah, "cancelWithdraw", [aB.caller.bytes, fromBase58String(ba)], aB.payments)) | |
431 | 436 | ||
432 | 437 | ||
433 | 438 | ||
434 | 439 | @Callable(aB) | |
435 | 440 | func processBlocks () = $Tuple2(nil, reentrantInvoke(ah, "processBlocks", [aB.caller.bytes], aB.payments)) | |
436 | 441 | ||
437 | 442 | ||
438 | 443 | ||
439 | 444 | @Callable(aB) | |
440 | 445 | func claimCollateralREADONLY (aq,ba) = $Tuple2(nil, reentrantInvoke(ah, "claimCollateralREADONLY", [fromBase58String(aq), fromBase58String(ba)], nil)) | |
441 | 446 | ||
442 | 447 | ||
443 | 448 | ||
444 | 449 | @Callable(aB) | |
450 | + | func claimCollateralBulkREADONLY (aq,bb) = $Tuple2(nil, reentrantInvoke(ah, "claimCollateralBulkREADONLY", [fromBase58String(aq), bb], nil)) | |
451 | + | ||
452 | + | ||
453 | + | ||
454 | + | @Callable(aB) | |
445 | 455 | func voteForTxId (l) = { | |
446 | 456 | let U = toBase58String(aB.caller.bytes) | |
447 | 457 | let D = k(l) | |
448 | 458 | let B = [StringEntry(q(), l)] | |
449 | - | let | |
459 | + | let bc = getString(this, q()) | |
450 | 460 | let Y = [if ((size(fromBase58String(l)) == j)) | |
451 | 461 | then true | |
452 | - | else f((l + " is not valid txId")), if (if (( | |
462 | + | else f((l + " is not valid txId")), if (if ((bc == unit)) | |
453 | 463 | then true | |
454 | - | else (value( | |
464 | + | else (value(bc) != l)) | |
455 | 465 | then true | |
456 | 466 | else f((l + " is already allowed"))] | |
457 | 467 | if ((Y == Y)) | |
458 | 468 | then T(U, D, i, B) | |
459 | 469 | else throw("Strict value is not equal to itself.") | |
460 | 470 | } | |
461 | 471 | ||
462 | 472 | ||
463 | - | @Verifier( | |
464 | - | func | |
465 | - | let | |
473 | + | @Verifier(bd) | |
474 | + | func be () = { | |
475 | + | let bf = { | |
466 | 476 | let v = at | |
467 | 477 | if ($isInstanceOf(v, "Address")) | |
468 | 478 | then { | |
469 | - | let | |
470 | - | valueOrElse(getBoolean( | |
479 | + | let bg = v | |
480 | + | valueOrElse(getBoolean(bg, an(this, bd.id)), false) | |
471 | 481 | } | |
472 | 482 | else false | |
473 | 483 | } | |
474 | - | let | |
475 | - | let | |
484 | + | let bh = (bd.id == fromBase58String(valueOrElse(getString(this, q()), ""))) | |
485 | + | let bi = if ((size(u()) >= i)) | |
476 | 486 | then false | |
477 | - | else sigVerify( | |
478 | - | if (if ( | |
487 | + | else sigVerify(bd.bodyBytes, bd.proofs[0], bd.senderPublicKey) | |
488 | + | if (if (bf) | |
479 | 489 | then true | |
480 | - | else | |
490 | + | else bh) | |
481 | 491 | then true | |
482 | - | else | |
492 | + | else bi | |
483 | 493 | } | |
484 | 494 |
github/deemru/w8io/026f985 59.03 ms ◑