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