tx · 9WWceSDgNsALAgLzTKevALZyJJ7rXd3XQJFnFqMLtzmA 3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA: -0.02300000 Waves 2023.02.15 13:44 [2450618] smart account 3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA > SELF 0.00000000 Waves
{ "type": 13, "id": "9WWceSDgNsALAgLzTKevALZyJJ7rXd3XQJFnFqMLtzmA", "fee": 2300000, "feeAssetId": null, "timestamp": 1676457863817, "version": 2, "chainId": 84, "sender": "3Mp3nG9T5fKGziHW8mcCqx3jMFx3towh3WA", "senderPublicKey": "D46gQxzmdzdCTYRg6dMcwFoUrc6ZmxF6GKd5ZoTkvzp1", "proofs": [ "5DBU47mAwL8JpfqWwT6EX6iqyibLftmHhtXVSjCqdqYK9WsNwGSvdTMfsVmV41jExE6MT7zntVT7hJmppMoEegfV" ], "script": "base64:BgKnFQgCEgMKAQgSABIECgIIARIHCgUICAgIARIECgIICBIFCgMICAESBAoCCAgSAwoBARIDCgEBEgQKAggIEgQKAggEEgASAwoBARIAEgQKAggIEgQKAggIEgQKAggIEgQKAggIIglzZXBhcmF0b3IiDnBvb2xXZWlnaHRNdWx0Ig9tYXhEZXB0aERlZmF1bHQiFmZpbmFsaXphdGlvblN0YWdlVG90YWwiF2ZpbmFsaXphdGlvblN0YWdlU2hhcmVzIg5rZXlFcG9jaExlbmd0aCIRa2V5RXBvY2hMZW5ndGhOZXciFWtleUVwb2NoTGVuZ3RoQnlFcG9jaCIFZXBvY2giD2tleUN1cnJlbnRFcG9jaCILa2V5TWF4RGVwdGgiImtleVZvdGluZ0VtaXNzaW9uQ2FuZGlkYXRlQ29udHJhY3QiEmtleUZhY3RvcnlDb250cmFjdCITa2V5Qm9vc3RpbmdDb250cmFjdCISa2V5U3Rha2luZ0NvbnRyYWN0IhRrZXlGaW5hbGl6YXRpb25TdGFnZSILa2V5TmV4dFBvb2wiC2tleU5leHRVc2VyIg5rZXlTdGFydEhlaWdodCIRa2V5Q3Vycm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gZXBvY2gFAWkEAXoJAJQKAgUBQgUBQwQCY3MJAQt2YWx1ZU9yRWxzZQIJAJoIAgUEdGhpcwkBAUYDBQF6BQJhWQUCY3IAAAQCYnAJAQt2YWx1ZU9yRWxzZQIJAJoIAgUEdGhpcwkBAUgCBQF6BQJjcgAACQCUCgIFA25pbAkAlAoCBQJjcwUCYnABAmN0AQJjdQAEAmN2BAFUCQECYUsAAwkAAQIFAVQCCkJ5dGVWZWN0b3IEAmFSBQFUBQJhUgMJAAECBQFUAgRVbml0CAUCY3QPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmN0CWJvZHlCeXRlcwkAkQMCCAUCY3QGcHJvb2ZzAAAFAmN2KKQz7g==", "height": 2450618, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: C2TKiv8yMgfGBvHDGNFcHnkpWt4BM2DsPF9gb8TuCEpp Next: 9wNALryRHbvVdvYgPVX7w4vGaoXZQLuQt8cmdKQu1BjK Diff:
Old | New | Differences | |
---|---|---|---|
88 | 88 | func L (i) = makeString(["%s%d", "totalVotes", toString(i)], a) | |
89 | 89 | ||
90 | 90 | ||
91 | - | func M (E,N,O) = { | |
92 | - | let P = makeString(["mandatory ", toString(E), ".", N, " is not defined"], "") | |
91 | + | func M (N) = makeString(["voting_emission.ride:", N], " ") | |
92 | + | ||
93 | + | ||
94 | + | func O (N) = throw(M(N)) | |
95 | + | ||
96 | + | ||
97 | + | func P (E,Q,R) = { | |
98 | + | let S = makeString(["mandatory ", toString(E), ".", Q, " is not defined"], "") | |
93 | 99 | valueOrErrorMessage({ | |
94 | - | let | |
95 | - | if ($isInstanceOf( | |
100 | + | let T = R | |
101 | + | if ($isInstanceOf(T, "String")) | |
96 | 102 | then { | |
97 | - | let | |
98 | - | getString(E, | |
103 | + | let U = T | |
104 | + | getString(E, Q) | |
99 | 105 | } | |
100 | - | else if ($isInstanceOf( | |
106 | + | else if ($isInstanceOf(T, "Int")) | |
101 | 107 | then { | |
102 | - | let | |
103 | - | getInteger(E, | |
108 | + | let V = T | |
109 | + | getInteger(E, Q) | |
104 | 110 | } | |
105 | 111 | else throw("invalid entry type") | |
106 | - | }, | |
112 | + | }, S) | |
107 | 113 | } | |
108 | 114 | ||
109 | 115 | ||
110 | - | func | |
111 | - | let | |
112 | - | if ($isInstanceOf( | |
113 | - | then | |
114 | - | else throw(($getType( | |
116 | + | func W (E,Q) = { | |
117 | + | let X = P(E, Q, "") | |
118 | + | if ($isInstanceOf(X, "String")) | |
119 | + | then X | |
120 | + | else throw(($getType(X) + " couldn't be cast to String")) | |
115 | 121 | } | |
116 | 122 | ||
117 | 123 | ||
118 | - | func | |
119 | - | let | |
120 | - | if ($isInstanceOf( | |
121 | - | then | |
122 | - | else throw(($getType( | |
124 | + | func Y (E,Q) = { | |
125 | + | let X = P(E, Q, 0) | |
126 | + | if ($isInstanceOf(X, "Int")) | |
127 | + | then X | |
128 | + | else throw(($getType(X) + " couldn't be cast to Int")) | |
123 | 129 | } | |
124 | 130 | ||
125 | 131 | ||
126 | - | func | |
132 | + | func Z (z) = ((z._1 + a) + z._2) | |
127 | 133 | ||
128 | 134 | ||
129 | - | func | |
130 | - | let | |
131 | - | if ((size( | |
132 | - | then $Tuple2( | |
135 | + | func aa (U) = { | |
136 | + | let ab = split(U, a) | |
137 | + | if ((size(ab) == 2)) | |
138 | + | then $Tuple2(ab[0], ab[1]) | |
133 | 139 | else throw("invalid pool string") | |
134 | 140 | } | |
135 | 141 | ||
136 | 142 | ||
137 | - | func | |
138 | - | func | |
143 | + | func ac (B,C) = { | |
144 | + | func ad (ae) = ("%s%s%s__mappings__baseAsset2internalId__" + ae) | |
139 | 145 | ||
140 | - | func | |
146 | + | func af (ag,ah) = (((("%d%d%s%s__" + toString(ag)) + "__") + toString(ah)) + "__mappings__poolAssets2PoolContract") | |
141 | 147 | ||
142 | - | func | |
148 | + | func ai (aj) = (("%s%s%s__" + aj) + "__mappings__poolContract2LpAsset") | |
143 | 149 | ||
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | | |
150 | + | let ak = addressFromStringValue(W(this, m)) | |
151 | + | let al = Y(ak, ad(B)) | |
152 | + | let am = Y(ak, ad(C)) | |
153 | + | let aj = W(ak, af(al, am)) | |
154 | + | let an = W(ak, ai(aj)) | |
155 | + | an | |
150 | 156 | } | |
151 | 157 | ||
152 | - | ||
153 | - | func al (z) = { | |
154 | - | let am = z | |
155 | - | let B = am._1 | |
156 | - | let C = am._2 | |
157 | - | let ah = addressFromStringValue(T(this, m)) | |
158 | - | let U = invoke(ah, "checkWxEmissionPoolLabel", [B, C], nil) | |
159 | - | if ($isInstanceOf(U, "Boolean")) | |
160 | - | then U | |
161 | - | else throw(($getType(U) + " couldn't be cast to Boolean")) | |
162 | - | } | |
163 | - | ||
164 | - | ||
165 | - | let an = "pools" | |
166 | 158 | ||
167 | 159 | func ao (z) = { | |
168 | 160 | let ap = z | |
169 | 161 | let B = ap._1 | |
170 | 162 | let C = ap._2 | |
163 | + | let ak = addressFromStringValue(W(this, m)) | |
164 | + | let X = invoke(ak, "checkWxEmissionPoolLabel", [B, C], nil) | |
165 | + | if ($isInstanceOf(X, "Boolean")) | |
166 | + | then X | |
167 | + | else throw(($getType(X) + " couldn't be cast to Boolean")) | |
168 | + | } | |
169 | + | ||
170 | + | ||
171 | + | let aq = "pools" | |
172 | + | ||
173 | + | func ar (z) = { | |
174 | + | let as = z | |
175 | + | let B = as._1 | |
176 | + | let C = as._2 | |
171 | 177 | makeString(["votes", B, C], a) | |
172 | 178 | } | |
173 | 179 | ||
174 | 180 | ||
175 | - | func | |
176 | - | let | |
181 | + | func at (au) = { | |
182 | + | let av = if ((au == aq)) | |
177 | 183 | then "%s%s" | |
178 | 184 | else "%s%s%s%s" | |
179 | - | makeString([ | |
185 | + | makeString([av, au, "head"], a) | |
180 | 186 | } | |
181 | 187 | ||
182 | 188 | ||
183 | - | func | |
184 | - | let | |
189 | + | func aw (au) = { | |
190 | + | let av = if ((au == aq)) | |
185 | 191 | then "%s%s" | |
186 | 192 | else "%s%s%s%s" | |
187 | - | makeString([ | |
193 | + | makeString([av, au, "size"], a) | |
188 | 194 | } | |
189 | 195 | ||
190 | 196 | ||
191 | - | func | |
192 | - | let | |
197 | + | func ax (au,ay) = { | |
198 | + | let av = if ((au == aq)) | |
193 | 199 | then "%s%s%s%s" | |
194 | 200 | else "%s%s%s%s%s" | |
195 | - | makeString([ | |
201 | + | makeString([av, au, ay, "prev"], a) | |
196 | 202 | } | |
197 | 203 | ||
198 | 204 | ||
199 | - | func | |
200 | - | let | |
205 | + | func az (au,ay) = { | |
206 | + | let av = if ((au == aq)) | |
201 | 207 | then "%s%s%s%s" | |
202 | 208 | else "%s%s%s%s%s" | |
203 | - | makeString([ | |
209 | + | makeString([av, au, ay, "next"], a) | |
204 | 210 | } | |
205 | 211 | ||
206 | 212 | ||
207 | - | func | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | if (if (( | |
213 | + | func aA (au,ay) = { | |
214 | + | let aB = getString(this, at(au)) | |
215 | + | let aC = getString(this, ax(au, ay)) | |
216 | + | let aD = getString(this, az(au, ay)) | |
217 | + | if (if ((ay == valueOrElse(aB, ""))) | |
212 | 218 | then true | |
213 | - | else ( | |
219 | + | else (aC != unit)) | |
214 | 220 | then true | |
215 | - | else ( | |
221 | + | else (aD != unit) | |
216 | 222 | } | |
217 | 223 | ||
218 | 224 | ||
219 | - | func | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
225 | + | func aE (au,ay) = { | |
226 | + | let aB = getString(this, at(au)) | |
227 | + | let aF = valueOrElse(getInteger(this, aw(au)), 0) | |
228 | + | let aG = if (!(aA(au, ay))) | |
223 | 229 | then true | |
224 | 230 | else throw("Node exists") | |
225 | - | if (( | |
226 | - | then (([IntegerEntry( | |
227 | - | then [StringEntry( | |
228 | - | else nil)) ++ [StringEntry( | |
231 | + | if ((aG == aG)) | |
232 | + | then (([IntegerEntry(aw(au), (aF + 1))] ++ (if ((aB != unit)) | |
233 | + | then [StringEntry(az(au, ay), value(aB)), StringEntry(ax(au, value(aB)), ay)] | |
234 | + | else nil)) ++ [StringEntry(at(au), ay)]) | |
229 | 235 | else throw("Strict value is not equal to itself.") | |
230 | 236 | } | |
231 | 237 | ||
232 | 238 | ||
233 | - | func | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | ([IntegerEntry( | |
239 | - | then ( | |
239 | + | func aH (au,ay) = { | |
240 | + | let aB = getString(this, at(au)) | |
241 | + | let aF = valueOrElse(getInteger(this, aw(au)), 0) | |
242 | + | let aC = getString(this, ax(au, ay)) | |
243 | + | let aD = getString(this, az(au, ay)) | |
244 | + | ([IntegerEntry(aw(au), (aF - 1))] ++ (if (if ((aC != unit)) | |
245 | + | then (aD != unit) | |
240 | 246 | else false) | |
241 | - | then [StringEntry( | |
242 | - | else if (( | |
243 | - | then [StringEntry( | |
244 | - | else if (( | |
245 | - | then [DeleteEntry(au | |
246 | - | else if (( | |
247 | - | then [DeleteEntry( | |
248 | - | else throw(((("invalid node: " + | |
247 | + | then [StringEntry(az(au, value(aC)), value(aD)), StringEntry(ax(au, value(aD)), value(aC)), DeleteEntry(ax(au, ay)), DeleteEntry(az(au, ay))] | |
248 | + | else if ((aD != unit)) | |
249 | + | then [StringEntry(at(au), value(aD)), DeleteEntry(az(au, ay)), DeleteEntry(ax(au, value(aD)))] | |
250 | + | else if ((aC != unit)) | |
251 | + | then [DeleteEntry(ax(au, ay)), DeleteEntry(az(au, value(aC)))] | |
252 | + | else if ((ay == valueOrElse(aB, ""))) | |
253 | + | then [DeleteEntry(at(au))] | |
254 | + | else throw(((("invalid node: " + au) + ".") + ay)))) | |
249 | 255 | } | |
250 | 256 | ||
251 | 257 | ||
252 | - | func | |
258 | + | func aI () = "%s__managerPublicKey" | |
253 | 259 | ||
254 | 260 | ||
255 | - | func | |
261 | + | func aJ () = "%s__pendingManagerPublicKey" | |
256 | 262 | ||
257 | 263 | ||
258 | - | func | |
259 | - | let | |
260 | - | if ($isInstanceOf( | |
264 | + | func aK () = { | |
265 | + | let T = getString(aI()) | |
266 | + | if ($isInstanceOf(T, "String")) | |
261 | 267 | then { | |
262 | - | let | |
263 | - | fromBase58String( | |
268 | + | let aL = T | |
269 | + | fromBase58String(aL) | |
264 | 270 | } | |
265 | - | else if ($isInstanceOf( | |
271 | + | else if ($isInstanceOf(T, "Unit")) | |
266 | 272 | then unit | |
267 | 273 | else throw("Match error") | |
268 | 274 | } | |
269 | 275 | ||
270 | 276 | ||
271 | - | func | |
272 | - | let | |
273 | - | if ($isInstanceOf( | |
277 | + | func aM () = { | |
278 | + | let T = getString(aJ()) | |
279 | + | if ($isInstanceOf(T, "String")) | |
274 | 280 | then { | |
275 | - | let | |
276 | - | fromBase58String( | |
281 | + | let aL = T | |
282 | + | fromBase58String(aL) | |
277 | 283 | } | |
278 | - | else if ($isInstanceOf( | |
284 | + | else if ($isInstanceOf(T, "Unit")) | |
279 | 285 | then unit | |
280 | 286 | else throw("Match error") | |
281 | 287 | } | |
282 | 288 | ||
283 | 289 | ||
284 | - | let | |
290 | + | let aN = throw("Permission denied") | |
285 | 291 | ||
286 | - | func | |
292 | + | func aO (aP) = if ((aP.caller == this)) | |
287 | 293 | then true | |
288 | - | else | |
294 | + | else aN | |
289 | 295 | ||
290 | 296 | ||
291 | - | func | |
292 | - | let | |
293 | - | if ($isInstanceOf( | |
297 | + | func aQ (aP) = { | |
298 | + | let T = aK() | |
299 | + | if ($isInstanceOf(T, "ByteVector")) | |
294 | 300 | then { | |
295 | - | let | |
296 | - | if (( | |
301 | + | let aR = T | |
302 | + | if ((aP.callerPublicKey == aR)) | |
297 | 303 | then true | |
298 | - | else | |
304 | + | else aN | |
299 | 305 | } | |
300 | - | else if ($isInstanceOf( | |
301 | - | then | |
306 | + | else if ($isInstanceOf(T, "Unit")) | |
307 | + | then aO(aP) | |
302 | 308 | else throw("Match error") | |
303 | 309 | } | |
304 | 310 | ||
305 | 311 | ||
306 | - | @Callable( | |
307 | - | func setManager ( | |
308 | - | let | |
309 | - | if (( | |
312 | + | @Callable(aP) | |
313 | + | func setManager (aS) = { | |
314 | + | let aT = aQ(aP) | |
315 | + | if ((aT == aT)) | |
310 | 316 | then { | |
311 | - | let | |
312 | - | if (( | |
313 | - | then [StringEntry( | |
317 | + | let aU = fromBase58String(aS) | |
318 | + | if ((aU == aU)) | |
319 | + | then [StringEntry(aJ(), aS)] | |
314 | 320 | else throw("Strict value is not equal to itself.") | |
315 | 321 | } | |
316 | 322 | else throw("Strict value is not equal to itself.") | |
318 | 324 | ||
319 | 325 | ||
320 | 326 | ||
321 | - | @Callable( | |
327 | + | @Callable(aP) | |
322 | 328 | func confirmManager () = { | |
323 | - | let | |
324 | - | let | |
329 | + | let aV = aM() | |
330 | + | let aW = if (isDefined(aV)) | |
325 | 331 | then true | |
326 | 332 | else throw("No pending manager") | |
327 | - | if (( | |
333 | + | if ((aW == aW)) | |
328 | 334 | then { | |
329 | - | let | |
335 | + | let aX = if ((aP.callerPublicKey == value(aV))) | |
330 | 336 | then true | |
331 | 337 | else throw("You are not pending manager") | |
332 | - | if (( | |
333 | - | then [StringEntry( | |
338 | + | if ((aX == aX)) | |
339 | + | then [StringEntry(aI(), toBase58String(value(aV))), DeleteEntry(aJ())] | |
334 | 340 | else throw("Strict value is not equal to itself.") | |
335 | 341 | } | |
336 | 342 | else throw("Strict value is not equal to itself.") | |
338 | 344 | ||
339 | 345 | ||
340 | 346 | ||
341 | - | @Callable( | |
342 | - | func getUserGwxAmountAtHeight ( | |
343 | - | let | |
347 | + | @Callable(aP) | |
348 | + | func getUserGwxAmountAtHeight (aY,aZ) = { | |
349 | + | let ba = valueOrErrorMessage(addressFromString(W(this, n)), "invalid boosting contract address") | |
344 | 350 | $Tuple2(nil, { | |
345 | - | let | |
346 | - | if ($isInstanceOf( | |
347 | - | then | |
348 | - | else throw(($getType( | |
351 | + | let X = invoke(ba, "getUserGwxAmountAtHeightREADONLY", [aY, aZ], nil) | |
352 | + | if ($isInstanceOf(X, "Int")) | |
353 | + | then X | |
354 | + | else throw(($getType(X) + " couldn't be cast to Int")) | |
349 | 355 | }) | |
350 | 356 | } | |
351 | 357 | ||
352 | 358 | ||
353 | 359 | ||
354 | - | @Callable( | |
355 | - | func constructor ( | |
356 | - | let | |
360 | + | @Callable(aP) | |
361 | + | func constructor (ak,bb,bc,bd,be) = { | |
362 | + | let bf = [aQ(aP), if ((addressFromString(ak) != unit)) | |
357 | 363 | then true | |
358 | - | else "invalid factory contract address", if ((addressFromString( | |
364 | + | else "invalid factory contract address", if ((addressFromString(bb) != unit)) | |
359 | 365 | then true | |
360 | - | else "invalid voting emission candidate contract address", if ((addressFromString( | |
366 | + | else "invalid voting emission candidate contract address", if ((addressFromString(bc) != unit)) | |
361 | 367 | then true | |
362 | - | else "invalid boosting contract address", if ((addressFromString( | |
368 | + | else "invalid boosting contract address", if ((addressFromString(bd) != unit)) | |
363 | 369 | then true | |
364 | - | else "invalid staking contract address", if (( | |
370 | + | else "invalid staking contract address", if ((be > 0)) | |
365 | 371 | then true | |
366 | 372 | else throw("invalid epoch length")] | |
367 | - | if (( | |
368 | - | then $Tuple2([StringEntry(m, | |
373 | + | if ((bf == bf)) | |
374 | + | then $Tuple2([StringEntry(m, ak), StringEntry(l, bb), StringEntry(n, bc), StringEntry(o, bd), IntegerEntry(f, be)], unit) | |
369 | 375 | else throw("Strict value is not equal to itself.") | |
370 | 376 | } | |
371 | 377 | ||
372 | 378 | ||
373 | 379 | ||
374 | - | @Callable( | |
380 | + | @Callable(aP) | |
375 | 381 | func create (B,C) = { | |
376 | - | let | |
382 | + | let bf = [if ((toBase58String(aP.caller.bytes) == valueOrElse(getString(this, l), ""))) | |
377 | 383 | then true | |
378 | - | else | |
379 | - | if (( | |
384 | + | else aQ(aP)] | |
385 | + | if ((bf == bf)) | |
380 | 386 | then { | |
381 | 387 | let z = $Tuple2(B, C) | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
388 | + | let bg = ([BooleanEntry(y(z), true)] ++ aE(aq, Z(z))) | |
389 | + | let bh = (getInteger(this, j) == unit) | |
390 | + | let bi = if (bh) | |
385 | 391 | then { | |
386 | 392 | let i = 0 | |
387 | 393 | [IntegerEntry(j, i), IntegerEntry(w(i), height), IntegerEntry(s, height), IntegerEntry(t, i), IntegerEntry(u, height)] | |
388 | 394 | } | |
389 | 395 | else nil | |
390 | - | $Tuple2(( | |
396 | + | $Tuple2((bg ++ bi), unit) | |
391 | 397 | } | |
392 | 398 | else throw("Strict value is not equal to itself.") | |
393 | 399 | } | |
394 | 400 | ||
395 | 401 | ||
396 | 402 | ||
397 | - | @Callable( | |
398 | - | func vote (B,C, | |
403 | + | @Callable(aP) | |
404 | + | func vote (B,C,bj) = { | |
399 | 405 | let z = $Tuple2(B, C) | |
400 | 406 | let i = valueOrElse(getInteger(this, j), 0) | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | if ($isInstanceOf( | |
412 | - | then | |
413 | - | else throw(($getType( | |
407 | + | let bk = Y(this, w(i)) | |
408 | + | let be = Y(this, f) | |
409 | + | let bl = (bk + be) | |
410 | + | let bm = getInteger(this, p) | |
411 | + | let bn = valueOrElse(getInteger(this, D(aP.caller, i)), 0) | |
412 | + | let bo = valueOrElse(getInteger(this, F(z, aP.caller, i)), 0) | |
413 | + | let bp = valueOrElse(getInteger(this, H(z, i)), 0) | |
414 | + | let bq = valueOrElse(getInteger(this, L(i)), 0) | |
415 | + | let br = { | |
416 | + | let X = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(aP.caller.bytes), bl], nil) | |
417 | + | if ($isInstanceOf(X, "Int")) | |
418 | + | then X | |
419 | + | else throw(($getType(X) + " couldn't be cast to Int")) | |
414 | 420 | } | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
421 | + | let bs = (br - bn) | |
422 | + | let bt = (bo + bj) | |
423 | + | let bu = ao(z) | |
424 | + | let bf = [if ((getBoolean(y(z)) != unit)) | |
419 | 425 | then true | |
420 | - | else throw("invalid assets"), if (( | |
426 | + | else throw("invalid assets"), if ((bl > height)) | |
421 | 427 | then true | |
422 | - | else throw("invalid height"), if (( | |
428 | + | else throw("invalid height"), if ((bm == unit)) | |
423 | 429 | then true | |
424 | - | else throw("finalization in progress"), if (( | |
430 | + | else throw("finalization in progress"), if ((br > 0)) | |
425 | 431 | then true | |
426 | - | else throw("you do not have gWX"), if (if (( | |
427 | - | then ( | |
432 | + | else throw("you do not have gWX"), if (if ((bj > 0)) | |
433 | + | then (bs >= bj) | |
428 | 434 | else false) | |
429 | 435 | then true | |
430 | - | else throw("invalid amount"), if ( | |
436 | + | else throw("invalid amount"), if (bu) | |
431 | 437 | then true | |
432 | 438 | else throw("pool hasn't WX_EMISSION label")] | |
433 | - | if (( | |
439 | + | if ((bf == bf)) | |
434 | 440 | then { | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
441 | + | let bv = ar(z) | |
442 | + | let bw = toString(aP.caller) | |
443 | + | let bx = if (aA(bv, bw)) | |
438 | 444 | then nil | |
439 | - | else | |
440 | - | $Tuple2(([IntegerEntry(D( | |
445 | + | else aE(bv, bw) | |
446 | + | $Tuple2(([IntegerEntry(D(aP.caller, i), (bn + bj)), IntegerEntry(F(z, aP.caller, i), bt), IntegerEntry(H(z, i), (bp + bj)), IntegerEntry(L(i), (bq + bj))] ++ bx), unit) | |
441 | 447 | } | |
442 | 448 | else throw("Strict value is not equal to itself.") | |
443 | 449 | } | |
444 | 450 | ||
445 | 451 | ||
446 | 452 | ||
447 | - | @Callable( | |
453 | + | @Callable(aP) | |
448 | 454 | func cancelVote (B,C) = { | |
449 | 455 | let z = $Tuple2(B, C) | |
450 | 456 | let i = valueOrElse(getInteger(this, j), 0) | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
457 | + | let bk = Y(this, w(i)) | |
458 | + | let be = Y(this, f) | |
459 | + | let bl = (bk + be) | |
460 | + | let bm = getInteger(this, p) | |
461 | + | let bn = valueOrElse(getInteger(this, D(aP.caller, i)), 0) | |
462 | + | let bo = valueOrElse(getInteger(this, F(z, aP.caller, i)), 0) | |
463 | + | let bp = valueOrElse(getInteger(this, H(z, i)), 0) | |
464 | + | let bq = valueOrElse(getInteger(this, L(i)), 0) | |
465 | + | let bf = [if ((getBoolean(y(z)) != unit)) | |
460 | 466 | then true | |
461 | - | else throw("invalid assets"), if (( | |
467 | + | else throw("invalid assets"), if ((bl > height)) | |
462 | 468 | then true | |
463 | - | else throw("invalid height"), if (( | |
469 | + | else throw("invalid height"), if ((bm == unit)) | |
464 | 470 | then true | |
465 | - | else throw("finalization in progress"), if (( | |
471 | + | else throw("finalization in progress"), if ((bo > 0)) | |
466 | 472 | then true | |
467 | 473 | else throw("no vote")] | |
468 | - | if (( | |
474 | + | if ((bf == bf)) | |
469 | 475 | then { | |
470 | - | let | |
471 | - | let | |
472 | - | $Tuple2(([IntegerEntry(D( | |
476 | + | let bv = ar(z) | |
477 | + | let bw = toString(aP.caller) | |
478 | + | $Tuple2(([IntegerEntry(D(aP.caller, i), max([(bn - bo), 0])), DeleteEntry(F(z, aP.caller, i)), IntegerEntry(H(z, i), (bp - bo)), IntegerEntry(L(i), (bq - bo))] ++ aH(bv, bw)), unit) | |
473 | 479 | } | |
474 | 480 | else throw("Strict value is not equal to itself.") | |
475 | 481 | } | |
476 | 482 | ||
477 | 483 | ||
478 | 484 | ||
479 | - | @Callable( | |
480 | - | func setEpochLength ( | |
481 | - | let | |
485 | + | @Callable(aP) | |
486 | + | func setEpochLength (by) = { | |
487 | + | let bf = [aQ(aP), if ((by > 0)) | |
482 | 488 | then true | |
483 | 489 | else throw("invalid epoch length")] | |
484 | - | if (( | |
485 | - | then $Tuple2([IntegerEntry(g, | |
490 | + | if ((bf == bf)) | |
491 | + | then $Tuple2([IntegerEntry(g, by)], unit) | |
486 | 492 | else throw("Strict value is not equal to itself.") | |
487 | 493 | } | |
488 | 494 | ||
489 | 495 | ||
490 | 496 | ||
491 | - | @Callable( | |
492 | - | func setMaxDepth ( | |
493 | - | let | |
497 | + | @Callable(aP) | |
498 | + | func setMaxDepth (bz) = { | |
499 | + | let bf = [aQ(aP), if ((bz > 0)) | |
494 | 500 | then true | |
495 | 501 | else throw("invalid max depth")] | |
496 | - | if (( | |
497 | - | then $Tuple2([IntegerEntry(k, | |
502 | + | if ((bf == bf)) | |
503 | + | then $Tuple2([IntegerEntry(k, bz)], unit) | |
498 | 504 | else throw("Strict value is not equal to itself.") | |
499 | 505 | } | |
500 | 506 | ||
501 | 507 | ||
502 | 508 | ||
503 | - | @Callable( | |
504 | - | func processVoteINTERNAL ( | |
505 | - | let | |
506 | - | if (( | |
509 | + | @Callable(aP) | |
510 | + | func processVoteINTERNAL (bA,bw) = { | |
511 | + | let aT = aO(aP) | |
512 | + | if ((aT == aT)) | |
507 | 513 | then { | |
508 | - | let | |
509 | - | let i = | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
514 | + | let aY = valueOrErrorMessage(addressFromString(bw), ("processVoteINTERNAL: invalid user address " + bw)) | |
515 | + | let i = Y(this, j) | |
516 | + | let bB = (i - 1) | |
517 | + | let be = Y(this, f) | |
518 | + | let bk = Y(this, w(i)) | |
519 | + | let bl = (bk + be) | |
520 | + | let bC = Y(this, w(bB)) | |
521 | + | let bD = Y(this, h(bB)) | |
522 | + | let bE = (bC + bD) | |
523 | + | let bF = if ((bB >= 0)) | |
518 | 524 | then true | |
519 | 525 | else throw("processVoteINTERNAL: invalid previous epoch") | |
520 | - | if (( | |
526 | + | if ((bF == bF)) | |
521 | 527 | then { | |
522 | - | let z = | |
523 | - | let | |
524 | - | let B = | |
525 | - | let C = | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | if ($isInstanceOf( | |
530 | - | then | |
531 | - | else throw(($getType( | |
528 | + | let z = aa(bA) | |
529 | + | let bG = z | |
530 | + | let B = bG._1 | |
531 | + | let C = bG._2 | |
532 | + | let bu = ao(z) | |
533 | + | let br = { | |
534 | + | let X = invoke(this, "getUserGwxAmountAtHeight", [bw, bl], nil) | |
535 | + | if ($isInstanceOf(X, "Int")) | |
536 | + | then X | |
537 | + | else throw(($getType(X) + " couldn't be cast to Int")) | |
532 | 538 | } | |
533 | - | let | |
534 | - | let | |
535 | - | if ($isInstanceOf( | |
536 | - | then | |
537 | - | else throw(($getType( | |
539 | + | let bH = { | |
540 | + | let X = invoke(this, "getUserGwxAmountAtHeight", [bw, bE], nil) | |
541 | + | if ($isInstanceOf(X, "Int")) | |
542 | + | then X | |
543 | + | else throw(($getType(X) + " couldn't be cast to Int")) | |
538 | 544 | } | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | then fraction( | |
545 | + | let bq = valueOrElse(getInteger(L(i)), 0) | |
546 | + | let bI = valueOrElse(getInteger(H(z, i)), 0) | |
547 | + | let bJ = valueOrErrorMessage(getInteger(F(z, aY, bB)), (((("processVoteINTERNAL " + bA) + " ") + bw) + ": no previous vote")) | |
548 | + | let bn = valueOrElse(getInteger(this, D(aY, i)), 0) | |
549 | + | let bt = if ((bH > 0)) | |
550 | + | then fraction(bJ, br, bH) | |
545 | 551 | else 0 | |
546 | - | let | |
547 | - | then | |
552 | + | let bK = if (if ((bt > 0)) | |
553 | + | then bu | |
548 | 554 | else false) | |
549 | - | then [IntegerEntry(F(z, | |
550 | - | else | |
551 | - | $Tuple2( | |
555 | + | then [IntegerEntry(F(z, aY, i), bt), IntegerEntry(L(i), (bq + bt)), IntegerEntry(H(z, i), (bI + bt)), IntegerEntry(D(aY, i), (bn + bt))] | |
556 | + | else aH(ar(z), bw) | |
557 | + | $Tuple2(bK, unit) | |
552 | 558 | } | |
553 | 559 | else throw("Strict value is not equal to itself.") | |
554 | 560 | } | |
557 | 563 | ||
558 | 564 | ||
559 | 565 | ||
560 | - | @Callable( | |
561 | - | func processPoolINTERNAL ( | |
562 | - | let | |
563 | - | if (( | |
566 | + | @Callable(aP) | |
567 | + | func processPoolINTERNAL (bA,bL) = { | |
568 | + | let aT = aO(aP) | |
569 | + | if ((aT == aT)) | |
564 | 570 | then { | |
565 | - | let | |
566 | - | let | |
567 | - | if ( | |
568 | - | then | |
569 | - | else ( | |
571 | + | let bM = { | |
572 | + | let bN = Y(this, j) | |
573 | + | if (bL) | |
574 | + | then bN | |
575 | + | else (bN - 1) | |
570 | 576 | } | |
571 | - | let | |
577 | + | let bF = if ((bM >= 0)) | |
572 | 578 | then true | |
573 | 579 | else throw("processPoolINTERNAL: invalid target epoch") | |
574 | - | if (( | |
580 | + | if ((bF == bF)) | |
575 | 581 | then { | |
576 | - | let z = | |
577 | - | let | |
578 | - | let B = | |
579 | - | let C = | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | if ($isInstanceOf( | |
586 | - | then | |
587 | - | else throw(($getType( | |
582 | + | let z = aa(bA) | |
583 | + | let bO = z | |
584 | + | let B = bO._1 | |
585 | + | let C = bO._2 | |
586 | + | let bd = addressFromStringValue(W(this, o)) | |
587 | + | let ak = addressFromStringValue(W(this, m)) | |
588 | + | let an = ac(B, C) | |
589 | + | let bP = { | |
590 | + | let X = invoke(bd, "usersListTraversal", [an], nil) | |
591 | + | if ($isInstanceOf(X, "Boolean")) | |
592 | + | then X | |
593 | + | else throw(($getType(X) + " couldn't be cast to Boolean")) | |
588 | 594 | } | |
589 | - | if (( | |
590 | - | then if ( | |
595 | + | if ((bP == bP)) | |
596 | + | then if (bP) | |
591 | 597 | then $Tuple2(nil, true) | |
592 | 598 | else { | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
599 | + | let bu = ao(z) | |
600 | + | let bq = valueOrElse(getInteger(this, L(bM)), 0) | |
601 | + | let bI = valueOrElse(getInteger(this, H(z, bM)), 0) | |
602 | + | let bQ = if (if ((bq == 0)) | |
597 | 603 | then true | |
598 | - | else !( | |
604 | + | else !(bu)) | |
599 | 605 | then 0 | |
600 | - | else fraction( | |
601 | - | let | |
602 | - | if (( | |
606 | + | else fraction(bI, b, bq) | |
607 | + | let bR = invoke(ak, "modifyWeight", [an, bQ], nil) | |
608 | + | if ((bR == bR)) | |
603 | 609 | then { | |
604 | - | let | |
610 | + | let bS = if (if (bu) | |
605 | 611 | then true | |
606 | - | else | |
612 | + | else bL) | |
607 | 613 | then nil | |
608 | - | else ([DeleteEntry(y(z))] ++ | |
609 | - | $Tuple2(([IntegerEntry(J(z, | |
614 | + | else ([DeleteEntry(y(z))] ++ aH(aq, bA)) | |
615 | + | $Tuple2(([IntegerEntry(J(z, bM), bQ)] ++ bS), false) | |
610 | 616 | } | |
611 | 617 | else throw("Strict value is not equal to itself.") | |
612 | 618 | } | |
619 | 625 | ||
620 | 626 | ||
621 | 627 | ||
622 | - | @Callable( | |
628 | + | @Callable(aP) | |
623 | 629 | func finalizeHelper () = { | |
624 | - | let | |
630 | + | let bL = valueOrElse(getBoolean(v), false) | |
625 | 631 | let i = valueOrElse(getInteger(this, j), 0) | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | if (if (if ((height >= | |
632 | - | then ( | |
632 | + | let bT = (i - 1) | |
633 | + | let bk = Y(this, w(i)) | |
634 | + | let be = Y(this, f) | |
635 | + | let bl = (bk + be) | |
636 | + | let bm = getInteger(this, p) | |
637 | + | if (if (if ((height >= bl)) | |
638 | + | then (bm == unit) | |
633 | 639 | else false) | |
634 | - | then !( | |
640 | + | then !(bL) | |
635 | 641 | else false) | |
636 | 642 | then { | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | if ($isInstanceOf( | |
643 | + | let bU = (i + 1) | |
644 | + | let bV = getInteger(this, g) | |
645 | + | let bW = { | |
646 | + | let T = bV | |
647 | + | if ($isInstanceOf(T, "Int")) | |
642 | 648 | then { | |
643 | - | let | |
644 | - | [IntegerEntry(f, | |
649 | + | let by = T | |
650 | + | [IntegerEntry(f, by), DeleteEntry(g)] | |
645 | 651 | } | |
646 | - | else if ($isInstanceOf( | |
652 | + | else if ($isInstanceOf(T, "Unit")) | |
647 | 653 | then nil | |
648 | 654 | else throw("Match error") | |
649 | 655 | } | |
650 | - | $Tuple2(([IntegerEntry(w( | |
656 | + | $Tuple2(([IntegerEntry(w(bU), height), IntegerEntry(s, height), IntegerEntry(j, bU), IntegerEntry(p, d), IntegerEntry(h(i), be)] ++ bW), true) | |
651 | 657 | } | |
652 | - | else if (if ( | |
653 | - | then ( | |
658 | + | else if (if (bL) | |
659 | + | then (bm == unit) | |
654 | 660 | else false) | |
655 | 661 | then $Tuple2([IntegerEntry(p, e)], true) | |
656 | - | else if (( | |
662 | + | else if ((bm == unit)) | |
657 | 663 | then $Tuple2(nil, false) | |
658 | - | else if (( | |
664 | + | else if ((bm == d)) | |
659 | 665 | then { | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | if ($isInstanceOf( | |
666 | + | let bX = getString(q) | |
667 | + | let bY = getString(r) | |
668 | + | let T = bX | |
669 | + | if ($isInstanceOf(T, "Unit")) | |
664 | 670 | then { | |
665 | - | let | |
666 | - | if ($isInstanceOf( | |
671 | + | let bZ = getString(at(aq)) | |
672 | + | if ($isInstanceOf(bZ, "Unit")) | |
667 | 673 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
668 | - | else if ($isInstanceOf( | |
674 | + | else if ($isInstanceOf(bZ, "String")) | |
669 | 675 | then { | |
670 | - | let | |
671 | - | $Tuple2([StringEntry(q, | |
676 | + | let ca = bZ | |
677 | + | $Tuple2([StringEntry(q, ca)], true) | |
672 | 678 | } | |
673 | 679 | else throw("Match error") | |
674 | 680 | } | |
675 | - | else if ($isInstanceOf( | |
681 | + | else if ($isInstanceOf(T, "String")) | |
676 | 682 | then { | |
677 | - | let | |
678 | - | let z = | |
679 | - | let | |
680 | - | let | |
681 | - | if ($isInstanceOf( | |
682 | - | then getString( | |
683 | - | else if ($isInstanceOf( | |
683 | + | let bA = T | |
684 | + | let z = aa(bA) | |
685 | + | let cb = { | |
686 | + | let bZ = bY | |
687 | + | if ($isInstanceOf(bZ, "Unit")) | |
688 | + | then getString(at(ar(z))) | |
689 | + | else if ($isInstanceOf(bZ, "String")) | |
684 | 690 | then { | |
685 | - | let | |
686 | - | let | |
687 | - | if (( | |
691 | + | let cc = bZ | |
692 | + | let cd = getString(az(ar(z), cc)) | |
693 | + | if ((cd == cd)) | |
688 | 694 | then { | |
689 | - | let | |
690 | - | if (( | |
691 | - | then | |
695 | + | let ce = invoke(this, "processVoteINTERNAL", [bA, cc], nil) | |
696 | + | if ((ce == ce)) | |
697 | + | then cd | |
692 | 698 | else throw("Strict value is not equal to itself.") | |
693 | 699 | } | |
694 | 700 | else throw("Strict value is not equal to itself.") | |
695 | 701 | } | |
696 | 702 | else throw("Match error") | |
697 | 703 | } | |
698 | - | let | |
699 | - | if ($isInstanceOf( | |
704 | + | let bZ = cb | |
705 | + | if ($isInstanceOf(bZ, "Unit")) | |
700 | 706 | then { | |
701 | - | let | |
702 | - | let | |
703 | - | if ($isInstanceOf( | |
707 | + | let cf = getString(az(aq, bA)) | |
708 | + | let cg = cf | |
709 | + | if ($isInstanceOf(cg, "Unit")) | |
704 | 710 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
705 | - | else if ($isInstanceOf( | |
711 | + | else if ($isInstanceOf(cg, "String")) | |
706 | 712 | then { | |
707 | - | let | |
708 | - | $Tuple2([StringEntry(q, | |
713 | + | let aL = cg | |
714 | + | $Tuple2([StringEntry(q, aL), DeleteEntry(r)], true) | |
709 | 715 | } | |
710 | 716 | else throw("Match error") | |
711 | 717 | } | |
712 | - | else if ($isInstanceOf( | |
718 | + | else if ($isInstanceOf(bZ, "String")) | |
713 | 719 | then { | |
714 | - | let | |
715 | - | $Tuple2([StringEntry(r, | |
720 | + | let ch = bZ | |
721 | + | $Tuple2([StringEntry(r, ch)], true) | |
716 | 722 | } | |
717 | 723 | else throw("Match error") | |
718 | 724 | } | |
719 | 725 | else throw("Match error") | |
720 | 726 | } | |
721 | - | else if (( | |
727 | + | else if ((bm == e)) | |
722 | 728 | then { | |
723 | - | let | |
724 | - | let | |
725 | - | if ($isInstanceOf( | |
729 | + | let bX = getString(q) | |
730 | + | let T = bX | |
731 | + | if ($isInstanceOf(T, "Unit")) | |
726 | 732 | then { | |
727 | - | let | |
728 | - | if ($isInstanceOf( | |
733 | + | let bZ = getString(at(aq)) | |
734 | + | if ($isInstanceOf(bZ, "Unit")) | |
729 | 735 | then { | |
730 | - | let | |
736 | + | let bK = if (bL) | |
731 | 737 | then [DeleteEntry(p), DeleteEntry(v)] | |
732 | - | else [DeleteEntry(p), BooleanEntry(x( | |
733 | - | $Tuple2( | |
738 | + | else [DeleteEntry(p), BooleanEntry(x(bT), true), IntegerEntry(t, i), IntegerEntry(u, bk)] | |
739 | + | $Tuple2(bK, true) | |
734 | 740 | } | |
735 | - | else if ($isInstanceOf( | |
741 | + | else if ($isInstanceOf(bZ, "String")) | |
736 | 742 | then { | |
737 | - | let | |
738 | - | $Tuple2([StringEntry(q, | |
743 | + | let ci = bZ | |
744 | + | $Tuple2([StringEntry(q, ci)], true) | |
739 | 745 | } | |
740 | 746 | else throw("Match error") | |
741 | 747 | } | |
742 | - | else if ($isInstanceOf( | |
748 | + | else if ($isInstanceOf(T, "String")) | |
743 | 749 | then { | |
744 | - | let | |
745 | - | let | |
746 | - | if (( | |
750 | + | let bA = T | |
751 | + | let cf = getString(az(aq, bA)) | |
752 | + | if ((cf == cf)) | |
747 | 753 | then { | |
748 | - | let | |
749 | - | let | |
750 | - | if ($isInstanceOf( | |
751 | - | then | |
752 | - | else throw(($getType( | |
754 | + | let bP = { | |
755 | + | let X = invoke(this, "processPoolINTERNAL", [bA, bL], nil) | |
756 | + | if ($isInstanceOf(X, "Boolean")) | |
757 | + | then X | |
758 | + | else throw(($getType(X) + " couldn't be cast to Boolean")) | |
753 | 759 | } | |
754 | - | if (( | |
755 | - | then if ( | |
760 | + | if ((bP == bP)) | |
761 | + | then if (bP) | |
756 | 762 | then $Tuple2(nil, true) | |
757 | 763 | else { | |
758 | - | let | |
759 | - | if ($isInstanceOf( | |
764 | + | let bZ = cf | |
765 | + | if ($isInstanceOf(bZ, "Unit")) | |
760 | 766 | then { | |
761 | - | let | |
767 | + | let bK = if (bL) | |
762 | 768 | then [DeleteEntry(p), DeleteEntry(v), DeleteEntry(q)] | |
763 | - | else [DeleteEntry(p), BooleanEntry(x( | |
764 | - | $Tuple2( | |
769 | + | else [DeleteEntry(p), BooleanEntry(x(bT), true), IntegerEntry(t, i), IntegerEntry(u, bk), DeleteEntry(q)] | |
770 | + | $Tuple2(bK, true) | |
765 | 771 | } | |
766 | - | else if ($isInstanceOf( | |
772 | + | else if ($isInstanceOf(bZ, "String")) | |
767 | 773 | then { | |
768 | - | let | |
769 | - | $Tuple2([StringEntry(q, | |
774 | + | let ci = bZ | |
775 | + | $Tuple2([StringEntry(q, ci)], true) | |
770 | 776 | } | |
771 | 777 | else throw("Match error") | |
772 | 778 | } | |
781 | 787 | ||
782 | 788 | ||
783 | 789 | ||
784 | - | @Callable( | |
785 | - | func finalizeWrapper ( | |
786 | - | let | |
787 | - | let | |
788 | - | if ($isInstanceOf( | |
789 | - | then | |
790 | - | else throw(($getType( | |
790 | + | @Callable(aP) | |
791 | + | func finalizeWrapper (cj) = { | |
792 | + | let ck = { | |
793 | + | let X = invoke(this, "finalizeHelper", nil, nil) | |
794 | + | if ($isInstanceOf(X, "Boolean")) | |
795 | + | then X | |
796 | + | else throw(($getType(X) + " couldn't be cast to Boolean")) | |
791 | 797 | } | |
792 | - | if (( | |
793 | - | then if (!( | |
794 | - | then if (( | |
798 | + | if ((ck == ck)) | |
799 | + | then if (!(ck)) | |
800 | + | then if ((cj == 0)) | |
795 | 801 | then throw("Current voting is not over yet") | |
796 | 802 | else $Tuple2(nil, unit) | |
797 | 803 | else { | |
798 | - | let | |
799 | - | if (( | |
804 | + | let cl = valueOrElse(getInteger(this, k), c) | |
805 | + | if ((cl > cj)) | |
800 | 806 | then { | |
801 | - | let | |
802 | - | if (( | |
807 | + | let cm = invoke(this, "finalizeWrapper", [(cj + 1)], nil) | |
808 | + | if ((cm == cm)) | |
803 | 809 | then $Tuple2(nil, unit) | |
804 | 810 | else throw("Strict value is not equal to itself.") | |
805 | 811 | } | |
810 | 816 | ||
811 | 817 | ||
812 | 818 | ||
813 | - | @Callable( | |
819 | + | @Callable(aP) | |
814 | 820 | func finalize () = { | |
815 | - | let | |
816 | - | if (( | |
821 | + | let cm = invoke(this, "finalizeWrapper", [0], nil) | |
822 | + | if ((cm == cm)) | |
817 | 823 | then $Tuple2(nil, unit) | |
818 | 824 | else throw("Strict value is not equal to itself.") | |
819 | 825 | } | |
820 | 826 | ||
821 | 827 | ||
822 | 828 | ||
823 | - | @Callable( | |
824 | - | func containsNodeREADONLY ( | |
829 | + | @Callable(aP) | |
830 | + | func containsNodeREADONLY (au,ay) = $Tuple2(nil, aA(au, ay)) | |
825 | 831 | ||
826 | 832 | ||
827 | 833 | ||
828 | - | @Callable( | |
829 | - | func insertNode ( | |
830 | - | let | |
831 | - | if (( | |
832 | - | then $Tuple2( | |
834 | + | @Callable(aP) | |
835 | + | func insertNode (au,ay) = { | |
836 | + | let aT = aQ(aP) | |
837 | + | if ((aT == aT)) | |
838 | + | then $Tuple2(aE(au, ay), unit) | |
833 | 839 | else throw("Strict value is not equal to itself.") | |
834 | 840 | } | |
835 | 841 | ||
836 | 842 | ||
837 | 843 | ||
838 | - | @Callable( | |
839 | - | func deleteNode ( | |
840 | - | let | |
841 | - | if (( | |
842 | - | then $Tuple2( | |
844 | + | @Callable(aP) | |
845 | + | func deleteNode (au,ay) = { | |
846 | + | let aT = aQ(aP) | |
847 | + | if ((aT == aT)) | |
848 | + | then $Tuple2(aH(au, ay), unit) | |
843 | 849 | else throw("Strict value is not equal to itself.") | |
844 | 850 | } | |
845 | 851 | ||
846 | 852 | ||
847 | - | @Verifier(ck) | |
848 | - | func cl () = { | |
849 | - | let cm = { | |
850 | - | let Q = aH() | |
851 | - | if ($isInstanceOf(Q, "ByteVector")) | |
853 | + | ||
854 | + | @Callable(aP) | |
855 | + | func getVoteInfoREADONLY (cn,bw) = { | |
856 | + | let aY = addressFromStringValue(bw) | |
857 | + | let ak = addressFromStringValue(W(this, m)) | |
858 | + | let co = 4 | |
859 | + | let cp = 5 | |
860 | + | let cq = { | |
861 | + | let X = invoke(ak, "getPoolConfigByLpAssetId", [cn], nil) | |
862 | + | if ($isInstanceOf(X, "List[Any]")) | |
863 | + | then X | |
864 | + | else throw(($getType(X) + " couldn't be cast to List[Any]")) | |
865 | + | } | |
866 | + | let B = { | |
867 | + | let X = cq[co] | |
868 | + | if ($isInstanceOf(X, "String")) | |
869 | + | then X | |
870 | + | else throw(($getType(X) + " couldn't be cast to String")) | |
871 | + | } | |
872 | + | let C = { | |
873 | + | let X = cq[cp] | |
874 | + | if ($isInstanceOf(X, "String")) | |
875 | + | then X | |
876 | + | else throw(($getType(X) + " couldn't be cast to String")) | |
877 | + | } | |
878 | + | let cr = { | |
879 | + | let i = (value(getInteger(this, j)) - 1) | |
880 | + | if ((0 > i)) | |
881 | + | then O("invalid epoch") | |
882 | + | else i | |
883 | + | } | |
884 | + | let z = $Tuple2(B, C) | |
885 | + | let cs = valueOrElse(getInteger(this, F(z, aY, cr)), 0) | |
886 | + | let bp = valueOrElse(getInteger(this, H(z, cr)), 0) | |
887 | + | $Tuple2(nil, $Tuple2(cs, bp)) | |
888 | + | } | |
889 | + | ||
890 | + | ||
891 | + | @Verifier(ct) | |
892 | + | func cu () = { | |
893 | + | let cv = { | |
894 | + | let T = aK() | |
895 | + | if ($isInstanceOf(T, "ByteVector")) | |
852 | 896 | then { | |
853 | - | let | |
854 | - | | |
897 | + | let aR = T | |
898 | + | aR | |
855 | 899 | } | |
856 | - | else if ($isInstanceOf( | |
857 | - | then | |
900 | + | else if ($isInstanceOf(T, "Unit")) | |
901 | + | then ct.senderPublicKey | |
858 | 902 | else throw("Match error") | |
859 | 903 | } | |
860 | - | sigVerify( | |
904 | + | sigVerify(ct.bodyBytes, ct.proofs[0], cv) | |
861 | 905 | } | |
862 | 906 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 10 | |
9 | 9 | ||
10 | 10 | let d = 0 | |
11 | 11 | ||
12 | 12 | let e = 1 | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s", "epochLength"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s%s", "epochLength__new"], a) | |
17 | 17 | ||
18 | 18 | func h (i) = makeString(["%s%d", "epochLength", toString(i)], a) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | let j = makeString(["%s", "currentEpoch"], a) | |
22 | 22 | ||
23 | 23 | let k = makeString(["%s", "maxDepth"], a) | |
24 | 24 | ||
25 | 25 | let l = makeString(["%s", "votingEmissionCandidateContract"], a) | |
26 | 26 | ||
27 | 27 | let m = makeString(["%s", "factoryContract"], a) | |
28 | 28 | ||
29 | 29 | let n = makeString(["%s", "boostingContract"], a) | |
30 | 30 | ||
31 | 31 | let o = makeString(["%s", "stakingContract"], a) | |
32 | 32 | ||
33 | 33 | let p = makeString(["%s", "finalizationStage"], a) | |
34 | 34 | ||
35 | 35 | let q = makeString(["%s", "nextPool"], a) | |
36 | 36 | ||
37 | 37 | let r = makeString(["%s", "nextUser"], a) | |
38 | 38 | ||
39 | 39 | let s = makeString(["%s", "startHeight"], a) | |
40 | 40 | ||
41 | 41 | let t = makeString(["%s", "currentEpochUi"], a) | |
42 | 42 | ||
43 | 43 | let u = makeString(["%s", "startHeightUi"], a) | |
44 | 44 | ||
45 | 45 | let v = makeString(["%s", "force"], a) | |
46 | 46 | ||
47 | 47 | func w (i) = makeString(["%s%d", "startHeight", toString(i)], a) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (i) = makeString(["%s%d", "finalized", toString(i)], a) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func y (z) = { | |
54 | 54 | let A = z | |
55 | 55 | let B = A._1 | |
56 | 56 | let C = A._2 | |
57 | 57 | makeString(["%s%s%s", "inList", B, C], a) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func D (E,i) = makeString(["%s%s%d", "used", toString(E), toString(i)], a) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func F (z,E,i) = { | |
65 | 65 | let G = z | |
66 | 66 | let B = G._1 | |
67 | 67 | let C = G._2 | |
68 | 68 | makeString(["%s%s%s%s%d", "vote", B, C, toString(E), toString(i)], a) | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func H (z,i) = { | |
73 | 73 | let I = z | |
74 | 74 | let B = I._1 | |
75 | 75 | let C = I._2 | |
76 | 76 | makeString(["%s%s%s%d", "votingResult", B, C, toString(i)], a) | |
77 | 77 | } | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func J (z,i) = { | |
81 | 81 | let K = z | |
82 | 82 | let B = K._1 | |
83 | 83 | let C = K._2 | |
84 | 84 | makeString(["%s%s%s%d", "poolShare", B, C, toString(i)], a) | |
85 | 85 | } | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func L (i) = makeString(["%s%d", "totalVotes", toString(i)], a) | |
89 | 89 | ||
90 | 90 | ||
91 | - | func M (E,N,O) = { | |
92 | - | let P = makeString(["mandatory ", toString(E), ".", N, " is not defined"], "") | |
91 | + | func M (N) = makeString(["voting_emission.ride:", N], " ") | |
92 | + | ||
93 | + | ||
94 | + | func O (N) = throw(M(N)) | |
95 | + | ||
96 | + | ||
97 | + | func P (E,Q,R) = { | |
98 | + | let S = makeString(["mandatory ", toString(E), ".", Q, " is not defined"], "") | |
93 | 99 | valueOrErrorMessage({ | |
94 | - | let | |
95 | - | if ($isInstanceOf( | |
100 | + | let T = R | |
101 | + | if ($isInstanceOf(T, "String")) | |
96 | 102 | then { | |
97 | - | let | |
98 | - | getString(E, | |
103 | + | let U = T | |
104 | + | getString(E, Q) | |
99 | 105 | } | |
100 | - | else if ($isInstanceOf( | |
106 | + | else if ($isInstanceOf(T, "Int")) | |
101 | 107 | then { | |
102 | - | let | |
103 | - | getInteger(E, | |
108 | + | let V = T | |
109 | + | getInteger(E, Q) | |
104 | 110 | } | |
105 | 111 | else throw("invalid entry type") | |
106 | - | }, | |
112 | + | }, S) | |
107 | 113 | } | |
108 | 114 | ||
109 | 115 | ||
110 | - | func | |
111 | - | let | |
112 | - | if ($isInstanceOf( | |
113 | - | then | |
114 | - | else throw(($getType( | |
116 | + | func W (E,Q) = { | |
117 | + | let X = P(E, Q, "") | |
118 | + | if ($isInstanceOf(X, "String")) | |
119 | + | then X | |
120 | + | else throw(($getType(X) + " couldn't be cast to String")) | |
115 | 121 | } | |
116 | 122 | ||
117 | 123 | ||
118 | - | func | |
119 | - | let | |
120 | - | if ($isInstanceOf( | |
121 | - | then | |
122 | - | else throw(($getType( | |
124 | + | func Y (E,Q) = { | |
125 | + | let X = P(E, Q, 0) | |
126 | + | if ($isInstanceOf(X, "Int")) | |
127 | + | then X | |
128 | + | else throw(($getType(X) + " couldn't be cast to Int")) | |
123 | 129 | } | |
124 | 130 | ||
125 | 131 | ||
126 | - | func | |
132 | + | func Z (z) = ((z._1 + a) + z._2) | |
127 | 133 | ||
128 | 134 | ||
129 | - | func | |
130 | - | let | |
131 | - | if ((size( | |
132 | - | then $Tuple2( | |
135 | + | func aa (U) = { | |
136 | + | let ab = split(U, a) | |
137 | + | if ((size(ab) == 2)) | |
138 | + | then $Tuple2(ab[0], ab[1]) | |
133 | 139 | else throw("invalid pool string") | |
134 | 140 | } | |
135 | 141 | ||
136 | 142 | ||
137 | - | func | |
138 | - | func | |
143 | + | func ac (B,C) = { | |
144 | + | func ad (ae) = ("%s%s%s__mappings__baseAsset2internalId__" + ae) | |
139 | 145 | ||
140 | - | func | |
146 | + | func af (ag,ah) = (((("%d%d%s%s__" + toString(ag)) + "__") + toString(ah)) + "__mappings__poolAssets2PoolContract") | |
141 | 147 | ||
142 | - | func | |
148 | + | func ai (aj) = (("%s%s%s__" + aj) + "__mappings__poolContract2LpAsset") | |
143 | 149 | ||
144 | - | let | |
145 | - | let | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | | |
150 | + | let ak = addressFromStringValue(W(this, m)) | |
151 | + | let al = Y(ak, ad(B)) | |
152 | + | let am = Y(ak, ad(C)) | |
153 | + | let aj = W(ak, af(al, am)) | |
154 | + | let an = W(ak, ai(aj)) | |
155 | + | an | |
150 | 156 | } | |
151 | 157 | ||
152 | - | ||
153 | - | func al (z) = { | |
154 | - | let am = z | |
155 | - | let B = am._1 | |
156 | - | let C = am._2 | |
157 | - | let ah = addressFromStringValue(T(this, m)) | |
158 | - | let U = invoke(ah, "checkWxEmissionPoolLabel", [B, C], nil) | |
159 | - | if ($isInstanceOf(U, "Boolean")) | |
160 | - | then U | |
161 | - | else throw(($getType(U) + " couldn't be cast to Boolean")) | |
162 | - | } | |
163 | - | ||
164 | - | ||
165 | - | let an = "pools" | |
166 | 158 | ||
167 | 159 | func ao (z) = { | |
168 | 160 | let ap = z | |
169 | 161 | let B = ap._1 | |
170 | 162 | let C = ap._2 | |
163 | + | let ak = addressFromStringValue(W(this, m)) | |
164 | + | let X = invoke(ak, "checkWxEmissionPoolLabel", [B, C], nil) | |
165 | + | if ($isInstanceOf(X, "Boolean")) | |
166 | + | then X | |
167 | + | else throw(($getType(X) + " couldn't be cast to Boolean")) | |
168 | + | } | |
169 | + | ||
170 | + | ||
171 | + | let aq = "pools" | |
172 | + | ||
173 | + | func ar (z) = { | |
174 | + | let as = z | |
175 | + | let B = as._1 | |
176 | + | let C = as._2 | |
171 | 177 | makeString(["votes", B, C], a) | |
172 | 178 | } | |
173 | 179 | ||
174 | 180 | ||
175 | - | func | |
176 | - | let | |
181 | + | func at (au) = { | |
182 | + | let av = if ((au == aq)) | |
177 | 183 | then "%s%s" | |
178 | 184 | else "%s%s%s%s" | |
179 | - | makeString([ | |
185 | + | makeString([av, au, "head"], a) | |
180 | 186 | } | |
181 | 187 | ||
182 | 188 | ||
183 | - | func | |
184 | - | let | |
189 | + | func aw (au) = { | |
190 | + | let av = if ((au == aq)) | |
185 | 191 | then "%s%s" | |
186 | 192 | else "%s%s%s%s" | |
187 | - | makeString([ | |
193 | + | makeString([av, au, "size"], a) | |
188 | 194 | } | |
189 | 195 | ||
190 | 196 | ||
191 | - | func | |
192 | - | let | |
197 | + | func ax (au,ay) = { | |
198 | + | let av = if ((au == aq)) | |
193 | 199 | then "%s%s%s%s" | |
194 | 200 | else "%s%s%s%s%s" | |
195 | - | makeString([ | |
201 | + | makeString([av, au, ay, "prev"], a) | |
196 | 202 | } | |
197 | 203 | ||
198 | 204 | ||
199 | - | func | |
200 | - | let | |
205 | + | func az (au,ay) = { | |
206 | + | let av = if ((au == aq)) | |
201 | 207 | then "%s%s%s%s" | |
202 | 208 | else "%s%s%s%s%s" | |
203 | - | makeString([ | |
209 | + | makeString([av, au, ay, "next"], a) | |
204 | 210 | } | |
205 | 211 | ||
206 | 212 | ||
207 | - | func | |
208 | - | let | |
209 | - | let | |
210 | - | let | |
211 | - | if (if (( | |
213 | + | func aA (au,ay) = { | |
214 | + | let aB = getString(this, at(au)) | |
215 | + | let aC = getString(this, ax(au, ay)) | |
216 | + | let aD = getString(this, az(au, ay)) | |
217 | + | if (if ((ay == valueOrElse(aB, ""))) | |
212 | 218 | then true | |
213 | - | else ( | |
219 | + | else (aC != unit)) | |
214 | 220 | then true | |
215 | - | else ( | |
221 | + | else (aD != unit) | |
216 | 222 | } | |
217 | 223 | ||
218 | 224 | ||
219 | - | func | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
225 | + | func aE (au,ay) = { | |
226 | + | let aB = getString(this, at(au)) | |
227 | + | let aF = valueOrElse(getInteger(this, aw(au)), 0) | |
228 | + | let aG = if (!(aA(au, ay))) | |
223 | 229 | then true | |
224 | 230 | else throw("Node exists") | |
225 | - | if (( | |
226 | - | then (([IntegerEntry( | |
227 | - | then [StringEntry( | |
228 | - | else nil)) ++ [StringEntry( | |
231 | + | if ((aG == aG)) | |
232 | + | then (([IntegerEntry(aw(au), (aF + 1))] ++ (if ((aB != unit)) | |
233 | + | then [StringEntry(az(au, ay), value(aB)), StringEntry(ax(au, value(aB)), ay)] | |
234 | + | else nil)) ++ [StringEntry(at(au), ay)]) | |
229 | 235 | else throw("Strict value is not equal to itself.") | |
230 | 236 | } | |
231 | 237 | ||
232 | 238 | ||
233 | - | func | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | ([IntegerEntry( | |
239 | - | then ( | |
239 | + | func aH (au,ay) = { | |
240 | + | let aB = getString(this, at(au)) | |
241 | + | let aF = valueOrElse(getInteger(this, aw(au)), 0) | |
242 | + | let aC = getString(this, ax(au, ay)) | |
243 | + | let aD = getString(this, az(au, ay)) | |
244 | + | ([IntegerEntry(aw(au), (aF - 1))] ++ (if (if ((aC != unit)) | |
245 | + | then (aD != unit) | |
240 | 246 | else false) | |
241 | - | then [StringEntry( | |
242 | - | else if (( | |
243 | - | then [StringEntry( | |
244 | - | else if (( | |
245 | - | then [DeleteEntry(au | |
246 | - | else if (( | |
247 | - | then [DeleteEntry( | |
248 | - | else throw(((("invalid node: " + | |
247 | + | then [StringEntry(az(au, value(aC)), value(aD)), StringEntry(ax(au, value(aD)), value(aC)), DeleteEntry(ax(au, ay)), DeleteEntry(az(au, ay))] | |
248 | + | else if ((aD != unit)) | |
249 | + | then [StringEntry(at(au), value(aD)), DeleteEntry(az(au, ay)), DeleteEntry(ax(au, value(aD)))] | |
250 | + | else if ((aC != unit)) | |
251 | + | then [DeleteEntry(ax(au, ay)), DeleteEntry(az(au, value(aC)))] | |
252 | + | else if ((ay == valueOrElse(aB, ""))) | |
253 | + | then [DeleteEntry(at(au))] | |
254 | + | else throw(((("invalid node: " + au) + ".") + ay)))) | |
249 | 255 | } | |
250 | 256 | ||
251 | 257 | ||
252 | - | func | |
258 | + | func aI () = "%s__managerPublicKey" | |
253 | 259 | ||
254 | 260 | ||
255 | - | func | |
261 | + | func aJ () = "%s__pendingManagerPublicKey" | |
256 | 262 | ||
257 | 263 | ||
258 | - | func | |
259 | - | let | |
260 | - | if ($isInstanceOf( | |
264 | + | func aK () = { | |
265 | + | let T = getString(aI()) | |
266 | + | if ($isInstanceOf(T, "String")) | |
261 | 267 | then { | |
262 | - | let | |
263 | - | fromBase58String( | |
268 | + | let aL = T | |
269 | + | fromBase58String(aL) | |
264 | 270 | } | |
265 | - | else if ($isInstanceOf( | |
271 | + | else if ($isInstanceOf(T, "Unit")) | |
266 | 272 | then unit | |
267 | 273 | else throw("Match error") | |
268 | 274 | } | |
269 | 275 | ||
270 | 276 | ||
271 | - | func | |
272 | - | let | |
273 | - | if ($isInstanceOf( | |
277 | + | func aM () = { | |
278 | + | let T = getString(aJ()) | |
279 | + | if ($isInstanceOf(T, "String")) | |
274 | 280 | then { | |
275 | - | let | |
276 | - | fromBase58String( | |
281 | + | let aL = T | |
282 | + | fromBase58String(aL) | |
277 | 283 | } | |
278 | - | else if ($isInstanceOf( | |
284 | + | else if ($isInstanceOf(T, "Unit")) | |
279 | 285 | then unit | |
280 | 286 | else throw("Match error") | |
281 | 287 | } | |
282 | 288 | ||
283 | 289 | ||
284 | - | let | |
290 | + | let aN = throw("Permission denied") | |
285 | 291 | ||
286 | - | func | |
292 | + | func aO (aP) = if ((aP.caller == this)) | |
287 | 293 | then true | |
288 | - | else | |
294 | + | else aN | |
289 | 295 | ||
290 | 296 | ||
291 | - | func | |
292 | - | let | |
293 | - | if ($isInstanceOf( | |
297 | + | func aQ (aP) = { | |
298 | + | let T = aK() | |
299 | + | if ($isInstanceOf(T, "ByteVector")) | |
294 | 300 | then { | |
295 | - | let | |
296 | - | if (( | |
301 | + | let aR = T | |
302 | + | if ((aP.callerPublicKey == aR)) | |
297 | 303 | then true | |
298 | - | else | |
304 | + | else aN | |
299 | 305 | } | |
300 | - | else if ($isInstanceOf( | |
301 | - | then | |
306 | + | else if ($isInstanceOf(T, "Unit")) | |
307 | + | then aO(aP) | |
302 | 308 | else throw("Match error") | |
303 | 309 | } | |
304 | 310 | ||
305 | 311 | ||
306 | - | @Callable( | |
307 | - | func setManager ( | |
308 | - | let | |
309 | - | if (( | |
312 | + | @Callable(aP) | |
313 | + | func setManager (aS) = { | |
314 | + | let aT = aQ(aP) | |
315 | + | if ((aT == aT)) | |
310 | 316 | then { | |
311 | - | let | |
312 | - | if (( | |
313 | - | then [StringEntry( | |
317 | + | let aU = fromBase58String(aS) | |
318 | + | if ((aU == aU)) | |
319 | + | then [StringEntry(aJ(), aS)] | |
314 | 320 | else throw("Strict value is not equal to itself.") | |
315 | 321 | } | |
316 | 322 | else throw("Strict value is not equal to itself.") | |
317 | 323 | } | |
318 | 324 | ||
319 | 325 | ||
320 | 326 | ||
321 | - | @Callable( | |
327 | + | @Callable(aP) | |
322 | 328 | func confirmManager () = { | |
323 | - | let | |
324 | - | let | |
329 | + | let aV = aM() | |
330 | + | let aW = if (isDefined(aV)) | |
325 | 331 | then true | |
326 | 332 | else throw("No pending manager") | |
327 | - | if (( | |
333 | + | if ((aW == aW)) | |
328 | 334 | then { | |
329 | - | let | |
335 | + | let aX = if ((aP.callerPublicKey == value(aV))) | |
330 | 336 | then true | |
331 | 337 | else throw("You are not pending manager") | |
332 | - | if (( | |
333 | - | then [StringEntry( | |
338 | + | if ((aX == aX)) | |
339 | + | then [StringEntry(aI(), toBase58String(value(aV))), DeleteEntry(aJ())] | |
334 | 340 | else throw("Strict value is not equal to itself.") | |
335 | 341 | } | |
336 | 342 | else throw("Strict value is not equal to itself.") | |
337 | 343 | } | |
338 | 344 | ||
339 | 345 | ||
340 | 346 | ||
341 | - | @Callable( | |
342 | - | func getUserGwxAmountAtHeight ( | |
343 | - | let | |
347 | + | @Callable(aP) | |
348 | + | func getUserGwxAmountAtHeight (aY,aZ) = { | |
349 | + | let ba = valueOrErrorMessage(addressFromString(W(this, n)), "invalid boosting contract address") | |
344 | 350 | $Tuple2(nil, { | |
345 | - | let | |
346 | - | if ($isInstanceOf( | |
347 | - | then | |
348 | - | else throw(($getType( | |
351 | + | let X = invoke(ba, "getUserGwxAmountAtHeightREADONLY", [aY, aZ], nil) | |
352 | + | if ($isInstanceOf(X, "Int")) | |
353 | + | then X | |
354 | + | else throw(($getType(X) + " couldn't be cast to Int")) | |
349 | 355 | }) | |
350 | 356 | } | |
351 | 357 | ||
352 | 358 | ||
353 | 359 | ||
354 | - | @Callable( | |
355 | - | func constructor ( | |
356 | - | let | |
360 | + | @Callable(aP) | |
361 | + | func constructor (ak,bb,bc,bd,be) = { | |
362 | + | let bf = [aQ(aP), if ((addressFromString(ak) != unit)) | |
357 | 363 | then true | |
358 | - | else "invalid factory contract address", if ((addressFromString( | |
364 | + | else "invalid factory contract address", if ((addressFromString(bb) != unit)) | |
359 | 365 | then true | |
360 | - | else "invalid voting emission candidate contract address", if ((addressFromString( | |
366 | + | else "invalid voting emission candidate contract address", if ((addressFromString(bc) != unit)) | |
361 | 367 | then true | |
362 | - | else "invalid boosting contract address", if ((addressFromString( | |
368 | + | else "invalid boosting contract address", if ((addressFromString(bd) != unit)) | |
363 | 369 | then true | |
364 | - | else "invalid staking contract address", if (( | |
370 | + | else "invalid staking contract address", if ((be > 0)) | |
365 | 371 | then true | |
366 | 372 | else throw("invalid epoch length")] | |
367 | - | if (( | |
368 | - | then $Tuple2([StringEntry(m, | |
373 | + | if ((bf == bf)) | |
374 | + | then $Tuple2([StringEntry(m, ak), StringEntry(l, bb), StringEntry(n, bc), StringEntry(o, bd), IntegerEntry(f, be)], unit) | |
369 | 375 | else throw("Strict value is not equal to itself.") | |
370 | 376 | } | |
371 | 377 | ||
372 | 378 | ||
373 | 379 | ||
374 | - | @Callable( | |
380 | + | @Callable(aP) | |
375 | 381 | func create (B,C) = { | |
376 | - | let | |
382 | + | let bf = [if ((toBase58String(aP.caller.bytes) == valueOrElse(getString(this, l), ""))) | |
377 | 383 | then true | |
378 | - | else | |
379 | - | if (( | |
384 | + | else aQ(aP)] | |
385 | + | if ((bf == bf)) | |
380 | 386 | then { | |
381 | 387 | let z = $Tuple2(B, C) | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
388 | + | let bg = ([BooleanEntry(y(z), true)] ++ aE(aq, Z(z))) | |
389 | + | let bh = (getInteger(this, j) == unit) | |
390 | + | let bi = if (bh) | |
385 | 391 | then { | |
386 | 392 | let i = 0 | |
387 | 393 | [IntegerEntry(j, i), IntegerEntry(w(i), height), IntegerEntry(s, height), IntegerEntry(t, i), IntegerEntry(u, height)] | |
388 | 394 | } | |
389 | 395 | else nil | |
390 | - | $Tuple2(( | |
396 | + | $Tuple2((bg ++ bi), unit) | |
391 | 397 | } | |
392 | 398 | else throw("Strict value is not equal to itself.") | |
393 | 399 | } | |
394 | 400 | ||
395 | 401 | ||
396 | 402 | ||
397 | - | @Callable( | |
398 | - | func vote (B,C, | |
403 | + | @Callable(aP) | |
404 | + | func vote (B,C,bj) = { | |
399 | 405 | let z = $Tuple2(B, C) | |
400 | 406 | let i = valueOrElse(getInteger(this, j), 0) | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | if ($isInstanceOf( | |
412 | - | then | |
413 | - | else throw(($getType( | |
407 | + | let bk = Y(this, w(i)) | |
408 | + | let be = Y(this, f) | |
409 | + | let bl = (bk + be) | |
410 | + | let bm = getInteger(this, p) | |
411 | + | let bn = valueOrElse(getInteger(this, D(aP.caller, i)), 0) | |
412 | + | let bo = valueOrElse(getInteger(this, F(z, aP.caller, i)), 0) | |
413 | + | let bp = valueOrElse(getInteger(this, H(z, i)), 0) | |
414 | + | let bq = valueOrElse(getInteger(this, L(i)), 0) | |
415 | + | let br = { | |
416 | + | let X = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(aP.caller.bytes), bl], nil) | |
417 | + | if ($isInstanceOf(X, "Int")) | |
418 | + | then X | |
419 | + | else throw(($getType(X) + " couldn't be cast to Int")) | |
414 | 420 | } | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
421 | + | let bs = (br - bn) | |
422 | + | let bt = (bo + bj) | |
423 | + | let bu = ao(z) | |
424 | + | let bf = [if ((getBoolean(y(z)) != unit)) | |
419 | 425 | then true | |
420 | - | else throw("invalid assets"), if (( | |
426 | + | else throw("invalid assets"), if ((bl > height)) | |
421 | 427 | then true | |
422 | - | else throw("invalid height"), if (( | |
428 | + | else throw("invalid height"), if ((bm == unit)) | |
423 | 429 | then true | |
424 | - | else throw("finalization in progress"), if (( | |
430 | + | else throw("finalization in progress"), if ((br > 0)) | |
425 | 431 | then true | |
426 | - | else throw("you do not have gWX"), if (if (( | |
427 | - | then ( | |
432 | + | else throw("you do not have gWX"), if (if ((bj > 0)) | |
433 | + | then (bs >= bj) | |
428 | 434 | else false) | |
429 | 435 | then true | |
430 | - | else throw("invalid amount"), if ( | |
436 | + | else throw("invalid amount"), if (bu) | |
431 | 437 | then true | |
432 | 438 | else throw("pool hasn't WX_EMISSION label")] | |
433 | - | if (( | |
439 | + | if ((bf == bf)) | |
434 | 440 | then { | |
435 | - | let | |
436 | - | let | |
437 | - | let | |
441 | + | let bv = ar(z) | |
442 | + | let bw = toString(aP.caller) | |
443 | + | let bx = if (aA(bv, bw)) | |
438 | 444 | then nil | |
439 | - | else | |
440 | - | $Tuple2(([IntegerEntry(D( | |
445 | + | else aE(bv, bw) | |
446 | + | $Tuple2(([IntegerEntry(D(aP.caller, i), (bn + bj)), IntegerEntry(F(z, aP.caller, i), bt), IntegerEntry(H(z, i), (bp + bj)), IntegerEntry(L(i), (bq + bj))] ++ bx), unit) | |
441 | 447 | } | |
442 | 448 | else throw("Strict value is not equal to itself.") | |
443 | 449 | } | |
444 | 450 | ||
445 | 451 | ||
446 | 452 | ||
447 | - | @Callable( | |
453 | + | @Callable(aP) | |
448 | 454 | func cancelVote (B,C) = { | |
449 | 455 | let z = $Tuple2(B, C) | |
450 | 456 | let i = valueOrElse(getInteger(this, j), 0) | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
457 | + | let bk = Y(this, w(i)) | |
458 | + | let be = Y(this, f) | |
459 | + | let bl = (bk + be) | |
460 | + | let bm = getInteger(this, p) | |
461 | + | let bn = valueOrElse(getInteger(this, D(aP.caller, i)), 0) | |
462 | + | let bo = valueOrElse(getInteger(this, F(z, aP.caller, i)), 0) | |
463 | + | let bp = valueOrElse(getInteger(this, H(z, i)), 0) | |
464 | + | let bq = valueOrElse(getInteger(this, L(i)), 0) | |
465 | + | let bf = [if ((getBoolean(y(z)) != unit)) | |
460 | 466 | then true | |
461 | - | else throw("invalid assets"), if (( | |
467 | + | else throw("invalid assets"), if ((bl > height)) | |
462 | 468 | then true | |
463 | - | else throw("invalid height"), if (( | |
469 | + | else throw("invalid height"), if ((bm == unit)) | |
464 | 470 | then true | |
465 | - | else throw("finalization in progress"), if (( | |
471 | + | else throw("finalization in progress"), if ((bo > 0)) | |
466 | 472 | then true | |
467 | 473 | else throw("no vote")] | |
468 | - | if (( | |
474 | + | if ((bf == bf)) | |
469 | 475 | then { | |
470 | - | let | |
471 | - | let | |
472 | - | $Tuple2(([IntegerEntry(D( | |
476 | + | let bv = ar(z) | |
477 | + | let bw = toString(aP.caller) | |
478 | + | $Tuple2(([IntegerEntry(D(aP.caller, i), max([(bn - bo), 0])), DeleteEntry(F(z, aP.caller, i)), IntegerEntry(H(z, i), (bp - bo)), IntegerEntry(L(i), (bq - bo))] ++ aH(bv, bw)), unit) | |
473 | 479 | } | |
474 | 480 | else throw("Strict value is not equal to itself.") | |
475 | 481 | } | |
476 | 482 | ||
477 | 483 | ||
478 | 484 | ||
479 | - | @Callable( | |
480 | - | func setEpochLength ( | |
481 | - | let | |
485 | + | @Callable(aP) | |
486 | + | func setEpochLength (by) = { | |
487 | + | let bf = [aQ(aP), if ((by > 0)) | |
482 | 488 | then true | |
483 | 489 | else throw("invalid epoch length")] | |
484 | - | if (( | |
485 | - | then $Tuple2([IntegerEntry(g, | |
490 | + | if ((bf == bf)) | |
491 | + | then $Tuple2([IntegerEntry(g, by)], unit) | |
486 | 492 | else throw("Strict value is not equal to itself.") | |
487 | 493 | } | |
488 | 494 | ||
489 | 495 | ||
490 | 496 | ||
491 | - | @Callable( | |
492 | - | func setMaxDepth ( | |
493 | - | let | |
497 | + | @Callable(aP) | |
498 | + | func setMaxDepth (bz) = { | |
499 | + | let bf = [aQ(aP), if ((bz > 0)) | |
494 | 500 | then true | |
495 | 501 | else throw("invalid max depth")] | |
496 | - | if (( | |
497 | - | then $Tuple2([IntegerEntry(k, | |
502 | + | if ((bf == bf)) | |
503 | + | then $Tuple2([IntegerEntry(k, bz)], unit) | |
498 | 504 | else throw("Strict value is not equal to itself.") | |
499 | 505 | } | |
500 | 506 | ||
501 | 507 | ||
502 | 508 | ||
503 | - | @Callable( | |
504 | - | func processVoteINTERNAL ( | |
505 | - | let | |
506 | - | if (( | |
509 | + | @Callable(aP) | |
510 | + | func processVoteINTERNAL (bA,bw) = { | |
511 | + | let aT = aO(aP) | |
512 | + | if ((aT == aT)) | |
507 | 513 | then { | |
508 | - | let | |
509 | - | let i = | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
514 | + | let aY = valueOrErrorMessage(addressFromString(bw), ("processVoteINTERNAL: invalid user address " + bw)) | |
515 | + | let i = Y(this, j) | |
516 | + | let bB = (i - 1) | |
517 | + | let be = Y(this, f) | |
518 | + | let bk = Y(this, w(i)) | |
519 | + | let bl = (bk + be) | |
520 | + | let bC = Y(this, w(bB)) | |
521 | + | let bD = Y(this, h(bB)) | |
522 | + | let bE = (bC + bD) | |
523 | + | let bF = if ((bB >= 0)) | |
518 | 524 | then true | |
519 | 525 | else throw("processVoteINTERNAL: invalid previous epoch") | |
520 | - | if (( | |
526 | + | if ((bF == bF)) | |
521 | 527 | then { | |
522 | - | let z = | |
523 | - | let | |
524 | - | let B = | |
525 | - | let C = | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | if ($isInstanceOf( | |
530 | - | then | |
531 | - | else throw(($getType( | |
528 | + | let z = aa(bA) | |
529 | + | let bG = z | |
530 | + | let B = bG._1 | |
531 | + | let C = bG._2 | |
532 | + | let bu = ao(z) | |
533 | + | let br = { | |
534 | + | let X = invoke(this, "getUserGwxAmountAtHeight", [bw, bl], nil) | |
535 | + | if ($isInstanceOf(X, "Int")) | |
536 | + | then X | |
537 | + | else throw(($getType(X) + " couldn't be cast to Int")) | |
532 | 538 | } | |
533 | - | let | |
534 | - | let | |
535 | - | if ($isInstanceOf( | |
536 | - | then | |
537 | - | else throw(($getType( | |
539 | + | let bH = { | |
540 | + | let X = invoke(this, "getUserGwxAmountAtHeight", [bw, bE], nil) | |
541 | + | if ($isInstanceOf(X, "Int")) | |
542 | + | then X | |
543 | + | else throw(($getType(X) + " couldn't be cast to Int")) | |
538 | 544 | } | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | then fraction( | |
545 | + | let bq = valueOrElse(getInteger(L(i)), 0) | |
546 | + | let bI = valueOrElse(getInteger(H(z, i)), 0) | |
547 | + | let bJ = valueOrErrorMessage(getInteger(F(z, aY, bB)), (((("processVoteINTERNAL " + bA) + " ") + bw) + ": no previous vote")) | |
548 | + | let bn = valueOrElse(getInteger(this, D(aY, i)), 0) | |
549 | + | let bt = if ((bH > 0)) | |
550 | + | then fraction(bJ, br, bH) | |
545 | 551 | else 0 | |
546 | - | let | |
547 | - | then | |
552 | + | let bK = if (if ((bt > 0)) | |
553 | + | then bu | |
548 | 554 | else false) | |
549 | - | then [IntegerEntry(F(z, | |
550 | - | else | |
551 | - | $Tuple2( | |
555 | + | then [IntegerEntry(F(z, aY, i), bt), IntegerEntry(L(i), (bq + bt)), IntegerEntry(H(z, i), (bI + bt)), IntegerEntry(D(aY, i), (bn + bt))] | |
556 | + | else aH(ar(z), bw) | |
557 | + | $Tuple2(bK, unit) | |
552 | 558 | } | |
553 | 559 | else throw("Strict value is not equal to itself.") | |
554 | 560 | } | |
555 | 561 | else throw("Strict value is not equal to itself.") | |
556 | 562 | } | |
557 | 563 | ||
558 | 564 | ||
559 | 565 | ||
560 | - | @Callable( | |
561 | - | func processPoolINTERNAL ( | |
562 | - | let | |
563 | - | if (( | |
566 | + | @Callable(aP) | |
567 | + | func processPoolINTERNAL (bA,bL) = { | |
568 | + | let aT = aO(aP) | |
569 | + | if ((aT == aT)) | |
564 | 570 | then { | |
565 | - | let | |
566 | - | let | |
567 | - | if ( | |
568 | - | then | |
569 | - | else ( | |
571 | + | let bM = { | |
572 | + | let bN = Y(this, j) | |
573 | + | if (bL) | |
574 | + | then bN | |
575 | + | else (bN - 1) | |
570 | 576 | } | |
571 | - | let | |
577 | + | let bF = if ((bM >= 0)) | |
572 | 578 | then true | |
573 | 579 | else throw("processPoolINTERNAL: invalid target epoch") | |
574 | - | if (( | |
580 | + | if ((bF == bF)) | |
575 | 581 | then { | |
576 | - | let z = | |
577 | - | let | |
578 | - | let B = | |
579 | - | let C = | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | if ($isInstanceOf( | |
586 | - | then | |
587 | - | else throw(($getType( | |
582 | + | let z = aa(bA) | |
583 | + | let bO = z | |
584 | + | let B = bO._1 | |
585 | + | let C = bO._2 | |
586 | + | let bd = addressFromStringValue(W(this, o)) | |
587 | + | let ak = addressFromStringValue(W(this, m)) | |
588 | + | let an = ac(B, C) | |
589 | + | let bP = { | |
590 | + | let X = invoke(bd, "usersListTraversal", [an], nil) | |
591 | + | if ($isInstanceOf(X, "Boolean")) | |
592 | + | then X | |
593 | + | else throw(($getType(X) + " couldn't be cast to Boolean")) | |
588 | 594 | } | |
589 | - | if (( | |
590 | - | then if ( | |
595 | + | if ((bP == bP)) | |
596 | + | then if (bP) | |
591 | 597 | then $Tuple2(nil, true) | |
592 | 598 | else { | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
599 | + | let bu = ao(z) | |
600 | + | let bq = valueOrElse(getInteger(this, L(bM)), 0) | |
601 | + | let bI = valueOrElse(getInteger(this, H(z, bM)), 0) | |
602 | + | let bQ = if (if ((bq == 0)) | |
597 | 603 | then true | |
598 | - | else !( | |
604 | + | else !(bu)) | |
599 | 605 | then 0 | |
600 | - | else fraction( | |
601 | - | let | |
602 | - | if (( | |
606 | + | else fraction(bI, b, bq) | |
607 | + | let bR = invoke(ak, "modifyWeight", [an, bQ], nil) | |
608 | + | if ((bR == bR)) | |
603 | 609 | then { | |
604 | - | let | |
610 | + | let bS = if (if (bu) | |
605 | 611 | then true | |
606 | - | else | |
612 | + | else bL) | |
607 | 613 | then nil | |
608 | - | else ([DeleteEntry(y(z))] ++ | |
609 | - | $Tuple2(([IntegerEntry(J(z, | |
614 | + | else ([DeleteEntry(y(z))] ++ aH(aq, bA)) | |
615 | + | $Tuple2(([IntegerEntry(J(z, bM), bQ)] ++ bS), false) | |
610 | 616 | } | |
611 | 617 | else throw("Strict value is not equal to itself.") | |
612 | 618 | } | |
613 | 619 | else throw("Strict value is not equal to itself.") | |
614 | 620 | } | |
615 | 621 | else throw("Strict value is not equal to itself.") | |
616 | 622 | } | |
617 | 623 | else throw("Strict value is not equal to itself.") | |
618 | 624 | } | |
619 | 625 | ||
620 | 626 | ||
621 | 627 | ||
622 | - | @Callable( | |
628 | + | @Callable(aP) | |
623 | 629 | func finalizeHelper () = { | |
624 | - | let | |
630 | + | let bL = valueOrElse(getBoolean(v), false) | |
625 | 631 | let i = valueOrElse(getInteger(this, j), 0) | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | if (if (if ((height >= | |
632 | - | then ( | |
632 | + | let bT = (i - 1) | |
633 | + | let bk = Y(this, w(i)) | |
634 | + | let be = Y(this, f) | |
635 | + | let bl = (bk + be) | |
636 | + | let bm = getInteger(this, p) | |
637 | + | if (if (if ((height >= bl)) | |
638 | + | then (bm == unit) | |
633 | 639 | else false) | |
634 | - | then !( | |
640 | + | then !(bL) | |
635 | 641 | else false) | |
636 | 642 | then { | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | if ($isInstanceOf( | |
643 | + | let bU = (i + 1) | |
644 | + | let bV = getInteger(this, g) | |
645 | + | let bW = { | |
646 | + | let T = bV | |
647 | + | if ($isInstanceOf(T, "Int")) | |
642 | 648 | then { | |
643 | - | let | |
644 | - | [IntegerEntry(f, | |
649 | + | let by = T | |
650 | + | [IntegerEntry(f, by), DeleteEntry(g)] | |
645 | 651 | } | |
646 | - | else if ($isInstanceOf( | |
652 | + | else if ($isInstanceOf(T, "Unit")) | |
647 | 653 | then nil | |
648 | 654 | else throw("Match error") | |
649 | 655 | } | |
650 | - | $Tuple2(([IntegerEntry(w( | |
656 | + | $Tuple2(([IntegerEntry(w(bU), height), IntegerEntry(s, height), IntegerEntry(j, bU), IntegerEntry(p, d), IntegerEntry(h(i), be)] ++ bW), true) | |
651 | 657 | } | |
652 | - | else if (if ( | |
653 | - | then ( | |
658 | + | else if (if (bL) | |
659 | + | then (bm == unit) | |
654 | 660 | else false) | |
655 | 661 | then $Tuple2([IntegerEntry(p, e)], true) | |
656 | - | else if (( | |
662 | + | else if ((bm == unit)) | |
657 | 663 | then $Tuple2(nil, false) | |
658 | - | else if (( | |
664 | + | else if ((bm == d)) | |
659 | 665 | then { | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | if ($isInstanceOf( | |
666 | + | let bX = getString(q) | |
667 | + | let bY = getString(r) | |
668 | + | let T = bX | |
669 | + | if ($isInstanceOf(T, "Unit")) | |
664 | 670 | then { | |
665 | - | let | |
666 | - | if ($isInstanceOf( | |
671 | + | let bZ = getString(at(aq)) | |
672 | + | if ($isInstanceOf(bZ, "Unit")) | |
667 | 673 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
668 | - | else if ($isInstanceOf( | |
674 | + | else if ($isInstanceOf(bZ, "String")) | |
669 | 675 | then { | |
670 | - | let | |
671 | - | $Tuple2([StringEntry(q, | |
676 | + | let ca = bZ | |
677 | + | $Tuple2([StringEntry(q, ca)], true) | |
672 | 678 | } | |
673 | 679 | else throw("Match error") | |
674 | 680 | } | |
675 | - | else if ($isInstanceOf( | |
681 | + | else if ($isInstanceOf(T, "String")) | |
676 | 682 | then { | |
677 | - | let | |
678 | - | let z = | |
679 | - | let | |
680 | - | let | |
681 | - | if ($isInstanceOf( | |
682 | - | then getString( | |
683 | - | else if ($isInstanceOf( | |
683 | + | let bA = T | |
684 | + | let z = aa(bA) | |
685 | + | let cb = { | |
686 | + | let bZ = bY | |
687 | + | if ($isInstanceOf(bZ, "Unit")) | |
688 | + | then getString(at(ar(z))) | |
689 | + | else if ($isInstanceOf(bZ, "String")) | |
684 | 690 | then { | |
685 | - | let | |
686 | - | let | |
687 | - | if (( | |
691 | + | let cc = bZ | |
692 | + | let cd = getString(az(ar(z), cc)) | |
693 | + | if ((cd == cd)) | |
688 | 694 | then { | |
689 | - | let | |
690 | - | if (( | |
691 | - | then | |
695 | + | let ce = invoke(this, "processVoteINTERNAL", [bA, cc], nil) | |
696 | + | if ((ce == ce)) | |
697 | + | then cd | |
692 | 698 | else throw("Strict value is not equal to itself.") | |
693 | 699 | } | |
694 | 700 | else throw("Strict value is not equal to itself.") | |
695 | 701 | } | |
696 | 702 | else throw("Match error") | |
697 | 703 | } | |
698 | - | let | |
699 | - | if ($isInstanceOf( | |
704 | + | let bZ = cb | |
705 | + | if ($isInstanceOf(bZ, "Unit")) | |
700 | 706 | then { | |
701 | - | let | |
702 | - | let | |
703 | - | if ($isInstanceOf( | |
707 | + | let cf = getString(az(aq, bA)) | |
708 | + | let cg = cf | |
709 | + | if ($isInstanceOf(cg, "Unit")) | |
704 | 710 | then $Tuple2([IntegerEntry(p, e), DeleteEntry(q), DeleteEntry(r)], true) | |
705 | - | else if ($isInstanceOf( | |
711 | + | else if ($isInstanceOf(cg, "String")) | |
706 | 712 | then { | |
707 | - | let | |
708 | - | $Tuple2([StringEntry(q, | |
713 | + | let aL = cg | |
714 | + | $Tuple2([StringEntry(q, aL), DeleteEntry(r)], true) | |
709 | 715 | } | |
710 | 716 | else throw("Match error") | |
711 | 717 | } | |
712 | - | else if ($isInstanceOf( | |
718 | + | else if ($isInstanceOf(bZ, "String")) | |
713 | 719 | then { | |
714 | - | let | |
715 | - | $Tuple2([StringEntry(r, | |
720 | + | let ch = bZ | |
721 | + | $Tuple2([StringEntry(r, ch)], true) | |
716 | 722 | } | |
717 | 723 | else throw("Match error") | |
718 | 724 | } | |
719 | 725 | else throw("Match error") | |
720 | 726 | } | |
721 | - | else if (( | |
727 | + | else if ((bm == e)) | |
722 | 728 | then { | |
723 | - | let | |
724 | - | let | |
725 | - | if ($isInstanceOf( | |
729 | + | let bX = getString(q) | |
730 | + | let T = bX | |
731 | + | if ($isInstanceOf(T, "Unit")) | |
726 | 732 | then { | |
727 | - | let | |
728 | - | if ($isInstanceOf( | |
733 | + | let bZ = getString(at(aq)) | |
734 | + | if ($isInstanceOf(bZ, "Unit")) | |
729 | 735 | then { | |
730 | - | let | |
736 | + | let bK = if (bL) | |
731 | 737 | then [DeleteEntry(p), DeleteEntry(v)] | |
732 | - | else [DeleteEntry(p), BooleanEntry(x( | |
733 | - | $Tuple2( | |
738 | + | else [DeleteEntry(p), BooleanEntry(x(bT), true), IntegerEntry(t, i), IntegerEntry(u, bk)] | |
739 | + | $Tuple2(bK, true) | |
734 | 740 | } | |
735 | - | else if ($isInstanceOf( | |
741 | + | else if ($isInstanceOf(bZ, "String")) | |
736 | 742 | then { | |
737 | - | let | |
738 | - | $Tuple2([StringEntry(q, | |
743 | + | let ci = bZ | |
744 | + | $Tuple2([StringEntry(q, ci)], true) | |
739 | 745 | } | |
740 | 746 | else throw("Match error") | |
741 | 747 | } | |
742 | - | else if ($isInstanceOf( | |
748 | + | else if ($isInstanceOf(T, "String")) | |
743 | 749 | then { | |
744 | - | let | |
745 | - | let | |
746 | - | if (( | |
750 | + | let bA = T | |
751 | + | let cf = getString(az(aq, bA)) | |
752 | + | if ((cf == cf)) | |
747 | 753 | then { | |
748 | - | let | |
749 | - | let | |
750 | - | if ($isInstanceOf( | |
751 | - | then | |
752 | - | else throw(($getType( | |
754 | + | let bP = { | |
755 | + | let X = invoke(this, "processPoolINTERNAL", [bA, bL], nil) | |
756 | + | if ($isInstanceOf(X, "Boolean")) | |
757 | + | then X | |
758 | + | else throw(($getType(X) + " couldn't be cast to Boolean")) | |
753 | 759 | } | |
754 | - | if (( | |
755 | - | then if ( | |
760 | + | if ((bP == bP)) | |
761 | + | then if (bP) | |
756 | 762 | then $Tuple2(nil, true) | |
757 | 763 | else { | |
758 | - | let | |
759 | - | if ($isInstanceOf( | |
764 | + | let bZ = cf | |
765 | + | if ($isInstanceOf(bZ, "Unit")) | |
760 | 766 | then { | |
761 | - | let | |
767 | + | let bK = if (bL) | |
762 | 768 | then [DeleteEntry(p), DeleteEntry(v), DeleteEntry(q)] | |
763 | - | else [DeleteEntry(p), BooleanEntry(x( | |
764 | - | $Tuple2( | |
769 | + | else [DeleteEntry(p), BooleanEntry(x(bT), true), IntegerEntry(t, i), IntegerEntry(u, bk), DeleteEntry(q)] | |
770 | + | $Tuple2(bK, true) | |
765 | 771 | } | |
766 | - | else if ($isInstanceOf( | |
772 | + | else if ($isInstanceOf(bZ, "String")) | |
767 | 773 | then { | |
768 | - | let | |
769 | - | $Tuple2([StringEntry(q, | |
774 | + | let ci = bZ | |
775 | + | $Tuple2([StringEntry(q, ci)], true) | |
770 | 776 | } | |
771 | 777 | else throw("Match error") | |
772 | 778 | } | |
773 | 779 | else throw("Strict value is not equal to itself.") | |
774 | 780 | } | |
775 | 781 | else throw("Strict value is not equal to itself.") | |
776 | 782 | } | |
777 | 783 | else throw("Match error") | |
778 | 784 | } | |
779 | 785 | else throw("finalization is broken") | |
780 | 786 | } | |
781 | 787 | ||
782 | 788 | ||
783 | 789 | ||
784 | - | @Callable( | |
785 | - | func finalizeWrapper ( | |
786 | - | let | |
787 | - | let | |
788 | - | if ($isInstanceOf( | |
789 | - | then | |
790 | - | else throw(($getType( | |
790 | + | @Callable(aP) | |
791 | + | func finalizeWrapper (cj) = { | |
792 | + | let ck = { | |
793 | + | let X = invoke(this, "finalizeHelper", nil, nil) | |
794 | + | if ($isInstanceOf(X, "Boolean")) | |
795 | + | then X | |
796 | + | else throw(($getType(X) + " couldn't be cast to Boolean")) | |
791 | 797 | } | |
792 | - | if (( | |
793 | - | then if (!( | |
794 | - | then if (( | |
798 | + | if ((ck == ck)) | |
799 | + | then if (!(ck)) | |
800 | + | then if ((cj == 0)) | |
795 | 801 | then throw("Current voting is not over yet") | |
796 | 802 | else $Tuple2(nil, unit) | |
797 | 803 | else { | |
798 | - | let | |
799 | - | if (( | |
804 | + | let cl = valueOrElse(getInteger(this, k), c) | |
805 | + | if ((cl > cj)) | |
800 | 806 | then { | |
801 | - | let | |
802 | - | if (( | |
807 | + | let cm = invoke(this, "finalizeWrapper", [(cj + 1)], nil) | |
808 | + | if ((cm == cm)) | |
803 | 809 | then $Tuple2(nil, unit) | |
804 | 810 | else throw("Strict value is not equal to itself.") | |
805 | 811 | } | |
806 | 812 | else $Tuple2(nil, unit) | |
807 | 813 | } | |
808 | 814 | else throw("Strict value is not equal to itself.") | |
809 | 815 | } | |
810 | 816 | ||
811 | 817 | ||
812 | 818 | ||
813 | - | @Callable( | |
819 | + | @Callable(aP) | |
814 | 820 | func finalize () = { | |
815 | - | let | |
816 | - | if (( | |
821 | + | let cm = invoke(this, "finalizeWrapper", [0], nil) | |
822 | + | if ((cm == cm)) | |
817 | 823 | then $Tuple2(nil, unit) | |
818 | 824 | else throw("Strict value is not equal to itself.") | |
819 | 825 | } | |
820 | 826 | ||
821 | 827 | ||
822 | 828 | ||
823 | - | @Callable( | |
824 | - | func containsNodeREADONLY ( | |
829 | + | @Callable(aP) | |
830 | + | func containsNodeREADONLY (au,ay) = $Tuple2(nil, aA(au, ay)) | |
825 | 831 | ||
826 | 832 | ||
827 | 833 | ||
828 | - | @Callable( | |
829 | - | func insertNode ( | |
830 | - | let | |
831 | - | if (( | |
832 | - | then $Tuple2( | |
834 | + | @Callable(aP) | |
835 | + | func insertNode (au,ay) = { | |
836 | + | let aT = aQ(aP) | |
837 | + | if ((aT == aT)) | |
838 | + | then $Tuple2(aE(au, ay), unit) | |
833 | 839 | else throw("Strict value is not equal to itself.") | |
834 | 840 | } | |
835 | 841 | ||
836 | 842 | ||
837 | 843 | ||
838 | - | @Callable( | |
839 | - | func deleteNode ( | |
840 | - | let | |
841 | - | if (( | |
842 | - | then $Tuple2( | |
844 | + | @Callable(aP) | |
845 | + | func deleteNode (au,ay) = { | |
846 | + | let aT = aQ(aP) | |
847 | + | if ((aT == aT)) | |
848 | + | then $Tuple2(aH(au, ay), unit) | |
843 | 849 | else throw("Strict value is not equal to itself.") | |
844 | 850 | } | |
845 | 851 | ||
846 | 852 | ||
847 | - | @Verifier(ck) | |
848 | - | func cl () = { | |
849 | - | let cm = { | |
850 | - | let Q = aH() | |
851 | - | if ($isInstanceOf(Q, "ByteVector")) | |
853 | + | ||
854 | + | @Callable(aP) | |
855 | + | func getVoteInfoREADONLY (cn,bw) = { | |
856 | + | let aY = addressFromStringValue(bw) | |
857 | + | let ak = addressFromStringValue(W(this, m)) | |
858 | + | let co = 4 | |
859 | + | let cp = 5 | |
860 | + | let cq = { | |
861 | + | let X = invoke(ak, "getPoolConfigByLpAssetId", [cn], nil) | |
862 | + | if ($isInstanceOf(X, "List[Any]")) | |
863 | + | then X | |
864 | + | else throw(($getType(X) + " couldn't be cast to List[Any]")) | |
865 | + | } | |
866 | + | let B = { | |
867 | + | let X = cq[co] | |
868 | + | if ($isInstanceOf(X, "String")) | |
869 | + | then X | |
870 | + | else throw(($getType(X) + " couldn't be cast to String")) | |
871 | + | } | |
872 | + | let C = { | |
873 | + | let X = cq[cp] | |
874 | + | if ($isInstanceOf(X, "String")) | |
875 | + | then X | |
876 | + | else throw(($getType(X) + " couldn't be cast to String")) | |
877 | + | } | |
878 | + | let cr = { | |
879 | + | let i = (value(getInteger(this, j)) - 1) | |
880 | + | if ((0 > i)) | |
881 | + | then O("invalid epoch") | |
882 | + | else i | |
883 | + | } | |
884 | + | let z = $Tuple2(B, C) | |
885 | + | let cs = valueOrElse(getInteger(this, F(z, aY, cr)), 0) | |
886 | + | let bp = valueOrElse(getInteger(this, H(z, cr)), 0) | |
887 | + | $Tuple2(nil, $Tuple2(cs, bp)) | |
888 | + | } | |
889 | + | ||
890 | + | ||
891 | + | @Verifier(ct) | |
892 | + | func cu () = { | |
893 | + | let cv = { | |
894 | + | let T = aK() | |
895 | + | if ($isInstanceOf(T, "ByteVector")) | |
852 | 896 | then { | |
853 | - | let | |
854 | - | | |
897 | + | let aR = T | |
898 | + | aR | |
855 | 899 | } | |
856 | - | else if ($isInstanceOf( | |
857 | - | then | |
900 | + | else if ($isInstanceOf(T, "Unit")) | |
901 | + | then ct.senderPublicKey | |
858 | 902 | else throw("Match error") | |
859 | 903 | } | |
860 | - | sigVerify( | |
904 | + | sigVerify(ct.bodyBytes, ct.proofs[0], cv) | |
861 | 905 | } | |
862 | 906 |
github/deemru/w8io/169f3d6 386.53 ms ◑