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