tx · EJ59svKZrUUdgh7F38br24ueCJzUSsknzqGACGptEfPZ

3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK:  -0.02100000 Waves

2023.03.09 18:47 [2482758] smart account 3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK > SELF 0.00000000 Waves

{ "type": 13, "id": "EJ59svKZrUUdgh7F38br24ueCJzUSsknzqGACGptEfPZ", "fee": 2100000, "feeAssetId": null, "timestamp": 1678376855855, "version": 2, "chainId": 84, "sender": "3MpSqJhv64PR2m7Ywctv1Mp2Kjt3EUk3CSK", "senderPublicKey": "ErJhyueNNWWr8GEv71cFyhNnAtRC7sZt2TWFo89gdPo8", "proofs": [ "36msqKSYizRtZowk27KXBu8EHs8NMZciHyo5d2EC4FbM7Whn1wVZ5XHkNmrLZ3VQr8pqgeoEKHbmJ55GSjdCRPXz" ], "script": "base64:BgI4CAISBwoFAQEBCAESBQoDARgBEgUKAwEBCBIHCgUBAQgICBIFCgMBAQgSAwoBCBIDCgEBEgMKAQhmAAlTRVBBUkFUT1ICAl9fAAhLRVlfSU5JVAIESU5JVAAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTABBLRVlfTUlOX1NFQ19ERVBPAgxNSU5fU0VDX0RFUE8ADktFWV9QVU5JU0hNRU5UAgpQVU5JU0hNRU5UABVLRVlfUkVTRVRfQkxPQ0tfREVMVEECEVJFU0VUX0JMT0NLX0RFTFRBAAxLRVlfU0VDX0RFUE8CCFNFQ19ERVBPABhLRVlfUkVXQVJEX1RPS0VOX0FERFJFU1MCFFJFV0FSRF9UT0tFTl9BRERSRVNTABFLRVlfUkVXQVJEX0FNT1VOVAINUkVXQVJEX0FNT1VOVAARS0VZX0NVUlJFTlRfRVBPQ0gCDUNVUlJFTlRfRVBPQ0gAFUtFWV9TSUdORVJTX1BFUl9FUE9DSAIRU0lHTkVSU19QRVJfRVBPQ0gAEEtFWV9FVkVOVF9TVEFUVVMCD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dWJsaWNLZXlfGMe3", "height": 2482758, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 2CgR6yGrPGnXnGHpfkZ5cF1EdAeUuHNnZ8E8i94fFK1m Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 6 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let SEPARATOR = "__"
5+
6+let KEY_INIT = "INIT"
7+
8+let KEY_MULTISIG = "MULTISIG"
9+
10+let KEY_STATUS = "STATUS"
11+
12+let KEY_MIN_SEC_DEPO = "MIN_SEC_DEPO"
13+
14+let KEY_PUNISHMENT = "PUNISHMENT"
15+
16+let KEY_RESET_BLOCK_DELTA = "RESET_BLOCK_DELTA"
17+
18+let KEY_SEC_DEPO = "SEC_DEPO"
19+
20+let KEY_REWARD_TOKEN_ADDRESS = "REWARD_TOKEN_ADDRESS"
21+
22+let KEY_REWARD_AMOUNT = "REWARD_AMOUNT"
23+
24+let KEY_CURRENT_EPOCH = "CURRENT_EPOCH"
25+
26+let KEY_SIGNERS_PER_EPOCH = "SIGNERS_PER_EPOCH"
27+
28+let KEY_EVENT_STATUS = "EVENT_STATUS"
29+
30+let KEY_LOCKS = "LOCKS"
31+
32+let KEY_T = "T"
33+
34+let KEY_R = "R"
35+
36+let KEY_S = "S"
37+
38+let KEY_R_SIGNERS = "R_SIGNERS"
39+
40+let KEY_EVENT_START_BLOCK = "EVENT_START_BLOCK"
41+
42+let KEY_R_SIGMA = "R_SIGMA"
43+
44+let KEY_S_SIGMA = "S_SIGMA"
45+
46+let KEY_S_SIGNERS = "S_SIGNERS"
47+
48+let KEY_SIGNED_EVENT_EXECUTOR = "SIGNED_EVENT_EXECUTOR"
49+
50+let KEY_SIZE = "SIZE"
51+
52+let FUNC_MINT_MANY = "mintMany"
53+
54+let EVENT_STATUS_INIT = 1
55+
56+let EVENT_STATUS_SIGN = 2
57+
58+let EVENT_STATUS_DONE = 3
59+
60+let MAX_INT = 9223372036854775807
61+
62+func _validateAddress (address_,err_) = match addressFromString(address_) {
63+ case a: Address =>
64+ true
65+ case _ =>
66+ throw(err_)
67+}
68+
69+
70+func _validateAsset (assetId_,err_) = match assetInfo(fromBase58String(assetId_)) {
71+ case a: Asset =>
72+ true
73+ case _ =>
74+ throw(err_)
75+}
76+
77+
78+func _validateInt (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_))
79+ then true
80+ else (val_ > upperBoundary_))
81+ then throw(err_)
82+ else true
83+
84+
85+func _validateString (val_,err_) = if ((0 >= size(val_)))
86+ then throw(err_)
87+ else true
88+
89+
90+func _validatePaymentsSize (payments_,target_,err_) = if ((size(payments_) != target_))
91+ then throw(err_)
92+ else true
93+
94+
95+func _validatePaymentAsset (payment_,asset_,err_) = if ((payment_.assetId != asset_))
96+ then throw(err_)
97+ else true
98+
99+
100+func _validatePublicKey (publicKey_,err_) = if ((size(fromBase58String(publicKey_)) != 32))
101+ then throw(err_)
102+ else true
103+
104+
105+func _validatePublicKeys (publicKeys_,err_) = {
106+ func foldFunc (acc,elem) = $Tuple2(if (acc._1)
107+ then _validatePublicKey(elem, acc._2)
108+ else false, acc._2)
109+
110+ let result = {
111+ let $l = publicKeys_
112+ let $s = size($l)
113+ let $acc0 = $Tuple2(true, err_)
114+ func $f0_1 ($a,$i) = if (($i >= $s))
115+ then $a
116+ else foldFunc($a, $l[$i])
117+
118+ func $f0_2 ($a,$i) = if (($i >= $s))
119+ then $a
120+ else throw("List size exceeds 10")
121+
122+ $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)
123+ }
124+ result._1
125+ }
126+
127+
128+func _loadInit () = match getBoolean(KEY_INIT) {
129+ case a: Boolean =>
130+ a
131+ case _ =>
132+ false
133+}
134+
135+
136+func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)]
137+
138+
139+func _loadMultisig () = match getString(KEY_MULTISIG) {
140+ case a: String =>
141+ addressFromStringValue(a)
142+ case _ =>
143+ Address(base58'')
144+}
145+
146+
147+func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))]
148+
149+
150+func _loadMinSecDepo () = match getInteger(KEY_MIN_SEC_DEPO) {
151+ case a: Int =>
152+ a
153+ case _ =>
154+ 0
155+}
156+
157+
158+func _saveMinSecDepo (val_) = [IntegerEntry(KEY_MIN_SEC_DEPO, val_)]
159+
160+
161+func _loadSecDepo (account_) = match getInteger(makeString([KEY_SEC_DEPO, toString(account_)], SEPARATOR)) {
162+ case a: Int =>
163+ a
164+ case _ =>
165+ 0
166+}
167+
168+
169+func _saveSecDepo (account_,val_) = [IntegerEntry(makeString([KEY_SEC_DEPO, toString(account_)], SEPARATOR), val_)]
170+
171+
172+func _loadPunishment () = match getInteger(KEY_PUNISHMENT) {
173+ case a: Int =>
174+ a
175+ case _ =>
176+ 0
177+}
178+
179+
180+func _savePunishment (val_) = [IntegerEntry(KEY_PUNISHMENT, val_)]
181+
182+
183+func _loadResetBlockDelta () = match getInteger(KEY_RESET_BLOCK_DELTA) {
184+ case a: Int =>
185+ a
186+ case _ =>
187+ 0
188+}
189+
190+
191+func _saveResetBlockDelta (val_) = [IntegerEntry(KEY_RESET_BLOCK_DELTA, val_)]
192+
193+
194+func _loadRewardTokenAddress () = match getString(KEY_REWARD_TOKEN_ADDRESS) {
195+ case a: String =>
196+ addressFromStringValue(a)
197+ case _ =>
198+ Address(base58'')
199+}
200+
201+
202+func _saveRewardTokenAddress (val_) = [StringEntry(KEY_REWARD_TOKEN_ADDRESS, toString(val_))]
203+
204+
205+func _loadRewardAmount () = match getInteger(KEY_REWARD_AMOUNT) {
206+ case a: Int =>
207+ a
208+ case _ =>
209+ 0
210+}
211+
212+
213+func _saveRewardAmount (val_) = [IntegerEntry(KEY_REWARD_AMOUNT, val_)]
214+
215+
216+func _loadCurrentEpoch (execChainId_) = match getInteger(makeString([KEY_CURRENT_EPOCH, toString(execChainId_)], SEPARATOR)) {
217+ case a: Int =>
218+ a
219+ case _ =>
220+ 0
221+}
222+
223+
224+func _saveCurrentEpoch (execChainId_,val_) = [IntegerEntry(makeString([KEY_CURRENT_EPOCH, toString(execChainId_)], SEPARATOR), val_)]
225+
226+
227+func _loadSigners (execChainId_,epoch_) = match getString(makeString([KEY_SIGNERS_PER_EPOCH, toString(execChainId_), toString(epoch_)], SEPARATOR)) {
228+ case a: String =>
229+ if ((size(a) > 0))
230+ then split(a, SEPARATOR)
231+ else nil
232+ case _ =>
233+ nil
234+}
235+
236+
237+func _saveSigners (execChainId_,epoch_,signers_) = [StringEntry(makeString([KEY_SIGNERS_PER_EPOCH, toString(execChainId_), toString(epoch_)], SEPARATOR), makeString(signers_, SEPARATOR))]
238+
239+
240+func _loadEventStatus (execChainId_,eventId_) = match getInteger(makeString([KEY_EVENT_STATUS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
241+ case a: Int =>
242+ a
243+ case _ =>
244+ EVENT_STATUS_INIT
245+}
246+
247+
248+func _saveEventStatus (execChainId_,eventId_,status_) = [IntegerEntry(makeString([KEY_EVENT_STATUS, toString(execChainId_), toString(eventId_)], SEPARATOR), status_)]
249+
250+
251+func _loadLock (publicKey_) = match getInteger(makeString([KEY_LOCKS, publicKey_], SEPARATOR)) {
252+ case a: Int =>
253+ a
254+ case _ =>
255+ 0
256+}
257+
258+
259+func _saveLock (publicKey_,val_) = [IntegerEntry(makeString([KEY_LOCKS, publicKey_], SEPARATOR), val_)]
260+
261+
262+func _loadT (execChainId_,epoch_) = match getInteger(makeString([KEY_T, toString(execChainId_), toString(epoch_)], SEPARATOR)) {
263+ case a: Int =>
264+ a
265+ case _ =>
266+ 0
267+}
268+
269+
270+func _saveT (execChainId_,epoch_,val_) = [IntegerEntry(makeString([KEY_T, toString(execChainId_), toString(epoch_)], SEPARATOR), val_)]
271+
272+
273+func _loadRsByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
274+ case a: String =>
275+ if ((size(a) > 0))
276+ then split(a, SEPARATOR)
277+ else nil
278+ case _ =>
279+ nil
280+}
281+
282+
283+func _saveRsByEvent (execChainId_,eventId_,rs_) = [StringEntry(makeString([KEY_R, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
284+
285+
286+func _loadSsByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
287+ case a: String =>
288+ if ((size(a) > 0))
289+ then split(a, SEPARATOR)
290+ else nil
291+ case _ =>
292+ nil
293+}
294+
295+
296+func _saveSsByEvent (execChainId_,eventId_,ss_) = [StringEntry(makeString([KEY_S, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
297+
298+
299+func _loadRSigmaByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
300+ case a: String =>
301+ a
302+ case _ =>
303+ ""
304+}
305+
306+
307+func _saveRSigmaByEvent (execChainId_,eventId_,rSigma_) = [StringEntry(makeString([KEY_R_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR), rSigma_)]
308+
309+
310+func _loadSSigmaByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
311+ case a: String =>
312+ a
313+ case _ =>
314+ ""
315+}
316+
317+
318+func _saveSSigmaByEvent (execChainId_,eventId_,sSigma_) = [StringEntry(makeString([KEY_S_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR), sSigma_)]
319+
320+
321+func _loadRByEventAndSigner (execChainId_,eventId_,signer_) = match getString(makeString([KEY_R, toString(execChainId_), toString(eventId_), signer_], SEPARATOR)) {
322+ case a: String =>
323+ a
324+ case _ =>
325+ ""
326+}
327+
328+
329+func _saveRByEventAndSigner (execChainId_,eventId_,signer_,r_) = [StringEntry(makeString([KEY_R, toString(execChainId_), toString(eventId_), signer_], SEPARATOR), r_)]
330+
331+
332+func _loadSByEventAndSigner (execChainId_,eventId_,signer_) = match getString(makeString([KEY_S, toString(execChainId_), toString(eventId_), signer_], SEPARATOR)) {
333+ case a: String =>
334+ a
335+ case _ =>
336+ ""
337+}
338+
339+
340+func _saveSByEventAndSigner (execChainId_,eventId_,signer_,s_) = [StringEntry(makeString([KEY_S, toString(execChainId_), toString(eventId_), signer_], SEPARATOR), s_)]
341+
342+
343+func _loadSignersWithRByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
344+ case a: String =>
345+ if ((size(a) > 0))
346+ then split(a, SEPARATOR)
347+ else nil
348+ case _ =>
349+ nil
350+}
351+
352+
353+func _saveSignersWithRByEvent (execChainId_,eventId_,rs_) = [StringEntry(makeString([KEY_R_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
354+
355+
356+func _loadSignersWithSByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
357+ case a: String =>
358+ if ((size(a) > 0))
359+ then split(a, SEPARATOR)
360+ else nil
361+ case _ =>
362+ nil
363+}
364+
365+
366+func _saveSignersWithSByEvent (execChainId_,eventId_,ss_) = [StringEntry(makeString([KEY_S_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
367+
368+
369+func _loadEventStartBlock (execChainId_,eventId_) = match getInteger(makeString([KEY_EVENT_START_BLOCK, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
370+ case a: Int =>
371+ a
372+ case _ =>
373+ 0
374+}
375+
376+
377+func _saveEventStartBlock (execChainId_,eventId_,val_) = [IntegerEntry(makeString([KEY_EVENT_START_BLOCK, toString(execChainId_), toString(eventId_)], SEPARATOR), val_)]
378+
379+
380+func _loadSignedEventExecutorIdxSize (executionChainId_) = match getInteger(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR)) {
381+ case a: Int =>
382+ a
383+ case _ =>
384+ 0
385+}
386+
387+
388+func _saveSignedEventExecutorIdxSize (executionChainId_,val_) = [IntegerEntry(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR), val_)]
389+
390+
391+func _loadSignedEventExecutorIdx (executionChainId_,idx_) = match getInteger(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), toString(idx_)], SEPARATOR)) {
392+ case a: Int =>
393+ a
394+ case _ =>
395+ 0
396+}
397+
398+
399+func _saveSignedEventExecutorIdx (executionChainId_,idx_,val_) = [IntegerEntry(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), toString(idx_)], SEPARATOR), val_)]
400+
401+
402+func _onlyThisContract (caller_) = if ((caller_ != this))
403+ then throw("_onlyThisContract: revert")
404+ else true
405+
406+
407+func _whenMultisigSet () = if ((_loadMultisig() == Address(base58'')))
408+ then throw("_whenMultisigSet: revert")
409+ else true
410+
411+
412+func _whenNotInitialized () = if (_loadInit())
413+ then throw("_whenNotInitialized: revert")
414+ else true
415+
416+
417+func _whenInitialized () = if (!(_loadInit()))
418+ then throw("_whenInitialized: revert")
419+ else true
420+
421+
422+func _isActiveSigner (publicKey_,publicKeys_,err_) = if (!(containsElement(publicKeys_, publicKey_)))
423+ then throw(err_)
424+ else true
425+
426+
427+func _checkSecDepo (signer_,err_) = if ((_loadMinSecDepo() > _loadSecDepo(addressFromPublicKey(fromBase58String(signer_)))))
428+ then throw(err_)
429+ else true
430+
431+
432+func _checkEventStatusForSubmitR (execChainId_,eventId_,err_) = if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_INIT))
433+ then throw(err_)
434+ else true
435+
436+
437+func _checkEventStatusForSubmitS (execChainId_,eventId_,err_) = if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_SIGN))
438+ then throw(err_)
439+ else true
440+
441+
442+func _checkEventStatusForReset (execChainId_,eventId_,err_) = if (if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_SIGN))
443+ then true
444+ else ((_loadEventStartBlock(execChainId_, eventId_) + _loadResetBlockDelta()) > height))
445+ then throw(err_)
446+ else true
447+
448+
449+func _incrementLocks (signers_) = {
450+ func foldFunc (acc,elem) = (acc ++ _saveLock(elem, (_loadLock(elem) + 1)))
451+
452+ let $l = signers_
453+ let $s = size($l)
454+ let $acc0 = nil
455+ func $f0_1 ($a,$i) = if (($i >= $s))
456+ then $a
457+ else foldFunc($a, $l[$i])
458+
459+ func $f0_2 ($a,$i) = if (($i >= $s))
460+ then $a
461+ else throw("List size exceeds 10")
462+
463+ $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)
464+ }
465+
466+
467+func _isZeroLock (publicKey_,err_) = if ((_loadLock(publicKey_) > 0))
468+ then throw(err_)
469+ else true
470+
471+
472+func _notSubmittedR (execChainId_,eventId_,signer_,err_) = {
473+ let r = _loadRByEventAndSigner(execChainId_, eventId_, signer_)
474+ if (if ((r != ""))
475+ then containsElement(_loadRsByEvent(execChainId_, eventId_), r)
476+ else false)
477+ then throw(err_)
478+ else true
479+ }
480+
481+
482+func _notSubmittedS (execChainId_,eventId_,signer_,err_) = {
483+ let s = _loadSByEventAndSigner(execChainId_, eventId_, signer_)
484+ if (if ((s != ""))
485+ then containsElement(_loadSsByEvent(execChainId_, eventId_), s)
486+ else false)
487+ then throw(err_)
488+ else true
489+ }
490+
491+
492+func _submittedR (execChainId_,eventId_,signer_,err_) = {
493+ let r = _loadRByEventAndSigner(execChainId_, eventId_, signer_)
494+ if (if ((r == ""))
495+ then true
496+ else !(containsElement(_loadRsByEvent(execChainId_, eventId_), r)))
497+ then throw(err_)
498+ else true
499+ }
500+
501+
502+func _slashIncorrect (signersWithR_,signersWithS_) = {
503+ let punishment = _loadPunishment()
504+ func foldFunc (acc,elem) = if (containsElement(signersWithS_, elem))
505+ then $Tuple3(acc._1, (acc._2 :+ elem), acc._3)
506+ else {
507+ let signerAddress = addressFromPublicKey(fromBase58String(elem))
508+ $Tuple3((acc._1 ++ _saveSecDepo(signerAddress, (_loadSecDepo(signerAddress) - punishment))), acc._2, (acc._3 + punishment))
509+ }
510+
511+ let $l = signersWithR_
512+ let $s = size($l)
513+ let $acc0 = $Tuple3(nil, nil, 0)
514+ func $f0_1 ($a,$i) = if (($i >= $s))
515+ then $a
516+ else foldFunc($a, $l[$i])
517+
518+ func $f0_2 ($a,$i) = if (($i >= $s))
519+ then $a
520+ else throw("List size exceeds 10")
521+
522+ $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)
523+ }
524+
525+
526+func _compensateCorrect (signers_,compensation_) = {
527+ let perSigner = (compensation_ / size(signers_))
528+ func foldFunc (acc,elem) = (acc :+ ScriptTransfer(addressFromPublicKey(fromBase58String(elem)), perSigner, unit))
529+
530+ let $l = signers_
531+ let $s = size($l)
532+ let $acc0 = nil
533+ func $f0_1 ($a,$i) = if (($i >= $s))
534+ then $a
535+ else foldFunc($a, $l[$i])
536+
537+ func $f0_2 ($a,$i) = if (($i >= $s))
538+ then $a
539+ else throw("List size exceeds 10")
540+
541+ $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)
542+ }
543+
544+
545+func _publicKeysToAddrsStr (publicKeys_) = {
546+ func foldfunc (acc_,elem_) = (acc_ :+ toString(addressFromPublicKey(fromBase58String(elem_))))
547+
548+ let $l = publicKeys_
549+ let $s = size($l)
550+ let $acc0 = nil
551+ func $f0_1 ($a,$i) = if (($i >= $s))
552+ then $a
553+ else foldfunc($a, $l[$i])
554+
555+ func $f0_2 ($a,$i) = if (($i >= $s))
556+ then $a
557+ else throw("List size exceeds 51")
558+
559+ $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)
560+ }
561+
562+
563+@Callable(i)
564+func init (minSecDepo_,punishment_,resetBlockDelta_,rewardTokenAddress_,rewardAmount_) = {
565+ let err = if (if (if (if (if (if (if (_onlyThisContract(i.caller))
566+ then _whenNotInitialized()
567+ else false)
568+ then _whenMultisigSet()
569+ else false)
570+ then _validateInt(minSecDepo_, punishment_, MAX_INT, "init: invalid minSecDepo")
571+ else false)
572+ then _validateInt(punishment_, 0, MAX_INT, "init: invalid punishment")
573+ else false)
574+ then _validateInt(resetBlockDelta_, 0, MAX_INT, "init: invalid resetBlockDelta")
575+ else false)
576+ then _validateAddress(rewardTokenAddress_, "init: invalid rewardTokenAddress")
577+ else false)
578+ then _validateInt(rewardAmount_, 0, MAX_INT, "init: invalid rewardAmount")
579+ else false
580+ if ((err == err))
581+ then $Tuple2((((((_saveInit(true) ++ _saveMinSecDepo(minSecDepo_)) ++ _savePunishment(punishment_)) ++ _saveResetBlockDelta(resetBlockDelta_)) ++ _saveRewardTokenAddress(addressFromStringValue(rewardTokenAddress_))) ++ _saveRewardAmount(rewardAmount_)), unit)
582+ else throw("Strict value is not equal to itself.")
583+ }
584+
585+
586+
587+@Callable(i)
588+func setActiveSigners (execChainId_,signers_,t_) = {
589+ let err = if (if (if (_onlyThisContract(i.caller))
590+ then _whenInitialized()
591+ else false)
592+ then _validatePublicKeys(signers_, "setActiveSigners: invalid signers")
593+ else false)
594+ then _validateInt(t_, 2, size(signers_), "setActiveSigners: invalid T")
595+ else false
596+ if ((err == err))
597+ then {
598+ let epoch = _loadCurrentEpoch(execChainId_)
599+ $Tuple2((((_saveCurrentEpoch(execChainId_, (epoch + 1)) ++ _saveT(execChainId_, (epoch + 1), t_)) ++ _saveSigners(execChainId_, (epoch + 1), signers_)) ++ _incrementLocks(signers_)), unit)
600+ }
601+ else throw("Strict value is not equal to itself.")
602+ }
603+
604+
605+
606+@Callable(i)
607+func submitR (eventId_,execChainId_,r_) = {
608+ let callerPublicKey = toBase58String(i.callerPublicKey)
609+ let epoch = _loadCurrentEpoch(execChainId_)
610+ let t = _loadT(execChainId_, epoch)
611+ let err = if (if (if (if (if (if (if (_whenInitialized())
612+ then _validateInt(eventId_, 0, MAX_INT, "submitR: invalid eventId")
613+ else false)
614+ then _validateInt(execChainId_, 0, MAX_INT, "submitR: invalid execChainId")
615+ else false)
616+ then _validateString(r_, "submitR: invalid r")
617+ else false)
618+ then _isActiveSigner(callerPublicKey, _loadSigners(execChainId_, epoch), "submitR: not active")
619+ else false)
620+ then _checkSecDepo(callerPublicKey, "submitR: not enough security deposit")
621+ else false)
622+ then _checkEventStatusForSubmitR(execChainId_, eventId_, "submitR: invalid event status")
623+ else false)
624+ then _notSubmittedR(execChainId_, eventId_, callerPublicKey, "submitR: already submitted")
625+ else false
626+ if ((err == err))
627+ then {
628+ let rArray = _loadRsByEvent(execChainId_, eventId_)
629+ let signersArray = _loadSignersWithRByEvent(execChainId_, eventId_)
630+ let eventStatusActions = if (((size(rArray) + 1) == t))
631+ then (_saveEventStatus(execChainId_, eventId_, EVENT_STATUS_SIGN) ++ _saveEventStartBlock(execChainId_, eventId_, height))
632+ else nil
633+ $Tuple2((((_saveRsByEvent(execChainId_, eventId_, (rArray :+ r_)) ++ _saveRByEventAndSigner(execChainId_, eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(execChainId_, eventId_, (signersArray :+ callerPublicKey))) ++ eventStatusActions), unit)
634+ }
635+ else throw("Strict value is not equal to itself.")
636+ }
637+
638+
639+
640+@Callable(i)
641+func submitS (eventId_,execChainId_,rSigma_,s_,sSigma_) = {
642+ let callerPublicKey = toBase58String(i.callerPublicKey)
643+ let epoch = _loadCurrentEpoch(execChainId_)
644+ let t = _loadT(execChainId_, epoch)
645+ let err = if (if (if (if (if (if (if (if (if (_whenInitialized())
646+ then _validateInt(eventId_, 0, MAX_INT, "submitS: invalid eventId")
647+ else false)
648+ then _validateInt(execChainId_, 0, MAX_INT, "submitS: invalid execChainId")
649+ else false)
650+ then _validateString(rSigma_, "submitS: invalid r sigma")
651+ else false)
652+ then _validateString(s_, "submitS: invalid s")
653+ else false)
654+ then _isActiveSigner(callerPublicKey, _loadSigners(execChainId_, epoch), "submitS: not active")
655+ else false)
656+ then _checkSecDepo(callerPublicKey, "submitS: not enough security deposit")
657+ else false)
658+ then _checkEventStatusForSubmitS(execChainId_, eventId_, "submitS: invalid event status")
659+ else false)
660+ then _notSubmittedS(execChainId_, eventId_, callerPublicKey, "submitS: already submitted")
661+ else false)
662+ then _submittedR(execChainId_, eventId_, callerPublicKey, "submitS: R is not submitted")
663+ else false
664+ if ((err == err))
665+ then {
666+ let sArray = _loadSsByEvent(execChainId_, eventId_)
667+ let signersArray = _loadSignersWithSByEvent(execChainId_, eventId_)
668+ let eventStatusActions = if (((size(sArray) + 1) == t))
669+ then {
670+ let err1 = _validateString(sSigma_, "submitS: invalid s sigma")
671+ if ((err1 == err1))
672+ then {
673+ let executorIdxSize = _loadSignedEventExecutorIdxSize(execChainId_)
674+ let rewardAddresses = _publicKeysToAddrsStr((signersArray :+ callerPublicKey))
675+ let signersRewards = invoke(_loadRewardTokenAddress(), FUNC_MINT_MANY, [_loadRewardAmount(), rewardAddresses], nil)
676+ if ((signersRewards == signersRewards))
677+ then (((_saveEventStatus(execChainId_, eventId_, EVENT_STATUS_DONE) ++ _saveSignedEventExecutorIdx(execChainId_, executorIdxSize, eventId_)) ++ _saveSignedEventExecutorIdxSize(execChainId_, (executorIdxSize + 1))) ++ _saveSSigmaByEvent(execChainId_, eventId_, sSigma_))
678+ else throw("Strict value is not equal to itself.")
679+ }
680+ else throw("Strict value is not equal to itself.")
681+ }
682+ else nil
683+ $Tuple2(((((_saveSsByEvent(execChainId_, eventId_, (sArray :+ s_)) ++ _saveSByEventAndSigner(execChainId_, eventId_, callerPublicKey, s_)) ++ _saveSignersWithSByEvent(execChainId_, eventId_, (signersArray :+ callerPublicKey))) ++ _saveRSigmaByEvent(execChainId_, eventId_, rSigma_)) ++ eventStatusActions), unit)
684+ }
685+ else throw("Strict value is not equal to itself.")
686+ }
687+
688+
689+
690+@Callable(i)
691+func reset (eventId_,execChainId_,r_) = {
692+ let callerPublicKey = toBase58String(i.callerPublicKey)
693+ let epoch = _loadCurrentEpoch(execChainId_)
694+ let err = if (if (if (if (if (if (_whenInitialized())
695+ then _validateInt(eventId_, 0, MAX_INT, "reset: invalid eventId")
696+ else false)
697+ then _validateInt(execChainId_, 0, MAX_INT, "reset: invalid execChainId")
698+ else false)
699+ then _validateString(r_, "reset: invalid r")
700+ else false)
701+ then _isActiveSigner(callerPublicKey, _loadSigners(execChainId_, epoch), "reset: not active")
702+ else false)
703+ then _checkSecDepo(callerPublicKey, "reset: not enough security deposit")
704+ else false)
705+ then _checkEventStatusForReset(execChainId_, eventId_, "reset: invalid event status")
706+ else false
707+ if ((err == err))
708+ then {
709+ let slashAmount = 0
710+ let signersWithR = _loadSignersWithRByEvent(execChainId_, eventId_)
711+ let signersWithS = _loadSignersWithSByEvent(execChainId_, eventId_)
712+ let result = _slashIncorrect(signersWithR, signersWithS)
713+ let slashingActions = result._1
714+ let compensatedSigners = result._2
715+ let compensation = result._3
716+ let compensationActions = _compensateCorrect(compensatedSigners, compensation)
717+ $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)
718+ }
719+ else throw("Strict value is not equal to itself.")
720+ }
721+
722+
723+
724+@Callable(i)
725+func addSecurityDeposit (recipient_) = {
726+ let recipient = if ((recipient_ == ""))
727+ then toString(i.caller)
728+ else recipient_
729+ let err = if (if (_validateAddress(recipient, "addSecurityDeposit: invalid recipient"))
730+ then _validatePaymentsSize(i.payments, 1, "addSecurityDeposit: no payment")
731+ else false)
732+ then _validatePaymentAsset(i.payments[0], unit, "addSecurityDeposit: invalid asset")
733+ else false
734+ if ((err == err))
735+ then {
736+ let recipientAddr = addressFromStringValue(recipient)
737+ let balance = _loadSecDepo(recipientAddr)
738+ let updatedBalance = (balance + i.payments[0].amount)
739+ $Tuple2(_saveSecDepo(recipientAddr, updatedBalance), unit)
740+ }
741+ else throw("Strict value is not equal to itself.")
742+ }
743+
744+
745+
746+@Callable(i)
747+func subSecurityDeposit (amount_) = {
748+ let balance = _loadSecDepo(i.caller)
749+ let err = if (_isZeroLock(toBase58String(i.callerPublicKey), "subSecurityDeposit: locked"))
750+ then if ((amount_ > balance))
751+ then throw("subSecurityDeposit: insufficient balance")
752+ else true
753+ else false
754+ if ((err == err))
755+ then $Tuple2((_saveSecDepo(i.caller, (balance - amount_)) ++ [ScriptTransfer(i.caller, amount_, unit)]), unit)
756+ else throw("Strict value is not equal to itself.")
757+ }
758+
759+
760+
761+@Callable(i)
762+func setMultisig (multisig_) = {
763+ let err = if (_onlyThisContract(i.caller))
764+ then _validateAddress(multisig_, "setMultisig: invalid multisig address")
765+ else false
766+ if ((err == err))
767+ then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit)
768+ else throw("Strict value is not equal to itself.")
769+ }
770+
771+
772+@Verifier(tx)
773+func verify () = match getString(KEY_MULTISIG) {
774+ case multisig: String =>
775+ valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false)
776+ case _ =>
777+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
778+}
779+

github/deemru/w8io/169f3d6 
35.08 ms