tx · 6ngobHYAkTkCAJFdcPCdJASh28CT8Sq4Xn5c1PEXA7vP 3N7xNWzNYeyH7Y1mVMvbewW9oo8c2MhmigU: -0.01000000 Waves 2024.11.21 12:42 [3381045] smart account 3N7xNWzNYeyH7Y1mVMvbewW9oo8c2MhmigU > SELF 0.00000000 Waves
{ "type": 13, "id": "6ngobHYAkTkCAJFdcPCdJASh28CT8Sq4Xn5c1PEXA7vP", "fee": 1000000, "feeAssetId": null, "timestamp": 1732182114400, "version": 2, "chainId": 84, "sender": "3N7xNWzNYeyH7Y1mVMvbewW9oo8c2MhmigU", "senderPublicKey": "B1qMTynh8kEm5LTPR5dmuG8ZHgVgLbUc9Qdo2TQa91Fg", "proofs": [ "2Q6iedwiyXPb7x8ERaAEdiZ3pgf2A6LZt6SESMD2s3dK1M4nRvJxHGL5jd3AYZpLqRZbxgTryQ9Z3C3AAWrvc9pW" ], "script": "base64:BwIVCAISBQoDCAgIEgUKAwgIGBIDCgEIJgAJU0VQQVJBVE9SAgJfXwAPQkFUQ0hfU0VQQVJBVE9SAgI6OgAMS0VZX01VTFRJU0lHAghNVUxUSVNJRwAKS0VZX1NUQVRVUwIGU1RBVFVTAAhLRVlfSU5JVAIESU5JVAAUS0VZX1NFUVVFTkNFUl9DQUxMRVICEFNFUVVFTkNFUl9DQUxMRVIAFEtFWV9HQVRFV0FZX0NPTlRSQUNUAhBHQVRFV0FZX0NPTlRSQUNUABFLRVlfU1BPVF9DT05UUkFDVAINU1BPVF9DT05UUkFDVAATS0VZX0xBU1RfQkFUQ0hfSEFTSAIPTEFTVF9CQVRDSF9IQVNIAA1GVU5DX1dJVEhEUkFXAgh3aXRoZHJhdwAKRlVOQ19UUkFERQIFdHJhZGUAEUZVTkNfQ0xBSU1fUkVXQVJEAgtjbGFpbVJld2FyZAAWRlVOQ19SRUpFQ1RfV0lUSERSQVdBTAIQcmVqZWN0V2l0aGRyYXdhbAAQR0FURVdBWV9XSVRIRFJBVwIQR0FURVdBWV9XSVRIRFJ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X1NUQVRVUwkAzAgCCQClCAEFBHRoaXMJAMwIAgkA2AQBCAUCdHgCaWQFA25pbAUJU0VQQVJBVE9SBwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleUcApz8=", "height": 3381045, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: J8YiM7uP4QZEBY9BP2Li2YAAHhicj9AHC3nBiJVkHRHu Next: none Diff:
Old | New | Differences | |
---|---|---|---|
25 | 25 | ||
26 | 26 | let l = "claimReward" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "rejectWithdrawal" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "GATEWAY_WITHDRAW" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "GATEWAY_REJECT_WD" | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = "SPOT_TRADE" | |
35 | 35 | ||
36 | - | func q (r,s) = { | |
37 | - | let t = addressFromString(r) | |
38 | - | if ($isInstanceOf(t, "Address")) | |
36 | + | let q = "SPOT_CLAIM_REWARD" | |
37 | + | ||
38 | + | let r = 9223372036854775807 | |
39 | + | ||
40 | + | func s (t,u) = { | |
41 | + | let v = addressFromString(t) | |
42 | + | if ($isInstanceOf(v, "Address")) | |
39 | 43 | then { | |
40 | - | let | |
44 | + | let w = v | |
41 | 45 | true | |
42 | 46 | } | |
43 | - | else throw( | |
47 | + | else throw(u) | |
44 | 48 | } | |
45 | 49 | ||
46 | 50 | ||
47 | - | func | |
51 | + | func x (y,z,A,u) = if (if ((z > y)) | |
48 | 52 | then true | |
49 | - | else ( | |
50 | - | then throw( | |
53 | + | else (y > A)) | |
54 | + | then throw(u) | |
51 | 55 | else true | |
52 | 56 | ||
53 | 57 | ||
54 | - | func | |
55 | - | let | |
56 | - | if ($isInstanceOf( | |
58 | + | func B () = { | |
59 | + | let v = getBoolean(e) | |
60 | + | if ($isInstanceOf(v, "Boolean")) | |
57 | 61 | then { | |
58 | - | let | |
59 | - | | |
62 | + | let w = v | |
63 | + | w | |
60 | 64 | } | |
61 | 65 | else false | |
62 | 66 | } | |
63 | 67 | ||
64 | 68 | ||
65 | - | func | |
69 | + | func C (D) = [BooleanEntry(e, D)] | |
66 | 70 | ||
67 | 71 | ||
68 | - | func | |
69 | - | let | |
70 | - | if ($isInstanceOf( | |
72 | + | func E () = { | |
73 | + | let v = getString(c) | |
74 | + | if ($isInstanceOf(v, "String")) | |
71 | 75 | then { | |
72 | - | let | |
73 | - | addressFromStringValue( | |
76 | + | let w = v | |
77 | + | addressFromStringValue(w) | |
74 | 78 | } | |
75 | 79 | else Address(base58'') | |
76 | 80 | } | |
77 | 81 | ||
78 | 82 | ||
79 | - | func | |
83 | + | func F (G) = [StringEntry(c, toString(G))] | |
80 | 84 | ||
81 | 85 | ||
82 | - | func | |
83 | - | let | |
84 | - | if ($isInstanceOf( | |
86 | + | func H () = { | |
87 | + | let v = getString(f) | |
88 | + | if ($isInstanceOf(v, "String")) | |
85 | 89 | then { | |
86 | - | let | |
87 | - | addressFromStringValue( | |
90 | + | let w = v | |
91 | + | addressFromStringValue(w) | |
88 | 92 | } | |
89 | 93 | else Address(base58'') | |
90 | 94 | } | |
91 | 95 | ||
92 | 96 | ||
93 | - | func | |
97 | + | func I (J) = [StringEntry(f, toString(J))] | |
94 | 98 | ||
95 | 99 | ||
96 | - | func | |
97 | - | let | |
98 | - | if ($isInstanceOf( | |
100 | + | func K () = { | |
101 | + | let v = getString(g) | |
102 | + | if ($isInstanceOf(v, "String")) | |
99 | 103 | then { | |
100 | - | let | |
101 | - | addressFromStringValue( | |
104 | + | let w = v | |
105 | + | addressFromStringValue(w) | |
102 | 106 | } | |
103 | 107 | else Address(base58'') | |
104 | 108 | } | |
105 | 109 | ||
106 | 110 | ||
107 | - | func | |
111 | + | func L (M) = [StringEntry(g, toString(M))] | |
108 | 112 | ||
109 | 113 | ||
110 | - | func | |
111 | - | let | |
112 | - | if ($isInstanceOf( | |
114 | + | func N () = { | |
115 | + | let v = getString(h) | |
116 | + | if ($isInstanceOf(v, "String")) | |
113 | 117 | then { | |
114 | - | let | |
115 | - | addressFromStringValue( | |
118 | + | let w = v | |
119 | + | addressFromStringValue(w) | |
116 | 120 | } | |
117 | 121 | else Address(base58'') | |
118 | 122 | } | |
119 | 123 | ||
120 | 124 | ||
121 | - | func | |
125 | + | func O (P) = [StringEntry(h, toString(P))] | |
122 | 126 | ||
123 | 127 | ||
124 | - | func | |
125 | - | let | |
126 | - | if ($isInstanceOf( | |
128 | + | func Q () = { | |
129 | + | let v = getString(i) | |
130 | + | if ($isInstanceOf(v, "String")) | |
127 | 131 | then { | |
128 | - | let | |
129 | - | | |
132 | + | let w = v | |
133 | + | w | |
130 | 134 | } | |
131 | 135 | else "GENESIS" | |
132 | 136 | } | |
133 | 137 | ||
134 | 138 | ||
135 | - | func | |
139 | + | func R (S) = [StringEntry(i, S)] | |
136 | 140 | ||
137 | 141 | ||
138 | - | func | |
142 | + | func T (U) = if ((U != this)) | |
139 | 143 | then throw("_onlyThisContract: revert") | |
140 | 144 | else true | |
141 | 145 | ||
142 | 146 | ||
143 | - | func | |
147 | + | func V () = if ((E() == Address(base58''))) | |
144 | 148 | then throw("_whenMultisigSet: revert") | |
145 | 149 | else true | |
146 | 150 | ||
147 | 151 | ||
148 | - | func | |
152 | + | func W () = if (B()) | |
149 | 153 | then throw("_whenNotInitialized: revert") | |
150 | 154 | else true | |
151 | 155 | ||
152 | 156 | ||
153 | - | func | |
157 | + | func X () = if (!(B())) | |
154 | 158 | then throw("_whenInitialized: revert") | |
155 | 159 | else true | |
156 | 160 | ||
157 | 161 | ||
158 | - | func | |
159 | - | then throw( | |
162 | + | func Y (Z,u) = if ((H() != Z)) | |
163 | + | then throw(u) | |
160 | 164 | else true | |
161 | 165 | ||
162 | 166 | ||
163 | - | func | |
164 | - | then throw( | |
167 | + | func aa (S,u) = if ((Q() != S)) | |
168 | + | then throw(u) | |
165 | 169 | else true | |
166 | 170 | ||
167 | 171 | ||
168 | - | @Callable( | |
169 | - | func init ( | |
170 | - | let | |
171 | - | then | |
172 | + | @Callable(ab) | |
173 | + | func init (J,M,P) = { | |
174 | + | let ac = if (if (if (if (if (T(ab.caller)) | |
175 | + | then W() | |
172 | 176 | else false) | |
173 | - | then | |
177 | + | then V() | |
174 | 178 | else false) | |
175 | - | then | |
179 | + | then s(J, "init: invalid sequencerCaller") | |
176 | 180 | else false) | |
177 | - | then | |
181 | + | then s(M, "init: invalid gatewayContract") | |
178 | 182 | else false) | |
179 | - | then | |
183 | + | then s(P, "init: invalid spotContract") | |
180 | 184 | else false | |
181 | - | if (( | |
182 | - | then $Tuple2(((( | |
185 | + | if ((ac == ac)) | |
186 | + | then $Tuple2((((C(true) ++ I(addressFromStringValue(J))) ++ L(addressFromStringValue(M))) ++ O(addressFromStringValue(P))), unit) | |
183 | 187 | else throw("Strict value is not equal to itself.") | |
184 | 188 | } | |
185 | 189 | ||
186 | 190 | ||
187 | 191 | ||
188 | - | @Callable( | |
189 | - | func processBatch ( | |
190 | - | let | |
191 | - | then | |
192 | + | @Callable(ab) | |
193 | + | func processBatch (ad,S,ae) = { | |
194 | + | let ac = if (if (if (Y(ab.caller, "processBatch: invalid sequencer caller")) | |
195 | + | then x(size(ad), 1, r, "processBatch: invalid currentBatchHash") | |
192 | 196 | else false) | |
193 | - | then | |
197 | + | then aa(S, "processBatch: invalid lastBatchHash") | |
194 | 198 | else false) | |
195 | - | then | |
199 | + | then x(size(ae), 1, 10, "processBatch: invalid batch size") | |
196 | 200 | else false | |
197 | - | if (( | |
201 | + | if ((ac == ac)) | |
198 | 202 | then { | |
199 | - | let | |
200 | - | let | |
201 | - | func | |
202 | - | let | |
203 | - | let | |
204 | - | if (( | |
203 | + | let af = N() | |
204 | + | let ag = K() | |
205 | + | func ah (ai,aj) = { | |
206 | + | let ak = split_4C(aj, b) | |
207 | + | let al = x(size(ak), 1, 23, "processBatch: invalid elem size") | |
208 | + | if ((al == al)) | |
205 | 209 | then { | |
206 | - | let ak = ai[0] | |
207 | - | let al = removeByIndex(ai, 0) | |
208 | - | let am = if ((ak == n)) | |
209 | - | then invoke(ad, k, al, nil) | |
210 | - | else if ((ak == o)) | |
211 | - | then invoke(ad, l, al, nil) | |
212 | - | else if ((ak == m)) | |
213 | - | then invoke(ae, j, al, nil) | |
214 | - | else throw("processBatch: invalid operation") | |
215 | - | if ((am == am)) | |
216 | - | then ag | |
210 | + | let am = ak[0] | |
211 | + | let an = removeByIndex(ak, 0) | |
212 | + | let ao = if ((am == p)) | |
213 | + | then invoke(af, k, an, nil) | |
214 | + | else if ((am == q)) | |
215 | + | then invoke(af, l, an, nil) | |
216 | + | else if ((am == n)) | |
217 | + | then invoke(ag, j, an, nil) | |
218 | + | else if ((am == o)) | |
219 | + | then invoke(ag, m, an, nil) | |
220 | + | else throw("processBatch: invalid operation") | |
221 | + | if ((ao == ao)) | |
222 | + | then ai | |
217 | 223 | else throw("Strict value is not equal to itself.") | |
218 | 224 | } | |
219 | 225 | else throw("Strict value is not equal to itself.") | |
220 | 226 | } | |
221 | 227 | ||
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | func | |
227 | - | then | |
228 | - | else | |
228 | + | let ap = { | |
229 | + | let aq = ae | |
230 | + | let ar = size(aq) | |
231 | + | let as = true | |
232 | + | func at (au,av) = if ((av >= ar)) | |
233 | + | then au | |
234 | + | else ah(au, aq[av]) | |
229 | 235 | ||
230 | - | func | |
231 | - | then | |
236 | + | func aw (au,av) = if ((av >= ar)) | |
237 | + | then au | |
232 | 238 | else throw("List size exceeds 10") | |
233 | 239 | ||
234 | - | | |
240 | + | aw(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
235 | 241 | } | |
236 | - | if (( | |
237 | - | then $Tuple2( | |
242 | + | if ((ap == ap)) | |
243 | + | then $Tuple2(R(ad), unit) | |
238 | 244 | else throw("Strict value is not equal to itself.") | |
239 | 245 | } | |
240 | 246 | else throw("Strict value is not equal to itself.") | |
242 | 248 | ||
243 | 249 | ||
244 | 250 | ||
245 | - | @Callable( | |
246 | - | func setMultisig ( | |
247 | - | let | |
248 | - | then | |
251 | + | @Callable(ab) | |
252 | + | func setMultisig (G) = { | |
253 | + | let ac = if (T(ab.caller)) | |
254 | + | then s(G, "setMultisig: invalid multisig") | |
249 | 255 | else false | |
250 | - | if (( | |
251 | - | then $Tuple2( | |
256 | + | if ((ac == ac)) | |
257 | + | then $Tuple2(F(addressFromStringValue(G)), unit) | |
252 | 258 | else throw("Strict value is not equal to itself.") | |
253 | 259 | } | |
254 | 260 | ||
255 | 261 | ||
256 | - | @Verifier( | |
257 | - | func | |
258 | - | let | |
259 | - | if ($isInstanceOf( | |
262 | + | @Verifier(ax) | |
263 | + | func ay () = { | |
264 | + | let v = getString(c) | |
265 | + | if ($isInstanceOf(v, "String")) | |
260 | 266 | then { | |
261 | - | let | |
262 | - | valueOrElse(getBoolean(addressFromStringValue( | |
267 | + | let az = v | |
268 | + | valueOrElse(getBoolean(addressFromStringValue(az), makeString([d, toString(this), toBase58String(ax.id)], a)), false) | |
263 | 269 | } | |
264 | - | else sigVerify( | |
270 | + | else sigVerify(ax.bodyBytes, ax.proofs[0], ax.senderPublicKey) | |
265 | 271 | } | |
266 | 272 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "::" | |
7 | 7 | ||
8 | 8 | let c = "MULTISIG" | |
9 | 9 | ||
10 | 10 | let d = "STATUS" | |
11 | 11 | ||
12 | 12 | let e = "INIT" | |
13 | 13 | ||
14 | 14 | let f = "SEQUENCER_CALLER" | |
15 | 15 | ||
16 | 16 | let g = "GATEWAY_CONTRACT" | |
17 | 17 | ||
18 | 18 | let h = "SPOT_CONTRACT" | |
19 | 19 | ||
20 | 20 | let i = "LAST_BATCH_HASH" | |
21 | 21 | ||
22 | 22 | let j = "withdraw" | |
23 | 23 | ||
24 | 24 | let k = "trade" | |
25 | 25 | ||
26 | 26 | let l = "claimReward" | |
27 | 27 | ||
28 | - | let m = " | |
28 | + | let m = "rejectWithdrawal" | |
29 | 29 | ||
30 | - | let n = " | |
30 | + | let n = "GATEWAY_WITHDRAW" | |
31 | 31 | ||
32 | - | let o = " | |
32 | + | let o = "GATEWAY_REJECT_WD" | |
33 | 33 | ||
34 | - | let p = | |
34 | + | let p = "SPOT_TRADE" | |
35 | 35 | ||
36 | - | func q (r,s) = { | |
37 | - | let t = addressFromString(r) | |
38 | - | if ($isInstanceOf(t, "Address")) | |
36 | + | let q = "SPOT_CLAIM_REWARD" | |
37 | + | ||
38 | + | let r = 9223372036854775807 | |
39 | + | ||
40 | + | func s (t,u) = { | |
41 | + | let v = addressFromString(t) | |
42 | + | if ($isInstanceOf(v, "Address")) | |
39 | 43 | then { | |
40 | - | let | |
44 | + | let w = v | |
41 | 45 | true | |
42 | 46 | } | |
43 | - | else throw( | |
47 | + | else throw(u) | |
44 | 48 | } | |
45 | 49 | ||
46 | 50 | ||
47 | - | func | |
51 | + | func x (y,z,A,u) = if (if ((z > y)) | |
48 | 52 | then true | |
49 | - | else ( | |
50 | - | then throw( | |
53 | + | else (y > A)) | |
54 | + | then throw(u) | |
51 | 55 | else true | |
52 | 56 | ||
53 | 57 | ||
54 | - | func | |
55 | - | let | |
56 | - | if ($isInstanceOf( | |
58 | + | func B () = { | |
59 | + | let v = getBoolean(e) | |
60 | + | if ($isInstanceOf(v, "Boolean")) | |
57 | 61 | then { | |
58 | - | let | |
59 | - | | |
62 | + | let w = v | |
63 | + | w | |
60 | 64 | } | |
61 | 65 | else false | |
62 | 66 | } | |
63 | 67 | ||
64 | 68 | ||
65 | - | func | |
69 | + | func C (D) = [BooleanEntry(e, D)] | |
66 | 70 | ||
67 | 71 | ||
68 | - | func | |
69 | - | let | |
70 | - | if ($isInstanceOf( | |
72 | + | func E () = { | |
73 | + | let v = getString(c) | |
74 | + | if ($isInstanceOf(v, "String")) | |
71 | 75 | then { | |
72 | - | let | |
73 | - | addressFromStringValue( | |
76 | + | let w = v | |
77 | + | addressFromStringValue(w) | |
74 | 78 | } | |
75 | 79 | else Address(base58'') | |
76 | 80 | } | |
77 | 81 | ||
78 | 82 | ||
79 | - | func | |
83 | + | func F (G) = [StringEntry(c, toString(G))] | |
80 | 84 | ||
81 | 85 | ||
82 | - | func | |
83 | - | let | |
84 | - | if ($isInstanceOf( | |
86 | + | func H () = { | |
87 | + | let v = getString(f) | |
88 | + | if ($isInstanceOf(v, "String")) | |
85 | 89 | then { | |
86 | - | let | |
87 | - | addressFromStringValue( | |
90 | + | let w = v | |
91 | + | addressFromStringValue(w) | |
88 | 92 | } | |
89 | 93 | else Address(base58'') | |
90 | 94 | } | |
91 | 95 | ||
92 | 96 | ||
93 | - | func | |
97 | + | func I (J) = [StringEntry(f, toString(J))] | |
94 | 98 | ||
95 | 99 | ||
96 | - | func | |
97 | - | let | |
98 | - | if ($isInstanceOf( | |
100 | + | func K () = { | |
101 | + | let v = getString(g) | |
102 | + | if ($isInstanceOf(v, "String")) | |
99 | 103 | then { | |
100 | - | let | |
101 | - | addressFromStringValue( | |
104 | + | let w = v | |
105 | + | addressFromStringValue(w) | |
102 | 106 | } | |
103 | 107 | else Address(base58'') | |
104 | 108 | } | |
105 | 109 | ||
106 | 110 | ||
107 | - | func | |
111 | + | func L (M) = [StringEntry(g, toString(M))] | |
108 | 112 | ||
109 | 113 | ||
110 | - | func | |
111 | - | let | |
112 | - | if ($isInstanceOf( | |
114 | + | func N () = { | |
115 | + | let v = getString(h) | |
116 | + | if ($isInstanceOf(v, "String")) | |
113 | 117 | then { | |
114 | - | let | |
115 | - | addressFromStringValue( | |
118 | + | let w = v | |
119 | + | addressFromStringValue(w) | |
116 | 120 | } | |
117 | 121 | else Address(base58'') | |
118 | 122 | } | |
119 | 123 | ||
120 | 124 | ||
121 | - | func | |
125 | + | func O (P) = [StringEntry(h, toString(P))] | |
122 | 126 | ||
123 | 127 | ||
124 | - | func | |
125 | - | let | |
126 | - | if ($isInstanceOf( | |
128 | + | func Q () = { | |
129 | + | let v = getString(i) | |
130 | + | if ($isInstanceOf(v, "String")) | |
127 | 131 | then { | |
128 | - | let | |
129 | - | | |
132 | + | let w = v | |
133 | + | w | |
130 | 134 | } | |
131 | 135 | else "GENESIS" | |
132 | 136 | } | |
133 | 137 | ||
134 | 138 | ||
135 | - | func | |
139 | + | func R (S) = [StringEntry(i, S)] | |
136 | 140 | ||
137 | 141 | ||
138 | - | func | |
142 | + | func T (U) = if ((U != this)) | |
139 | 143 | then throw("_onlyThisContract: revert") | |
140 | 144 | else true | |
141 | 145 | ||
142 | 146 | ||
143 | - | func | |
147 | + | func V () = if ((E() == Address(base58''))) | |
144 | 148 | then throw("_whenMultisigSet: revert") | |
145 | 149 | else true | |
146 | 150 | ||
147 | 151 | ||
148 | - | func | |
152 | + | func W () = if (B()) | |
149 | 153 | then throw("_whenNotInitialized: revert") | |
150 | 154 | else true | |
151 | 155 | ||
152 | 156 | ||
153 | - | func | |
157 | + | func X () = if (!(B())) | |
154 | 158 | then throw("_whenInitialized: revert") | |
155 | 159 | else true | |
156 | 160 | ||
157 | 161 | ||
158 | - | func | |
159 | - | then throw( | |
162 | + | func Y (Z,u) = if ((H() != Z)) | |
163 | + | then throw(u) | |
160 | 164 | else true | |
161 | 165 | ||
162 | 166 | ||
163 | - | func | |
164 | - | then throw( | |
167 | + | func aa (S,u) = if ((Q() != S)) | |
168 | + | then throw(u) | |
165 | 169 | else true | |
166 | 170 | ||
167 | 171 | ||
168 | - | @Callable( | |
169 | - | func init ( | |
170 | - | let | |
171 | - | then | |
172 | + | @Callable(ab) | |
173 | + | func init (J,M,P) = { | |
174 | + | let ac = if (if (if (if (if (T(ab.caller)) | |
175 | + | then W() | |
172 | 176 | else false) | |
173 | - | then | |
177 | + | then V() | |
174 | 178 | else false) | |
175 | - | then | |
179 | + | then s(J, "init: invalid sequencerCaller") | |
176 | 180 | else false) | |
177 | - | then | |
181 | + | then s(M, "init: invalid gatewayContract") | |
178 | 182 | else false) | |
179 | - | then | |
183 | + | then s(P, "init: invalid spotContract") | |
180 | 184 | else false | |
181 | - | if (( | |
182 | - | then $Tuple2(((( | |
185 | + | if ((ac == ac)) | |
186 | + | then $Tuple2((((C(true) ++ I(addressFromStringValue(J))) ++ L(addressFromStringValue(M))) ++ O(addressFromStringValue(P))), unit) | |
183 | 187 | else throw("Strict value is not equal to itself.") | |
184 | 188 | } | |
185 | 189 | ||
186 | 190 | ||
187 | 191 | ||
188 | - | @Callable( | |
189 | - | func processBatch ( | |
190 | - | let | |
191 | - | then | |
192 | + | @Callable(ab) | |
193 | + | func processBatch (ad,S,ae) = { | |
194 | + | let ac = if (if (if (Y(ab.caller, "processBatch: invalid sequencer caller")) | |
195 | + | then x(size(ad), 1, r, "processBatch: invalid currentBatchHash") | |
192 | 196 | else false) | |
193 | - | then | |
197 | + | then aa(S, "processBatch: invalid lastBatchHash") | |
194 | 198 | else false) | |
195 | - | then | |
199 | + | then x(size(ae), 1, 10, "processBatch: invalid batch size") | |
196 | 200 | else false | |
197 | - | if (( | |
201 | + | if ((ac == ac)) | |
198 | 202 | then { | |
199 | - | let | |
200 | - | let | |
201 | - | func | |
202 | - | let | |
203 | - | let | |
204 | - | if (( | |
203 | + | let af = N() | |
204 | + | let ag = K() | |
205 | + | func ah (ai,aj) = { | |
206 | + | let ak = split_4C(aj, b) | |
207 | + | let al = x(size(ak), 1, 23, "processBatch: invalid elem size") | |
208 | + | if ((al == al)) | |
205 | 209 | then { | |
206 | - | let ak = ai[0] | |
207 | - | let al = removeByIndex(ai, 0) | |
208 | - | let am = if ((ak == n)) | |
209 | - | then invoke(ad, k, al, nil) | |
210 | - | else if ((ak == o)) | |
211 | - | then invoke(ad, l, al, nil) | |
212 | - | else if ((ak == m)) | |
213 | - | then invoke(ae, j, al, nil) | |
214 | - | else throw("processBatch: invalid operation") | |
215 | - | if ((am == am)) | |
216 | - | then ag | |
210 | + | let am = ak[0] | |
211 | + | let an = removeByIndex(ak, 0) | |
212 | + | let ao = if ((am == p)) | |
213 | + | then invoke(af, k, an, nil) | |
214 | + | else if ((am == q)) | |
215 | + | then invoke(af, l, an, nil) | |
216 | + | else if ((am == n)) | |
217 | + | then invoke(ag, j, an, nil) | |
218 | + | else if ((am == o)) | |
219 | + | then invoke(ag, m, an, nil) | |
220 | + | else throw("processBatch: invalid operation") | |
221 | + | if ((ao == ao)) | |
222 | + | then ai | |
217 | 223 | else throw("Strict value is not equal to itself.") | |
218 | 224 | } | |
219 | 225 | else throw("Strict value is not equal to itself.") | |
220 | 226 | } | |
221 | 227 | ||
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | func | |
227 | - | then | |
228 | - | else | |
228 | + | let ap = { | |
229 | + | let aq = ae | |
230 | + | let ar = size(aq) | |
231 | + | let as = true | |
232 | + | func at (au,av) = if ((av >= ar)) | |
233 | + | then au | |
234 | + | else ah(au, aq[av]) | |
229 | 235 | ||
230 | - | func | |
231 | - | then | |
236 | + | func aw (au,av) = if ((av >= ar)) | |
237 | + | then au | |
232 | 238 | else throw("List size exceeds 10") | |
233 | 239 | ||
234 | - | | |
240 | + | aw(at(at(at(at(at(at(at(at(at(at(as, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
235 | 241 | } | |
236 | - | if (( | |
237 | - | then $Tuple2( | |
242 | + | if ((ap == ap)) | |
243 | + | then $Tuple2(R(ad), unit) | |
238 | 244 | else throw("Strict value is not equal to itself.") | |
239 | 245 | } | |
240 | 246 | else throw("Strict value is not equal to itself.") | |
241 | 247 | } | |
242 | 248 | ||
243 | 249 | ||
244 | 250 | ||
245 | - | @Callable( | |
246 | - | func setMultisig ( | |
247 | - | let | |
248 | - | then | |
251 | + | @Callable(ab) | |
252 | + | func setMultisig (G) = { | |
253 | + | let ac = if (T(ab.caller)) | |
254 | + | then s(G, "setMultisig: invalid multisig") | |
249 | 255 | else false | |
250 | - | if (( | |
251 | - | then $Tuple2( | |
256 | + | if ((ac == ac)) | |
257 | + | then $Tuple2(F(addressFromStringValue(G)), unit) | |
252 | 258 | else throw("Strict value is not equal to itself.") | |
253 | 259 | } | |
254 | 260 | ||
255 | 261 | ||
256 | - | @Verifier( | |
257 | - | func | |
258 | - | let | |
259 | - | if ($isInstanceOf( | |
262 | + | @Verifier(ax) | |
263 | + | func ay () = { | |
264 | + | let v = getString(c) | |
265 | + | if ($isInstanceOf(v, "String")) | |
260 | 266 | then { | |
261 | - | let | |
262 | - | valueOrElse(getBoolean(addressFromStringValue( | |
267 | + | let az = v | |
268 | + | valueOrElse(getBoolean(addressFromStringValue(az), makeString([d, toString(this), toBase58String(ax.id)], a)), false) | |
263 | 269 | } | |
264 | - | else sigVerify( | |
270 | + | else sigVerify(ax.bodyBytes, ax.proofs[0], ax.senderPublicKey) | |
265 | 271 | } | |
266 | 272 |
github/deemru/w8io/169f3d6 65.71 ms ◑