tx · A5RxhyGyxCLqw2eTdDSZeCZ78dYz6yeKeXwwfLsQtqnq 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T: -0.02200000 Waves 2022.06.27 16:17 [2114898] smart account 3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T > SELF 0.00000000 Waves
{ "type": 13, "id": "A5RxhyGyxCLqw2eTdDSZeCZ78dYz6yeKeXwwfLsQtqnq", "fee": 2200000, "feeAssetId": null, "timestamp": 1656335943745, "version": 1, "sender": "3N1Epwa6GQuTQr2K9WzeUcqSFCdERwuvL5T", "senderPublicKey": "7iXEgsFNsnbLZ3ca4tmz8jffnyxMu9keuBV6CuQPJLuA", "proofs": [ "JferUL45ECzgR4beaSqaWxmzk4GSJhG13JtRUUVKKjqfWpNfxhRa2GEAdgkJ7ZMD1dzcs4xmr8bwPSTswQagmrv" ], "script": "base64:AAIFAAAAAAAAADYIAhINCgsICAgICAgBCAEIARIECgIICBIFCgMICAQSBAoCCAgSAwoBARIECgIICBIDCgEIEgAAAAAhAAAAAAlzZXBhcmF0b3ICAAAAAl9fAAAAAAxrZXlGZWVBbW91bnQJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAANmZWUFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAAA5rZXlVc2RuQXNzZXRJZAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAAC3VzZG5Bc3NldElkBQAAAANuaWwFAAAACXNlcGFyYXRvcgAAAAAOa2V5RXBvY2hMZW5ndGgJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAtlcG9jaExlbmd0aAUAAAADbmlsBQAAAAlzZXBhcmF0b3IAAAAAEWtleUZpbmFsaXplUmV3YXJkCQAEuQAAAAIJAARMAAAAAgIAAAACJXMJAARMAAAAAgIAAAAOZmluYWxpemVSZXdhcmQFAAAAA25pbAUAAAAJc2VwYXJhdG9yAAAAAAxrZXlXeEFzc2V0SWQJAAS5A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AACdHgBAAAABnZlcmlmeQAAAAAEAAAAD3RhcmdldFB1YmxpY0tleQQAAAAHJG1hdGNoMAkBAAAAFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAAAAAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAApCeXRlVmVjdG9yBAAAAAJwawUAAAAHJG1hdGNoMAUAAAACcGsDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABFVuaXQIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAACAAAAAQIAAAALTWF0Y2ggZXJyb3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA90YXJnZXRQdWJsaWNLZXnM1sAO", "chainId": 84, "height": 2114898, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8gaRocQYr2GYogxYRLUVwJdYCQy12wjjgWee8HoUifki Next: 2UcyNAkziYLdS8VH9sNBj89mN3fNjqEjXxttYhD2TzHn Diff:
Old | New | Differences | |
---|---|---|---|
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | - | func D () = "%s__managerPublicKey" | |
57 | + | func D (E) = { | |
58 | + | let F = E | |
59 | + | let p = F._1 | |
60 | + | let q = F._2 | |
61 | + | makeString(["%s%s%s", "inList", p, q], a) | |
62 | + | } | |
58 | 63 | ||
59 | 64 | ||
60 | - | func | |
65 | + | func G () = "%s__managerPublicKey" | |
61 | 66 | ||
62 | 67 | ||
63 | - | ||
68 | + | func H () = "%s__pendingManagerPublicKey" | |
64 | 69 | ||
65 | - | let G = addressFromStringValue(m(j)) | |
66 | 70 | ||
67 | - | let | |
71 | + | let I = addressFromStringValue(m(g)) | |
68 | 72 | ||
69 | - | let | |
73 | + | let J = addressFromStringValue(m(j)) | |
70 | 74 | ||
71 | - | let | |
75 | + | let K = addressFromStringValue(m(i)) | |
72 | 76 | ||
73 | - | let | |
77 | + | let L = addressFromStringValue(m(k)) | |
74 | 78 | ||
75 | - | func L () = { | |
76 | - | let M = getString(D()) | |
77 | - | if ($isInstanceOf(M, "String")) | |
79 | + | let M = addressFromStringValue(m(h)) | |
80 | + | ||
81 | + | let N = addressFromStringValue(m(l)) | |
82 | + | ||
83 | + | func O () = { | |
84 | + | let P = getString(G()) | |
85 | + | if ($isInstanceOf(P, "String")) | |
78 | 86 | then { | |
79 | - | let | |
80 | - | fromBase58String( | |
87 | + | let Q = P | |
88 | + | fromBase58String(Q) | |
81 | 89 | } | |
82 | - | else if ($isInstanceOf( | |
90 | + | else if ($isInstanceOf(P, "Unit")) | |
83 | 91 | then unit | |
84 | 92 | else throw("Match error") | |
85 | 93 | } | |
86 | 94 | ||
87 | 95 | ||
88 | - | func | |
89 | - | let | |
90 | - | if ($isInstanceOf( | |
96 | + | func R () = { | |
97 | + | let P = getString(H()) | |
98 | + | if ($isInstanceOf(P, "String")) | |
91 | 99 | then { | |
92 | - | let | |
93 | - | fromBase58String( | |
100 | + | let Q = P | |
101 | + | fromBase58String(Q) | |
94 | 102 | } | |
95 | - | else if ($isInstanceOf( | |
103 | + | else if ($isInstanceOf(P, "Unit")) | |
96 | 104 | then unit | |
97 | 105 | else throw("Match error") | |
98 | 106 | } | |
99 | 107 | ||
100 | 108 | ||
101 | - | func | |
102 | - | let | |
103 | - | let | |
104 | - | if ($isInstanceOf( | |
109 | + | func S (T) = { | |
110 | + | let U = throw("permission denied") | |
111 | + | let P = O() | |
112 | + | if ($isInstanceOf(P, "ByteVector")) | |
105 | 113 | then { | |
106 | - | let | |
107 | - | if (( | |
114 | + | let V = P | |
115 | + | if ((T.callerPublicKey == V)) | |
108 | 116 | then true | |
109 | - | else | |
117 | + | else U | |
110 | 118 | } | |
111 | - | else if ($isInstanceOf( | |
112 | - | then if (( | |
119 | + | else if ($isInstanceOf(P, "Unit")) | |
120 | + | then if ((T.caller == this)) | |
113 | 121 | then true | |
114 | - | else | |
122 | + | else U | |
115 | 123 | else throw("Match error") | |
116 | 124 | } | |
117 | 125 | ||
118 | 126 | ||
119 | - | func | |
120 | - | let | |
121 | - | if ($isInstanceOf( | |
127 | + | func W (X) = { | |
128 | + | let P = X | |
129 | + | if ($isInstanceOf(P, "Int")) | |
122 | 130 | then { | |
123 | - | let | |
124 | - | | |
131 | + | let Y = P | |
132 | + | Y | |
125 | 133 | } | |
126 | 134 | else throw("failed to cast into Integer") | |
127 | 135 | } | |
128 | 136 | ||
129 | 137 | ||
130 | - | @Callable( | |
131 | - | func constructor ( | |
132 | - | let | |
138 | + | @Callable(T) | |
139 | + | func constructor (Z,aa,ab,ac,ad,ae,af,ag,ah,ai,aj) = { | |
140 | + | let ak = [S(T), if (isDefined(addressFromString(Z))) | |
133 | 141 | then true | |
134 | - | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString( | |
142 | + | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(aa))) | |
135 | 143 | then true | |
136 | - | else throw("Invalid boosting contract address"), if (isDefined(addressFromString( | |
144 | + | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(ad))) | |
137 | 145 | then true | |
138 | - | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString( | |
146 | + | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString(ab))) | |
139 | 147 | then true | |
140 | - | else throw("Invalid emission contract address"), if (isDefined(addressFromString( | |
148 | + | else throw("Invalid emission contract address"), if (isDefined(addressFromString(ac))) | |
141 | 149 | then true | |
142 | - | else throw("Invalid factory contract address"), if (( | |
150 | + | else throw("Invalid factory contract address"), if ((af >= 0)) | |
143 | 151 | then true | |
144 | - | else throw("Invalid fee amount"), if (( | |
152 | + | else throw("Invalid fee amount"), if ((ah > 0)) | |
145 | 153 | then true | |
146 | - | else throw("Invalid voting duration"), if (( | |
154 | + | else throw("Invalid voting duration"), if ((aj > 0)) | |
147 | 155 | then true | |
148 | - | else throw("Invalid finalize reward"), if (isDefined(assetInfo(fromBase58String( | |
156 | + | else throw("Invalid finalize reward"), if (isDefined(assetInfo(fromBase58String(ag)))) | |
149 | 157 | then true | |
150 | - | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String( | |
158 | + | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String(ai)))) | |
151 | 159 | then true | |
152 | 160 | else throw("Invalid USDN asset ID")] | |
153 | - | if (( | |
154 | - | then $Tuple2([StringEntry(g, | |
161 | + | if ((ak == ak)) | |
162 | + | then $Tuple2([StringEntry(g, Z), StringEntry(j, aa), StringEntry(i, ab), StringEntry(k, ac), StringEntry(h, ad), StringEntry(l, ae), IntegerEntry(b, af), IntegerEntry(d, ah), IntegerEntry(e, aj), StringEntry(f, ag), StringEntry(c, ai)], unit) | |
155 | 163 | else throw("Strict value is not equal to itself.") | |
156 | 164 | } | |
157 | 165 | ||
158 | 166 | ||
159 | 167 | ||
160 | - | @Callable( | |
168 | + | @Callable(T) | |
161 | 169 | func suggest (p,q) = { | |
162 | - | let ai = value(Q.payments[0]) | |
163 | - | let aj = valueOrErrorMessage(assetInfo(fromBase58String(p)), "invalid amountAssetId ID") | |
164 | - | let ah = [if ((aj.issuer == Q.caller)) | |
170 | + | let E = $Tuple2(p, q) | |
171 | + | let al = value(T.payments[0]) | |
172 | + | let am = valueOrErrorMessage(assetInfo(fromBase58String(p)), "invalid amountAssetId ID") | |
173 | + | let ak = [if ((am.issuer == T.caller)) | |
165 | 174 | then true | |
166 | - | else throw("asset can only be suggested by its issuer"), if (( | |
175 | + | else throw("asset can only be suggested by its issuer"), if ((am.scripted == false)) | |
167 | 176 | then true | |
168 | - | else throw("asset is smart"), if ((toBase58String(value( | |
177 | + | else throw("asset is smart"), if ((toBase58String(value(al.assetId)) == value(getString(f)))) | |
169 | 178 | then true | |
170 | - | else throw("invalid fee asset"), if (( | |
179 | + | else throw("invalid fee asset"), if ((al.amount == value(getInteger(b)))) | |
171 | 180 | then true | |
172 | 181 | else throw("invalid fee amount"), if ((q == value(getString(c)))) | |
173 | 182 | then true | |
174 | 183 | else throw("priceAssetId is not USDN"), if ((getInteger(o(p, q)) == unit)) | |
175 | 184 | then true | |
176 | - | else throw("already in voting list")] | |
177 | - | if ((ah == ah)) | |
185 | + | else throw("already in voting list"), if (!(valueOrElse(getBoolean(N, D(E)), false))) | |
186 | + | then true | |
187 | + | else throw("pool is in emission voting list")] | |
188 | + | if ((ak == ak)) | |
178 | 189 | then { | |
179 | - | let | |
180 | - | let | |
181 | - | if ($isInstanceOf( | |
190 | + | let an = { | |
191 | + | let P = invoke(M, "statusREADONLY", [p, q], nil) | |
192 | + | if ($isInstanceOf(P, "String")) | |
182 | 193 | then { | |
183 | - | let | |
184 | - | if (( | |
194 | + | let Q = P | |
195 | + | if ((Q == "active")) | |
185 | 196 | then true | |
186 | 197 | else throw("user pool is not active") | |
187 | 198 | } | |
188 | 199 | else throw("user pool is not active") | |
189 | 200 | } | |
190 | - | if (( | |
201 | + | if ((an == an)) | |
191 | 202 | then { | |
192 | - | let | |
193 | - | let | |
194 | - | if ($isInstanceOf( | |
203 | + | let ao = { | |
204 | + | let P = invoke(I, "isVerifiedREADONLY", [p], nil) | |
205 | + | if ($isInstanceOf(P, "Boolean")) | |
195 | 206 | then { | |
196 | - | let | |
197 | - | if ( | |
207 | + | let ap = P | |
208 | + | if (ap) | |
198 | 209 | then true | |
199 | 210 | else throw("asset is not verified") | |
200 | 211 | } | |
201 | 212 | else throw("asset is not verified") | |
202 | 213 | } | |
203 | - | if (( | |
214 | + | if ((ao == ao)) | |
204 | 215 | then { | |
205 | - | let | |
206 | - | if (( | |
216 | + | let aq = invoke(K, "burn", nil, [AttachedPayment(al.assetId, al.amount)]) | |
217 | + | if ((aq == aq)) | |
207 | 218 | then { | |
208 | - | let | |
209 | - | let | |
210 | - | if ($isInstanceOf( | |
219 | + | let ar = { | |
220 | + | let P = getInteger(r(p, q)) | |
221 | + | if ($isInstanceOf(P, "Int")) | |
211 | 222 | then { | |
212 | - | let | |
213 | - | ( | |
223 | + | let as = P | |
224 | + | (as + 1) | |
214 | 225 | } | |
215 | 226 | else 0 | |
216 | 227 | } | |
217 | - | $Tuple2([IntegerEntry(o(p, q), | |
228 | + | $Tuple2([IntegerEntry(o(p, q), ar), IntegerEntry(s(p, q, ar), height), StringEntry(u(p, q, ar), v("0", "0")), IntegerEntry(r(p, q), ar)], unit) | |
218 | 229 | } | |
219 | 230 | else throw("Strict value is not equal to itself.") | |
220 | 231 | } | |
227 | 238 | ||
228 | 239 | ||
229 | 240 | ||
230 | - | @Callable( | |
231 | - | func vote (p,q, | |
241 | + | @Callable(T) | |
242 | + | func vote (p,q,at) = { | |
232 | 243 | let t = value(getInteger(o(p, q))) | |
233 | - | let | |
234 | - | let | |
244 | + | let au = (value(getInteger(s(p, q, t))) + value(getInteger(d))) | |
245 | + | let ak = [if (isDefined(getInteger(o(p, q)))) | |
235 | 246 | then true | |
236 | - | else throw("the token isn't on the voting list"), if (( | |
247 | + | else throw("the token isn't on the voting list"), if ((au > height)) | |
237 | 248 | then true | |
238 | 249 | else throw("too late to vote")] | |
239 | - | if (( | |
250 | + | if ((ak == ak)) | |
240 | 251 | then { | |
241 | - | let B = invoke( | |
242 | - | let | |
252 | + | let B = invoke(J, "getUserGwxAmountAtHeightREADONLY", [toString(T.caller), au], nil) | |
253 | + | let av = if ((W(B) > 0)) | |
243 | 254 | then true | |
244 | 255 | else throw("you don't have gwx") | |
245 | - | if (( | |
256 | + | if ((av == av)) | |
246 | 257 | then { | |
247 | 258 | let C = { | |
248 | - | let | |
249 | - | if ($isInstanceOf( | |
259 | + | let P = getString(y(p, q, t, toString(T.caller))) | |
260 | + | if ($isInstanceOf(P, "String")) | |
250 | 261 | then { | |
251 | - | let | |
252 | - | let C = split( | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | then ( | |
262 | + | let Q = P | |
263 | + | let C = split(Q, a) | |
264 | + | let aw = C[1] | |
265 | + | let ax = C[2] | |
266 | + | let ay = if (if ((ax == "yes")) | |
267 | + | then (at == true) | |
257 | 268 | else false) | |
258 | 269 | then true | |
259 | - | else if (( | |
260 | - | then ( | |
270 | + | else if ((ax == "no")) | |
271 | + | then (at == false) | |
261 | 272 | else false | |
262 | - | let | |
263 | - | then ( | |
273 | + | let az = if (ay) | |
274 | + | then (W(B) == parseIntValue(aw)) | |
264 | 275 | else false | |
265 | - | let | |
266 | - | then | |
276 | + | let aA = if (if (ay) | |
277 | + | then az | |
267 | 278 | else false) | |
268 | 279 | then throw("you already voted") | |
269 | 280 | else invoke(this, "cancelVote", [p, q], nil) | |
270 | - | | |
281 | + | aA | |
271 | 282 | } | |
272 | - | else if ($isInstanceOf( | |
283 | + | else if ($isInstanceOf(P, "Unit")) | |
273 | 284 | then { | |
274 | - | let | |
275 | - | | |
285 | + | let aB = P | |
286 | + | aB | |
276 | 287 | } | |
277 | 288 | else throw("Match error") | |
278 | 289 | } | |
279 | 290 | if ((C == C)) | |
280 | 291 | then { | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
292 | + | let aC = split(value(getString(u(p, q, t))), a) | |
293 | + | let aD = aC[1] | |
294 | + | let aE = aC[2] | |
295 | + | let aF = if (at) | |
285 | 296 | then { | |
286 | - | let | |
287 | - | [toString( | |
297 | + | let aG = (parseIntValue(aD) + W(B)) | |
298 | + | [toString(aG), aE] | |
288 | 299 | } | |
289 | 300 | else { | |
290 | - | let | |
291 | - | [ | |
301 | + | let aH = (parseIntValue(aE) + W(B)) | |
302 | + | [aD, toString(aH)] | |
292 | 303 | } | |
293 | - | let | |
294 | - | let | |
295 | - | $Tuple2([StringEntry(u(p, q, t), v( | |
304 | + | let aI = y(p, q, t, toString(T.caller)) | |
305 | + | let aw = A(toString(W(B)), at) | |
306 | + | $Tuple2([StringEntry(u(p, q, t), v(aF[0], aF[1])), StringEntry(aI, aw)], unit) | |
296 | 307 | } | |
297 | 308 | else throw("Strict value is not equal to itself.") | |
298 | 309 | } | |
303 | 314 | ||
304 | 315 | ||
305 | 316 | ||
306 | - | @Callable( | |
317 | + | @Callable(T) | |
307 | 318 | func cancelVote (p,q) = { | |
308 | - | let | |
309 | - | then toString( | |
310 | - | else toString( | |
319 | + | let aJ = if ((T.caller == this)) | |
320 | + | then toString(T.originCaller) | |
321 | + | else toString(T.caller) | |
311 | 322 | let t = value(getInteger(o(p, q))) | |
312 | - | let | |
323 | + | let ak = [if (isDefined(getString(u(p, q, t)))) | |
313 | 324 | then true | |
314 | 325 | else throw("no vote for assets pair")] | |
315 | - | if (( | |
326 | + | if ((ak == ak)) | |
316 | 327 | then { | |
317 | - | let C = split(value(getString(y(p, q, t, | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
328 | + | let C = split(value(getString(y(p, q, t, aJ))), a) | |
329 | + | let aw = C[1] | |
330 | + | let ax = C[2] | |
331 | + | let aC = split(value(getString(u(p, q, t))), a) | |
332 | + | let aD = aC[1] | |
333 | + | let aE = aC[2] | |
334 | + | let aK = if ((ax == "yes")) | |
324 | 335 | then { | |
325 | - | let | |
326 | - | $Tuple2([StringEntry(u(p, q, t), v(toString( | |
336 | + | let aG = (parseIntValue(aD) - parseIntValue(aw)) | |
337 | + | $Tuple2([StringEntry(u(p, q, t), v(toString(aG), aE)), DeleteEntry(y(p, q, t, aJ))], unit) | |
327 | 338 | } | |
328 | 339 | else { | |
329 | - | let | |
330 | - | $Tuple2([StringEntry(u(p, q, t), v( | |
340 | + | let aH = (parseIntValue(aE) - parseIntValue(aw)) | |
341 | + | $Tuple2([StringEntry(u(p, q, t), v(aD, toString(aH))), DeleteEntry(y(p, q, t, aJ))], unit) | |
331 | 342 | } | |
332 | - | | |
343 | + | aK | |
333 | 344 | } | |
334 | 345 | else throw("Strict value is not equal to itself.") | |
335 | 346 | } | |
336 | 347 | ||
337 | 348 | ||
338 | 349 | ||
339 | - | @Callable( | |
340 | - | func setFee ( | |
341 | - | let | |
342 | - | if (( | |
343 | - | then [IntegerEntry(b, | |
350 | + | @Callable(T) | |
351 | + | func setFee (aL) = { | |
352 | + | let ak = [S(T)] | |
353 | + | if ((ak == ak)) | |
354 | + | then [IntegerEntry(b, aL)] | |
344 | 355 | else throw("Strict value is not equal to itself.") | |
345 | 356 | } | |
346 | 357 | ||
347 | 358 | ||
348 | 359 | ||
349 | - | @Callable( | |
360 | + | @Callable(T) | |
350 | 361 | func finalize (p,q) = { | |
351 | 362 | let t = value(getInteger(o(p, q))) | |
352 | - | let | |
353 | - | let | |
363 | + | let au = (value(getInteger(s(p, q, t))) + value(getInteger(d))) | |
364 | + | let ak = [if (isDefined(getInteger(o(p, q)))) | |
354 | 365 | then true | |
355 | - | else throw("no assets pair"), if ((height >= | |
366 | + | else throw("no assets pair"), if ((height >= au)) | |
356 | 367 | then true | |
357 | 368 | else throw("insufficient height for completion")] | |
358 | - | if (( | |
369 | + | if ((ak == ak)) | |
359 | 370 | then { | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
371 | + | let aC = split(value(getString(u(p, q, t))), a) | |
372 | + | let aD = parseIntValue(aC[1]) | |
373 | + | let aE = parseIntValue(aC[2]) | |
374 | + | let aK = if ((aD > aE)) | |
364 | 375 | then { | |
365 | - | let | |
366 | - | if (( | |
376 | + | let aM = invoke(L, "setWxEmissionPoolLabel", [p, q], nil) | |
377 | + | if ((aM == aM)) | |
367 | 378 | then { | |
368 | - | let | |
369 | - | if (( | |
379 | + | let aN = invoke(N, "create", [p, q], nil) | |
380 | + | if ((aN == aN)) | |
370 | 381 | then $Tuple2([DeleteEntry(o(p, q))], unit) | |
371 | 382 | else throw("Strict value is not equal to itself.") | |
372 | 383 | } | |
373 | 384 | else throw("Strict value is not equal to itself.") | |
374 | 385 | } | |
375 | 386 | else $Tuple2([DeleteEntry(o(p, q))], unit) | |
376 | - | | |
387 | + | aK | |
377 | 388 | } | |
378 | 389 | else throw("Strict value is not equal to itself.") | |
379 | 390 | } | |
380 | 391 | ||
381 | 392 | ||
382 | 393 | ||
383 | - | @Callable( | |
384 | - | func setManager ( | |
385 | - | let | |
386 | - | if (( | |
394 | + | @Callable(T) | |
395 | + | func setManager (aO) = { | |
396 | + | let aP = S(T) | |
397 | + | if ((aP == aP)) | |
387 | 398 | then { | |
388 | - | let | |
389 | - | if (( | |
390 | - | then [StringEntry( | |
399 | + | let aQ = fromBase58String(aO) | |
400 | + | if ((aQ == aQ)) | |
401 | + | then [StringEntry(H(), aO)] | |
391 | 402 | else throw("Strict value is not equal to itself.") | |
392 | 403 | } | |
393 | 404 | else throw("Strict value is not equal to itself.") | |
395 | 406 | ||
396 | 407 | ||
397 | 408 | ||
398 | - | @Callable( | |
409 | + | @Callable(T) | |
399 | 410 | func confirmManager () = { | |
400 | - | let | |
401 | - | let | |
411 | + | let aR = R() | |
412 | + | let aS = if (isDefined(aR)) | |
402 | 413 | then true | |
403 | 414 | else throw("no pending manager") | |
404 | - | if (( | |
415 | + | if ((aS == aS)) | |
405 | 416 | then { | |
406 | - | let | |
417 | + | let aT = if ((T.callerPublicKey == value(aR))) | |
407 | 418 | then true | |
408 | 419 | else throw("you are not pending manager") | |
409 | - | if (( | |
410 | - | then [StringEntry( | |
420 | + | if ((aT == aT)) | |
421 | + | then [StringEntry(G(), toBase58String(value(aR))), DeleteEntry(H())] | |
411 | 422 | else throw("Strict value is not equal to itself.") | |
412 | 423 | } | |
413 | 424 | else throw("Strict value is not equal to itself.") | |
414 | 425 | } | |
415 | 426 | ||
416 | 427 | ||
417 | - | @Verifier( | |
418 | - | func | |
419 | - | let | |
420 | - | let | |
421 | - | if ($isInstanceOf( | |
428 | + | @Verifier(aU) | |
429 | + | func aV () = { | |
430 | + | let aW = { | |
431 | + | let P = O() | |
432 | + | if ($isInstanceOf(P, "ByteVector")) | |
422 | 433 | then { | |
423 | - | let | |
424 | - | | |
434 | + | let V = P | |
435 | + | V | |
425 | 436 | } | |
426 | - | else if ($isInstanceOf( | |
427 | - | then | |
437 | + | else if ($isInstanceOf(P, "Unit")) | |
438 | + | then aU.senderPublicKey | |
428 | 439 | else throw("Match error") | |
429 | 440 | } | |
430 | - | sigVerify( | |
441 | + | sigVerify(aU.bodyBytes, aU.proofs[0], aW) | |
431 | 442 | } | |
432 | 443 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = makeString(["%s", "fee"], a) | |
7 | 7 | ||
8 | 8 | let c = makeString(["%s", "usdnAssetId"], a) | |
9 | 9 | ||
10 | 10 | let d = makeString(["%s", "epochLength"], a) | |
11 | 11 | ||
12 | 12 | let e = makeString(["%s", "finalizeReward"], a) | |
13 | 13 | ||
14 | 14 | let f = makeString(["%s", "wxAssetId"], a) | |
15 | 15 | ||
16 | 16 | let g = makeString(["%s", "assetsStoreContract"], a) | |
17 | 17 | ||
18 | 18 | let h = makeString(["%s", "userPoolContract"], a) | |
19 | 19 | ||
20 | 20 | let i = makeString(["%s", "emissionContract"], a) | |
21 | 21 | ||
22 | 22 | let j = makeString(["%s", "boostingContract"], a) | |
23 | 23 | ||
24 | 24 | let k = makeString(["%s", "factoryContract"], a) | |
25 | 25 | ||
26 | 26 | let l = makeString(["%s", "votingEmissionContract"], a) | |
27 | 27 | ||
28 | 28 | func m (n) = valueOrErrorMessage(getString(this, n), (n + " is not defined")) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func o (p,q) = makeString(["%s%s%s", "inList", p, q], a) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func r (p,q) = makeString(["%s%s%s", "suggestIndex", p, q], a) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func s (p,q,t) = makeString(["%s%s%s%d", "startHeight", p, q, toString(t)], a) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func u (p,q,t) = makeString(["%s%s%s%d", "votingResult", p, q, toString(t)], a) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func v (w,x) = makeString(["%d%d", w, x], a) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func y (p,q,t,z) = makeString(["%s%s%s%d%s", "vote", p, q, toString(t), z], a) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func A (B,C) = { | |
50 | 50 | let n = if (C) | |
51 | 51 | then makeString(["%d%s", B, "yes"], a) | |
52 | 52 | else makeString(["%d%s", B, "no"], a) | |
53 | 53 | n | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | - | func D () = "%s__managerPublicKey" | |
57 | + | func D (E) = { | |
58 | + | let F = E | |
59 | + | let p = F._1 | |
60 | + | let q = F._2 | |
61 | + | makeString(["%s%s%s", "inList", p, q], a) | |
62 | + | } | |
58 | 63 | ||
59 | 64 | ||
60 | - | func | |
65 | + | func G () = "%s__managerPublicKey" | |
61 | 66 | ||
62 | 67 | ||
63 | - | ||
68 | + | func H () = "%s__pendingManagerPublicKey" | |
64 | 69 | ||
65 | - | let G = addressFromStringValue(m(j)) | |
66 | 70 | ||
67 | - | let | |
71 | + | let I = addressFromStringValue(m(g)) | |
68 | 72 | ||
69 | - | let | |
73 | + | let J = addressFromStringValue(m(j)) | |
70 | 74 | ||
71 | - | let | |
75 | + | let K = addressFromStringValue(m(i)) | |
72 | 76 | ||
73 | - | let | |
77 | + | let L = addressFromStringValue(m(k)) | |
74 | 78 | ||
75 | - | func L () = { | |
76 | - | let M = getString(D()) | |
77 | - | if ($isInstanceOf(M, "String")) | |
79 | + | let M = addressFromStringValue(m(h)) | |
80 | + | ||
81 | + | let N = addressFromStringValue(m(l)) | |
82 | + | ||
83 | + | func O () = { | |
84 | + | let P = getString(G()) | |
85 | + | if ($isInstanceOf(P, "String")) | |
78 | 86 | then { | |
79 | - | let | |
80 | - | fromBase58String( | |
87 | + | let Q = P | |
88 | + | fromBase58String(Q) | |
81 | 89 | } | |
82 | - | else if ($isInstanceOf( | |
90 | + | else if ($isInstanceOf(P, "Unit")) | |
83 | 91 | then unit | |
84 | 92 | else throw("Match error") | |
85 | 93 | } | |
86 | 94 | ||
87 | 95 | ||
88 | - | func | |
89 | - | let | |
90 | - | if ($isInstanceOf( | |
96 | + | func R () = { | |
97 | + | let P = getString(H()) | |
98 | + | if ($isInstanceOf(P, "String")) | |
91 | 99 | then { | |
92 | - | let | |
93 | - | fromBase58String( | |
100 | + | let Q = P | |
101 | + | fromBase58String(Q) | |
94 | 102 | } | |
95 | - | else if ($isInstanceOf( | |
103 | + | else if ($isInstanceOf(P, "Unit")) | |
96 | 104 | then unit | |
97 | 105 | else throw("Match error") | |
98 | 106 | } | |
99 | 107 | ||
100 | 108 | ||
101 | - | func | |
102 | - | let | |
103 | - | let | |
104 | - | if ($isInstanceOf( | |
109 | + | func S (T) = { | |
110 | + | let U = throw("permission denied") | |
111 | + | let P = O() | |
112 | + | if ($isInstanceOf(P, "ByteVector")) | |
105 | 113 | then { | |
106 | - | let | |
107 | - | if (( | |
114 | + | let V = P | |
115 | + | if ((T.callerPublicKey == V)) | |
108 | 116 | then true | |
109 | - | else | |
117 | + | else U | |
110 | 118 | } | |
111 | - | else if ($isInstanceOf( | |
112 | - | then if (( | |
119 | + | else if ($isInstanceOf(P, "Unit")) | |
120 | + | then if ((T.caller == this)) | |
113 | 121 | then true | |
114 | - | else | |
122 | + | else U | |
115 | 123 | else throw("Match error") | |
116 | 124 | } | |
117 | 125 | ||
118 | 126 | ||
119 | - | func | |
120 | - | let | |
121 | - | if ($isInstanceOf( | |
127 | + | func W (X) = { | |
128 | + | let P = X | |
129 | + | if ($isInstanceOf(P, "Int")) | |
122 | 130 | then { | |
123 | - | let | |
124 | - | | |
131 | + | let Y = P | |
132 | + | Y | |
125 | 133 | } | |
126 | 134 | else throw("failed to cast into Integer") | |
127 | 135 | } | |
128 | 136 | ||
129 | 137 | ||
130 | - | @Callable( | |
131 | - | func constructor ( | |
132 | - | let | |
138 | + | @Callable(T) | |
139 | + | func constructor (Z,aa,ab,ac,ad,ae,af,ag,ah,ai,aj) = { | |
140 | + | let ak = [S(T), if (isDefined(addressFromString(Z))) | |
133 | 141 | then true | |
134 | - | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString( | |
142 | + | else throw("Invalid asset_store contract address"), if (isDefined(addressFromString(aa))) | |
135 | 143 | then true | |
136 | - | else throw("Invalid boosting contract address"), if (isDefined(addressFromString( | |
144 | + | else throw("Invalid boosting contract address"), if (isDefined(addressFromString(ad))) | |
137 | 145 | then true | |
138 | - | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString( | |
146 | + | else throw("Invalid user_pools contract address"), if (isDefined(addressFromString(ab))) | |
139 | 147 | then true | |
140 | - | else throw("Invalid emission contract address"), if (isDefined(addressFromString( | |
148 | + | else throw("Invalid emission contract address"), if (isDefined(addressFromString(ac))) | |
141 | 149 | then true | |
142 | - | else throw("Invalid factory contract address"), if (( | |
150 | + | else throw("Invalid factory contract address"), if ((af >= 0)) | |
143 | 151 | then true | |
144 | - | else throw("Invalid fee amount"), if (( | |
152 | + | else throw("Invalid fee amount"), if ((ah > 0)) | |
145 | 153 | then true | |
146 | - | else throw("Invalid voting duration"), if (( | |
154 | + | else throw("Invalid voting duration"), if ((aj > 0)) | |
147 | 155 | then true | |
148 | - | else throw("Invalid finalize reward"), if (isDefined(assetInfo(fromBase58String( | |
156 | + | else throw("Invalid finalize reward"), if (isDefined(assetInfo(fromBase58String(ag)))) | |
149 | 157 | then true | |
150 | - | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String( | |
158 | + | else throw("Invalid WX asset ID"), if (isDefined(assetInfo(fromBase58String(ai)))) | |
151 | 159 | then true | |
152 | 160 | else throw("Invalid USDN asset ID")] | |
153 | - | if (( | |
154 | - | then $Tuple2([StringEntry(g, | |
161 | + | if ((ak == ak)) | |
162 | + | then $Tuple2([StringEntry(g, Z), StringEntry(j, aa), StringEntry(i, ab), StringEntry(k, ac), StringEntry(h, ad), StringEntry(l, ae), IntegerEntry(b, af), IntegerEntry(d, ah), IntegerEntry(e, aj), StringEntry(f, ag), StringEntry(c, ai)], unit) | |
155 | 163 | else throw("Strict value is not equal to itself.") | |
156 | 164 | } | |
157 | 165 | ||
158 | 166 | ||
159 | 167 | ||
160 | - | @Callable( | |
168 | + | @Callable(T) | |
161 | 169 | func suggest (p,q) = { | |
162 | - | let ai = value(Q.payments[0]) | |
163 | - | let aj = valueOrErrorMessage(assetInfo(fromBase58String(p)), "invalid amountAssetId ID") | |
164 | - | let ah = [if ((aj.issuer == Q.caller)) | |
170 | + | let E = $Tuple2(p, q) | |
171 | + | let al = value(T.payments[0]) | |
172 | + | let am = valueOrErrorMessage(assetInfo(fromBase58String(p)), "invalid amountAssetId ID") | |
173 | + | let ak = [if ((am.issuer == T.caller)) | |
165 | 174 | then true | |
166 | - | else throw("asset can only be suggested by its issuer"), if (( | |
175 | + | else throw("asset can only be suggested by its issuer"), if ((am.scripted == false)) | |
167 | 176 | then true | |
168 | - | else throw("asset is smart"), if ((toBase58String(value( | |
177 | + | else throw("asset is smart"), if ((toBase58String(value(al.assetId)) == value(getString(f)))) | |
169 | 178 | then true | |
170 | - | else throw("invalid fee asset"), if (( | |
179 | + | else throw("invalid fee asset"), if ((al.amount == value(getInteger(b)))) | |
171 | 180 | then true | |
172 | 181 | else throw("invalid fee amount"), if ((q == value(getString(c)))) | |
173 | 182 | then true | |
174 | 183 | else throw("priceAssetId is not USDN"), if ((getInteger(o(p, q)) == unit)) | |
175 | 184 | then true | |
176 | - | else throw("already in voting list")] | |
177 | - | if ((ah == ah)) | |
185 | + | else throw("already in voting list"), if (!(valueOrElse(getBoolean(N, D(E)), false))) | |
186 | + | then true | |
187 | + | else throw("pool is in emission voting list")] | |
188 | + | if ((ak == ak)) | |
178 | 189 | then { | |
179 | - | let | |
180 | - | let | |
181 | - | if ($isInstanceOf( | |
190 | + | let an = { | |
191 | + | let P = invoke(M, "statusREADONLY", [p, q], nil) | |
192 | + | if ($isInstanceOf(P, "String")) | |
182 | 193 | then { | |
183 | - | let | |
184 | - | if (( | |
194 | + | let Q = P | |
195 | + | if ((Q == "active")) | |
185 | 196 | then true | |
186 | 197 | else throw("user pool is not active") | |
187 | 198 | } | |
188 | 199 | else throw("user pool is not active") | |
189 | 200 | } | |
190 | - | if (( | |
201 | + | if ((an == an)) | |
191 | 202 | then { | |
192 | - | let | |
193 | - | let | |
194 | - | if ($isInstanceOf( | |
203 | + | let ao = { | |
204 | + | let P = invoke(I, "isVerifiedREADONLY", [p], nil) | |
205 | + | if ($isInstanceOf(P, "Boolean")) | |
195 | 206 | then { | |
196 | - | let | |
197 | - | if ( | |
207 | + | let ap = P | |
208 | + | if (ap) | |
198 | 209 | then true | |
199 | 210 | else throw("asset is not verified") | |
200 | 211 | } | |
201 | 212 | else throw("asset is not verified") | |
202 | 213 | } | |
203 | - | if (( | |
214 | + | if ((ao == ao)) | |
204 | 215 | then { | |
205 | - | let | |
206 | - | if (( | |
216 | + | let aq = invoke(K, "burn", nil, [AttachedPayment(al.assetId, al.amount)]) | |
217 | + | if ((aq == aq)) | |
207 | 218 | then { | |
208 | - | let | |
209 | - | let | |
210 | - | if ($isInstanceOf( | |
219 | + | let ar = { | |
220 | + | let P = getInteger(r(p, q)) | |
221 | + | if ($isInstanceOf(P, "Int")) | |
211 | 222 | then { | |
212 | - | let | |
213 | - | ( | |
223 | + | let as = P | |
224 | + | (as + 1) | |
214 | 225 | } | |
215 | 226 | else 0 | |
216 | 227 | } | |
217 | - | $Tuple2([IntegerEntry(o(p, q), | |
228 | + | $Tuple2([IntegerEntry(o(p, q), ar), IntegerEntry(s(p, q, ar), height), StringEntry(u(p, q, ar), v("0", "0")), IntegerEntry(r(p, q), ar)], unit) | |
218 | 229 | } | |
219 | 230 | else throw("Strict value is not equal to itself.") | |
220 | 231 | } | |
221 | 232 | else throw("Strict value is not equal to itself.") | |
222 | 233 | } | |
223 | 234 | else throw("Strict value is not equal to itself.") | |
224 | 235 | } | |
225 | 236 | else throw("Strict value is not equal to itself.") | |
226 | 237 | } | |
227 | 238 | ||
228 | 239 | ||
229 | 240 | ||
230 | - | @Callable( | |
231 | - | func vote (p,q, | |
241 | + | @Callable(T) | |
242 | + | func vote (p,q,at) = { | |
232 | 243 | let t = value(getInteger(o(p, q))) | |
233 | - | let | |
234 | - | let | |
244 | + | let au = (value(getInteger(s(p, q, t))) + value(getInteger(d))) | |
245 | + | let ak = [if (isDefined(getInteger(o(p, q)))) | |
235 | 246 | then true | |
236 | - | else throw("the token isn't on the voting list"), if (( | |
247 | + | else throw("the token isn't on the voting list"), if ((au > height)) | |
237 | 248 | then true | |
238 | 249 | else throw("too late to vote")] | |
239 | - | if (( | |
250 | + | if ((ak == ak)) | |
240 | 251 | then { | |
241 | - | let B = invoke( | |
242 | - | let | |
252 | + | let B = invoke(J, "getUserGwxAmountAtHeightREADONLY", [toString(T.caller), au], nil) | |
253 | + | let av = if ((W(B) > 0)) | |
243 | 254 | then true | |
244 | 255 | else throw("you don't have gwx") | |
245 | - | if (( | |
256 | + | if ((av == av)) | |
246 | 257 | then { | |
247 | 258 | let C = { | |
248 | - | let | |
249 | - | if ($isInstanceOf( | |
259 | + | let P = getString(y(p, q, t, toString(T.caller))) | |
260 | + | if ($isInstanceOf(P, "String")) | |
250 | 261 | then { | |
251 | - | let | |
252 | - | let C = split( | |
253 | - | let | |
254 | - | let | |
255 | - | let | |
256 | - | then ( | |
262 | + | let Q = P | |
263 | + | let C = split(Q, a) | |
264 | + | let aw = C[1] | |
265 | + | let ax = C[2] | |
266 | + | let ay = if (if ((ax == "yes")) | |
267 | + | then (at == true) | |
257 | 268 | else false) | |
258 | 269 | then true | |
259 | - | else if (( | |
260 | - | then ( | |
270 | + | else if ((ax == "no")) | |
271 | + | then (at == false) | |
261 | 272 | else false | |
262 | - | let | |
263 | - | then ( | |
273 | + | let az = if (ay) | |
274 | + | then (W(B) == parseIntValue(aw)) | |
264 | 275 | else false | |
265 | - | let | |
266 | - | then | |
276 | + | let aA = if (if (ay) | |
277 | + | then az | |
267 | 278 | else false) | |
268 | 279 | then throw("you already voted") | |
269 | 280 | else invoke(this, "cancelVote", [p, q], nil) | |
270 | - | | |
281 | + | aA | |
271 | 282 | } | |
272 | - | else if ($isInstanceOf( | |
283 | + | else if ($isInstanceOf(P, "Unit")) | |
273 | 284 | then { | |
274 | - | let | |
275 | - | | |
285 | + | let aB = P | |
286 | + | aB | |
276 | 287 | } | |
277 | 288 | else throw("Match error") | |
278 | 289 | } | |
279 | 290 | if ((C == C)) | |
280 | 291 | then { | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
292 | + | let aC = split(value(getString(u(p, q, t))), a) | |
293 | + | let aD = aC[1] | |
294 | + | let aE = aC[2] | |
295 | + | let aF = if (at) | |
285 | 296 | then { | |
286 | - | let | |
287 | - | [toString( | |
297 | + | let aG = (parseIntValue(aD) + W(B)) | |
298 | + | [toString(aG), aE] | |
288 | 299 | } | |
289 | 300 | else { | |
290 | - | let | |
291 | - | [ | |
301 | + | let aH = (parseIntValue(aE) + W(B)) | |
302 | + | [aD, toString(aH)] | |
292 | 303 | } | |
293 | - | let | |
294 | - | let | |
295 | - | $Tuple2([StringEntry(u(p, q, t), v( | |
304 | + | let aI = y(p, q, t, toString(T.caller)) | |
305 | + | let aw = A(toString(W(B)), at) | |
306 | + | $Tuple2([StringEntry(u(p, q, t), v(aF[0], aF[1])), StringEntry(aI, aw)], unit) | |
296 | 307 | } | |
297 | 308 | else throw("Strict value is not equal to itself.") | |
298 | 309 | } | |
299 | 310 | else throw("Strict value is not equal to itself.") | |
300 | 311 | } | |
301 | 312 | else throw("Strict value is not equal to itself.") | |
302 | 313 | } | |
303 | 314 | ||
304 | 315 | ||
305 | 316 | ||
306 | - | @Callable( | |
317 | + | @Callable(T) | |
307 | 318 | func cancelVote (p,q) = { | |
308 | - | let | |
309 | - | then toString( | |
310 | - | else toString( | |
319 | + | let aJ = if ((T.caller == this)) | |
320 | + | then toString(T.originCaller) | |
321 | + | else toString(T.caller) | |
311 | 322 | let t = value(getInteger(o(p, q))) | |
312 | - | let | |
323 | + | let ak = [if (isDefined(getString(u(p, q, t)))) | |
313 | 324 | then true | |
314 | 325 | else throw("no vote for assets pair")] | |
315 | - | if (( | |
326 | + | if ((ak == ak)) | |
316 | 327 | then { | |
317 | - | let C = split(value(getString(y(p, q, t, | |
318 | - | let | |
319 | - | let | |
320 | - | let | |
321 | - | let | |
322 | - | let | |
323 | - | let | |
328 | + | let C = split(value(getString(y(p, q, t, aJ))), a) | |
329 | + | let aw = C[1] | |
330 | + | let ax = C[2] | |
331 | + | let aC = split(value(getString(u(p, q, t))), a) | |
332 | + | let aD = aC[1] | |
333 | + | let aE = aC[2] | |
334 | + | let aK = if ((ax == "yes")) | |
324 | 335 | then { | |
325 | - | let | |
326 | - | $Tuple2([StringEntry(u(p, q, t), v(toString( | |
336 | + | let aG = (parseIntValue(aD) - parseIntValue(aw)) | |
337 | + | $Tuple2([StringEntry(u(p, q, t), v(toString(aG), aE)), DeleteEntry(y(p, q, t, aJ))], unit) | |
327 | 338 | } | |
328 | 339 | else { | |
329 | - | let | |
330 | - | $Tuple2([StringEntry(u(p, q, t), v( | |
340 | + | let aH = (parseIntValue(aE) - parseIntValue(aw)) | |
341 | + | $Tuple2([StringEntry(u(p, q, t), v(aD, toString(aH))), DeleteEntry(y(p, q, t, aJ))], unit) | |
331 | 342 | } | |
332 | - | | |
343 | + | aK | |
333 | 344 | } | |
334 | 345 | else throw("Strict value is not equal to itself.") | |
335 | 346 | } | |
336 | 347 | ||
337 | 348 | ||
338 | 349 | ||
339 | - | @Callable( | |
340 | - | func setFee ( | |
341 | - | let | |
342 | - | if (( | |
343 | - | then [IntegerEntry(b, | |
350 | + | @Callable(T) | |
351 | + | func setFee (aL) = { | |
352 | + | let ak = [S(T)] | |
353 | + | if ((ak == ak)) | |
354 | + | then [IntegerEntry(b, aL)] | |
344 | 355 | else throw("Strict value is not equal to itself.") | |
345 | 356 | } | |
346 | 357 | ||
347 | 358 | ||
348 | 359 | ||
349 | - | @Callable( | |
360 | + | @Callable(T) | |
350 | 361 | func finalize (p,q) = { | |
351 | 362 | let t = value(getInteger(o(p, q))) | |
352 | - | let | |
353 | - | let | |
363 | + | let au = (value(getInteger(s(p, q, t))) + value(getInteger(d))) | |
364 | + | let ak = [if (isDefined(getInteger(o(p, q)))) | |
354 | 365 | then true | |
355 | - | else throw("no assets pair"), if ((height >= | |
366 | + | else throw("no assets pair"), if ((height >= au)) | |
356 | 367 | then true | |
357 | 368 | else throw("insufficient height for completion")] | |
358 | - | if (( | |
369 | + | if ((ak == ak)) | |
359 | 370 | then { | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
371 | + | let aC = split(value(getString(u(p, q, t))), a) | |
372 | + | let aD = parseIntValue(aC[1]) | |
373 | + | let aE = parseIntValue(aC[2]) | |
374 | + | let aK = if ((aD > aE)) | |
364 | 375 | then { | |
365 | - | let | |
366 | - | if (( | |
376 | + | let aM = invoke(L, "setWxEmissionPoolLabel", [p, q], nil) | |
377 | + | if ((aM == aM)) | |
367 | 378 | then { | |
368 | - | let | |
369 | - | if (( | |
379 | + | let aN = invoke(N, "create", [p, q], nil) | |
380 | + | if ((aN == aN)) | |
370 | 381 | then $Tuple2([DeleteEntry(o(p, q))], unit) | |
371 | 382 | else throw("Strict value is not equal to itself.") | |
372 | 383 | } | |
373 | 384 | else throw("Strict value is not equal to itself.") | |
374 | 385 | } | |
375 | 386 | else $Tuple2([DeleteEntry(o(p, q))], unit) | |
376 | - | | |
387 | + | aK | |
377 | 388 | } | |
378 | 389 | else throw("Strict value is not equal to itself.") | |
379 | 390 | } | |
380 | 391 | ||
381 | 392 | ||
382 | 393 | ||
383 | - | @Callable( | |
384 | - | func setManager ( | |
385 | - | let | |
386 | - | if (( | |
394 | + | @Callable(T) | |
395 | + | func setManager (aO) = { | |
396 | + | let aP = S(T) | |
397 | + | if ((aP == aP)) | |
387 | 398 | then { | |
388 | - | let | |
389 | - | if (( | |
390 | - | then [StringEntry( | |
399 | + | let aQ = fromBase58String(aO) | |
400 | + | if ((aQ == aQ)) | |
401 | + | then [StringEntry(H(), aO)] | |
391 | 402 | else throw("Strict value is not equal to itself.") | |
392 | 403 | } | |
393 | 404 | else throw("Strict value is not equal to itself.") | |
394 | 405 | } | |
395 | 406 | ||
396 | 407 | ||
397 | 408 | ||
398 | - | @Callable( | |
409 | + | @Callable(T) | |
399 | 410 | func confirmManager () = { | |
400 | - | let | |
401 | - | let | |
411 | + | let aR = R() | |
412 | + | let aS = if (isDefined(aR)) | |
402 | 413 | then true | |
403 | 414 | else throw("no pending manager") | |
404 | - | if (( | |
415 | + | if ((aS == aS)) | |
405 | 416 | then { | |
406 | - | let | |
417 | + | let aT = if ((T.callerPublicKey == value(aR))) | |
407 | 418 | then true | |
408 | 419 | else throw("you are not pending manager") | |
409 | - | if (( | |
410 | - | then [StringEntry( | |
420 | + | if ((aT == aT)) | |
421 | + | then [StringEntry(G(), toBase58String(value(aR))), DeleteEntry(H())] | |
411 | 422 | else throw("Strict value is not equal to itself.") | |
412 | 423 | } | |
413 | 424 | else throw("Strict value is not equal to itself.") | |
414 | 425 | } | |
415 | 426 | ||
416 | 427 | ||
417 | - | @Verifier( | |
418 | - | func | |
419 | - | let | |
420 | - | let | |
421 | - | if ($isInstanceOf( | |
428 | + | @Verifier(aU) | |
429 | + | func aV () = { | |
430 | + | let aW = { | |
431 | + | let P = O() | |
432 | + | if ($isInstanceOf(P, "ByteVector")) | |
422 | 433 | then { | |
423 | - | let | |
424 | - | | |
434 | + | let V = P | |
435 | + | V | |
425 | 436 | } | |
426 | - | else if ($isInstanceOf( | |
427 | - | then | |
437 | + | else if ($isInstanceOf(P, "Unit")) | |
438 | + | then aU.senderPublicKey | |
428 | 439 | else throw("Match error") | |
429 | 440 | } | |
430 | - | sigVerify( | |
441 | + | sigVerify(aU.bodyBytes, aU.proofs[0], aW) | |
431 | 442 | } | |
432 | 443 |
github/deemru/w8io/169f3d6 169.72 ms ◑