tx · hR4KL3FKMExdrcwZyu9Rs5HPqk5HHFkWR4eSusEQsy5 3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE: -0.02100000 Waves 2023.06.08 18:22 [2613870] smart account 3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE > SELF 0.00000000 Waves
{ "type": 13, "id": "hR4KL3FKMExdrcwZyu9Rs5HPqk5HHFkWR4eSusEQsy5", "fee": 2100000, "feeAssetId": null, "timestamp": 1686237749114, "version": 2, "chainId": 84, "sender": "3N1BEXuoepNEwqkbeZYKviaLQfvBQV3ibYE", "senderPublicKey": "6t3vrhP1jCmG7CeKBmL8hUibtdP3cMXGC2XtPYEPPC5w", "proofs": [ "3iuU4a4FQvUnwKy3gHDUmDL2T1Gj5mFWhkqZwvTWqamz8LDxijKJWGJJ6GGtfpwD3bYwgkPHVLSvST3ossf5M2Az" ], "script": "base64:BgIrCAISBQoDCAEIEgMKAQgSBAoCCAQSAwoBCBIDCgEIEgUKAwgBCBIECgIIAS8ACXNlcGFyYXRvcgICX18ABU1VTFQ4AIDC1y8BB3dyYXBFcnIBA21zZwkAuQkCCQDMCAICGHZvdGluZ192ZXJpZmllZF92Mi5yaWRlOgkAzAgCBQNtc2cFA25pbAIBIAEIdGhyb3dFcnIBA21zZwkAAgEJAQd3cmFwRXJyAQUDbXNnAQVhc0ludAEDdmFsBAckbWF0Y2gwBQN2YWwDCQABAgUHJG1hdGNoMAIDSW50BAZ2YWxJbnQFByRtYXRjaDAFBnZhbEludAkAAgECG0ZhaWxlZCB0byBjYXN0IGludG8gSW50ZWdlcgEQZ2V0SW50ZWdlck9yWmVybwIHYWRkcmVzcwNrZXkJAQt2YWx1ZU9yRWxzZQIJAJoIAgUHYWRkcmVzcwUDa2V5AAABEGdldEludGVnZXJPckZhaWwCB2FkZHJlc3MDa2V5CQETdmFsdWVPckVycm9yTWVzc2FnZQIJAJoIAgUHYWRkcmVzcwUDa2V5CQEHd3JhcEVycgEJAKwCAgUDa2V5Ag8g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Y3JpcHRUcmFuc2ZlcgMFDWNhbGxlckFkZHJlc3MFDHJld2FyZEFtb3VudAUTdm90aW5nUmV3YXJkQXNzZXRJZAkAzAgCCQEMSW50ZWdlckVudHJ5AgUPY2xhaW1IaXN0b3J5S2V5BQxyZXdhcmRBbW91bnQJAMwIAgkBC0RlbGV0ZUVudHJ5AQkBD2tleVZvdGluZ1Jld2FyZAMFDWNhbGxlckFkZHJlc3MFB2Fzc2V0SWQFBWluZGV4BQNuaWwJAQh0aHJvd0VycgECEG5vdGhpbmcgdG8gY2xhaW0FDHJld2FyZEFjdGlvbgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleSXVKDo=", "height": 2613870, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: NkrWMQqaWLPBDGFc7jHJkpc7UBRE4ZhxE14iidRpbbr Next: EAmYFzeoPoe26PAmNtN9n9bGCHK2exKVQhnC1HBCmjdL Diff:
Old | New | Differences | |
---|---|---|---|
56 | 56 | ||
57 | 57 | let z = makeString(["%s%s", "votingThreshold", "remove"], a) | |
58 | 58 | ||
59 | - | func A (B,C) = makeString(["%s%s%d", "periodLengthAdd", B, toString(C)], a) | |
59 | + | let A = makeString(["%s", "periodLengthRemove"], a) | |
60 | + | ||
61 | + | let B = makeString(["%s", "maxPeriodLength"], a) | |
62 | + | ||
63 | + | let C = makeString(["%s", "minPeriodLength"], a) | |
64 | + | ||
65 | + | func D (E,F) = makeString(["%s%s%d", "votingRewardAssetId", E, toString(F)], a) | |
60 | 66 | ||
61 | 67 | ||
62 | - | let D = makeString(["%s", "periodLengthRemove"], a) | |
63 | - | ||
64 | - | let E = makeString(["%s", "maxPeriodLength"], a) | |
65 | - | ||
66 | - | let F = makeString(["%s", "minPeriodLength"], a) | |
67 | - | ||
68 | - | func G (B,C) = makeString(["%s%s%d", "votingRewardAssetId", B, toString(C)], a) | |
68 | + | func G (H,E,F) = makeString(["%s%s%s%d", "votingReward", toString(H), E, toString(F)], a) | |
69 | 69 | ||
70 | 70 | ||
71 | - | func | |
71 | + | func I (E,F) = makeString(["%s%s%d", "totalVotingReward", E, toString(F)], a) | |
72 | 72 | ||
73 | 73 | ||
74 | - | func J (B,C) = makeString(["%s%s%d", "votingReward", B, toString(C)], a) | |
74 | + | let J = makeString(["%s", "finalizeCallRewardAmount"], a) | |
75 | + | ||
76 | + | let K = makeString(["%s", "minSuggestRemoveBalance"], a) | |
77 | + | ||
78 | + | func L (E) = makeString(["%s%s", "currentIndex", E], a) | |
75 | 79 | ||
76 | 80 | ||
77 | - | let K = makeString(["%s", "finalizeCallRewardAmount"], a) | |
78 | - | ||
79 | - | let L = makeString(["%s", "minSuggestRemoveBalance"], a) | |
80 | - | ||
81 | - | func M (B) = makeString(["%s%s", "currentIndex", B], a) | |
81 | + | func M (E,F,N) = makeString(["%s%s%d%s", "vote", E, toString(F), toString(N)], a) | |
82 | 82 | ||
83 | 83 | ||
84 | - | func | |
84 | + | func O (P,Q) = makeString(["%s%d", toString(P), toString(Q)], a) | |
85 | 85 | ||
86 | 86 | ||
87 | - | func | |
87 | + | func R (E,F) = makeString(["%s%s%d", "suggestIssuer", E, toString(F)], a) | |
88 | 88 | ||
89 | 89 | ||
90 | - | func S ( | |
90 | + | func S (H,E,F) = makeString(["%s%s%s%d", "history", toString(H), E, toString(F)], a) | |
91 | 91 | ||
92 | 92 | ||
93 | - | func T (I,B,C) = makeString(["%s%s%s%d", "history", toString(I), B, toString(C)], a) | |
93 | + | let T = makeString(["%s", "feePerBlock"], a) | |
94 | + | ||
95 | + | let U = m(this, T) | |
96 | + | ||
97 | + | let V = makeString(["%s", "wxMinForSuggestAddAmountRequired"], a) | |
98 | + | ||
99 | + | let W = makeString(["%s", "wxForSuggestRemoveAmountRequired"], a) | |
100 | + | ||
101 | + | func X (E,F) = makeString(["%s%s%d", "votingInfo", E, toString(F)], a) | |
94 | 102 | ||
95 | 103 | ||
96 | - | let U = makeString(["%s", "feePerBlock"], a) | |
97 | - | ||
98 | - | let V = m(this, U) | |
99 | - | ||
100 | - | let W = makeString(["%s", "wxMinForSuggestAddAmountRequired"], a) | |
101 | - | ||
102 | - | let X = makeString(["%s", "wxForSuggestRemoveAmountRequired"], a) | |
103 | - | ||
104 | - | func Y (B,C) = makeString(["%s%s%d", "votingInfo", B, toString(C)], a) | |
104 | + | func Y (Z,aa,ab,ac,ad,ae,af,ag,ah,ai) = makeString(["%s%s%d%s%s%d%d%d%d%d", toString(Z), aa, toString(ab), ac, ad, toString(ae), toString(af), toString(ag), toString(ah), toString(ai)], a) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func Z (aa,ab,ac,ad,ae,af,ag,ah,ai,aj) = makeString(["%s%s%s%d%s%s%d%d%d%d%d", toString(aa), ab, toString(ac), ad, ae, toString(af), toString(ag), toString(ah), toString(ai), toString(aj)], a) | |
108 | - | ||
109 | - | ||
110 | - | func ak (I,al) = { | |
111 | - | let R = invoke(s, "getUserGwxAmountAtHeightREADONLY", [I, al], nil) | |
112 | - | f(R) | |
107 | + | func aj (H,ak) = { | |
108 | + | let Q = invoke(s, "getUserGwxAmountAtHeightREADONLY", [H, ak], nil) | |
109 | + | f(Q) | |
113 | 110 | } | |
114 | 111 | ||
115 | 112 | ||
116 | - | func | |
113 | + | func al () = "%s__managerVaultAddress" | |
117 | 114 | ||
118 | 115 | ||
119 | - | func | |
116 | + | func am () = "%s__managerPublicKey" | |
120 | 117 | ||
121 | 118 | ||
122 | - | func | |
123 | - | let h = getString( | |
119 | + | func an () = { | |
120 | + | let h = getString(al()) | |
124 | 121 | if ($isInstanceOf(h, "String")) | |
125 | 122 | then { | |
126 | - | let | |
127 | - | addressFromStringValue( | |
123 | + | let ao = h | |
124 | + | addressFromStringValue(ao) | |
128 | 125 | } | |
129 | 126 | else this | |
130 | 127 | } | |
131 | 128 | ||
132 | 129 | ||
133 | - | func | |
134 | - | let | |
135 | - | let h = getString( | |
130 | + | func ap () = { | |
131 | + | let aq = an() | |
132 | + | let h = getString(aq, am()) | |
136 | 133 | if ($isInstanceOf(h, "String")) | |
137 | 134 | then { | |
138 | - | let | |
139 | - | fromBase58String( | |
135 | + | let ao = h | |
136 | + | fromBase58String(ao) | |
140 | 137 | } | |
141 | 138 | else if ($isInstanceOf(h, "Unit")) | |
142 | 139 | then unit | |
144 | 141 | } | |
145 | 142 | ||
146 | 143 | ||
147 | - | func | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
144 | + | func ar (as) = { | |
145 | + | let at = split(as, a) | |
146 | + | let au = at[1] | |
147 | + | let Z = if ((au == "true")) | |
151 | 148 | then true | |
152 | 149 | else false | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | $Tuple10(aa, ab, ac, ad, ae, af, ag, ah, ai | |
150 | + | let aa = at[2] | |
151 | + | let ab = parseIntValue(at[3]) | |
152 | + | let ac = at[4] | |
153 | + | let ad = at[5] | |
154 | + | let ae = parseIntValue(at[6]) | |
155 | + | let af = parseIntValue(at[7]) | |
156 | + | let ag = parseIntValue(at[8]) | |
157 | + | let ah = parseIntValue(at[9]) | |
158 | + | let ai = parseIntValue(at[10]) | |
159 | + | $Tuple10(Z, aa, ab, ac, ad, ae, af, ag, ah, ai) | |
163 | 160 | } | |
164 | 161 | ||
165 | 162 | ||
166 | - | func | |
167 | - | let | |
168 | - | let | |
169 | - | let | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
163 | + | func av (E,aw) = { | |
164 | + | let as = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
165 | + | let ax = split(as, a) | |
166 | + | let ad = ax[5] | |
167 | + | let af = valueOrErrorMessage(parseIntValue(ax[7]), c("voting start height not found")) | |
168 | + | let ay = valueOrErrorMessage(getString(R(E, aw)), c("voting issuer not found")) | |
169 | + | let az = [if ((ad == "inProgress")) | |
173 | 170 | then true | |
174 | - | else e("no voting in progress"), if (( | |
171 | + | else e("no voting in progress"), if ((af > height)) | |
175 | 172 | then true | |
176 | 173 | else e("voting expired")] | |
177 | - | if (( | |
178 | - | then $Tuple3( | |
174 | + | if ((az == az)) | |
175 | + | then $Tuple3(ad, af, ay) | |
179 | 176 | else throw("Strict value is not equal to itself.") | |
180 | 177 | } | |
181 | 178 | ||
182 | 179 | ||
183 | - | func | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | let | |
195 | - | | |
180 | + | func aA (aB,E,F) = { | |
181 | + | let aC = M(E, F, aB) | |
182 | + | let aD = valueOrErrorMessage(getString(aC), c("you have not voted")) | |
183 | + | let aE = split(aD, a) | |
184 | + | let Q = parseIntValue(aE[2]) | |
185 | + | let aF = valueOrErrorMessage(getString(X(E, F)), c("voting info not found")) | |
186 | + | let aG = ar(aF) | |
187 | + | let ah = aG._9 | |
188 | + | let ai = aG._10 | |
189 | + | let aH = fraction(Q, b, (ah + ai)) | |
190 | + | let aI = valueOrElse(getInteger(I(E, F)), 0) | |
191 | + | let aJ = fraction(aH, aI, b, FLOOR) | |
192 | + | aJ | |
196 | 193 | } | |
197 | 194 | ||
198 | 195 | ||
199 | - | @Callable( | |
200 | - | func suggestAdd ( | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | then ( | |
196 | + | @Callable(aK) | |
197 | + | func suggestAdd (E,aL,aM) = { | |
198 | + | let aN = aK.payments[0] | |
199 | + | let aO = value(aN.assetId) | |
200 | + | let aP = value(aN.amount) | |
201 | + | let aQ = getIntegerValue(C) | |
202 | + | let aR = getIntegerValue(B) | |
203 | + | let az = [if (if ((aL >= aQ)) | |
204 | + | then (aR >= aL) | |
208 | 205 | else false) | |
209 | 206 | then true | |
210 | - | else e("invalid periodLength"), if (( | |
207 | + | else e("invalid periodLength"), if ((aP > (aL * U))) | |
211 | 208 | then true | |
212 | - | else e("not enough wx for given period"), if (( | |
209 | + | else e("not enough wx for given period"), if ((aP >= getIntegerValue(V))) | |
213 | 210 | then true | |
214 | 211 | else e("payment less then min for suggest")] | |
215 | - | if (( | |
212 | + | if ((az == az)) | |
216 | 213 | then { | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | then (value( | |
214 | + | let aS = L(E) | |
215 | + | let aw = getInteger(aS) | |
216 | + | let aT = if (isDefined(aw)) | |
217 | + | then (value(aw) + 1) | |
221 | 218 | else 0 | |
222 | - | let | |
219 | + | let aU = if ((size(aK.payments) > 1)) | |
223 | 220 | then { | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | $Tuple4(true, | |
221 | + | let aV = aK.payments[1] | |
222 | + | let aW = toBase58String(value(aV.assetId)) | |
223 | + | let aX = value(aV.amount) | |
224 | + | $Tuple4(true, aW, aX, [StringEntry(D(E, aT), aW), IntegerEntry(I(E, aT), aX)]) | |
228 | 225 | } | |
229 | 226 | else $Tuple4(false, "EMPTY", 0, nil) | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | if (( | |
240 | - | then ([IntegerEntry( | |
227 | + | let Z = aU._1 | |
228 | + | let aa = aU._2 | |
229 | + | let ab = aU._3 | |
230 | + | let aY = aU._4 | |
231 | + | let ag = valueOrErrorMessage(getInteger(y), c("votingThresholdAdd not set")) | |
232 | + | let as = Y(Z, aa, ab, "verification", "inProgress", height, (height + aL), ag, 0, 0) | |
233 | + | let aZ = valueOrElse(getInteger(J), 0) | |
234 | + | let ba = (aP - aZ) | |
235 | + | let bb = invoke(u, "createOrUpdate", [E, aM, false], nil) | |
236 | + | if ((bb == bb)) | |
237 | + | then ([IntegerEntry(aS, aT), StringEntry(R(E, aT), toString(aK.caller)), StringEntry(X(E, aT), as), Burn(aO, ba)] ++ aY) | |
241 | 238 | else throw("Strict value is not equal to itself.") | |
242 | 239 | } | |
243 | 240 | else throw("Strict value is not equal to itself.") | |
245 | 242 | ||
246 | 243 | ||
247 | 244 | ||
248 | - | @Callable( | |
249 | - | func suggestRemove ( | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
245 | + | @Callable(aK) | |
246 | + | func suggestRemove (E) = { | |
247 | + | let bc = aj(toString(aK.caller), height) | |
248 | + | let bd = getIntegerValue(K) | |
249 | + | let aN = aK.payments[0] | |
250 | + | let aO = value(aN.assetId) | |
251 | + | let aP = value(aN.amount) | |
252 | + | let az = [if ((bc >= bd)) | |
256 | 253 | then true | |
257 | - | else e("not enough gWXes"), if (( | |
254 | + | else e("not enough gWXes"), if ((aP >= getIntegerValue(W))) | |
258 | 255 | then true | |
259 | 256 | else e("payment less then min for suggest")] | |
260 | - | if (( | |
257 | + | if ((az == az)) | |
261 | 258 | then { | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | then (value( | |
259 | + | let aS = L(E) | |
260 | + | let aw = getInteger(aS) | |
261 | + | let aT = if (isDefined(aw)) | |
262 | + | then (value(aw) + 1) | |
266 | 263 | else 0 | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | [IntegerEntry( | |
264 | + | let aL = valueOrErrorMessage(getInteger(A), c("periodLengthRemove not set")) | |
265 | + | let af = (height + aL) | |
266 | + | let ag = valueOrErrorMessage(getInteger(z), c("votingThresholdRemove not set")) | |
267 | + | let as = Y(false, "EMPTY", 0, "deverification", "inProgress", height, (height + aL), ag, 0, 0) | |
268 | + | [IntegerEntry(aS, aT), StringEntry(R(E, aT), toString(aK.caller)), StringEntry(X(E, aT), as)] | |
272 | 269 | } | |
273 | 270 | else throw("Strict value is not equal to itself.") | |
274 | 271 | } | |
275 | 272 | ||
276 | 273 | ||
277 | 274 | ||
278 | - | @Callable( | |
279 | - | func vote ( | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | if (( | |
275 | + | @Callable(aK) | |
276 | + | func vote (E,P) = { | |
277 | + | let aS = L(E) | |
278 | + | let aw = valueOrErrorMessage(getInteger(aS), c("voting does not exist")) | |
279 | + | let as = av(E, aw) | |
280 | + | if ((as == as)) | |
284 | 281 | then { | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
282 | + | let be = as._2 | |
283 | + | let bf = aj(toString(aK.caller), be) | |
284 | + | let aC = M(E, aw, aK.caller) | |
285 | + | let az = [if ((getString(aC) == unit)) | |
289 | 286 | then true | |
290 | - | else e("You have already voted"), if (( | |
287 | + | else e("You have already voted"), if ((bf > 0)) | |
291 | 288 | then true | |
292 | 289 | else throw("You'll not have gWX at the end of voting")] | |
293 | - | if (( | |
290 | + | if ((az == az)) | |
294 | 291 | then { | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | then $Tuple2(( | |
301 | - | else $Tuple2( | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let h = getBoolean( | |
292 | + | let aF = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
293 | + | let at = ar(aF) | |
294 | + | let ah = at._9 | |
295 | + | let ai = at._10 | |
296 | + | let bg = if (P) | |
297 | + | then $Tuple2((ah + bf), ai) | |
298 | + | else $Tuple2(ah, (ai + bf)) | |
299 | + | let bh = bg._1 | |
300 | + | let bi = bg._2 | |
301 | + | let bj = Y(at._1, at._2, at._3, at._4, at._5, at._6, at._7, at._8, bh, bi) | |
302 | + | let bk = { | |
303 | + | let h = getBoolean(D(E, aw)) | |
307 | 304 | if ($isInstanceOf(h, "Boolean")) | |
308 | 305 | then { | |
309 | - | let | |
310 | - | [BooleanEntry( | |
306 | + | let bl = h | |
307 | + | [BooleanEntry(G(aK.caller, E, aw), true)] | |
311 | 308 | } | |
312 | 309 | else if ($isInstanceOf(h, "Unit")) | |
313 | 310 | then nil | |
314 | 311 | else throw("Match error") | |
315 | 312 | } | |
316 | - | ([StringEntry( | |
313 | + | ([StringEntry(aC, O(P, bf)), StringEntry(X(E, aw), bj)] ++ bk) | |
317 | 314 | } | |
318 | 315 | else throw("Strict value is not equal to itself.") | |
319 | 316 | } | |
322 | 319 | ||
323 | 320 | ||
324 | 321 | ||
325 | - | @Callable( | |
326 | - | func cancelVote ( | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | if (( | |
322 | + | @Callable(aK) | |
323 | + | func cancelVote (E) = { | |
324 | + | let aS = L(E) | |
325 | + | let aw = valueOrErrorMessage(getInteger(aS), c("voting does not exist")) | |
326 | + | let aC = M(E, aw, aK.caller) | |
327 | + | let aD = valueOrErrorMessage(getString(aC), c("you have not voted")) | |
328 | + | let aE = split(aD, a) | |
329 | + | let P = aE[1] | |
330 | + | let Q = parseIntValue(aE[2]) | |
331 | + | let as = av(E, aw) | |
332 | + | if ((as == as)) | |
336 | 333 | then { | |
337 | - | let | |
334 | + | let az = [if (if ((P == "true")) | |
338 | 335 | then true | |
339 | - | else ( | |
336 | + | else (P == "false")) | |
340 | 337 | then true | |
341 | 338 | else e("invalid vote")] | |
342 | - | if (( | |
339 | + | if ((az == az)) | |
343 | 340 | then { | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | then $Tuple2(( | |
350 | - | else $Tuple2( | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | [StringEntry( | |
341 | + | let aF = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
342 | + | let at = ar(aF) | |
343 | + | let ah = at._9 | |
344 | + | let ai = at._10 | |
345 | + | let bm = if ((P == "true")) | |
346 | + | then $Tuple2((ah - Q), ai) | |
347 | + | else $Tuple2(ah, (ai - Q)) | |
348 | + | let bh = bm._1 | |
349 | + | let bi = bm._2 | |
350 | + | let bj = Y(at._1, at._2, at._3, at._4, at._5, at._6, at._7, at._8, bh, bi) | |
351 | + | [StringEntry(X(E, aw), bj), DeleteEntry(aC), DeleteEntry(G(aK.caller, E, aw))] | |
355 | 352 | } | |
356 | 353 | else throw("Strict value is not equal to itself.") | |
357 | 354 | } | |
360 | 357 | ||
361 | 358 | ||
362 | 359 | ||
363 | - | @Callable( | |
364 | - | func finalize ( | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
360 | + | @Callable(aK) | |
361 | + | func finalize (E) = { | |
362 | + | let aS = L(E) | |
363 | + | let aw = valueOrElse(getInteger(aS), 0) | |
364 | + | let bn = valueOrErrorMessage(getInteger(y), c("votingThresholdAdd not set")) | |
365 | + | let bo = valueOrErrorMessage(getInteger(z), c("votingThresholdRemove not set")) | |
366 | + | let aF = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
367 | + | let at = ar(aF) | |
368 | + | let ac = at._4 | |
369 | + | let ad = at._5 | |
370 | + | let af = at._7 | |
371 | + | let bp = at._8 | |
372 | + | let ah = at._9 | |
373 | + | let ai = at._10 | |
374 | + | let az = [if ((ad == "inProgress")) | |
378 | 375 | then true | |
379 | - | else e("voting not in progress"), if ((height >= | |
376 | + | else e("voting not in progress"), if ((height >= af)) | |
380 | 377 | then true | |
381 | 378 | else e("voting not finished")] | |
382 | - | if (( | |
379 | + | if ((az == az)) | |
383 | 380 | then { | |
384 | - | let | |
381 | + | let bq = if (((ah + ai) >= bp)) | |
385 | 382 | then "accepted" | |
386 | 383 | else "rejected" | |
387 | - | let | |
384 | + | let br = if ((ac == "verification")) | |
388 | 385 | then true | |
389 | 386 | else false | |
390 | - | let | |
387 | + | let bs = if ((ai > ah)) | |
391 | 388 | then { | |
392 | - | let | |
393 | - | if (( | |
389 | + | let bt = invoke(u, "setVerified", [E, br], nil) | |
390 | + | if ((bt == bt)) | |
394 | 391 | then { | |
395 | - | let | |
396 | - | [ScriptTransfer( | |
392 | + | let aZ = valueOrElse(getInteger(J), 0) | |
393 | + | [ScriptTransfer(aK.caller, aZ, x)] | |
397 | 394 | } | |
398 | 395 | else throw("Strict value is not equal to itself.") | |
399 | 396 | } | |
400 | 397 | else nil | |
401 | - | let | |
402 | - | ([StringEntry( | |
398 | + | let bj = Y(at._1, at._2, at._3, at._4, bq, at._6, at._7, at._8, at._9, at._10) | |
399 | + | ([StringEntry(X(E, aw), bj)] ++ bs) | |
403 | 400 | } | |
404 | 401 | else throw("Strict value is not equal to itself.") | |
405 | 402 | } | |
406 | 403 | ||
407 | 404 | ||
408 | 405 | ||
409 | - | @Callable( | |
410 | - | func claimREADONLY ( | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | then | |
406 | + | @Callable(aK) | |
407 | + | func claimREADONLY (E,F,bu) = { | |
408 | + | let H = valueOrErrorMessage(addressFromString(bu), c("invalid address")) | |
409 | + | let bv = getString(D(E, F)) | |
410 | + | let ab = if (isDefined(bv)) | |
411 | + | then aA(H, E, F) | |
415 | 412 | else 0 | |
416 | - | $Tuple2(nil, | |
413 | + | $Tuple2(nil, ab) | |
417 | 414 | } | |
418 | 415 | ||
419 | 416 | ||
420 | 417 | ||
421 | - | @Callable( | |
422 | - | func claim ( | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
418 | + | @Callable(aK) | |
419 | + | func claim (E,F) = { | |
420 | + | let bw = aK.caller | |
421 | + | let bx = S(bw, E, F) | |
422 | + | let by = getInteger(bx) | |
423 | + | let az = [if ((by == unit)) | |
427 | 424 | then true | |
428 | 425 | else e("already claimed")] | |
429 | - | if (( | |
426 | + | if ((az == az)) | |
430 | 427 | then { | |
431 | - | let | |
432 | - | then | |
428 | + | let ab = if ((aA(bw, E, F) > 0)) | |
429 | + | then aA(bw, E, F) | |
433 | 430 | else e("nothing to claim") | |
434 | - | let | |
435 | - | let | |
431 | + | let bv = getString(D(E, F)) | |
432 | + | let bz = if (isDefined(bv)) | |
436 | 433 | then { | |
437 | - | let | |
438 | - | [ScriptTransfer( | |
434 | + | let bA = fromBase58String(value(bv)) | |
435 | + | [ScriptTransfer(bw, ab, bA), IntegerEntry(bx, ab), DeleteEntry(G(bw, E, F))] | |
439 | 436 | } | |
440 | 437 | else e("nothing to claim") | |
441 | - | | |
438 | + | bz | |
442 | 439 | } | |
443 | 440 | else throw("Strict value is not equal to itself.") | |
444 | 441 | } | |
445 | 442 | ||
446 | 443 | ||
447 | - | @Verifier( | |
448 | - | func | |
449 | - | let | |
450 | - | let h = | |
444 | + | @Verifier(bB) | |
445 | + | func bC () = { | |
446 | + | let bD = { | |
447 | + | let h = ap() | |
451 | 448 | if ($isInstanceOf(h, "ByteVector")) | |
452 | 449 | then { | |
453 | - | let | |
454 | - | | |
450 | + | let bl = h | |
451 | + | bl | |
455 | 452 | } | |
456 | 453 | else if ($isInstanceOf(h, "Unit")) | |
457 | - | then | |
454 | + | then bB.senderPublicKey | |
458 | 455 | else throw("Match error") | |
459 | 456 | } | |
460 | - | sigVerify( | |
457 | + | sigVerify(bB.bodyBytes, bB.proofs[0], bD) | |
461 | 458 | } | |
462 | 459 |
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 | func c (d) = makeString(["voting_verified_v2.ride:", d], " ") | |
9 | 9 | ||
10 | 10 | ||
11 | 11 | func e (d) = throw(c(d)) | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | func f (g) = { | |
15 | 15 | let h = g | |
16 | 16 | if ($isInstanceOf(h, "Int")) | |
17 | 17 | then { | |
18 | 18 | let i = h | |
19 | 19 | i | |
20 | 20 | } | |
21 | 21 | else throw("Failed to cast into Integer") | |
22 | 22 | } | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func j (k,l) = valueOrElse(getInteger(k, l), 0) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func m (k,l) = valueOrErrorMessage(getInteger(k, l), c((l + " is not defined"))) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func n (k,l) = valueOrElse(getString(k, l), "") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func o (k,l) = valueOrErrorMessage(getString(k, l), c((l + " is not defined"))) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | let p = makeString(["%s", "boostingContract"], a) | |
38 | 38 | ||
39 | 39 | let q = makeString(["%s", "emissionContract"], a) | |
40 | 40 | ||
41 | 41 | let r = makeString(["%s", "assetsStoreContract"], a) | |
42 | 42 | ||
43 | 43 | let s = addressFromStringValue(getStringValue(p)) | |
44 | 44 | ||
45 | 45 | let t = addressFromStringValue(getStringValue(q)) | |
46 | 46 | ||
47 | 47 | let u = addressFromStringValue(getStringValue(r)) | |
48 | 48 | ||
49 | 49 | let v = makeString(["%s", "config"], a) | |
50 | 50 | ||
51 | 51 | let w = split(o(t, v), a)[1] | |
52 | 52 | ||
53 | 53 | let x = fromBase58String(w) | |
54 | 54 | ||
55 | 55 | let y = makeString(["%s%s", "votingThreshold", "add"], a) | |
56 | 56 | ||
57 | 57 | let z = makeString(["%s%s", "votingThreshold", "remove"], a) | |
58 | 58 | ||
59 | - | func A (B,C) = makeString(["%s%s%d", "periodLengthAdd", B, toString(C)], a) | |
59 | + | let A = makeString(["%s", "periodLengthRemove"], a) | |
60 | + | ||
61 | + | let B = makeString(["%s", "maxPeriodLength"], a) | |
62 | + | ||
63 | + | let C = makeString(["%s", "minPeriodLength"], a) | |
64 | + | ||
65 | + | func D (E,F) = makeString(["%s%s%d", "votingRewardAssetId", E, toString(F)], a) | |
60 | 66 | ||
61 | 67 | ||
62 | - | let D = makeString(["%s", "periodLengthRemove"], a) | |
63 | - | ||
64 | - | let E = makeString(["%s", "maxPeriodLength"], a) | |
65 | - | ||
66 | - | let F = makeString(["%s", "minPeriodLength"], a) | |
67 | - | ||
68 | - | func G (B,C) = makeString(["%s%s%d", "votingRewardAssetId", B, toString(C)], a) | |
68 | + | func G (H,E,F) = makeString(["%s%s%s%d", "votingReward", toString(H), E, toString(F)], a) | |
69 | 69 | ||
70 | 70 | ||
71 | - | func | |
71 | + | func I (E,F) = makeString(["%s%s%d", "totalVotingReward", E, toString(F)], a) | |
72 | 72 | ||
73 | 73 | ||
74 | - | func J (B,C) = makeString(["%s%s%d", "votingReward", B, toString(C)], a) | |
74 | + | let J = makeString(["%s", "finalizeCallRewardAmount"], a) | |
75 | + | ||
76 | + | let K = makeString(["%s", "minSuggestRemoveBalance"], a) | |
77 | + | ||
78 | + | func L (E) = makeString(["%s%s", "currentIndex", E], a) | |
75 | 79 | ||
76 | 80 | ||
77 | - | let K = makeString(["%s", "finalizeCallRewardAmount"], a) | |
78 | - | ||
79 | - | let L = makeString(["%s", "minSuggestRemoveBalance"], a) | |
80 | - | ||
81 | - | func M (B) = makeString(["%s%s", "currentIndex", B], a) | |
81 | + | func M (E,F,N) = makeString(["%s%s%d%s", "vote", E, toString(F), toString(N)], a) | |
82 | 82 | ||
83 | 83 | ||
84 | - | func | |
84 | + | func O (P,Q) = makeString(["%s%d", toString(P), toString(Q)], a) | |
85 | 85 | ||
86 | 86 | ||
87 | - | func | |
87 | + | func R (E,F) = makeString(["%s%s%d", "suggestIssuer", E, toString(F)], a) | |
88 | 88 | ||
89 | 89 | ||
90 | - | func S ( | |
90 | + | func S (H,E,F) = makeString(["%s%s%s%d", "history", toString(H), E, toString(F)], a) | |
91 | 91 | ||
92 | 92 | ||
93 | - | func T (I,B,C) = makeString(["%s%s%s%d", "history", toString(I), B, toString(C)], a) | |
93 | + | let T = makeString(["%s", "feePerBlock"], a) | |
94 | + | ||
95 | + | let U = m(this, T) | |
96 | + | ||
97 | + | let V = makeString(["%s", "wxMinForSuggestAddAmountRequired"], a) | |
98 | + | ||
99 | + | let W = makeString(["%s", "wxForSuggestRemoveAmountRequired"], a) | |
100 | + | ||
101 | + | func X (E,F) = makeString(["%s%s%d", "votingInfo", E, toString(F)], a) | |
94 | 102 | ||
95 | 103 | ||
96 | - | let U = makeString(["%s", "feePerBlock"], a) | |
97 | - | ||
98 | - | let V = m(this, U) | |
99 | - | ||
100 | - | let W = makeString(["%s", "wxMinForSuggestAddAmountRequired"], a) | |
101 | - | ||
102 | - | let X = makeString(["%s", "wxForSuggestRemoveAmountRequired"], a) | |
103 | - | ||
104 | - | func Y (B,C) = makeString(["%s%s%d", "votingInfo", B, toString(C)], a) | |
104 | + | func Y (Z,aa,ab,ac,ad,ae,af,ag,ah,ai) = makeString(["%s%s%d%s%s%d%d%d%d%d", toString(Z), aa, toString(ab), ac, ad, toString(ae), toString(af), toString(ag), toString(ah), toString(ai)], a) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func Z (aa,ab,ac,ad,ae,af,ag,ah,ai,aj) = makeString(["%s%s%s%d%s%s%d%d%d%d%d", toString(aa), ab, toString(ac), ad, ae, toString(af), toString(ag), toString(ah), toString(ai), toString(aj)], a) | |
108 | - | ||
109 | - | ||
110 | - | func ak (I,al) = { | |
111 | - | let R = invoke(s, "getUserGwxAmountAtHeightREADONLY", [I, al], nil) | |
112 | - | f(R) | |
107 | + | func aj (H,ak) = { | |
108 | + | let Q = invoke(s, "getUserGwxAmountAtHeightREADONLY", [H, ak], nil) | |
109 | + | f(Q) | |
113 | 110 | } | |
114 | 111 | ||
115 | 112 | ||
116 | - | func | |
113 | + | func al () = "%s__managerVaultAddress" | |
117 | 114 | ||
118 | 115 | ||
119 | - | func | |
116 | + | func am () = "%s__managerPublicKey" | |
120 | 117 | ||
121 | 118 | ||
122 | - | func | |
123 | - | let h = getString( | |
119 | + | func an () = { | |
120 | + | let h = getString(al()) | |
124 | 121 | if ($isInstanceOf(h, "String")) | |
125 | 122 | then { | |
126 | - | let | |
127 | - | addressFromStringValue( | |
123 | + | let ao = h | |
124 | + | addressFromStringValue(ao) | |
128 | 125 | } | |
129 | 126 | else this | |
130 | 127 | } | |
131 | 128 | ||
132 | 129 | ||
133 | - | func | |
134 | - | let | |
135 | - | let h = getString( | |
130 | + | func ap () = { | |
131 | + | let aq = an() | |
132 | + | let h = getString(aq, am()) | |
136 | 133 | if ($isInstanceOf(h, "String")) | |
137 | 134 | then { | |
138 | - | let | |
139 | - | fromBase58String( | |
135 | + | let ao = h | |
136 | + | fromBase58String(ao) | |
140 | 137 | } | |
141 | 138 | else if ($isInstanceOf(h, "Unit")) | |
142 | 139 | then unit | |
143 | 140 | else throw("Match error") | |
144 | 141 | } | |
145 | 142 | ||
146 | 143 | ||
147 | - | func | |
148 | - | let | |
149 | - | let | |
150 | - | let | |
144 | + | func ar (as) = { | |
145 | + | let at = split(as, a) | |
146 | + | let au = at[1] | |
147 | + | let Z = if ((au == "true")) | |
151 | 148 | then true | |
152 | 149 | else false | |
153 | - | let | |
154 | - | let | |
155 | - | let | |
156 | - | let | |
157 | - | let | |
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | $Tuple10(aa, ab, ac, ad, ae, af, ag, ah, ai | |
150 | + | let aa = at[2] | |
151 | + | let ab = parseIntValue(at[3]) | |
152 | + | let ac = at[4] | |
153 | + | let ad = at[5] | |
154 | + | let ae = parseIntValue(at[6]) | |
155 | + | let af = parseIntValue(at[7]) | |
156 | + | let ag = parseIntValue(at[8]) | |
157 | + | let ah = parseIntValue(at[9]) | |
158 | + | let ai = parseIntValue(at[10]) | |
159 | + | $Tuple10(Z, aa, ab, ac, ad, ae, af, ag, ah, ai) | |
163 | 160 | } | |
164 | 161 | ||
165 | 162 | ||
166 | - | func | |
167 | - | let | |
168 | - | let | |
169 | - | let | |
170 | - | let | |
171 | - | let | |
172 | - | let | |
163 | + | func av (E,aw) = { | |
164 | + | let as = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
165 | + | let ax = split(as, a) | |
166 | + | let ad = ax[5] | |
167 | + | let af = valueOrErrorMessage(parseIntValue(ax[7]), c("voting start height not found")) | |
168 | + | let ay = valueOrErrorMessage(getString(R(E, aw)), c("voting issuer not found")) | |
169 | + | let az = [if ((ad == "inProgress")) | |
173 | 170 | then true | |
174 | - | else e("no voting in progress"), if (( | |
171 | + | else e("no voting in progress"), if ((af > height)) | |
175 | 172 | then true | |
176 | 173 | else e("voting expired")] | |
177 | - | if (( | |
178 | - | then $Tuple3( | |
174 | + | if ((az == az)) | |
175 | + | then $Tuple3(ad, af, ay) | |
179 | 176 | else throw("Strict value is not equal to itself.") | |
180 | 177 | } | |
181 | 178 | ||
182 | 179 | ||
183 | - | func | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | let | |
189 | - | let | |
190 | - | let | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | let | |
195 | - | | |
180 | + | func aA (aB,E,F) = { | |
181 | + | let aC = M(E, F, aB) | |
182 | + | let aD = valueOrErrorMessage(getString(aC), c("you have not voted")) | |
183 | + | let aE = split(aD, a) | |
184 | + | let Q = parseIntValue(aE[2]) | |
185 | + | let aF = valueOrErrorMessage(getString(X(E, F)), c("voting info not found")) | |
186 | + | let aG = ar(aF) | |
187 | + | let ah = aG._9 | |
188 | + | let ai = aG._10 | |
189 | + | let aH = fraction(Q, b, (ah + ai)) | |
190 | + | let aI = valueOrElse(getInteger(I(E, F)), 0) | |
191 | + | let aJ = fraction(aH, aI, b, FLOOR) | |
192 | + | aJ | |
196 | 193 | } | |
197 | 194 | ||
198 | 195 | ||
199 | - | @Callable( | |
200 | - | func suggestAdd ( | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
204 | - | let | |
205 | - | let | |
206 | - | let | |
207 | - | then ( | |
196 | + | @Callable(aK) | |
197 | + | func suggestAdd (E,aL,aM) = { | |
198 | + | let aN = aK.payments[0] | |
199 | + | let aO = value(aN.assetId) | |
200 | + | let aP = value(aN.amount) | |
201 | + | let aQ = getIntegerValue(C) | |
202 | + | let aR = getIntegerValue(B) | |
203 | + | let az = [if (if ((aL >= aQ)) | |
204 | + | then (aR >= aL) | |
208 | 205 | else false) | |
209 | 206 | then true | |
210 | - | else e("invalid periodLength"), if (( | |
207 | + | else e("invalid periodLength"), if ((aP > (aL * U))) | |
211 | 208 | then true | |
212 | - | else e("not enough wx for given period"), if (( | |
209 | + | else e("not enough wx for given period"), if ((aP >= getIntegerValue(V))) | |
213 | 210 | then true | |
214 | 211 | else e("payment less then min for suggest")] | |
215 | - | if (( | |
212 | + | if ((az == az)) | |
216 | 213 | then { | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | then (value( | |
214 | + | let aS = L(E) | |
215 | + | let aw = getInteger(aS) | |
216 | + | let aT = if (isDefined(aw)) | |
217 | + | then (value(aw) + 1) | |
221 | 218 | else 0 | |
222 | - | let | |
219 | + | let aU = if ((size(aK.payments) > 1)) | |
223 | 220 | then { | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | $Tuple4(true, | |
221 | + | let aV = aK.payments[1] | |
222 | + | let aW = toBase58String(value(aV.assetId)) | |
223 | + | let aX = value(aV.amount) | |
224 | + | $Tuple4(true, aW, aX, [StringEntry(D(E, aT), aW), IntegerEntry(I(E, aT), aX)]) | |
228 | 225 | } | |
229 | 226 | else $Tuple4(false, "EMPTY", 0, nil) | |
230 | - | let | |
231 | - | let | |
232 | - | let | |
233 | - | let | |
234 | - | let | |
235 | - | let | |
236 | - | let | |
237 | - | let | |
238 | - | let | |
239 | - | if (( | |
240 | - | then ([IntegerEntry( | |
227 | + | let Z = aU._1 | |
228 | + | let aa = aU._2 | |
229 | + | let ab = aU._3 | |
230 | + | let aY = aU._4 | |
231 | + | let ag = valueOrErrorMessage(getInteger(y), c("votingThresholdAdd not set")) | |
232 | + | let as = Y(Z, aa, ab, "verification", "inProgress", height, (height + aL), ag, 0, 0) | |
233 | + | let aZ = valueOrElse(getInteger(J), 0) | |
234 | + | let ba = (aP - aZ) | |
235 | + | let bb = invoke(u, "createOrUpdate", [E, aM, false], nil) | |
236 | + | if ((bb == bb)) | |
237 | + | then ([IntegerEntry(aS, aT), StringEntry(R(E, aT), toString(aK.caller)), StringEntry(X(E, aT), as), Burn(aO, ba)] ++ aY) | |
241 | 238 | else throw("Strict value is not equal to itself.") | |
242 | 239 | } | |
243 | 240 | else throw("Strict value is not equal to itself.") | |
244 | 241 | } | |
245 | 242 | ||
246 | 243 | ||
247 | 244 | ||
248 | - | @Callable( | |
249 | - | func suggestRemove ( | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
245 | + | @Callable(aK) | |
246 | + | func suggestRemove (E) = { | |
247 | + | let bc = aj(toString(aK.caller), height) | |
248 | + | let bd = getIntegerValue(K) | |
249 | + | let aN = aK.payments[0] | |
250 | + | let aO = value(aN.assetId) | |
251 | + | let aP = value(aN.amount) | |
252 | + | let az = [if ((bc >= bd)) | |
256 | 253 | then true | |
257 | - | else e("not enough gWXes"), if (( | |
254 | + | else e("not enough gWXes"), if ((aP >= getIntegerValue(W))) | |
258 | 255 | then true | |
259 | 256 | else e("payment less then min for suggest")] | |
260 | - | if (( | |
257 | + | if ((az == az)) | |
261 | 258 | then { | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | then (value( | |
259 | + | let aS = L(E) | |
260 | + | let aw = getInteger(aS) | |
261 | + | let aT = if (isDefined(aw)) | |
262 | + | then (value(aw) + 1) | |
266 | 263 | else 0 | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | [IntegerEntry( | |
264 | + | let aL = valueOrErrorMessage(getInteger(A), c("periodLengthRemove not set")) | |
265 | + | let af = (height + aL) | |
266 | + | let ag = valueOrErrorMessage(getInteger(z), c("votingThresholdRemove not set")) | |
267 | + | let as = Y(false, "EMPTY", 0, "deverification", "inProgress", height, (height + aL), ag, 0, 0) | |
268 | + | [IntegerEntry(aS, aT), StringEntry(R(E, aT), toString(aK.caller)), StringEntry(X(E, aT), as)] | |
272 | 269 | } | |
273 | 270 | else throw("Strict value is not equal to itself.") | |
274 | 271 | } | |
275 | 272 | ||
276 | 273 | ||
277 | 274 | ||
278 | - | @Callable( | |
279 | - | func vote ( | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | if (( | |
275 | + | @Callable(aK) | |
276 | + | func vote (E,P) = { | |
277 | + | let aS = L(E) | |
278 | + | let aw = valueOrErrorMessage(getInteger(aS), c("voting does not exist")) | |
279 | + | let as = av(E, aw) | |
280 | + | if ((as == as)) | |
284 | 281 | then { | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
288 | - | let | |
282 | + | let be = as._2 | |
283 | + | let bf = aj(toString(aK.caller), be) | |
284 | + | let aC = M(E, aw, aK.caller) | |
285 | + | let az = [if ((getString(aC) == unit)) | |
289 | 286 | then true | |
290 | - | else e("You have already voted"), if (( | |
287 | + | else e("You have already voted"), if ((bf > 0)) | |
291 | 288 | then true | |
292 | 289 | else throw("You'll not have gWX at the end of voting")] | |
293 | - | if (( | |
290 | + | if ((az == az)) | |
294 | 291 | then { | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | then $Tuple2(( | |
301 | - | else $Tuple2( | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let h = getBoolean( | |
292 | + | let aF = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
293 | + | let at = ar(aF) | |
294 | + | let ah = at._9 | |
295 | + | let ai = at._10 | |
296 | + | let bg = if (P) | |
297 | + | then $Tuple2((ah + bf), ai) | |
298 | + | else $Tuple2(ah, (ai + bf)) | |
299 | + | let bh = bg._1 | |
300 | + | let bi = bg._2 | |
301 | + | let bj = Y(at._1, at._2, at._3, at._4, at._5, at._6, at._7, at._8, bh, bi) | |
302 | + | let bk = { | |
303 | + | let h = getBoolean(D(E, aw)) | |
307 | 304 | if ($isInstanceOf(h, "Boolean")) | |
308 | 305 | then { | |
309 | - | let | |
310 | - | [BooleanEntry( | |
306 | + | let bl = h | |
307 | + | [BooleanEntry(G(aK.caller, E, aw), true)] | |
311 | 308 | } | |
312 | 309 | else if ($isInstanceOf(h, "Unit")) | |
313 | 310 | then nil | |
314 | 311 | else throw("Match error") | |
315 | 312 | } | |
316 | - | ([StringEntry( | |
313 | + | ([StringEntry(aC, O(P, bf)), StringEntry(X(E, aw), bj)] ++ bk) | |
317 | 314 | } | |
318 | 315 | else throw("Strict value is not equal to itself.") | |
319 | 316 | } | |
320 | 317 | else throw("Strict value is not equal to itself.") | |
321 | 318 | } | |
322 | 319 | ||
323 | 320 | ||
324 | 321 | ||
325 | - | @Callable( | |
326 | - | func cancelVote ( | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | if (( | |
322 | + | @Callable(aK) | |
323 | + | func cancelVote (E) = { | |
324 | + | let aS = L(E) | |
325 | + | let aw = valueOrErrorMessage(getInteger(aS), c("voting does not exist")) | |
326 | + | let aC = M(E, aw, aK.caller) | |
327 | + | let aD = valueOrErrorMessage(getString(aC), c("you have not voted")) | |
328 | + | let aE = split(aD, a) | |
329 | + | let P = aE[1] | |
330 | + | let Q = parseIntValue(aE[2]) | |
331 | + | let as = av(E, aw) | |
332 | + | if ((as == as)) | |
336 | 333 | then { | |
337 | - | let | |
334 | + | let az = [if (if ((P == "true")) | |
338 | 335 | then true | |
339 | - | else ( | |
336 | + | else (P == "false")) | |
340 | 337 | then true | |
341 | 338 | else e("invalid vote")] | |
342 | - | if (( | |
339 | + | if ((az == az)) | |
343 | 340 | then { | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | then $Tuple2(( | |
350 | - | else $Tuple2( | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | [StringEntry( | |
341 | + | let aF = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
342 | + | let at = ar(aF) | |
343 | + | let ah = at._9 | |
344 | + | let ai = at._10 | |
345 | + | let bm = if ((P == "true")) | |
346 | + | then $Tuple2((ah - Q), ai) | |
347 | + | else $Tuple2(ah, (ai - Q)) | |
348 | + | let bh = bm._1 | |
349 | + | let bi = bm._2 | |
350 | + | let bj = Y(at._1, at._2, at._3, at._4, at._5, at._6, at._7, at._8, bh, bi) | |
351 | + | [StringEntry(X(E, aw), bj), DeleteEntry(aC), DeleteEntry(G(aK.caller, E, aw))] | |
355 | 352 | } | |
356 | 353 | else throw("Strict value is not equal to itself.") | |
357 | 354 | } | |
358 | 355 | else throw("Strict value is not equal to itself.") | |
359 | 356 | } | |
360 | 357 | ||
361 | 358 | ||
362 | 359 | ||
363 | - | @Callable( | |
364 | - | func finalize ( | |
365 | - | let | |
366 | - | let | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let | |
377 | - | let | |
360 | + | @Callable(aK) | |
361 | + | func finalize (E) = { | |
362 | + | let aS = L(E) | |
363 | + | let aw = valueOrElse(getInteger(aS), 0) | |
364 | + | let bn = valueOrErrorMessage(getInteger(y), c("votingThresholdAdd not set")) | |
365 | + | let bo = valueOrErrorMessage(getInteger(z), c("votingThresholdRemove not set")) | |
366 | + | let aF = valueOrErrorMessage(getString(X(E, aw)), c("voting info not found")) | |
367 | + | let at = ar(aF) | |
368 | + | let ac = at._4 | |
369 | + | let ad = at._5 | |
370 | + | let af = at._7 | |
371 | + | let bp = at._8 | |
372 | + | let ah = at._9 | |
373 | + | let ai = at._10 | |
374 | + | let az = [if ((ad == "inProgress")) | |
378 | 375 | then true | |
379 | - | else e("voting not in progress"), if ((height >= | |
376 | + | else e("voting not in progress"), if ((height >= af)) | |
380 | 377 | then true | |
381 | 378 | else e("voting not finished")] | |
382 | - | if (( | |
379 | + | if ((az == az)) | |
383 | 380 | then { | |
384 | - | let | |
381 | + | let bq = if (((ah + ai) >= bp)) | |
385 | 382 | then "accepted" | |
386 | 383 | else "rejected" | |
387 | - | let | |
384 | + | let br = if ((ac == "verification")) | |
388 | 385 | then true | |
389 | 386 | else false | |
390 | - | let | |
387 | + | let bs = if ((ai > ah)) | |
391 | 388 | then { | |
392 | - | let | |
393 | - | if (( | |
389 | + | let bt = invoke(u, "setVerified", [E, br], nil) | |
390 | + | if ((bt == bt)) | |
394 | 391 | then { | |
395 | - | let | |
396 | - | [ScriptTransfer( | |
392 | + | let aZ = valueOrElse(getInteger(J), 0) | |
393 | + | [ScriptTransfer(aK.caller, aZ, x)] | |
397 | 394 | } | |
398 | 395 | else throw("Strict value is not equal to itself.") | |
399 | 396 | } | |
400 | 397 | else nil | |
401 | - | let | |
402 | - | ([StringEntry( | |
398 | + | let bj = Y(at._1, at._2, at._3, at._4, bq, at._6, at._7, at._8, at._9, at._10) | |
399 | + | ([StringEntry(X(E, aw), bj)] ++ bs) | |
403 | 400 | } | |
404 | 401 | else throw("Strict value is not equal to itself.") | |
405 | 402 | } | |
406 | 403 | ||
407 | 404 | ||
408 | 405 | ||
409 | - | @Callable( | |
410 | - | func claimREADONLY ( | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | then | |
406 | + | @Callable(aK) | |
407 | + | func claimREADONLY (E,F,bu) = { | |
408 | + | let H = valueOrErrorMessage(addressFromString(bu), c("invalid address")) | |
409 | + | let bv = getString(D(E, F)) | |
410 | + | let ab = if (isDefined(bv)) | |
411 | + | then aA(H, E, F) | |
415 | 412 | else 0 | |
416 | - | $Tuple2(nil, | |
413 | + | $Tuple2(nil, ab) | |
417 | 414 | } | |
418 | 415 | ||
419 | 416 | ||
420 | 417 | ||
421 | - | @Callable( | |
422 | - | func claim ( | |
423 | - | let | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
418 | + | @Callable(aK) | |
419 | + | func claim (E,F) = { | |
420 | + | let bw = aK.caller | |
421 | + | let bx = S(bw, E, F) | |
422 | + | let by = getInteger(bx) | |
423 | + | let az = [if ((by == unit)) | |
427 | 424 | then true | |
428 | 425 | else e("already claimed")] | |
429 | - | if (( | |
426 | + | if ((az == az)) | |
430 | 427 | then { | |
431 | - | let | |
432 | - | then | |
428 | + | let ab = if ((aA(bw, E, F) > 0)) | |
429 | + | then aA(bw, E, F) | |
433 | 430 | else e("nothing to claim") | |
434 | - | let | |
435 | - | let | |
431 | + | let bv = getString(D(E, F)) | |
432 | + | let bz = if (isDefined(bv)) | |
436 | 433 | then { | |
437 | - | let | |
438 | - | [ScriptTransfer( | |
434 | + | let bA = fromBase58String(value(bv)) | |
435 | + | [ScriptTransfer(bw, ab, bA), IntegerEntry(bx, ab), DeleteEntry(G(bw, E, F))] | |
439 | 436 | } | |
440 | 437 | else e("nothing to claim") | |
441 | - | | |
438 | + | bz | |
442 | 439 | } | |
443 | 440 | else throw("Strict value is not equal to itself.") | |
444 | 441 | } | |
445 | 442 | ||
446 | 443 | ||
447 | - | @Verifier( | |
448 | - | func | |
449 | - | let | |
450 | - | let h = | |
444 | + | @Verifier(bB) | |
445 | + | func bC () = { | |
446 | + | let bD = { | |
447 | + | let h = ap() | |
451 | 448 | if ($isInstanceOf(h, "ByteVector")) | |
452 | 449 | then { | |
453 | - | let | |
454 | - | | |
450 | + | let bl = h | |
451 | + | bl | |
455 | 452 | } | |
456 | 453 | else if ($isInstanceOf(h, "Unit")) | |
457 | - | then | |
454 | + | then bB.senderPublicKey | |
458 | 455 | else throw("Match error") | |
459 | 456 | } | |
460 | - | sigVerify( | |
457 | + | sigVerify(bB.bodyBytes, bB.proofs[0], bD) | |
461 | 458 | } | |
462 | 459 |
github/deemru/w8io/026f985 137.14 ms ◑