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