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