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