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