tx · 9iRCKULuSrgreEPfNpnpvnr5LiijwDkJ26QDeQRCGxgx

3N7m9xGD4z7uJNvH1s7U1yyU9FygAyDfgNf:  -0.02100000 Waves

2023.03.07 21:50 [2480045] smart account 3N7m9xGD4z7uJNvH1s7U1yyU9FygAyDfgNf > SELF 0.00000000 Waves

{ "type": 13, "id": "9iRCKULuSrgreEPfNpnpvnr5LiijwDkJ26QDeQRCGxgx", "fee": 2100000, "feeAssetId": null, "timestamp": 1678214866431, "version": 2, "chainId": 84, "sender": "3N7m9xGD4z7uJNvH1s7U1yyU9FygAyDfgNf", "senderPublicKey": "5xVy1ofqNp5FKaYbUWbxAYDz718ERzA8Eb4RB54ECJV2", "proofs": [ "3mBx5HiCAKmBKgUnA9RjL6Yf5ZRFDUVyRyAwBBaQtKxC2wNspYXww2ApzXKGspoxcYSRswW1p3juJU3rsFBTsrBt" ], "script": "base64:BgI4CAISBwoFAQEBCAESBQoDARgBEgUKAwEBCBIHCgUBAQgICBIFCgMBAQgSAwoBCBIDCgEBEgMKAQhmAAlTRVBBUkFUT1ICAl9fAAhLRVlfSU5JVAIESU5JVAAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTABBLRVlfTUlOX1NFQ19ERVBPAgxNSU5fU0VDX0RFUE8ADktFWV9QVU5JU0hNRU5UAgpQVU5JU0hNRU5UABVLRVlfUkVTRVRfQkxPQ0tfREVMVEECEVJFU0VUX0JMT0NLX0RFTFRBAAxLRVlfU0VDX0RFUE8CCFNFQ19ERVBPABhLRVlfUkVXQVJEX1RPS0VOX0FERFJFU1MCFFJFV0FSRF9UT0tFTl9BRERSRVNTABFLRVlfUkVXQVJEX0FNT1VOVAINUkVXQVJEX0FNT1VOVAARS0VZX0NVUlJFTlRfRVBPQ0gCDUNVUlJFTlRfRVBPQ0gAFUtFWV9TSUdORVJTX1BFUl9FUE9DSAIRU0lHTkVSU19QRVJfRVBPQ0gAEEtFWV9FVkVOVF9TVEFUVV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ludmFsaWQgbXVsdGlzaWcgYWRkcmVzcwcDCQAAAgUDZXJyBQNlcnIJAJQKAgkBDV9zYXZlTXVsdGlzaWcBCQERQGV4dHJOYXRpdmUoMTA2MikBBQltdWx0aXNpZ18FBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwCQCiCAEFDEtFWV9NVUxUSVNJRwMJAAECBQckbWF0Y2gwAgZTdHJpbmcECG11bHRpc2lnBQckbWF0Y2gwCQELdmFsdWVPckVsc2UCCQCbCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCG11bHRpc2lnCQC5CQIJAMwIAgUKS0VZX1NUQVRVUwkAzAgCCQClCAEFBHRoaXMJAMwIAgkA2AQBCAUCdHgCaWQFA25pbAUJU0VQQVJBVE9SBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleRr/sbE=", "height": 2480045, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4wFbEBnphYe5Fiend6wRjrdqLeMw3ZgvGdYSCGbt94Zf Next: none Diff:
OldNewDifferences
235235 func _saveSigners (execChainId_,epoch_,signers_) = [StringEntry(makeString([KEY_SIGNERS_PER_EPOCH, toString(execChainId_), toString(epoch_)], SEPARATOR), makeString(signers_, SEPARATOR))]
236236
237237
238-func _loadEventStatus (eventId_) = match getInteger(makeString([KEY_EVENT_STATUS, toString(eventId_)], SEPARATOR)) {
238+func _loadEventStatus (execChainId_,eventId_) = match getInteger(makeString([KEY_EVENT_STATUS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
239239 case a: Int =>
240240 a
241241 case _ =>
243243 }
244244
245245
246-func _saveEventStatus (eventId_,status_) = [IntegerEntry(makeString([KEY_EVENT_STATUS, toString(eventId_)], SEPARATOR), status_)]
246+func _saveEventStatus (execChainId_,eventId_,status_) = [IntegerEntry(makeString([KEY_EVENT_STATUS, toString(execChainId_), toString(eventId_)], SEPARATOR), status_)]
247247
248248
249249 func _loadLock (publicKey_) = match getInteger(makeString([KEY_LOCKS, publicKey_], SEPARATOR)) {
268268 func _saveT (execChainId_,epoch_,val_) = [IntegerEntry(makeString([KEY_T, toString(execChainId_), toString(epoch_)], SEPARATOR), val_)]
269269
270270
271-func _loadRsByEvent (eventId_) = match getString(makeString([KEY_R, toString(eventId_)], SEPARATOR)) {
271+func _loadRsByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
272272 case a: String =>
273273 split(a, SEPARATOR)
274274 case _ =>
276276 }
277277
278278
279-func _saveRsByEvent (eventId_,rs_) = [StringEntry(makeString([KEY_R, toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
279+func _saveRsByEvent (execChainId_,eventId_,rs_) = [StringEntry(makeString([KEY_R, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
280280
281281
282-func _loadSsByEvent (eventId_) = match getString(makeString([KEY_S, toString(eventId_)], SEPARATOR)) {
282+func _loadSsByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
283283 case a: String =>
284284 split(a, SEPARATOR)
285285 case _ =>
287287 }
288288
289289
290-func _saveSsByEvent (eventId_,ss_) = [StringEntry(makeString([KEY_S, toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
290+func _saveSsByEvent (execChainId_,eventId_,ss_) = [StringEntry(makeString([KEY_S, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
291291
292292
293-func _loadRSigmaByEvent (eventId_) = match getString(makeString([KEY_R_SIGMA, toString(eventId_)], SEPARATOR)) {
293+func _loadRSigmaByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
294294 case a: String =>
295295 a
296296 case _ =>
298298 }
299299
300300
301-func _saveRSigmaByEvent (eventId_,rSigma_) = [StringEntry(makeString([KEY_R_SIGMA, toString(eventId_)], SEPARATOR), rSigma_)]
301+func _saveRSigmaByEvent (execChainId_,eventId_,rSigma_) = [StringEntry(makeString([KEY_R_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR), rSigma_)]
302302
303303
304-func _loadSSigmaByEvent (eventId_) = match getString(makeString([KEY_S_SIGMA, toString(eventId_)], SEPARATOR)) {
304+func _loadSSigmaByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
305305 case a: String =>
306306 a
307307 case _ =>
309309 }
310310
311311
312-func _saveSSigmaByEvent (eventId_,sSigma_) = [StringEntry(makeString([KEY_S_SIGMA, toString(eventId_)], SEPARATOR), sSigma_)]
312+func _saveSSigmaByEvent (execChainId_,eventId_,sSigma_) = [StringEntry(makeString([KEY_S_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR), sSigma_)]
313313
314314
315-func _loadRByEventAndSigner (eventId_,signer_) = match getString(makeString([KEY_R, toString(eventId_), signer_], SEPARATOR)) {
315+func _loadRByEventAndSigner (execChainId_,eventId_,signer_) = match getString(makeString([KEY_R, toString(execChainId_), toString(eventId_), signer_], SEPARATOR)) {
316316 case a: String =>
317317 a
318318 case _ =>
320320 }
321321
322322
323-func _saveRByEventAndSigner (eventId_,signer_,r_) = [StringEntry(makeString([KEY_R, toString(eventId_), signer_], SEPARATOR), r_)]
323+func _saveRByEventAndSigner (execChainId_,eventId_,signer_,r_) = [StringEntry(makeString([KEY_R, toString(execChainId_), toString(eventId_), signer_], SEPARATOR), r_)]
324324
325325
326-func _loadSByEventAndSigner (eventId_,signer_) = match getString(makeString([KEY_S, toString(eventId_), signer_], SEPARATOR)) {
326+func _loadSByEventAndSigner (execChainId_,eventId_,signer_) = match getString(makeString([KEY_S, toString(execChainId_), toString(eventId_), signer_], SEPARATOR)) {
327327 case a: String =>
328328 a
329329 case _ =>
331331 }
332332
333333
334-func _saveSByEventAndSigner (eventId_,signer_,s_) = [StringEntry(makeString([KEY_S, toString(eventId_), signer_], SEPARATOR), s_)]
334+func _saveSByEventAndSigner (execChainId_,eventId_,signer_,s_) = [StringEntry(makeString([KEY_S, toString(execChainId_), toString(eventId_), signer_], SEPARATOR), s_)]
335335
336336
337-func _loadSignersWithRByEvent (eventId_) = match getString(makeString([KEY_R_SIGNERS, toString(eventId_)], SEPARATOR)) {
337+func _loadSignersWithRByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
338338 case a: String =>
339339 split(a, SEPARATOR)
340340 case _ =>
342342 }
343343
344344
345-func _saveSignersWithRByEvent (eventId_,rs_) = [StringEntry(makeString([KEY_R_SIGNERS, toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
345+func _saveSignersWithRByEvent (execChainId_,eventId_,rs_) = [StringEntry(makeString([KEY_R_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
346346
347347
348-func _loadSignersWithSByEvent (eventId_) = match getString(makeString([KEY_S_SIGNERS, toString(eventId_)], SEPARATOR)) {
348+func _loadSignersWithSByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
349349 case a: String =>
350350 split(a, SEPARATOR)
351351 case _ =>
353353 }
354354
355355
356-func _saveSignersWithSByEvent (eventId_,ss_) = [StringEntry(makeString([KEY_S_SIGNERS, toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
356+func _saveSignersWithSByEvent (execChainId_,eventId_,ss_) = [StringEntry(makeString([KEY_S_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
357357
358358
359-func _loadEventStartBlock (eventId_) = match getInteger(makeString([KEY_EVENT_START_BLOCK, toString(eventId_)], SEPARATOR)) {
359+func _loadEventStartBlock (execChainId_,eventId_) = match getInteger(makeString([KEY_EVENT_START_BLOCK, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
360360 case a: Int =>
361361 a
362362 case _ =>
364364 }
365365
366366
367-func _saveEventStartBlock (eventId_,val_) = [IntegerEntry(makeString([KEY_EVENT_START_BLOCK, toString(eventId_)], SEPARATOR), val_)]
367+func _saveEventStartBlock (execChainId_,eventId_,val_) = [IntegerEntry(makeString([KEY_EVENT_START_BLOCK, toString(execChainId_), toString(eventId_)], SEPARATOR), val_)]
368368
369369
370370 func _loadSignedEventExecutorIdxSize (executionChainId_) = match getInteger(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR)) {
419419 else true
420420
421421
422-func _checkEventStatusForSubmitR (eventId_,err_) = if ((_loadEventStatus(eventId_) != EVENT_STATUS_INIT))
422+func _checkEventStatusForSubmitR (execChainId_,eventId_,err_) = if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_INIT))
423423 then throw(err_)
424424 else true
425425
426426
427-func _checkEventStatusForSubmitS (eventId_,err_) = if ((_loadEventStatus(eventId_) != EVENT_STATUS_SIGN))
427+func _checkEventStatusForSubmitS (execChainId_,eventId_,err_) = if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_SIGN))
428428 then throw(err_)
429429 else true
430430
431431
432-func _checkEventStatusForReset (eventId_,err_) = if (if ((_loadEventStatus(eventId_) != EVENT_STATUS_SIGN))
432+func _checkEventStatusForReset (execChainId_,eventId_,err_) = if (if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_SIGN))
433433 then true
434- else (height >= (_loadEventStartBlock(eventId_) + _loadResetBlockDelta())))
434+ else (height >= (_loadEventStartBlock(execChainId_, eventId_) + _loadResetBlockDelta())))
435435 then throw(err_)
436436 else true
437437
459459 else true
460460
461461
462-func _notSubmittedR (eventId_,signer_,err_) = if ((_loadRByEventAndSigner(eventId_, signer_) != ""))
462+func _notSubmittedR (execChainId_,eventId_,signer_,err_) = if ((_loadRByEventAndSigner(execChainId_, eventId_, signer_) != ""))
463463 then throw(err_)
464464 else true
465465
466466
467-func _notSubmittedS (eventId_,signer_,err_) = if ((_loadSByEventAndSigner(eventId_, signer_) != ""))
467+func _notSubmittedS (execChainId_,eventId_,signer_,err_) = if ((_loadSByEventAndSigner(execChainId_, eventId_, signer_) != ""))
468468 then throw(err_)
469469 else true
470470
471471
472-func _submittedR (eventId_,signer_,err_) = {
473- let r = _loadRByEventAndSigner(eventId_, signer_)
472+func _submittedR (execChainId_,eventId_,signer_,err_) = {
473+ let r = _loadRByEventAndSigner(execChainId_, eventId_, signer_)
474474 if ((r == ""))
475475 then throw(err_)
476- else if (!(containsElement(_loadRsByEvent(eventId_), r)))
476+ else if (!(containsElement(_loadRsByEvent(execChainId_, eventId_), r)))
477477 then throw(err_)
478478 else true
479479 }
599599 else false)
600600 then _checkSecDepo(callerPublicKey, "submitR: not enough security deposit")
601601 else false)
602- then _checkEventStatusForSubmitR(eventId_, "submitR: invalid event status")
602+ then _checkEventStatusForSubmitR(execChainId_, eventId_, "submitR: invalid event status")
603603 else false)
604- then _notSubmittedR(eventId_, callerPublicKey, "submitR: already submitted")
604+ then _notSubmittedR(execChainId_, eventId_, callerPublicKey, "submitR: already submitted")
605605 else false
606606 if ((err == err))
607607 then {
608- let rArray = _loadRsByEvent(eventId_)
609- let signersArray = _loadSignersWithRByEvent(eventId_)
608+ let rArray = _loadRsByEvent(execChainId_, eventId_)
609+ let signersArray = _loadSignersWithRByEvent(execChainId_, eventId_)
610610 let eventStatusActions = if (((size(rArray) + 1) == t))
611- then (_saveEventStatus(eventId_, EVENT_STATUS_SIGN) ++ _saveEventStartBlock(eventId_, height))
611+ then (_saveEventStatus(execChainId_, eventId_, EVENT_STATUS_SIGN) ++ _saveEventStartBlock(execChainId_, eventId_, height))
612612 else nil
613- $Tuple2((((_saveRsByEvent(eventId_, (rArray :+ r_)) ++ _saveRByEventAndSigner(eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(eventId_, (signersArray :+ callerPublicKey))) ++ eventStatusActions), unit)
613+ $Tuple2((((_saveRsByEvent(execChainId_, eventId_, (rArray :+ r_)) ++ _saveRByEventAndSigner(execChainId_, eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(execChainId_, eventId_, (signersArray :+ callerPublicKey))) ++ eventStatusActions), unit)
614614 }
615615 else throw("Strict value is not equal to itself.")
616616 }
635635 else false)
636636 then _checkSecDepo(callerPublicKey, "submitS: not enough security deposit")
637637 else false)
638- then _checkEventStatusForSubmitS(eventId_, "submitS: invalid event status")
638+ then _checkEventStatusForSubmitS(execChainId_, eventId_, "submitS: invalid event status")
639639 else false)
640- then _notSubmittedS(eventId_, callerPublicKey, "submitS: already submitted")
640+ then _notSubmittedS(execChainId_, eventId_, callerPublicKey, "submitS: already submitted")
641641 else false)
642- then _submittedR(eventId_, callerPublicKey, "submitS: R is not submitted")
642+ then _submittedR(execChainId_, eventId_, callerPublicKey, "submitS: R is not submitted")
643643 else false
644644 if ((err == err))
645645 then {
646- let sArray = _loadSsByEvent(eventId_)
647- let signersArray = _loadSignersWithSByEvent(eventId_)
646+ let sArray = _loadSsByEvent(execChainId_, eventId_)
647+ let signersArray = _loadSignersWithSByEvent(execChainId_, eventId_)
648648 let eventStatusActions = if (((size(sArray) + 1) == t))
649649 then {
650650 let err1 = _validateString(sSigma_, "submitS: invalid s sigma")
654654 let rewardAddresses = _publicKeysToAddrsStr((signersArray :+ callerPublicKey))
655655 let signersRewards = invoke(_loadRewardTokenAddress(), FUNC_MINT_MANY, [_loadRewardAmount(), rewardAddresses], nil)
656656 if ((signersRewards == signersRewards))
657- then (((_saveEventStatus(eventId_, EVENT_STATUS_DONE) ++ _saveSignedEventExecutorIdx(execChainId_, executorIdxSize, eventId_)) ++ _saveSignedEventExecutorIdxSize(execChainId_, (executorIdxSize + 1))) ++ _saveSSigmaByEvent(eventId_, sSigma_))
657+ then (((_saveEventStatus(execChainId_, eventId_, EVENT_STATUS_DONE) ++ _saveSignedEventExecutorIdx(execChainId_, executorIdxSize, eventId_)) ++ _saveSignedEventExecutorIdxSize(execChainId_, (executorIdxSize + 1))) ++ _saveSSigmaByEvent(execChainId_, eventId_, sSigma_))
658658 else throw("Strict value is not equal to itself.")
659659 }
660660 else throw("Strict value is not equal to itself.")
661661 }
662662 else nil
663- $Tuple2(((((_saveSsByEvent(eventId_, (sArray :+ s_)) ++ _saveSByEventAndSigner(eventId_, callerPublicKey, s_)) ++ _saveSignersWithSByEvent(eventId_, (signersArray :+ callerPublicKey))) ++ _saveRSigmaByEvent(eventId_, rSigma_)) ++ eventStatusActions), unit)
663+ $Tuple2(((((_saveSsByEvent(execChainId_, eventId_, (sArray :+ s_)) ++ _saveSByEventAndSigner(execChainId_, eventId_, callerPublicKey, s_)) ++ _saveSignersWithSByEvent(execChainId_, eventId_, (signersArray :+ callerPublicKey))) ++ _saveRSigmaByEvent(execChainId_, eventId_, rSigma_)) ++ eventStatusActions), unit)
664664 }
665665 else throw("Strict value is not equal to itself.")
666666 }
682682 else false)
683683 then _checkSecDepo(callerPublicKey, "reset: not enough security deposit")
684684 else false)
685- then _checkEventStatusForReset(eventId_, "reset: invalid event status")
685+ then _checkEventStatusForReset(execChainId_, eventId_, "reset: invalid event status")
686686 else false
687687 if ((err == err))
688688 then {
689689 let slashAmount = 0
690- let signersWithR = _loadSignersWithRByEvent(eventId_)
691- let signersWithS = _loadSignersWithSByEvent(eventId_)
690+ let signersWithR = _loadSignersWithRByEvent(execChainId_, eventId_)
691+ let signersWithS = _loadSignersWithSByEvent(execChainId_, eventId_)
692692 let result = _slashIncorrect(signersWithR, signersWithS)
693693 let slashingActions = result._1
694694 let compensatedSigners = result._2
695695 let compensation = result._3
696696 let compensationActions = _compensateCorrect(compensatedSigners, compensation)
697- $Tuple2((((((((_saveRsByEvent(eventId_, [r_]) ++ _saveRByEventAndSigner(eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(eventId_, [callerPublicKey])) ++ _saveRSigmaByEvent(eventId_, "")) ++ _saveSSigmaByEvent(eventId_, "")) ++ _saveEventStatus(eventId_, EVENT_STATUS_INIT)) ++ slashingActions) ++ compensationActions), unit)
697+ $Tuple2((((((((_saveRsByEvent(execChainId_, eventId_, [r_]) ++ _saveRByEventAndSigner(execChainId_, eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(execChainId_, eventId_, [callerPublicKey])) ++ _saveRSigmaByEvent(execChainId_, eventId_, "")) ++ _saveSSigmaByEvent(execChainId_, eventId_, "")) ++ _saveEventStatus(execChainId_, eventId_, EVENT_STATUS_INIT)) ++ slashingActions) ++ compensationActions), unit)
698698 }
699699 else throw("Strict value is not equal to itself.")
700700 }
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
8585 func _validateString (val_,err_) = if ((0 >= size(val_)))
8686 then throw(err_)
8787 else true
8888
8989
9090 func _validatePaymentsSize (payments_,target_,err_) = if ((size(payments_) != target_))
9191 then throw(err_)
9292 else true
9393
9494
9595 func _validatePaymentAsset (payment_,asset_,err_) = if ((payment_.assetId != asset_))
9696 then throw(err_)
9797 else true
9898
9999
100100 func _validatePublicKey (publicKey_,err_) = if ((size(fromBase58String(publicKey_)) != 32))
101101 then throw(err_)
102102 else true
103103
104104
105105 func _validatePublicKeys (publicKeys_,err_) = {
106106 func foldFunc (acc,elem) = $Tuple2(if (acc._1)
107107 then _validatePublicKey(elem, acc._2)
108108 else false, acc._2)
109109
110110 let result = {
111111 let $l = publicKeys_
112112 let $s = size($l)
113113 let $acc0 = $Tuple2(true, err_)
114114 func $f0_1 ($a,$i) = if (($i >= $s))
115115 then $a
116116 else foldFunc($a, $l[$i])
117117
118118 func $f0_2 ($a,$i) = if (($i >= $s))
119119 then $a
120120 else throw("List size exceeds 10")
121121
122122 $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)
123123 }
124124 result._1
125125 }
126126
127127
128128 func _loadInit () = match getBoolean(KEY_INIT) {
129129 case a: Boolean =>
130130 a
131131 case _ =>
132132 false
133133 }
134134
135135
136136 func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)]
137137
138138
139139 func _loadMultisig () = match getString(KEY_MULTISIG) {
140140 case a: String =>
141141 addressFromStringValue(a)
142142 case _ =>
143143 Address(base58'')
144144 }
145145
146146
147147 func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))]
148148
149149
150150 func _loadMinSecDepo () = match getInteger(KEY_MIN_SEC_DEPO) {
151151 case a: Int =>
152152 a
153153 case _ =>
154154 0
155155 }
156156
157157
158158 func _saveMinSecDepo (val_) = [IntegerEntry(KEY_MIN_SEC_DEPO, val_)]
159159
160160
161161 func _loadSecDepo (account_) = match getInteger(makeString([KEY_SEC_DEPO, toString(account_)], SEPARATOR)) {
162162 case a: Int =>
163163 a
164164 case _ =>
165165 0
166166 }
167167
168168
169169 func _saveSecDepo (account_,val_) = [IntegerEntry(makeString([KEY_SEC_DEPO, toString(account_)], SEPARATOR), val_)]
170170
171171
172172 func _loadPunishment () = match getInteger(KEY_PUNISHMENT) {
173173 case a: Int =>
174174 a
175175 case _ =>
176176 0
177177 }
178178
179179
180180 func _savePunishment (val_) = [IntegerEntry(KEY_PUNISHMENT, val_)]
181181
182182
183183 func _loadResetBlockDelta () = match getInteger(KEY_RESET_BLOCK_DELTA) {
184184 case a: Int =>
185185 a
186186 case _ =>
187187 0
188188 }
189189
190190
191191 func _saveResetBlockDelta (val_) = [IntegerEntry(KEY_RESET_BLOCK_DELTA, val_)]
192192
193193
194194 func _loadRewardTokenAddress () = match getString(KEY_REWARD_TOKEN_ADDRESS) {
195195 case a: String =>
196196 addressFromStringValue(a)
197197 case _ =>
198198 Address(base58'')
199199 }
200200
201201
202202 func _saveRewardTokenAddress (val_) = [StringEntry(KEY_REWARD_TOKEN_ADDRESS, toString(val_))]
203203
204204
205205 func _loadRewardAmount () = match getInteger(KEY_REWARD_AMOUNT) {
206206 case a: Int =>
207207 a
208208 case _ =>
209209 0
210210 }
211211
212212
213213 func _saveRewardAmount (val_) = [IntegerEntry(KEY_REWARD_AMOUNT, val_)]
214214
215215
216216 func _loadCurrentEpoch (execChainId_) = match getInteger(makeString([KEY_CURRENT_EPOCH, toString(execChainId_)], SEPARATOR)) {
217217 case a: Int =>
218218 a
219219 case _ =>
220220 0
221221 }
222222
223223
224224 func _saveCurrentEpoch (execChainId_,val_) = [IntegerEntry(makeString([KEY_CURRENT_EPOCH, toString(execChainId_)], SEPARATOR), val_)]
225225
226226
227227 func _loadSigners (execChainId_,epoch_) = match getString(makeString([KEY_SIGNERS_PER_EPOCH, toString(execChainId_), toString(epoch_)], SEPARATOR)) {
228228 case a: String =>
229229 split(a, SEPARATOR)
230230 case _ =>
231231 nil
232232 }
233233
234234
235235 func _saveSigners (execChainId_,epoch_,signers_) = [StringEntry(makeString([KEY_SIGNERS_PER_EPOCH, toString(execChainId_), toString(epoch_)], SEPARATOR), makeString(signers_, SEPARATOR))]
236236
237237
238-func _loadEventStatus (eventId_) = match getInteger(makeString([KEY_EVENT_STATUS, toString(eventId_)], SEPARATOR)) {
238+func _loadEventStatus (execChainId_,eventId_) = match getInteger(makeString([KEY_EVENT_STATUS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
239239 case a: Int =>
240240 a
241241 case _ =>
242242 EVENT_STATUS_INIT
243243 }
244244
245245
246-func _saveEventStatus (eventId_,status_) = [IntegerEntry(makeString([KEY_EVENT_STATUS, toString(eventId_)], SEPARATOR), status_)]
246+func _saveEventStatus (execChainId_,eventId_,status_) = [IntegerEntry(makeString([KEY_EVENT_STATUS, toString(execChainId_), toString(eventId_)], SEPARATOR), status_)]
247247
248248
249249 func _loadLock (publicKey_) = match getInteger(makeString([KEY_LOCKS, publicKey_], SEPARATOR)) {
250250 case a: Int =>
251251 a
252252 case _ =>
253253 0
254254 }
255255
256256
257257 func _saveLock (publicKey_,val_) = [IntegerEntry(makeString([KEY_LOCKS, publicKey_], SEPARATOR), val_)]
258258
259259
260260 func _loadT (execChainId_,epoch_) = match getInteger(makeString([KEY_T, toString(execChainId_), toString(epoch_)], SEPARATOR)) {
261261 case a: Int =>
262262 a
263263 case _ =>
264264 0
265265 }
266266
267267
268268 func _saveT (execChainId_,epoch_,val_) = [IntegerEntry(makeString([KEY_T, toString(execChainId_), toString(epoch_)], SEPARATOR), val_)]
269269
270270
271-func _loadRsByEvent (eventId_) = match getString(makeString([KEY_R, toString(eventId_)], SEPARATOR)) {
271+func _loadRsByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
272272 case a: String =>
273273 split(a, SEPARATOR)
274274 case _ =>
275275 nil
276276 }
277277
278278
279-func _saveRsByEvent (eventId_,rs_) = [StringEntry(makeString([KEY_R, toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
279+func _saveRsByEvent (execChainId_,eventId_,rs_) = [StringEntry(makeString([KEY_R, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
280280
281281
282-func _loadSsByEvent (eventId_) = match getString(makeString([KEY_S, toString(eventId_)], SEPARATOR)) {
282+func _loadSsByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
283283 case a: String =>
284284 split(a, SEPARATOR)
285285 case _ =>
286286 nil
287287 }
288288
289289
290-func _saveSsByEvent (eventId_,ss_) = [StringEntry(makeString([KEY_S, toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
290+func _saveSsByEvent (execChainId_,eventId_,ss_) = [StringEntry(makeString([KEY_S, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
291291
292292
293-func _loadRSigmaByEvent (eventId_) = match getString(makeString([KEY_R_SIGMA, toString(eventId_)], SEPARATOR)) {
293+func _loadRSigmaByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
294294 case a: String =>
295295 a
296296 case _ =>
297297 ""
298298 }
299299
300300
301-func _saveRSigmaByEvent (eventId_,rSigma_) = [StringEntry(makeString([KEY_R_SIGMA, toString(eventId_)], SEPARATOR), rSigma_)]
301+func _saveRSigmaByEvent (execChainId_,eventId_,rSigma_) = [StringEntry(makeString([KEY_R_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR), rSigma_)]
302302
303303
304-func _loadSSigmaByEvent (eventId_) = match getString(makeString([KEY_S_SIGMA, toString(eventId_)], SEPARATOR)) {
304+func _loadSSigmaByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
305305 case a: String =>
306306 a
307307 case _ =>
308308 ""
309309 }
310310
311311
312-func _saveSSigmaByEvent (eventId_,sSigma_) = [StringEntry(makeString([KEY_S_SIGMA, toString(eventId_)], SEPARATOR), sSigma_)]
312+func _saveSSigmaByEvent (execChainId_,eventId_,sSigma_) = [StringEntry(makeString([KEY_S_SIGMA, toString(execChainId_), toString(eventId_)], SEPARATOR), sSigma_)]
313313
314314
315-func _loadRByEventAndSigner (eventId_,signer_) = match getString(makeString([KEY_R, toString(eventId_), signer_], SEPARATOR)) {
315+func _loadRByEventAndSigner (execChainId_,eventId_,signer_) = match getString(makeString([KEY_R, toString(execChainId_), toString(eventId_), signer_], SEPARATOR)) {
316316 case a: String =>
317317 a
318318 case _ =>
319319 ""
320320 }
321321
322322
323-func _saveRByEventAndSigner (eventId_,signer_,r_) = [StringEntry(makeString([KEY_R, toString(eventId_), signer_], SEPARATOR), r_)]
323+func _saveRByEventAndSigner (execChainId_,eventId_,signer_,r_) = [StringEntry(makeString([KEY_R, toString(execChainId_), toString(eventId_), signer_], SEPARATOR), r_)]
324324
325325
326-func _loadSByEventAndSigner (eventId_,signer_) = match getString(makeString([KEY_S, toString(eventId_), signer_], SEPARATOR)) {
326+func _loadSByEventAndSigner (execChainId_,eventId_,signer_) = match getString(makeString([KEY_S, toString(execChainId_), toString(eventId_), signer_], SEPARATOR)) {
327327 case a: String =>
328328 a
329329 case _ =>
330330 ""
331331 }
332332
333333
334-func _saveSByEventAndSigner (eventId_,signer_,s_) = [StringEntry(makeString([KEY_S, toString(eventId_), signer_], SEPARATOR), s_)]
334+func _saveSByEventAndSigner (execChainId_,eventId_,signer_,s_) = [StringEntry(makeString([KEY_S, toString(execChainId_), toString(eventId_), signer_], SEPARATOR), s_)]
335335
336336
337-func _loadSignersWithRByEvent (eventId_) = match getString(makeString([KEY_R_SIGNERS, toString(eventId_)], SEPARATOR)) {
337+func _loadSignersWithRByEvent (execChainId_,eventId_) = match getString(makeString([KEY_R_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
338338 case a: String =>
339339 split(a, SEPARATOR)
340340 case _ =>
341341 nil
342342 }
343343
344344
345-func _saveSignersWithRByEvent (eventId_,rs_) = [StringEntry(makeString([KEY_R_SIGNERS, toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
345+func _saveSignersWithRByEvent (execChainId_,eventId_,rs_) = [StringEntry(makeString([KEY_R_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(rs_, SEPARATOR))]
346346
347347
348-func _loadSignersWithSByEvent (eventId_) = match getString(makeString([KEY_S_SIGNERS, toString(eventId_)], SEPARATOR)) {
348+func _loadSignersWithSByEvent (execChainId_,eventId_) = match getString(makeString([KEY_S_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
349349 case a: String =>
350350 split(a, SEPARATOR)
351351 case _ =>
352352 nil
353353 }
354354
355355
356-func _saveSignersWithSByEvent (eventId_,ss_) = [StringEntry(makeString([KEY_S_SIGNERS, toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
356+func _saveSignersWithSByEvent (execChainId_,eventId_,ss_) = [StringEntry(makeString([KEY_S_SIGNERS, toString(execChainId_), toString(eventId_)], SEPARATOR), makeString(ss_, SEPARATOR))]
357357
358358
359-func _loadEventStartBlock (eventId_) = match getInteger(makeString([KEY_EVENT_START_BLOCK, toString(eventId_)], SEPARATOR)) {
359+func _loadEventStartBlock (execChainId_,eventId_) = match getInteger(makeString([KEY_EVENT_START_BLOCK, toString(execChainId_), toString(eventId_)], SEPARATOR)) {
360360 case a: Int =>
361361 a
362362 case _ =>
363363 0
364364 }
365365
366366
367-func _saveEventStartBlock (eventId_,val_) = [IntegerEntry(makeString([KEY_EVENT_START_BLOCK, toString(eventId_)], SEPARATOR), val_)]
367+func _saveEventStartBlock (execChainId_,eventId_,val_) = [IntegerEntry(makeString([KEY_EVENT_START_BLOCK, toString(execChainId_), toString(eventId_)], SEPARATOR), val_)]
368368
369369
370370 func _loadSignedEventExecutorIdxSize (executionChainId_) = match getInteger(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR)) {
371371 case a: Int =>
372372 a
373373 case _ =>
374374 0
375375 }
376376
377377
378378 func _saveSignedEventExecutorIdxSize (executionChainId_,val_) = [IntegerEntry(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR), val_)]
379379
380380
381381 func _loadSignedEventExecutorIdx (executionChainId_,idx_) = match getInteger(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), toString(idx_)], SEPARATOR)) {
382382 case a: Int =>
383383 a
384384 case _ =>
385385 0
386386 }
387387
388388
389389 func _saveSignedEventExecutorIdx (executionChainId_,idx_,val_) = [IntegerEntry(makeString([KEY_SIGNED_EVENT_EXECUTOR, toString(executionChainId_), toString(idx_)], SEPARATOR), val_)]
390390
391391
392392 func _onlyThisContract (caller_) = if ((caller_ != this))
393393 then throw("_onlyThisContract: revert")
394394 else true
395395
396396
397397 func _whenMultisigSet () = if ((_loadMultisig() == Address(base58'')))
398398 then throw("_whenMultisigSet: revert")
399399 else true
400400
401401
402402 func _whenNotInitialized () = if (_loadInit())
403403 then throw("_whenNotInitialized: revert")
404404 else true
405405
406406
407407 func _whenInitialized () = if (!(_loadInit()))
408408 then throw("_whenInitialized: revert")
409409 else true
410410
411411
412412 func _isActiveSigner (publicKey_,publicKeys_,err_) = if (!(containsElement(publicKeys_, publicKey_)))
413413 then throw(err_)
414414 else true
415415
416416
417417 func _checkSecDepo (signer_,err_) = if ((_loadMinSecDepo() > _loadSecDepo(addressFromPublicKey(fromBase58String(signer_)))))
418418 then throw(err_)
419419 else true
420420
421421
422-func _checkEventStatusForSubmitR (eventId_,err_) = if ((_loadEventStatus(eventId_) != EVENT_STATUS_INIT))
422+func _checkEventStatusForSubmitR (execChainId_,eventId_,err_) = if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_INIT))
423423 then throw(err_)
424424 else true
425425
426426
427-func _checkEventStatusForSubmitS (eventId_,err_) = if ((_loadEventStatus(eventId_) != EVENT_STATUS_SIGN))
427+func _checkEventStatusForSubmitS (execChainId_,eventId_,err_) = if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_SIGN))
428428 then throw(err_)
429429 else true
430430
431431
432-func _checkEventStatusForReset (eventId_,err_) = if (if ((_loadEventStatus(eventId_) != EVENT_STATUS_SIGN))
432+func _checkEventStatusForReset (execChainId_,eventId_,err_) = if (if ((_loadEventStatus(execChainId_, eventId_) != EVENT_STATUS_SIGN))
433433 then true
434- else (height >= (_loadEventStartBlock(eventId_) + _loadResetBlockDelta())))
434+ else (height >= (_loadEventStartBlock(execChainId_, eventId_) + _loadResetBlockDelta())))
435435 then throw(err_)
436436 else true
437437
438438
439439 func _incrementLocks (signers_) = {
440440 func foldFunc (acc,elem) = (acc ++ _saveLock(elem, (_loadLock(elem) + 1)))
441441
442442 let $l = signers_
443443 let $s = size($l)
444444 let $acc0 = nil
445445 func $f0_1 ($a,$i) = if (($i >= $s))
446446 then $a
447447 else foldFunc($a, $l[$i])
448448
449449 func $f0_2 ($a,$i) = if (($i >= $s))
450450 then $a
451451 else throw("List size exceeds 10")
452452
453453 $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)
454454 }
455455
456456
457457 func _isZeroLock (publicKey_,err_) = if ((_loadLock(publicKey_) > 0))
458458 then throw(err_)
459459 else true
460460
461461
462-func _notSubmittedR (eventId_,signer_,err_) = if ((_loadRByEventAndSigner(eventId_, signer_) != ""))
462+func _notSubmittedR (execChainId_,eventId_,signer_,err_) = if ((_loadRByEventAndSigner(execChainId_, eventId_, signer_) != ""))
463463 then throw(err_)
464464 else true
465465
466466
467-func _notSubmittedS (eventId_,signer_,err_) = if ((_loadSByEventAndSigner(eventId_, signer_) != ""))
467+func _notSubmittedS (execChainId_,eventId_,signer_,err_) = if ((_loadSByEventAndSigner(execChainId_, eventId_, signer_) != ""))
468468 then throw(err_)
469469 else true
470470
471471
472-func _submittedR (eventId_,signer_,err_) = {
473- let r = _loadRByEventAndSigner(eventId_, signer_)
472+func _submittedR (execChainId_,eventId_,signer_,err_) = {
473+ let r = _loadRByEventAndSigner(execChainId_, eventId_, signer_)
474474 if ((r == ""))
475475 then throw(err_)
476- else if (!(containsElement(_loadRsByEvent(eventId_), r)))
476+ else if (!(containsElement(_loadRsByEvent(execChainId_, eventId_), r)))
477477 then throw(err_)
478478 else true
479479 }
480480
481481
482482 func _slashIncorrect (signersWithR_,signersWithS_) = {
483483 let punishment = _loadPunishment()
484484 func foldFunc (acc,elem) = if (containsElement(signersWithS_, elem))
485485 then $Tuple3(acc._1, (acc._2 :+ elem), acc._3)
486486 else {
487487 let signerAddress = addressFromPublicKey(fromBase58String(elem))
488488 $Tuple3((acc._1 ++ _saveSecDepo(signerAddress, (_loadSecDepo(signerAddress) - punishment))), acc._2, (acc._3 + punishment))
489489 }
490490
491491 let $l = signersWithR_
492492 let $s = size($l)
493493 let $acc0 = $Tuple3(nil, nil, 0)
494494 func $f0_1 ($a,$i) = if (($i >= $s))
495495 then $a
496496 else foldFunc($a, $l[$i])
497497
498498 func $f0_2 ($a,$i) = if (($i >= $s))
499499 then $a
500500 else throw("List size exceeds 10")
501501
502502 $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)
503503 }
504504
505505
506506 func _compensateCorrect (signers_,compensation_) = {
507507 let perSigner = (compensation_ / size(signers_))
508508 func foldFunc (acc,elem) = (acc :+ ScriptTransfer(addressFromPublicKey(fromBase58String(elem)), perSigner, unit))
509509
510510 let $l = signers_
511511 let $s = size($l)
512512 let $acc0 = nil
513513 func $f0_1 ($a,$i) = if (($i >= $s))
514514 then $a
515515 else foldFunc($a, $l[$i])
516516
517517 func $f0_2 ($a,$i) = if (($i >= $s))
518518 then $a
519519 else throw("List size exceeds 10")
520520
521521 $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)
522522 }
523523
524524
525525 func _publicKeysToAddrsStr (publicKeys_) = {
526526 func foldfunc (acc_,elem_) = (acc_ :+ toString(addressFromPublicKey(fromBase58String(elem_))))
527527
528528 let $l = publicKeys_
529529 let $s = size($l)
530530 let $acc0 = nil
531531 func $f0_1 ($a,$i) = if (($i >= $s))
532532 then $a
533533 else foldfunc($a, $l[$i])
534534
535535 func $f0_2 ($a,$i) = if (($i >= $s))
536536 then $a
537537 else throw("List size exceeds 51")
538538
539539 $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)
540540 }
541541
542542
543543 @Callable(i)
544544 func init (minSecDepo_,punishment_,resetBlockDelta_,rewardTokenAddress_,rewardAmount_) = {
545545 let err = if (if (if (if (if (if (if (_onlyThisContract(i.caller))
546546 then _whenNotInitialized()
547547 else false)
548548 then _whenMultisigSet()
549549 else false)
550550 then _validateInt(minSecDepo_, punishment_, MAX_INT, "init: invalid minSecDepo")
551551 else false)
552552 then _validateInt(punishment_, 0, MAX_INT, "init: invalid punishment")
553553 else false)
554554 then _validateInt(resetBlockDelta_, 0, MAX_INT, "init: invalid resetBlockDelta")
555555 else false)
556556 then _validateAddress(rewardTokenAddress_, "init: invalid rewardTokenAddress")
557557 else false)
558558 then _validateInt(rewardAmount_, 0, MAX_INT, "init: invalid rewardAmount")
559559 else false
560560 if ((err == err))
561561 then $Tuple2((((((_saveInit(true) ++ _saveMinSecDepo(minSecDepo_)) ++ _savePunishment(punishment_)) ++ _saveResetBlockDelta(resetBlockDelta_)) ++ _saveRewardTokenAddress(addressFromStringValue(rewardTokenAddress_))) ++ _saveRewardAmount(rewardAmount_)), unit)
562562 else throw("Strict value is not equal to itself.")
563563 }
564564
565565
566566
567567 @Callable(i)
568568 func setActiveSigners (execChainId_,signers_,t_) = {
569569 let err = if (if (if (_onlyThisContract(i.caller))
570570 then _whenInitialized()
571571 else false)
572572 then _validatePublicKeys(signers_, "setActiveSigners: invalid signers")
573573 else false)
574574 then _validateInt(t_, 2, size(signers_), "setActiveSigners: invalid T")
575575 else false
576576 if ((err == err))
577577 then {
578578 let epoch = _loadCurrentEpoch(execChainId_)
579579 $Tuple2((((_saveCurrentEpoch(execChainId_, (epoch + 1)) ++ _saveT(execChainId_, (epoch + 1), t_)) ++ _saveSigners(execChainId_, (epoch + 1), signers_)) ++ _incrementLocks(signers_)), unit)
580580 }
581581 else throw("Strict value is not equal to itself.")
582582 }
583583
584584
585585
586586 @Callable(i)
587587 func submitR (eventId_,execChainId_,r_) = {
588588 let callerPublicKey = toBase58String(i.callerPublicKey)
589589 let epoch = _loadCurrentEpoch(execChainId_)
590590 let t = _loadT(execChainId_, epoch)
591591 let err = if (if (if (if (if (if (if (_whenInitialized())
592592 then _validateInt(eventId_, 0, MAX_INT, "submitR: invalid eventId")
593593 else false)
594594 then _validateInt(execChainId_, 0, MAX_INT, "submitR: invalid execChainId")
595595 else false)
596596 then _validateString(r_, "submitR: invalid r")
597597 else false)
598598 then _isActiveSigner(callerPublicKey, _loadSigners(execChainId_, epoch), "submitR: not active")
599599 else false)
600600 then _checkSecDepo(callerPublicKey, "submitR: not enough security deposit")
601601 else false)
602- then _checkEventStatusForSubmitR(eventId_, "submitR: invalid event status")
602+ then _checkEventStatusForSubmitR(execChainId_, eventId_, "submitR: invalid event status")
603603 else false)
604- then _notSubmittedR(eventId_, callerPublicKey, "submitR: already submitted")
604+ then _notSubmittedR(execChainId_, eventId_, callerPublicKey, "submitR: already submitted")
605605 else false
606606 if ((err == err))
607607 then {
608- let rArray = _loadRsByEvent(eventId_)
609- let signersArray = _loadSignersWithRByEvent(eventId_)
608+ let rArray = _loadRsByEvent(execChainId_, eventId_)
609+ let signersArray = _loadSignersWithRByEvent(execChainId_, eventId_)
610610 let eventStatusActions = if (((size(rArray) + 1) == t))
611- then (_saveEventStatus(eventId_, EVENT_STATUS_SIGN) ++ _saveEventStartBlock(eventId_, height))
611+ then (_saveEventStatus(execChainId_, eventId_, EVENT_STATUS_SIGN) ++ _saveEventStartBlock(execChainId_, eventId_, height))
612612 else nil
613- $Tuple2((((_saveRsByEvent(eventId_, (rArray :+ r_)) ++ _saveRByEventAndSigner(eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(eventId_, (signersArray :+ callerPublicKey))) ++ eventStatusActions), unit)
613+ $Tuple2((((_saveRsByEvent(execChainId_, eventId_, (rArray :+ r_)) ++ _saveRByEventAndSigner(execChainId_, eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(execChainId_, eventId_, (signersArray :+ callerPublicKey))) ++ eventStatusActions), unit)
614614 }
615615 else throw("Strict value is not equal to itself.")
616616 }
617617
618618
619619
620620 @Callable(i)
621621 func submitS (eventId_,execChainId_,rSigma_,s_,sSigma_) = {
622622 let callerPublicKey = toBase58String(i.callerPublicKey)
623623 let epoch = _loadCurrentEpoch(execChainId_)
624624 let t = _loadT(execChainId_, epoch)
625625 let err = if (if (if (if (if (if (if (if (if (_whenInitialized())
626626 then _validateInt(eventId_, 0, MAX_INT, "submitS: invalid eventId")
627627 else false)
628628 then _validateInt(execChainId_, 0, MAX_INT, "submitS: invalid execChainId")
629629 else false)
630630 then _validateString(rSigma_, "submitS: invalid r sigma")
631631 else false)
632632 then _validateString(s_, "submitS: invalid s")
633633 else false)
634634 then _isActiveSigner(callerPublicKey, _loadSigners(execChainId_, epoch), "submitS: not active")
635635 else false)
636636 then _checkSecDepo(callerPublicKey, "submitS: not enough security deposit")
637637 else false)
638- then _checkEventStatusForSubmitS(eventId_, "submitS: invalid event status")
638+ then _checkEventStatusForSubmitS(execChainId_, eventId_, "submitS: invalid event status")
639639 else false)
640- then _notSubmittedS(eventId_, callerPublicKey, "submitS: already submitted")
640+ then _notSubmittedS(execChainId_, eventId_, callerPublicKey, "submitS: already submitted")
641641 else false)
642- then _submittedR(eventId_, callerPublicKey, "submitS: R is not submitted")
642+ then _submittedR(execChainId_, eventId_, callerPublicKey, "submitS: R is not submitted")
643643 else false
644644 if ((err == err))
645645 then {
646- let sArray = _loadSsByEvent(eventId_)
647- let signersArray = _loadSignersWithSByEvent(eventId_)
646+ let sArray = _loadSsByEvent(execChainId_, eventId_)
647+ let signersArray = _loadSignersWithSByEvent(execChainId_, eventId_)
648648 let eventStatusActions = if (((size(sArray) + 1) == t))
649649 then {
650650 let err1 = _validateString(sSigma_, "submitS: invalid s sigma")
651651 if ((err1 == err1))
652652 then {
653653 let executorIdxSize = _loadSignedEventExecutorIdxSize(execChainId_)
654654 let rewardAddresses = _publicKeysToAddrsStr((signersArray :+ callerPublicKey))
655655 let signersRewards = invoke(_loadRewardTokenAddress(), FUNC_MINT_MANY, [_loadRewardAmount(), rewardAddresses], nil)
656656 if ((signersRewards == signersRewards))
657- then (((_saveEventStatus(eventId_, EVENT_STATUS_DONE) ++ _saveSignedEventExecutorIdx(execChainId_, executorIdxSize, eventId_)) ++ _saveSignedEventExecutorIdxSize(execChainId_, (executorIdxSize + 1))) ++ _saveSSigmaByEvent(eventId_, sSigma_))
657+ then (((_saveEventStatus(execChainId_, eventId_, EVENT_STATUS_DONE) ++ _saveSignedEventExecutorIdx(execChainId_, executorIdxSize, eventId_)) ++ _saveSignedEventExecutorIdxSize(execChainId_, (executorIdxSize + 1))) ++ _saveSSigmaByEvent(execChainId_, eventId_, sSigma_))
658658 else throw("Strict value is not equal to itself.")
659659 }
660660 else throw("Strict value is not equal to itself.")
661661 }
662662 else nil
663- $Tuple2(((((_saveSsByEvent(eventId_, (sArray :+ s_)) ++ _saveSByEventAndSigner(eventId_, callerPublicKey, s_)) ++ _saveSignersWithSByEvent(eventId_, (signersArray :+ callerPublicKey))) ++ _saveRSigmaByEvent(eventId_, rSigma_)) ++ eventStatusActions), unit)
663+ $Tuple2(((((_saveSsByEvent(execChainId_, eventId_, (sArray :+ s_)) ++ _saveSByEventAndSigner(execChainId_, eventId_, callerPublicKey, s_)) ++ _saveSignersWithSByEvent(execChainId_, eventId_, (signersArray :+ callerPublicKey))) ++ _saveRSigmaByEvent(execChainId_, eventId_, rSigma_)) ++ eventStatusActions), unit)
664664 }
665665 else throw("Strict value is not equal to itself.")
666666 }
667667
668668
669669
670670 @Callable(i)
671671 func reset (eventId_,execChainId_,r_) = {
672672 let callerPublicKey = toBase58String(i.callerPublicKey)
673673 let epoch = _loadCurrentEpoch(execChainId_)
674674 let err = if (if (if (if (if (if (_whenInitialized())
675675 then _validateInt(eventId_, 0, MAX_INT, "reset: invalid eventId")
676676 else false)
677677 then _validateInt(execChainId_, 0, MAX_INT, "reset: invalid execChainId")
678678 else false)
679679 then _validateString(r_, "reset: invalid r")
680680 else false)
681681 then _isActiveSigner(callerPublicKey, _loadSigners(execChainId_, epoch), "reset: not active")
682682 else false)
683683 then _checkSecDepo(callerPublicKey, "reset: not enough security deposit")
684684 else false)
685- then _checkEventStatusForReset(eventId_, "reset: invalid event status")
685+ then _checkEventStatusForReset(execChainId_, eventId_, "reset: invalid event status")
686686 else false
687687 if ((err == err))
688688 then {
689689 let slashAmount = 0
690- let signersWithR = _loadSignersWithRByEvent(eventId_)
691- let signersWithS = _loadSignersWithSByEvent(eventId_)
690+ let signersWithR = _loadSignersWithRByEvent(execChainId_, eventId_)
691+ let signersWithS = _loadSignersWithSByEvent(execChainId_, eventId_)
692692 let result = _slashIncorrect(signersWithR, signersWithS)
693693 let slashingActions = result._1
694694 let compensatedSigners = result._2
695695 let compensation = result._3
696696 let compensationActions = _compensateCorrect(compensatedSigners, compensation)
697- $Tuple2((((((((_saveRsByEvent(eventId_, [r_]) ++ _saveRByEventAndSigner(eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(eventId_, [callerPublicKey])) ++ _saveRSigmaByEvent(eventId_, "")) ++ _saveSSigmaByEvent(eventId_, "")) ++ _saveEventStatus(eventId_, EVENT_STATUS_INIT)) ++ slashingActions) ++ compensationActions), unit)
697+ $Tuple2((((((((_saveRsByEvent(execChainId_, eventId_, [r_]) ++ _saveRByEventAndSigner(execChainId_, eventId_, callerPublicKey, r_)) ++ _saveSignersWithRByEvent(execChainId_, eventId_, [callerPublicKey])) ++ _saveRSigmaByEvent(execChainId_, eventId_, "")) ++ _saveSSigmaByEvent(execChainId_, eventId_, "")) ++ _saveEventStatus(execChainId_, eventId_, EVENT_STATUS_INIT)) ++ slashingActions) ++ compensationActions), unit)
698698 }
699699 else throw("Strict value is not equal to itself.")
700700 }
701701
702702
703703
704704 @Callable(i)
705705 func addSecurityDeposit (recipient_) = {
706706 let recipient = if ((recipient_ == ""))
707707 then toString(i.caller)
708708 else recipient_
709709 let err = if (if (_validateAddress(recipient, "addSecurityDeposit: invalid recipient"))
710710 then _validatePaymentsSize(i.payments, 1, "addSecurityDeposit: no payment")
711711 else false)
712712 then _validatePaymentAsset(i.payments[0], unit, "addSecurityDeposit: invalid asset")
713713 else false
714714 if ((err == err))
715715 then {
716716 let recipientAddr = addressFromStringValue(recipient)
717717 let balance = _loadSecDepo(recipientAddr)
718718 let updatedBalance = (balance + i.payments[0].amount)
719719 $Tuple2(_saveSecDepo(recipientAddr, updatedBalance), unit)
720720 }
721721 else throw("Strict value is not equal to itself.")
722722 }
723723
724724
725725
726726 @Callable(i)
727727 func subSecurityDeposit (amount_) = {
728728 let balance = _loadSecDepo(i.caller)
729729 let err = if (_isZeroLock(toBase58String(i.callerPublicKey), "subSecurityDeposit: locked"))
730730 then if ((amount_ > balance))
731731 then throw("subSecurityDeposit: insufficient balance")
732732 else true
733733 else false
734734 if ((err == err))
735735 then $Tuple2((_saveSecDepo(i.caller, (balance - amount_)) ++ [ScriptTransfer(i.caller, amount_, unit)]), unit)
736736 else throw("Strict value is not equal to itself.")
737737 }
738738
739739
740740
741741 @Callable(i)
742742 func setMultisig (multisig_) = {
743743 let err = if (_onlyThisContract(i.caller))
744744 then _validateAddress(multisig_, "setMultisig: invalid multisig address")
745745 else false
746746 if ((err == err))
747747 then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit)
748748 else throw("Strict value is not equal to itself.")
749749 }
750750
751751
752752 @Verifier(tx)
753753 func verify () = match getString(KEY_MULTISIG) {
754754 case multisig: String =>
755755 valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false)
756756 case _ =>
757757 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
758758 }
759759

github/deemru/w8io/026f985 
114.71 ms