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