tx · 8ntMWPr84s9hnvJSjZPWBt7EZnpFXJKDGN1oz7EJYywh 3N6oQmUanp4TWuHnv5rma4WveVub63JRFB2: -0.01200000 Waves 2023.06.28 20:30 [2642805] smart account 3N6oQmUanp4TWuHnv5rma4WveVub63JRFB2 > SELF 0.00000000 Waves
{ "type": 13, "id": "8ntMWPr84s9hnvJSjZPWBt7EZnpFXJKDGN1oz7EJYywh", "fee": 1200000, "feeAssetId": null, "timestamp": 1687973482981, "version": 2, "chainId": 84, "sender": "3N6oQmUanp4TWuHnv5rma4WveVub63JRFB2", "senderPublicKey": "EM2pooK6eEzhzFXZFGd2phMRus6f1M5GxBsawNk9oi37", "proofs": [ "63i2xFybEtc5DYnAngxAACY5FPAHSSkaPbPZLrKEF9FBFLQDPdCyDJcxjjTthQcjAfg7eg8EpumCs89vkaNJZsoi" ], "script": "base64:BgIbCAISBAoCCAESBAoCAQESBgoECAEBGBIDCgEBNQEVa2V5VXNlckd3bFJlbGVhc2VUaW1lAQh1c2VyQWRkcgkArAICAholcyVzX191c2VyR3dsUmVsZWFzZVRpbWVfXwUIdXNlckFkZHIAC0lkeEVmZlRvdGFsAAAACklkeEVmZlVzZXIAAQAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAFWRlZmF1bHRSZXN0QWRkcmVzc1N0cgQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAIjM1BRQ3V2RmJ2aDRMa1BVbnJuVTF6M2puYkExcDltM1dOaHYDCQAAAgEBVAUHJG1hdGNoMAIjM011bWtHR3p0Q0tBWHBXRHF4a2Rkb2ZxWFNVYnFRa3ZTSnkJAAIBAg1Vbmtub3duIGNoYWluAANTRVACAl9fAAVNVUxUNgDAhD0ABVNTSVpFABkABU1TSVpFAGQABUxTSVpFAOEBAAZYTFNJWkUAkAMAB1hYTFNJWkUA8QQBD2dldFN0cmluZ09yRmFpbAIHYWRkcmVzcwNrZXkJARN2YWx1ZU9yRXJyb3JNZXNzY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F0ZWREYXRhCQCsAgIJAKwCAgkArwICBQtjdXJyZW50RGF0YQkBBXZhbHVlAQkAtwkCBQtjdXJyZW50RGF0YQUDU0VQBQNTRVACBHRydWUJAJQKAgkAzAgCCQELU3RyaW5nRW50cnkCCQEZa2V5UHJvcG9zYWxTdGF0dXNEYXRhQnlJZAEFCnByb3Bvc2FsSWQFC3VwZGF0ZWREYXRhBQNuaWwFBHVuaXQAOLL5Sg==", "height": 2642805, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7D25JRQWLTTnH8LN1AcJn6HcDP8YGHw74ukhB5qSnzQP Next: 53M6FQUSbp5Y1Zxr2eRXfquntmLipG9eGNbnmF4fxjug Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | ||
4 | + | func a (b) = ("%s%s__userGwlReleaseTime__" + b) | |
5 | 5 | ||
6 | - | let b = { | |
7 | - | let c = a | |
8 | - | if ((base58'2W' == c)) | |
6 | + | ||
7 | + | let c = 0 | |
8 | + | ||
9 | + | let d = 1 | |
10 | + | ||
11 | + | let e = take(drop(this.bytes, 1), 1) | |
12 | + | ||
13 | + | let f = { | |
14 | + | let g = e | |
15 | + | if ((base58'2W' == g)) | |
9 | 16 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
10 | - | else if ((base58'2T' == | |
17 | + | else if ((base58'2T' == g)) | |
11 | 18 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
12 | 19 | else throw("Unknown chain") | |
13 | 20 | } | |
14 | 21 | ||
15 | - | let | |
22 | + | let h = "__" | |
16 | 23 | ||
17 | - | let | |
24 | + | let i = 1000000 | |
18 | 25 | ||
19 | - | let | |
26 | + | let j = 25 | |
20 | 27 | ||
21 | - | let | |
28 | + | let k = 100 | |
22 | 29 | ||
23 | - | let | |
30 | + | let l = 225 | |
24 | 31 | ||
25 | - | let | |
32 | + | let m = 400 | |
26 | 33 | ||
27 | - | let | |
34 | + | let n = 625 | |
28 | 35 | ||
29 | - | let k = 1 | |
30 | - | ||
31 | - | func l (m,n) = valueOrErrorMessage(getString(m, n), makeString(["mandatory ", toString(m), ".", n, " is not defined"], "")) | |
36 | + | func o (p,q) = valueOrErrorMessage(getString(p, q), makeString(["mandatory ", toString(p), ".", q, " is not defined"], "")) | |
32 | 37 | ||
33 | 38 | ||
34 | - | func | |
39 | + | func r (q,s) = valueOrElse(getInteger(this, q), s) | |
35 | 40 | ||
36 | 41 | ||
37 | - | let | |
42 | + | let t = 1 | |
38 | 43 | ||
39 | - | func | |
44 | + | func u () = "%s__restConfig" | |
40 | 45 | ||
41 | 46 | ||
42 | - | func | |
47 | + | func v () = "%s__restAddr" | |
43 | 48 | ||
44 | 49 | ||
45 | - | func | |
50 | + | func w (x) = split_4C(o(x, u()), h) | |
46 | 51 | ||
47 | 52 | ||
48 | - | func | |
53 | + | func y (z,A) = valueOrErrorMessage(addressFromString(z[A]), ("Rest cfg doesn't contain address at index " + toString(A))) | |
49 | 54 | ||
50 | 55 | ||
51 | - | let | |
56 | + | let B = addressFromStringValue(valueOrElse(getString(this, v()), f)) | |
52 | 57 | ||
53 | - | let | |
58 | + | let z = w(B) | |
54 | 59 | ||
55 | - | let | |
60 | + | let C = y(z, t) | |
56 | 61 | ||
57 | - | func A (B) = ("stakedLandsByOwner_" + B) | |
62 | + | let D = 1 | |
63 | + | ||
64 | + | func E () = "resTypesProportions" | |
58 | 65 | ||
59 | 66 | ||
60 | - | func | |
67 | + | func F (G) = ("stakedLandsByOwner_" + G) | |
61 | 68 | ||
62 | 69 | ||
63 | - | func D (E) = ("%s%s__userGwlReleaseTime__" + E) | |
64 | - | ||
65 | - | ||
66 | - | func F (G) = { | |
67 | - | let c = G | |
68 | - | if (("S" == c)) | |
69 | - | then f | |
70 | - | else if (("M" == c)) | |
71 | - | then g | |
72 | - | else if (("L" == c)) | |
73 | - | then h | |
74 | - | else if (("XL" == c)) | |
75 | - | then i | |
76 | - | else if (("XXL" == c)) | |
77 | - | then j | |
70 | + | func H (I) = { | |
71 | + | let g = I | |
72 | + | if (("S" == g)) | |
73 | + | then j | |
74 | + | else if (("M" == g)) | |
75 | + | then k | |
76 | + | else if (("L" == g)) | |
77 | + | then l | |
78 | + | else if (("XL" == g)) | |
79 | + | then m | |
80 | + | else if (("XXL" == g)) | |
81 | + | then n | |
78 | 82 | else throw("Unknown land size") | |
79 | 83 | } | |
80 | 84 | ||
81 | 85 | ||
82 | - | let H = 0 | |
83 | - | ||
84 | - | let I = 1 | |
85 | - | ||
86 | 86 | func J (K) = { | |
87 | - | let L = split(valueOrElse(getString( | |
87 | + | let L = split(valueOrElse(getString(C, E()), "0_0_0_0_0_0"), "_") | |
88 | 88 | func M (N,O) = (N + parseIntValue(O)) | |
89 | 89 | ||
90 | 90 | let P = { | |
104 | 104 | let X = if ((K == "")) | |
105 | 105 | then 0 | |
106 | 106 | else { | |
107 | - | let Y = getString( | |
107 | + | let Y = getString(C, F(K)) | |
108 | 108 | let Z = if (isDefined(Y)) | |
109 | 109 | then split_51C(value(Y), "_") | |
110 | 110 | else nil | |
111 | 111 | func aa (N,ab) = { | |
112 | 112 | let ac = value(assetInfo(fromBase58String(ab))) | |
113 | - | let | |
114 | - | (N + | |
113 | + | let I = split(ac.description, "_")[D] | |
114 | + | (N + H(I)) | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | let Q = Z | |
168 | 168 | func av (au) = ("%s%d__proposalData__" + toString(au)) | |
169 | 169 | ||
170 | 170 | ||
171 | - | func aw (au,ax) = makeString(["%s%d%d", "votesByOpt", toString(au), toString(ax)], | |
171 | + | func aw (au,ax) = makeString(["%s%d%d", "votesByOpt", toString(au), toString(ax)], h) | |
172 | 172 | ||
173 | 173 | ||
174 | - | func ay (au, | |
174 | + | func ay (au,b) = makeString(["%s%d%s", "votesByUser", toString(au), b], h) | |
175 | 175 | ||
176 | 176 | ||
177 | - | func az (au, | |
177 | + | func az (au,b) = makeString(["%s%d%s", "optionByUser", toString(au), b], h) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aA (au) = ("%s%d__numVoters__" + toString(au)) | |
186 | 186 | func aC () = "%s%s%s__stats__avg__gwlVoted" | |
187 | 187 | ||
188 | 188 | ||
189 | - | func aD (aE,aF,aG,aH,aI) = makeString(["%b%d%d%d%b", toString(aE), toString(aF), toString(aG), toString(aH), toString(aI)], | |
189 | + | func aD (aE,aF,aG,aH,aI) = makeString(["%b%d%d%d%b", toString(aE), toString(aF), toString(aG), toString(aH), toString(aI)], h) | |
190 | 190 | ||
191 | 191 | ||
192 | - | func aJ (aK,aL,aM,aN,aO,aP,aQ) = makeString_2C(["%s%s%d%d%d%d%s", aK, aL, toString(aM), toString(aN), toString(aO), toString(aP), aQ], | |
192 | + | func aJ (aK,aL,aM,aN,aO,aP,aQ) = makeString_2C(["%s%s%d%d%d%d%s", aK, aL, toString(aM), toString(aN), toString(aO), toString(aP), aQ], h) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func aR (au,aS,aT,aU,aV,aW,aX) = { | |
196 | 196 | func aY (N,aZ) = { | |
197 | - | let | |
197 | + | let A = value(indexOf(aS, aZ)) | |
198 | 198 | let ba = if (aT) | |
199 | - | then if (( | |
199 | + | then if ((A == aW)) | |
200 | 200 | then aX | |
201 | - | else | |
202 | - | else if (( | |
201 | + | else r(aw(au, A), 0) | |
202 | + | else if ((A == value(aU))) | |
203 | 203 | then aV | |
204 | - | else if (( | |
204 | + | else if ((A == aW)) | |
205 | 205 | then aX | |
206 | - | else | |
206 | + | else r(aw(au, A), 0) | |
207 | 207 | if ((N._2 > ba)) | |
208 | 208 | then N | |
209 | - | else $Tuple2( | |
209 | + | else $Tuple2(A, ba) | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | let Q = aS | |
224 | 224 | } | |
225 | 225 | ||
226 | 226 | ||
227 | - | func bb (bc,bd,be,bf) = makeString(["%b%d%d%d%b", toString(bd), toString(be._1), toString(be._2), toString(bf), bc], | |
227 | + | func bb (bc,bd,be,bf) = makeString(["%b%d%d%d%b", toString(bd), toString(be._1), toString(be._2), toString(bf), bc], h) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | @Callable(bg) | |
231 | 231 | func constructorV1 (bh,bi) = if ((bg.caller != this)) | |
232 | 232 | then throw("Permission denied") | |
233 | - | else [StringEntry( | |
233 | + | else [StringEntry(v(), bh), IntegerEntry(aq(), bi)] | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | ||
237 | 237 | @Callable(bg) | |
238 | 238 | func castVote (au,bj) = { | |
239 | 239 | let bk = toString(bg.caller) | |
240 | - | let bl = split( | |
240 | + | let bl = split(o(this, at(au)), h) | |
241 | 241 | if ((bl[ap] == "true")) | |
242 | 242 | then throw("Voting is canceled by team") | |
243 | 243 | else { | |
244 | - | let bm = split_4C( | |
244 | + | let bm = split_4C(o(this, av(au)), h) | |
245 | 245 | let bn = parseIntValue(bm[ak]) | |
246 | 246 | let bo = parseIntValue(bm[al]) | |
247 | 247 | let bp = lastBlock.timestamp | |
258 | 258 | then throw(("Unknown choice! Must be 0.." + toString((br - 1)))) | |
259 | 259 | else { | |
260 | 260 | let bs = J(bk) | |
261 | - | let bt = bs[ | |
261 | + | let bt = bs[d] | |
262 | 262 | if ((0 >= bt)) | |
263 | 263 | then throw("You need staked lands to vote") | |
264 | 264 | else { | |
265 | - | let bu = bs[ | |
265 | + | let bu = bs[c] | |
266 | 266 | let aU = getInteger(az(au, bk)) | |
267 | 267 | let bv = if (!(isDefined(aU))) | |
268 | 268 | then 0 | |
269 | - | else | |
269 | + | else r(ay(au, bk), 0) | |
270 | 270 | let bw = if (isDefined(aU)) | |
271 | - | then | |
271 | + | then r(aw(au, value(aU)), 0) | |
272 | 272 | else 0 | |
273 | - | let bx = | |
273 | + | let bx = r(aw(au, bj), 0) | |
274 | 274 | let by = parseIntValue(bl[ao]) | |
275 | 275 | let bz = if (!(isDefined(aU))) | |
276 | 276 | then 0 | |
284 | 284 | else (bx + bt) | |
285 | 285 | let bA = ((by - bv) + bt) | |
286 | 286 | let bB = (bA >= parseIntValue(bm[am])) | |
287 | - | let bC = | |
288 | - | let bD = | |
287 | + | let bC = r(aA(au), 0) | |
288 | + | let bD = r(aB(), 0) | |
289 | 289 | let bE = ((getIntegerValue(ar()) - valueOrElse(getInteger(as()), aj)) + 1) | |
290 | 290 | let bF = if ((bv == 0)) | |
291 | 291 | then 1 | |
292 | 292 | else 0 | |
293 | - | let bG = (bD + fraction(bF, | |
294 | - | let bH = | |
293 | + | let bG = (bD + fraction(bF, i, bE)) | |
294 | + | let bH = r(aC(), 0) | |
295 | 295 | let bI = (bH + ((bt - bv) / bE)) | |
296 | 296 | let aT = if (!(isDefined(aU))) | |
297 | 297 | then true | |
300 | 300 | then nil | |
301 | 301 | else [IntegerEntry(aw(au, value(aU)), bz)] | |
302 | 302 | let bJ = aR(au, bq, aT, aU, bz, bj, aX) | |
303 | - | let bK = max([bo, | |
304 | - | $Tuple2(([IntegerEntry(az(au, bk), bj), IntegerEntry(ay(au, bk), bt), IntegerEntry(aw(au, bj), aX), IntegerEntry(aA(au), (bC + bF)), IntegerEntry( | |
303 | + | let bK = max([bo, r(a(bk), 0)]) | |
304 | + | $Tuple2(([IntegerEntry(az(au, bk), bj), IntegerEntry(ay(au, bk), bt), IntegerEntry(aw(au, bj), aX), IntegerEntry(aA(au), (bC + bF)), IntegerEntry(a(bk), bK), IntegerEntry(aB(), bG), IntegerEntry(aC(), bI), StringEntry(at(au), bb(bl[ap], bB, bJ, bA))] ++ aV), unit) | |
305 | 305 | } | |
306 | 306 | } | |
307 | 307 | } | |
333 | 333 | then throw("Too few choices to vote") | |
334 | 334 | else { | |
335 | 335 | let bs = J("") | |
336 | - | let bL = bs[ | |
337 | - | let bM = | |
338 | - | let bN = fraction(bM, bL, | |
339 | - | let au = ( | |
336 | + | let bL = bs[c] | |
337 | + | let bM = r(aq(), ag) | |
338 | + | let bN = fraction(bM, bL, i) | |
339 | + | let au = (r(ar(), 0) + 1) | |
340 | 340 | let bO = makeString(aS, af) | |
341 | 341 | $Tuple2([IntegerEntry(ar(), au), StringEntry(at(au), aD(false, 0, 0, 0, false)), StringEntry(av(au), aJ(aK, toBase16String(toBytes(aL)), aM, aN, aO, bN, bO))], aK) | |
342 | 342 | } | |
349 | 349 | func cancelVoting (au) = if ((bg.caller != this)) | |
350 | 350 | then throw("not authorized") | |
351 | 351 | else { | |
352 | - | let bP = | |
353 | - | let bQ = ((take(bP, value(lastIndexOf(bP, | |
352 | + | let bP = o(this, at(au)) | |
353 | + | let bQ = ((take(bP, value(lastIndexOf(bP, h))) + h) + "true") | |
354 | 354 | $Tuple2([StringEntry(at(au), bQ)], unit) | |
355 | 355 | } | |
356 | 356 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | ||
4 | + | func a (b) = ("%s%s__userGwlReleaseTime__" + b) | |
5 | 5 | ||
6 | - | let b = { | |
7 | - | let c = a | |
8 | - | if ((base58'2W' == c)) | |
6 | + | ||
7 | + | let c = 0 | |
8 | + | ||
9 | + | let d = 1 | |
10 | + | ||
11 | + | let e = take(drop(this.bytes, 1), 1) | |
12 | + | ||
13 | + | let f = { | |
14 | + | let g = e | |
15 | + | if ((base58'2W' == g)) | |
9 | 16 | then "3PQCuvFbvh4LkPUnrnU1z3jnbA1p9m3WNhv" | |
10 | - | else if ((base58'2T' == | |
17 | + | else if ((base58'2T' == g)) | |
11 | 18 | then "3MumkGGztCKAXpWDqxkddofqXSUbqQkvSJy" | |
12 | 19 | else throw("Unknown chain") | |
13 | 20 | } | |
14 | 21 | ||
15 | - | let | |
22 | + | let h = "__" | |
16 | 23 | ||
17 | - | let | |
24 | + | let i = 1000000 | |
18 | 25 | ||
19 | - | let | |
26 | + | let j = 25 | |
20 | 27 | ||
21 | - | let | |
28 | + | let k = 100 | |
22 | 29 | ||
23 | - | let | |
30 | + | let l = 225 | |
24 | 31 | ||
25 | - | let | |
32 | + | let m = 400 | |
26 | 33 | ||
27 | - | let | |
34 | + | let n = 625 | |
28 | 35 | ||
29 | - | let k = 1 | |
30 | - | ||
31 | - | func l (m,n) = valueOrErrorMessage(getString(m, n), makeString(["mandatory ", toString(m), ".", n, " is not defined"], "")) | |
36 | + | func o (p,q) = valueOrErrorMessage(getString(p, q), makeString(["mandatory ", toString(p), ".", q, " is not defined"], "")) | |
32 | 37 | ||
33 | 38 | ||
34 | - | func | |
39 | + | func r (q,s) = valueOrElse(getInteger(this, q), s) | |
35 | 40 | ||
36 | 41 | ||
37 | - | let | |
42 | + | let t = 1 | |
38 | 43 | ||
39 | - | func | |
44 | + | func u () = "%s__restConfig" | |
40 | 45 | ||
41 | 46 | ||
42 | - | func | |
47 | + | func v () = "%s__restAddr" | |
43 | 48 | ||
44 | 49 | ||
45 | - | func | |
50 | + | func w (x) = split_4C(o(x, u()), h) | |
46 | 51 | ||
47 | 52 | ||
48 | - | func | |
53 | + | func y (z,A) = valueOrErrorMessage(addressFromString(z[A]), ("Rest cfg doesn't contain address at index " + toString(A))) | |
49 | 54 | ||
50 | 55 | ||
51 | - | let | |
56 | + | let B = addressFromStringValue(valueOrElse(getString(this, v()), f)) | |
52 | 57 | ||
53 | - | let | |
58 | + | let z = w(B) | |
54 | 59 | ||
55 | - | let | |
60 | + | let C = y(z, t) | |
56 | 61 | ||
57 | - | func A (B) = ("stakedLandsByOwner_" + B) | |
62 | + | let D = 1 | |
63 | + | ||
64 | + | func E () = "resTypesProportions" | |
58 | 65 | ||
59 | 66 | ||
60 | - | func | |
67 | + | func F (G) = ("stakedLandsByOwner_" + G) | |
61 | 68 | ||
62 | 69 | ||
63 | - | func D (E) = ("%s%s__userGwlReleaseTime__" + E) | |
64 | - | ||
65 | - | ||
66 | - | func F (G) = { | |
67 | - | let c = G | |
68 | - | if (("S" == c)) | |
69 | - | then f | |
70 | - | else if (("M" == c)) | |
71 | - | then g | |
72 | - | else if (("L" == c)) | |
73 | - | then h | |
74 | - | else if (("XL" == c)) | |
75 | - | then i | |
76 | - | else if (("XXL" == c)) | |
77 | - | then j | |
70 | + | func H (I) = { | |
71 | + | let g = I | |
72 | + | if (("S" == g)) | |
73 | + | then j | |
74 | + | else if (("M" == g)) | |
75 | + | then k | |
76 | + | else if (("L" == g)) | |
77 | + | then l | |
78 | + | else if (("XL" == g)) | |
79 | + | then m | |
80 | + | else if (("XXL" == g)) | |
81 | + | then n | |
78 | 82 | else throw("Unknown land size") | |
79 | 83 | } | |
80 | 84 | ||
81 | 85 | ||
82 | - | let H = 0 | |
83 | - | ||
84 | - | let I = 1 | |
85 | - | ||
86 | 86 | func J (K) = { | |
87 | - | let L = split(valueOrElse(getString( | |
87 | + | let L = split(valueOrElse(getString(C, E()), "0_0_0_0_0_0"), "_") | |
88 | 88 | func M (N,O) = (N + parseIntValue(O)) | |
89 | 89 | ||
90 | 90 | let P = { | |
91 | 91 | let Q = L | |
92 | 92 | let R = size(Q) | |
93 | 93 | let S = 0 | |
94 | 94 | func T (U,V) = if ((V >= R)) | |
95 | 95 | then U | |
96 | 96 | else M(U, Q[V]) | |
97 | 97 | ||
98 | 98 | func W (U,V) = if ((V >= R)) | |
99 | 99 | then U | |
100 | 100 | else throw("List size exceeds 6") | |
101 | 101 | ||
102 | 102 | W(T(T(T(T(T(T(S, 0), 1), 2), 3), 4), 5), 6) | |
103 | 103 | } | |
104 | 104 | let X = if ((K == "")) | |
105 | 105 | then 0 | |
106 | 106 | else { | |
107 | - | let Y = getString( | |
107 | + | let Y = getString(C, F(K)) | |
108 | 108 | let Z = if (isDefined(Y)) | |
109 | 109 | then split_51C(value(Y), "_") | |
110 | 110 | else nil | |
111 | 111 | func aa (N,ab) = { | |
112 | 112 | let ac = value(assetInfo(fromBase58String(ab))) | |
113 | - | let | |
114 | - | (N + | |
113 | + | let I = split(ac.description, "_")[D] | |
114 | + | (N + H(I)) | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | let Q = Z | |
118 | 118 | let R = size(Q) | |
119 | 119 | let S = 0 | |
120 | 120 | func ad (U,V) = if ((V >= R)) | |
121 | 121 | then U | |
122 | 122 | else aa(U, Q[V]) | |
123 | 123 | ||
124 | 124 | func ae (U,V) = if ((V >= R)) | |
125 | 125 | then U | |
126 | 126 | else throw("List size exceeds 100") | |
127 | 127 | ||
128 | 128 | ae(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(ad(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
129 | 129 | } | |
130 | 130 | [P, X] | |
131 | 131 | } | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | let af = ":" | |
135 | 135 | ||
136 | 136 | let ag = 500000 | |
137 | 137 | ||
138 | 138 | let ah = 250 | |
139 | 139 | ||
140 | 140 | let ai = 1209600000 | |
141 | 141 | ||
142 | 142 | let aj = 1 | |
143 | 143 | ||
144 | 144 | let ak = 4 | |
145 | 145 | ||
146 | 146 | let al = 5 | |
147 | 147 | ||
148 | 148 | let am = 6 | |
149 | 149 | ||
150 | 150 | let an = 7 | |
151 | 151 | ||
152 | 152 | let ao = 4 | |
153 | 153 | ||
154 | 154 | let ap = 5 | |
155 | 155 | ||
156 | 156 | func aq () = "%s__quorumRequired" | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func ar () = "%s__proposalId" | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func as () = "%s__firstProposalId" | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func at (au) = ("%s%d__proposalStatusData__" + toString(au)) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func av (au) = ("%s%d__proposalData__" + toString(au)) | |
169 | 169 | ||
170 | 170 | ||
171 | - | func aw (au,ax) = makeString(["%s%d%d", "votesByOpt", toString(au), toString(ax)], | |
171 | + | func aw (au,ax) = makeString(["%s%d%d", "votesByOpt", toString(au), toString(ax)], h) | |
172 | 172 | ||
173 | 173 | ||
174 | - | func ay (au, | |
174 | + | func ay (au,b) = makeString(["%s%d%s", "votesByUser", toString(au), b], h) | |
175 | 175 | ||
176 | 176 | ||
177 | - | func az (au, | |
177 | + | func az (au,b) = makeString(["%s%d%s", "optionByUser", toString(au), b], h) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aA (au) = ("%s%d__numVoters__" + toString(au)) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func aB () = "%s%s%s__stats__avg__uniqueVoters" | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func aC () = "%s%s%s__stats__avg__gwlVoted" | |
187 | 187 | ||
188 | 188 | ||
189 | - | func aD (aE,aF,aG,aH,aI) = makeString(["%b%d%d%d%b", toString(aE), toString(aF), toString(aG), toString(aH), toString(aI)], | |
189 | + | func aD (aE,aF,aG,aH,aI) = makeString(["%b%d%d%d%b", toString(aE), toString(aF), toString(aG), toString(aH), toString(aI)], h) | |
190 | 190 | ||
191 | 191 | ||
192 | - | func aJ (aK,aL,aM,aN,aO,aP,aQ) = makeString_2C(["%s%s%d%d%d%d%s", aK, aL, toString(aM), toString(aN), toString(aO), toString(aP), aQ], | |
192 | + | func aJ (aK,aL,aM,aN,aO,aP,aQ) = makeString_2C(["%s%s%d%d%d%d%s", aK, aL, toString(aM), toString(aN), toString(aO), toString(aP), aQ], h) | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func aR (au,aS,aT,aU,aV,aW,aX) = { | |
196 | 196 | func aY (N,aZ) = { | |
197 | - | let | |
197 | + | let A = value(indexOf(aS, aZ)) | |
198 | 198 | let ba = if (aT) | |
199 | - | then if (( | |
199 | + | then if ((A == aW)) | |
200 | 200 | then aX | |
201 | - | else | |
202 | - | else if (( | |
201 | + | else r(aw(au, A), 0) | |
202 | + | else if ((A == value(aU))) | |
203 | 203 | then aV | |
204 | - | else if (( | |
204 | + | else if ((A == aW)) | |
205 | 205 | then aX | |
206 | - | else | |
206 | + | else r(aw(au, A), 0) | |
207 | 207 | if ((N._2 > ba)) | |
208 | 208 | then N | |
209 | - | else $Tuple2( | |
209 | + | else $Tuple2(A, ba) | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | let Q = aS | |
213 | 213 | let R = size(Q) | |
214 | 214 | let S = $Tuple2(0, 0) | |
215 | 215 | func T (U,V) = if ((V >= R)) | |
216 | 216 | then U | |
217 | 217 | else aY(U, Q[V]) | |
218 | 218 | ||
219 | 219 | func W (U,V) = if ((V >= R)) | |
220 | 220 | then U | |
221 | 221 | else throw("List size exceeds 10") | |
222 | 222 | ||
223 | 223 | W(T(T(T(T(T(T(T(T(T(T(S, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
224 | 224 | } | |
225 | 225 | ||
226 | 226 | ||
227 | - | func bb (bc,bd,be,bf) = makeString(["%b%d%d%d%b", toString(bd), toString(be._1), toString(be._2), toString(bf), bc], | |
227 | + | func bb (bc,bd,be,bf) = makeString(["%b%d%d%d%b", toString(bd), toString(be._1), toString(be._2), toString(bf), bc], h) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | @Callable(bg) | |
231 | 231 | func constructorV1 (bh,bi) = if ((bg.caller != this)) | |
232 | 232 | then throw("Permission denied") | |
233 | - | else [StringEntry( | |
233 | + | else [StringEntry(v(), bh), IntegerEntry(aq(), bi)] | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | ||
237 | 237 | @Callable(bg) | |
238 | 238 | func castVote (au,bj) = { | |
239 | 239 | let bk = toString(bg.caller) | |
240 | - | let bl = split( | |
240 | + | let bl = split(o(this, at(au)), h) | |
241 | 241 | if ((bl[ap] == "true")) | |
242 | 242 | then throw("Voting is canceled by team") | |
243 | 243 | else { | |
244 | - | let bm = split_4C( | |
244 | + | let bm = split_4C(o(this, av(au)), h) | |
245 | 245 | let bn = parseIntValue(bm[ak]) | |
246 | 246 | let bo = parseIntValue(bm[al]) | |
247 | 247 | let bp = lastBlock.timestamp | |
248 | 248 | if ((bn > bp)) | |
249 | 249 | then throw("Voting not started yet") | |
250 | 250 | else if ((bp >= bo)) | |
251 | 251 | then throw("Voting already finished") | |
252 | 252 | else { | |
253 | 253 | let bq = split(bm[an], af) | |
254 | 254 | let br = size(bq) | |
255 | 255 | if ((1 >= br)) | |
256 | 256 | then throw("Too few choices to vote") | |
257 | 257 | else if ((bj >= br)) | |
258 | 258 | then throw(("Unknown choice! Must be 0.." + toString((br - 1)))) | |
259 | 259 | else { | |
260 | 260 | let bs = J(bk) | |
261 | - | let bt = bs[ | |
261 | + | let bt = bs[d] | |
262 | 262 | if ((0 >= bt)) | |
263 | 263 | then throw("You need staked lands to vote") | |
264 | 264 | else { | |
265 | - | let bu = bs[ | |
265 | + | let bu = bs[c] | |
266 | 266 | let aU = getInteger(az(au, bk)) | |
267 | 267 | let bv = if (!(isDefined(aU))) | |
268 | 268 | then 0 | |
269 | - | else | |
269 | + | else r(ay(au, bk), 0) | |
270 | 270 | let bw = if (isDefined(aU)) | |
271 | - | then | |
271 | + | then r(aw(au, value(aU)), 0) | |
272 | 272 | else 0 | |
273 | - | let bx = | |
273 | + | let bx = r(aw(au, bj), 0) | |
274 | 274 | let by = parseIntValue(bl[ao]) | |
275 | 275 | let bz = if (!(isDefined(aU))) | |
276 | 276 | then 0 | |
277 | 277 | else ((bw - bv) + (if ((value(aU) == bj)) | |
278 | 278 | then bt | |
279 | 279 | else 0)) | |
280 | 280 | let aX = if (if (isDefined(aU)) | |
281 | 281 | then (value(aU) == bj) | |
282 | 282 | else false) | |
283 | 283 | then bz | |
284 | 284 | else (bx + bt) | |
285 | 285 | let bA = ((by - bv) + bt) | |
286 | 286 | let bB = (bA >= parseIntValue(bm[am])) | |
287 | - | let bC = | |
288 | - | let bD = | |
287 | + | let bC = r(aA(au), 0) | |
288 | + | let bD = r(aB(), 0) | |
289 | 289 | let bE = ((getIntegerValue(ar()) - valueOrElse(getInteger(as()), aj)) + 1) | |
290 | 290 | let bF = if ((bv == 0)) | |
291 | 291 | then 1 | |
292 | 292 | else 0 | |
293 | - | let bG = (bD + fraction(bF, | |
294 | - | let bH = | |
293 | + | let bG = (bD + fraction(bF, i, bE)) | |
294 | + | let bH = r(aC(), 0) | |
295 | 295 | let bI = (bH + ((bt - bv) / bE)) | |
296 | 296 | let aT = if (!(isDefined(aU))) | |
297 | 297 | then true | |
298 | 298 | else (value(aU) == bj) | |
299 | 299 | let aV = if (aT) | |
300 | 300 | then nil | |
301 | 301 | else [IntegerEntry(aw(au, value(aU)), bz)] | |
302 | 302 | let bJ = aR(au, bq, aT, aU, bz, bj, aX) | |
303 | - | let bK = max([bo, | |
304 | - | $Tuple2(([IntegerEntry(az(au, bk), bj), IntegerEntry(ay(au, bk), bt), IntegerEntry(aw(au, bj), aX), IntegerEntry(aA(au), (bC + bF)), IntegerEntry( | |
303 | + | let bK = max([bo, r(a(bk), 0)]) | |
304 | + | $Tuple2(([IntegerEntry(az(au, bk), bj), IntegerEntry(ay(au, bk), bt), IntegerEntry(aw(au, bj), aX), IntegerEntry(aA(au), (bC + bF)), IntegerEntry(a(bk), bK), IntegerEntry(aB(), bG), IntegerEntry(aC(), bI), StringEntry(at(au), bb(bl[ap], bB, bJ, bA))] ++ aV), unit) | |
305 | 305 | } | |
306 | 306 | } | |
307 | 307 | } | |
308 | 308 | } | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | ||
313 | 313 | @Callable(bg) | |
314 | 314 | func initiateVoting (aL,aN,aO,aS) = if ((bg.caller != this)) | |
315 | 315 | then throw("Permission denied") | |
316 | 316 | else if ((size(bg.payments) != 0)) | |
317 | 317 | then throw("governance doesn't require any payments") | |
318 | 318 | else { | |
319 | 319 | let aK = toBase58String(bg.transactionId) | |
320 | 320 | if ((aL == "")) | |
321 | 321 | then throw("Title is empty") | |
322 | 322 | else if ((size(aL) > ah)) | |
323 | 323 | then throw("Too long title") | |
324 | 324 | else { | |
325 | 325 | let aM = lastBlock.timestamp | |
326 | 326 | if ((aM > aN)) | |
327 | 327 | then throw(((("votingStartTime=" + toString(aN)) + " < proposalTime=") + toString(aM))) | |
328 | 328 | else if ((aN > aO)) | |
329 | 329 | then throw(((("votingEndTime=" + toString(aO)) + " < votingStartTime=") + toString(aN))) | |
330 | 330 | else if (((aO - aN) > ai)) | |
331 | 331 | then throw(((("Voting period exceeds max: " + toString((aO - aN))) + " > ") + toString(ai))) | |
332 | 332 | else if ((1 >= size(aS))) | |
333 | 333 | then throw("Too few choices to vote") | |
334 | 334 | else { | |
335 | 335 | let bs = J("") | |
336 | - | let bL = bs[ | |
337 | - | let bM = | |
338 | - | let bN = fraction(bM, bL, | |
339 | - | let au = ( | |
336 | + | let bL = bs[c] | |
337 | + | let bM = r(aq(), ag) | |
338 | + | let bN = fraction(bM, bL, i) | |
339 | + | let au = (r(ar(), 0) + 1) | |
340 | 340 | let bO = makeString(aS, af) | |
341 | 341 | $Tuple2([IntegerEntry(ar(), au), StringEntry(at(au), aD(false, 0, 0, 0, false)), StringEntry(av(au), aJ(aK, toBase16String(toBytes(aL)), aM, aN, aO, bN, bO))], aK) | |
342 | 342 | } | |
343 | 343 | } | |
344 | 344 | } | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | ||
348 | 348 | @Callable(bg) | |
349 | 349 | func cancelVoting (au) = if ((bg.caller != this)) | |
350 | 350 | then throw("not authorized") | |
351 | 351 | else { | |
352 | - | let bP = | |
353 | - | let bQ = ((take(bP, value(lastIndexOf(bP, | |
352 | + | let bP = o(this, at(au)) | |
353 | + | let bQ = ((take(bP, value(lastIndexOf(bP, h))) + h) + "true") | |
354 | 354 | $Tuple2([StringEntry(at(au), bQ)], unit) | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 |
github/deemru/w8io/169f3d6 103.12 ms ◑