tx · KTryZkBiizn7FmoWa3HxgrzWHARH3brtXuWu8ijAznF 3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr: -0.02800000 Waves 2024.04.17 13:20 [3066620] smart account 3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr > SELF 0.00000000 Waves
{ "type": 13, "id": "KTryZkBiizn7FmoWa3HxgrzWHARH3brtXuWu8ijAznF", "fee": 2800000, "feeAssetId": null, "timestamp": 1713349251367, "version": 2, "chainId": 84, "sender": "3N9Zi6AcWcGbM23jQJ4fnzFsoHoTsxYDznr", "senderPublicKey": "GFbasS3jufhZkK4xR7tdTjjnP8K33KvJFEDHRtxXDkaJ", "proofs": [ "4SykNKhabRQCkjHbpSkYMXwETmyspdxF5A9jNa1eMHvSTcqDSbfmh5mRgyZm62RuenhD3V3dqBJisYiJnjrJRDgD" ], "script": "base64:BgLoHAgCEgQKAggBEgcKBQgICAgBEgQKAggIEgUKAwgIARIECgIICBIDCgEBEgMKAQESAwoBCBIECgIICBIECgIIBBIAEgMKAQESABIECgIICBIECgIICBIECgIICBIAEgQKAggIEgUKAwgIASIJc2VwYXJhdG9yIg5wb29sV2VpZ2h0TXVsdCIPbWF4RGVwdGhEZWZhdWx0IhlmaW5hbGl6YXRpb25TdGFnZUJhbGFuY2VzIhZmaW5hbGl6YXRpb25TdGFnZVRvdGFsIhdmaW5hbGl6YXRpb25TdGFnZVNoYXJlcyILd2F2ZXNTdHJpbmciDmtleUVwb2NoTGVuZ3RoIhFrZXlFcG9jaExlbmd0aE5ldyIVa2V5RXBvY2hMZW5ndGhCeUVwb2NoIgVlcG9jaCIPa2V5Q3VycmVudEVwb2NoIgtrZXlNYXhEZXB0aCIQa2V5UmVzdW1wdGlvbkZlZSIia2V5Vm90aW5nRW1pc3Npb25DYW5kaWRhdGVDb250cmFjdCIda2V5Vm90aW5nRW1pc3Npb25SYXRlQ29udHJhY3QiEmtleUZhY3RvcnlDb250cmFjdCITa2V5Qm9vc3RpbmdDb250c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huth8E4erWybLPu7ULFa7bpB7QgAw6YLn3amCMAga4 Next: BL3oJzDQxq8t8jLPudSUKH8mn4h5SHVfixt7y6njYRmi Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | ||
14 | 14 | let f = 2 | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = "WAVES" | |
17 | 17 | ||
18 | - | let h = makeString(["%s | |
18 | + | let h = makeString(["%s", "epochLength"], a) | |
19 | 19 | ||
20 | - | func i (j) = makeString(["%s%d", "epochLength", toString(j)], a) | |
20 | + | let i = makeString(["%s%s", "epochLength__new"], a) | |
21 | + | ||
22 | + | func j (k) = makeString(["%s%d", "epochLength", toString(k)], a) | |
21 | 23 | ||
22 | 24 | ||
23 | - | let | |
25 | + | let l = makeString(["%s", "currentEpoch"], a) | |
24 | 26 | ||
25 | - | let | |
27 | + | let m = makeString(["%s", "maxDepth"], a) | |
26 | 28 | ||
27 | - | let | |
29 | + | let n = makeString(["%s", "resumptionFee"], a) | |
28 | 30 | ||
29 | - | let | |
31 | + | let o = makeString(["%s", "votingEmissionCandidateContract"], a) | |
30 | 32 | ||
31 | - | let | |
33 | + | let p = makeString(["%s", "votingEmissionRateContract"], a) | |
32 | 34 | ||
33 | - | let | |
35 | + | let q = makeString(["%s", "factoryContract"], a) | |
34 | 36 | ||
35 | - | let | |
37 | + | let r = makeString(["%s", "boostingContract"], a) | |
36 | 38 | ||
37 | - | let | |
39 | + | let s = makeString(["%s", "stakingContract"], a) | |
38 | 40 | ||
39 | - | let | |
41 | + | let t = makeString(["%s", "assetsStoreContract"], a) | |
40 | 42 | ||
41 | - | let | |
43 | + | let u = makeString(["%s", "finalizationStage"], a) | |
42 | 44 | ||
43 | - | let | |
45 | + | let v = makeString(["%s", "nextPool"], a) | |
44 | 46 | ||
45 | - | let | |
47 | + | let w = makeString(["%s", "nextUser"], a) | |
46 | 48 | ||
47 | - | let | |
49 | + | let x = makeString(["%s", "startHeight"], a) | |
48 | 50 | ||
49 | - | let | |
51 | + | let y = makeString(["%s", "currentEpochUi"], a) | |
50 | 52 | ||
51 | - | let | |
53 | + | let z = makeString(["%s", "startHeightUi"], a) | |
52 | 54 | ||
53 | - | let | |
55 | + | let A = makeString(["%s", "force"], a) | |
54 | 56 | ||
55 | - | func | |
57 | + | func B () = "%s__allowedLpScriptHash" | |
56 | 58 | ||
57 | 59 | ||
58 | - | func | |
60 | + | func C () = "%s__allowedLpStableScriptHash" | |
59 | 61 | ||
60 | 62 | ||
61 | - | func C (D) = { | |
62 | - | let E = D | |
63 | - | let F = E._1 | |
64 | - | let G = E._2 | |
65 | - | makeString(["%s%s%s", "inList", F, G], a) | |
63 | + | func D (k) = makeString(["%s%d", "startHeight", toString(k)], a) | |
64 | + | ||
65 | + | ||
66 | + | func E (k) = makeString(["%s%d", "finalized", toString(k)], a) | |
67 | + | ||
68 | + | ||
69 | + | func F (G) = { | |
70 | + | let H = G | |
71 | + | let I = H._1 | |
72 | + | let J = H._2 | |
73 | + | makeString(["%s%s%s", "inList", I, J], a) | |
66 | 74 | } | |
67 | 75 | ||
68 | 76 | ||
69 | - | func | |
70 | - | let | |
71 | - | let | |
72 | - | let | |
73 | - | makeString(["%s%s%s%d", "insufficientBalances", | |
77 | + | func K (G,k) = { | |
78 | + | let L = G | |
79 | + | let I = L._1 | |
80 | + | let J = L._2 | |
81 | + | makeString(["%s%s%s%d", "insufficientBalances", I, J, toString(k)], a) | |
74 | 82 | } | |
75 | 83 | ||
76 | 84 | ||
77 | - | func | |
85 | + | func M (N,k) = makeString(["%s%s%d", "used", toString(N), toString(k)], a) | |
78 | 86 | ||
79 | 87 | ||
80 | - | func | |
81 | - | let | |
82 | - | let | |
83 | - | let | |
84 | - | makeString(["%s%s%s%s%d", "vote", | |
88 | + | func O (G,N,k) = { | |
89 | + | let P = G | |
90 | + | let I = P._1 | |
91 | + | let J = P._2 | |
92 | + | makeString(["%s%s%s%s%d", "vote", I, J, toString(N), toString(k)], a) | |
85 | 93 | } | |
86 | 94 | ||
87 | 95 | ||
88 | - | func | |
89 | - | let | |
90 | - | let | |
91 | - | let | |
92 | - | makeString(["%s%s%s%d", "votingResult", | |
96 | + | func Q (G,k) = { | |
97 | + | let R = G | |
98 | + | let I = R._1 | |
99 | + | let J = R._2 | |
100 | + | makeString(["%s%s%s%d", "votingResult", I, J, toString(k)], a) | |
93 | 101 | } | |
94 | 102 | ||
95 | 103 | ||
96 | - | func | |
104 | + | func S (T,k) = makeString(["%s%s%d", "votingResultStaked", T, toString(k)], a) | |
97 | 105 | ||
98 | 106 | ||
99 | - | func | |
100 | - | let | |
101 | - | let | |
102 | - | let | |
103 | - | makeString(["%s%s%s%d", "poolShare", | |
107 | + | func U (G,k) = { | |
108 | + | let V = G | |
109 | + | let I = V._1 | |
110 | + | let J = V._2 | |
111 | + | makeString(["%s%s%s%d", "poolShare", I, J, toString(k)], a) | |
104 | 112 | } | |
105 | 113 | ||
106 | 114 | ||
107 | - | func | |
115 | + | func W (k) = makeString(["%s%d", "totalVotes", toString(k)], a) | |
108 | 116 | ||
109 | 117 | ||
110 | - | func | |
118 | + | func X (T,Y) = makeString(["%s%s%s", "staked", Y, T], a) | |
111 | 119 | ||
112 | 120 | ||
113 | - | func | |
121 | + | func Z (aa) = makeString(["voting_emission.ride:", aa], " ") | |
114 | 122 | ||
115 | 123 | ||
116 | - | func | |
124 | + | func ab (aa) = throw(Z(aa)) | |
117 | 125 | ||
118 | 126 | ||
119 | - | func | |
120 | - | let | |
127 | + | func ac (N,ad,ae) = { | |
128 | + | let af = Z(makeString(["mandatory ", toString(N), ".", ad, " is not defined"], "")) | |
121 | 129 | valueOrErrorMessage({ | |
122 | - | let | |
123 | - | if ($isInstanceOf( | |
130 | + | let ag = ae | |
131 | + | if ($isInstanceOf(ag, "String")) | |
124 | 132 | then { | |
125 | - | let | |
126 | - | getString( | |
133 | + | let ah = ag | |
134 | + | getString(N, ad) | |
127 | 135 | } | |
128 | - | else if ($isInstanceOf( | |
136 | + | else if ($isInstanceOf(ag, "Int")) | |
129 | 137 | then { | |
130 | - | let | |
131 | - | getInteger( | |
138 | + | let ai = ag | |
139 | + | getInteger(N, ad) | |
132 | 140 | } | |
133 | - | else | |
134 | - | }, | |
141 | + | else ab("invalid entry type") | |
142 | + | }, af) | |
135 | 143 | } | |
136 | 144 | ||
137 | 145 | ||
138 | - | func | |
139 | - | let | |
140 | - | if ($isInstanceOf( | |
141 | - | then | |
142 | - | else throw(($getType( | |
146 | + | func aj (N,ad) = { | |
147 | + | let ak = ac(N, ad, "") | |
148 | + | if ($isInstanceOf(ak, "String")) | |
149 | + | then ak | |
150 | + | else throw(($getType(ak) + " couldn't be cast to String")) | |
143 | 151 | } | |
144 | 152 | ||
145 | 153 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ($isInstanceOf( | |
149 | - | then | |
150 | - | else throw(($getType( | |
154 | + | func al (N,ad) = { | |
155 | + | let ak = ac(N, ad, 0) | |
156 | + | if ($isInstanceOf(ak, "Int")) | |
157 | + | then ak | |
158 | + | else throw(($getType(ak) + " couldn't be cast to Int")) | |
151 | 159 | } | |
152 | 160 | ||
153 | 161 | ||
154 | - | func | |
162 | + | func am (G) = ((G._1 + a) + G._2) | |
155 | 163 | ||
156 | 164 | ||
157 | - | func | |
158 | - | let | |
159 | - | if ((size( | |
160 | - | then $Tuple2( | |
161 | - | else | |
165 | + | func an (ah) = { | |
166 | + | let ao = split(ah, a) | |
167 | + | if ((size(ao) == 2)) | |
168 | + | then $Tuple2(ao[0], ao[1]) | |
169 | + | else ab("invalid pool string") | |
162 | 170 | } | |
163 | 171 | ||
164 | 172 | ||
165 | - | let | |
173 | + | let ap = addressFromStringValue(aj(this, q)) | |
166 | 174 | ||
167 | - | let | |
175 | + | let aq = 10 | |
168 | 176 | ||
169 | - | func | |
177 | + | func ar () = "%s__factoryConfig" | |
170 | 178 | ||
171 | 179 | ||
172 | - | func | |
180 | + | func as (at) = split(aj(at, ar()), a) | |
173 | 181 | ||
174 | 182 | ||
175 | - | func | |
183 | + | func au (av) = addressFromStringValue(av[aq]) | |
176 | 184 | ||
177 | 185 | ||
178 | - | func at (F,G) = { | |
179 | - | let au = { | |
180 | - | let ah = invoke(am, "poolInfoREADONLY", [F, G], nil) | |
181 | - | if ($isInstanceOf(ah, "(Address, ByteVector)")) | |
182 | - | then ah | |
186 | + | func aw (ax) = if ((ax == g)) | |
187 | + | then unit | |
188 | + | else fromBase58String(ax) | |
189 | + | ||
190 | + | ||
191 | + | func ay (ax) = if ((ax == unit)) | |
192 | + | then g | |
193 | + | else toBase58String(value(ax)) | |
194 | + | ||
195 | + | ||
196 | + | func az (I,J) = { | |
197 | + | let aA = { | |
198 | + | let ak = invoke(ap, "poolInfoREADONLY", [I, J], nil) | |
199 | + | if ($isInstanceOf(ak, "(Address, ByteVector)")) | |
200 | + | then ak | |
183 | 201 | else unit | |
184 | 202 | } | |
185 | - | | |
203 | + | aA | |
186 | 204 | } | |
187 | 205 | ||
188 | 206 | ||
189 | - | func | |
190 | - | func | |
207 | + | func aB (I,J) = { | |
208 | + | func aC (aD) = ("%s%s%s__mappings__baseAsset2internalId__" + aD) | |
191 | 209 | ||
192 | - | func | |
210 | + | func aE (aF,aG) = (((("%d%d%s%s__" + toString(aF)) + "__") + toString(aG)) + "__mappings__poolAssets2PoolContract") | |
193 | 211 | ||
194 | - | func | |
212 | + | func aH (aI) = (("%s%s%s__" + aI) + "__mappings__poolContract2LpAsset") | |
195 | 213 | ||
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | | |
214 | + | let aJ = al(ap, aC(I)) | |
215 | + | let aK = al(ap, aC(J)) | |
216 | + | let aI = aj(ap, aE(aJ, aK)) | |
217 | + | let aL = aj(ap, aH(aI)) | |
218 | + | aL | |
201 | 219 | } | |
202 | 220 | ||
203 | 221 | ||
204 | - | func | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
210 | - | then | |
211 | - | else throw(($getType( | |
222 | + | func aM (G) = { | |
223 | + | let aN = G | |
224 | + | let I = aN._1 | |
225 | + | let J = aN._2 | |
226 | + | let ak = invoke(ap, "checkWxEmissionPoolLabel", [I, J], nil) | |
227 | + | if ($isInstanceOf(ak, "Boolean")) | |
228 | + | then ak | |
229 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
212 | 230 | } | |
213 | 231 | ||
214 | 232 | ||
215 | - | func | |
216 | - | let | |
217 | - | let | |
218 | - | invoke( | |
233 | + | func aO () = { | |
234 | + | let av = as(ap) | |
235 | + | let aP = au(av) | |
236 | + | invoke(aP, "deposit", nil, nil) | |
219 | 237 | } | |
220 | 238 | ||
221 | 239 | ||
222 | - | let | |
240 | + | let aQ = "pools" | |
223 | 241 | ||
224 | - | func | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | makeString(["votes", | |
242 | + | func aR (G) = { | |
243 | + | let aS = G | |
244 | + | let I = aS._1 | |
245 | + | let J = aS._2 | |
246 | + | makeString(["votes", I, J], a) | |
229 | 247 | } | |
230 | 248 | ||
231 | 249 | ||
232 | - | func | |
233 | - | let | |
250 | + | func aT (aU) = { | |
251 | + | let aV = if ((aU == aQ)) | |
234 | 252 | then "%s%s" | |
235 | 253 | else "%s%s%s%s" | |
236 | - | makeString([ | |
254 | + | makeString([aV, aU, "head"], a) | |
237 | 255 | } | |
238 | 256 | ||
239 | 257 | ||
240 | - | func | |
241 | - | let | |
258 | + | func aW (aU) = { | |
259 | + | let aV = if ((aU == aQ)) | |
242 | 260 | then "%s%s" | |
243 | 261 | else "%s%s%s%s" | |
244 | - | makeString([ | |
262 | + | makeString([aV, aU, "size"], a) | |
245 | 263 | } | |
246 | 264 | ||
247 | 265 | ||
248 | - | func | |
249 | - | let | |
266 | + | func aX (aU,aY) = { | |
267 | + | let aV = if ((aU == aQ)) | |
250 | 268 | then "%s%s%s%s" | |
251 | 269 | else "%s%s%s%s%s" | |
252 | - | makeString([ | |
270 | + | makeString([aV, aU, aY, "prev"], a) | |
253 | 271 | } | |
254 | 272 | ||
255 | 273 | ||
256 | - | func | |
257 | - | let | |
274 | + | func aZ (aU,aY) = { | |
275 | + | let aV = if ((aU == aQ)) | |
258 | 276 | then "%s%s%s%s" | |
259 | 277 | else "%s%s%s%s%s" | |
260 | - | makeString([ | |
278 | + | makeString([aV, aU, aY, "next"], a) | |
261 | 279 | } | |
262 | 280 | ||
263 | 281 | ||
264 | - | func | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | if (if (( | |
282 | + | func ba (aU,aY) = { | |
283 | + | let bb = getString(this, aT(aU)) | |
284 | + | let bc = getString(this, aX(aU, aY)) | |
285 | + | let bd = getString(this, aZ(aU, aY)) | |
286 | + | if (if ((aY == valueOrElse(bb, ""))) | |
269 | 287 | then true | |
270 | - | else ( | |
288 | + | else (bc != unit)) | |
271 | 289 | then true | |
272 | - | else ( | |
290 | + | else (bd != unit) | |
273 | 291 | } | |
274 | 292 | ||
275 | 293 | ||
276 | - | func | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
294 | + | func be (aU,aY) = { | |
295 | + | let bb = getString(this, aT(aU)) | |
296 | + | let bf = valueOrElse(getInteger(this, aW(aU)), 0) | |
297 | + | let bg = if (!(ba(aU, aY))) | |
280 | 298 | then true | |
281 | - | else | |
282 | - | if (( | |
283 | - | then (([IntegerEntry( | |
284 | - | then [StringEntry( | |
285 | - | else nil)) ++ [StringEntry( | |
299 | + | else ab("Node exists") | |
300 | + | if ((bg == bg)) | |
301 | + | then (([IntegerEntry(aW(aU), (bf + 1))] ++ (if ((bb != unit)) | |
302 | + | then [StringEntry(aZ(aU, aY), value(bb)), StringEntry(aX(aU, value(bb)), aY)] | |
303 | + | else nil)) ++ [StringEntry(aT(aU), aY)]) | |
286 | 304 | else throw("Strict value is not equal to itself.") | |
287 | 305 | } | |
288 | 306 | ||
289 | 307 | ||
290 | - | func | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | ([IntegerEntry( | |
296 | - | then ( | |
308 | + | func bh (aU,aY) = { | |
309 | + | let bb = getString(this, aT(aU)) | |
310 | + | let bf = valueOrElse(getInteger(this, aW(aU)), 0) | |
311 | + | let bc = getString(this, aX(aU, aY)) | |
312 | + | let bd = getString(this, aZ(aU, aY)) | |
313 | + | ([IntegerEntry(aW(aU), (bf - 1))] ++ (if (if ((bc != unit)) | |
314 | + | then (bd != unit) | |
297 | 315 | else false) | |
298 | - | then [StringEntry( | |
299 | - | else if (( | |
300 | - | then [StringEntry( | |
301 | - | else if (( | |
302 | - | then [DeleteEntry( | |
303 | - | else if (( | |
304 | - | then [DeleteEntry( | |
305 | - | else | |
316 | + | then [StringEntry(aZ(aU, value(bc)), value(bd)), StringEntry(aX(aU, value(bd)), value(bc)), DeleteEntry(aX(aU, aY)), DeleteEntry(aZ(aU, aY))] | |
317 | + | else if ((bd != unit)) | |
318 | + | then [StringEntry(aT(aU), value(bd)), DeleteEntry(aZ(aU, aY)), DeleteEntry(aX(aU, value(bd)))] | |
319 | + | else if ((bc != unit)) | |
320 | + | then [DeleteEntry(aX(aU, aY)), DeleteEntry(aZ(aU, value(bc)))] | |
321 | + | else if ((aY == valueOrElse(bb, ""))) | |
322 | + | then [DeleteEntry(aT(aU))] | |
323 | + | else ab(((("invalid node: " + aU) + ".") + aY)))) | |
306 | 324 | } | |
307 | 325 | ||
308 | 326 | ||
309 | - | func | |
327 | + | func bi () = "%s__managerVaultAddress" | |
310 | 328 | ||
311 | 329 | ||
312 | - | func | |
330 | + | func bj () = "%s__managerPublicKey" | |
313 | 331 | ||
314 | 332 | ||
315 | - | func | |
316 | - | let | |
317 | - | if ($isInstanceOf( | |
333 | + | func bk () = { | |
334 | + | let ag = getString(bi()) | |
335 | + | if ($isInstanceOf(ag, "String")) | |
318 | 336 | then { | |
319 | - | let | |
320 | - | addressFromStringValue( | |
337 | + | let bl = ag | |
338 | + | addressFromStringValue(bl) | |
321 | 339 | } | |
322 | 340 | else this | |
323 | 341 | } | |
324 | 342 | ||
325 | 343 | ||
326 | - | func | |
327 | - | let | |
328 | - | let | |
329 | - | if ($isInstanceOf( | |
344 | + | func bm () = { | |
345 | + | let bn = bk() | |
346 | + | let ag = getString(bn, bj()) | |
347 | + | if ($isInstanceOf(ag, "String")) | |
330 | 348 | then { | |
331 | - | let | |
332 | - | fromBase58String( | |
349 | + | let bl = ag | |
350 | + | fromBase58String(bl) | |
333 | 351 | } | |
334 | - | else if ($isInstanceOf( | |
352 | + | else if ($isInstanceOf(ag, "Unit")) | |
335 | 353 | then unit | |
336 | 354 | else throw("Match error") | |
337 | 355 | } | |
338 | 356 | ||
339 | 357 | ||
340 | - | func | |
341 | - | let | |
342 | - | if ($isInstanceOf( | |
358 | + | func bo (bp) = { | |
359 | + | let ag = bm() | |
360 | + | if ($isInstanceOf(ag, "ByteVector")) | |
343 | 361 | then { | |
344 | - | let | |
345 | - | ( | |
362 | + | let bq = ag | |
363 | + | (bp.callerPublicKey == bq) | |
346 | 364 | } | |
347 | - | else if ($isInstanceOf( | |
348 | - | then ( | |
365 | + | else if ($isInstanceOf(ag, "Unit")) | |
366 | + | then (bp.caller == this) | |
349 | 367 | else throw("Match error") | |
350 | 368 | } | |
351 | 369 | ||
352 | 370 | ||
353 | - | func | |
371 | + | func br (bp) = if (bo(bp)) | |
354 | 372 | then true | |
355 | 373 | else throw("permission denied") | |
356 | 374 | ||
357 | 375 | ||
358 | - | func | |
376 | + | func bs (bp) = if ((bp.caller == this)) | |
359 | 377 | then true | |
360 | 378 | else throw("permission denied") | |
361 | 379 | ||
362 | 380 | ||
363 | - | @Callable( | |
364 | - | func getUserGwxAmountAtHeight ( | |
365 | - | let | |
381 | + | @Callable(bp) | |
382 | + | func getUserGwxAmountAtHeight (bt,bu) = { | |
383 | + | let bv = valueOrErrorMessage(addressFromString(aj(this, r)), Z("invalid boosting contract address")) | |
366 | 384 | $Tuple2(nil, { | |
367 | - | let | |
368 | - | if ($isInstanceOf( | |
369 | - | then | |
370 | - | else throw(($getType( | |
385 | + | let ak = invoke(bv, "getUserGwxAmountAtHeightREADONLY", [bt, bu], nil) | |
386 | + | if ($isInstanceOf(ak, "Int")) | |
387 | + | then ak | |
388 | + | else throw(($getType(ak) + " couldn't be cast to Int")) | |
371 | 389 | }) | |
372 | 390 | } | |
373 | 391 | ||
374 | 392 | ||
375 | 393 | ||
376 | - | @Callable( | |
377 | - | func constructor ( | |
378 | - | let | |
394 | + | @Callable(bp) | |
395 | + | func constructor (ap,bw,bx,by,bz) = { | |
396 | + | let bA = [br(bp), if ((addressFromString(ap) != unit)) | |
379 | 397 | then true | |
380 | - | else "invalid factory contract address", if ((addressFromString( | |
398 | + | else "invalid factory contract address", if ((addressFromString(bw) != unit)) | |
381 | 399 | then true | |
382 | - | else "invalid voting emission candidate contract address", if ((addressFromString( | |
400 | + | else "invalid voting emission candidate contract address", if ((addressFromString(bx) != unit)) | |
383 | 401 | then true | |
384 | - | else "invalid boosting contract address", if ((addressFromString( | |
402 | + | else "invalid boosting contract address", if ((addressFromString(by) != unit)) | |
385 | 403 | then true | |
386 | - | else "invalid staking contract address", if (( | |
404 | + | else "invalid staking contract address", if ((bz > 0)) | |
387 | 405 | then true | |
388 | - | else | |
389 | - | if (( | |
390 | - | then $Tuple2([StringEntry( | |
406 | + | else ab("invalid epoch length")] | |
407 | + | if ((bA == bA)) | |
408 | + | then $Tuple2([StringEntry(q, ap), StringEntry(o, bw), StringEntry(r, bx), StringEntry(s, by), IntegerEntry(h, bz)], unit) | |
391 | 409 | else throw("Strict value is not equal to itself.") | |
392 | 410 | } | |
393 | 411 | ||
394 | 412 | ||
395 | 413 | ||
396 | - | @Callable( | |
397 | - | func create ( | |
398 | - | let | |
414 | + | @Callable(bp) | |
415 | + | func create (I,J) = { | |
416 | + | let bA = [if ((toBase58String(bp.caller.bytes) == valueOrElse(getString(this, o), ""))) | |
399 | 417 | then true | |
400 | - | else | |
401 | - | if (( | |
418 | + | else br(bp)] | |
419 | + | if ((bA == bA)) | |
402 | 420 | then { | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
421 | + | let G = $Tuple2(I, J) | |
422 | + | let bB = ([BooleanEntry(F(G), true)] ++ be(aQ, am(G))) | |
423 | + | let bC = (getInteger(this, l) == unit) | |
424 | + | let bD = if (bC) | |
407 | 425 | then { | |
408 | - | let | |
409 | - | [IntegerEntry( | |
426 | + | let k = 0 | |
427 | + | [IntegerEntry(l, k), IntegerEntry(D(k), height), IntegerEntry(x, height), IntegerEntry(y, k), IntegerEntry(z, height)] | |
410 | 428 | } | |
411 | 429 | else nil | |
412 | - | $Tuple2(( | |
430 | + | $Tuple2((bB ++ bD), unit) | |
413 | 431 | } | |
414 | 432 | else throw("Strict value is not equal to itself.") | |
415 | 433 | } | |
416 | 434 | ||
417 | 435 | ||
418 | 436 | ||
419 | - | @Callable( | |
420 | - | func vote ( | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | if ($isInstanceOf( | |
434 | - | then | |
435 | - | else throw(($getType( | |
437 | + | @Callable(bp) | |
438 | + | func vote (I,J,bE) = { | |
439 | + | let G = $Tuple2(I, J) | |
440 | + | let k = valueOrElse(getInteger(this, l), 0) | |
441 | + | let bF = al(this, D(k)) | |
442 | + | let bz = al(this, h) | |
443 | + | let bG = (bF + bz) | |
444 | + | let bH = getInteger(this, u) | |
445 | + | let bI = valueOrElse(getInteger(this, M(bp.caller, k)), 0) | |
446 | + | let bJ = valueOrElse(getInteger(this, O(G, bp.caller, k)), 0) | |
447 | + | let bK = valueOrElse(getInteger(this, Q(G, k)), 0) | |
448 | + | let bL = valueOrElse(getInteger(this, W(k)), 0) | |
449 | + | let bM = { | |
450 | + | let ak = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(bp.caller.bytes), bG], nil) | |
451 | + | if ($isInstanceOf(ak, "Int")) | |
452 | + | then ak | |
453 | + | else throw(($getType(ak) + " couldn't be cast to Int")) | |
436 | 454 | } | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
455 | + | let bN = (bM - bI) | |
456 | + | let bO = (bJ + bE) | |
457 | + | let bP = aM(G) | |
458 | + | let bA = [if ((getBoolean(F(G)) != unit)) | |
441 | 459 | then true | |
442 | - | else | |
460 | + | else ab("invalid assets"), if ((bG > height)) | |
443 | 461 | then true | |
444 | - | else | |
462 | + | else ab("invalid height"), if ((bH == unit)) | |
445 | 463 | then true | |
446 | - | else | |
464 | + | else ab("finalization in progress"), if ((bM > 0)) | |
447 | 465 | then true | |
448 | - | else | |
449 | - | then ( | |
466 | + | else ab("you do not have gWX"), if (if ((bE > 0)) | |
467 | + | then (bN >= bE) | |
450 | 468 | else false) | |
451 | 469 | then true | |
452 | - | else | |
470 | + | else ab("invalid amount"), if (bP) | |
453 | 471 | then true | |
454 | - | else | |
455 | - | if (( | |
472 | + | else ab("pool hasn't WX_EMISSION label")] | |
473 | + | if ((bA == bA)) | |
456 | 474 | then { | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
475 | + | let bQ = aR(G) | |
476 | + | let Y = toString(bp.caller) | |
477 | + | let bR = if (ba(bQ, Y)) | |
460 | 478 | then nil | |
461 | - | else | |
462 | - | $Tuple2(([IntegerEntry( | |
479 | + | else be(bQ, Y) | |
480 | + | $Tuple2(([IntegerEntry(M(bp.caller, k), (bI + bE)), IntegerEntry(O(G, bp.caller, k), bO), IntegerEntry(Q(G, k), (bK + bE)), IntegerEntry(W(k), (bL + bE))] ++ bR), unit) | |
463 | 481 | } | |
464 | 482 | else throw("Strict value is not equal to itself.") | |
465 | 483 | } | |
466 | 484 | ||
467 | 485 | ||
468 | 486 | ||
469 | - | @Callable( | |
470 | - | func cancelVote ( | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
487 | + | @Callable(bp) | |
488 | + | func cancelVote (I,J) = { | |
489 | + | let G = $Tuple2(I, J) | |
490 | + | let k = valueOrElse(getInteger(this, l), 0) | |
491 | + | let bF = al(this, D(k)) | |
492 | + | let bz = al(this, h) | |
493 | + | let bG = (bF + bz) | |
494 | + | let bH = getInteger(this, u) | |
495 | + | let bI = valueOrElse(getInteger(this, M(bp.caller, k)), 0) | |
496 | + | let bJ = valueOrElse(getInteger(this, O(G, bp.caller, k)), 0) | |
497 | + | let bK = valueOrElse(getInteger(this, Q(G, k)), 0) | |
498 | + | let bL = valueOrElse(getInteger(this, W(k)), 0) | |
499 | + | let bA = [if ((getBoolean(F(G)) != unit)) | |
482 | 500 | then true | |
483 | - | else | |
501 | + | else ab("invalid assets"), if ((bG > height)) | |
484 | 502 | then true | |
485 | - | else | |
503 | + | else ab("invalid height"), if ((bH == unit)) | |
486 | 504 | then true | |
487 | - | else | |
505 | + | else ab("finalization in progress"), if ((bJ > 0)) | |
488 | 506 | then true | |
489 | - | else | |
490 | - | if (( | |
507 | + | else ab("no vote")] | |
508 | + | if ((bA == bA)) | |
491 | 509 | then { | |
492 | - | let | |
493 | - | let | |
494 | - | $Tuple2(([IntegerEntry( | |
510 | + | let bQ = aR(G) | |
511 | + | let Y = toString(bp.caller) | |
512 | + | $Tuple2(([IntegerEntry(M(bp.caller, k), max([(bI - bJ), 0])), DeleteEntry(O(G, bp.caller, k)), IntegerEntry(Q(G, k), (bK - bJ)), IntegerEntry(W(k), (bL - bJ))] ++ bh(bQ, Y)), unit) | |
495 | 513 | } | |
496 | 514 | else throw("Strict value is not equal to itself.") | |
497 | 515 | } | |
498 | 516 | ||
499 | 517 | ||
500 | 518 | ||
501 | - | @Callable( | |
502 | - | func setEpochLength ( | |
503 | - | let | |
519 | + | @Callable(bp) | |
520 | + | func setEpochLength (bS) = { | |
521 | + | let bA = [br(bp), if ((bS > 0)) | |
504 | 522 | then true | |
505 | - | else | |
506 | - | if (( | |
507 | - | then $Tuple2([IntegerEntry( | |
523 | + | else ab("invalid epoch length")] | |
524 | + | if ((bA == bA)) | |
525 | + | then $Tuple2([IntegerEntry(i, bS)], unit) | |
508 | 526 | else throw("Strict value is not equal to itself.") | |
509 | 527 | } | |
510 | 528 | ||
511 | 529 | ||
512 | 530 | ||
513 | - | @Callable( | |
514 | - | func setMaxDepth ( | |
515 | - | let | |
531 | + | @Callable(bp) | |
532 | + | func setMaxDepth (bT) = { | |
533 | + | let bA = [br(bp), if ((bT > 0)) | |
516 | 534 | then true | |
517 | - | else | |
518 | - | if (( | |
519 | - | then $Tuple2([IntegerEntry( | |
535 | + | else ab("invalid max depth")] | |
536 | + | if ((bA == bA)) | |
537 | + | then $Tuple2([IntegerEntry(m, bT)], unit) | |
520 | 538 | else throw("Strict value is not equal to itself.") | |
521 | 539 | } | |
522 | 540 | ||
523 | 541 | ||
524 | 542 | ||
525 | - | @Callable( | |
526 | - | func processPoolBalanceINTERNAL ( | |
527 | - | let | |
528 | - | if (( | |
543 | + | @Callable(bp) | |
544 | + | func processPoolBalanceINTERNAL (bU) = { | |
545 | + | let bV = bs(bp) | |
546 | + | if ((bV == bV)) | |
529 | 547 | then { | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | if ($isInstanceOf( | |
540 | - | then | |
541 | - | else throw(($getType( | |
548 | + | let k = al(this, l) | |
549 | + | let bW = (k - 1) | |
550 | + | let G = an(bU) | |
551 | + | let bX = G | |
552 | + | let I = bX._1 | |
553 | + | let J = bX._2 | |
554 | + | let aL = aB(I, J) | |
555 | + | let bY = { | |
556 | + | let ak = invoke(ap, "checkBalance", [aL], nil) | |
557 | + | if ($isInstanceOf(ak, "Boolean")) | |
558 | + | then ak | |
559 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
542 | 560 | } | |
543 | - | let | |
544 | - | let | |
545 | - | then if (!( | |
561 | + | let bZ = !(valueOrElse(getBoolean(this, K(G, (bW - 1))), false)) | |
562 | + | let ca = if (!(bY)) | |
563 | + | then if (!(bZ)) | |
546 | 564 | then { | |
547 | - | let | |
548 | - | if (( | |
565 | + | let cb = invoke(ap, "deleteWxEmissionPoolLabel", [I, J], nil) | |
566 | + | if ((cb == cb)) | |
549 | 567 | then { | |
550 | - | let | |
551 | - | if (( | |
568 | + | let cc = invoke(ap, "modifyWeight", [aL, 0], nil) | |
569 | + | if ((cc == cc)) | |
552 | 570 | then { | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | if (( | |
571 | + | let cd = valueOrErrorMessage(az(I, J), Z("invalid assets"))._1 | |
572 | + | let ce = 3 | |
573 | + | let cf = invoke(ap, "managePool", [toString(cd), ce], nil) | |
574 | + | if ((cf == cf)) | |
557 | 575 | then { | |
558 | - | let | |
559 | - | ([IntegerEntry( | |
576 | + | let cg = ([DeleteEntry(F(G))] ++ bh(aQ, am(G))) | |
577 | + | ([IntegerEntry(U(G, bW), 0)] ++ cg) | |
560 | 578 | } | |
561 | 579 | else throw("Strict value is not equal to itself.") | |
562 | 580 | } | |
564 | 582 | } | |
565 | 583 | else throw("Strict value is not equal to itself.") | |
566 | 584 | } | |
567 | - | else [BooleanEntry( | |
585 | + | else [BooleanEntry(K(G, bW), true)] | |
568 | 586 | else nil | |
569 | - | $Tuple2( | |
587 | + | $Tuple2(ca, unit) | |
570 | 588 | } | |
571 | 589 | else throw("Strict value is not equal to itself.") | |
572 | 590 | } | |
573 | 591 | ||
574 | 592 | ||
575 | 593 | ||
576 | - | @Callable( | |
577 | - | func processVoteINTERNAL ( | |
578 | - | let | |
579 | - | if (( | |
594 | + | @Callable(bp) | |
595 | + | func processVoteINTERNAL (bU,Y) = { | |
596 | + | let bV = bs(bp) | |
597 | + | if ((bV == bV)) | |
580 | 598 | then { | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
599 | + | let bt = valueOrErrorMessage(addressFromString(Y), Z(("processVoteINTERNAL: invalid user address " + Y))) | |
600 | + | let k = al(this, l) | |
601 | + | let bW = (k - 1) | |
602 | + | let bz = al(this, h) | |
603 | + | let bF = al(this, D(k)) | |
604 | + | let bG = (bF + bz) | |
605 | + | let ch = al(this, D(bW)) | |
606 | + | let ci = al(this, j(bW)) | |
607 | + | let cj = (ch + ci) | |
608 | + | let ck = if ((bW >= 0)) | |
591 | 609 | then true | |
592 | - | else | |
593 | - | if (( | |
610 | + | else ab("processVoteINTERNAL: invalid previous epoch") | |
611 | + | if ((ck == ck)) | |
594 | 612 | then { | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | if ($isInstanceOf( | |
602 | - | then | |
603 | - | else throw(($getType( | |
613 | + | let G = an(bU) | |
614 | + | let cl = G | |
615 | + | let I = cl._1 | |
616 | + | let J = cl._2 | |
617 | + | let bM = { | |
618 | + | let ak = invoke(this, "getUserGwxAmountAtHeight", [Y, bG], nil) | |
619 | + | if ($isInstanceOf(ak, "Int")) | |
620 | + | then ak | |
621 | + | else throw(($getType(ak) + " couldn't be cast to Int")) | |
604 | 622 | } | |
605 | - | let | |
606 | - | let | |
607 | - | if ($isInstanceOf( | |
608 | - | then | |
609 | - | else throw(($getType( | |
623 | + | let cm = { | |
624 | + | let ak = invoke(this, "getUserGwxAmountAtHeight", [Y, cj], nil) | |
625 | + | if ($isInstanceOf(ak, "Int")) | |
626 | + | then ak | |
627 | + | else throw(($getType(ak) + " couldn't be cast to Int")) | |
610 | 628 | } | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
629 | + | let bL = valueOrElse(getInteger(W(k)), 0) | |
630 | + | let cn = valueOrElse(getInteger(Q(G, k)), 0) | |
631 | + | let co = valueOrErrorMessage(getInteger(O(G, bt, bW)), Z((((("processVoteINTERNAL " + bU) + " ") + Y) + ": no previous vote"))) | |
632 | + | let bI = valueOrElse(getInteger(this, M(bt, k)), 0) | |
633 | + | let T = aB(I, J) | |
634 | + | let cp = valueOrElse(getInteger(S(T, bW)), 0) | |
635 | + | let by = addressFromStringValue(aj(this, s)) | |
636 | + | let cq = valueOrElse(getInteger(by, X(T, Y)), 0) | |
637 | + | let cr = if ((cq == 0)) | |
620 | 638 | then nil | |
621 | - | else [IntegerEntry( | |
622 | - | let | |
623 | - | let | |
624 | - | then fraction( | |
639 | + | else [IntegerEntry(S(T, bW), (cp + co))] | |
640 | + | let aL = aB(I, J) | |
641 | + | let bO = if ((cm > 0)) | |
642 | + | then fraction(co, bM, cm) | |
625 | 643 | else 0 | |
626 | - | let | |
627 | - | then [IntegerEntry( | |
628 | - | else | |
629 | - | $Tuple2(( | |
644 | + | let ca = if ((bO > 0)) | |
645 | + | then [IntegerEntry(O(G, bt, k), bO), IntegerEntry(W(k), (bL + bO)), IntegerEntry(Q(G, k), (cn + bO)), IntegerEntry(M(bt, k), (bI + bO))] | |
646 | + | else bh(aR(G), Y) | |
647 | + | $Tuple2((ca ++ cr), unit) | |
630 | 648 | } | |
631 | 649 | else throw("Strict value is not equal to itself.") | |
632 | 650 | } | |
635 | 653 | ||
636 | 654 | ||
637 | 655 | ||
638 | - | @Callable( | |
639 | - | func processPoolINTERNAL ( | |
640 | - | let | |
641 | - | if (( | |
656 | + | @Callable(bp) | |
657 | + | func processPoolINTERNAL (bU,cs) = { | |
658 | + | let bV = bs(bp) | |
659 | + | if ((bV == bV)) | |
642 | 660 | then { | |
643 | - | let | |
644 | - | let | |
645 | - | if ( | |
646 | - | then | |
647 | - | else ( | |
661 | + | let ct = { | |
662 | + | let cu = al(this, l) | |
663 | + | if (cs) | |
664 | + | then cu | |
665 | + | else (cu - 1) | |
648 | 666 | } | |
649 | - | let | |
667 | + | let ck = if ((ct >= 0)) | |
650 | 668 | then true | |
651 | - | else | |
652 | - | if (( | |
669 | + | else ab("processPoolINTERNAL: invalid target epoch") | |
670 | + | if ((ck == ck)) | |
653 | 671 | then { | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | if ($isInstanceOf( | |
663 | - | then | |
664 | - | else throw(($getType( | |
672 | + | let G = an(bU) | |
673 | + | let cv = G | |
674 | + | let I = cv._1 | |
675 | + | let J = cv._2 | |
676 | + | let by = addressFromStringValue(aj(this, s)) | |
677 | + | let aL = aB(I, J) | |
678 | + | let cw = { | |
679 | + | let ak = invoke(by, "usersListTraversal", [aL], nil) | |
680 | + | if ($isInstanceOf(ak, "Boolean")) | |
681 | + | then ak | |
682 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
665 | 683 | } | |
666 | - | if (( | |
667 | - | then if ( | |
684 | + | if ((cw == cw)) | |
685 | + | then if (cw) | |
668 | 686 | then $Tuple2(nil, true) | |
669 | 687 | else { | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
688 | + | let cx = addressFromStringValue(valueOrErrorMessage(getString(ap, t), "invalid assets store contract")) | |
689 | + | let bL = valueOrElse(getInteger(this, W(ct)), 0) | |
690 | + | let cn = valueOrElse(getInteger(this, Q(G, ct)), 0) | |
691 | + | let cy = if ((bL == 0)) | |
674 | 692 | then 0 | |
675 | - | else fraction( | |
676 | - | let | |
677 | - | if (( | |
678 | - | then $Tuple2([IntegerEntry( | |
693 | + | else fraction(cn, b, bL) | |
694 | + | let cc = invoke(ap, "modifyWeight", [aL, cy], nil) | |
695 | + | if ((cc == cc)) | |
696 | + | then $Tuple2([IntegerEntry(U(G, ct), cy)], false) | |
679 | 697 | else throw("Strict value is not equal to itself.") | |
680 | 698 | } | |
681 | 699 | else throw("Strict value is not equal to itself.") | |
687 | 705 | ||
688 | 706 | ||
689 | 707 | ||
690 | - | @Callable( | |
708 | + | @Callable(bp) | |
691 | 709 | func finalizeHelper () = { | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | if (if (if ((height >= | |
700 | - | then ( | |
710 | + | let cs = valueOrElse(getBoolean(A), false) | |
711 | + | let k = valueOrElse(getInteger(this, l), 0) | |
712 | + | let cz = (k - 1) | |
713 | + | let bF = al(this, D(k)) | |
714 | + | let bz = al(this, h) | |
715 | + | let bG = (bF + bz) | |
716 | + | let bH = getInteger(this, u) | |
717 | + | if (if (if ((height >= bG)) | |
718 | + | then (bH == unit) | |
701 | 719 | else false) | |
702 | - | then !( | |
720 | + | then !(cs) | |
703 | 721 | else false) | |
704 | 722 | then { | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | if ($isInstanceOf( | |
723 | + | let cA = (k + 1) | |
724 | + | let cB = getInteger(this, i) | |
725 | + | let cC = { | |
726 | + | let ag = cB | |
727 | + | if ($isInstanceOf(ag, "Int")) | |
710 | 728 | then { | |
711 | - | let | |
712 | - | [IntegerEntry( | |
729 | + | let bS = ag | |
730 | + | [IntegerEntry(h, bS), DeleteEntry(i)] | |
713 | 731 | } | |
714 | - | else if ($isInstanceOf( | |
732 | + | else if ($isInstanceOf(ag, "Unit")) | |
715 | 733 | then nil | |
716 | 734 | else throw("Match error") | |
717 | 735 | } | |
718 | - | $Tuple2(([IntegerEntry( | |
736 | + | $Tuple2(([IntegerEntry(D(cA), height), IntegerEntry(x, height), IntegerEntry(l, cA), IntegerEntry(u, d), IntegerEntry(j(k), bz)] ++ cC), true) | |
719 | 737 | } | |
720 | - | else if (if ( | |
721 | - | then ( | |
738 | + | else if (if (cs) | |
739 | + | then (bH == unit) | |
722 | 740 | else false) | |
723 | - | then $Tuple2([IntegerEntry( | |
724 | - | else if (( | |
741 | + | then $Tuple2([IntegerEntry(u, f)], true) | |
742 | + | else if ((bH == unit)) | |
725 | 743 | then $Tuple2(nil, false) | |
726 | - | else if (( | |
744 | + | else if ((bH == d)) | |
727 | 745 | then { | |
728 | - | let | |
729 | - | let | |
730 | - | if ($isInstanceOf( | |
746 | + | let cD = getString(v) | |
747 | + | let ag = cD | |
748 | + | if ($isInstanceOf(ag, "Unit")) | |
731 | 749 | then { | |
732 | - | let | |
733 | - | if ($isInstanceOf( | |
734 | - | then $Tuple2([IntegerEntry( | |
735 | - | else if ($isInstanceOf( | |
750 | + | let cE = getString(aT(aQ)) | |
751 | + | if ($isInstanceOf(cE, "Unit")) | |
752 | + | then $Tuple2([IntegerEntry(u, e), DeleteEntry(v)], true) | |
753 | + | else if ($isInstanceOf(cE, "String")) | |
736 | 754 | then { | |
737 | - | let | |
738 | - | $Tuple2([StringEntry( | |
755 | + | let cF = cE | |
756 | + | $Tuple2([StringEntry(v, cF)], true) | |
739 | 757 | } | |
740 | 758 | else throw("Match error") | |
741 | 759 | } | |
742 | - | else if ($isInstanceOf( | |
760 | + | else if ($isInstanceOf(ag, "String")) | |
743 | 761 | then { | |
744 | - | let | |
745 | - | let | |
746 | - | if (( | |
762 | + | let bU = ag | |
763 | + | let cG = getString(aZ(aQ, bU)) | |
764 | + | if ((cG == cG)) | |
747 | 765 | then { | |
748 | - | let | |
749 | - | if (( | |
766 | + | let cw = invoke(this, "processPoolBalanceINTERNAL", [bU], nil) | |
767 | + | if ((cw == cw)) | |
750 | 768 | then { | |
751 | - | let | |
752 | - | if ($isInstanceOf( | |
753 | - | then $Tuple2([IntegerEntry( | |
754 | - | else if ($isInstanceOf( | |
769 | + | let cE = cG | |
770 | + | if ($isInstanceOf(cE, "Unit")) | |
771 | + | then $Tuple2([IntegerEntry(u, e), DeleteEntry(v)], true) | |
772 | + | else if ($isInstanceOf(cE, "String")) | |
755 | 773 | then { | |
756 | - | let | |
757 | - | $Tuple2([StringEntry( | |
774 | + | let cF = cE | |
775 | + | $Tuple2([StringEntry(v, cF)], true) | |
758 | 776 | } | |
759 | 777 | else throw("Match error") | |
760 | 778 | } | |
764 | 782 | } | |
765 | 783 | else throw("Match error") | |
766 | 784 | } | |
767 | - | else if (( | |
785 | + | else if ((bH == e)) | |
768 | 786 | then { | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | if ($isInstanceOf( | |
787 | + | let cD = getString(v) | |
788 | + | let cH = getString(w) | |
789 | + | let ag = cD | |
790 | + | if ($isInstanceOf(ag, "Unit")) | |
773 | 791 | then { | |
774 | - | let | |
775 | - | if ($isInstanceOf( | |
776 | - | then $Tuple2([IntegerEntry( | |
777 | - | else if ($isInstanceOf( | |
792 | + | let cE = getString(aT(aQ)) | |
793 | + | if ($isInstanceOf(cE, "Unit")) | |
794 | + | then $Tuple2([IntegerEntry(u, f), DeleteEntry(v), DeleteEntry(w)], true) | |
795 | + | else if ($isInstanceOf(cE, "String")) | |
778 | 796 | then { | |
779 | - | let | |
780 | - | $Tuple2([StringEntry( | |
797 | + | let cI = cE | |
798 | + | $Tuple2([StringEntry(v, cI)], true) | |
781 | 799 | } | |
782 | 800 | else throw("Match error") | |
783 | 801 | } | |
784 | - | else if ($isInstanceOf( | |
802 | + | else if ($isInstanceOf(ag, "String")) | |
785 | 803 | then { | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | if ($isInstanceOf( | |
791 | - | then getString( | |
792 | - | else if ($isInstanceOf( | |
804 | + | let bU = ag | |
805 | + | let G = an(bU) | |
806 | + | let cJ = { | |
807 | + | let cE = cH | |
808 | + | if ($isInstanceOf(cE, "Unit")) | |
809 | + | then getString(aT(aR(G))) | |
810 | + | else if ($isInstanceOf(cE, "String")) | |
793 | 811 | then { | |
794 | - | let | |
795 | - | let | |
796 | - | if (( | |
812 | + | let cK = cE | |
813 | + | let cL = getString(aZ(aR(G), cK)) | |
814 | + | if ((cL == cL)) | |
797 | 815 | then { | |
798 | - | let | |
799 | - | if (( | |
800 | - | then | |
816 | + | let cM = invoke(this, "processVoteINTERNAL", [bU, cK], nil) | |
817 | + | if ((cM == cM)) | |
818 | + | then cL | |
801 | 819 | else throw("Strict value is not equal to itself.") | |
802 | 820 | } | |
803 | 821 | else throw("Strict value is not equal to itself.") | |
804 | 822 | } | |
805 | 823 | else throw("Match error") | |
806 | 824 | } | |
807 | - | let | |
808 | - | if ($isInstanceOf( | |
825 | + | let cE = cJ | |
826 | + | if ($isInstanceOf(cE, "Unit")) | |
809 | 827 | then { | |
810 | - | let | |
811 | - | let | |
812 | - | if ($isInstanceOf( | |
813 | - | then $Tuple2([IntegerEntry( | |
814 | - | else if ($isInstanceOf( | |
828 | + | let cG = getString(aZ(aQ, bU)) | |
829 | + | let cN = cG | |
830 | + | if ($isInstanceOf(cN, "Unit")) | |
831 | + | then $Tuple2([IntegerEntry(u, f), DeleteEntry(v), DeleteEntry(w)], true) | |
832 | + | else if ($isInstanceOf(cN, "String")) | |
815 | 833 | then { | |
816 | - | let | |
817 | - | $Tuple2([StringEntry( | |
834 | + | let bl = cN | |
835 | + | $Tuple2([StringEntry(v, bl), DeleteEntry(w)], true) | |
818 | 836 | } | |
819 | 837 | else throw("Match error") | |
820 | 838 | } | |
821 | - | else if ($isInstanceOf( | |
839 | + | else if ($isInstanceOf(cE, "String")) | |
822 | 840 | then { | |
823 | - | let | |
824 | - | $Tuple2([StringEntry( | |
841 | + | let cO = cE | |
842 | + | $Tuple2([StringEntry(w, cO)], true) | |
825 | 843 | } | |
826 | 844 | else throw("Match error") | |
827 | 845 | } | |
828 | 846 | else throw("Match error") | |
829 | 847 | } | |
830 | - | else if (( | |
848 | + | else if ((bH == f)) | |
831 | 849 | then { | |
832 | - | let | |
833 | - | let | |
834 | - | if ($isInstanceOf( | |
850 | + | let cD = getString(v) | |
851 | + | let ag = cD | |
852 | + | if ($isInstanceOf(ag, "Unit")) | |
835 | 853 | then { | |
836 | - | let | |
837 | - | if ($isInstanceOf( | |
854 | + | let cE = getString(aT(aQ)) | |
855 | + | if ($isInstanceOf(cE, "Unit")) | |
838 | 856 | then { | |
839 | - | let | |
840 | - | then [DeleteEntry( | |
841 | - | else [DeleteEntry( | |
842 | - | let | |
843 | - | if (( | |
844 | - | then $Tuple2( | |
857 | + | let ca = if (cs) | |
858 | + | then [DeleteEntry(u), DeleteEntry(A)] | |
859 | + | else [DeleteEntry(u), BooleanEntry(E(cz), true), IntegerEntry(y, k), IntegerEntry(z, bF)] | |
860 | + | let cP = aO() | |
861 | + | if ((cP == cP)) | |
862 | + | then $Tuple2(ca, true) | |
845 | 863 | else throw("Strict value is not equal to itself.") | |
846 | 864 | } | |
847 | - | else if ($isInstanceOf( | |
865 | + | else if ($isInstanceOf(cE, "String")) | |
848 | 866 | then { | |
849 | - | let | |
850 | - | $Tuple2([StringEntry( | |
867 | + | let cF = cE | |
868 | + | $Tuple2([StringEntry(v, cF)], true) | |
851 | 869 | } | |
852 | 870 | else throw("Match error") | |
853 | 871 | } | |
854 | - | else if ($isInstanceOf( | |
872 | + | else if ($isInstanceOf(ag, "String")) | |
855 | 873 | then { | |
856 | - | let | |
857 | - | let | |
858 | - | if (( | |
874 | + | let bU = ag | |
875 | + | let cG = getString(aZ(aQ, bU)) | |
876 | + | if ((cG == cG)) | |
859 | 877 | then { | |
860 | - | let | |
861 | - | let | |
862 | - | if ($isInstanceOf( | |
863 | - | then | |
864 | - | else throw(($getType( | |
878 | + | let cw = { | |
879 | + | let ak = invoke(this, "processPoolINTERNAL", [bU, cs], nil) | |
880 | + | if ($isInstanceOf(ak, "Boolean")) | |
881 | + | then ak | |
882 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
865 | 883 | } | |
866 | - | if (( | |
867 | - | then if ( | |
884 | + | if ((cw == cw)) | |
885 | + | then if (cw) | |
868 | 886 | then $Tuple2(nil, true) | |
869 | 887 | else { | |
870 | - | let | |
871 | - | if ($isInstanceOf( | |
888 | + | let cE = cG | |
889 | + | if ($isInstanceOf(cE, "Unit")) | |
872 | 890 | then { | |
873 | - | let | |
874 | - | then [DeleteEntry( | |
875 | - | else [DeleteEntry( | |
876 | - | let | |
877 | - | if (( | |
878 | - | then $Tuple2( | |
891 | + | let ca = if (cs) | |
892 | + | then [DeleteEntry(u), DeleteEntry(A), DeleteEntry(v)] | |
893 | + | else [DeleteEntry(u), BooleanEntry(E(cz), true), IntegerEntry(y, k), IntegerEntry(z, bF), DeleteEntry(v)] | |
894 | + | let cP = aO() | |
895 | + | if ((cP == cP)) | |
896 | + | then $Tuple2(ca, true) | |
879 | 897 | else throw("Strict value is not equal to itself.") | |
880 | 898 | } | |
881 | - | else if ($isInstanceOf( | |
899 | + | else if ($isInstanceOf(cE, "String")) | |
882 | 900 | then { | |
883 | - | let | |
884 | - | $Tuple2([StringEntry( | |
901 | + | let cF = cE | |
902 | + | $Tuple2([StringEntry(v, cF)], true) | |
885 | 903 | } | |
886 | 904 | else throw("Match error") | |
887 | 905 | } | |
891 | 909 | } | |
892 | 910 | else throw("Match error") | |
893 | 911 | } | |
894 | - | else | |
912 | + | else ab("finalization is broken") | |
895 | 913 | } | |
896 | 914 | ||
897 | 915 | ||
898 | 916 | ||
899 | - | @Callable( | |
900 | - | func finalizeWrapper ( | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | if ($isInstanceOf( | |
905 | - | then | |
906 | - | else throw(($getType( | |
917 | + | @Callable(bp) | |
918 | + | func finalizeWrapper (cQ) = { | |
919 | + | let cR = addressFromStringValue(getStringValue(this, p)) | |
920 | + | let cS = { | |
921 | + | let ak = invoke(this, "finalizeHelper", nil, nil) | |
922 | + | if ($isInstanceOf(ak, "Boolean")) | |
923 | + | then ak | |
924 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
907 | 925 | } | |
908 | - | if (( | |
909 | - | then if (!( | |
910 | - | then if (( | |
911 | - | then | |
926 | + | if ((cS == cS)) | |
927 | + | then if (!(cS)) | |
928 | + | then if ((cQ == 0)) | |
929 | + | then ab("Current voting is not over yet") | |
912 | 930 | else { | |
913 | - | let | |
914 | - | if (( | |
931 | + | let cT = invoke(cR, "finalize", nil, nil) | |
932 | + | if ((cT == cT)) | |
915 | 933 | then $Tuple2(nil, unit) | |
916 | 934 | else throw("Strict value is not equal to itself.") | |
917 | 935 | } | |
918 | 936 | else { | |
919 | - | let | |
920 | - | if (( | |
937 | + | let cU = valueOrElse(getInteger(this, m), c) | |
938 | + | if ((cU > cQ)) | |
921 | 939 | then { | |
922 | - | let | |
923 | - | if (( | |
940 | + | let cT = invoke(this, "finalizeWrapper", [(cQ + 1)], nil) | |
941 | + | if ((cT == cT)) | |
924 | 942 | then $Tuple2(nil, unit) | |
925 | 943 | else throw("Strict value is not equal to itself.") | |
926 | 944 | } | |
931 | 949 | ||
932 | 950 | ||
933 | 951 | ||
934 | - | @Callable( | |
952 | + | @Callable(bp) | |
935 | 953 | func finalize () = { | |
936 | - | let | |
937 | - | if (( | |
954 | + | let cT = invoke(this, "finalizeWrapper", [0], nil) | |
955 | + | if ((cT == cT)) | |
938 | 956 | then $Tuple2(nil, unit) | |
939 | 957 | else throw("Strict value is not equal to itself.") | |
940 | 958 | } | |
941 | 959 | ||
942 | 960 | ||
943 | 961 | ||
944 | - | @Callable( | |
945 | - | func containsNodeREADONLY ( | |
962 | + | @Callable(bp) | |
963 | + | func containsNodeREADONLY (aU,aY) = $Tuple2(nil, ba(aU, aY)) | |
946 | 964 | ||
947 | 965 | ||
948 | 966 | ||
949 | - | @Callable( | |
950 | - | func insertNode ( | |
951 | - | let | |
952 | - | if (( | |
953 | - | then $Tuple2( | |
967 | + | @Callable(bp) | |
968 | + | func insertNode (aU,aY) = { | |
969 | + | let bV = br(bp) | |
970 | + | if ((bV == bV)) | |
971 | + | then $Tuple2(be(aU, aY), unit) | |
954 | 972 | else throw("Strict value is not equal to itself.") | |
955 | 973 | } | |
956 | 974 | ||
957 | 975 | ||
958 | 976 | ||
959 | - | @Callable( | |
960 | - | func deleteNode ( | |
961 | - | let | |
962 | - | if (( | |
963 | - | then $Tuple2( | |
977 | + | @Callable(bp) | |
978 | + | func deleteNode (aU,aY) = { | |
979 | + | let bV = br(bp) | |
980 | + | if ((bV == bV)) | |
981 | + | then $Tuple2(bh(aU, aY), unit) | |
964 | 982 | else throw("Strict value is not equal to itself.") | |
965 | 983 | } | |
966 | 984 | ||
967 | 985 | ||
968 | 986 | ||
969 | - | @Callable( | |
987 | + | @Callable(bp) | |
970 | 988 | func isFinalizationInProgress () = { | |
971 | - | let | |
972 | - | let | |
973 | - | $Tuple2(nil, | |
989 | + | let bH = getInteger(this, u) | |
990 | + | let cV = (bH != unit) | |
991 | + | $Tuple2(nil, cV) | |
974 | 992 | } | |
975 | 993 | ||
976 | 994 | ||
977 | 995 | ||
978 | - | @Callable( | |
979 | - | func deletePool ( | |
980 | - | let | |
996 | + | @Callable(bp) | |
997 | + | func deletePool (I,J) = { | |
998 | + | let bV = if (if ((bp.caller == ap)) | |
981 | 999 | then true | |
982 | - | else | |
1000 | + | else br(bp)) | |
983 | 1001 | then true | |
984 | - | else | |
985 | - | if (( | |
1002 | + | else ab("Permission denied") | |
1003 | + | if ((bV == bV)) | |
986 | 1004 | then { | |
987 | - | let | |
988 | - | let | |
989 | - | let | |
990 | - | let | |
991 | - | then | |
1005 | + | let aU = "pools" | |
1006 | + | let G = $Tuple2(I, J) | |
1007 | + | let aY = makeString([I, J], a) | |
1008 | + | let ca = if (ba(aU, aY)) | |
1009 | + | then bh(aU, aY) | |
992 | 1010 | else nil | |
993 | - | ([DeleteEntry( | |
1011 | + | ([DeleteEntry(F(G))] ++ ca) | |
994 | 1012 | } | |
995 | 1013 | else throw("Strict value is not equal to itself.") | |
996 | 1014 | } | |
997 | 1015 | ||
998 | 1016 | ||
999 | 1017 | ||
1000 | - | @Callable(bj) | |
1001 | - | func resume (F,G) = { | |
1002 | - | let aF = av(F, G) | |
1003 | - | let cQ = { | |
1004 | - | let ah = invoke(am, "checkBalance", [aF], nil) | |
1005 | - | if ($isInstanceOf(ah, "Boolean")) | |
1006 | - | then ah | |
1007 | - | else throw(($getType(ah) + " couldn't be cast to Boolean")) | |
1018 | + | @Callable(bp) | |
1019 | + | func resume (I,J,cW) = { | |
1020 | + | let cX = valueOrErrorMessage(az(I, J), Z("invalid assets")) | |
1021 | + | let cd = cX._1 | |
1022 | + | let aL = cX._2 | |
1023 | + | let cY = bp.payments[0] | |
1024 | + | let cx = addressFromStringValue(getStringValue(this, t)) | |
1025 | + | let cZ = "%s__config" | |
1026 | + | let da = 1 | |
1027 | + | let bx = addressFromStringValue(aj(this, r)) | |
1028 | + | let db = fromBase58String(split(getStringValue(bx, cZ), a)[da]) | |
1029 | + | let dc = { | |
1030 | + | let ak = invoke(cx, "isVerifiedREADONLY", [I], nil) | |
1031 | + | if ($isInstanceOf(ak, "Boolean")) | |
1032 | + | then ak | |
1033 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
1008 | 1034 | } | |
1009 | - | let cR = bj.payments[0] | |
1010 | - | let cr = addressFromStringValue(getStringValue(this, s)) | |
1011 | - | let cS = "%s__config" | |
1012 | - | let cT = 1 | |
1013 | - | let br = addressFromStringValue(ag(this, q)) | |
1014 | - | let cU = fromBase58String(split(getStringValue(br, cS), a)[cT]) | |
1015 | - | let cV = { | |
1016 | - | let ah = invoke(cr, "isVerifiedREADONLY", [F], nil) | |
1017 | - | if ($isInstanceOf(ah, "Boolean")) | |
1018 | - | then ah | |
1019 | - | else throw(($getType(ah) + " couldn't be cast to Boolean")) | |
1035 | + | let dd = { | |
1036 | + | let ak = invoke(cx, "isVerifiedREADONLY", [J], nil) | |
1037 | + | if ($isInstanceOf(ak, "Boolean")) | |
1038 | + | then ak | |
1039 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
1020 | 1040 | } | |
1021 | - | let cW = { | |
1022 | - | let ah = invoke(cr, "isVerifiedREADONLY", [G], nil) | |
1023 | - | if ($isInstanceOf(ah, "Boolean")) | |
1024 | - | then ah | |
1025 | - | else throw(($getType(ah) + " couldn't be cast to Boolean")) | |
1026 | - | } | |
1027 | - | let cX = valueOrErrorMessage(getInteger(this, m), "invalid resumption fee") | |
1028 | - | let bu = [if (cQ) | |
1041 | + | let de = valueOrErrorMessage(getInteger(this, n), "invalid resumption fee") | |
1042 | + | let bA = [if ((cY.assetId == db)) | |
1029 | 1043 | then true | |
1030 | - | else | |
1044 | + | else ab("invalid fee payment asset id"), if ((cY.amount == de)) | |
1031 | 1045 | then true | |
1032 | - | else Y("1 payment is required"), if ((cR.assetId == cU)) | |
1033 | - | then true | |
1034 | - | else Y("invalid payment asset id"), if ((cR.amount == cX)) | |
1035 | - | then true | |
1036 | - | else Y("invalid payment amount"), if (if (cV) | |
1037 | - | then cW | |
1046 | + | else ab("invalid fee payment amount"), if (if (dc) | |
1047 | + | then dd | |
1038 | 1048 | else false) | |
1039 | 1049 | then true | |
1040 | - | else | |
1041 | - | if (( | |
1050 | + | else ab("both assets should be verified")] | |
1051 | + | if ((bA == bA)) | |
1042 | 1052 | then { | |
1043 | - | let | |
1044 | - | if (( | |
1053 | + | let df = assetBalance(this, aL) | |
1054 | + | if ((df == df)) | |
1045 | 1055 | then { | |
1046 | - | let D = $Tuple2(F, G) | |
1047 | - | let bv = ([BooleanEntry(C(D), true)] ++ aY(aK, aj(D))) | |
1048 | - | $Tuple2(bv, unit) | |
1056 | + | let dg = false | |
1057 | + | let dh = if ((size(bp.payments) == 1)) | |
1058 | + | then { | |
1059 | + | let di = { | |
1060 | + | let ak = invoke(ap, "checkBalance", [ay(aL)], nil) | |
1061 | + | if ($isInstanceOf(ak, "Boolean")) | |
1062 | + | then ak | |
1063 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
1064 | + | } | |
1065 | + | if (di) | |
1066 | + | then true | |
1067 | + | else ab("assets should be attached") | |
1068 | + | } | |
1069 | + | else if ((size(bp.payments) == 2)) | |
1070 | + | then { | |
1071 | + | let dj = valueOrErrorMessage(scriptHash(cd), Z("pool address is not scripted")) | |
1072 | + | let dk = fromBase64String(valueOrErrorMessage(getString(ap, C()), Z("allowed lp stable script hash is not set"))) | |
1073 | + | let dl = (dj == dk) | |
1074 | + | let dm = if (dl) | |
1075 | + | then "putOneTknV2" | |
1076 | + | else "putOneTkn" | |
1077 | + | invoke(cd, dm, [cW, dg], [bp.payments[1]]) | |
1078 | + | } | |
1079 | + | else if ((size(bp.payments) == 3)) | |
1080 | + | then invoke(cd, "put", [cW, dg], [bp.payments[1], bp.payments[2]]) | |
1081 | + | else ab("invalid payments size") | |
1082 | + | if ((dh == dh)) | |
1083 | + | then { | |
1084 | + | let dn = assetBalance(this, aL) | |
1085 | + | if ((dn == dn)) | |
1086 | + | then { | |
1087 | + | let do = (dn - df) | |
1088 | + | let dp = if ((do > 0)) | |
1089 | + | then [ScriptTransfer(bp.caller, do, aL)] | |
1090 | + | else nil | |
1091 | + | let dq = invoke(ap, "setWxEmissionPoolLabel", [I, J], nil) | |
1092 | + | if ((dq == dq)) | |
1093 | + | then { | |
1094 | + | let G = $Tuple2(I, J) | |
1095 | + | let bB = ([BooleanEntry(F(G), true)] ++ be(aQ, am(G))) | |
1096 | + | $Tuple2((bB ++ dp), unit) | |
1097 | + | } | |
1098 | + | else throw("Strict value is not equal to itself.") | |
1099 | + | } | |
1100 | + | else throw("Strict value is not equal to itself.") | |
1101 | + | } | |
1102 | + | else throw("Strict value is not equal to itself.") | |
1049 | 1103 | } | |
1050 | 1104 | else throw("Strict value is not equal to itself.") | |
1051 | 1105 | } | |
1053 | 1107 | } | |
1054 | 1108 | ||
1055 | 1109 | ||
1056 | - | @Verifier( | |
1057 | - | func | |
1058 | - | let | |
1059 | - | let | |
1060 | - | if ($isInstanceOf( | |
1110 | + | @Verifier(dr) | |
1111 | + | func ds () = { | |
1112 | + | let dt = { | |
1113 | + | let ag = bm() | |
1114 | + | if ($isInstanceOf(ag, "ByteVector")) | |
1061 | 1115 | then { | |
1062 | - | let | |
1063 | - | | |
1116 | + | let bq = ag | |
1117 | + | bq | |
1064 | 1118 | } | |
1065 | - | else if ($isInstanceOf( | |
1066 | - | then | |
1119 | + | else if ($isInstanceOf(ag, "Unit")) | |
1120 | + | then dr.senderPublicKey | |
1067 | 1121 | else throw("Match error") | |
1068 | 1122 | } | |
1069 | - | sigVerify( | |
1123 | + | sigVerify(dr.bodyBytes, dr.proofs[0], dt) | |
1070 | 1124 | } | |
1071 | 1125 |
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 = 2 | |
15 | 15 | ||
16 | - | let g = | |
16 | + | let g = "WAVES" | |
17 | 17 | ||
18 | - | let h = makeString(["%s | |
18 | + | let h = makeString(["%s", "epochLength"], a) | |
19 | 19 | ||
20 | - | func i (j) = makeString(["%s%d", "epochLength", toString(j)], a) | |
20 | + | let i = makeString(["%s%s", "epochLength__new"], a) | |
21 | + | ||
22 | + | func j (k) = makeString(["%s%d", "epochLength", toString(k)], a) | |
21 | 23 | ||
22 | 24 | ||
23 | - | let | |
25 | + | let l = makeString(["%s", "currentEpoch"], a) | |
24 | 26 | ||
25 | - | let | |
27 | + | let m = makeString(["%s", "maxDepth"], a) | |
26 | 28 | ||
27 | - | let | |
29 | + | let n = makeString(["%s", "resumptionFee"], a) | |
28 | 30 | ||
29 | - | let | |
31 | + | let o = makeString(["%s", "votingEmissionCandidateContract"], a) | |
30 | 32 | ||
31 | - | let | |
33 | + | let p = makeString(["%s", "votingEmissionRateContract"], a) | |
32 | 34 | ||
33 | - | let | |
35 | + | let q = makeString(["%s", "factoryContract"], a) | |
34 | 36 | ||
35 | - | let | |
37 | + | let r = makeString(["%s", "boostingContract"], a) | |
36 | 38 | ||
37 | - | let | |
39 | + | let s = makeString(["%s", "stakingContract"], a) | |
38 | 40 | ||
39 | - | let | |
41 | + | let t = makeString(["%s", "assetsStoreContract"], a) | |
40 | 42 | ||
41 | - | let | |
43 | + | let u = makeString(["%s", "finalizationStage"], a) | |
42 | 44 | ||
43 | - | let | |
45 | + | let v = makeString(["%s", "nextPool"], a) | |
44 | 46 | ||
45 | - | let | |
47 | + | let w = makeString(["%s", "nextUser"], a) | |
46 | 48 | ||
47 | - | let | |
49 | + | let x = makeString(["%s", "startHeight"], a) | |
48 | 50 | ||
49 | - | let | |
51 | + | let y = makeString(["%s", "currentEpochUi"], a) | |
50 | 52 | ||
51 | - | let | |
53 | + | let z = makeString(["%s", "startHeightUi"], a) | |
52 | 54 | ||
53 | - | let | |
55 | + | let A = makeString(["%s", "force"], a) | |
54 | 56 | ||
55 | - | func | |
57 | + | func B () = "%s__allowedLpScriptHash" | |
56 | 58 | ||
57 | 59 | ||
58 | - | func | |
60 | + | func C () = "%s__allowedLpStableScriptHash" | |
59 | 61 | ||
60 | 62 | ||
61 | - | func C (D) = { | |
62 | - | let E = D | |
63 | - | let F = E._1 | |
64 | - | let G = E._2 | |
65 | - | makeString(["%s%s%s", "inList", F, G], a) | |
63 | + | func D (k) = makeString(["%s%d", "startHeight", toString(k)], a) | |
64 | + | ||
65 | + | ||
66 | + | func E (k) = makeString(["%s%d", "finalized", toString(k)], a) | |
67 | + | ||
68 | + | ||
69 | + | func F (G) = { | |
70 | + | let H = G | |
71 | + | let I = H._1 | |
72 | + | let J = H._2 | |
73 | + | makeString(["%s%s%s", "inList", I, J], a) | |
66 | 74 | } | |
67 | 75 | ||
68 | 76 | ||
69 | - | func | |
70 | - | let | |
71 | - | let | |
72 | - | let | |
73 | - | makeString(["%s%s%s%d", "insufficientBalances", | |
77 | + | func K (G,k) = { | |
78 | + | let L = G | |
79 | + | let I = L._1 | |
80 | + | let J = L._2 | |
81 | + | makeString(["%s%s%s%d", "insufficientBalances", I, J, toString(k)], a) | |
74 | 82 | } | |
75 | 83 | ||
76 | 84 | ||
77 | - | func | |
85 | + | func M (N,k) = makeString(["%s%s%d", "used", toString(N), toString(k)], a) | |
78 | 86 | ||
79 | 87 | ||
80 | - | func | |
81 | - | let | |
82 | - | let | |
83 | - | let | |
84 | - | makeString(["%s%s%s%s%d", "vote", | |
88 | + | func O (G,N,k) = { | |
89 | + | let P = G | |
90 | + | let I = P._1 | |
91 | + | let J = P._2 | |
92 | + | makeString(["%s%s%s%s%d", "vote", I, J, toString(N), toString(k)], a) | |
85 | 93 | } | |
86 | 94 | ||
87 | 95 | ||
88 | - | func | |
89 | - | let | |
90 | - | let | |
91 | - | let | |
92 | - | makeString(["%s%s%s%d", "votingResult", | |
96 | + | func Q (G,k) = { | |
97 | + | let R = G | |
98 | + | let I = R._1 | |
99 | + | let J = R._2 | |
100 | + | makeString(["%s%s%s%d", "votingResult", I, J, toString(k)], a) | |
93 | 101 | } | |
94 | 102 | ||
95 | 103 | ||
96 | - | func | |
104 | + | func S (T,k) = makeString(["%s%s%d", "votingResultStaked", T, toString(k)], a) | |
97 | 105 | ||
98 | 106 | ||
99 | - | func | |
100 | - | let | |
101 | - | let | |
102 | - | let | |
103 | - | makeString(["%s%s%s%d", "poolShare", | |
107 | + | func U (G,k) = { | |
108 | + | let V = G | |
109 | + | let I = V._1 | |
110 | + | let J = V._2 | |
111 | + | makeString(["%s%s%s%d", "poolShare", I, J, toString(k)], a) | |
104 | 112 | } | |
105 | 113 | ||
106 | 114 | ||
107 | - | func | |
115 | + | func W (k) = makeString(["%s%d", "totalVotes", toString(k)], a) | |
108 | 116 | ||
109 | 117 | ||
110 | - | func | |
118 | + | func X (T,Y) = makeString(["%s%s%s", "staked", Y, T], a) | |
111 | 119 | ||
112 | 120 | ||
113 | - | func | |
121 | + | func Z (aa) = makeString(["voting_emission.ride:", aa], " ") | |
114 | 122 | ||
115 | 123 | ||
116 | - | func | |
124 | + | func ab (aa) = throw(Z(aa)) | |
117 | 125 | ||
118 | 126 | ||
119 | - | func | |
120 | - | let | |
127 | + | func ac (N,ad,ae) = { | |
128 | + | let af = Z(makeString(["mandatory ", toString(N), ".", ad, " is not defined"], "")) | |
121 | 129 | valueOrErrorMessage({ | |
122 | - | let | |
123 | - | if ($isInstanceOf( | |
130 | + | let ag = ae | |
131 | + | if ($isInstanceOf(ag, "String")) | |
124 | 132 | then { | |
125 | - | let | |
126 | - | getString( | |
133 | + | let ah = ag | |
134 | + | getString(N, ad) | |
127 | 135 | } | |
128 | - | else if ($isInstanceOf( | |
136 | + | else if ($isInstanceOf(ag, "Int")) | |
129 | 137 | then { | |
130 | - | let | |
131 | - | getInteger( | |
138 | + | let ai = ag | |
139 | + | getInteger(N, ad) | |
132 | 140 | } | |
133 | - | else | |
134 | - | }, | |
141 | + | else ab("invalid entry type") | |
142 | + | }, af) | |
135 | 143 | } | |
136 | 144 | ||
137 | 145 | ||
138 | - | func | |
139 | - | let | |
140 | - | if ($isInstanceOf( | |
141 | - | then | |
142 | - | else throw(($getType( | |
146 | + | func aj (N,ad) = { | |
147 | + | let ak = ac(N, ad, "") | |
148 | + | if ($isInstanceOf(ak, "String")) | |
149 | + | then ak | |
150 | + | else throw(($getType(ak) + " couldn't be cast to String")) | |
143 | 151 | } | |
144 | 152 | ||
145 | 153 | ||
146 | - | func | |
147 | - | let | |
148 | - | if ($isInstanceOf( | |
149 | - | then | |
150 | - | else throw(($getType( | |
154 | + | func al (N,ad) = { | |
155 | + | let ak = ac(N, ad, 0) | |
156 | + | if ($isInstanceOf(ak, "Int")) | |
157 | + | then ak | |
158 | + | else throw(($getType(ak) + " couldn't be cast to Int")) | |
151 | 159 | } | |
152 | 160 | ||
153 | 161 | ||
154 | - | func | |
162 | + | func am (G) = ((G._1 + a) + G._2) | |
155 | 163 | ||
156 | 164 | ||
157 | - | func | |
158 | - | let | |
159 | - | if ((size( | |
160 | - | then $Tuple2( | |
161 | - | else | |
165 | + | func an (ah) = { | |
166 | + | let ao = split(ah, a) | |
167 | + | if ((size(ao) == 2)) | |
168 | + | then $Tuple2(ao[0], ao[1]) | |
169 | + | else ab("invalid pool string") | |
162 | 170 | } | |
163 | 171 | ||
164 | 172 | ||
165 | - | let | |
173 | + | let ap = addressFromStringValue(aj(this, q)) | |
166 | 174 | ||
167 | - | let | |
175 | + | let aq = 10 | |
168 | 176 | ||
169 | - | func | |
177 | + | func ar () = "%s__factoryConfig" | |
170 | 178 | ||
171 | 179 | ||
172 | - | func | |
180 | + | func as (at) = split(aj(at, ar()), a) | |
173 | 181 | ||
174 | 182 | ||
175 | - | func | |
183 | + | func au (av) = addressFromStringValue(av[aq]) | |
176 | 184 | ||
177 | 185 | ||
178 | - | func at (F,G) = { | |
179 | - | let au = { | |
180 | - | let ah = invoke(am, "poolInfoREADONLY", [F, G], nil) | |
181 | - | if ($isInstanceOf(ah, "(Address, ByteVector)")) | |
182 | - | then ah | |
186 | + | func aw (ax) = if ((ax == g)) | |
187 | + | then unit | |
188 | + | else fromBase58String(ax) | |
189 | + | ||
190 | + | ||
191 | + | func ay (ax) = if ((ax == unit)) | |
192 | + | then g | |
193 | + | else toBase58String(value(ax)) | |
194 | + | ||
195 | + | ||
196 | + | func az (I,J) = { | |
197 | + | let aA = { | |
198 | + | let ak = invoke(ap, "poolInfoREADONLY", [I, J], nil) | |
199 | + | if ($isInstanceOf(ak, "(Address, ByteVector)")) | |
200 | + | then ak | |
183 | 201 | else unit | |
184 | 202 | } | |
185 | - | | |
203 | + | aA | |
186 | 204 | } | |
187 | 205 | ||
188 | 206 | ||
189 | - | func | |
190 | - | func | |
207 | + | func aB (I,J) = { | |
208 | + | func aC (aD) = ("%s%s%s__mappings__baseAsset2internalId__" + aD) | |
191 | 209 | ||
192 | - | func | |
210 | + | func aE (aF,aG) = (((("%d%d%s%s__" + toString(aF)) + "__") + toString(aG)) + "__mappings__poolAssets2PoolContract") | |
193 | 211 | ||
194 | - | func | |
212 | + | func aH (aI) = (("%s%s%s__" + aI) + "__mappings__poolContract2LpAsset") | |
195 | 213 | ||
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | | |
214 | + | let aJ = al(ap, aC(I)) | |
215 | + | let aK = al(ap, aC(J)) | |
216 | + | let aI = aj(ap, aE(aJ, aK)) | |
217 | + | let aL = aj(ap, aH(aI)) | |
218 | + | aL | |
201 | 219 | } | |
202 | 220 | ||
203 | 221 | ||
204 | - | func | |
205 | - | let | |
206 | - | let | |
207 | - | let | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
210 | - | then | |
211 | - | else throw(($getType( | |
222 | + | func aM (G) = { | |
223 | + | let aN = G | |
224 | + | let I = aN._1 | |
225 | + | let J = aN._2 | |
226 | + | let ak = invoke(ap, "checkWxEmissionPoolLabel", [I, J], nil) | |
227 | + | if ($isInstanceOf(ak, "Boolean")) | |
228 | + | then ak | |
229 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
212 | 230 | } | |
213 | 231 | ||
214 | 232 | ||
215 | - | func | |
216 | - | let | |
217 | - | let | |
218 | - | invoke( | |
233 | + | func aO () = { | |
234 | + | let av = as(ap) | |
235 | + | let aP = au(av) | |
236 | + | invoke(aP, "deposit", nil, nil) | |
219 | 237 | } | |
220 | 238 | ||
221 | 239 | ||
222 | - | let | |
240 | + | let aQ = "pools" | |
223 | 241 | ||
224 | - | func | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | makeString(["votes", | |
242 | + | func aR (G) = { | |
243 | + | let aS = G | |
244 | + | let I = aS._1 | |
245 | + | let J = aS._2 | |
246 | + | makeString(["votes", I, J], a) | |
229 | 247 | } | |
230 | 248 | ||
231 | 249 | ||
232 | - | func | |
233 | - | let | |
250 | + | func aT (aU) = { | |
251 | + | let aV = if ((aU == aQ)) | |
234 | 252 | then "%s%s" | |
235 | 253 | else "%s%s%s%s" | |
236 | - | makeString([ | |
254 | + | makeString([aV, aU, "head"], a) | |
237 | 255 | } | |
238 | 256 | ||
239 | 257 | ||
240 | - | func | |
241 | - | let | |
258 | + | func aW (aU) = { | |
259 | + | let aV = if ((aU == aQ)) | |
242 | 260 | then "%s%s" | |
243 | 261 | else "%s%s%s%s" | |
244 | - | makeString([ | |
262 | + | makeString([aV, aU, "size"], a) | |
245 | 263 | } | |
246 | 264 | ||
247 | 265 | ||
248 | - | func | |
249 | - | let | |
266 | + | func aX (aU,aY) = { | |
267 | + | let aV = if ((aU == aQ)) | |
250 | 268 | then "%s%s%s%s" | |
251 | 269 | else "%s%s%s%s%s" | |
252 | - | makeString([ | |
270 | + | makeString([aV, aU, aY, "prev"], a) | |
253 | 271 | } | |
254 | 272 | ||
255 | 273 | ||
256 | - | func | |
257 | - | let | |
274 | + | func aZ (aU,aY) = { | |
275 | + | let aV = if ((aU == aQ)) | |
258 | 276 | then "%s%s%s%s" | |
259 | 277 | else "%s%s%s%s%s" | |
260 | - | makeString([ | |
278 | + | makeString([aV, aU, aY, "next"], a) | |
261 | 279 | } | |
262 | 280 | ||
263 | 281 | ||
264 | - | func | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | if (if (( | |
282 | + | func ba (aU,aY) = { | |
283 | + | let bb = getString(this, aT(aU)) | |
284 | + | let bc = getString(this, aX(aU, aY)) | |
285 | + | let bd = getString(this, aZ(aU, aY)) | |
286 | + | if (if ((aY == valueOrElse(bb, ""))) | |
269 | 287 | then true | |
270 | - | else ( | |
288 | + | else (bc != unit)) | |
271 | 289 | then true | |
272 | - | else ( | |
290 | + | else (bd != unit) | |
273 | 291 | } | |
274 | 292 | ||
275 | 293 | ||
276 | - | func | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
294 | + | func be (aU,aY) = { | |
295 | + | let bb = getString(this, aT(aU)) | |
296 | + | let bf = valueOrElse(getInteger(this, aW(aU)), 0) | |
297 | + | let bg = if (!(ba(aU, aY))) | |
280 | 298 | then true | |
281 | - | else | |
282 | - | if (( | |
283 | - | then (([IntegerEntry( | |
284 | - | then [StringEntry( | |
285 | - | else nil)) ++ [StringEntry( | |
299 | + | else ab("Node exists") | |
300 | + | if ((bg == bg)) | |
301 | + | then (([IntegerEntry(aW(aU), (bf + 1))] ++ (if ((bb != unit)) | |
302 | + | then [StringEntry(aZ(aU, aY), value(bb)), StringEntry(aX(aU, value(bb)), aY)] | |
303 | + | else nil)) ++ [StringEntry(aT(aU), aY)]) | |
286 | 304 | else throw("Strict value is not equal to itself.") | |
287 | 305 | } | |
288 | 306 | ||
289 | 307 | ||
290 | - | func | |
291 | - | let | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | ([IntegerEntry( | |
296 | - | then ( | |
308 | + | func bh (aU,aY) = { | |
309 | + | let bb = getString(this, aT(aU)) | |
310 | + | let bf = valueOrElse(getInteger(this, aW(aU)), 0) | |
311 | + | let bc = getString(this, aX(aU, aY)) | |
312 | + | let bd = getString(this, aZ(aU, aY)) | |
313 | + | ([IntegerEntry(aW(aU), (bf - 1))] ++ (if (if ((bc != unit)) | |
314 | + | then (bd != unit) | |
297 | 315 | else false) | |
298 | - | then [StringEntry( | |
299 | - | else if (( | |
300 | - | then [StringEntry( | |
301 | - | else if (( | |
302 | - | then [DeleteEntry( | |
303 | - | else if (( | |
304 | - | then [DeleteEntry( | |
305 | - | else | |
316 | + | then [StringEntry(aZ(aU, value(bc)), value(bd)), StringEntry(aX(aU, value(bd)), value(bc)), DeleteEntry(aX(aU, aY)), DeleteEntry(aZ(aU, aY))] | |
317 | + | else if ((bd != unit)) | |
318 | + | then [StringEntry(aT(aU), value(bd)), DeleteEntry(aZ(aU, aY)), DeleteEntry(aX(aU, value(bd)))] | |
319 | + | else if ((bc != unit)) | |
320 | + | then [DeleteEntry(aX(aU, aY)), DeleteEntry(aZ(aU, value(bc)))] | |
321 | + | else if ((aY == valueOrElse(bb, ""))) | |
322 | + | then [DeleteEntry(aT(aU))] | |
323 | + | else ab(((("invalid node: " + aU) + ".") + aY)))) | |
306 | 324 | } | |
307 | 325 | ||
308 | 326 | ||
309 | - | func | |
327 | + | func bi () = "%s__managerVaultAddress" | |
310 | 328 | ||
311 | 329 | ||
312 | - | func | |
330 | + | func bj () = "%s__managerPublicKey" | |
313 | 331 | ||
314 | 332 | ||
315 | - | func | |
316 | - | let | |
317 | - | if ($isInstanceOf( | |
333 | + | func bk () = { | |
334 | + | let ag = getString(bi()) | |
335 | + | if ($isInstanceOf(ag, "String")) | |
318 | 336 | then { | |
319 | - | let | |
320 | - | addressFromStringValue( | |
337 | + | let bl = ag | |
338 | + | addressFromStringValue(bl) | |
321 | 339 | } | |
322 | 340 | else this | |
323 | 341 | } | |
324 | 342 | ||
325 | 343 | ||
326 | - | func | |
327 | - | let | |
328 | - | let | |
329 | - | if ($isInstanceOf( | |
344 | + | func bm () = { | |
345 | + | let bn = bk() | |
346 | + | let ag = getString(bn, bj()) | |
347 | + | if ($isInstanceOf(ag, "String")) | |
330 | 348 | then { | |
331 | - | let | |
332 | - | fromBase58String( | |
349 | + | let bl = ag | |
350 | + | fromBase58String(bl) | |
333 | 351 | } | |
334 | - | else if ($isInstanceOf( | |
352 | + | else if ($isInstanceOf(ag, "Unit")) | |
335 | 353 | then unit | |
336 | 354 | else throw("Match error") | |
337 | 355 | } | |
338 | 356 | ||
339 | 357 | ||
340 | - | func | |
341 | - | let | |
342 | - | if ($isInstanceOf( | |
358 | + | func bo (bp) = { | |
359 | + | let ag = bm() | |
360 | + | if ($isInstanceOf(ag, "ByteVector")) | |
343 | 361 | then { | |
344 | - | let | |
345 | - | ( | |
362 | + | let bq = ag | |
363 | + | (bp.callerPublicKey == bq) | |
346 | 364 | } | |
347 | - | else if ($isInstanceOf( | |
348 | - | then ( | |
365 | + | else if ($isInstanceOf(ag, "Unit")) | |
366 | + | then (bp.caller == this) | |
349 | 367 | else throw("Match error") | |
350 | 368 | } | |
351 | 369 | ||
352 | 370 | ||
353 | - | func | |
371 | + | func br (bp) = if (bo(bp)) | |
354 | 372 | then true | |
355 | 373 | else throw("permission denied") | |
356 | 374 | ||
357 | 375 | ||
358 | - | func | |
376 | + | func bs (bp) = if ((bp.caller == this)) | |
359 | 377 | then true | |
360 | 378 | else throw("permission denied") | |
361 | 379 | ||
362 | 380 | ||
363 | - | @Callable( | |
364 | - | func getUserGwxAmountAtHeight ( | |
365 | - | let | |
381 | + | @Callable(bp) | |
382 | + | func getUserGwxAmountAtHeight (bt,bu) = { | |
383 | + | let bv = valueOrErrorMessage(addressFromString(aj(this, r)), Z("invalid boosting contract address")) | |
366 | 384 | $Tuple2(nil, { | |
367 | - | let | |
368 | - | if ($isInstanceOf( | |
369 | - | then | |
370 | - | else throw(($getType( | |
385 | + | let ak = invoke(bv, "getUserGwxAmountAtHeightREADONLY", [bt, bu], nil) | |
386 | + | if ($isInstanceOf(ak, "Int")) | |
387 | + | then ak | |
388 | + | else throw(($getType(ak) + " couldn't be cast to Int")) | |
371 | 389 | }) | |
372 | 390 | } | |
373 | 391 | ||
374 | 392 | ||
375 | 393 | ||
376 | - | @Callable( | |
377 | - | func constructor ( | |
378 | - | let | |
394 | + | @Callable(bp) | |
395 | + | func constructor (ap,bw,bx,by,bz) = { | |
396 | + | let bA = [br(bp), if ((addressFromString(ap) != unit)) | |
379 | 397 | then true | |
380 | - | else "invalid factory contract address", if ((addressFromString( | |
398 | + | else "invalid factory contract address", if ((addressFromString(bw) != unit)) | |
381 | 399 | then true | |
382 | - | else "invalid voting emission candidate contract address", if ((addressFromString( | |
400 | + | else "invalid voting emission candidate contract address", if ((addressFromString(bx) != unit)) | |
383 | 401 | then true | |
384 | - | else "invalid boosting contract address", if ((addressFromString( | |
402 | + | else "invalid boosting contract address", if ((addressFromString(by) != unit)) | |
385 | 403 | then true | |
386 | - | else "invalid staking contract address", if (( | |
404 | + | else "invalid staking contract address", if ((bz > 0)) | |
387 | 405 | then true | |
388 | - | else | |
389 | - | if (( | |
390 | - | then $Tuple2([StringEntry( | |
406 | + | else ab("invalid epoch length")] | |
407 | + | if ((bA == bA)) | |
408 | + | then $Tuple2([StringEntry(q, ap), StringEntry(o, bw), StringEntry(r, bx), StringEntry(s, by), IntegerEntry(h, bz)], unit) | |
391 | 409 | else throw("Strict value is not equal to itself.") | |
392 | 410 | } | |
393 | 411 | ||
394 | 412 | ||
395 | 413 | ||
396 | - | @Callable( | |
397 | - | func create ( | |
398 | - | let | |
414 | + | @Callable(bp) | |
415 | + | func create (I,J) = { | |
416 | + | let bA = [if ((toBase58String(bp.caller.bytes) == valueOrElse(getString(this, o), ""))) | |
399 | 417 | then true | |
400 | - | else | |
401 | - | if (( | |
418 | + | else br(bp)] | |
419 | + | if ((bA == bA)) | |
402 | 420 | then { | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
421 | + | let G = $Tuple2(I, J) | |
422 | + | let bB = ([BooleanEntry(F(G), true)] ++ be(aQ, am(G))) | |
423 | + | let bC = (getInteger(this, l) == unit) | |
424 | + | let bD = if (bC) | |
407 | 425 | then { | |
408 | - | let | |
409 | - | [IntegerEntry( | |
426 | + | let k = 0 | |
427 | + | [IntegerEntry(l, k), IntegerEntry(D(k), height), IntegerEntry(x, height), IntegerEntry(y, k), IntegerEntry(z, height)] | |
410 | 428 | } | |
411 | 429 | else nil | |
412 | - | $Tuple2(( | |
430 | + | $Tuple2((bB ++ bD), unit) | |
413 | 431 | } | |
414 | 432 | else throw("Strict value is not equal to itself.") | |
415 | 433 | } | |
416 | 434 | ||
417 | 435 | ||
418 | 436 | ||
419 | - | @Callable( | |
420 | - | func vote ( | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | if ($isInstanceOf( | |
434 | - | then | |
435 | - | else throw(($getType( | |
437 | + | @Callable(bp) | |
438 | + | func vote (I,J,bE) = { | |
439 | + | let G = $Tuple2(I, J) | |
440 | + | let k = valueOrElse(getInteger(this, l), 0) | |
441 | + | let bF = al(this, D(k)) | |
442 | + | let bz = al(this, h) | |
443 | + | let bG = (bF + bz) | |
444 | + | let bH = getInteger(this, u) | |
445 | + | let bI = valueOrElse(getInteger(this, M(bp.caller, k)), 0) | |
446 | + | let bJ = valueOrElse(getInteger(this, O(G, bp.caller, k)), 0) | |
447 | + | let bK = valueOrElse(getInteger(this, Q(G, k)), 0) | |
448 | + | let bL = valueOrElse(getInteger(this, W(k)), 0) | |
449 | + | let bM = { | |
450 | + | let ak = invoke(this, "getUserGwxAmountAtHeight", [toBase58String(bp.caller.bytes), bG], nil) | |
451 | + | if ($isInstanceOf(ak, "Int")) | |
452 | + | then ak | |
453 | + | else throw(($getType(ak) + " couldn't be cast to Int")) | |
436 | 454 | } | |
437 | - | let | |
438 | - | let | |
439 | - | let | |
440 | - | let | |
455 | + | let bN = (bM - bI) | |
456 | + | let bO = (bJ + bE) | |
457 | + | let bP = aM(G) | |
458 | + | let bA = [if ((getBoolean(F(G)) != unit)) | |
441 | 459 | then true | |
442 | - | else | |
460 | + | else ab("invalid assets"), if ((bG > height)) | |
443 | 461 | then true | |
444 | - | else | |
462 | + | else ab("invalid height"), if ((bH == unit)) | |
445 | 463 | then true | |
446 | - | else | |
464 | + | else ab("finalization in progress"), if ((bM > 0)) | |
447 | 465 | then true | |
448 | - | else | |
449 | - | then ( | |
466 | + | else ab("you do not have gWX"), if (if ((bE > 0)) | |
467 | + | then (bN >= bE) | |
450 | 468 | else false) | |
451 | 469 | then true | |
452 | - | else | |
470 | + | else ab("invalid amount"), if (bP) | |
453 | 471 | then true | |
454 | - | else | |
455 | - | if (( | |
472 | + | else ab("pool hasn't WX_EMISSION label")] | |
473 | + | if ((bA == bA)) | |
456 | 474 | then { | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
475 | + | let bQ = aR(G) | |
476 | + | let Y = toString(bp.caller) | |
477 | + | let bR = if (ba(bQ, Y)) | |
460 | 478 | then nil | |
461 | - | else | |
462 | - | $Tuple2(([IntegerEntry( | |
479 | + | else be(bQ, Y) | |
480 | + | $Tuple2(([IntegerEntry(M(bp.caller, k), (bI + bE)), IntegerEntry(O(G, bp.caller, k), bO), IntegerEntry(Q(G, k), (bK + bE)), IntegerEntry(W(k), (bL + bE))] ++ bR), unit) | |
463 | 481 | } | |
464 | 482 | else throw("Strict value is not equal to itself.") | |
465 | 483 | } | |
466 | 484 | ||
467 | 485 | ||
468 | 486 | ||
469 | - | @Callable( | |
470 | - | func cancelVote ( | |
471 | - | let | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
487 | + | @Callable(bp) | |
488 | + | func cancelVote (I,J) = { | |
489 | + | let G = $Tuple2(I, J) | |
490 | + | let k = valueOrElse(getInteger(this, l), 0) | |
491 | + | let bF = al(this, D(k)) | |
492 | + | let bz = al(this, h) | |
493 | + | let bG = (bF + bz) | |
494 | + | let bH = getInteger(this, u) | |
495 | + | let bI = valueOrElse(getInteger(this, M(bp.caller, k)), 0) | |
496 | + | let bJ = valueOrElse(getInteger(this, O(G, bp.caller, k)), 0) | |
497 | + | let bK = valueOrElse(getInteger(this, Q(G, k)), 0) | |
498 | + | let bL = valueOrElse(getInteger(this, W(k)), 0) | |
499 | + | let bA = [if ((getBoolean(F(G)) != unit)) | |
482 | 500 | then true | |
483 | - | else | |
501 | + | else ab("invalid assets"), if ((bG > height)) | |
484 | 502 | then true | |
485 | - | else | |
503 | + | else ab("invalid height"), if ((bH == unit)) | |
486 | 504 | then true | |
487 | - | else | |
505 | + | else ab("finalization in progress"), if ((bJ > 0)) | |
488 | 506 | then true | |
489 | - | else | |
490 | - | if (( | |
507 | + | else ab("no vote")] | |
508 | + | if ((bA == bA)) | |
491 | 509 | then { | |
492 | - | let | |
493 | - | let | |
494 | - | $Tuple2(([IntegerEntry( | |
510 | + | let bQ = aR(G) | |
511 | + | let Y = toString(bp.caller) | |
512 | + | $Tuple2(([IntegerEntry(M(bp.caller, k), max([(bI - bJ), 0])), DeleteEntry(O(G, bp.caller, k)), IntegerEntry(Q(G, k), (bK - bJ)), IntegerEntry(W(k), (bL - bJ))] ++ bh(bQ, Y)), unit) | |
495 | 513 | } | |
496 | 514 | else throw("Strict value is not equal to itself.") | |
497 | 515 | } | |
498 | 516 | ||
499 | 517 | ||
500 | 518 | ||
501 | - | @Callable( | |
502 | - | func setEpochLength ( | |
503 | - | let | |
519 | + | @Callable(bp) | |
520 | + | func setEpochLength (bS) = { | |
521 | + | let bA = [br(bp), if ((bS > 0)) | |
504 | 522 | then true | |
505 | - | else | |
506 | - | if (( | |
507 | - | then $Tuple2([IntegerEntry( | |
523 | + | else ab("invalid epoch length")] | |
524 | + | if ((bA == bA)) | |
525 | + | then $Tuple2([IntegerEntry(i, bS)], unit) | |
508 | 526 | else throw("Strict value is not equal to itself.") | |
509 | 527 | } | |
510 | 528 | ||
511 | 529 | ||
512 | 530 | ||
513 | - | @Callable( | |
514 | - | func setMaxDepth ( | |
515 | - | let | |
531 | + | @Callable(bp) | |
532 | + | func setMaxDepth (bT) = { | |
533 | + | let bA = [br(bp), if ((bT > 0)) | |
516 | 534 | then true | |
517 | - | else | |
518 | - | if (( | |
519 | - | then $Tuple2([IntegerEntry( | |
535 | + | else ab("invalid max depth")] | |
536 | + | if ((bA == bA)) | |
537 | + | then $Tuple2([IntegerEntry(m, bT)], unit) | |
520 | 538 | else throw("Strict value is not equal to itself.") | |
521 | 539 | } | |
522 | 540 | ||
523 | 541 | ||
524 | 542 | ||
525 | - | @Callable( | |
526 | - | func processPoolBalanceINTERNAL ( | |
527 | - | let | |
528 | - | if (( | |
543 | + | @Callable(bp) | |
544 | + | func processPoolBalanceINTERNAL (bU) = { | |
545 | + | let bV = bs(bp) | |
546 | + | if ((bV == bV)) | |
529 | 547 | then { | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | if ($isInstanceOf( | |
540 | - | then | |
541 | - | else throw(($getType( | |
548 | + | let k = al(this, l) | |
549 | + | let bW = (k - 1) | |
550 | + | let G = an(bU) | |
551 | + | let bX = G | |
552 | + | let I = bX._1 | |
553 | + | let J = bX._2 | |
554 | + | let aL = aB(I, J) | |
555 | + | let bY = { | |
556 | + | let ak = invoke(ap, "checkBalance", [aL], nil) | |
557 | + | if ($isInstanceOf(ak, "Boolean")) | |
558 | + | then ak | |
559 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
542 | 560 | } | |
543 | - | let | |
544 | - | let | |
545 | - | then if (!( | |
561 | + | let bZ = !(valueOrElse(getBoolean(this, K(G, (bW - 1))), false)) | |
562 | + | let ca = if (!(bY)) | |
563 | + | then if (!(bZ)) | |
546 | 564 | then { | |
547 | - | let | |
548 | - | if (( | |
565 | + | let cb = invoke(ap, "deleteWxEmissionPoolLabel", [I, J], nil) | |
566 | + | if ((cb == cb)) | |
549 | 567 | then { | |
550 | - | let | |
551 | - | if (( | |
568 | + | let cc = invoke(ap, "modifyWeight", [aL, 0], nil) | |
569 | + | if ((cc == cc)) | |
552 | 570 | then { | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | if (( | |
571 | + | let cd = valueOrErrorMessage(az(I, J), Z("invalid assets"))._1 | |
572 | + | let ce = 3 | |
573 | + | let cf = invoke(ap, "managePool", [toString(cd), ce], nil) | |
574 | + | if ((cf == cf)) | |
557 | 575 | then { | |
558 | - | let | |
559 | - | ([IntegerEntry( | |
576 | + | let cg = ([DeleteEntry(F(G))] ++ bh(aQ, am(G))) | |
577 | + | ([IntegerEntry(U(G, bW), 0)] ++ cg) | |
560 | 578 | } | |
561 | 579 | else throw("Strict value is not equal to itself.") | |
562 | 580 | } | |
563 | 581 | else throw("Strict value is not equal to itself.") | |
564 | 582 | } | |
565 | 583 | else throw("Strict value is not equal to itself.") | |
566 | 584 | } | |
567 | - | else [BooleanEntry( | |
585 | + | else [BooleanEntry(K(G, bW), true)] | |
568 | 586 | else nil | |
569 | - | $Tuple2( | |
587 | + | $Tuple2(ca, unit) | |
570 | 588 | } | |
571 | 589 | else throw("Strict value is not equal to itself.") | |
572 | 590 | } | |
573 | 591 | ||
574 | 592 | ||
575 | 593 | ||
576 | - | @Callable( | |
577 | - | func processVoteINTERNAL ( | |
578 | - | let | |
579 | - | if (( | |
594 | + | @Callable(bp) | |
595 | + | func processVoteINTERNAL (bU,Y) = { | |
596 | + | let bV = bs(bp) | |
597 | + | if ((bV == bV)) | |
580 | 598 | then { | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
599 | + | let bt = valueOrErrorMessage(addressFromString(Y), Z(("processVoteINTERNAL: invalid user address " + Y))) | |
600 | + | let k = al(this, l) | |
601 | + | let bW = (k - 1) | |
602 | + | let bz = al(this, h) | |
603 | + | let bF = al(this, D(k)) | |
604 | + | let bG = (bF + bz) | |
605 | + | let ch = al(this, D(bW)) | |
606 | + | let ci = al(this, j(bW)) | |
607 | + | let cj = (ch + ci) | |
608 | + | let ck = if ((bW >= 0)) | |
591 | 609 | then true | |
592 | - | else | |
593 | - | if (( | |
610 | + | else ab("processVoteINTERNAL: invalid previous epoch") | |
611 | + | if ((ck == ck)) | |
594 | 612 | then { | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | if ($isInstanceOf( | |
602 | - | then | |
603 | - | else throw(($getType( | |
613 | + | let G = an(bU) | |
614 | + | let cl = G | |
615 | + | let I = cl._1 | |
616 | + | let J = cl._2 | |
617 | + | let bM = { | |
618 | + | let ak = invoke(this, "getUserGwxAmountAtHeight", [Y, bG], nil) | |
619 | + | if ($isInstanceOf(ak, "Int")) | |
620 | + | then ak | |
621 | + | else throw(($getType(ak) + " couldn't be cast to Int")) | |
604 | 622 | } | |
605 | - | let | |
606 | - | let | |
607 | - | if ($isInstanceOf( | |
608 | - | then | |
609 | - | else throw(($getType( | |
623 | + | let cm = { | |
624 | + | let ak = invoke(this, "getUserGwxAmountAtHeight", [Y, cj], nil) | |
625 | + | if ($isInstanceOf(ak, "Int")) | |
626 | + | then ak | |
627 | + | else throw(($getType(ak) + " couldn't be cast to Int")) | |
610 | 628 | } | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | let | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
629 | + | let bL = valueOrElse(getInteger(W(k)), 0) | |
630 | + | let cn = valueOrElse(getInteger(Q(G, k)), 0) | |
631 | + | let co = valueOrErrorMessage(getInteger(O(G, bt, bW)), Z((((("processVoteINTERNAL " + bU) + " ") + Y) + ": no previous vote"))) | |
632 | + | let bI = valueOrElse(getInteger(this, M(bt, k)), 0) | |
633 | + | let T = aB(I, J) | |
634 | + | let cp = valueOrElse(getInteger(S(T, bW)), 0) | |
635 | + | let by = addressFromStringValue(aj(this, s)) | |
636 | + | let cq = valueOrElse(getInteger(by, X(T, Y)), 0) | |
637 | + | let cr = if ((cq == 0)) | |
620 | 638 | then nil | |
621 | - | else [IntegerEntry( | |
622 | - | let | |
623 | - | let | |
624 | - | then fraction( | |
639 | + | else [IntegerEntry(S(T, bW), (cp + co))] | |
640 | + | let aL = aB(I, J) | |
641 | + | let bO = if ((cm > 0)) | |
642 | + | then fraction(co, bM, cm) | |
625 | 643 | else 0 | |
626 | - | let | |
627 | - | then [IntegerEntry( | |
628 | - | else | |
629 | - | $Tuple2(( | |
644 | + | let ca = if ((bO > 0)) | |
645 | + | then [IntegerEntry(O(G, bt, k), bO), IntegerEntry(W(k), (bL + bO)), IntegerEntry(Q(G, k), (cn + bO)), IntegerEntry(M(bt, k), (bI + bO))] | |
646 | + | else bh(aR(G), Y) | |
647 | + | $Tuple2((ca ++ cr), unit) | |
630 | 648 | } | |
631 | 649 | else throw("Strict value is not equal to itself.") | |
632 | 650 | } | |
633 | 651 | else throw("Strict value is not equal to itself.") | |
634 | 652 | } | |
635 | 653 | ||
636 | 654 | ||
637 | 655 | ||
638 | - | @Callable( | |
639 | - | func processPoolINTERNAL ( | |
640 | - | let | |
641 | - | if (( | |
656 | + | @Callable(bp) | |
657 | + | func processPoolINTERNAL (bU,cs) = { | |
658 | + | let bV = bs(bp) | |
659 | + | if ((bV == bV)) | |
642 | 660 | then { | |
643 | - | let | |
644 | - | let | |
645 | - | if ( | |
646 | - | then | |
647 | - | else ( | |
661 | + | let ct = { | |
662 | + | let cu = al(this, l) | |
663 | + | if (cs) | |
664 | + | then cu | |
665 | + | else (cu - 1) | |
648 | 666 | } | |
649 | - | let | |
667 | + | let ck = if ((ct >= 0)) | |
650 | 668 | then true | |
651 | - | else | |
652 | - | if (( | |
669 | + | else ab("processPoolINTERNAL: invalid target epoch") | |
670 | + | if ((ck == ck)) | |
653 | 671 | then { | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | if ($isInstanceOf( | |
663 | - | then | |
664 | - | else throw(($getType( | |
672 | + | let G = an(bU) | |
673 | + | let cv = G | |
674 | + | let I = cv._1 | |
675 | + | let J = cv._2 | |
676 | + | let by = addressFromStringValue(aj(this, s)) | |
677 | + | let aL = aB(I, J) | |
678 | + | let cw = { | |
679 | + | let ak = invoke(by, "usersListTraversal", [aL], nil) | |
680 | + | if ($isInstanceOf(ak, "Boolean")) | |
681 | + | then ak | |
682 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
665 | 683 | } | |
666 | - | if (( | |
667 | - | then if ( | |
684 | + | if ((cw == cw)) | |
685 | + | then if (cw) | |
668 | 686 | then $Tuple2(nil, true) | |
669 | 687 | else { | |
670 | - | let | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
688 | + | let cx = addressFromStringValue(valueOrErrorMessage(getString(ap, t), "invalid assets store contract")) | |
689 | + | let bL = valueOrElse(getInteger(this, W(ct)), 0) | |
690 | + | let cn = valueOrElse(getInteger(this, Q(G, ct)), 0) | |
691 | + | let cy = if ((bL == 0)) | |
674 | 692 | then 0 | |
675 | - | else fraction( | |
676 | - | let | |
677 | - | if (( | |
678 | - | then $Tuple2([IntegerEntry( | |
693 | + | else fraction(cn, b, bL) | |
694 | + | let cc = invoke(ap, "modifyWeight", [aL, cy], nil) | |
695 | + | if ((cc == cc)) | |
696 | + | then $Tuple2([IntegerEntry(U(G, ct), cy)], false) | |
679 | 697 | else throw("Strict value is not equal to itself.") | |
680 | 698 | } | |
681 | 699 | else throw("Strict value is not equal to itself.") | |
682 | 700 | } | |
683 | 701 | else throw("Strict value is not equal to itself.") | |
684 | 702 | } | |
685 | 703 | else throw("Strict value is not equal to itself.") | |
686 | 704 | } | |
687 | 705 | ||
688 | 706 | ||
689 | 707 | ||
690 | - | @Callable( | |
708 | + | @Callable(bp) | |
691 | 709 | func finalizeHelper () = { | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | if (if (if ((height >= | |
700 | - | then ( | |
710 | + | let cs = valueOrElse(getBoolean(A), false) | |
711 | + | let k = valueOrElse(getInteger(this, l), 0) | |
712 | + | let cz = (k - 1) | |
713 | + | let bF = al(this, D(k)) | |
714 | + | let bz = al(this, h) | |
715 | + | let bG = (bF + bz) | |
716 | + | let bH = getInteger(this, u) | |
717 | + | if (if (if ((height >= bG)) | |
718 | + | then (bH == unit) | |
701 | 719 | else false) | |
702 | - | then !( | |
720 | + | then !(cs) | |
703 | 721 | else false) | |
704 | 722 | then { | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | if ($isInstanceOf( | |
723 | + | let cA = (k + 1) | |
724 | + | let cB = getInteger(this, i) | |
725 | + | let cC = { | |
726 | + | let ag = cB | |
727 | + | if ($isInstanceOf(ag, "Int")) | |
710 | 728 | then { | |
711 | - | let | |
712 | - | [IntegerEntry( | |
729 | + | let bS = ag | |
730 | + | [IntegerEntry(h, bS), DeleteEntry(i)] | |
713 | 731 | } | |
714 | - | else if ($isInstanceOf( | |
732 | + | else if ($isInstanceOf(ag, "Unit")) | |
715 | 733 | then nil | |
716 | 734 | else throw("Match error") | |
717 | 735 | } | |
718 | - | $Tuple2(([IntegerEntry( | |
736 | + | $Tuple2(([IntegerEntry(D(cA), height), IntegerEntry(x, height), IntegerEntry(l, cA), IntegerEntry(u, d), IntegerEntry(j(k), bz)] ++ cC), true) | |
719 | 737 | } | |
720 | - | else if (if ( | |
721 | - | then ( | |
738 | + | else if (if (cs) | |
739 | + | then (bH == unit) | |
722 | 740 | else false) | |
723 | - | then $Tuple2([IntegerEntry( | |
724 | - | else if (( | |
741 | + | then $Tuple2([IntegerEntry(u, f)], true) | |
742 | + | else if ((bH == unit)) | |
725 | 743 | then $Tuple2(nil, false) | |
726 | - | else if (( | |
744 | + | else if ((bH == d)) | |
727 | 745 | then { | |
728 | - | let | |
729 | - | let | |
730 | - | if ($isInstanceOf( | |
746 | + | let cD = getString(v) | |
747 | + | let ag = cD | |
748 | + | if ($isInstanceOf(ag, "Unit")) | |
731 | 749 | then { | |
732 | - | let | |
733 | - | if ($isInstanceOf( | |
734 | - | then $Tuple2([IntegerEntry( | |
735 | - | else if ($isInstanceOf( | |
750 | + | let cE = getString(aT(aQ)) | |
751 | + | if ($isInstanceOf(cE, "Unit")) | |
752 | + | then $Tuple2([IntegerEntry(u, e), DeleteEntry(v)], true) | |
753 | + | else if ($isInstanceOf(cE, "String")) | |
736 | 754 | then { | |
737 | - | let | |
738 | - | $Tuple2([StringEntry( | |
755 | + | let cF = cE | |
756 | + | $Tuple2([StringEntry(v, cF)], true) | |
739 | 757 | } | |
740 | 758 | else throw("Match error") | |
741 | 759 | } | |
742 | - | else if ($isInstanceOf( | |
760 | + | else if ($isInstanceOf(ag, "String")) | |
743 | 761 | then { | |
744 | - | let | |
745 | - | let | |
746 | - | if (( | |
762 | + | let bU = ag | |
763 | + | let cG = getString(aZ(aQ, bU)) | |
764 | + | if ((cG == cG)) | |
747 | 765 | then { | |
748 | - | let | |
749 | - | if (( | |
766 | + | let cw = invoke(this, "processPoolBalanceINTERNAL", [bU], nil) | |
767 | + | if ((cw == cw)) | |
750 | 768 | then { | |
751 | - | let | |
752 | - | if ($isInstanceOf( | |
753 | - | then $Tuple2([IntegerEntry( | |
754 | - | else if ($isInstanceOf( | |
769 | + | let cE = cG | |
770 | + | if ($isInstanceOf(cE, "Unit")) | |
771 | + | then $Tuple2([IntegerEntry(u, e), DeleteEntry(v)], true) | |
772 | + | else if ($isInstanceOf(cE, "String")) | |
755 | 773 | then { | |
756 | - | let | |
757 | - | $Tuple2([StringEntry( | |
774 | + | let cF = cE | |
775 | + | $Tuple2([StringEntry(v, cF)], true) | |
758 | 776 | } | |
759 | 777 | else throw("Match error") | |
760 | 778 | } | |
761 | 779 | else throw("Strict value is not equal to itself.") | |
762 | 780 | } | |
763 | 781 | else throw("Strict value is not equal to itself.") | |
764 | 782 | } | |
765 | 783 | else throw("Match error") | |
766 | 784 | } | |
767 | - | else if (( | |
785 | + | else if ((bH == e)) | |
768 | 786 | then { | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | if ($isInstanceOf( | |
787 | + | let cD = getString(v) | |
788 | + | let cH = getString(w) | |
789 | + | let ag = cD | |
790 | + | if ($isInstanceOf(ag, "Unit")) | |
773 | 791 | then { | |
774 | - | let | |
775 | - | if ($isInstanceOf( | |
776 | - | then $Tuple2([IntegerEntry( | |
777 | - | else if ($isInstanceOf( | |
792 | + | let cE = getString(aT(aQ)) | |
793 | + | if ($isInstanceOf(cE, "Unit")) | |
794 | + | then $Tuple2([IntegerEntry(u, f), DeleteEntry(v), DeleteEntry(w)], true) | |
795 | + | else if ($isInstanceOf(cE, "String")) | |
778 | 796 | then { | |
779 | - | let | |
780 | - | $Tuple2([StringEntry( | |
797 | + | let cI = cE | |
798 | + | $Tuple2([StringEntry(v, cI)], true) | |
781 | 799 | } | |
782 | 800 | else throw("Match error") | |
783 | 801 | } | |
784 | - | else if ($isInstanceOf( | |
802 | + | else if ($isInstanceOf(ag, "String")) | |
785 | 803 | then { | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | if ($isInstanceOf( | |
791 | - | then getString( | |
792 | - | else if ($isInstanceOf( | |
804 | + | let bU = ag | |
805 | + | let G = an(bU) | |
806 | + | let cJ = { | |
807 | + | let cE = cH | |
808 | + | if ($isInstanceOf(cE, "Unit")) | |
809 | + | then getString(aT(aR(G))) | |
810 | + | else if ($isInstanceOf(cE, "String")) | |
793 | 811 | then { | |
794 | - | let | |
795 | - | let | |
796 | - | if (( | |
812 | + | let cK = cE | |
813 | + | let cL = getString(aZ(aR(G), cK)) | |
814 | + | if ((cL == cL)) | |
797 | 815 | then { | |
798 | - | let | |
799 | - | if (( | |
800 | - | then | |
816 | + | let cM = invoke(this, "processVoteINTERNAL", [bU, cK], nil) | |
817 | + | if ((cM == cM)) | |
818 | + | then cL | |
801 | 819 | else throw("Strict value is not equal to itself.") | |
802 | 820 | } | |
803 | 821 | else throw("Strict value is not equal to itself.") | |
804 | 822 | } | |
805 | 823 | else throw("Match error") | |
806 | 824 | } | |
807 | - | let | |
808 | - | if ($isInstanceOf( | |
825 | + | let cE = cJ | |
826 | + | if ($isInstanceOf(cE, "Unit")) | |
809 | 827 | then { | |
810 | - | let | |
811 | - | let | |
812 | - | if ($isInstanceOf( | |
813 | - | then $Tuple2([IntegerEntry( | |
814 | - | else if ($isInstanceOf( | |
828 | + | let cG = getString(aZ(aQ, bU)) | |
829 | + | let cN = cG | |
830 | + | if ($isInstanceOf(cN, "Unit")) | |
831 | + | then $Tuple2([IntegerEntry(u, f), DeleteEntry(v), DeleteEntry(w)], true) | |
832 | + | else if ($isInstanceOf(cN, "String")) | |
815 | 833 | then { | |
816 | - | let | |
817 | - | $Tuple2([StringEntry( | |
834 | + | let bl = cN | |
835 | + | $Tuple2([StringEntry(v, bl), DeleteEntry(w)], true) | |
818 | 836 | } | |
819 | 837 | else throw("Match error") | |
820 | 838 | } | |
821 | - | else if ($isInstanceOf( | |
839 | + | else if ($isInstanceOf(cE, "String")) | |
822 | 840 | then { | |
823 | - | let | |
824 | - | $Tuple2([StringEntry( | |
841 | + | let cO = cE | |
842 | + | $Tuple2([StringEntry(w, cO)], true) | |
825 | 843 | } | |
826 | 844 | else throw("Match error") | |
827 | 845 | } | |
828 | 846 | else throw("Match error") | |
829 | 847 | } | |
830 | - | else if (( | |
848 | + | else if ((bH == f)) | |
831 | 849 | then { | |
832 | - | let | |
833 | - | let | |
834 | - | if ($isInstanceOf( | |
850 | + | let cD = getString(v) | |
851 | + | let ag = cD | |
852 | + | if ($isInstanceOf(ag, "Unit")) | |
835 | 853 | then { | |
836 | - | let | |
837 | - | if ($isInstanceOf( | |
854 | + | let cE = getString(aT(aQ)) | |
855 | + | if ($isInstanceOf(cE, "Unit")) | |
838 | 856 | then { | |
839 | - | let | |
840 | - | then [DeleteEntry( | |
841 | - | else [DeleteEntry( | |
842 | - | let | |
843 | - | if (( | |
844 | - | then $Tuple2( | |
857 | + | let ca = if (cs) | |
858 | + | then [DeleteEntry(u), DeleteEntry(A)] | |
859 | + | else [DeleteEntry(u), BooleanEntry(E(cz), true), IntegerEntry(y, k), IntegerEntry(z, bF)] | |
860 | + | let cP = aO() | |
861 | + | if ((cP == cP)) | |
862 | + | then $Tuple2(ca, true) | |
845 | 863 | else throw("Strict value is not equal to itself.") | |
846 | 864 | } | |
847 | - | else if ($isInstanceOf( | |
865 | + | else if ($isInstanceOf(cE, "String")) | |
848 | 866 | then { | |
849 | - | let | |
850 | - | $Tuple2([StringEntry( | |
867 | + | let cF = cE | |
868 | + | $Tuple2([StringEntry(v, cF)], true) | |
851 | 869 | } | |
852 | 870 | else throw("Match error") | |
853 | 871 | } | |
854 | - | else if ($isInstanceOf( | |
872 | + | else if ($isInstanceOf(ag, "String")) | |
855 | 873 | then { | |
856 | - | let | |
857 | - | let | |
858 | - | if (( | |
874 | + | let bU = ag | |
875 | + | let cG = getString(aZ(aQ, bU)) | |
876 | + | if ((cG == cG)) | |
859 | 877 | then { | |
860 | - | let | |
861 | - | let | |
862 | - | if ($isInstanceOf( | |
863 | - | then | |
864 | - | else throw(($getType( | |
878 | + | let cw = { | |
879 | + | let ak = invoke(this, "processPoolINTERNAL", [bU, cs], nil) | |
880 | + | if ($isInstanceOf(ak, "Boolean")) | |
881 | + | then ak | |
882 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
865 | 883 | } | |
866 | - | if (( | |
867 | - | then if ( | |
884 | + | if ((cw == cw)) | |
885 | + | then if (cw) | |
868 | 886 | then $Tuple2(nil, true) | |
869 | 887 | else { | |
870 | - | let | |
871 | - | if ($isInstanceOf( | |
888 | + | let cE = cG | |
889 | + | if ($isInstanceOf(cE, "Unit")) | |
872 | 890 | then { | |
873 | - | let | |
874 | - | then [DeleteEntry( | |
875 | - | else [DeleteEntry( | |
876 | - | let | |
877 | - | if (( | |
878 | - | then $Tuple2( | |
891 | + | let ca = if (cs) | |
892 | + | then [DeleteEntry(u), DeleteEntry(A), DeleteEntry(v)] | |
893 | + | else [DeleteEntry(u), BooleanEntry(E(cz), true), IntegerEntry(y, k), IntegerEntry(z, bF), DeleteEntry(v)] | |
894 | + | let cP = aO() | |
895 | + | if ((cP == cP)) | |
896 | + | then $Tuple2(ca, true) | |
879 | 897 | else throw("Strict value is not equal to itself.") | |
880 | 898 | } | |
881 | - | else if ($isInstanceOf( | |
899 | + | else if ($isInstanceOf(cE, "String")) | |
882 | 900 | then { | |
883 | - | let | |
884 | - | $Tuple2([StringEntry( | |
901 | + | let cF = cE | |
902 | + | $Tuple2([StringEntry(v, cF)], true) | |
885 | 903 | } | |
886 | 904 | else throw("Match error") | |
887 | 905 | } | |
888 | 906 | else throw("Strict value is not equal to itself.") | |
889 | 907 | } | |
890 | 908 | else throw("Strict value is not equal to itself.") | |
891 | 909 | } | |
892 | 910 | else throw("Match error") | |
893 | 911 | } | |
894 | - | else | |
912 | + | else ab("finalization is broken") | |
895 | 913 | } | |
896 | 914 | ||
897 | 915 | ||
898 | 916 | ||
899 | - | @Callable( | |
900 | - | func finalizeWrapper ( | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | if ($isInstanceOf( | |
905 | - | then | |
906 | - | else throw(($getType( | |
917 | + | @Callable(bp) | |
918 | + | func finalizeWrapper (cQ) = { | |
919 | + | let cR = addressFromStringValue(getStringValue(this, p)) | |
920 | + | let cS = { | |
921 | + | let ak = invoke(this, "finalizeHelper", nil, nil) | |
922 | + | if ($isInstanceOf(ak, "Boolean")) | |
923 | + | then ak | |
924 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
907 | 925 | } | |
908 | - | if (( | |
909 | - | then if (!( | |
910 | - | then if (( | |
911 | - | then | |
926 | + | if ((cS == cS)) | |
927 | + | then if (!(cS)) | |
928 | + | then if ((cQ == 0)) | |
929 | + | then ab("Current voting is not over yet") | |
912 | 930 | else { | |
913 | - | let | |
914 | - | if (( | |
931 | + | let cT = invoke(cR, "finalize", nil, nil) | |
932 | + | if ((cT == cT)) | |
915 | 933 | then $Tuple2(nil, unit) | |
916 | 934 | else throw("Strict value is not equal to itself.") | |
917 | 935 | } | |
918 | 936 | else { | |
919 | - | let | |
920 | - | if (( | |
937 | + | let cU = valueOrElse(getInteger(this, m), c) | |
938 | + | if ((cU > cQ)) | |
921 | 939 | then { | |
922 | - | let | |
923 | - | if (( | |
940 | + | let cT = invoke(this, "finalizeWrapper", [(cQ + 1)], nil) | |
941 | + | if ((cT == cT)) | |
924 | 942 | then $Tuple2(nil, unit) | |
925 | 943 | else throw("Strict value is not equal to itself.") | |
926 | 944 | } | |
927 | 945 | else $Tuple2(nil, unit) | |
928 | 946 | } | |
929 | 947 | else throw("Strict value is not equal to itself.") | |
930 | 948 | } | |
931 | 949 | ||
932 | 950 | ||
933 | 951 | ||
934 | - | @Callable( | |
952 | + | @Callable(bp) | |
935 | 953 | func finalize () = { | |
936 | - | let | |
937 | - | if (( | |
954 | + | let cT = invoke(this, "finalizeWrapper", [0], nil) | |
955 | + | if ((cT == cT)) | |
938 | 956 | then $Tuple2(nil, unit) | |
939 | 957 | else throw("Strict value is not equal to itself.") | |
940 | 958 | } | |
941 | 959 | ||
942 | 960 | ||
943 | 961 | ||
944 | - | @Callable( | |
945 | - | func containsNodeREADONLY ( | |
962 | + | @Callable(bp) | |
963 | + | func containsNodeREADONLY (aU,aY) = $Tuple2(nil, ba(aU, aY)) | |
946 | 964 | ||
947 | 965 | ||
948 | 966 | ||
949 | - | @Callable( | |
950 | - | func insertNode ( | |
951 | - | let | |
952 | - | if (( | |
953 | - | then $Tuple2( | |
967 | + | @Callable(bp) | |
968 | + | func insertNode (aU,aY) = { | |
969 | + | let bV = br(bp) | |
970 | + | if ((bV == bV)) | |
971 | + | then $Tuple2(be(aU, aY), unit) | |
954 | 972 | else throw("Strict value is not equal to itself.") | |
955 | 973 | } | |
956 | 974 | ||
957 | 975 | ||
958 | 976 | ||
959 | - | @Callable( | |
960 | - | func deleteNode ( | |
961 | - | let | |
962 | - | if (( | |
963 | - | then $Tuple2( | |
977 | + | @Callable(bp) | |
978 | + | func deleteNode (aU,aY) = { | |
979 | + | let bV = br(bp) | |
980 | + | if ((bV == bV)) | |
981 | + | then $Tuple2(bh(aU, aY), unit) | |
964 | 982 | else throw("Strict value is not equal to itself.") | |
965 | 983 | } | |
966 | 984 | ||
967 | 985 | ||
968 | 986 | ||
969 | - | @Callable( | |
987 | + | @Callable(bp) | |
970 | 988 | func isFinalizationInProgress () = { | |
971 | - | let | |
972 | - | let | |
973 | - | $Tuple2(nil, | |
989 | + | let bH = getInteger(this, u) | |
990 | + | let cV = (bH != unit) | |
991 | + | $Tuple2(nil, cV) | |
974 | 992 | } | |
975 | 993 | ||
976 | 994 | ||
977 | 995 | ||
978 | - | @Callable( | |
979 | - | func deletePool ( | |
980 | - | let | |
996 | + | @Callable(bp) | |
997 | + | func deletePool (I,J) = { | |
998 | + | let bV = if (if ((bp.caller == ap)) | |
981 | 999 | then true | |
982 | - | else | |
1000 | + | else br(bp)) | |
983 | 1001 | then true | |
984 | - | else | |
985 | - | if (( | |
1002 | + | else ab("Permission denied") | |
1003 | + | if ((bV == bV)) | |
986 | 1004 | then { | |
987 | - | let | |
988 | - | let | |
989 | - | let | |
990 | - | let | |
991 | - | then | |
1005 | + | let aU = "pools" | |
1006 | + | let G = $Tuple2(I, J) | |
1007 | + | let aY = makeString([I, J], a) | |
1008 | + | let ca = if (ba(aU, aY)) | |
1009 | + | then bh(aU, aY) | |
992 | 1010 | else nil | |
993 | - | ([DeleteEntry( | |
1011 | + | ([DeleteEntry(F(G))] ++ ca) | |
994 | 1012 | } | |
995 | 1013 | else throw("Strict value is not equal to itself.") | |
996 | 1014 | } | |
997 | 1015 | ||
998 | 1016 | ||
999 | 1017 | ||
1000 | - | @Callable(bj) | |
1001 | - | func resume (F,G) = { | |
1002 | - | let aF = av(F, G) | |
1003 | - | let cQ = { | |
1004 | - | let ah = invoke(am, "checkBalance", [aF], nil) | |
1005 | - | if ($isInstanceOf(ah, "Boolean")) | |
1006 | - | then ah | |
1007 | - | else throw(($getType(ah) + " couldn't be cast to Boolean")) | |
1018 | + | @Callable(bp) | |
1019 | + | func resume (I,J,cW) = { | |
1020 | + | let cX = valueOrErrorMessage(az(I, J), Z("invalid assets")) | |
1021 | + | let cd = cX._1 | |
1022 | + | let aL = cX._2 | |
1023 | + | let cY = bp.payments[0] | |
1024 | + | let cx = addressFromStringValue(getStringValue(this, t)) | |
1025 | + | let cZ = "%s__config" | |
1026 | + | let da = 1 | |
1027 | + | let bx = addressFromStringValue(aj(this, r)) | |
1028 | + | let db = fromBase58String(split(getStringValue(bx, cZ), a)[da]) | |
1029 | + | let dc = { | |
1030 | + | let ak = invoke(cx, "isVerifiedREADONLY", [I], nil) | |
1031 | + | if ($isInstanceOf(ak, "Boolean")) | |
1032 | + | then ak | |
1033 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
1008 | 1034 | } | |
1009 | - | let cR = bj.payments[0] | |
1010 | - | let cr = addressFromStringValue(getStringValue(this, s)) | |
1011 | - | let cS = "%s__config" | |
1012 | - | let cT = 1 | |
1013 | - | let br = addressFromStringValue(ag(this, q)) | |
1014 | - | let cU = fromBase58String(split(getStringValue(br, cS), a)[cT]) | |
1015 | - | let cV = { | |
1016 | - | let ah = invoke(cr, "isVerifiedREADONLY", [F], nil) | |
1017 | - | if ($isInstanceOf(ah, "Boolean")) | |
1018 | - | then ah | |
1019 | - | else throw(($getType(ah) + " couldn't be cast to Boolean")) | |
1035 | + | let dd = { | |
1036 | + | let ak = invoke(cx, "isVerifiedREADONLY", [J], nil) | |
1037 | + | if ($isInstanceOf(ak, "Boolean")) | |
1038 | + | then ak | |
1039 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
1020 | 1040 | } | |
1021 | - | let cW = { | |
1022 | - | let ah = invoke(cr, "isVerifiedREADONLY", [G], nil) | |
1023 | - | if ($isInstanceOf(ah, "Boolean")) | |
1024 | - | then ah | |
1025 | - | else throw(($getType(ah) + " couldn't be cast to Boolean")) | |
1026 | - | } | |
1027 | - | let cX = valueOrErrorMessage(getInteger(this, m), "invalid resumption fee") | |
1028 | - | let bu = [if (cQ) | |
1041 | + | let de = valueOrErrorMessage(getInteger(this, n), "invalid resumption fee") | |
1042 | + | let bA = [if ((cY.assetId == db)) | |
1029 | 1043 | then true | |
1030 | - | else | |
1044 | + | else ab("invalid fee payment asset id"), if ((cY.amount == de)) | |
1031 | 1045 | then true | |
1032 | - | else Y("1 payment is required"), if ((cR.assetId == cU)) | |
1033 | - | then true | |
1034 | - | else Y("invalid payment asset id"), if ((cR.amount == cX)) | |
1035 | - | then true | |
1036 | - | else Y("invalid payment amount"), if (if (cV) | |
1037 | - | then cW | |
1046 | + | else ab("invalid fee payment amount"), if (if (dc) | |
1047 | + | then dd | |
1038 | 1048 | else false) | |
1039 | 1049 | then true | |
1040 | - | else | |
1041 | - | if (( | |
1050 | + | else ab("both assets should be verified")] | |
1051 | + | if ((bA == bA)) | |
1042 | 1052 | then { | |
1043 | - | let | |
1044 | - | if (( | |
1053 | + | let df = assetBalance(this, aL) | |
1054 | + | if ((df == df)) | |
1045 | 1055 | then { | |
1046 | - | let D = $Tuple2(F, G) | |
1047 | - | let bv = ([BooleanEntry(C(D), true)] ++ aY(aK, aj(D))) | |
1048 | - | $Tuple2(bv, unit) | |
1056 | + | let dg = false | |
1057 | + | let dh = if ((size(bp.payments) == 1)) | |
1058 | + | then { | |
1059 | + | let di = { | |
1060 | + | let ak = invoke(ap, "checkBalance", [ay(aL)], nil) | |
1061 | + | if ($isInstanceOf(ak, "Boolean")) | |
1062 | + | then ak | |
1063 | + | else throw(($getType(ak) + " couldn't be cast to Boolean")) | |
1064 | + | } | |
1065 | + | if (di) | |
1066 | + | then true | |
1067 | + | else ab("assets should be attached") | |
1068 | + | } | |
1069 | + | else if ((size(bp.payments) == 2)) | |
1070 | + | then { | |
1071 | + | let dj = valueOrErrorMessage(scriptHash(cd), Z("pool address is not scripted")) | |
1072 | + | let dk = fromBase64String(valueOrErrorMessage(getString(ap, C()), Z("allowed lp stable script hash is not set"))) | |
1073 | + | let dl = (dj == dk) | |
1074 | + | let dm = if (dl) | |
1075 | + | then "putOneTknV2" | |
1076 | + | else "putOneTkn" | |
1077 | + | invoke(cd, dm, [cW, dg], [bp.payments[1]]) | |
1078 | + | } | |
1079 | + | else if ((size(bp.payments) == 3)) | |
1080 | + | then invoke(cd, "put", [cW, dg], [bp.payments[1], bp.payments[2]]) | |
1081 | + | else ab("invalid payments size") | |
1082 | + | if ((dh == dh)) | |
1083 | + | then { | |
1084 | + | let dn = assetBalance(this, aL) | |
1085 | + | if ((dn == dn)) | |
1086 | + | then { | |
1087 | + | let do = (dn - df) | |
1088 | + | let dp = if ((do > 0)) | |
1089 | + | then [ScriptTransfer(bp.caller, do, aL)] | |
1090 | + | else nil | |
1091 | + | let dq = invoke(ap, "setWxEmissionPoolLabel", [I, J], nil) | |
1092 | + | if ((dq == dq)) | |
1093 | + | then { | |
1094 | + | let G = $Tuple2(I, J) | |
1095 | + | let bB = ([BooleanEntry(F(G), true)] ++ be(aQ, am(G))) | |
1096 | + | $Tuple2((bB ++ dp), unit) | |
1097 | + | } | |
1098 | + | else throw("Strict value is not equal to itself.") | |
1099 | + | } | |
1100 | + | else throw("Strict value is not equal to itself.") | |
1101 | + | } | |
1102 | + | else throw("Strict value is not equal to itself.") | |
1049 | 1103 | } | |
1050 | 1104 | else throw("Strict value is not equal to itself.") | |
1051 | 1105 | } | |
1052 | 1106 | else throw("Strict value is not equal to itself.") | |
1053 | 1107 | } | |
1054 | 1108 | ||
1055 | 1109 | ||
1056 | - | @Verifier( | |
1057 | - | func | |
1058 | - | let | |
1059 | - | let | |
1060 | - | if ($isInstanceOf( | |
1110 | + | @Verifier(dr) | |
1111 | + | func ds () = { | |
1112 | + | let dt = { | |
1113 | + | let ag = bm() | |
1114 | + | if ($isInstanceOf(ag, "ByteVector")) | |
1061 | 1115 | then { | |
1062 | - | let | |
1063 | - | | |
1116 | + | let bq = ag | |
1117 | + | bq | |
1064 | 1118 | } | |
1065 | - | else if ($isInstanceOf( | |
1066 | - | then | |
1119 | + | else if ($isInstanceOf(ag, "Unit")) | |
1120 | + | then dr.senderPublicKey | |
1067 | 1121 | else throw("Match error") | |
1068 | 1122 | } | |
1069 | - | sigVerify( | |
1123 | + | sigVerify(dr.bodyBytes, dr.proofs[0], dt) | |
1070 | 1124 | } | |
1071 | 1125 |
github/deemru/w8io/169f3d6 425.57 ms ◑