tx · 2LXEu9BDz44fN8TGA2hGjt6ZrTX2YHP3RWvkShvMvGXX 3N3gSFrTwgiLAFZHMuJrEttht1nPhnkpvjs: -0.01700000 Waves 2022.11.22 14:28 [2328265] smart account 3N3gSFrTwgiLAFZHMuJrEttht1nPhnkpvjs > SELF 0.00000000 Waves
{ "type": 13, "id": "2LXEu9BDz44fN8TGA2hGjt6ZrTX2YHP3RWvkShvMvGXX", "fee": 1700000, "feeAssetId": null, "timestamp": 1669116476908, "version": 2, "chainId": 84, "sender": "3N3gSFrTwgiLAFZHMuJrEttht1nPhnkpvjs", "senderPublicKey": "5mttAQ8x5ig98rgbv6rZmwXQ2pAYSwgCkQPSVBcr7BVp", "proofs": [ "4ySLA4PwxdPvXQRP9KxdD6yHFGE5Kn6kZ8TQJCPmst1HFoRw2orYMhjYXzSUxnvd7bj3rpXHZr4FFM4ARaEpit5y" ], "script": "base64:BgImCAISBAoCAQESBwoFCAgBARgSBwoFCAgBARgSAwoBARIDCgEBEgBVAAtyZXZpc2lvbk51bQIAAANTRVACAl9fAAdMSVNUU0VQAgE6AA1ERUZBVUxUUVVPUlVNAKDCHgAKVVJMUEFUVEVSTgIaaHR0cHM6Ly9mb3J1bS5uZXV0cmluby5hdC8ACE1BWFRJVExFAKABAAZNQVhVUkwA+gEADU1BWFZPVElOR1RJTUUAgJDkwAQABU1VTFQ2AMCEPQAOREVGQVVMVFBBWU1FTlQAgJTr3AMAFERFRkFVTFRDUkVBVElPTkdOU0JUAICU69wDAApQQVNUTUFSR0lOAIC6twMADEZVVFVSRU1BUkdJTgDAy8kCABJnb3ZJZHhQcm9wb3NhbFR4SWQAAQAKZ292SWR4VHlwZQACAAxnb3ZJZHhBdXRob3IAAwAJZ292SWR4VXJsAAQAC2dvdklkeFRpdGxlAAUAEmdvdklkeENyZWF0aW9uVGltZQAGAAtnb3ZJZHhTdGFydAAHAAlnb3ZJZHhFbmQACAALZ292SWR4VHhJZHMACQAMZ292SWR4UXVvcnVtAAoADWdvdklke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CAIJAQxJbnRlZ2VyRW50cnkCCQEUa2V5TGFzdFVwZGF0ZVZlcnNpb24ABQd2ZXJzaW9uCQDMCAIJAQtTdHJpbmdFbnRyeQIJARlrZXlQcm9wb3NhbFN0YXR1c0RhdGFCeUlkAQUKcHJvcG9zYWxJZAkBEXN0YXR1c0FwcGx5U2NyaXB0AQULZHluYW1pY0RhdGEJAMwIAgkBEEV4ZWN1dGlvbkhpc3RvcnkDBQd2ZXJzaW9uCQCRAwIFCHByb3BEYXRhBQtnb3ZJZHhUaXRsZQkAkQMCBQhwcm9wRGF0YQUJZ292SWR4VXJsBQNuaWwFB2lnbm9yZWQACuC5Nw==", "height": 2328265, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 4143eFgP3jkCfZ5wMJFHanTcR1H5ymyoRibdGtpXcTJs Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let a = "" | |
5 | + | ||
6 | + | let b = "__" | |
7 | + | ||
8 | + | let c = ":" | |
9 | + | ||
10 | + | let d = 500000 | |
11 | + | ||
12 | + | let e = "https://forum.neutrino.at/" | |
13 | + | ||
14 | + | let f = 160 | |
15 | + | ||
16 | + | let g = 250 | |
17 | + | ||
18 | + | let h = 1209600000 | |
19 | + | ||
20 | + | let i = 1000000 | |
21 | + | ||
22 | + | let j = 1000000000 | |
23 | + | ||
24 | + | let k = 1000000000 | |
25 | + | ||
26 | + | let l = 7200000 | |
27 | + | ||
28 | + | let m = 5400000 | |
29 | + | ||
30 | + | let n = 1 | |
31 | + | ||
32 | + | let o = 2 | |
33 | + | ||
34 | + | let p = 3 | |
35 | + | ||
36 | + | let q = 4 | |
37 | + | ||
38 | + | let r = 5 | |
39 | + | ||
40 | + | let s = 6 | |
41 | + | ||
42 | + | let t = 7 | |
43 | + | ||
44 | + | let u = 8 | |
45 | + | ||
46 | + | let v = 9 | |
47 | + | ||
48 | + | let w = 10 | |
49 | + | ||
50 | + | let x = 11 | |
51 | + | ||
52 | + | let y = 1 | |
53 | + | ||
54 | + | let z = 2 | |
55 | + | ||
56 | + | let A = 3 | |
57 | + | ||
58 | + | let B = 4 | |
59 | + | ||
60 | + | let C = 5 | |
61 | + | ||
62 | + | let D = 6 | |
63 | + | ||
64 | + | let E = 7 | |
65 | + | ||
66 | + | func F (G,H) = valueOrErrorMessage(getString(G, H), makeString(["mandatory ", toString(G), ".", H, " is not defined"], "")) | |
67 | + | ||
68 | + | ||
69 | + | func I (H,J) = valueOrElse(getInteger(this, H), J) | |
70 | + | ||
71 | + | ||
72 | + | let K = 1 | |
73 | + | ||
74 | + | let L = 2 | |
75 | + | ||
76 | + | let M = 3 | |
77 | + | ||
78 | + | let N = 4 | |
79 | + | ||
80 | + | let O = 5 | |
81 | + | ||
82 | + | let P = 6 | |
83 | + | ||
84 | + | let Q = 7 | |
85 | + | ||
86 | + | let R = 8 | |
87 | + | ||
88 | + | let S = 9 | |
89 | + | ||
90 | + | let T = 10 | |
91 | + | ||
92 | + | let U = 11 | |
93 | + | ||
94 | + | let V = 12 | |
95 | + | ||
96 | + | let W = 13 | |
97 | + | ||
98 | + | func X () = "%s%s__config__controlAddress" | |
99 | + | ||
100 | + | ||
101 | + | func Y () = "%s__controlConfig" | |
102 | + | ||
103 | + | ||
104 | + | func Z (aa) = split_4C(F(aa, Y()), b) | |
105 | + | ||
106 | + | ||
107 | + | func ab (ac,ad) = valueOrErrorMessage(addressFromString(ac[ad]), ("Control cfg doesn't contain address at index " + toString(ad))) | |
108 | + | ||
109 | + | ||
110 | + | let ae = addressFromStringValue(valueOrElse(getString(this, X()), "3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP")) | |
111 | + | ||
112 | + | let ac = Z(ae) | |
113 | + | ||
114 | + | let af = ab(ac, K) | |
115 | + | ||
116 | + | let ag = ab(ac, U) | |
117 | + | ||
118 | + | func ah () = "%s__quorumRequired" | |
119 | + | ||
120 | + | ||
121 | + | func ai () = "%s__paymentRequired" | |
122 | + | ||
123 | + | ||
124 | + | func aj () = "%s__gNsbtRequired" | |
125 | + | ||
126 | + | ||
127 | + | func ak () = "%s__proposalId" | |
128 | + | ||
129 | + | ||
130 | + | func al () = "%s__updateVersion" | |
131 | + | ||
132 | + | ||
133 | + | func am (an) = ("%s%d__proposalStatusData__" + toString(an)) | |
134 | + | ||
135 | + | ||
136 | + | func ao (an) = ("%s%d__proposalData__" + toString(an)) | |
137 | + | ||
138 | + | ||
139 | + | func ap (an,aq) = makeString(["%s%d%d", "votesByOpt", toString(an), toString(aq)], b) | |
140 | + | ||
141 | + | ||
142 | + | func ar (an,as) = makeString(["%s%d%s", "votesByUser", toString(an), as], b) | |
143 | + | ||
144 | + | ||
145 | + | func at (an,as) = makeString(["%s%d%s", "optionByUser", toString(an), as], b) | |
146 | + | ||
147 | + | ||
148 | + | func au () = "%s__applyInProgress" | |
149 | + | ||
150 | + | ||
151 | + | func av (aw) = ("%s%s__proposalIdByUrl__" + toBase64String(toBytes(aw))) | |
152 | + | ||
153 | + | ||
154 | + | func ax (an) = ("%s%d__numVoters__" + toString(an)) | |
155 | + | ||
156 | + | ||
157 | + | func ay () = "%s%s%s__stats__avg__uniqueVoters" | |
158 | + | ||
159 | + | ||
160 | + | func az () = "%s%s%s__stats__avg__gnsbtVoted" | |
161 | + | ||
162 | + | ||
163 | + | func aA () = "%s%s__stats__uniqueAuthors" | |
164 | + | ||
165 | + | ||
166 | + | func aB (aC) = ("%s%s__numProposalsByAuthor__" + aC) | |
167 | + | ||
168 | + | ||
169 | + | func aD (aE) = ("%s%d__applyHistory__" + toString(aE)) | |
170 | + | ||
171 | + | ||
172 | + | func aF (aG) = { | |
173 | + | let aH = aG | |
174 | + | if ($isInstanceOf(aH, "List[Any]")) | |
175 | + | then { | |
176 | + | let aI = aH | |
177 | + | aI | |
178 | + | } | |
179 | + | else throw("fail to cast into List[Any]") | |
180 | + | } | |
181 | + | ||
182 | + | ||
183 | + | func aJ (aG) = { | |
184 | + | let aH = aG | |
185 | + | if ($isInstanceOf(aH, "Int")) | |
186 | + | then { | |
187 | + | let aK = aH | |
188 | + | aK | |
189 | + | } | |
190 | + | else throw("fail to cast into Int") | |
191 | + | } | |
192 | + | ||
193 | + | ||
194 | + | func aL (aM,aN,aO,aP,aQ,aR,aS) = makeString(["%b%d%d%d%b%d%b", toString(aM), toString(aN), toString(aO), toString(aP), toString(aQ), toString(aR), toString(aS)], b) | |
195 | + | ||
196 | + | ||
197 | + | func aT (aU,aV,aW,aw,aX,aY,aZ,ba,bb,bc,bd) = makeString(["%s%s%s%s%s%d%d%d%s%d%s", aU, aV, aW, aw, aX, toString(aY), toString(aZ), toString(ba), bb, toString(bc), bd], b) | |
198 | + | ||
199 | + | ||
200 | + | func be (bf) = if ((size(bf) > 20)) | |
201 | + | then throw(("Too many transactions: " + toString(size(bf)))) | |
202 | + | else { | |
203 | + | func bg (bh,bi) = if ((size(fromBase58String(bi)) != 32)) | |
204 | + | then throw(("Wrong txId: " + bi)) | |
205 | + | else if ((bh == "")) | |
206 | + | then bi | |
207 | + | else ((bh + c) + bi) | |
208 | + | ||
209 | + | let bj = bf | |
210 | + | let bk = size(bj) | |
211 | + | let bl = "" | |
212 | + | func bm (bn,bo) = if ((bo >= bk)) | |
213 | + | then bn | |
214 | + | else bg(bn, bj[bo]) | |
215 | + | ||
216 | + | func bp (bn,bo) = if ((bo >= bk)) | |
217 | + | then bn | |
218 | + | else throw("List size exceeds 20") | |
219 | + | ||
220 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
221 | + | } | |
222 | + | ||
223 | + | ||
224 | + | let bq = 0 | |
225 | + | ||
226 | + | let br = 1 | |
227 | + | ||
228 | + | func bs (bt) = { | |
229 | + | let bu = aF(invoke(ag, "gnsbtInfoSYSREADONLY", [bt, 0, 0], nil)) | |
230 | + | let bv = aF(bu[2]) | |
231 | + | let bw = aJ(bv[2]) | |
232 | + | let bx = aJ(bv[3]) | |
233 | + | let by = aJ(bu[9]) | |
234 | + | let bz = aJ(bu[6]) | |
235 | + | [(bx + bz), (bw + by)] | |
236 | + | } | |
237 | + | ||
238 | + | ||
239 | + | func bA (bB,aU,aV,aW,aw,aX,aZ,ba,bC,bf,bD) = if ((bB.assetId != unit)) | |
240 | + | then throw("Allowed WAVES payment only!") | |
241 | + | else { | |
242 | + | let bE = I(ai(), j) | |
243 | + | if ((bE > bB.amount)) | |
244 | + | then throw(("Payment attached should be at least " + toString(bE))) | |
245 | + | else if ((value(indexOf(aw, e)) != 0)) | |
246 | + | then throw("Invalid url") | |
247 | + | else if ((size(aw) > g)) | |
248 | + | then throw("Url too long!") | |
249 | + | else { | |
250 | + | let bF = getInteger(av(aw)) | |
251 | + | if (isDefined(bF)) | |
252 | + | then throw(("Voting with such forum link is already registered by id=" + toString(value(bF)))) | |
253 | + | else if ((aX == "")) | |
254 | + | then throw("Title is empty") | |
255 | + | else if ((size(aX) > f)) | |
256 | + | then throw("Too long title") | |
257 | + | else { | |
258 | + | let aY = lastBlock.timestamp | |
259 | + | if ((aY > aZ)) | |
260 | + | then throw(((("votingStartTime=" + toString(aZ)) + " < proposalTime=") + toString(aY))) | |
261 | + | else if ((aZ > ba)) | |
262 | + | then throw(((("votingEndTime=" + toString(ba)) + " < votingStartTime=") + toString(aZ))) | |
263 | + | else if (((ba - aZ) > h)) | |
264 | + | then throw(((("Voting period exceeds max: " + toString((ba - aZ))) + " > ") + toString(h))) | |
265 | + | else { | |
266 | + | let bb = if ((aV == "IDEA")) | |
267 | + | then "" | |
268 | + | else be(bf) | |
269 | + | if ((1 >= size(bD))) | |
270 | + | then throw("Too few choices to vote") | |
271 | + | else { | |
272 | + | let bG = bs(aW) | |
273 | + | let bH = bG[bq] | |
274 | + | let bI = bG[br] | |
275 | + | let bJ = I(aj(), k) | |
276 | + | if ((bJ > bI)) | |
277 | + | then throw((("You need at least " + toString(bJ)) + " gNsbt to create voting")) | |
278 | + | else { | |
279 | + | let bK = invoke(af, "acceptWaves", nil, [bB]) | |
280 | + | if ((bK == bK)) | |
281 | + | then { | |
282 | + | let bL = I(ah(), d) | |
283 | + | let bc = fraction(bL, bH, i) | |
284 | + | let an = (I(ak(), 0) + 1) | |
285 | + | let bM = (I(aB(aW), 0) + 1) | |
286 | + | let bN = (I(aA(), 0) + (if ((bM == 1)) | |
287 | + | then 1 | |
288 | + | else 0)) | |
289 | + | let bO = makeString(bD, c) | |
290 | + | $Tuple2([IntegerEntry(ak(), an), IntegerEntry(av(aw), an), StringEntry(am(an), aL(false, 0, 0, 0, false, 0, false)), StringEntry(ao(an), aT(aU, aV, aW, aw, aX, aY, aZ, ba, bb, bc, bO)), IntegerEntry(aB(aW), bM), IntegerEntry(aA(), bN)], aU) | |
291 | + | } | |
292 | + | else throw("Strict value is not equal to itself.") | |
293 | + | } | |
294 | + | } | |
295 | + | } | |
296 | + | } | |
297 | + | } | |
298 | + | } | |
299 | + | ||
300 | + | ||
301 | + | func bP (an,bD,bQ,bR,bS,bT,bU) = { | |
302 | + | func bV (bh,bW) = { | |
303 | + | let ad = value(indexOf(bD, bW)) | |
304 | + | let bX = if (bQ) | |
305 | + | then if ((ad == bT)) | |
306 | + | then bU | |
307 | + | else I(ap(an, ad), 0) | |
308 | + | else if ((ad == value(bR))) | |
309 | + | then bS | |
310 | + | else if ((ad == bT)) | |
311 | + | then bU | |
312 | + | else I(ap(an, ad), 0) | |
313 | + | if ((bh._2 > bX)) | |
314 | + | then bh | |
315 | + | else $Tuple2(ad, bX) | |
316 | + | } | |
317 | + | ||
318 | + | let bj = bD | |
319 | + | let bk = size(bj) | |
320 | + | let bl = $Tuple2(0, 0) | |
321 | + | func bm (bn,bo) = if ((bo >= bk)) | |
322 | + | then bn | |
323 | + | else bV(bn, bj[bo]) | |
324 | + | ||
325 | + | func bp (bn,bo) = if ((bo >= bk)) | |
326 | + | then bn | |
327 | + | else throw("List size exceeds 10") | |
328 | + | ||
329 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
330 | + | } | |
331 | + | ||
332 | + | ||
333 | + | func bY (bZ,ca,cb,cc) = makeString(["%b%d%d%d%b%d%b", toString(ca), toString(cb._1), toString(cb._2), toString(cc), bZ[C], bZ[D], bZ[E]], b) | |
334 | + | ||
335 | + | ||
336 | + | func cd (bZ) = makeString(["%b%d%d%d%b%d%b", bZ[y], bZ[z], bZ[A], bZ[B], "true", bZ[D], bZ[E]], b) | |
337 | + | ||
338 | + | ||
339 | + | func ce (an,aX,cf) = { | |
340 | + | let bH = bs("")[bq] | |
341 | + | let cg = 500000 | |
342 | + | StringEntry(aD(lastBlock.timestamp), makeString(["%d%d%d%s%s", toString(an), toString(bH), toString(cg), aX, cf], b)) | |
343 | + | } | |
344 | + | ||
345 | + | ||
346 | + | @Callable(aK) | |
347 | + | func castVote (an,ch) = { | |
348 | + | let ci = toString(aK.caller) | |
349 | + | let cj = split(F(this, am(an)), b) | |
350 | + | if ((cj[E] == "true")) | |
351 | + | then throw("Voting is canceled by team") | |
352 | + | else { | |
353 | + | let ck = split(F(this, ao(an)), b) | |
354 | + | let cl = parseIntValue(ck[t]) | |
355 | + | let cm = parseIntValue(ck[u]) | |
356 | + | let cn = lastBlock.timestamp | |
357 | + | if ((cl > cn)) | |
358 | + | then throw("Voting not started yet") | |
359 | + | else if ((cn >= cm)) | |
360 | + | then throw("Voting already finished") | |
361 | + | else { | |
362 | + | let co = split(ck[x], c) | |
363 | + | let cp = size(co) | |
364 | + | if ((1 >= cp)) | |
365 | + | then throw("Too few choices to vote") | |
366 | + | else if ((ch >= cp)) | |
367 | + | then throw(("Unknown choice! Must be 0.." + toString((cp - 1)))) | |
368 | + | else { | |
369 | + | let bG = bs(ci) | |
370 | + | let cq = bG[br] | |
371 | + | if ((0 >= cq)) | |
372 | + | then throw("no gnsbt to vote") | |
373 | + | else { | |
374 | + | let bH = bG[bq] | |
375 | + | let bR = getInteger(at(an, ci)) | |
376 | + | let cr = if (!(isDefined(bR))) | |
377 | + | then 0 | |
378 | + | else I(ar(an, ci), 0) | |
379 | + | let cs = if (isDefined(bR)) | |
380 | + | then I(ap(an, value(bR)), 0) | |
381 | + | else 0 | |
382 | + | let ct = I(ap(an, ch), 0) | |
383 | + | let cu = parseIntValue(cj[B]) | |
384 | + | let cv = if (!(isDefined(bR))) | |
385 | + | then 0 | |
386 | + | else ((cs - cr) + (if ((value(bR) == ch)) | |
387 | + | then cq | |
388 | + | else 0)) | |
389 | + | let bU = if (if (isDefined(bR)) | |
390 | + | then (value(bR) == ch) | |
391 | + | else false) | |
392 | + | then cv | |
393 | + | else (ct + cq) | |
394 | + | let cw = ((cu - cr) + cq) | |
395 | + | let cx = (cw >= parseIntValue(ck[w])) | |
396 | + | let cy = I(ax(an), 0) | |
397 | + | let cz = I(ay(), 0) | |
398 | + | let cA = getIntegerValue(ak()) | |
399 | + | let cB = if ((cr == 0)) | |
400 | + | then 1 | |
401 | + | else 0 | |
402 | + | let cC = (cz + fraction(cB, i, cA)) | |
403 | + | let cD = I(az(), 0) | |
404 | + | let cE = (cD + ((cq - cr) / cA)) | |
405 | + | let bQ = if (!(isDefined(bR))) | |
406 | + | then true | |
407 | + | else (value(bR) == ch) | |
408 | + | let bS = if (bQ) | |
409 | + | then nil | |
410 | + | else [IntegerEntry(ap(an, value(bR)), cv)] | |
411 | + | let cF = bP(an, co, bQ, bR, cv, ch, bU) | |
412 | + | $Tuple2(([IntegerEntry(at(an, ci), ch), IntegerEntry(ar(an, ci), cq), IntegerEntry(ap(an, ch), bU), IntegerEntry(ax(an), (cy + cB)), IntegerEntry(ay(), cC), IntegerEntry(az(), cE), StringEntry(am(an), bY(cj, cx, cF, cw))] ++ bS), unit) | |
413 | + | } | |
414 | + | } | |
415 | + | } | |
416 | + | } | |
417 | + | } | |
418 | + | ||
419 | + | ||
420 | + | ||
421 | + | @Callable(aK) | |
422 | + | func initiateIdeaVoting (aw,aX,aZ,ba,bD) = if ((size(aK.payments) != 1)) | |
423 | + | then throw("Exactly one payment required") | |
424 | + | else bA(value(aK.payments[0]), toBase58String(aK.transactionId), "IDEA", toString(aK.caller), aw, aX, aZ, ba, "PENDING", nil, bD) | |
425 | + | ||
426 | + | ||
427 | + | ||
428 | + | @Callable(aK) | |
429 | + | func initiateUpdateVoting (aw,aX,aZ,ba,bf) = if ((size(aK.payments) != 1)) | |
430 | + | then throw("Exactly one payment required") | |
431 | + | else if ((1 > size(bf))) | |
432 | + | then throw("Transactions list is empty") | |
433 | + | else bA(value(aK.payments[0]), toBase58String(aK.transactionId), "UPDATE", toString(aK.caller), aw, aX, aZ, ba, "PENDING", bf, ["NO", "YES"]) | |
434 | + | ||
435 | + | ||
436 | + | ||
437 | + | @Callable(aK) | |
438 | + | func cancelVoting (an) = if ((aK.caller != this)) | |
439 | + | then throw("not authorized") | |
440 | + | else { | |
441 | + | let cG = F(this, am(an)) | |
442 | + | let cH = ((take(cG, value(lastIndexOf(cG, b))) + b) + "true") | |
443 | + | $Tuple2([StringEntry(am(an), cH)], unit) | |
444 | + | } | |
445 | + | ||
446 | + | ||
447 | + | ||
448 | + | @Callable(aK) | |
449 | + | func applyUpdate (an) = { | |
450 | + | let ck = split(F(this, ao(an)), b) | |
451 | + | let cm = parseIntValue(ck[u]) | |
452 | + | let cn = lastBlock.timestamp | |
453 | + | if ((cm > cn)) | |
454 | + | then throw("Voting is not finished yet") | |
455 | + | else if (("UPDATE" != ck[o])) | |
456 | + | then throw("Only UPDATE type can be applied") | |
457 | + | else { | |
458 | + | let cj = split(F(this, am(an)), b) | |
459 | + | if ((cj[E] == "true")) | |
460 | + | then throw("Voting is canceled") | |
461 | + | else if ((cj[y] != "true")) | |
462 | + | then throw("Voting status invalid") | |
463 | + | else if ((cj[z] != "1")) | |
464 | + | then throw("Winner is 'NO' - nothing to apply") | |
465 | + | else if ((cj[C] == "true")) | |
466 | + | then throw("Scripts are already applied") | |
467 | + | else { | |
468 | + | let cI = parseIntValue(cj[D]) | |
469 | + | if (((cn - l) > cI)) | |
470 | + | then throw((("Scripts timestamp=" + toString(cI)) + " is too far in the past, max 2 hrs allowed")) | |
471 | + | else if ((cI > (cn + m))) | |
472 | + | then throw((("Scripts timestamp=" + toString(cI)) + " is too far in the future, max 1.5 hrs allowed")) | |
473 | + | else { | |
474 | + | let cJ = I(au(), -1) | |
475 | + | if ((cJ != -1)) | |
476 | + | then throw((("proposalId=" + toString(cJ)) + " is already being applied. Finish it first!")) | |
477 | + | else { | |
478 | + | let cK = invoke(ae, "callEmergencyShutdown", ["Applying Governance UPDATE"], nil) | |
479 | + | if ((cK == cK)) | |
480 | + | then $Tuple2([IntegerEntry(au(), an)], unit) | |
481 | + | else throw("Strict value is not equal to itself.") | |
482 | + | } | |
483 | + | } | |
484 | + | } | |
485 | + | } | |
486 | + | } | |
487 | + | ||
488 | + | ||
489 | + | ||
490 | + | @Callable(aK) | |
491 | + | func finishApply () = { | |
492 | + | let an = valueOrErrorMessage(getInteger(au()), "No apply in progress, nothing to finish") | |
493 | + | let ck = split(F(this, ao(an)), b) | |
494 | + | let bf = split(ck[v], c) | |
495 | + | let cj = split(F(this, am(an)), b) | |
496 | + | if ((cj[C] == "true")) | |
497 | + | then throw("Scripts are already applied") | |
498 | + | else { | |
499 | + | func cL (bh,bi) = if (!(isDefined(transactionHeightById(fromBase58String(bi))))) | |
500 | + | then throw(("NOT applied txId: " + bi)) | |
501 | + | else unit | |
502 | + | ||
503 | + | let cM = { | |
504 | + | let bj = bf | |
505 | + | let bk = size(bj) | |
506 | + | let bl = unit | |
507 | + | func bm (bn,bo) = if ((bo >= bk)) | |
508 | + | then bn | |
509 | + | else cL(bn, bj[bo]) | |
510 | + | ||
511 | + | func bp (bn,bo) = if ((bo >= bk)) | |
512 | + | then bn | |
513 | + | else throw("List size exceeds 20") | |
514 | + | ||
515 | + | bp(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bm(bl, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
516 | + | } | |
517 | + | let cN = (I(al(), 0) + 1) | |
518 | + | $Tuple2([DeleteEntry(au()), IntegerEntry(al(), cN), StringEntry(am(an), cd(cj)), ce(cN, ck[r], ck[q])], cM) | |
519 | + | } | |
520 | + | } | |
521 | + | ||
522 | + |
github/deemru/w8io/169f3d6 63.30 ms ◑