tx · H1RDLZQyuzdDJs3HGBYQTZoQqsaM89VNyCmHZV2Muvyd 3N6BogmeefYY8WZkxX8cLij7Sd1H7mkWAKL: -0.01400000 Waves 2022.06.07 10:14 [2085628] smart account 3N6BogmeefYY8WZkxX8cLij7Sd1H7mkWAKL > SELF 0.00000000 Waves
{ "type": 13, "id": "H1RDLZQyuzdDJs3HGBYQTZoQqsaM89VNyCmHZV2Muvyd", "fee": 1400000, "feeAssetId": null, "timestamp": 1654586075133, "version": 1, "sender": "3N6BogmeefYY8WZkxX8cLij7Sd1H7mkWAKL", "senderPublicKey": "2oJMYLGBFHyrvKtf5nekg3ycc9Aa3h7i9riwRPycfNHE", "proofs": [ "4RJgAQforSKLqcdDMByZm7YGVpcn61PJMpKtXydZ8FDZYZejqQ2FcNoberDTKunSQHow8k2raaELRJCNNwEnmyFo" ], "script": "base64:AAIFAAAAAAAAACcIAhIDCgEIEgMKAQgSABIDCgEYEggKBgEBAQEIARIDCgEIEgMKAQgAAAAhAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAAA5pZHhQb29sQWRkcmVzcwAAAAAAAAAAAQAAAAAJaWR4TFBBc0lkAAAAAAAAAAADAAAAAAlpZHhBbUFzSWQAAAAAAAAAAAQAAAAACWlkeFByQXNJZAAAAAAAAAAABQAAAAAPaWR4RmFjdFN0YWtDbnRyAAAAAAAAAAABAAAAAAVkZWxheQIAAAAJJXNfX2RlbGF5AQAAAAtrZXlGYWN0Q250cgAAAAACAAAAEyVzX19mYWN0b3J5Q29udHJhY3QBAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAAAgAAABQlc19fbWFuYWdlclB1YmxpY0tleQEAAAAaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkAAAAAAgAAABslc19fcGVuZGluZ01hbmFnZXJQdWJsaWNLZXkBAAAAC2tleVBvb2xBZGRyAAAAAAIAAAAPJXNfX3Bvb2xBZGRyZXNzAQAAAAtrZXlBbXRBc3NldAAAAA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R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5//f6Pw==", "chainId": 84, "height": 2085628, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HbaQ4XcRQzqCJnaoTdp9uqEjHDpQMV9cnYcdsD3d9dvk Next: 3JzturS9Cgz6SHmch3eNQ7Hts3bZTWmjvkBjDC97dxM8 Diff:
Old | New | Differences | |
---|---|---|---|
44 | 44 | func q (r) = ("%s%d__amp__" + toString(r)) | |
45 | 45 | ||
46 | 46 | ||
47 | - | func s (t) = makeString(["%s%s__ | |
47 | + | func s (t) = makeString(["%s%s__lastGetOrPutOneTknCall", t], a) | |
48 | 48 | ||
49 | 49 | ||
50 | - | func u ( | |
50 | + | func u () = "%s__factoryConfig" | |
51 | 51 | ||
52 | 52 | ||
53 | - | func v () = "%s__ | |
53 | + | func v (w,x) = (((("%d%d%s__" + w) + "__") + x) + "__config") | |
54 | 54 | ||
55 | 55 | ||
56 | - | func | |
56 | + | func y (z) = ("%s%s%s__mappings__baseAsset2internalId__" + z) | |
57 | 57 | ||
58 | 58 | ||
59 | - | func | |
59 | + | func A (B,C) = valueOrErrorMessage(getString(B, C), makeString(["mandatory ", toString(B), ".", C, " not defined"], "")) | |
60 | 60 | ||
61 | 61 | ||
62 | - | func | |
62 | + | func D (B,C) = valueOrErrorMessage(getInteger(B, C), makeString(["mandatory ", toString(B), ".", C, " not defined"], "")) | |
63 | 63 | ||
64 | 64 | ||
65 | - | ||
65 | + | let E = addressFromStringValue(A(this, l())) | |
66 | 66 | ||
67 | + | let F = addressFromStringValue(A(E, i())) | |
67 | 68 | ||
68 | - | let F = addressFromStringValue(B(this, l())) | |
69 | - | ||
70 | - | let G = addressFromStringValue(B(F, i())) | |
71 | - | ||
72 | - | func H () = { | |
73 | - | let I = B(F, m()) | |
74 | - | let J = B(F, n()) | |
75 | - | let K = E(G, z(J)) | |
76 | - | let x = E(G, z(I)) | |
77 | - | split(B(G, w(toString(x), toString(K))), a) | |
69 | + | func G () = { | |
70 | + | let H = A(E, m()) | |
71 | + | let I = A(E, n()) | |
72 | + | let J = D(F, y(I)) | |
73 | + | let w = D(F, y(H)) | |
74 | + | split(A(F, v(toString(w), toString(J))), a) | |
78 | 75 | } | |
79 | 76 | ||
80 | 77 | ||
81 | - | func | |
78 | + | func K () = split(A(F, u()), a) | |
82 | 79 | ||
83 | 80 | ||
84 | - | func | |
85 | - | let | |
86 | - | if ($isInstanceOf( | |
81 | + | func L () = { | |
82 | + | let M = getString(j()) | |
83 | + | if ($isInstanceOf(M, "String")) | |
87 | 84 | then { | |
88 | - | let | |
89 | - | fromBase58String( | |
85 | + | let N = M | |
86 | + | fromBase58String(N) | |
90 | 87 | } | |
91 | - | else if ($isInstanceOf( | |
88 | + | else if ($isInstanceOf(M, "Unit")) | |
92 | 89 | then unit | |
93 | 90 | else throw("Match error") | |
94 | 91 | } | |
95 | 92 | ||
96 | 93 | ||
97 | - | func | |
98 | - | let | |
99 | - | if ($isInstanceOf( | |
94 | + | func O () = { | |
95 | + | let M = getString(k()) | |
96 | + | if ($isInstanceOf(M, "String")) | |
100 | 97 | then { | |
101 | - | let | |
102 | - | fromBase58String( | |
98 | + | let N = M | |
99 | + | fromBase58String(N) | |
103 | 100 | } | |
104 | - | else if ($isInstanceOf( | |
101 | + | else if ($isInstanceOf(M, "Unit")) | |
105 | 102 | then unit | |
106 | 103 | else throw("Match error") | |
107 | 104 | } | |
108 | 105 | ||
109 | 106 | ||
110 | - | func | |
111 | - | let | |
112 | - | let | |
113 | - | if ($isInstanceOf( | |
107 | + | func P (Q) = { | |
108 | + | let R = throw("Permission denied") | |
109 | + | let M = L() | |
110 | + | if ($isInstanceOf(M, "ByteVector")) | |
114 | 111 | then { | |
115 | - | let | |
116 | - | if (( | |
112 | + | let S = M | |
113 | + | if ((Q.callerPublicKey == S)) | |
117 | 114 | then true | |
118 | - | else | |
115 | + | else R | |
119 | 116 | } | |
120 | - | else if ($isInstanceOf( | |
121 | - | then if (( | |
117 | + | else if ($isInstanceOf(M, "Unit")) | |
118 | + | then if ((Q.caller == this)) | |
122 | 119 | then true | |
123 | - | else | |
120 | + | else R | |
124 | 121 | else throw("Match error") | |
125 | 122 | } | |
126 | 123 | ||
127 | 124 | ||
128 | - | func | |
129 | - | let | |
130 | - | if ($isInstanceOf( | |
125 | + | func T () = { | |
126 | + | let M = getString(o()) | |
127 | + | if ($isInstanceOf(M, "String")) | |
131 | 128 | then { | |
132 | - | let | |
133 | - | if ((size( | |
129 | + | let N = M | |
130 | + | if ((size(N) == 0)) | |
134 | 131 | then nil | |
135 | - | else split( | |
132 | + | else split(N, a) | |
136 | 133 | } | |
137 | 134 | else nil | |
138 | 135 | } | |
139 | 136 | ||
140 | 137 | ||
141 | - | func | |
138 | + | func U (Q) = if (containsElement(T(), toBase58String(Q.callerPublicKey))) | |
142 | 139 | then true | |
143 | - | else Q | |
140 | + | else P(Q) | |
144 | 141 | ||
145 | 142 | ||
146 | - | func | |
143 | + | func V (Q) = if ((Q.caller == E)) | |
147 | 144 | then true | |
148 | 145 | else throw("caller must be the pool") | |
149 | 146 | ||
150 | 147 | ||
151 | - | @Callable( | |
152 | - | func constructor ( | |
153 | - | let | |
154 | - | if (( | |
155 | - | then [StringEntry(l(), | |
148 | + | @Callable(Q) | |
149 | + | func constructor (W) = { | |
150 | + | let X = P(Q) | |
151 | + | if ((X == X)) | |
152 | + | then [StringEntry(l(), W)] | |
156 | 153 | else throw("Strict value is not equal to itself.") | |
157 | 154 | } | |
158 | 155 | ||
159 | 156 | ||
160 | 157 | ||
161 | - | @Callable( | |
162 | - | func setManager ( | |
163 | - | let | |
164 | - | if (( | |
158 | + | @Callable(Q) | |
159 | + | func setManager (Y) = { | |
160 | + | let X = P(Q) | |
161 | + | if ((X == X)) | |
165 | 162 | then { | |
166 | - | let | |
167 | - | if (( | |
168 | - | then [StringEntry(k(), | |
163 | + | let Z = fromBase58String(Y) | |
164 | + | if ((Z == Z)) | |
165 | + | then [StringEntry(k(), Y)] | |
169 | 166 | else throw("Strict value is not equal to itself.") | |
170 | 167 | } | |
171 | 168 | else throw("Strict value is not equal to itself.") | |
173 | 170 | ||
174 | 171 | ||
175 | 172 | ||
176 | - | @Callable( | |
173 | + | @Callable(Q) | |
177 | 174 | func confirmManager () = { | |
178 | - | let | |
179 | - | let | |
175 | + | let aa = O() | |
176 | + | let ab = if (isDefined(aa)) | |
180 | 177 | then true | |
181 | 178 | else throw("No pending manager") | |
182 | - | if (( | |
179 | + | if ((ab == ab)) | |
183 | 180 | then { | |
184 | - | let | |
181 | + | let ac = if ((Q.callerPublicKey == value(aa))) | |
185 | 182 | then true | |
186 | 183 | else throw("You are not pending manager") | |
187 | - | if (( | |
188 | - | then [StringEntry(j(), toBase58String(value( | |
184 | + | if ((ac == ac)) | |
185 | + | then [StringEntry(j(), toBase58String(value(aa))), DeleteEntry(k())] | |
189 | 186 | else throw("Strict value is not equal to itself.") | |
190 | 187 | } | |
191 | 188 | else throw("Strict value is not equal to itself.") | |
193 | 190 | ||
194 | 191 | ||
195 | 192 | ||
196 | - | @Callable( | |
197 | - | func setAdmins ( | |
198 | - | let | |
199 | - | if (( | |
200 | - | then [StringEntry(o(), makeString( | |
193 | + | @Callable(Q) | |
194 | + | func setAdmins (ad) = { | |
195 | + | let X = P(Q) | |
196 | + | if ((X == X)) | |
197 | + | then [StringEntry(o(), makeString(ad, a))] | |
201 | 198 | else throw("Strict value is not equal to itself.") | |
202 | 199 | } | |
203 | 200 | ||
204 | 201 | ||
205 | 202 | ||
206 | - | @Callable( | |
207 | - | func unstakeAndGetOneTkn (af,ag,ah,ai,aj | |
208 | - | let | |
203 | + | @Callable(Q) | |
204 | + | func unstakeAndGetOneTkn (ae,af,ag,ah,ai,aj) = { | |
205 | + | let ak = if ((size(Q.payments) != 0)) | |
209 | 206 | then throw("No pmnts expd") | |
210 | 207 | else true | |
211 | - | if (( | |
208 | + | if ((ak == ak)) | |
212 | 209 | then { | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | if (( | |
210 | + | let al = G() | |
211 | + | let am = K() | |
212 | + | let an = fromBase58String(al[d]) | |
213 | + | let ao = valueOrErrorMessage(addressFromString(am[g]), "Wr st addr") | |
214 | + | let ap = invoke(ao, "unstake", [toBase58String(an), ae], nil) | |
215 | + | if ((ap == ap)) | |
219 | 216 | then { | |
220 | - | let | |
221 | - | if (( | |
217 | + | let aq = invoke(E, "getOneTkn", [af, ag, ah, ai, aj], [AttachedPayment(an, ae)]) | |
218 | + | if ((aq == aq)) | |
222 | 219 | then nil | |
223 | 220 | else throw("Strict value is not equal to itself.") | |
224 | 221 | } | |
229 | 226 | ||
230 | 227 | ||
231 | 228 | ||
232 | - | @Callable( | |
233 | - | func setAmp ( | |
234 | - | let | |
235 | - | if (( | |
229 | + | @Callable(Q) | |
230 | + | func setAmp (ar) = { | |
231 | + | let X = U(Q) | |
232 | + | if ((X == X)) | |
236 | 233 | then { | |
237 | - | let | |
238 | - | let | |
239 | - | $Tuple2(nil, $Tuple2( | |
234 | + | let as = invoke(E, "setS", [p(), ar], nil) | |
235 | + | let at = invoke(E, "setS", [q(height), ar], nil) | |
236 | + | $Tuple2(nil, $Tuple2(as, at)) | |
240 | 237 | } | |
241 | 238 | else throw("Strict value is not equal to itself.") | |
242 | 239 | } | |
243 | 240 | ||
244 | 241 | ||
245 | 242 | ||
246 | - | @Callable( | |
247 | - | func | |
248 | - | let | |
249 | - | if (( | |
243 | + | @Callable(Q) | |
244 | + | func ensureCanGetOrPutOneTkn (t) = { | |
245 | + | let X = V(Q) | |
246 | + | if ((X == X)) | |
250 | 247 | then { | |
251 | - | let | |
252 | - | let | |
253 | - | if ($isInstanceOf( | |
248 | + | let au = { | |
249 | + | let M = getInteger(E, s(t)) | |
250 | + | if ($isInstanceOf(M, "Int")) | |
254 | 251 | then { | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | if ( | |
252 | + | let av = M | |
253 | + | let aw = (av + value(getInteger(E, h))) | |
254 | + | let ax = (height >= aw) | |
255 | + | let ay = (aw - height) | |
256 | + | if (ax) | |
260 | 257 | then true | |
261 | - | else throw(makeString(["you should wait", toString( | |
258 | + | else throw(makeString(["you should wait", toString(ay), "blocks more to perform the action"], " ")) | |
262 | 259 | } | |
263 | 260 | else true | |
264 | 261 | } | |
265 | - | if (( | |
262 | + | if ((au == au)) | |
266 | 263 | then { | |
267 | - | let aA = { | |
268 | - | let N = getInteger(F, s(t)) | |
269 | - | if ($isInstanceOf(N, "Int")) | |
270 | - | then { | |
271 | - | let aw = N | |
272 | - | let ax = (aw + value(getInteger(F, h))) | |
273 | - | let aB = (r >= ax) | |
274 | - | let az = (ax - r) | |
275 | - | if (aB) | |
276 | - | then true | |
277 | - | else throw(makeString(["you should wait", toString(az), "blocks more to perform the action"], " ")) | |
278 | - | } | |
279 | - | else true | |
280 | - | } | |
281 | - | if ((aA == aA)) | |
282 | - | then { | |
283 | - | let aC = invoke(F, "setI", [u(t), r], nil) | |
284 | - | if ((aC == aC)) | |
285 | - | then nil | |
286 | - | else throw("Strict value is not equal to itself.") | |
287 | - | } | |
264 | + | let az = invoke(E, "setI", [s(t), height], nil) | |
265 | + | if ((az == az)) | |
266 | + | then nil | |
288 | 267 | else throw("Strict value is not equal to itself.") | |
289 | 268 | } | |
290 | 269 | else throw("Strict value is not equal to itself.") | |
293 | 272 | } | |
294 | 273 | ||
295 | 274 | ||
296 | - | ||
297 | - | @Callable(R) | |
298 | - | func ensureCanPutOneTkn (t) = { | |
299 | - | let Y = W(R) | |
300 | - | if ((Y == Y)) | |
301 | - | then { | |
302 | - | let av = { | |
303 | - | let N = getInteger(F, u(t)) | |
304 | - | if ($isInstanceOf(N, "Int")) | |
305 | - | then { | |
306 | - | let aw = N | |
307 | - | let ax = (aw + value(getInteger(F, h))) | |
308 | - | let ay = (r >= ax) | |
309 | - | let az = (ax - r) | |
310 | - | if (ay) | |
311 | - | then true | |
312 | - | else throw(makeString(["you should wait", toString(az), "blocks more to perform the action"], " ")) | |
313 | - | } | |
314 | - | else true | |
275 | + | @Verifier(aA) | |
276 | + | func aB () = { | |
277 | + | let aC = { | |
278 | + | let M = L() | |
279 | + | if ($isInstanceOf(M, "ByteVector")) | |
280 | + | then { | |
281 | + | let S = M | |
282 | + | S | |
315 | 283 | } | |
316 | - | if ((av == av)) | |
317 | - | then { | |
318 | - | let aA = { | |
319 | - | let N = getInteger(F, s(t)) | |
320 | - | if ($isInstanceOf(N, "Int")) | |
321 | - | then { | |
322 | - | let aw = N | |
323 | - | let ax = (aw + value(getInteger(F, h))) | |
324 | - | let aB = (r >= ax) | |
325 | - | let az = (ax - r) | |
326 | - | if (aB) | |
327 | - | then true | |
328 | - | else throw(makeString(["you should wait", toString(az), "blocks more to perform the action"], " ")) | |
329 | - | } | |
330 | - | else true | |
331 | - | } | |
332 | - | if ((aA == aA)) | |
333 | - | then { | |
334 | - | let aC = invoke(F, "setI", [u(t), r], nil) | |
335 | - | if ((aC == aC)) | |
336 | - | then nil | |
337 | - | else throw("Strict value is not equal to itself.") | |
338 | - | } | |
339 | - | else throw("Strict value is not equal to itself.") | |
340 | - | } | |
341 | - | else throw("Strict value is not equal to itself.") | |
342 | - | } | |
343 | - | else throw("Strict value is not equal to itself.") | |
344 | - | } | |
345 | - | ||
346 | - | ||
347 | - | @Verifier(aD) | |
348 | - | func aE () = { | |
349 | - | let aF = { | |
350 | - | let N = M() | |
351 | - | if ($isInstanceOf(N, "ByteVector")) | |
352 | - | then { | |
353 | - | let T = N | |
354 | - | T | |
355 | - | } | |
356 | - | else if ($isInstanceOf(N, "Unit")) | |
357 | - | then aD.senderPublicKey | |
284 | + | else if ($isInstanceOf(M, "Unit")) | |
285 | + | then aA.senderPublicKey | |
358 | 286 | else throw("Match error") | |
359 | 287 | } | |
360 | - | sigVerify( | |
288 | + | sigVerify(aA.bodyBytes, aA.proofs[0], aC) | |
361 | 289 | } | |
362 | 290 |
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 = "" | |
7 | 7 | ||
8 | 8 | let c = 1 | |
9 | 9 | ||
10 | 10 | let d = 3 | |
11 | 11 | ||
12 | 12 | let e = 4 | |
13 | 13 | ||
14 | 14 | let f = 5 | |
15 | 15 | ||
16 | 16 | let g = 1 | |
17 | 17 | ||
18 | 18 | let h = "%s__delay" | |
19 | 19 | ||
20 | 20 | func i () = "%s__factoryContract" | |
21 | 21 | ||
22 | 22 | ||
23 | 23 | func j () = "%s__managerPublicKey" | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func k () = "%s__pendingManagerPublicKey" | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func l () = "%s__poolAddress" | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func m () = "%s__amountAsset" | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func n () = "%s__priceAsset" | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | func o () = "%s__adminPubKeys" | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func p () = "%s__amp" | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func q (r) = ("%s%d__amp__" + toString(r)) | |
45 | 45 | ||
46 | 46 | ||
47 | - | func s (t) = makeString(["%s%s__ | |
47 | + | func s (t) = makeString(["%s%s__lastGetOrPutOneTknCall", t], a) | |
48 | 48 | ||
49 | 49 | ||
50 | - | func u ( | |
50 | + | func u () = "%s__factoryConfig" | |
51 | 51 | ||
52 | 52 | ||
53 | - | func v () = "%s__ | |
53 | + | func v (w,x) = (((("%d%d%s__" + w) + "__") + x) + "__config") | |
54 | 54 | ||
55 | 55 | ||
56 | - | func | |
56 | + | func y (z) = ("%s%s%s__mappings__baseAsset2internalId__" + z) | |
57 | 57 | ||
58 | 58 | ||
59 | - | func | |
59 | + | func A (B,C) = valueOrErrorMessage(getString(B, C), makeString(["mandatory ", toString(B), ".", C, " not defined"], "")) | |
60 | 60 | ||
61 | 61 | ||
62 | - | func | |
62 | + | func D (B,C) = valueOrErrorMessage(getInteger(B, C), makeString(["mandatory ", toString(B), ".", C, " not defined"], "")) | |
63 | 63 | ||
64 | 64 | ||
65 | - | ||
65 | + | let E = addressFromStringValue(A(this, l())) | |
66 | 66 | ||
67 | + | let F = addressFromStringValue(A(E, i())) | |
67 | 68 | ||
68 | - | let F = addressFromStringValue(B(this, l())) | |
69 | - | ||
70 | - | let G = addressFromStringValue(B(F, i())) | |
71 | - | ||
72 | - | func H () = { | |
73 | - | let I = B(F, m()) | |
74 | - | let J = B(F, n()) | |
75 | - | let K = E(G, z(J)) | |
76 | - | let x = E(G, z(I)) | |
77 | - | split(B(G, w(toString(x), toString(K))), a) | |
69 | + | func G () = { | |
70 | + | let H = A(E, m()) | |
71 | + | let I = A(E, n()) | |
72 | + | let J = D(F, y(I)) | |
73 | + | let w = D(F, y(H)) | |
74 | + | split(A(F, v(toString(w), toString(J))), a) | |
78 | 75 | } | |
79 | 76 | ||
80 | 77 | ||
81 | - | func | |
78 | + | func K () = split(A(F, u()), a) | |
82 | 79 | ||
83 | 80 | ||
84 | - | func | |
85 | - | let | |
86 | - | if ($isInstanceOf( | |
81 | + | func L () = { | |
82 | + | let M = getString(j()) | |
83 | + | if ($isInstanceOf(M, "String")) | |
87 | 84 | then { | |
88 | - | let | |
89 | - | fromBase58String( | |
85 | + | let N = M | |
86 | + | fromBase58String(N) | |
90 | 87 | } | |
91 | - | else if ($isInstanceOf( | |
88 | + | else if ($isInstanceOf(M, "Unit")) | |
92 | 89 | then unit | |
93 | 90 | else throw("Match error") | |
94 | 91 | } | |
95 | 92 | ||
96 | 93 | ||
97 | - | func | |
98 | - | let | |
99 | - | if ($isInstanceOf( | |
94 | + | func O () = { | |
95 | + | let M = getString(k()) | |
96 | + | if ($isInstanceOf(M, "String")) | |
100 | 97 | then { | |
101 | - | let | |
102 | - | fromBase58String( | |
98 | + | let N = M | |
99 | + | fromBase58String(N) | |
103 | 100 | } | |
104 | - | else if ($isInstanceOf( | |
101 | + | else if ($isInstanceOf(M, "Unit")) | |
105 | 102 | then unit | |
106 | 103 | else throw("Match error") | |
107 | 104 | } | |
108 | 105 | ||
109 | 106 | ||
110 | - | func | |
111 | - | let | |
112 | - | let | |
113 | - | if ($isInstanceOf( | |
107 | + | func P (Q) = { | |
108 | + | let R = throw("Permission denied") | |
109 | + | let M = L() | |
110 | + | if ($isInstanceOf(M, "ByteVector")) | |
114 | 111 | then { | |
115 | - | let | |
116 | - | if (( | |
112 | + | let S = M | |
113 | + | if ((Q.callerPublicKey == S)) | |
117 | 114 | then true | |
118 | - | else | |
115 | + | else R | |
119 | 116 | } | |
120 | - | else if ($isInstanceOf( | |
121 | - | then if (( | |
117 | + | else if ($isInstanceOf(M, "Unit")) | |
118 | + | then if ((Q.caller == this)) | |
122 | 119 | then true | |
123 | - | else | |
120 | + | else R | |
124 | 121 | else throw("Match error") | |
125 | 122 | } | |
126 | 123 | ||
127 | 124 | ||
128 | - | func | |
129 | - | let | |
130 | - | if ($isInstanceOf( | |
125 | + | func T () = { | |
126 | + | let M = getString(o()) | |
127 | + | if ($isInstanceOf(M, "String")) | |
131 | 128 | then { | |
132 | - | let | |
133 | - | if ((size( | |
129 | + | let N = M | |
130 | + | if ((size(N) == 0)) | |
134 | 131 | then nil | |
135 | - | else split( | |
132 | + | else split(N, a) | |
136 | 133 | } | |
137 | 134 | else nil | |
138 | 135 | } | |
139 | 136 | ||
140 | 137 | ||
141 | - | func | |
138 | + | func U (Q) = if (containsElement(T(), toBase58String(Q.callerPublicKey))) | |
142 | 139 | then true | |
143 | - | else Q | |
140 | + | else P(Q) | |
144 | 141 | ||
145 | 142 | ||
146 | - | func | |
143 | + | func V (Q) = if ((Q.caller == E)) | |
147 | 144 | then true | |
148 | 145 | else throw("caller must be the pool") | |
149 | 146 | ||
150 | 147 | ||
151 | - | @Callable( | |
152 | - | func constructor ( | |
153 | - | let | |
154 | - | if (( | |
155 | - | then [StringEntry(l(), | |
148 | + | @Callable(Q) | |
149 | + | func constructor (W) = { | |
150 | + | let X = P(Q) | |
151 | + | if ((X == X)) | |
152 | + | then [StringEntry(l(), W)] | |
156 | 153 | else throw("Strict value is not equal to itself.") | |
157 | 154 | } | |
158 | 155 | ||
159 | 156 | ||
160 | 157 | ||
161 | - | @Callable( | |
162 | - | func setManager ( | |
163 | - | let | |
164 | - | if (( | |
158 | + | @Callable(Q) | |
159 | + | func setManager (Y) = { | |
160 | + | let X = P(Q) | |
161 | + | if ((X == X)) | |
165 | 162 | then { | |
166 | - | let | |
167 | - | if (( | |
168 | - | then [StringEntry(k(), | |
163 | + | let Z = fromBase58String(Y) | |
164 | + | if ((Z == Z)) | |
165 | + | then [StringEntry(k(), Y)] | |
169 | 166 | else throw("Strict value is not equal to itself.") | |
170 | 167 | } | |
171 | 168 | else throw("Strict value is not equal to itself.") | |
172 | 169 | } | |
173 | 170 | ||
174 | 171 | ||
175 | 172 | ||
176 | - | @Callable( | |
173 | + | @Callable(Q) | |
177 | 174 | func confirmManager () = { | |
178 | - | let | |
179 | - | let | |
175 | + | let aa = O() | |
176 | + | let ab = if (isDefined(aa)) | |
180 | 177 | then true | |
181 | 178 | else throw("No pending manager") | |
182 | - | if (( | |
179 | + | if ((ab == ab)) | |
183 | 180 | then { | |
184 | - | let | |
181 | + | let ac = if ((Q.callerPublicKey == value(aa))) | |
185 | 182 | then true | |
186 | 183 | else throw("You are not pending manager") | |
187 | - | if (( | |
188 | - | then [StringEntry(j(), toBase58String(value( | |
184 | + | if ((ac == ac)) | |
185 | + | then [StringEntry(j(), toBase58String(value(aa))), DeleteEntry(k())] | |
189 | 186 | else throw("Strict value is not equal to itself.") | |
190 | 187 | } | |
191 | 188 | else throw("Strict value is not equal to itself.") | |
192 | 189 | } | |
193 | 190 | ||
194 | 191 | ||
195 | 192 | ||
196 | - | @Callable( | |
197 | - | func setAdmins ( | |
198 | - | let | |
199 | - | if (( | |
200 | - | then [StringEntry(o(), makeString( | |
193 | + | @Callable(Q) | |
194 | + | func setAdmins (ad) = { | |
195 | + | let X = P(Q) | |
196 | + | if ((X == X)) | |
197 | + | then [StringEntry(o(), makeString(ad, a))] | |
201 | 198 | else throw("Strict value is not equal to itself.") | |
202 | 199 | } | |
203 | 200 | ||
204 | 201 | ||
205 | 202 | ||
206 | - | @Callable( | |
207 | - | func unstakeAndGetOneTkn (af,ag,ah,ai,aj | |
208 | - | let | |
203 | + | @Callable(Q) | |
204 | + | func unstakeAndGetOneTkn (ae,af,ag,ah,ai,aj) = { | |
205 | + | let ak = if ((size(Q.payments) != 0)) | |
209 | 206 | then throw("No pmnts expd") | |
210 | 207 | else true | |
211 | - | if (( | |
208 | + | if ((ak == ak)) | |
212 | 209 | then { | |
213 | - | let | |
214 | - | let | |
215 | - | let | |
216 | - | let | |
217 | - | let | |
218 | - | if (( | |
210 | + | let al = G() | |
211 | + | let am = K() | |
212 | + | let an = fromBase58String(al[d]) | |
213 | + | let ao = valueOrErrorMessage(addressFromString(am[g]), "Wr st addr") | |
214 | + | let ap = invoke(ao, "unstake", [toBase58String(an), ae], nil) | |
215 | + | if ((ap == ap)) | |
219 | 216 | then { | |
220 | - | let | |
221 | - | if (( | |
217 | + | let aq = invoke(E, "getOneTkn", [af, ag, ah, ai, aj], [AttachedPayment(an, ae)]) | |
218 | + | if ((aq == aq)) | |
222 | 219 | then nil | |
223 | 220 | else throw("Strict value is not equal to itself.") | |
224 | 221 | } | |
225 | 222 | else throw("Strict value is not equal to itself.") | |
226 | 223 | } | |
227 | 224 | else throw("Strict value is not equal to itself.") | |
228 | 225 | } | |
229 | 226 | ||
230 | 227 | ||
231 | 228 | ||
232 | - | @Callable( | |
233 | - | func setAmp ( | |
234 | - | let | |
235 | - | if (( | |
229 | + | @Callable(Q) | |
230 | + | func setAmp (ar) = { | |
231 | + | let X = U(Q) | |
232 | + | if ((X == X)) | |
236 | 233 | then { | |
237 | - | let | |
238 | - | let | |
239 | - | $Tuple2(nil, $Tuple2( | |
234 | + | let as = invoke(E, "setS", [p(), ar], nil) | |
235 | + | let at = invoke(E, "setS", [q(height), ar], nil) | |
236 | + | $Tuple2(nil, $Tuple2(as, at)) | |
240 | 237 | } | |
241 | 238 | else throw("Strict value is not equal to itself.") | |
242 | 239 | } | |
243 | 240 | ||
244 | 241 | ||
245 | 242 | ||
246 | - | @Callable( | |
247 | - | func | |
248 | - | let | |
249 | - | if (( | |
243 | + | @Callable(Q) | |
244 | + | func ensureCanGetOrPutOneTkn (t) = { | |
245 | + | let X = V(Q) | |
246 | + | if ((X == X)) | |
250 | 247 | then { | |
251 | - | let | |
252 | - | let | |
253 | - | if ($isInstanceOf( | |
248 | + | let au = { | |
249 | + | let M = getInteger(E, s(t)) | |
250 | + | if ($isInstanceOf(M, "Int")) | |
254 | 251 | then { | |
255 | - | let | |
256 | - | let | |
257 | - | let | |
258 | - | let | |
259 | - | if ( | |
252 | + | let av = M | |
253 | + | let aw = (av + value(getInteger(E, h))) | |
254 | + | let ax = (height >= aw) | |
255 | + | let ay = (aw - height) | |
256 | + | if (ax) | |
260 | 257 | then true | |
261 | - | else throw(makeString(["you should wait", toString( | |
258 | + | else throw(makeString(["you should wait", toString(ay), "blocks more to perform the action"], " ")) | |
262 | 259 | } | |
263 | 260 | else true | |
264 | 261 | } | |
265 | - | if (( | |
262 | + | if ((au == au)) | |
266 | 263 | then { | |
267 | - | let aA = { | |
268 | - | let N = getInteger(F, s(t)) | |
269 | - | if ($isInstanceOf(N, "Int")) | |
270 | - | then { | |
271 | - | let aw = N | |
272 | - | let ax = (aw + value(getInteger(F, h))) | |
273 | - | let aB = (r >= ax) | |
274 | - | let az = (ax - r) | |
275 | - | if (aB) | |
276 | - | then true | |
277 | - | else throw(makeString(["you should wait", toString(az), "blocks more to perform the action"], " ")) | |
278 | - | } | |
279 | - | else true | |
280 | - | } | |
281 | - | if ((aA == aA)) | |
282 | - | then { | |
283 | - | let aC = invoke(F, "setI", [u(t), r], nil) | |
284 | - | if ((aC == aC)) | |
285 | - | then nil | |
286 | - | else throw("Strict value is not equal to itself.") | |
287 | - | } | |
264 | + | let az = invoke(E, "setI", [s(t), height], nil) | |
265 | + | if ((az == az)) | |
266 | + | then nil | |
288 | 267 | else throw("Strict value is not equal to itself.") | |
289 | 268 | } | |
290 | 269 | else throw("Strict value is not equal to itself.") | |
291 | 270 | } | |
292 | 271 | else throw("Strict value is not equal to itself.") | |
293 | 272 | } | |
294 | 273 | ||
295 | 274 | ||
296 | - | ||
297 | - | @Callable(R) | |
298 | - | func ensureCanPutOneTkn (t) = { | |
299 | - | let Y = W(R) | |
300 | - | if ((Y == Y)) | |
301 | - | then { | |
302 | - | let av = { | |
303 | - | let N = getInteger(F, u(t)) | |
304 | - | if ($isInstanceOf(N, "Int")) | |
305 | - | then { | |
306 | - | let aw = N | |
307 | - | let ax = (aw + value(getInteger(F, h))) | |
308 | - | let ay = (r >= ax) | |
309 | - | let az = (ax - r) | |
310 | - | if (ay) | |
311 | - | then true | |
312 | - | else throw(makeString(["you should wait", toString(az), "blocks more to perform the action"], " ")) | |
313 | - | } | |
314 | - | else true | |
275 | + | @Verifier(aA) | |
276 | + | func aB () = { | |
277 | + | let aC = { | |
278 | + | let M = L() | |
279 | + | if ($isInstanceOf(M, "ByteVector")) | |
280 | + | then { | |
281 | + | let S = M | |
282 | + | S | |
315 | 283 | } | |
316 | - | if ((av == av)) | |
317 | - | then { | |
318 | - | let aA = { | |
319 | - | let N = getInteger(F, s(t)) | |
320 | - | if ($isInstanceOf(N, "Int")) | |
321 | - | then { | |
322 | - | let aw = N | |
323 | - | let ax = (aw + value(getInteger(F, h))) | |
324 | - | let aB = (r >= ax) | |
325 | - | let az = (ax - r) | |
326 | - | if (aB) | |
327 | - | then true | |
328 | - | else throw(makeString(["you should wait", toString(az), "blocks more to perform the action"], " ")) | |
329 | - | } | |
330 | - | else true | |
331 | - | } | |
332 | - | if ((aA == aA)) | |
333 | - | then { | |
334 | - | let aC = invoke(F, "setI", [u(t), r], nil) | |
335 | - | if ((aC == aC)) | |
336 | - | then nil | |
337 | - | else throw("Strict value is not equal to itself.") | |
338 | - | } | |
339 | - | else throw("Strict value is not equal to itself.") | |
340 | - | } | |
341 | - | else throw("Strict value is not equal to itself.") | |
342 | - | } | |
343 | - | else throw("Strict value is not equal to itself.") | |
344 | - | } | |
345 | - | ||
346 | - | ||
347 | - | @Verifier(aD) | |
348 | - | func aE () = { | |
349 | - | let aF = { | |
350 | - | let N = M() | |
351 | - | if ($isInstanceOf(N, "ByteVector")) | |
352 | - | then { | |
353 | - | let T = N | |
354 | - | T | |
355 | - | } | |
356 | - | else if ($isInstanceOf(N, "Unit")) | |
357 | - | then aD.senderPublicKey | |
284 | + | else if ($isInstanceOf(M, "Unit")) | |
285 | + | then aA.senderPublicKey | |
358 | 286 | else throw("Match error") | |
359 | 287 | } | |
360 | - | sigVerify( | |
288 | + | sigVerify(aA.bodyBytes, aA.proofs[0], aC) | |
361 | 289 | } | |
362 | 290 |
github/deemru/w8io/169f3d6 76.54 ms ◑