tx · CG6cP2wjJj2LqbJ4j1LGicUVXcb67RDSdd9odKuaniWc 3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS: -0.02600000 Waves 2023.03.09 18:45 [2482756] smart account 3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS > SELF 0.00000000 Waves
{ "type": 13, "id": "CG6cP2wjJj2LqbJ4j1LGicUVXcb67RDSdd9odKuaniWc", "fee": 2600000, "feeAssetId": null, "timestamp": 1678376750211, "version": 2, "chainId": 84, "sender": "3N33NL4BGxFEEiXKgnENVRDiE3RwkYmaNmS", "senderPublicKey": "FeKA4QnfyZ9Q6eep2FDJEZxFr8cn1tbStnN5SJeEnPaB", "proofs": [ "S9G2fXCvBveqLURYBQjiuSoQPwGqPrLikBNFMAjAUJpas6HnHGtBb6NLpQd6i8dgH47aQWiUQfPfZCDTqZRABb8" ], "script": "base64:BgJBCAISBQoDAQgBEgQKAgEYEgoKCAEBAQgIGAgBEgkKBwEBAQgICAESBAoCAQESBAoCAQESAwoBCBIDCgEBEgMKAQhrAAlTRVBBUkFUT1ICAl9fAA5BUkdTX1NFUEFSQVRPUgIEIyMjIwAIS0VZX0lOSVQCBElOSVQADEtFWV9NVUxUSVNJRwIITVVMVElTSUcACktFWV9TVEFUVVMCBlNUQVRVUwASS0VZX1BST1hZX1NFQ19ERVBPAhZQUk9YWV9TRUNVUklUWV9ERVBPU0lUABxLRVlfUFJPWFlfU0VDX0RFUE9fUEVSX0VWRU5UAiBQUk9YWV9TRUNVUklUWV9ERVBPU0lUX1BFUl9FVkVOVAAPS0VZX1dBVkVTX0VWRU5UAgtXQVZFU19FVkVOVAANS0VZX0VWTV9FVkVOVAIJRVZNX0VWRU5UABRLRVlfV0FWRVNfRVZFTlRfU0laRQIQV0FWRVNfRVZFTlRfU0laRQASS0VZX0VWTV9FVkVOVF9TSVpFAg5FVk1fRVZFTlRfU0laRQAWS0VZX1dBVkVTX0VWRU5UX1NUQVRVUwISV0FWRVNfRVZFTlRfU1RBV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cDCQAAAgUDZXJyBQNlcnIJAJQKAgkBDV9zYXZlTXVsdGlzaWcBCQERQGV4dHJOYXRpdmUoMTA2MikBBQltdWx0aXNpZ18FBHVuaXQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAckbWF0Y2gwCQCiCAEFDEtFWV9NVUxUSVNJRwMJAAECBQckbWF0Y2gwAgZTdHJpbmcECG11bHRpc2lnBQckbWF0Y2gwCQELdmFsdWVPckVsc2UCCQCbCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEFCG11bHRpc2lnCQC5CQIJAMwIAgUKS0VZX1NUQVRVUwkAzAgCCQClCAEFBHRoaXMJAMwIAgkA2AQBCAUCdHgCaWQFA25pbAUJU0VQQVJBVE9SBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tled0x4jo=", "height": 2482756, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: H1mjqckmKyrqNXCaVZFEXpZBtXKQzEem4PxyDvH9b3VV Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let SEPARATOR = "__" | |
5 | + | ||
6 | + | let ARGS_SEPARATOR = "####" | |
7 | + | ||
8 | + | let KEY_INIT = "INIT" | |
9 | + | ||
10 | + | let KEY_MULTISIG = "MULTISIG" | |
11 | + | ||
12 | + | let KEY_STATUS = "STATUS" | |
13 | + | ||
14 | + | let KEY_PROXY_SEC_DEPO = "PROXY_SECURITY_DEPOSIT" | |
15 | + | ||
16 | + | let KEY_PROXY_SEC_DEPO_PER_EVENT = "PROXY_SECURITY_DEPOSIT_PER_EVENT" | |
17 | + | ||
18 | + | let KEY_WAVES_EVENT = "WAVES_EVENT" | |
19 | + | ||
20 | + | let KEY_EVM_EVENT = "EVM_EVENT" | |
21 | + | ||
22 | + | let KEY_WAVES_EVENT_SIZE = "WAVES_EVENT_SIZE" | |
23 | + | ||
24 | + | let KEY_EVM_EVENT_SIZE = "EVM_EVENT_SIZE" | |
25 | + | ||
26 | + | let KEY_WAVES_EVENT_STATUS = "WAVES_EVENT_STATUS" | |
27 | + | ||
28 | + | let KEY_EVM_EVENT_STATUS = "EVM_EVENT_STATUS" | |
29 | + | ||
30 | + | let KEY_WAVES_EVENT_PUBLISHED = "WAVES_EVENT_PUBLISHED" | |
31 | + | ||
32 | + | let KEY_EVM_EVENT_PUBLISHED = "EVM_EVENT_PUBLISHED" | |
33 | + | ||
34 | + | let KEY_CURRENT_EPOCH = "CURRENT_EPOCH" | |
35 | + | ||
36 | + | let KEY_SIZE = "SIZE" | |
37 | + | ||
38 | + | let KEY_WAVES_EVENT_CALLER = "WAVES_EVENT_CALLER" | |
39 | + | ||
40 | + | let KEY_EVM_EVENT_CALLER = "EVM_EVENT_CALLER" | |
41 | + | ||
42 | + | let KEY_WITNESSES_PER_EPOCH = "WITNESSES_PER_EPOCH" | |
43 | + | ||
44 | + | let KEY_WAVES_EVENT_EXECUTOR = "WAVES_EVENT_EXECUTOR" | |
45 | + | ||
46 | + | let KEY_EVM_EVENT_EXECUTOR = "EVM_EVENT_EXECUTOR" | |
47 | + | ||
48 | + | let KEY_REWARD_TOKEN_ADDRESS = "REWARD_TOKEN_ADDRESS" | |
49 | + | ||
50 | + | let KEY_REWARD_AMOUNT = "REWARD_AMOUNT" | |
51 | + | ||
52 | + | let FUNC_MINT_MANY = "mintMany" | |
53 | + | ||
54 | + | let EVENT_STATUS_PROCESSING = 1 | |
55 | + | ||
56 | + | let EVENT_STATUS_CONFIRMED = 2 | |
57 | + | ||
58 | + | let EVENT_STATUS_REJECTED = 3 | |
59 | + | ||
60 | + | let MAX_INT = 9223372036854775807 | |
61 | + | ||
62 | + | func _validateAddress (address_,err_) = match addressFromString(address_) { | |
63 | + | case a: Address => | |
64 | + | true | |
65 | + | case _ => | |
66 | + | throw(err_) | |
67 | + | } | |
68 | + | ||
69 | + | ||
70 | + | func _validateAsset (assetId_,err_) = match assetInfo(fromBase58String(assetId_)) { | |
71 | + | case a: Asset => | |
72 | + | true | |
73 | + | case _ => | |
74 | + | throw(err_) | |
75 | + | } | |
76 | + | ||
77 | + | ||
78 | + | func _validateInt (val_,lowerBoundary_,upperBoundary_,err_) = if (if ((lowerBoundary_ > val_)) | |
79 | + | then true | |
80 | + | else (val_ > upperBoundary_)) | |
81 | + | then throw(err_) | |
82 | + | else true | |
83 | + | ||
84 | + | ||
85 | + | func _validateString (val_,err_) = if ((0 >= size(val_))) | |
86 | + | then throw(err_) | |
87 | + | else true | |
88 | + | ||
89 | + | ||
90 | + | func _validatePaymentsSize (payments_,target_,err_) = if ((size(payments_) != target_)) | |
91 | + | then throw(err_) | |
92 | + | else true | |
93 | + | ||
94 | + | ||
95 | + | func _validatePaymentAsset (payment_,asset_,err_) = if ((payment_.assetId != asset_)) | |
96 | + | then throw(err_) | |
97 | + | else true | |
98 | + | ||
99 | + | ||
100 | + | func _validateEventIdx (val_,max_,err_) = if (if ((0 > val_)) | |
101 | + | then true | |
102 | + | else (val_ >= max_)) | |
103 | + | then throw(err_) | |
104 | + | else true | |
105 | + | ||
106 | + | ||
107 | + | func _validateEventStatus (val_,err_) = if (if ((EVENT_STATUS_PROCESSING > val_)) | |
108 | + | then true | |
109 | + | else (val_ > EVENT_STATUS_REJECTED)) | |
110 | + | then throw(err_) | |
111 | + | else true | |
112 | + | ||
113 | + | ||
114 | + | func _validatePublicKey (publicKey_,err_) = if ((size(fromBase58String(publicKey_)) != 32)) | |
115 | + | then throw(err_) | |
116 | + | else true | |
117 | + | ||
118 | + | ||
119 | + | func _validatePublicKeys (publicKeys_,err_) = { | |
120 | + | func foldFunc (acc,elem) = $Tuple2(if (acc._1) | |
121 | + | then _validatePublicKey(elem, acc._2) | |
122 | + | else false, acc._2) | |
123 | + | ||
124 | + | let result = { | |
125 | + | let $l = publicKeys_ | |
126 | + | let $s = size($l) | |
127 | + | let $acc0 = $Tuple2(true, err_) | |
128 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
129 | + | then $a | |
130 | + | else foldFunc($a, $l[$i]) | |
131 | + | ||
132 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
133 | + | then $a | |
134 | + | else throw("List size exceeds 10") | |
135 | + | ||
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 | + | } | |
138 | + | result._1 | |
139 | + | } | |
140 | + | ||
141 | + | ||
142 | + | func _publicKeysToAddrsStr (publicKeys_) = { | |
143 | + | func foldfunc (acc_,elem_) = (acc_ :+ toString(addressFromPublicKey(fromBase58String(elem_)))) | |
144 | + | ||
145 | + | let $l = publicKeys_ | |
146 | + | let $s = size($l) | |
147 | + | let $acc0 = nil | |
148 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
149 | + | then $a | |
150 | + | else foldfunc($a, $l[$i]) | |
151 | + | ||
152 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
153 | + | then $a | |
154 | + | else throw("List size exceeds 51") | |
155 | + | ||
156 | + | $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) | |
157 | + | } | |
158 | + | ||
159 | + | ||
160 | + | func _loadInit () = match getBoolean(KEY_INIT) { | |
161 | + | case a: Boolean => | |
162 | + | a | |
163 | + | case _ => | |
164 | + | false | |
165 | + | } | |
166 | + | ||
167 | + | ||
168 | + | func _saveInit (isInit_) = [BooleanEntry(KEY_INIT, isInit_)] | |
169 | + | ||
170 | + | ||
171 | + | func _loadMultisig () = match getString(KEY_MULTISIG) { | |
172 | + | case a: String => | |
173 | + | addressFromStringValue(a) | |
174 | + | case _ => | |
175 | + | Address(base58'') | |
176 | + | } | |
177 | + | ||
178 | + | ||
179 | + | func _saveMultisig (multisig_) = [StringEntry(KEY_MULTISIG, toString(multisig_))] | |
180 | + | ||
181 | + | ||
182 | + | func _loadProxySecDepo (account_) = match getInteger(makeString([KEY_PROXY_SEC_DEPO, toString(account_)], SEPARATOR)) { | |
183 | + | case a: Int => | |
184 | + | a | |
185 | + | case _ => | |
186 | + | 0 | |
187 | + | } | |
188 | + | ||
189 | + | ||
190 | + | func _saveProxySecDepo (account_,val_) = [IntegerEntry(makeString([KEY_PROXY_SEC_DEPO, toString(account_)], SEPARATOR), val_)] | |
191 | + | ||
192 | + | ||
193 | + | func _loadProxySecDepoPerEvent () = match getInteger(KEY_PROXY_SEC_DEPO_PER_EVENT) { | |
194 | + | case a: Int => | |
195 | + | a | |
196 | + | case _ => | |
197 | + | 0 | |
198 | + | } | |
199 | + | ||
200 | + | ||
201 | + | func _saveProxySecDepoPerEvent (val_) = [IntegerEntry(KEY_PROXY_SEC_DEPO_PER_EVENT, val_)] | |
202 | + | ||
203 | + | ||
204 | + | func _loadWavesEventSize () = match getInteger(KEY_WAVES_EVENT_SIZE) { | |
205 | + | case a: Int => | |
206 | + | a | |
207 | + | case _ => | |
208 | + | 0 | |
209 | + | } | |
210 | + | ||
211 | + | ||
212 | + | func _saveWavesEventSize (val_) = [IntegerEntry(KEY_WAVES_EVENT_SIZE, val_)] | |
213 | + | ||
214 | + | ||
215 | + | func _loadEVMEventSize () = match getInteger(KEY_EVM_EVENT_SIZE) { | |
216 | + | case a: Int => | |
217 | + | a | |
218 | + | case _ => | |
219 | + | 0 | |
220 | + | } | |
221 | + | ||
222 | + | ||
223 | + | func _saveEVMEventSize (val_) = [IntegerEntry(KEY_EVM_EVENT_SIZE, val_)] | |
224 | + | ||
225 | + | ||
226 | + | func _loadWavesEvent (index_) = match getString(makeString([KEY_WAVES_EVENT, toString(index_)], SEPARATOR)) { | |
227 | + | case a: String => | |
228 | + | let struct = split(a, SEPARATOR) | |
229 | + | $Tuple13(parseIntValue(struct[0]), parseIntValue(struct[1]), parseIntValue(struct[2]), struct[3], struct[4], split(struct[5], ARGS_SEPARATOR), struct[6], parseIntValue(struct[7]), struct[8], parseIntValue(struct[9]), parseIntValue(struct[10]), parseIntValue(struct[11]), addressFromStringValue(struct[12])) | |
230 | + | case _ => | |
231 | + | $Tuple13(0, 0, 0, "", "", nil, "", 0, "", 0, 0, 0, Address(base58'')) | |
232 | + | } | |
233 | + | ||
234 | + | ||
235 | + | func _saveWavesEvent (index_,event_) = [StringEntry(makeString([KEY_WAVES_EVENT, toString(index_)], SEPARATOR), makeString([toString(event_._1), toString(event_._2), toString(event_._3), event_._4, event_._5, makeString(event_._6, ARGS_SEPARATOR), event_._7, toString(event_._8), event_._9, toString(event_._10), toString(event_._11), toString(event_._12), toString(event_._13)], SEPARATOR))] | |
236 | + | ||
237 | + | ||
238 | + | func _loadEVMEvent (index_) = match getString(makeString([KEY_EVM_EVENT, toString(index_)], SEPARATOR)) { | |
239 | + | case a: String => | |
240 | + | let struct = split(a, SEPARATOR) | |
241 | + | $Tuple12(parseIntValue(struct[0]), parseIntValue(struct[1]), parseIntValue(struct[2]), struct[3], struct[4], struct[5], parseIntValue(struct[6]), struct[7], parseIntValue(struct[8]), parseIntValue(struct[9]), parseIntValue(struct[10]), addressFromStringValue(struct[11])) | |
242 | + | case _ => | |
243 | + | $Tuple12(0, 0, 0, "", "", "", 0, "", 0, 0, 0, Address(base58'')) | |
244 | + | } | |
245 | + | ||
246 | + | ||
247 | + | func _saveEVMEvent (index_,event_) = [StringEntry(makeString([KEY_EVM_EVENT, toString(index_)], SEPARATOR), makeString([toString(event_._1), toString(event_._2), toString(event_._3), event_._4, event_._5, event_._6, toString(event_._7), event_._8, toString(event_._9), toString(event_._10), toString(event_._11), toString(event_._12)], SEPARATOR))] | |
248 | + | ||
249 | + | ||
250 | + | func _loadWavesEventStatus (eventHash_) = match getInteger(makeString([KEY_WAVES_EVENT_STATUS, eventHash_], SEPARATOR)) { | |
251 | + | case a: Int => | |
252 | + | a | |
253 | + | case _ => | |
254 | + | 0 | |
255 | + | } | |
256 | + | ||
257 | + | ||
258 | + | func _saveWavesEventStatus (eventHash_,status_) = [IntegerEntry(makeString([KEY_WAVES_EVENT_STATUS, eventHash_], SEPARATOR), status_)] | |
259 | + | ||
260 | + | ||
261 | + | func _loadEVMEventStatus (eventHash_) = match getInteger(makeString([KEY_EVM_EVENT_STATUS, eventHash_], SEPARATOR)) { | |
262 | + | case a: Int => | |
263 | + | a | |
264 | + | case _ => | |
265 | + | 0 | |
266 | + | } | |
267 | + | ||
268 | + | ||
269 | + | func _saveEVMEventStatus (eventHash_,status_) = [IntegerEntry(makeString([KEY_EVM_EVENT_STATUS, eventHash_], SEPARATOR), status_)] | |
270 | + | ||
271 | + | ||
272 | + | func _loadPublishedWavesEventByWitness (publicKey_,eventId_) = match getInteger(makeString([KEY_WAVES_EVENT_PUBLISHED, publicKey_, toString(eventId_)], SEPARATOR)) { | |
273 | + | case a: Int => | |
274 | + | a | |
275 | + | case _ => | |
276 | + | 0 | |
277 | + | } | |
278 | + | ||
279 | + | ||
280 | + | func _savePublishedWavesEventByWitness (publicKey_,eventId_,val_) = [IntegerEntry(makeString([KEY_WAVES_EVENT_PUBLISHED, publicKey_, toString(eventId_)], SEPARATOR), val_)] | |
281 | + | ||
282 | + | ||
283 | + | func _loadPublishedEVMEventByWitness (publicKey_,eventId_) = match getInteger(makeString([KEY_EVM_EVENT_PUBLISHED, publicKey_, toString(eventId_)], SEPARATOR)) { | |
284 | + | case a: Int => | |
285 | + | a | |
286 | + | case _ => | |
287 | + | 0 | |
288 | + | } | |
289 | + | ||
290 | + | ||
291 | + | func _savePublishedEVMEventByWitness (publicKey_,eventId_,val_) = [IntegerEntry(makeString([KEY_EVM_EVENT_PUBLISHED, publicKey_, toString(eventId_)], SEPARATOR), val_)] | |
292 | + | ||
293 | + | ||
294 | + | func _loadCurrentEpoch (callerChainId_) = match getInteger(makeString([KEY_CURRENT_EPOCH, toString(callerChainId_)], SEPARATOR)) { | |
295 | + | case a: Int => | |
296 | + | a | |
297 | + | case _ => | |
298 | + | 0 | |
299 | + | } | |
300 | + | ||
301 | + | ||
302 | + | func _saveCurrentEpoch (callerChainId_,val_) = [IntegerEntry(makeString([KEY_CURRENT_EPOCH, toString(callerChainId_)], SEPARATOR), val_)] | |
303 | + | ||
304 | + | ||
305 | + | func _loadWavesEventCallerIdxSize (callerChainId_) = match getInteger(makeString([KEY_WAVES_EVENT_CALLER, toString(callerChainId_), KEY_SIZE], SEPARATOR)) { | |
306 | + | case a: Int => | |
307 | + | a | |
308 | + | case _ => | |
309 | + | 0 | |
310 | + | } | |
311 | + | ||
312 | + | ||
313 | + | func _saveWavesEventCallerIdxSize (callerChainId_,val_) = [IntegerEntry(makeString([KEY_WAVES_EVENT_CALLER, toString(callerChainId_), KEY_SIZE], SEPARATOR), val_)] | |
314 | + | ||
315 | + | ||
316 | + | func _loadWavesEventCallerIdx (callerChainId_,idx_) = match getInteger(makeString([KEY_WAVES_EVENT_CALLER, toString(callerChainId_), toString(idx_)], SEPARATOR)) { | |
317 | + | case a: Int => | |
318 | + | a | |
319 | + | case _ => | |
320 | + | 0 | |
321 | + | } | |
322 | + | ||
323 | + | ||
324 | + | func _saveWavesEventCallerIdx (callerChainId_,idx_,val_) = [IntegerEntry(makeString([KEY_WAVES_EVENT_CALLER, toString(callerChainId_), toString(idx_)], SEPARATOR), val_)] | |
325 | + | ||
326 | + | ||
327 | + | func _loadEVMEventCallerIdxSize (callerChainId_) = match getInteger(makeString([KEY_EVM_EVENT_CALLER, toString(callerChainId_), KEY_SIZE], SEPARATOR)) { | |
328 | + | case a: Int => | |
329 | + | a | |
330 | + | case _ => | |
331 | + | 0 | |
332 | + | } | |
333 | + | ||
334 | + | ||
335 | + | func _saveEVMEventCallerIdxSize (callerChainId_,val_) = [IntegerEntry(makeString([KEY_EVM_EVENT_CALLER, toString(callerChainId_), KEY_SIZE], SEPARATOR), val_)] | |
336 | + | ||
337 | + | ||
338 | + | func _loadEVMEventCallerIdx (callerChainId_,idx_) = match getInteger(makeString([KEY_EVM_EVENT_CALLER, toString(callerChainId_), toString(idx_)], SEPARATOR)) { | |
339 | + | case a: Int => | |
340 | + | a | |
341 | + | case _ => | |
342 | + | 0 | |
343 | + | } | |
344 | + | ||
345 | + | ||
346 | + | func _saveEVMEventCallerIdx (callerChainId_,idx_,val_) = [IntegerEntry(makeString([KEY_EVM_EVENT_CALLER, toString(callerChainId_), toString(idx_)], SEPARATOR), val_)] | |
347 | + | ||
348 | + | ||
349 | + | func _loadWavesEventExecutorIdxSize (executionChainId_) = match getInteger(makeString([KEY_WAVES_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR)) { | |
350 | + | case a: Int => | |
351 | + | a | |
352 | + | case _ => | |
353 | + | 0 | |
354 | + | } | |
355 | + | ||
356 | + | ||
357 | + | func _saveWavesEventExecutorIdxSize (executionChainId_,val_) = [IntegerEntry(makeString([KEY_WAVES_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR), val_)] | |
358 | + | ||
359 | + | ||
360 | + | func _loadWavesEventExecutorIdx (executionChainId_,idx_) = match getInteger(makeString([KEY_WAVES_EVENT_EXECUTOR, toString(executionChainId_), toString(idx_)], SEPARATOR)) { | |
361 | + | case a: Int => | |
362 | + | a | |
363 | + | case _ => | |
364 | + | 0 | |
365 | + | } | |
366 | + | ||
367 | + | ||
368 | + | func _saveWavesEventExecutorIdx (executionChainId_,idx_,val_) = [IntegerEntry(makeString([KEY_WAVES_EVENT_EXECUTOR, toString(executionChainId_), toString(idx_)], SEPARATOR), val_)] | |
369 | + | ||
370 | + | ||
371 | + | func _loadEVMEventExecutorIdxSize (executionChainId_) = match getInteger(makeString([KEY_EVM_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR)) { | |
372 | + | case a: Int => | |
373 | + | a | |
374 | + | case _ => | |
375 | + | 0 | |
376 | + | } | |
377 | + | ||
378 | + | ||
379 | + | func _saveEVMEventExecutorIdxSize (executionChainId_,val_) = [IntegerEntry(makeString([KEY_EVM_EVENT_EXECUTOR, toString(executionChainId_), KEY_SIZE], SEPARATOR), val_)] | |
380 | + | ||
381 | + | ||
382 | + | func _loadEVMEventExecutorIdx (executionChainId_,idx_) = match getInteger(makeString([KEY_EVM_EVENT_EXECUTOR, toString(executionChainId_), toString(idx_)], SEPARATOR)) { | |
383 | + | case a: Int => | |
384 | + | a | |
385 | + | case _ => | |
386 | + | 0 | |
387 | + | } | |
388 | + | ||
389 | + | ||
390 | + | func _saveEVMEventExecutorIdx (executionChainId_,idx_,val_) = [IntegerEntry(makeString([KEY_EVM_EVENT_EXECUTOR, toString(executionChainId_), toString(idx_)], SEPARATOR), val_)] | |
391 | + | ||
392 | + | ||
393 | + | func _loadWitnesses (callerChainId_,epoch_) = match getString(makeString([KEY_WITNESSES_PER_EPOCH, toString(callerChainId_), toString(epoch_)], SEPARATOR)) { | |
394 | + | case a: String => | |
395 | + | if ((size(a) > 0)) | |
396 | + | then split(a, SEPARATOR) | |
397 | + | else nil | |
398 | + | case _ => | |
399 | + | nil | |
400 | + | } | |
401 | + | ||
402 | + | ||
403 | + | func _saveWitnesses (callerChainId_,epoch_,witnesses_) = [StringEntry(makeString([KEY_WITNESSES_PER_EPOCH, toString(callerChainId_), toString(epoch_)], SEPARATOR), makeString(witnesses_, SEPARATOR))] | |
404 | + | ||
405 | + | ||
406 | + | func _loadRewardTokenAddress () = match getString(KEY_REWARD_TOKEN_ADDRESS) { | |
407 | + | case a: String => | |
408 | + | addressFromStringValue(a) | |
409 | + | case _ => | |
410 | + | Address(base58'') | |
411 | + | } | |
412 | + | ||
413 | + | ||
414 | + | func _saveRewardTokenAddress (val_) = [StringEntry(KEY_REWARD_TOKEN_ADDRESS, toString(val_))] | |
415 | + | ||
416 | + | ||
417 | + | func _loadRewardAmount () = match getInteger(KEY_REWARD_AMOUNT) { | |
418 | + | case a: Int => | |
419 | + | a | |
420 | + | case _ => | |
421 | + | 0 | |
422 | + | } | |
423 | + | ||
424 | + | ||
425 | + | func _saveRewardAmount (val_) = [IntegerEntry(KEY_REWARD_AMOUNT, val_)] | |
426 | + | ||
427 | + | ||
428 | + | func _onlyThisContract (caller_) = if ((caller_ != this)) | |
429 | + | then throw("_onlyThisContract: revert") | |
430 | + | else true | |
431 | + | ||
432 | + | ||
433 | + | func _whenMultisigSet () = if ((_loadMultisig() == Address(base58''))) | |
434 | + | then throw("_whenMultisigSet: revert") | |
435 | + | else true | |
436 | + | ||
437 | + | ||
438 | + | func _whenNotInitialized () = if (_loadInit()) | |
439 | + | then throw("_whenNotInitialized: revert") | |
440 | + | else true | |
441 | + | ||
442 | + | ||
443 | + | func _whenInitialized () = if (!(_loadInit())) | |
444 | + | then throw("_whenInitialized: revert") | |
445 | + | else true | |
446 | + | ||
447 | + | ||
448 | + | func _isActiveWitness (publicKey_,publicKeys_,err_) = if (!(containsElement(publicKeys_, publicKey_))) | |
449 | + | then throw(err_) | |
450 | + | else true | |
451 | + | ||
452 | + | ||
453 | + | func _notConfirmedWavesEvent (eventHash_,err_) = if ((_loadWavesEventStatus(eventHash_) > EVENT_STATUS_PROCESSING)) | |
454 | + | then throw(err_) | |
455 | + | else true | |
456 | + | ||
457 | + | ||
458 | + | func _notConfirmedEVMEvent (eventHash_,err_) = if ((_loadEVMEventStatus(eventHash_) > EVENT_STATUS_PROCESSING)) | |
459 | + | then throw(err_) | |
460 | + | else true | |
461 | + | ||
462 | + | ||
463 | + | func _wavesEventNotExist (eventHash_,err_) = if ((_loadWavesEventStatus(eventHash_) != 0)) | |
464 | + | then throw(err_) | |
465 | + | else true | |
466 | + | ||
467 | + | ||
468 | + | func _evmEventNotExist (eventHash_,err_) = if ((_loadEVMEventStatus(eventHash_) != 0)) | |
469 | + | then throw(err_) | |
470 | + | else true | |
471 | + | ||
472 | + | ||
473 | + | func _notPublishedWavesEventByWitness (publicKey_,eventId_,err_) = if ((_loadPublishedWavesEventByWitness(publicKey_, eventId_) != 0)) | |
474 | + | then throw(err_) | |
475 | + | else true | |
476 | + | ||
477 | + | ||
478 | + | func _notPublishedEVMEventByWitness (publicKey_,eventId_,err_) = if ((_loadPublishedEVMEventByWitness(publicKey_, eventId_) > 0)) | |
479 | + | then throw(err_) | |
480 | + | else true | |
481 | + | ||
482 | + | ||
483 | + | func _isQuorumReached (confirmations_,total_,witnessSize_) = if (if ((confirmations_ > (witnessSize_ / 2))) | |
484 | + | then true | |
485 | + | else ((total_ - confirmations_) > (witnessSize_ / 2))) | |
486 | + | then true | |
487 | + | else false | |
488 | + | ||
489 | + | ||
490 | + | func _getEventStatus (confirmations_,total_,witnessSize_) = if ((confirmations_ > (witnessSize_ / 2))) | |
491 | + | then EVENT_STATUS_CONFIRMED | |
492 | + | else if (((total_ - confirmations_) > (witnessSize_ / 2))) | |
493 | + | then EVENT_STATUS_REJECTED | |
494 | + | else EVENT_STATUS_PROCESSING | |
495 | + | ||
496 | + | ||
497 | + | func _calcWavesEventHash (event_) = { | |
498 | + | let eventBytes = (((((((toBytes(event_._1) + toBytes(event_._2)) + toBytes(event_._3)) + toBytes(event_._4)) + toBytes(event_._5)) + toBytes(makeString(event_._6, ARGS_SEPARATOR))) + toBytes(event_._7)) + toBytes(event_._8)) | |
499 | + | toBase58String(keccak256_16Kb(eventBytes)) | |
500 | + | } | |
501 | + | ||
502 | + | ||
503 | + | func _calcEVMEventHash (event_) = { | |
504 | + | let eventBytes = ((((((toBytes(event_._1) + toBytes(event_._2)) + toBytes(event_._3)) + toBytes(event_._4)) + toBytes(event_._5)) + toBytes(event_._6)) + toBytes(event_._7)) | |
505 | + | toBase58String(keccak256_16Kb(eventBytes)) | |
506 | + | } | |
507 | + | ||
508 | + | ||
509 | + | func _setWavesEventHash (event_,hash_) = $Tuple13(event_._1, event_._2, event_._3, event_._4, event_._5, event_._6, event_._7, event_._8, hash_, event_._10, event_._11, event_._12, event_._13) | |
510 | + | ||
511 | + | ||
512 | + | func _setEVMEventHash (event_,hash_) = $Tuple12(event_._1, event_._2, event_._3, event_._4, event_._5, event_._6, event_._7, hash_, event_._9, event_._10, event_._11, event_._12) | |
513 | + | ||
514 | + | ||
515 | + | func _setWavesEventConfirmations (event_,confirmations_,total_) = $Tuple13(event_._1, event_._2, event_._3, event_._4, event_._5, event_._6, event_._7, event_._8, event_._9, confirmations_, total_, event_._12, event_._13) | |
516 | + | ||
517 | + | ||
518 | + | func _setEVMEventConfirmations (event_,confirmations_,total_) = $Tuple12(event_._1, event_._2, event_._3, event_._4, event_._5, event_._6, event_._7, event_._8, confirmations_, total_, event_._11, event_._12) | |
519 | + | ||
520 | + | ||
521 | + | @Callable(i) | |
522 | + | func init (proxySecDepoPerEvent_,rewardTokenAddress_,rewardAmount_) = { | |
523 | + | let err = if (if (if (if (if (_onlyThisContract(i.caller)) | |
524 | + | then _whenNotInitialized() | |
525 | + | else false) | |
526 | + | then _whenMultisigSet() | |
527 | + | else false) | |
528 | + | then _validateInt(proxySecDepoPerEvent_, 0, MAX_INT, "init: invalid proxySecDepoPerEvent") | |
529 | + | else false) | |
530 | + | then _validateAddress(rewardTokenAddress_, "init: invalid rewardTokenAddress") | |
531 | + | else false) | |
532 | + | then _validateInt(rewardAmount_, 0, MAX_INT, "init: invalid rewardAmount") | |
533 | + | else false | |
534 | + | if ((err == err)) | |
535 | + | then $Tuple2((((_saveInit(true) ++ _saveProxySecDepoPerEvent(proxySecDepoPerEvent_)) ++ _saveRewardTokenAddress(addressFromStringValue(rewardTokenAddress_))) ++ _saveRewardAmount(rewardAmount_)), unit) | |
536 | + | else throw("Strict value is not equal to itself.") | |
537 | + | } | |
538 | + | ||
539 | + | ||
540 | + | ||
541 | + | @Callable(i) | |
542 | + | func setActiveWitnesses (callerChainId_,witnesses_) = { | |
543 | + | let err = if (if (_onlyThisContract(i.caller)) | |
544 | + | then _whenInitialized() | |
545 | + | else false) | |
546 | + | then _validatePublicKeys(witnesses_, "setActiveWitnesses: invalid witnesses") | |
547 | + | else false | |
548 | + | if ((err == err)) | |
549 | + | then { | |
550 | + | let epoch = _loadCurrentEpoch(callerChainId_) | |
551 | + | $Tuple2((_saveCurrentEpoch(callerChainId_, (epoch + 1)) ++ _saveWitnesses(callerChainId_, (epoch + 1), witnesses_)), unit) | |
552 | + | } | |
553 | + | else throw("Strict value is not equal to itself.") | |
554 | + | } | |
555 | + | ||
556 | + | ||
557 | + | ||
558 | + | @Callable(i) | |
559 | + | func submitWavesCallEvent (callerChainId_,executionChainId_,nonce_,executionContract_,functionName_,args_,txHash_,blockNumber_) = { | |
560 | + | let err = if (if (if (if (if (if (_validateInt(callerChainId_, 0, MAX_INT, "submitWavesCallEvent: invalid callerChainId")) | |
561 | + | then _validateInt(executionChainId_, 0, MAX_INT, "submitWavesCallEvent: invalid executionChainId") | |
562 | + | else false) | |
563 | + | then _validateInt(nonce_, 0, MAX_INT, "submitWavesCallEvent: invalid nonce") | |
564 | + | else false) | |
565 | + | then _validateString(executionContract_, "submitWavesCallEvent: invalid executionContract") | |
566 | + | else false) | |
567 | + | then _validateString(functionName_, "submitWavesCallEvent: invalid functionName") | |
568 | + | else false) | |
569 | + | then _validateString(txHash_, "submitWavesCallEvent: invalid txHash") | |
570 | + | else false) | |
571 | + | then _validateInt(blockNumber_, 0, MAX_INT, "submitWavesCallEvent: invalid blockNumber") | |
572 | + | else false | |
573 | + | if ((err == err)) | |
574 | + | then { | |
575 | + | let proxySecDepo = _loadProxySecDepo(i.caller) | |
576 | + | let proxySecDepoPerEvent = _loadProxySecDepoPerEvent() | |
577 | + | let proxySecDepoUpdated = (proxySecDepo - proxySecDepoPerEvent) | |
578 | + | let event = $Tuple13(callerChainId_, executionChainId_, nonce_, executionContract_, functionName_, args_, txHash_, blockNumber_, "", 0, 0, proxySecDepoPerEvent, i.caller) | |
579 | + | let eventSize = _loadWavesEventSize() | |
580 | + | let eventHash = _calcWavesEventHash(event) | |
581 | + | let eventUpdated = _setWavesEventHash(event, eventHash) | |
582 | + | let err1 = if (_wavesEventNotExist(eventHash, "submitWavesCallEvent: already exists")) | |
583 | + | then _validateInt(proxySecDepoUpdated, 0, MAX_INT, "submitWavesCallEvent: no security deposit") | |
584 | + | else false | |
585 | + | if ((err1 == err1)) | |
586 | + | then { | |
587 | + | let callerIdxSize = _loadWavesEventCallerIdxSize(callerChainId_) | |
588 | + | $Tuple2((((((_saveProxySecDepo(i.caller, proxySecDepoUpdated) ++ _saveWavesEvent(eventSize, eventUpdated)) ++ _saveWavesEventStatus(eventHash, EVENT_STATUS_PROCESSING)) ++ _saveWavesEventSize((eventSize + 1))) ++ _saveWavesEventCallerIdx(callerChainId_, callerIdxSize, eventSize)) ++ _saveWavesEventCallerIdxSize(callerChainId_, (callerIdxSize + 1))), unit) | |
589 | + | } | |
590 | + | else throw("Strict value is not equal to itself.") | |
591 | + | } | |
592 | + | else throw("Strict value is not equal to itself.") | |
593 | + | } | |
594 | + | ||
595 | + | ||
596 | + | ||
597 | + | @Callable(i) | |
598 | + | func submitEVMCallEvent (callerChainId_,executionChainId_,nonce_,executionContract_,calldata_,txHash_,blockNumber_) = { | |
599 | + | let err = if (if (if (if (if (if (_validateInt(callerChainId_, 0, MAX_INT, "submitEVMCallEvent: invalid callerChainId")) | |
600 | + | then _validateInt(executionChainId_, 0, MAX_INT, "submitEVMCallEvent: invalid executionChainId") | |
601 | + | else false) | |
602 | + | then _validateInt(nonce_, 0, MAX_INT, "submitEVMCallEvent: invalid nonce") | |
603 | + | else false) | |
604 | + | then _validateString(executionContract_, "submitEVMCallEvent: invalid executionContract") | |
605 | + | else false) | |
606 | + | then _validateString(calldata_, "submitEVMCallEvent: invalid calldata") | |
607 | + | else false) | |
608 | + | then _validateString(txHash_, "submitEVMCallEvent: invalid txHash") | |
609 | + | else false) | |
610 | + | then _validateInt(blockNumber_, 0, MAX_INT, "submitEVMCallEvent: invalid blockNumber") | |
611 | + | else false | |
612 | + | if ((err == err)) | |
613 | + | then { | |
614 | + | let proxySecDepo = _loadProxySecDepo(i.caller) | |
615 | + | let proxySecDepoPerEvent = _loadProxySecDepoPerEvent() | |
616 | + | let proxySecDepoUpdated = (proxySecDepo - proxySecDepoPerEvent) | |
617 | + | let event = $Tuple12(callerChainId_, executionChainId_, nonce_, executionContract_, calldata_, txHash_, blockNumber_, "", 0, 0, proxySecDepoPerEvent, i.caller) | |
618 | + | let eventSize = _loadEVMEventSize() | |
619 | + | let eventHash = _calcEVMEventHash(event) | |
620 | + | let eventUpdated = _setEVMEventHash(event, eventHash) | |
621 | + | let err1 = if (_evmEventNotExist(eventHash, "submitEVMCallEvent: already exists")) | |
622 | + | then _validateInt(proxySecDepoUpdated, 0, MAX_INT, "submitEVMCallEvent: no security deposit") | |
623 | + | else false | |
624 | + | if ((err1 == err1)) | |
625 | + | then { | |
626 | + | let callerIdxSize = _loadEVMEventCallerIdxSize(callerChainId_) | |
627 | + | $Tuple2((((((_saveProxySecDepo(i.caller, proxySecDepoUpdated) ++ _saveEVMEvent(eventSize, eventUpdated)) ++ _saveEVMEventStatus(eventHash, EVENT_STATUS_PROCESSING)) ++ _saveEVMEventSize((eventSize + 1))) ++ _saveEVMEventCallerIdx(callerChainId_, callerIdxSize, eventSize)) ++ _saveEVMEventCallerIdxSize(callerChainId_, (callerIdxSize + 1))), unit) | |
628 | + | } | |
629 | + | else throw("Strict value is not equal to itself.") | |
630 | + | } | |
631 | + | else throw("Strict value is not equal to itself.") | |
632 | + | } | |
633 | + | ||
634 | + | ||
635 | + | ||
636 | + | @Callable(i) | |
637 | + | func publishWavesEventStatus (eventIdx_,status_) = { | |
638 | + | let eventSize = _loadWavesEventSize() | |
639 | + | let callerPublicKey = toBase58String(i.callerPublicKey) | |
640 | + | let err = if (_validateEventIdx(eventIdx_, eventSize, "publishWavesEventStatus: invalid event idx")) | |
641 | + | then _validateEventStatus(status_, "publishWavesEventStatus: invalid status") | |
642 | + | else false | |
643 | + | if ((err == err)) | |
644 | + | then { | |
645 | + | let event = _loadWavesEvent(eventIdx_) | |
646 | + | let callerChainId = event._1 | |
647 | + | let executionChainId = event._2 | |
648 | + | let eventHash = event._9 | |
649 | + | let eventConfirmations = event._10 | |
650 | + | let eventTotal = event._11 | |
651 | + | let proxySecDepo = event._12 | |
652 | + | let proxy = event._13 | |
653 | + | let epoch = _loadCurrentEpoch(callerChainId) | |
654 | + | let activeWitnesses = _loadWitnesses(callerChainId, epoch) | |
655 | + | let err1 = if (if (_isActiveWitness(toBase58String(i.callerPublicKey), activeWitnesses, "publishWavesEventStatus: invalid caller")) | |
656 | + | then _notConfirmedWavesEvent(eventHash, "publishWavesEventStatus: event already confirmed") | |
657 | + | else false) | |
658 | + | then _notPublishedWavesEventByWitness(callerPublicKey, eventIdx_, "publishWavesEventStatus: already published") | |
659 | + | else false | |
660 | + | if ((err1 == err1)) | |
661 | + | then { | |
662 | + | let eventUpdated = if ((status_ == EVENT_STATUS_CONFIRMED)) | |
663 | + | then _setWavesEventConfirmations(event, (eventConfirmations + 1), (eventTotal + 1)) | |
664 | + | else if ((status_ == EVENT_STATUS_REJECTED)) | |
665 | + | then _setWavesEventConfirmations(event, eventConfirmations, (eventTotal + 1)) | |
666 | + | else throw("publishWavesEventStatus: incorrect status") | |
667 | + | let executorIdxSize = _loadWavesEventExecutorIdxSize(executionChainId) | |
668 | + | let finalization = if (_isQuorumReached(eventUpdated._10, eventUpdated._11, size(activeWitnesses))) | |
669 | + | then { | |
670 | + | let status = _getEventStatus(eventUpdated._10, eventUpdated._11, size(activeWitnesses)) | |
671 | + | let proxySecDepoUpdated = if ((status == EVENT_STATUS_CONFIRMED)) | |
672 | + | then _saveProxySecDepo(proxy, (_loadProxySecDepo(proxy) + proxySecDepo)) | |
673 | + | else if ((status == EVENT_STATUS_REJECTED)) | |
674 | + | then [ScriptTransfer(_loadMultisig(), proxySecDepo, unit)] | |
675 | + | else nil | |
676 | + | let rewardAddresses = [toString(proxy), _publicKeysToAddrsStr(activeWitnesses)] | |
677 | + | let witnessesRewards = invoke(_loadRewardTokenAddress(), FUNC_MINT_MANY, [_loadRewardAmount(), rewardAddresses], nil) | |
678 | + | if ((witnessesRewards == witnessesRewards)) | |
679 | + | then (((proxySecDepoUpdated ++ _saveWavesEventStatus(eventHash, status)) ++ _saveWavesEventExecutorIdx(executionChainId, executorIdxSize, eventIdx_)) ++ _saveWavesEventExecutorIdxSize(executionChainId, (executorIdxSize + 1))) | |
680 | + | else throw("Strict value is not equal to itself.") | |
681 | + | } | |
682 | + | else nil | |
683 | + | $Tuple2(((_saveWavesEvent(eventIdx_, eventUpdated) ++ _savePublishedWavesEventByWitness(callerPublicKey, eventIdx_, status_)) ++ finalization), unit) | |
684 | + | } | |
685 | + | else throw("Strict value is not equal to itself.") | |
686 | + | } | |
687 | + | else throw("Strict value is not equal to itself.") | |
688 | + | } | |
689 | + | ||
690 | + | ||
691 | + | ||
692 | + | @Callable(i) | |
693 | + | func publishEVMEventStatus (eventIdx_,status_) = { | |
694 | + | let eventSize = _loadEVMEventSize() | |
695 | + | let callerPublicKey = toBase58String(i.callerPublicKey) | |
696 | + | let err = if (_validateEventIdx(eventIdx_, eventSize, "publishEVMEventStatus: invalid event idx")) | |
697 | + | then _validateEventStatus(status_, "publishEVMEventStatus: invalid status") | |
698 | + | else false | |
699 | + | if ((err == err)) | |
700 | + | then { | |
701 | + | let event = _loadEVMEvent(eventIdx_) | |
702 | + | let callerChainId = event._1 | |
703 | + | let executionChainId = event._2 | |
704 | + | let eventHash = event._8 | |
705 | + | let eventConfirmations = event._9 | |
706 | + | let eventTotal = event._10 | |
707 | + | let proxySecDepo = event._11 | |
708 | + | let proxy = event._12 | |
709 | + | let epoch = _loadCurrentEpoch(callerChainId) | |
710 | + | let activeWitnesses = _loadWitnesses(callerChainId, epoch) | |
711 | + | let err1 = if (if (_isActiveWitness(toBase58String(i.callerPublicKey), activeWitnesses, "publishEVMEventStatus: invalid caller")) | |
712 | + | then _notConfirmedEVMEvent(eventHash, "publishEVMEventStatus: event already confirmed") | |
713 | + | else false) | |
714 | + | then _notPublishedEVMEventByWitness(callerPublicKey, eventIdx_, "publishEVMEventStatus: already published") | |
715 | + | else false | |
716 | + | if ((err1 == err1)) | |
717 | + | then { | |
718 | + | let eventUpdated = if ((status_ == EVENT_STATUS_CONFIRMED)) | |
719 | + | then _setEVMEventConfirmations(event, (eventConfirmations + 1), (eventTotal + 1)) | |
720 | + | else if ((status_ == EVENT_STATUS_REJECTED)) | |
721 | + | then _setEVMEventConfirmations(event, eventConfirmations, (eventTotal + 1)) | |
722 | + | else throw("publishEVMEventStatus: incorrect status") | |
723 | + | let executorIdxSize = _loadEVMEventExecutorIdxSize(executionChainId) | |
724 | + | let finalization = if (_isQuorumReached(eventUpdated._9, eventUpdated._10, size(activeWitnesses))) | |
725 | + | then { | |
726 | + | let status = _getEventStatus(eventUpdated._9, eventUpdated._10, size(activeWitnesses)) | |
727 | + | let proxySecDepoUpdated = if ((status == EVENT_STATUS_CONFIRMED)) | |
728 | + | then _saveProxySecDepo(proxy, (_loadProxySecDepo(proxy) + proxySecDepo)) | |
729 | + | else if ((status == EVENT_STATUS_REJECTED)) | |
730 | + | then [ScriptTransfer(_loadMultisig(), proxySecDepo, unit)] | |
731 | + | else nil | |
732 | + | let rewardAddresses = [toString(proxy), _publicKeysToAddrsStr(activeWitnesses)] | |
733 | + | let witnessesRewards = invoke(_loadRewardTokenAddress(), FUNC_MINT_MANY, [_loadRewardAmount(), rewardAddresses], nil) | |
734 | + | if ((witnessesRewards == witnessesRewards)) | |
735 | + | then (((proxySecDepoUpdated ++ _saveEVMEventStatus(eventHash, status)) ++ _saveEVMEventExecutorIdx(executionChainId, executorIdxSize, eventIdx_)) ++ _saveEVMEventExecutorIdxSize(executionChainId, (executorIdxSize + 1))) | |
736 | + | else throw("Strict value is not equal to itself.") | |
737 | + | } | |
738 | + | else nil | |
739 | + | $Tuple2(((_saveEVMEvent(eventIdx_, eventUpdated) ++ _savePublishedEVMEventByWitness(callerPublicKey, eventIdx_, status_)) ++ finalization), unit) | |
740 | + | } | |
741 | + | else throw("Strict value is not equal to itself.") | |
742 | + | } | |
743 | + | else throw("Strict value is not equal to itself.") | |
744 | + | } | |
745 | + | ||
746 | + | ||
747 | + | ||
748 | + | @Callable(i) | |
749 | + | func addProxySecurityDeposit (recipient_) = { | |
750 | + | let recipient = if ((recipient_ == "")) | |
751 | + | then toString(i.caller) | |
752 | + | else recipient_ | |
753 | + | let err = if (if (_validateAddress(recipient, "addProxySecurityDeposit: invalid recipient")) | |
754 | + | then _validatePaymentsSize(i.payments, 1, "addProxySecurityDeposit: no payment") | |
755 | + | else false) | |
756 | + | then _validatePaymentAsset(i.payments[0], unit, "addProxySecurityDeposit: invalid asset") | |
757 | + | else false | |
758 | + | if ((err == err)) | |
759 | + | then { | |
760 | + | let recipientAddr = addressFromStringValue(recipient) | |
761 | + | let balance = _loadProxySecDepo(recipientAddr) | |
762 | + | let updatedBalance = (balance + i.payments[0].amount) | |
763 | + | $Tuple2(_saveProxySecDepo(recipientAddr, updatedBalance), unit) | |
764 | + | } | |
765 | + | else throw("Strict value is not equal to itself.") | |
766 | + | } | |
767 | + | ||
768 | + | ||
769 | + | ||
770 | + | @Callable(i) | |
771 | + | func subProxySecurityDeposit (amount_) = { | |
772 | + | let balance = _loadProxySecDepo(i.caller) | |
773 | + | if ((amount_ > balance)) | |
774 | + | then throw("subProxySecurityDeposit: insufficient balance") | |
775 | + | else $Tuple2((_saveProxySecDepo(i.caller, (balance - amount_)) ++ [ScriptTransfer(i.caller, amount_, unit)]), unit) | |
776 | + | } | |
777 | + | ||
778 | + | ||
779 | + | ||
780 | + | @Callable(i) | |
781 | + | func setMultisig (multisig_) = { | |
782 | + | let err = if (_onlyThisContract(i.caller)) | |
783 | + | then _validateAddress(multisig_, "setMultisig: invalid multisig address") | |
784 | + | else false | |
785 | + | if ((err == err)) | |
786 | + | then $Tuple2(_saveMultisig(addressFromStringValue(multisig_)), unit) | |
787 | + | else throw("Strict value is not equal to itself.") | |
788 | + | } | |
789 | + | ||
790 | + | ||
791 | + | @Verifier(tx) | |
792 | + | func verify () = match getString(KEY_MULTISIG) { | |
793 | + | case multisig: String => | |
794 | + | valueOrElse(getBoolean(addressFromStringValue(multisig), makeString([KEY_STATUS, toString(this), toBase58String(tx.id)], SEPARATOR)), false) | |
795 | + | case _ => | |
796 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
797 | + | } | |
798 | + |
github/deemru/w8io/169f3d6 51.06 ms ◑