tx · 2CgR6yGrPGnXnGHpfkZ5cF1EdAeUuHNnZ8E8i94fFK1m

3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK:  -0.02100000 Waves

2023.03.14 17:38 [2489848] smart account 3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK > SELF 0.00000000 Waves

{ "type": 13, "id": "2CgR6yGrPGnXnGHpfkZ5cF1EdAeUuHNnZ8E8i94fFK1m", "fee": 2100000, "feeAssetId": null, "timestamp": 1678804663729, "version": 2, "chainId": 84, "sender": "3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK", "senderPublicKey": "ErJhyueNNWWr8GEv71cFyhNnAtRC7sZt2TWFo89gdPo8", "proofs": [ "29sS93hRTDJoMwuEAkKccFvL151Si8wLjj8zMbTxHcmomgmm2NneFd62SK691DDeEK1CJ8W6mZbrdm99RqrbcmtB" ], "script": "base64:BgI4CAISBwoFAQEBCAESBQoDARgBEgUKAwEBCBIHCgUBAQgICBIFCgMBAQgSAwoBCBIDCgEBEgMKAQhmAAlTRVBBUkFUT1ICAl9fAAhLRVlfSU5JVAIESU5JVAAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTABBLRVlfTUlOX1NFQ19ERVBPAgxNSU5fU0VDX0RFUE8ADktFWV9QVU5JU0hNRU5UAgpQVU5JU0hNRU5UABVLRVlfUkVTRVRfQkxPQ0tfREVMVEECEVJFU0VUX0JMT0NLX0RFTFRBAAxLRVlfU0VDX0RFUE8CCFNFQ19ERVBPABhLRVlfUkVXQVJEX1RPS0VOX0FERFJFU1MCFFJFV0FSRF9UT0tFTl9BRERSRVNTABFLRVlfUkVXQVJEX0FNT1VOVAINUkVXQVJEX0FNT1VOVAARS0VZX0NVUlJFTlRfRVBPQ0gCDUNVUlJFTlRfRVBPQ0gAFUtFWV9TSUdORVJTX1BFUl9FUE9DSAIRU0lHTkVSU19QRVJfRVBPQ0gAEEtFWV9FVkVOVF9T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UkFUT1IHCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5Wdzfhg==", "height": 2489848, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EJ59svKZrUUdgh7F38br24ueCJzUSsknzqGACGptEfPZ Next: 3nAKnhSedMQtJqsJZrMeQWAwT8JhPG5Mw8XjQaGw5REq Diff:
OldNewDifferences
8282 else true
8383
8484
85-func _validateString (val_,err_) = if ((0 >= size(val_)))
85+func _validateString (val_,err_) = if (if ((0 >= size(val_)))
86+ then true
87+ else contains(val_, SEPARATOR))
8688 then throw(err_)
8789 else true
8890
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SEPARATOR = "__"
55
66 let KEY_INIT = "INIT"
77
88 let KEY_MULTISIG = "MULTISIG"
99
1010 let KEY_STATUS = "STATUS"
1111
1212 let KEY_MIN_SEC_DEPO = "MIN_SEC_DEPO"
1313
1414 let KEY_PUNISHMENT = "PUNISHMENT"
1515
1616 let KEY_RESET_BLOCK_DELTA = "RESET_BLOCK_DELTA"
1717
1818 let KEY_SEC_DEPO = "SEC_DEPO"
1919
2020 let KEY_REWARD_TOKEN_ADDRESS = "REWARD_TOKEN_ADDRESS"
2121
2222 let KEY_REWARD_AMOUNT = "REWARD_AMOUNT"
2323
2424 let KEY_CURRENT_EPOCH = "CURRENT_EPOCH"
2525
2626 let KEY_SIGNERS_PER_EPOCH = "SIGNERS_PER_EPOCH"
2727
2828 let KEY_EVENT_STATUS = "EVENT_STATUS"
2929
3030 let KEY_LOCKS = "LOCKS"
3131
3232 let KEY_T = "T"
3333
3434 let KEY_R = "R"
3535
3636 let KEY_S = "S"
3737
3838 let KEY_R_SIGNERS = "R_SIGNERS"
3939
4040 let KEY_EVENT_START_BLOCK = "EVENT_START_BLOCK"
4141
4242 let KEY_R_SIGMA = "R_SIGMA"
4343
4444 let KEY_S_SIGMA = "S_SIGMA"
4545
4646 let KEY_S_SIGNERS = "S_SIGNERS"
4747
4848 let KEY_SIGNED_EVENT_EXECUTOR = "SIGNED_EVENT_EXECUTOR"
4949
5050 let KEY_SIZE = "SIZE"
5151
5252 let FUNC_MINT_MANY = "mintMany"
5353
5454 let EVENT_STATUS_INIT = 1
5555
5656 let EVENT_STATUS_SIGN = 2
5757
5858 let EVENT_STATUS_DONE = 3
5959
6060 let MAX_INT = 9223372036854775807
6161
6262 func _validateAddress (address_,err_) = match addressFromString(address_) {
6363 case a: Address =>
6464 true
6565 case _ =>
6666 throw(err_)
6767 }
6868
6969
7070 func _validateAsset (assetId_,err_) = match assetInfo(fromBase58String(assetId_)) {
7171 case a: Asset =>
7272 true
7373 case _ =>
7474 throw(err_)
7575 }
7676
7777
7878 func _validateInt (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_))
7979 then true
8080 else (val_ > upperBoundary_))
8181 then throw(err_)
8282 else true
8383
8484
85-func _validateString (val_,err_) = if ((0 >= size(val_)))
85+func _validateString (val_,err_) = if (if ((0 >= size(val_)))
86+ then true
87+ else contains(val_, SEPARATOR))
8688 then throw(err_)
8789 else true
8890
8991
9092 func _validatePaymentsSize (payments_,target_,err_) = if ((size(payments_) != target_))
9193 then throw(err_)
9294 else true
9395
9496
9597 func _validatePaymentAsset (payment_,asset_,err_) = if ((payment_.assetId != asset_))
9698 then throw(err_)
9799 else true
98100
99101
100102 func _validatePublicKey (publicKey_,err_) = if ((size(fromBase58String(publicKey_)) != 32))
101103 then throw(err_)
102104 else true
103105
104106
105107 func _validatePublicKeys (publicKeys_,err_) = {
106108 func foldFunc (acc,elem) = $Tuple2(if (acc._1)
107109 then _validatePublicKey(elem, acc._2)
108110 else false, acc._2)
109111
110112 let result = {
111113 let $l = publicKeys_
112114 let $s = size($l)
113115 let $acc0 = $Tuple2(true, err_)
114116 func $f0_1 ($a,$i) = if (($i >= $s))
115117 then $a
116118 else foldFunc($a, $l[$i])
117119
118120 func $f0_2 ($a,$i) = if (($i >= $s))
119121 then $a
120122 else throw("List size exceeds 10")
121123
122124 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
123125 }
124126 result._1
125127 }
126128
127129
128130 func _loadInit () = match getBoolean(KEY_INIT) {
129131 case a: Boolean =>
130132 a
131133 case _ =>
132134 false
133135 }
134136
135137
136138 func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)]
137139
138140
139141 func _loadMultisig () = match getString(KEY_MULTISIG) {
140142 case a: String =>
141143 addressFromStringValue(a)
142144 case _ =>
143145 Address(base58'')
144146 }
145147
146148
147149 func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))]
148150
149151
150152 func _loadMinSecDepo () = match getInteger(KEY_MIN_SEC_DEPO) {
151153 case a: Int =>
152154 a
153155 case _ =>
154156 0
155157 }
156158
157159
158160 func _saveMinSecDepo (val_) = [IntegerEntry(KEY_MIN_SEC_DEPO, val_)]
159161
160162
161163 func _loadSecDepo (account_) = match getInteger(makeString([KEY_SEC_DEPO, toString(account_)], SEPARATOR)) {
162164 case a: Int =>
163165 a
164166 case _ =>
165167 0
166168 }
167169
168170
169171 func _saveSecDepo (account_,val_) = [IntegerEntry(makeString([KEY_SEC_DEPO, toString(account_)], SEPARATOR), val_)]
170172
171173
172174 func _loadPunishment () = match getInteger(KEY_PUNISHMENT) {
173175 case a: Int =>
174176 a
175177 case _ =>
176178 0
177179 }
178180
179181
180182 func _savePunishment (val_) = [IntegerEntry(KEY_PUNISHMENT, val_)]
181183
182184
183185 func _loadResetBlockDelta () = match getInteger(KEY_RESET_BLOCK_DELTA) {
184186 case a: Int =>
185187 a
186188 case _ =>
187189 0
188190 }
189191
190192
191193 func _saveResetBlockDelta (val_) = [IntegerEntry(KEY_RESET_BLOCK_DELTA, val_)]
192194
193195
194196 func _loadRewardTokenAddress () = match getString(KEY_REWARD_TOKEN_ADDRESS) {
195197 case a: String =>
196198 addressFromStringValue(a)
197199 case _ =>
198200 Address(base58'')
199201 }
200202
201203
202204 func _saveRewardTokenAddress (val_) = [StringEntry(KEY_REWARD_TOKEN_ADDRESS, toString(val_))]
203205
204206
205207 func _loadRewardAmount () = match getInteger(KEY_REWARD_AMOUNT) {
206208 case a: Int =>
207209 a
208210 case _ =>
209211 0
210212 }
211213
212214
213215 func _saveRewardAmount (val_) = [IntegerEntry(KEY_REWARD_AMOUNT, val_)]
214216
215217
216218 func _loadCurrentEpoch (execChainId_) = match getInteger(makeString([KEY_CURRENT_EPOCH, toString(execChainId_)], SEPARATOR)) {
217219 case a: Int =>
218220 a
219221 case _ =>
220222 0
221223 }
222224
223225
224226 func _saveCurrentEpoch (execChainId_,val_) = [IntegerEntry(makeString([KEY_CURRENT_EPOCH, toString(execChainId_)], SEPARATOR), val_)]
225227
226228
227229 func _loadSigners (execChainId_,epoch_) = match getString(makeString([KEY_SIGNERS_PER_EPOCH, toString(execChainId_), toString(epoch_)], SEPARATOR)) {
228230 case a: String =>
229231 if ((size(a) > 0))
230232 then split(a, SEPARATOR)
231233 else nil
232234 case _ =>
233235 nil
234236 }
235237
236238
237239 func _saveSigners (execChainId_,epoch_,signers_) = [StringEntry(makeString([KEY_SIGNERS_PER_EPOCH, toString(execChainId_), toString(epoch_)], SEPARATOR), makeString(signers_, SEPARATOR))]
238240
239241
240242 func _loadEventStatus (execChainId_,eventId_) = match getInteger(makeString([KEY_EVENT_STATUS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
241243 case a: Int =>
242244 a
243245 case _ =>
244246 EVENT_STATUS_INIT
245247 }
246248
247249
248250 func _saveEventStatus (execChainId_,eventId_,status_) = [IntegerEntry(makeString([KEY_EVENT_STATUS, toString(execChainId_), toString(eventId_)], SEPARATOR), status_)]
249251
250252
251253 func _loadLock (publicKey_) = match getInteger(makeString([KEY_LOCKS, publicKey_], SEPARATOR)) {
252254 case a: Int =>
253255 a
254256 case _ =>
255257 0
256258 }
257259
258260
259261 func _saveLock (publicKey_,val_) = [IntegerEntry(makeString([KEY_LOCKS, publicKey_], SEPARATOR), val_)]
260262
261263
262264 func _loadT (execChainId_,epoch_) = match getInteger(makeString([KEY_T, toString(execChainId_), toString(epoch_)], SEPARATOR)) {
263265 case a: Int =>
264266 a
265267 case _ =>
266268 0
267269 }
268270
269271
270272 func _saveT (execChainId_,epoch_,val_) = [IntegerEntry(makeString([KEY_T, toString(execChainId_), toString(epoch_)], SEPARATOR), val_)]
271273
272274
273275 func _loadRsByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
274276 case a: String =>
275277 if ((size(a) > 0))
276278 then split(a, SEPARATOR)
277279 else nil
278280 case _ =>
279281 nil
280282 }
281283
282284
283285 func _saveRsByEvent (execChainId_,eventId_,rs_) = [StringEntry(makeString([KEY_R, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
284286
285287
286288 func _loadSsByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
287289 case a: String =>
288290 if ((size(a) > 0))
289291 then split(a, SEPARATOR)
290292 else nil
291293 case _ =>
292294 nil
293295 }
294296
295297
296298 func _saveSsByEvent (execChainId_,eventId_,ss_) = [StringEntry(makeString([KEY_S, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
297299
298300
299301 func _loadRSigmaByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
300302 case a: String =>
301303 a
302304 case _ =>
303305 ""
304306 }
305307
306308
307309 func _saveRSigmaByEvent (execChainId_,eventId_,rSigma_) = [StringEntry(makeString([KEY_R_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR), rSigma_)]
308310
309311
310312 func _loadSSigmaByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
311313 case a: String =>
312314 a
313315 case _ =>
314316 ""
315317 }
316318
317319
318320 func _saveSSigmaByEvent (execChainId_,eventId_,sSigma_) = [StringEntry(makeString([KEY_S_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR), sSigma_)]
319321
320322
321323 func _loadRByEventAndSigner (execChainId_,eventId_,signer_) = match getString(makeString([KEY_R, toString(execChainId_), toString(eventId_), signer_], SEPARATOR)) {
322324 case a: String =>
323325 a
324326 case _ =>
325327 ""
326328 }
327329
328330
329331 func _saveRByEventAndSigner (execChainId_,eventId_,signer_,r_) = [StringEntry(makeString([KEY_R, toString(execChainId_), toString(eventId_), signer_], SEPARATOR), r_)]
330332
331333
332334 func _loadSByEventAndSigner (execChainId_,eventId_,signer_) = match getString(makeString([KEY_S, toString(execChainId_), toString(eventId_), signer_], SEPARATOR)) {
333335 case a: String =>
334336 a
335337 case _ =>
336338 ""
337339 }
338340
339341
340342 func _saveSByEventAndSigner (execChainId_,eventId_,signer_,s_) = [StringEntry(makeString([KEY_S, toString(execChainId_), toString(eventId_), signer_], SEPARATOR), s_)]
341343
342344
343345 func _loadSignersWithRByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
344346 case a: String =>
345347 if ((size(a) > 0))
346348 then split(a, SEPARATOR)
347349 else nil
348350 case _ =>
349351 nil
350352 }
351353
352354
353355 func _saveSignersWithRByEvent (execChainId_,eventId_,rs_) = [StringEntry(makeString([KEY_R_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
354356
355357
356358 func _loadSignersWithSByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
357359 case a: String =>
358360 if ((size(a) > 0))
359361 then split(a, SEPARATOR)
360362 else nil
361363 case _ =>
362364 nil
363365 }
364366
365367
366368 func _saveSignersWithSByEvent (execChainId_,eventId_,ss_) = [StringEntry(makeString([KEY_S_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
367369
368370
369371 func _loadEventStartBlock (execChainId_,eventId_) = match getInteger(makeString([KEY_EVENT_START_BLOCK, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
370372 case a: Int =>
371373 a
372374 case _ =>
373375 0
374376 }
375377
376378
377379 func _saveEventStartBlock (execChainId_,eventId_,val_) = [IntegerEntry(makeString([KEY_EVENT_START_BLOCK, toString(execChainId_), toString(eventId_)], SEPARATOR), val_)]
378380
379381
380382 func _loadSignedEventExecutorIdxSize (executionChainId_) = match getInteger(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR)) {
381383 case a: Int =>
382384 a
383385 case _ =>
384386 0
385387 }
386388
387389
388390 func _saveSignedEventExecutorIdxSize (executionChainId_,val_) = [IntegerEntry(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR), val_)]
389391
390392
391393 func _loadSignedEventExecutorIdx (executionChainId_,idx_) = match getInteger(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), toString(idx_)], SEPARATOR)) {
392394 case a: Int =>
393395 a
394396 case _ =>
395397 0
396398 }
397399
398400
399401 func _saveSignedEventExecutorIdx (executionChainId_,idx_,val_) = [IntegerEntry(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), toString(idx_)], SEPARATOR), val_)]
400402
401403
402404 func _onlyThisContract (caller_) = if ((caller_ != this))
403405 then throw("_onlyThisContract: revert")
404406 else true
405407
406408
407409 func _whenMultisigSet () = if ((_loadMultisig() == Address(base58'')))
408410 then throw("_whenMultisigSet: revert")
409411 else true
410412
411413
412414 func _whenNotInitialized () = if (_loadInit())
413415 then throw("_whenNotInitialized: revert")
414416 else true
415417
416418
417419 func _whenInitialized () = if (!(_loadInit()))
418420 then throw("_whenInitialized: revert")
419421 else true
420422
421423
422424 func _isActiveSigner (publicKey_,publicKeys_,err_) = if (!(containsElement(publicKeys_, publicKey_)))
423425 then throw(err_)
424426 else true
425427
426428
427429 func _checkSecDepo (signer_,err_) = if ((_loadMinSecDepo() > _loadSecDepo(addressFromPublicKey(fromBase58String(signer_)))))
428430 then throw(err_)
429431 else true
430432
431433
432434 func _checkEventStatusForSubmitR (execChainId_,eventId_,err_) = if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_INIT))
433435 then throw(err_)
434436 else true
435437
436438
437439 func _checkEventStatusForSubmitS (execChainId_,eventId_,err_) = if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_SIGN))
438440 then throw(err_)
439441 else true
440442
441443
442444 func _checkEventStatusForReset (execChainId_,eventId_,err_) = if (if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_SIGN))
443445 then true
444446 else ((_loadEventStartBlock(execChainId_, eventId_) + _loadResetBlockDelta()) > height))
445447 then throw(err_)
446448 else true
447449
448450
449451 func _incrementLocks (signers_) = {
450452 func foldFunc (acc,elem) = (acc ++ _saveLock(elem, (_loadLock(elem) + 1)))
451453
452454 let $l = signers_
453455 let $s = size($l)
454456 let $acc0 = nil
455457 func $f0_1 ($a,$i) = if (($i >= $s))
456458 then $a
457459 else foldFunc($a, $l[$i])
458460
459461 func $f0_2 ($a,$i) = if (($i >= $s))
460462 then $a
461463 else throw("List size exceeds 10")
462464
463465 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
464466 }
465467
466468
467469 func _isZeroLock (publicKey_,err_) = if ((_loadLock(publicKey_) > 0))
468470 then throw(err_)
469471 else true
470472
471473
472474 func _notSubmittedR (execChainId_,eventId_,signer_,err_) = {
473475 let r = _loadRByEventAndSigner(execChainId_, eventId_, signer_)
474476 if (if ((r != ""))
475477 then containsElement(_loadRsByEvent(execChainId_, eventId_), r)
476478 else false)
477479 then throw(err_)
478480 else true
479481 }
480482
481483
482484 func _notSubmittedS (execChainId_,eventId_,signer_,err_) = {
483485 let s = _loadSByEventAndSigner(execChainId_, eventId_, signer_)
484486 if (if ((s != ""))
485487 then containsElement(_loadSsByEvent(execChainId_, eventId_), s)
486488 else false)
487489 then throw(err_)
488490 else true
489491 }
490492
491493
492494 func _submittedR (execChainId_,eventId_,signer_,err_) = {
493495 let r = _loadRByEventAndSigner(execChainId_, eventId_, signer_)
494496 if (if ((r == ""))
495497 then true
496498 else !(containsElement(_loadRsByEvent(execChainId_, eventId_), r)))
497499 then throw(err_)
498500 else true
499501 }
500502
501503
502504 func _slashIncorrect (signersWithR_,signersWithS_) = {
503505 let punishment = _loadPunishment()
504506 func foldFunc (acc,elem) = if (containsElement(signersWithS_, elem))
505507 then $Tuple3(acc._1, (acc._2 :+ elem), acc._3)
506508 else {
507509 let signerAddress = addressFromPublicKey(fromBase58String(elem))
508510 $Tuple3((acc._1 ++ _saveSecDepo(signerAddress, (_loadSecDepo(signerAddress) - punishment))), acc._2, (acc._3 + punishment))
509511 }
510512
511513 let $l = signersWithR_
512514 let $s = size($l)
513515 let $acc0 = $Tuple3(nil, nil, 0)
514516 func $f0_1 ($a,$i) = if (($i >= $s))
515517 then $a
516518 else foldFunc($a, $l[$i])
517519
518520 func $f0_2 ($a,$i) = if (($i >= $s))
519521 then $a
520522 else throw("List size exceeds 10")
521523
522524 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
523525 }
524526
525527
526528 func _compensateCorrect (signers_,compensation_) = {
527529 let perSigner = (compensation_ / size(signers_))
528530 func foldFunc (acc,elem) = (acc :+ ScriptTransfer(addressFromPublicKey(fromBase58String(elem)), perSigner, unit))
529531
530532 let $l = signers_
531533 let $s = size($l)
532534 let $acc0 = nil
533535 func $f0_1 ($a,$i) = if (($i >= $s))
534536 then $a
535537 else foldFunc($a, $l[$i])
536538
537539 func $f0_2 ($a,$i) = if (($i >= $s))
538540 then $a
539541 else throw("List size exceeds 10")
540542
541543 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
542544 }
543545
544546
545547 func _publicKeysToAddrsStr (publicKeys_) = {
546548 func foldfunc (acc_,elem_) = (acc_ :+ toString(addressFromPublicKey(fromBase58String(elem_))))
547549
548550 let $l = publicKeys_
549551 let $s = size($l)
550552 let $acc0 = nil
551553 func $f0_1 ($a,$i) = if (($i >= $s))
552554 then $a
553555 else foldfunc($a, $l[$i])
554556
555557 func $f0_2 ($a,$i) = if (($i >= $s))
556558 then $a
557559 else throw("List size exceeds 51")
558560
559561 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51)
560562 }
561563
562564
563565 @Callable(i)
564566 func init (minSecDepo_,punishment_,resetBlockDelta_,rewardTokenAddress_,rewardAmount_) = {
565567 let err = if (if (if (if (if (if (if (_onlyThisContract(i.caller))
566568 then _whenNotInitialized()
567569 else false)
568570 then _whenMultisigSet()
569571 else false)
570572 then _validateInt(minSecDepo_, punishment_, MAX_INT, "init: invalid minSecDepo")
571573 else false)
572574 then _validateInt(punishment_, 0, MAX_INT, "init: invalid punishment")
573575 else false)
574576 then _validateInt(resetBlockDelta_, 0, MAX_INT, "init: invalid resetBlockDelta")
575577 else false)
576578 then _validateAddress(rewardTokenAddress_, "init: invalid rewardTokenAddress")
577579 else false)
578580 then _validateInt(rewardAmount_, 0, MAX_INT, "init: invalid rewardAmount")
579581 else false
580582 if ((err == err))
581583 then $Tuple2((((((_saveInit(true) ++ _saveMinSecDepo(minSecDepo_)) ++ _savePunishment(punishment_)) ++ _saveResetBlockDelta(resetBlockDelta_)) ++ _saveRewardTokenAddress(addressFromStringValue(rewardTokenAddress_))) ++ _saveRewardAmount(rewardAmount_)), unit)
582584 else throw("Strict value is not equal to itself.")
583585 }
584586
585587
586588
587589 @Callable(i)
588590 func setActiveSigners (execChainId_,signers_,t_) = {
589591 let err = if (if (if (_onlyThisContract(i.caller))
590592 then _whenInitialized()
591593 else false)
592594 then _validatePublicKeys(signers_, "setActiveSigners: invalid signers")
593595 else false)
594596 then _validateInt(t_, 2, size(signers_), "setActiveSigners: invalid T")
595597 else false
596598 if ((err == err))
597599 then {
598600 let epoch = _loadCurrentEpoch(execChainId_)
599601 $Tuple2((((_saveCurrentEpoch(execChainId_, (epoch + 1)) ++ _saveT(execChainId_, (epoch + 1), t_)) ++ _saveSigners(execChainId_, (epoch + 1), signers_)) ++ _incrementLocks(signers_)), unit)
600602 }
601603 else throw("Strict value is not equal to itself.")
602604 }
603605
604606
605607
606608 @Callable(i)
607609 func submitR (eventId_,execChainId_,r_) = {
608610 let callerPublicKey = toBase58String(i.callerPublicKey)
609611 let epoch = _loadCurrentEpoch(execChainId_)
610612 let t = _loadT(execChainId_, epoch)
611613 let err = if (if (if (if (if (if (if (_whenInitialized())
612614 then _validateInt(eventId_, 0, MAX_INT, "submitR: invalid eventId")
613615 else false)
614616 then _validateInt(execChainId_, 0, MAX_INT, "submitR: invalid execChainId")
615617 else false)
616618 then _validateString(r_, "submitR: invalid r")
617619 else false)
618620 then _isActiveSigner(callerPublicKey, _loadSigners(execChainId_, epoch), "submitR: not active")
619621 else false)
620622 then _checkSecDepo(callerPublicKey, "submitR: not enough security deposit")
621623 else false)
622624 then _checkEventStatusForSubmitR(execChainId_, eventId_, "submitR: invalid event status")
623625 else false)
624626 then _notSubmittedR(execChainId_, eventId_, callerPublicKey, "submitR: already submitted")
625627 else false
626628 if ((err == err))
627629 then {
628630 let rArray = _loadRsByEvent(execChainId_, eventId_)
629631 let signersArray = _loadSignersWithRByEvent(execChainId_, eventId_)
630632 let eventStatusActions = if (((size(rArray) + 1) == t))
631633 then (_saveEventStatus(execChainId_, eventId_, EVENT_STATUS_SIGN) ++ _saveEventStartBlock(execChainId_, eventId_, height))
632634 else nil
633635 $Tuple2((((_saveRsByEvent(execChainId_, eventId_, (rArray :+ r_)) ++ _saveRByEventAndSigner(execChainId_, eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(execChainId_, eventId_, (signersArray :+ callerPublicKey))) ++ eventStatusActions), unit)
634636 }
635637 else throw("Strict value is not equal to itself.")
636638 }
637639
638640
639641
640642 @Callable(i)
641643 func submitS (eventId_,execChainId_,rSigma_,s_,sSigma_) = {
642644 let callerPublicKey = toBase58String(i.callerPublicKey)
643645 let epoch = _loadCurrentEpoch(execChainId_)
644646 let t = _loadT(execChainId_, epoch)
645647 let err = if (if (if (if (if (if (if (if (if (_whenInitialized())
646648 then _validateInt(eventId_, 0, MAX_INT, "submitS: invalid eventId")
647649 else false)
648650 then _validateInt(execChainId_, 0, MAX_INT, "submitS: invalid execChainId")
649651 else false)
650652 then _validateString(rSigma_, "submitS: invalid r sigma")
651653 else false)
652654 then _validateString(s_, "submitS: invalid s")
653655 else false)
654656 then _isActiveSigner(callerPublicKey, _loadSigners(execChainId_, epoch), "submitS: not active")
655657 else false)
656658 then _checkSecDepo(callerPublicKey, "submitS: not enough security deposit")
657659 else false)
658660 then _checkEventStatusForSubmitS(execChainId_, eventId_, "submitS: invalid event status")
659661 else false)
660662 then _notSubmittedS(execChainId_, eventId_, callerPublicKey, "submitS: already submitted")
661663 else false)
662664 then _submittedR(execChainId_, eventId_, callerPublicKey, "submitS: R is not submitted")
663665 else false
664666 if ((err == err))
665667 then {
666668 let sArray = _loadSsByEvent(execChainId_, eventId_)
667669 let signersArray = _loadSignersWithSByEvent(execChainId_, eventId_)
668670 let eventStatusActions = if (((size(sArray) + 1) == t))
669671 then {
670672 let err1 = _validateString(sSigma_, "submitS: invalid s sigma")
671673 if ((err1 == err1))
672674 then {
673675 let executorIdxSize = _loadSignedEventExecutorIdxSize(execChainId_)
674676 let rewardAddresses = _publicKeysToAddrsStr((signersArray :+ callerPublicKey))
675677 let signersRewards = invoke(_loadRewardTokenAddress(), FUNC_MINT_MANY, [_loadRewardAmount(), rewardAddresses], nil)
676678 if ((signersRewards == signersRewards))
677679 then (((_saveEventStatus(execChainId_, eventId_, EVENT_STATUS_DONE) ++ _saveSignedEventExecutorIdx(execChainId_, executorIdxSize, eventId_)) ++ _saveSignedEventExecutorIdxSize(execChainId_, (executorIdxSize + 1))) ++ _saveSSigmaByEvent(execChainId_, eventId_, sSigma_))
678680 else throw("Strict value is not equal to itself.")
679681 }
680682 else throw("Strict value is not equal to itself.")
681683 }
682684 else nil
683685 $Tuple2(((((_saveSsByEvent(execChainId_, eventId_, (sArray :+ s_)) ++ _saveSByEventAndSigner(execChainId_, eventId_, callerPublicKey, s_)) ++ _saveSignersWithSByEvent(execChainId_, eventId_, (signersArray :+ callerPublicKey))) ++ _saveRSigmaByEvent(execChainId_, eventId_, rSigma_)) ++ eventStatusActions), unit)
684686 }
685687 else throw("Strict value is not equal to itself.")
686688 }
687689
688690
689691
690692 @Callable(i)
691693 func reset (eventId_,execChainId_,r_) = {
692694 let callerPublicKey = toBase58String(i.callerPublicKey)
693695 let epoch = _loadCurrentEpoch(execChainId_)
694696 let err = if (if (if (if (if (if (_whenInitialized())
695697 then _validateInt(eventId_, 0, MAX_INT, "reset: invalid eventId")
696698 else false)
697699 then _validateInt(execChainId_, 0, MAX_INT, "reset: invalid execChainId")
698700 else false)
699701 then _validateString(r_, "reset: invalid r")
700702 else false)
701703 then _isActiveSigner(callerPublicKey, _loadSigners(execChainId_, epoch), "reset: not active")
702704 else false)
703705 then _checkSecDepo(callerPublicKey, "reset: not enough security deposit")
704706 else false)
705707 then _checkEventStatusForReset(execChainId_, eventId_, "reset: invalid event status")
706708 else false
707709 if ((err == err))
708710 then {
709711 let slashAmount = 0
710712 let signersWithR = _loadSignersWithRByEvent(execChainId_, eventId_)
711713 let signersWithS = _loadSignersWithSByEvent(execChainId_, eventId_)
712714 let result = _slashIncorrect(signersWithR, signersWithS)
713715 let slashingActions = result._1
714716 let compensatedSigners = result._2
715717 let compensation = result._3
716718 let compensationActions = _compensateCorrect(compensatedSigners, compensation)
717719 $Tuple2((((((((((_saveEventStatus(execChainId_, eventId_, EVENT_STATUS_INIT) ++ _saveRsByEvent(execChainId_, eventId_, [r_])) ++ _saveRByEventAndSigner(execChainId_, eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(execChainId_, eventId_, [callerPublicKey])) ++ _saveRSigmaByEvent(execChainId_, eventId_, "")) ++ _saveSsByEvent(execChainId_, eventId_, nil)) ++ _saveSignersWithSByEvent(execChainId_, eventId_, nil)) ++ _saveSSigmaByEvent(execChainId_, eventId_, "")) ++ slashingActions) ++ compensationActions), unit)
718720 }
719721 else throw("Strict value is not equal to itself.")
720722 }
721723
722724
723725
724726 @Callable(i)
725727 func addSecurityDeposit (recipient_) = {
726728 let recipient = if ((recipient_ == ""))
727729 then toString(i.caller)
728730 else recipient_
729731 let err = if (if (_validateAddress(recipient, "addSecurityDeposit: invalid recipient"))
730732 then _validatePaymentsSize(i.payments, 1, "addSecurityDeposit: no payment")
731733 else false)
732734 then _validatePaymentAsset(i.payments[0], unit, "addSecurityDeposit: invalid asset")
733735 else false
734736 if ((err == err))
735737 then {
736738 let recipientAddr = addressFromStringValue(recipient)
737739 let balance = _loadSecDepo(recipientAddr)
738740 let updatedBalance = (balance + i.payments[0].amount)
739741 $Tuple2(_saveSecDepo(recipientAddr, updatedBalance), unit)
740742 }
741743 else throw("Strict value is not equal to itself.")
742744 }
743745
744746
745747
746748 @Callable(i)
747749 func subSecurityDeposit (amount_) = {
748750 let balance = _loadSecDepo(i.caller)
749751 let err = if (_isZeroLock(toBase58String(i.callerPublicKey), "subSecurityDeposit: locked"))
750752 then if ((amount_ > balance))
751753 then throw("subSecurityDeposit: insufficient balance")
752754 else true
753755 else false
754756 if ((err == err))
755757 then $Tuple2((_saveSecDepo(i.caller, (balance - amount_)) ++ [ScriptTransfer(i.caller, amount_, unit)]), unit)
756758 else throw("Strict value is not equal to itself.")
757759 }
758760
759761
760762
761763 @Callable(i)
762764 func setMultisig (multisig_) = {
763765 let err = if (_onlyThisContract(i.caller))
764766 then _validateAddress(multisig_, "setMultisig: invalid multisig address")
765767 else false
766768 if ((err == err))
767769 then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit)
768770 else throw("Strict value is not equal to itself.")
769771 }
770772
771773
772774 @Verifier(tx)
773775 func verify () = match getString(KEY_MULTISIG) {
774776 case multisig: String =>
775777 valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false)
776778 case _ =>
777779 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
778780 }
779781

github/deemru/w8io/169f3d6 
102.34 ms