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