tx · 4mxuGq5uWxUJ8vLPHGSTLsHrPCnicNcpaTC3oSs7Q1Gy 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh: -0.01700000 Waves 2023.04.17 12:22 [2538380] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves
{ "type": 13, "id": "4mxuGq5uWxUJ8vLPHGSTLsHrPCnicNcpaTC3oSs7Q1Gy", "fee": 1700000, "feeAssetId": null, "timestamp": 1681723392446, "version": 2, "chainId": 84, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "KAgUAMbZsbkt7qYnuNNybkCmKahvAbahrjH8oEtVHCQoHFHyeRDjSRV4arrRqPSxwBx19YknW7UyY6jpv3a3Vjy" ], "script": "base64:AAIFAAAAAAAAB3AIAhIJCgcICAgYAQgBEgASCAoGCAgICAgIEgMKARgSAwoBCBIAEgASBAoCCAgiA1NFUCIMd2F2ZXNBc3NldElkIhFpbnZhbGlkUHJpY2VBc3NldCIIdGhyb3dFcnIiA21zZyIHdGhyb3dQRCIUdGhyb3dDcmVhdGVOb3RDYWxsZWQiEXRocm93WW91Tm90SXNzdWVyIg90aHJvd1Bvb2xFeGlzdHMiFXRocm93QXNzZXROb3RWZXJpZmllZCIWdGhyb3dJbnZhbGlkUHJpY2VBc3NldCIUdGhyb3dJbnZhbGlkRmVlQXNzZXQiF3Rocm93SW52YWxpZEFtb3VudEFzc2V0IhJ0aHJvd0ludmFsaWRTdGF0dXMiH3Rocm93Q2FuQWN0aXZhdGVPbmx5UGVuZGluZ1Bvb2wiHXRocm93RmFjdG9yeVJldHVybmVkTm90U3RyaW5nIhx0aHJvd0ludmFsaWRQcmljZUFzc2V0QW1vdW50Ig90aHJvd0ludmFsaWRGZWUiFXRocm93SW52YWxpZEFzc2V0UGFpciITa2V5TWFuYWdlclB1YmxpY0t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WxmLgkAAAIAAAABAgAAACRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4AAAACYWYBAAAAE3ByaWNlQXNzZXRzUkVBRE9OTFkAAAAACQAFFAAAAAIFAAAAA25pbAkBAAAAAVYAAAABCQAEIgAAAAEJAQAAAAFTAAAAAAAAAAJhZgEAAAAOc3RhdHVzUkVBRE9OTFkAAAACAAAAAXgAAAABeQQAAAACYXIEAAAAAVgJAAQiAAAAAQkBAAAAAXcAAAACBQAAAAF4BQAAAAF5AwkAAAEAAAACBQAAAAFYAgAAAAZTdHJpbmcEAAAAAVkFAAAAAVgFAAAAAVkFAAAABHVuaXQJAAUUAAAAAgUAAAADbmlsBQAAAAJhcgAAAAEAAAACYnEBAAAAAmJyAAAAAAQAAAACYnMEAAAAAVgJAQAAAAJhYwAAAAADCQAAAQAAAAIFAAAAAVgCAAAACkJ5dGVWZWN0b3IEAAAAAmFnBQAAAAFYBQAAAAJhZwMJAAABAAAAAgUAAAABWAIAAAAEVW5pdAgFAAAAAmJxAAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAAAtNYXRjaCBlcnJvcgkAAfQAAAADCAUAAAACYnEAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJicQAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAmJztU0lsA==", "height": 2538380, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: At5ie36JTGMoKjY9yft8zi7aBGFe55GmZy8NV4nTfMJ8 Next: GkjZUyBJNWL3LJGd6TD1hgVXrQVg28kkgqhX5TA2c9g Diff:
Old | New | Differences | |
---|---|---|---|
49 | 49 | func r () = d("invalid fee") | |
50 | 50 | ||
51 | 51 | ||
52 | - | func s () = | |
52 | + | func s () = d("invalid asset pair") | |
53 | 53 | ||
54 | 54 | ||
55 | - | func t () = makeString(["%s", " | |
55 | + | func t () = makeString(["%s", "managerPublicKey"], a) | |
56 | 56 | ||
57 | 57 | ||
58 | - | func u () = makeString(["%s", " | |
58 | + | func u () = makeString(["%s", "pendingManagerPublicKey"], a) | |
59 | 59 | ||
60 | 60 | ||
61 | - | func v ( | |
61 | + | func v () = makeString(["%s", "adminPubKeys"], a) | |
62 | 62 | ||
63 | 63 | ||
64 | - | func | |
64 | + | func w (x,y) = makeString(["%s%s%s", "status", x, y], a) | |
65 | 65 | ||
66 | 66 | ||
67 | - | func z () = makeString(["%s", " | |
67 | + | func z () = makeString(["%s", "factoryContract"], a) | |
68 | 68 | ||
69 | 69 | ||
70 | - | func A () = makeString(["%s", " | |
70 | + | func A () = makeString(["%s", "assetsStoreContract"], a) | |
71 | 71 | ||
72 | 72 | ||
73 | - | func B ( | |
73 | + | func B () = makeString(["%s", "emissionContract"], a) | |
74 | 74 | ||
75 | 75 | ||
76 | - | func C () = makeString(["%s", " | |
76 | + | func C (x,y) = makeString(["%s%s%s", "suffix", x, y], a) | |
77 | 77 | ||
78 | 78 | ||
79 | - | let D = "u" | |
80 | - | ||
81 | - | let E = "pending" | |
82 | - | ||
83 | - | let F = "declined" | |
84 | - | ||
85 | - | let G = "active" | |
86 | - | ||
87 | - | let H = [E, F, G] | |
88 | - | ||
89 | - | func I (w,x) = makeString(["%s%s%s", "createCalled", w, x], a) | |
79 | + | func D () = makeString(["%s", "lastIndex"], a) | |
90 | 80 | ||
91 | 81 | ||
92 | - | func J (w,x) = makeString(["%s%s%s", "createCaller", w, x], a) | |
82 | + | let E = "u" | |
83 | + | ||
84 | + | let F = "pending" | |
85 | + | ||
86 | + | let G = "declined" | |
87 | + | ||
88 | + | let H = "active" | |
89 | + | ||
90 | + | let I = [F, G, H] | |
91 | + | ||
92 | + | func J (x,y) = makeString(["%s%s%s", "createCalled", x, y], a) | |
93 | 93 | ||
94 | 94 | ||
95 | - | func K ( | |
95 | + | func K (x,y) = makeString(["%s%s%s", "createCaller", x, y], a) | |
96 | 96 | ||
97 | 97 | ||
98 | - | func L ( | |
98 | + | func L (x,y) = makeString(["%s%s%s", "amountAssetAmount", x, y], a) | |
99 | 99 | ||
100 | 100 | ||
101 | - | func M ( | |
101 | + | func M (x,y) = makeString(["%s%s%s", "priceAssetAmount", x, y], a) | |
102 | 102 | ||
103 | 103 | ||
104 | - | func N () = makeString(["%s", " | |
104 | + | func N (x,y) = makeString(["%s%s%s", "height", x, y], a) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func O () = makeString(["%s", " | |
107 | + | func O () = makeString(["%s", "feeAssetId"], a) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func P () = makeString(["%s", " | |
110 | + | func P () = makeString(["%s", "feeAmount"], a) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func Q () = makeString(["%s", " | |
113 | + | func Q () = makeString(["%s", "amountAssetMinAmount"], a) | |
114 | 114 | ||
115 | 115 | ||
116 | - | func R () = makeString(["%s", " | |
116 | + | func R () = makeString(["%s", "priceAssetsMinAmount"], a) | |
117 | 117 | ||
118 | 118 | ||
119 | - | func S ( | |
119 | + | func S () = makeString(["%s", "priceAssets"], a) | |
120 | 120 | ||
121 | 121 | ||
122 | - | func U (V) = { | |
123 | - | let W = V | |
124 | - | if ($isInstanceOf(W, "String")) | |
122 | + | func T (U) = valueOrErrorMessage(getString(this, U), (U + " is not defined")) | |
123 | + | ||
124 | + | ||
125 | + | func V (W) = { | |
126 | + | let X = W | |
127 | + | if ($isInstanceOf(X, "String")) | |
125 | 128 | then { | |
126 | - | let | |
127 | - | if ((size( | |
129 | + | let Y = X | |
130 | + | if ((size(Y) == 0)) | |
128 | 131 | then nil | |
129 | - | else split( | |
132 | + | else split(Y, a) | |
130 | 133 | } | |
131 | - | else if ($isInstanceOf( | |
134 | + | else if ($isInstanceOf(X, "Unit")) | |
132 | 135 | then nil | |
133 | 136 | else throw("Match error") | |
134 | 137 | } | |
135 | 138 | ||
136 | 139 | ||
137 | - | let | |
140 | + | let Z = addressFromStringValue(T(z())) | |
138 | 141 | ||
139 | - | func | |
142 | + | func aa (x,y) = valueOrElse(getBoolean(J(x, y)), false) | |
140 | 143 | ||
141 | 144 | ||
142 | - | func | |
145 | + | func ab (x,y) = if (aa(x, y)) | |
143 | 146 | then true | |
144 | 147 | else g() | |
145 | 148 | ||
146 | 149 | ||
147 | - | func | |
148 | - | let | |
149 | - | if ($isInstanceOf( | |
150 | + | func ac () = { | |
151 | + | let X = getString(t()) | |
152 | + | if ($isInstanceOf(X, "String")) | |
150 | 153 | then { | |
151 | - | let | |
152 | - | fromBase58String( | |
154 | + | let Y = X | |
155 | + | fromBase58String(Y) | |
153 | 156 | } | |
154 | - | else if ($isInstanceOf( | |
157 | + | else if ($isInstanceOf(X, "Unit")) | |
155 | 158 | then unit | |
156 | 159 | else throw("Match error") | |
157 | 160 | } | |
158 | 161 | ||
159 | 162 | ||
160 | - | func | |
161 | - | let | |
162 | - | if ($isInstanceOf( | |
163 | + | func ad () = { | |
164 | + | let X = getString(u()) | |
165 | + | if ($isInstanceOf(X, "String")) | |
163 | 166 | then { | |
164 | - | let | |
165 | - | fromBase58String( | |
167 | + | let Y = X | |
168 | + | fromBase58String(Y) | |
166 | 169 | } | |
167 | - | else if ($isInstanceOf( | |
170 | + | else if ($isInstanceOf(X, "Unit")) | |
168 | 171 | then unit | |
169 | 172 | else throw("Match error") | |
170 | 173 | } | |
171 | 174 | ||
172 | 175 | ||
173 | - | func | |
174 | - | let | |
175 | - | if ($isInstanceOf( | |
176 | + | func ae (af) = { | |
177 | + | let X = ac() | |
178 | + | if ($isInstanceOf(X, "ByteVector")) | |
176 | 179 | then { | |
177 | - | let | |
178 | - | ( | |
180 | + | let ag = X | |
181 | + | (af.callerPublicKey == ag) | |
179 | 182 | } | |
180 | - | else if ($isInstanceOf( | |
181 | - | then ( | |
183 | + | else if ($isInstanceOf(X, "Unit")) | |
184 | + | then (af.caller == this) | |
182 | 185 | else throw("Match error") | |
183 | 186 | } | |
184 | 187 | ||
185 | 188 | ||
186 | - | func | |
189 | + | func ah (af) = if (ae(af)) | |
187 | 190 | then true | |
188 | 191 | else f() | |
189 | 192 | ||
190 | 193 | ||
191 | - | func | |
192 | - | let | |
193 | - | if (containsElement( | |
194 | + | func ai (af) = { | |
195 | + | let aj = V(getString(v())) | |
196 | + | if (containsElement(aj, toBase58String(af.callerPublicKey))) | |
194 | 197 | then true | |
195 | - | else | |
198 | + | else ah(af) | |
196 | 199 | } | |
197 | 200 | ||
198 | 201 | ||
199 | - | func | |
202 | + | func ak (al) = (valueOrElse(getInteger(addressFromStringValue(T(A())), (("status_<" + al) + ">")), 0) == 2) | |
200 | 203 | ||
201 | 204 | ||
202 | - | func | |
203 | - | let | |
204 | - | if ($isInstanceOf( | |
205 | + | func am (an) = { | |
206 | + | let X = an.assetId | |
207 | + | if ($isInstanceOf(X, "ByteVector")) | |
205 | 208 | then { | |
206 | - | let | |
207 | - | let | |
208 | - | $Tuple2(toBase58String( | |
209 | + | let ao = X | |
210 | + | let ap = value(assetInfo(ao)) | |
211 | + | $Tuple2(toBase58String(ao), ap) | |
209 | 212 | } | |
210 | - | else if ($isInstanceOf( | |
213 | + | else if ($isInstanceOf(X, "Unit")) | |
211 | 214 | then $Tuple2(b, unit) | |
212 | 215 | else throw("Match error") | |
213 | 216 | } | |
214 | 217 | ||
215 | 218 | ||
216 | - | func | |
219 | + | func aq (ar) = containsElement(I, ar) | |
217 | 220 | ||
218 | 221 | ||
219 | - | @Callable( | |
220 | - | func constructor ( | |
221 | - | let | |
222 | - | if (( | |
223 | - | then [ | |
222 | + | @Callable(af) | |
223 | + | func constructor (as,at,au,av,aw,ax,ay) = { | |
224 | + | let az = ah(af) | |
225 | + | if ((az == az)) | |
226 | + | then [StringEntry(z(), as), StringEntry(A(), at), StringEntry(B(), au), StringEntry(R(), makeString(av, a)), IntegerEntry(Q(), aw), StringEntry(O(), ax), IntegerEntry(P(), ay)] | |
224 | 227 | else throw("Strict value is not equal to itself.") | |
225 | 228 | } | |
226 | 229 | ||
227 | 230 | ||
228 | 231 | ||
229 | - | @Callable( | |
232 | + | @Callable(af) | |
230 | 233 | func create () = { | |
231 | - | let az = value(ae.payments[0]) | |
232 | - | let aA = value(ae.payments[1]) | |
233 | - | let aB = value(ae.payments[2]) | |
234 | - | let aC = al(az) | |
235 | - | let w = aC._1 | |
236 | - | let aD = aC._2 | |
237 | - | let aE = al(aA) | |
238 | - | let x = aE._1 | |
239 | - | let aF = aE._2 | |
240 | - | let aG = al(aB) | |
241 | - | let aw = aG._1 | |
242 | - | let aH = aG._2 | |
243 | - | let aI = U(getString(Y, R())) | |
244 | - | let aJ = 1 | |
245 | - | let aK = if (ad(ae)) | |
246 | - | then aJ | |
247 | - | else { | |
248 | - | let aL = valueOrErrorMessage(indexOf(aI, x), c) | |
249 | - | value(parseInt(U(getString(Q()))[aL])) | |
250 | - | } | |
251 | - | let aM = valueOrElse(getInteger(C()), 0) | |
252 | - | let aN = (aM + 1) | |
253 | - | let aO = addressFromStringValue(S(A())) | |
254 | - | let aP = { | |
255 | - | let aQ = invoke(Y, "poolExistsREADONLY", [w, x], nil) | |
256 | - | if ($isInstanceOf(aQ, "Boolean")) | |
257 | - | then aQ | |
258 | - | else throw("Couldn't cast Any to Boolean") | |
259 | - | } | |
260 | - | let aR = [if (!(Z(w, x))) | |
234 | + | let aA = value(af.payments[0]) | |
235 | + | let aB = value(af.payments[1]) | |
236 | + | let aC = value(af.payments[2]) | |
237 | + | let aD = am(aA) | |
238 | + | let aE = aD._1 | |
239 | + | let aF = aD._2 | |
240 | + | let aG = am(aB) | |
241 | + | let aH = aG._1 | |
242 | + | let aI = aG._2 | |
243 | + | let aJ = am(aC) | |
244 | + | let ax = aJ._1 | |
245 | + | let aK = aJ._2 | |
246 | + | let aL = V(getString(Z, S())) | |
247 | + | let aM = if ((aE != aH)) | |
261 | 248 | then true | |
262 | - | else i(), if (!(aP)) | |
263 | - | then true | |
264 | - | else i(), if (if (ad(ae)) | |
265 | - | then true | |
266 | - | else aj(w)) | |
267 | - | then true | |
268 | - | else j(), if ((getString(N()) == aw)) | |
269 | - | then true | |
270 | - | else l(), if (if (ad(ae)) | |
271 | - | then true | |
272 | - | else (az.amount >= getIntegerValue(P()))) | |
273 | - | then true | |
274 | - | else m(), if (if (ad(ae)) | |
275 | - | then true | |
276 | - | else (aA.amount >= aK)) | |
277 | - | then true | |
278 | - | else q(), if ((aB.amount == getInteger(O()))) | |
279 | - | then true | |
280 | - | else r()] | |
281 | - | if ((aR == aR)) | |
249 | + | else s() | |
250 | + | if ((aM == aM)) | |
282 | 251 | then { | |
283 | - | let aS = invoke(aO, "burn", nil, [AttachedPayment(fromBase58String(aw), aB.amount)]) | |
284 | - | if ((aS == aS)) | |
285 | - | then [BooleanEntry(I(w, x), true), StringEntry(J(w, x), toString(ae.caller)), IntegerEntry(C(), aN), StringEntry(B(w, x), (toString(aN) + D)), IntegerEntry(M(w, x), height), StringEntry(v(w, x), E), IntegerEntry(K(w, x), az.amount), IntegerEntry(L(w, x), aA.amount)] | |
252 | + | let aN = if (if (containsElement(aL, aH)) | |
253 | + | then ak(aE) | |
254 | + | else false) | |
255 | + | then $Tuple4(aE, aA.amount, aH, aB.amount) | |
256 | + | else if (if (containsElement(aL, aE)) | |
257 | + | then ak(aH) | |
258 | + | else false) | |
259 | + | then $Tuple4(aH, aB.amount, aE, aA.amount) | |
260 | + | else s() | |
261 | + | let x = aN._1 | |
262 | + | let aO = aN._2 | |
263 | + | let y = aN._3 | |
264 | + | let aP = aN._4 | |
265 | + | let aQ = 1 | |
266 | + | let aR = if (ae(af)) | |
267 | + | then aQ | |
268 | + | else { | |
269 | + | let aS = valueOrErrorMessage(indexOf(aL, y), c) | |
270 | + | value(parseInt(V(getString(R()))[aS])) | |
271 | + | } | |
272 | + | let aT = valueOrElse(getInteger(D()), 0) | |
273 | + | let aU = (aT + 1) | |
274 | + | let aV = addressFromStringValue(T(B())) | |
275 | + | let aW = { | |
276 | + | let aX = invoke(Z, "poolExistsREADONLY", [x, y], nil) | |
277 | + | if ($isInstanceOf(aX, "Boolean")) | |
278 | + | then aX | |
279 | + | else throw("Couldn't cast Any to Boolean") | |
280 | + | } | |
281 | + | let aY = [if (!(aa(x, y))) | |
282 | + | then true | |
283 | + | else i(), if (!(aW)) | |
284 | + | then true | |
285 | + | else i(), if ((getString(O()) == ax)) | |
286 | + | then true | |
287 | + | else l(), if (if (ae(af)) | |
288 | + | then true | |
289 | + | else (aO >= getIntegerValue(Q()))) | |
290 | + | then true | |
291 | + | else m(), if (if (ae(af)) | |
292 | + | then true | |
293 | + | else (aP >= aR)) | |
294 | + | then true | |
295 | + | else q(), if ((aC.amount == getInteger(P()))) | |
296 | + | then true | |
297 | + | else r()] | |
298 | + | if ((aY == aY)) | |
299 | + | then { | |
300 | + | let aZ = invoke(aV, "burn", nil, [AttachedPayment(fromBase58String(ax), aC.amount)]) | |
301 | + | if ((aZ == aZ)) | |
302 | + | then [BooleanEntry(J(x, y), true), StringEntry(K(x, y), toString(af.caller)), IntegerEntry(D(), aU), StringEntry(C(x, y), (toString(aU) + E)), IntegerEntry(N(x, y), height), StringEntry(w(x, y), F), IntegerEntry(L(x, y), aO), IntegerEntry(M(x, y), aP)] | |
303 | + | else throw("Strict value is not equal to itself.") | |
304 | + | } | |
286 | 305 | else throw("Strict value is not equal to itself.") | |
287 | 306 | } | |
288 | 307 | else throw("Strict value is not equal to itself.") | |
290 | 309 | ||
291 | 310 | ||
292 | 311 | ||
293 | - | @Callable( | |
294 | - | func activate ( | |
295 | - | let | |
312 | + | @Callable(af) | |
313 | + | func activate (ba,x,bb,y,bc,bd) = { | |
314 | + | let aY = [ai(af), if (aa(x, y)) | |
296 | 315 | then true | |
297 | - | else g(), if ((value(getString( | |
316 | + | else g(), if ((value(getString(w(x, y))) == F)) | |
298 | 317 | then true | |
299 | 318 | else o()] | |
300 | - | if (( | |
319 | + | if ((aY == aY)) | |
301 | 320 | then { | |
302 | - | let | |
303 | - | if (( | |
321 | + | let be = invoke(Z, "activateNewPool", [ba, x, y, ((bb + bc) + "LP"), (((bb + "/") + bc) + " pool liquidity provider token"), 0, "VLTPOOL", bd], nil) | |
322 | + | if ((be == be)) | |
304 | 323 | then { | |
305 | - | let | |
306 | - | let | |
307 | - | if ($isInstanceOf( | |
324 | + | let bf = { | |
325 | + | let X = be | |
326 | + | if ($isInstanceOf(X, "String")) | |
308 | 327 | then { | |
309 | - | let | |
310 | - | | |
328 | + | let ao = X | |
329 | + | ao | |
311 | 330 | } | |
312 | 331 | else p() | |
313 | 332 | } | |
314 | - | if (( | |
333 | + | if ((bf == bf)) | |
315 | 334 | then { | |
316 | - | let | |
317 | - | if (( | |
335 | + | let bg = assetBalance(this, fromBase58String(bf)) | |
336 | + | if ((bg == bg)) | |
318 | 337 | then { | |
319 | - | let | |
338 | + | let bh = invoke(addressFromStringValue(ba), "put", [0, false], [AttachedPayment(if ((x == "WAVES")) | |
320 | 339 | then unit | |
321 | - | else fromBase58String( | |
340 | + | else fromBase58String(x), value(getInteger(L(x, y)))), AttachedPayment(if ((y == "WAVES")) | |
322 | 341 | then unit | |
323 | - | else fromBase58String( | |
324 | - | if (( | |
342 | + | else fromBase58String(y), value(getInteger(M(x, y))))]) | |
343 | + | if ((bh == bh)) | |
325 | 344 | then { | |
326 | - | let | |
327 | - | if (( | |
345 | + | let bi = assetBalance(this, fromBase58String(bf)) | |
346 | + | if ((bi == bi)) | |
328 | 347 | then { | |
329 | - | let | |
330 | - | [StringEntry( | |
348 | + | let bj = value(addressFromString(value(getString(K(x, y))))) | |
349 | + | [StringEntry(w(x, y), H), ScriptTransfer(bj, (bi - bg), fromBase58String(bf))] | |
331 | 350 | } | |
332 | 351 | else throw("Strict value is not equal to itself.") | |
333 | 352 | } | |
344 | 363 | ||
345 | 364 | ||
346 | 365 | ||
347 | - | @Callable( | |
348 | - | func setAdmins ( | |
349 | - | let | |
350 | - | if (( | |
351 | - | then [StringEntry( | |
366 | + | @Callable(af) | |
367 | + | func setAdmins (bk) = { | |
368 | + | let az = ah(af) | |
369 | + | if ((az == az)) | |
370 | + | then [StringEntry(v(), makeString(bk, a))] | |
352 | 371 | else throw("Strict value is not equal to itself.") | |
353 | 372 | } | |
354 | 373 | ||
355 | 374 | ||
356 | 375 | ||
357 | - | @Callable( | |
358 | - | func setManager ( | |
359 | - | let | |
360 | - | if (( | |
376 | + | @Callable(af) | |
377 | + | func setManager (bl) = { | |
378 | + | let az = ah(af) | |
379 | + | if ((az == az)) | |
361 | 380 | then { | |
362 | - | let | |
363 | - | if (( | |
364 | - | then [StringEntry( | |
381 | + | let bm = fromBase58String(bl) | |
382 | + | if ((bm == bm)) | |
383 | + | then [StringEntry(u(), bl)] | |
365 | 384 | else throw("Strict value is not equal to itself.") | |
366 | 385 | } | |
367 | 386 | else throw("Strict value is not equal to itself.") | |
369 | 388 | ||
370 | 389 | ||
371 | 390 | ||
372 | - | @Callable( | |
391 | + | @Callable(af) | |
373 | 392 | func confirmManager () = { | |
374 | - | let | |
375 | - | let | |
393 | + | let bn = ad() | |
394 | + | let bo = if (isDefined(bn)) | |
376 | 395 | then true | |
377 | 396 | else throw("No pending manager") | |
378 | - | if (( | |
397 | + | if ((bo == bo)) | |
379 | 398 | then { | |
380 | - | let | |
399 | + | let bp = if ((af.callerPublicKey == value(bn))) | |
381 | 400 | then true | |
382 | 401 | else throw("You are not pending manager") | |
383 | - | if (( | |
384 | - | then [StringEntry( | |
402 | + | if ((bp == bp)) | |
403 | + | then [StringEntry(t(), toBase58String(value(bn))), DeleteEntry(u())] | |
385 | 404 | else throw("Strict value is not equal to itself.") | |
386 | 405 | } | |
387 | 406 | else throw("Strict value is not equal to itself.") | |
389 | 408 | ||
390 | 409 | ||
391 | 410 | ||
392 | - | @Callable( | |
393 | - | func priceAssetsREADONLY () = $Tuple2(nil, | |
411 | + | @Callable(af) | |
412 | + | func priceAssetsREADONLY () = $Tuple2(nil, V(getString(S()))) | |
394 | 413 | ||
395 | 414 | ||
396 | 415 | ||
397 | - | @Callable( | |
398 | - | func statusREADONLY ( | |
399 | - | let | |
400 | - | let | |
401 | - | if ($isInstanceOf( | |
416 | + | @Callable(af) | |
417 | + | func statusREADONLY (x,y) = { | |
418 | + | let ar = { | |
419 | + | let X = getString(w(x, y)) | |
420 | + | if ($isInstanceOf(X, "String")) | |
402 | 421 | then { | |
403 | - | let | |
404 | - | | |
422 | + | let Y = X | |
423 | + | Y | |
405 | 424 | } | |
406 | 425 | else unit | |
407 | 426 | } | |
408 | - | $Tuple2(nil, | |
427 | + | $Tuple2(nil, ar) | |
409 | 428 | } | |
410 | 429 | ||
411 | 430 | ||
412 | - | @Verifier( | |
413 | - | func | |
414 | - | let | |
415 | - | let | |
416 | - | if ($isInstanceOf( | |
431 | + | @Verifier(bq) | |
432 | + | func br () = { | |
433 | + | let bs = { | |
434 | + | let X = ac() | |
435 | + | if ($isInstanceOf(X, "ByteVector")) | |
417 | 436 | then { | |
418 | - | let | |
419 | - | | |
437 | + | let ag = X | |
438 | + | ag | |
420 | 439 | } | |
421 | - | else if ($isInstanceOf( | |
422 | - | then | |
440 | + | else if ($isInstanceOf(X, "Unit")) | |
441 | + | then bq.senderPublicKey | |
423 | 442 | else throw("Match error") | |
424 | 443 | } | |
425 | - | sigVerify( | |
444 | + | sigVerify(bq.bodyBytes, bq.proofs[0], bs) | |
426 | 445 | } | |
427 | 446 |
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 = "WAVES" | |
7 | 7 | ||
8 | 8 | let c = "Invalid price asset" | |
9 | 9 | ||
10 | 10 | func d (e) = throw(makeString(["user_pools.ride:", e], " ")) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func f () = d("Permission denied") | |
14 | 14 | ||
15 | 15 | ||
16 | 16 | func g () = d("Create is not called for assets pair") | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func h () = d("You are not amountAsset issuer") | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func i () = d("Pool with such assets already exists") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func j () = d("Asset is not verified") | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func k () = d(c) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func l () = d("Invalid fee asset") | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func m () = d("Invalid amount asset attached") | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func n () = d("Invalid status") | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func o () = d("Can activate pool only in 'pending' status") | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func p () = d("FactoryV2 returned not string") | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func q () = d("invalid price asset amount") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func r () = d("invalid fee") | |
50 | 50 | ||
51 | 51 | ||
52 | - | func s () = | |
52 | + | func s () = d("invalid asset pair") | |
53 | 53 | ||
54 | 54 | ||
55 | - | func t () = makeString(["%s", " | |
55 | + | func t () = makeString(["%s", "managerPublicKey"], a) | |
56 | 56 | ||
57 | 57 | ||
58 | - | func u () = makeString(["%s", " | |
58 | + | func u () = makeString(["%s", "pendingManagerPublicKey"], a) | |
59 | 59 | ||
60 | 60 | ||
61 | - | func v ( | |
61 | + | func v () = makeString(["%s", "adminPubKeys"], a) | |
62 | 62 | ||
63 | 63 | ||
64 | - | func | |
64 | + | func w (x,y) = makeString(["%s%s%s", "status", x, y], a) | |
65 | 65 | ||
66 | 66 | ||
67 | - | func z () = makeString(["%s", " | |
67 | + | func z () = makeString(["%s", "factoryContract"], a) | |
68 | 68 | ||
69 | 69 | ||
70 | - | func A () = makeString(["%s", " | |
70 | + | func A () = makeString(["%s", "assetsStoreContract"], a) | |
71 | 71 | ||
72 | 72 | ||
73 | - | func B ( | |
73 | + | func B () = makeString(["%s", "emissionContract"], a) | |
74 | 74 | ||
75 | 75 | ||
76 | - | func C () = makeString(["%s", " | |
76 | + | func C (x,y) = makeString(["%s%s%s", "suffix", x, y], a) | |
77 | 77 | ||
78 | 78 | ||
79 | - | let D = "u" | |
80 | - | ||
81 | - | let E = "pending" | |
82 | - | ||
83 | - | let F = "declined" | |
84 | - | ||
85 | - | let G = "active" | |
86 | - | ||
87 | - | let H = [E, F, G] | |
88 | - | ||
89 | - | func I (w,x) = makeString(["%s%s%s", "createCalled", w, x], a) | |
79 | + | func D () = makeString(["%s", "lastIndex"], a) | |
90 | 80 | ||
91 | 81 | ||
92 | - | func J (w,x) = makeString(["%s%s%s", "createCaller", w, x], a) | |
82 | + | let E = "u" | |
83 | + | ||
84 | + | let F = "pending" | |
85 | + | ||
86 | + | let G = "declined" | |
87 | + | ||
88 | + | let H = "active" | |
89 | + | ||
90 | + | let I = [F, G, H] | |
91 | + | ||
92 | + | func J (x,y) = makeString(["%s%s%s", "createCalled", x, y], a) | |
93 | 93 | ||
94 | 94 | ||
95 | - | func K ( | |
95 | + | func K (x,y) = makeString(["%s%s%s", "createCaller", x, y], a) | |
96 | 96 | ||
97 | 97 | ||
98 | - | func L ( | |
98 | + | func L (x,y) = makeString(["%s%s%s", "amountAssetAmount", x, y], a) | |
99 | 99 | ||
100 | 100 | ||
101 | - | func M ( | |
101 | + | func M (x,y) = makeString(["%s%s%s", "priceAssetAmount", x, y], a) | |
102 | 102 | ||
103 | 103 | ||
104 | - | func N () = makeString(["%s", " | |
104 | + | func N (x,y) = makeString(["%s%s%s", "height", x, y], a) | |
105 | 105 | ||
106 | 106 | ||
107 | - | func O () = makeString(["%s", " | |
107 | + | func O () = makeString(["%s", "feeAssetId"], a) | |
108 | 108 | ||
109 | 109 | ||
110 | - | func P () = makeString(["%s", " | |
110 | + | func P () = makeString(["%s", "feeAmount"], a) | |
111 | 111 | ||
112 | 112 | ||
113 | - | func Q () = makeString(["%s", " | |
113 | + | func Q () = makeString(["%s", "amountAssetMinAmount"], a) | |
114 | 114 | ||
115 | 115 | ||
116 | - | func R () = makeString(["%s", " | |
116 | + | func R () = makeString(["%s", "priceAssetsMinAmount"], a) | |
117 | 117 | ||
118 | 118 | ||
119 | - | func S ( | |
119 | + | func S () = makeString(["%s", "priceAssets"], a) | |
120 | 120 | ||
121 | 121 | ||
122 | - | func U (V) = { | |
123 | - | let W = V | |
124 | - | if ($isInstanceOf(W, "String")) | |
122 | + | func T (U) = valueOrErrorMessage(getString(this, U), (U + " is not defined")) | |
123 | + | ||
124 | + | ||
125 | + | func V (W) = { | |
126 | + | let X = W | |
127 | + | if ($isInstanceOf(X, "String")) | |
125 | 128 | then { | |
126 | - | let | |
127 | - | if ((size( | |
129 | + | let Y = X | |
130 | + | if ((size(Y) == 0)) | |
128 | 131 | then nil | |
129 | - | else split( | |
132 | + | else split(Y, a) | |
130 | 133 | } | |
131 | - | else if ($isInstanceOf( | |
134 | + | else if ($isInstanceOf(X, "Unit")) | |
132 | 135 | then nil | |
133 | 136 | else throw("Match error") | |
134 | 137 | } | |
135 | 138 | ||
136 | 139 | ||
137 | - | let | |
140 | + | let Z = addressFromStringValue(T(z())) | |
138 | 141 | ||
139 | - | func | |
142 | + | func aa (x,y) = valueOrElse(getBoolean(J(x, y)), false) | |
140 | 143 | ||
141 | 144 | ||
142 | - | func | |
145 | + | func ab (x,y) = if (aa(x, y)) | |
143 | 146 | then true | |
144 | 147 | else g() | |
145 | 148 | ||
146 | 149 | ||
147 | - | func | |
148 | - | let | |
149 | - | if ($isInstanceOf( | |
150 | + | func ac () = { | |
151 | + | let X = getString(t()) | |
152 | + | if ($isInstanceOf(X, "String")) | |
150 | 153 | then { | |
151 | - | let | |
152 | - | fromBase58String( | |
154 | + | let Y = X | |
155 | + | fromBase58String(Y) | |
153 | 156 | } | |
154 | - | else if ($isInstanceOf( | |
157 | + | else if ($isInstanceOf(X, "Unit")) | |
155 | 158 | then unit | |
156 | 159 | else throw("Match error") | |
157 | 160 | } | |
158 | 161 | ||
159 | 162 | ||
160 | - | func | |
161 | - | let | |
162 | - | if ($isInstanceOf( | |
163 | + | func ad () = { | |
164 | + | let X = getString(u()) | |
165 | + | if ($isInstanceOf(X, "String")) | |
163 | 166 | then { | |
164 | - | let | |
165 | - | fromBase58String( | |
167 | + | let Y = X | |
168 | + | fromBase58String(Y) | |
166 | 169 | } | |
167 | - | else if ($isInstanceOf( | |
170 | + | else if ($isInstanceOf(X, "Unit")) | |
168 | 171 | then unit | |
169 | 172 | else throw("Match error") | |
170 | 173 | } | |
171 | 174 | ||
172 | 175 | ||
173 | - | func | |
174 | - | let | |
175 | - | if ($isInstanceOf( | |
176 | + | func ae (af) = { | |
177 | + | let X = ac() | |
178 | + | if ($isInstanceOf(X, "ByteVector")) | |
176 | 179 | then { | |
177 | - | let | |
178 | - | ( | |
180 | + | let ag = X | |
181 | + | (af.callerPublicKey == ag) | |
179 | 182 | } | |
180 | - | else if ($isInstanceOf( | |
181 | - | then ( | |
183 | + | else if ($isInstanceOf(X, "Unit")) | |
184 | + | then (af.caller == this) | |
182 | 185 | else throw("Match error") | |
183 | 186 | } | |
184 | 187 | ||
185 | 188 | ||
186 | - | func | |
189 | + | func ah (af) = if (ae(af)) | |
187 | 190 | then true | |
188 | 191 | else f() | |
189 | 192 | ||
190 | 193 | ||
191 | - | func | |
192 | - | let | |
193 | - | if (containsElement( | |
194 | + | func ai (af) = { | |
195 | + | let aj = V(getString(v())) | |
196 | + | if (containsElement(aj, toBase58String(af.callerPublicKey))) | |
194 | 197 | then true | |
195 | - | else | |
198 | + | else ah(af) | |
196 | 199 | } | |
197 | 200 | ||
198 | 201 | ||
199 | - | func | |
202 | + | func ak (al) = (valueOrElse(getInteger(addressFromStringValue(T(A())), (("status_<" + al) + ">")), 0) == 2) | |
200 | 203 | ||
201 | 204 | ||
202 | - | func | |
203 | - | let | |
204 | - | if ($isInstanceOf( | |
205 | + | func am (an) = { | |
206 | + | let X = an.assetId | |
207 | + | if ($isInstanceOf(X, "ByteVector")) | |
205 | 208 | then { | |
206 | - | let | |
207 | - | let | |
208 | - | $Tuple2(toBase58String( | |
209 | + | let ao = X | |
210 | + | let ap = value(assetInfo(ao)) | |
211 | + | $Tuple2(toBase58String(ao), ap) | |
209 | 212 | } | |
210 | - | else if ($isInstanceOf( | |
213 | + | else if ($isInstanceOf(X, "Unit")) | |
211 | 214 | then $Tuple2(b, unit) | |
212 | 215 | else throw("Match error") | |
213 | 216 | } | |
214 | 217 | ||
215 | 218 | ||
216 | - | func | |
219 | + | func aq (ar) = containsElement(I, ar) | |
217 | 220 | ||
218 | 221 | ||
219 | - | @Callable( | |
220 | - | func constructor ( | |
221 | - | let | |
222 | - | if (( | |
223 | - | then [ | |
222 | + | @Callable(af) | |
223 | + | func constructor (as,at,au,av,aw,ax,ay) = { | |
224 | + | let az = ah(af) | |
225 | + | if ((az == az)) | |
226 | + | then [StringEntry(z(), as), StringEntry(A(), at), StringEntry(B(), au), StringEntry(R(), makeString(av, a)), IntegerEntry(Q(), aw), StringEntry(O(), ax), IntegerEntry(P(), ay)] | |
224 | 227 | else throw("Strict value is not equal to itself.") | |
225 | 228 | } | |
226 | 229 | ||
227 | 230 | ||
228 | 231 | ||
229 | - | @Callable( | |
232 | + | @Callable(af) | |
230 | 233 | func create () = { | |
231 | - | let az = value(ae.payments[0]) | |
232 | - | let aA = value(ae.payments[1]) | |
233 | - | let aB = value(ae.payments[2]) | |
234 | - | let aC = al(az) | |
235 | - | let w = aC._1 | |
236 | - | let aD = aC._2 | |
237 | - | let aE = al(aA) | |
238 | - | let x = aE._1 | |
239 | - | let aF = aE._2 | |
240 | - | let aG = al(aB) | |
241 | - | let aw = aG._1 | |
242 | - | let aH = aG._2 | |
243 | - | let aI = U(getString(Y, R())) | |
244 | - | let aJ = 1 | |
245 | - | let aK = if (ad(ae)) | |
246 | - | then aJ | |
247 | - | else { | |
248 | - | let aL = valueOrErrorMessage(indexOf(aI, x), c) | |
249 | - | value(parseInt(U(getString(Q()))[aL])) | |
250 | - | } | |
251 | - | let aM = valueOrElse(getInteger(C()), 0) | |
252 | - | let aN = (aM + 1) | |
253 | - | let aO = addressFromStringValue(S(A())) | |
254 | - | let aP = { | |
255 | - | let aQ = invoke(Y, "poolExistsREADONLY", [w, x], nil) | |
256 | - | if ($isInstanceOf(aQ, "Boolean")) | |
257 | - | then aQ | |
258 | - | else throw("Couldn't cast Any to Boolean") | |
259 | - | } | |
260 | - | let aR = [if (!(Z(w, x))) | |
234 | + | let aA = value(af.payments[0]) | |
235 | + | let aB = value(af.payments[1]) | |
236 | + | let aC = value(af.payments[2]) | |
237 | + | let aD = am(aA) | |
238 | + | let aE = aD._1 | |
239 | + | let aF = aD._2 | |
240 | + | let aG = am(aB) | |
241 | + | let aH = aG._1 | |
242 | + | let aI = aG._2 | |
243 | + | let aJ = am(aC) | |
244 | + | let ax = aJ._1 | |
245 | + | let aK = aJ._2 | |
246 | + | let aL = V(getString(Z, S())) | |
247 | + | let aM = if ((aE != aH)) | |
261 | 248 | then true | |
262 | - | else i(), if (!(aP)) | |
263 | - | then true | |
264 | - | else i(), if (if (ad(ae)) | |
265 | - | then true | |
266 | - | else aj(w)) | |
267 | - | then true | |
268 | - | else j(), if ((getString(N()) == aw)) | |
269 | - | then true | |
270 | - | else l(), if (if (ad(ae)) | |
271 | - | then true | |
272 | - | else (az.amount >= getIntegerValue(P()))) | |
273 | - | then true | |
274 | - | else m(), if (if (ad(ae)) | |
275 | - | then true | |
276 | - | else (aA.amount >= aK)) | |
277 | - | then true | |
278 | - | else q(), if ((aB.amount == getInteger(O()))) | |
279 | - | then true | |
280 | - | else r()] | |
281 | - | if ((aR == aR)) | |
249 | + | else s() | |
250 | + | if ((aM == aM)) | |
282 | 251 | then { | |
283 | - | let aS = invoke(aO, "burn", nil, [AttachedPayment(fromBase58String(aw), aB.amount)]) | |
284 | - | if ((aS == aS)) | |
285 | - | then [BooleanEntry(I(w, x), true), StringEntry(J(w, x), toString(ae.caller)), IntegerEntry(C(), aN), StringEntry(B(w, x), (toString(aN) + D)), IntegerEntry(M(w, x), height), StringEntry(v(w, x), E), IntegerEntry(K(w, x), az.amount), IntegerEntry(L(w, x), aA.amount)] | |
252 | + | let aN = if (if (containsElement(aL, aH)) | |
253 | + | then ak(aE) | |
254 | + | else false) | |
255 | + | then $Tuple4(aE, aA.amount, aH, aB.amount) | |
256 | + | else if (if (containsElement(aL, aE)) | |
257 | + | then ak(aH) | |
258 | + | else false) | |
259 | + | then $Tuple4(aH, aB.amount, aE, aA.amount) | |
260 | + | else s() | |
261 | + | let x = aN._1 | |
262 | + | let aO = aN._2 | |
263 | + | let y = aN._3 | |
264 | + | let aP = aN._4 | |
265 | + | let aQ = 1 | |
266 | + | let aR = if (ae(af)) | |
267 | + | then aQ | |
268 | + | else { | |
269 | + | let aS = valueOrErrorMessage(indexOf(aL, y), c) | |
270 | + | value(parseInt(V(getString(R()))[aS])) | |
271 | + | } | |
272 | + | let aT = valueOrElse(getInteger(D()), 0) | |
273 | + | let aU = (aT + 1) | |
274 | + | let aV = addressFromStringValue(T(B())) | |
275 | + | let aW = { | |
276 | + | let aX = invoke(Z, "poolExistsREADONLY", [x, y], nil) | |
277 | + | if ($isInstanceOf(aX, "Boolean")) | |
278 | + | then aX | |
279 | + | else throw("Couldn't cast Any to Boolean") | |
280 | + | } | |
281 | + | let aY = [if (!(aa(x, y))) | |
282 | + | then true | |
283 | + | else i(), if (!(aW)) | |
284 | + | then true | |
285 | + | else i(), if ((getString(O()) == ax)) | |
286 | + | then true | |
287 | + | else l(), if (if (ae(af)) | |
288 | + | then true | |
289 | + | else (aO >= getIntegerValue(Q()))) | |
290 | + | then true | |
291 | + | else m(), if (if (ae(af)) | |
292 | + | then true | |
293 | + | else (aP >= aR)) | |
294 | + | then true | |
295 | + | else q(), if ((aC.amount == getInteger(P()))) | |
296 | + | then true | |
297 | + | else r()] | |
298 | + | if ((aY == aY)) | |
299 | + | then { | |
300 | + | let aZ = invoke(aV, "burn", nil, [AttachedPayment(fromBase58String(ax), aC.amount)]) | |
301 | + | if ((aZ == aZ)) | |
302 | + | then [BooleanEntry(J(x, y), true), StringEntry(K(x, y), toString(af.caller)), IntegerEntry(D(), aU), StringEntry(C(x, y), (toString(aU) + E)), IntegerEntry(N(x, y), height), StringEntry(w(x, y), F), IntegerEntry(L(x, y), aO), IntegerEntry(M(x, y), aP)] | |
303 | + | else throw("Strict value is not equal to itself.") | |
304 | + | } | |
286 | 305 | else throw("Strict value is not equal to itself.") | |
287 | 306 | } | |
288 | 307 | else throw("Strict value is not equal to itself.") | |
289 | 308 | } | |
290 | 309 | ||
291 | 310 | ||
292 | 311 | ||
293 | - | @Callable( | |
294 | - | func activate ( | |
295 | - | let | |
312 | + | @Callable(af) | |
313 | + | func activate (ba,x,bb,y,bc,bd) = { | |
314 | + | let aY = [ai(af), if (aa(x, y)) | |
296 | 315 | then true | |
297 | - | else g(), if ((value(getString( | |
316 | + | else g(), if ((value(getString(w(x, y))) == F)) | |
298 | 317 | then true | |
299 | 318 | else o()] | |
300 | - | if (( | |
319 | + | if ((aY == aY)) | |
301 | 320 | then { | |
302 | - | let | |
303 | - | if (( | |
321 | + | let be = invoke(Z, "activateNewPool", [ba, x, y, ((bb + bc) + "LP"), (((bb + "/") + bc) + " pool liquidity provider token"), 0, "VLTPOOL", bd], nil) | |
322 | + | if ((be == be)) | |
304 | 323 | then { | |
305 | - | let | |
306 | - | let | |
307 | - | if ($isInstanceOf( | |
324 | + | let bf = { | |
325 | + | let X = be | |
326 | + | if ($isInstanceOf(X, "String")) | |
308 | 327 | then { | |
309 | - | let | |
310 | - | | |
328 | + | let ao = X | |
329 | + | ao | |
311 | 330 | } | |
312 | 331 | else p() | |
313 | 332 | } | |
314 | - | if (( | |
333 | + | if ((bf == bf)) | |
315 | 334 | then { | |
316 | - | let | |
317 | - | if (( | |
335 | + | let bg = assetBalance(this, fromBase58String(bf)) | |
336 | + | if ((bg == bg)) | |
318 | 337 | then { | |
319 | - | let | |
338 | + | let bh = invoke(addressFromStringValue(ba), "put", [0, false], [AttachedPayment(if ((x == "WAVES")) | |
320 | 339 | then unit | |
321 | - | else fromBase58String( | |
340 | + | else fromBase58String(x), value(getInteger(L(x, y)))), AttachedPayment(if ((y == "WAVES")) | |
322 | 341 | then unit | |
323 | - | else fromBase58String( | |
324 | - | if (( | |
342 | + | else fromBase58String(y), value(getInteger(M(x, y))))]) | |
343 | + | if ((bh == bh)) | |
325 | 344 | then { | |
326 | - | let | |
327 | - | if (( | |
345 | + | let bi = assetBalance(this, fromBase58String(bf)) | |
346 | + | if ((bi == bi)) | |
328 | 347 | then { | |
329 | - | let | |
330 | - | [StringEntry( | |
348 | + | let bj = value(addressFromString(value(getString(K(x, y))))) | |
349 | + | [StringEntry(w(x, y), H), ScriptTransfer(bj, (bi - bg), fromBase58String(bf))] | |
331 | 350 | } | |
332 | 351 | else throw("Strict value is not equal to itself.") | |
333 | 352 | } | |
334 | 353 | else throw("Strict value is not equal to itself.") | |
335 | 354 | } | |
336 | 355 | else throw("Strict value is not equal to itself.") | |
337 | 356 | } | |
338 | 357 | else throw("Strict value is not equal to itself.") | |
339 | 358 | } | |
340 | 359 | else throw("Strict value is not equal to itself.") | |
341 | 360 | } | |
342 | 361 | else throw("Strict value is not equal to itself.") | |
343 | 362 | } | |
344 | 363 | ||
345 | 364 | ||
346 | 365 | ||
347 | - | @Callable( | |
348 | - | func setAdmins ( | |
349 | - | let | |
350 | - | if (( | |
351 | - | then [StringEntry( | |
366 | + | @Callable(af) | |
367 | + | func setAdmins (bk) = { | |
368 | + | let az = ah(af) | |
369 | + | if ((az == az)) | |
370 | + | then [StringEntry(v(), makeString(bk, a))] | |
352 | 371 | else throw("Strict value is not equal to itself.") | |
353 | 372 | } | |
354 | 373 | ||
355 | 374 | ||
356 | 375 | ||
357 | - | @Callable( | |
358 | - | func setManager ( | |
359 | - | let | |
360 | - | if (( | |
376 | + | @Callable(af) | |
377 | + | func setManager (bl) = { | |
378 | + | let az = ah(af) | |
379 | + | if ((az == az)) | |
361 | 380 | then { | |
362 | - | let | |
363 | - | if (( | |
364 | - | then [StringEntry( | |
381 | + | let bm = fromBase58String(bl) | |
382 | + | if ((bm == bm)) | |
383 | + | then [StringEntry(u(), bl)] | |
365 | 384 | else throw("Strict value is not equal to itself.") | |
366 | 385 | } | |
367 | 386 | else throw("Strict value is not equal to itself.") | |
368 | 387 | } | |
369 | 388 | ||
370 | 389 | ||
371 | 390 | ||
372 | - | @Callable( | |
391 | + | @Callable(af) | |
373 | 392 | func confirmManager () = { | |
374 | - | let | |
375 | - | let | |
393 | + | let bn = ad() | |
394 | + | let bo = if (isDefined(bn)) | |
376 | 395 | then true | |
377 | 396 | else throw("No pending manager") | |
378 | - | if (( | |
397 | + | if ((bo == bo)) | |
379 | 398 | then { | |
380 | - | let | |
399 | + | let bp = if ((af.callerPublicKey == value(bn))) | |
381 | 400 | then true | |
382 | 401 | else throw("You are not pending manager") | |
383 | - | if (( | |
384 | - | then [StringEntry( | |
402 | + | if ((bp == bp)) | |
403 | + | then [StringEntry(t(), toBase58String(value(bn))), DeleteEntry(u())] | |
385 | 404 | else throw("Strict value is not equal to itself.") | |
386 | 405 | } | |
387 | 406 | else throw("Strict value is not equal to itself.") | |
388 | 407 | } | |
389 | 408 | ||
390 | 409 | ||
391 | 410 | ||
392 | - | @Callable( | |
393 | - | func priceAssetsREADONLY () = $Tuple2(nil, | |
411 | + | @Callable(af) | |
412 | + | func priceAssetsREADONLY () = $Tuple2(nil, V(getString(S()))) | |
394 | 413 | ||
395 | 414 | ||
396 | 415 | ||
397 | - | @Callable( | |
398 | - | func statusREADONLY ( | |
399 | - | let | |
400 | - | let | |
401 | - | if ($isInstanceOf( | |
416 | + | @Callable(af) | |
417 | + | func statusREADONLY (x,y) = { | |
418 | + | let ar = { | |
419 | + | let X = getString(w(x, y)) | |
420 | + | if ($isInstanceOf(X, "String")) | |
402 | 421 | then { | |
403 | - | let | |
404 | - | | |
422 | + | let Y = X | |
423 | + | Y | |
405 | 424 | } | |
406 | 425 | else unit | |
407 | 426 | } | |
408 | - | $Tuple2(nil, | |
427 | + | $Tuple2(nil, ar) | |
409 | 428 | } | |
410 | 429 | ||
411 | 430 | ||
412 | - | @Verifier( | |
413 | - | func | |
414 | - | let | |
415 | - | let | |
416 | - | if ($isInstanceOf( | |
431 | + | @Verifier(bq) | |
432 | + | func br () = { | |
433 | + | let bs = { | |
434 | + | let X = ac() | |
435 | + | if ($isInstanceOf(X, "ByteVector")) | |
417 | 436 | then { | |
418 | - | let | |
419 | - | | |
437 | + | let ag = X | |
438 | + | ag | |
420 | 439 | } | |
421 | - | else if ($isInstanceOf( | |
422 | - | then | |
440 | + | else if ($isInstanceOf(X, "Unit")) | |
441 | + | then bq.senderPublicKey | |
423 | 442 | else throw("Match error") | |
424 | 443 | } | |
425 | - | sigVerify( | |
444 | + | sigVerify(bq.bodyBytes, bq.proofs[0], bs) | |
426 | 445 | } | |
427 | 446 |
github/deemru/w8io/026f985 112.01 ms ◑