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