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