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