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