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