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