tx · 2yzv1Ze1fbmVyZCxELmf47j6hYnJfZ8yjs4MW5oetoVv
3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr: -0.01600000 Waves
2023.05.02 09:51 [2559807] smart account 3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr > SELF 0.00000000 Waves
{
"type": 13,
"id": "2yzv1Ze1fbmVyZCxELmf47j6hYnJfZ8yjs4MW5oetoVv",
"fee": 1600000,
"feeAssetId": null,
"timestamp": 1683010310602,
"version": 2,
"chainId": 84,
"sender": "3N5BB6iE58rujeTEkymeLNcdsYF4f6iKoxr",
"senderPublicKey": "EtZZHS4uqNXY5WPneZ8jY2aA95peXwthJVLzAMxMp379",
"proofs": [
"4Xe1oZiFXHFtM3eqFc3LitmXf6shMBSBTXfEDEEQTXQ9FeWJ5CTSy9ubJceutikueX6VvA5wG58keicJFrjt8RDk"
],
"script": "base64:AAIFAAAAAAAABbYIAhIECgIICBIECgIICBIECgIIGBIDCgEIEgUKAwgICBIDCgEIEgMKAQgSAwoBCBIECgIICBIECgIICBIECgIICBIDCgEIEgUKAwgIBBIECgIICBIECgIIBBIDCgEIEgMKARgSAwoBCCIDU0VQIgVFTVBUWSIOc3RhdHVzVmVyaWZpZWQiEHN0YXR1c1VudmVyaWZpZWQiFmxhYmVsQ29tbXVuaXR5VmVyaWZpZWQiDGxhYmVsUG9vbHNMcCINZGVmYXVsdExhYmVscyIHdGhyb3dQRCIMdGhyb3dOb0Fzc2V0IhJ0aHJvd0ludmFsaWRUaWNrZXIiD2tleUFkbWluUHViS2V5cyIUa2V5VXNlclBvb2xzQ29udHJhY3QiEmtleUZhY3RvcnlDb250cmFjdCIKa2V5Q3JlYXRlZCIHYXNzZXRJZCIHa2V5TG9nbyIJa2V5VGlja2VyIglrZXlTdGF0dXMiE2tleUFzc2V0UG9vbHNOdW1iZXIiEmtleVRpY2tlclRvQXNzZXRJZCIGdGlja2VyIhJrZXlBc3NldElkVG9UaWNrZXIiIGtleUFtb3VudEFuZF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cm9vZnMAAAAAAAAAAAAFAAAAAmFUrPj5WA==",
"height": 2559807,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 881rjhL5QAtMYSxpD9DXoLgQmoSXiDwLw7N2VAMacNZS
Next: none
Diff:
Old | New | | Differences |
---|
24 | 24 | | func j () = throw("Invalid ticker") |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | | - | func k () = "%s__managerPublicKey" |
---|
| 27 | + | func k () = "%s__adminPubKeys" |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | | - | func l () = "%s__pendingManagerPublicKey" |
---|
| 30 | + | func l () = "%s__userPoolsContract" |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | | - | func m () = "%s__adminPubKeys" |
---|
| 33 | + | func m () = "%s__factoryContract" |
---|
34 | 34 | | |
---|
35 | 35 | | |
---|
36 | | - | func n () = "%s__userPoolsContract" |
---|
| 36 | + | func n (o) = (("created_<" + o) + ">") |
---|
37 | 37 | | |
---|
38 | 38 | | |
---|
39 | | - | func o () = "%s__factoryContract" |
---|
| 39 | + | func p (o) = (("logo_<" + o) + ">") |
---|
40 | 40 | | |
---|
41 | 41 | | |
---|
42 | | - | func p (q) = (("created_<" + q) + ">") |
---|
| 42 | + | func q (o) = (("ticker_<" + o) + ">") |
---|
43 | 43 | | |
---|
44 | 44 | | |
---|
45 | | - | func r (q) = (("logo_<" + q) + ">") |
---|
| 45 | + | func r (o) = (("status_<" + o) + ">") |
---|
46 | 46 | | |
---|
47 | 47 | | |
---|
48 | | - | func s (q) = (("ticker_<" + q) + ">") |
---|
| 48 | + | func s (o) = makeString(["%s%s", "pools", o], a) |
---|
49 | 49 | | |
---|
50 | 50 | | |
---|
51 | | - | func t (q) = (("status_<" + q) + ">") |
---|
| 51 | + | func t (u) = makeString(["%s%s", "ticker2assetId", u], a) |
---|
52 | 52 | | |
---|
53 | 53 | | |
---|
54 | | - | func u (q) = makeString(["%s%s", "pools", q], a) |
---|
| 54 | + | func v (o) = makeString(["%s%s", "assetId2ticker", o], a) |
---|
55 | 55 | | |
---|
56 | 56 | | |
---|
57 | | - | func v (w) = makeString(["%s%s", "ticker2assetId", w], a) |
---|
| 57 | + | func w (x,y) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", x, y], a) |
---|
58 | 58 | | |
---|
59 | 59 | | |
---|
60 | | - | func x (q) = makeString(["%s%s", "assetId2ticker", q], a) |
---|
| 60 | + | func z (A) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", A], a) |
---|
61 | 61 | | |
---|
62 | 62 | | |
---|
63 | | - | func y (z,A) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", z, A], a) |
---|
| 63 | + | func B (o) = makeString(["%s%s", "labels", o], a) |
---|
64 | 64 | | |
---|
65 | 65 | | |
---|
66 | | - | func B (C) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", C], a) |
---|
| 66 | + | func C () = makeString(["%s", "labels"], a) |
---|
67 | 67 | | |
---|
68 | 68 | | |
---|
69 | | - | func D (q) = makeString(["%s%s", "labels", q], a) |
---|
| 69 | + | func D (o) = makeString(["%s%s", "assetName", o], a) |
---|
70 | 70 | | |
---|
71 | 71 | | |
---|
72 | | - | func E () = makeString(["%s", "labels"], a) |
---|
| 72 | + | func E () = "%s__managerVaultAddress" |
---|
73 | 73 | | |
---|
74 | 74 | | |
---|
75 | | - | func F (q) = makeString(["%s%s", "assetName", q], a) |
---|
| 75 | + | func F () = "%s__managerPublicKey" |
---|
76 | 76 | | |
---|
77 | 77 | | |
---|
78 | | - | func G (q) = makeString(["%s%s", "assetDescription", q], a) |
---|
| 78 | + | func G (o) = makeString(["%s%s", "assetDescription", o], a) |
---|
79 | 79 | | |
---|
80 | 80 | | |
---|
81 | 81 | | func H (I,J,K) = { |
---|
|
113 | 113 | | } |
---|
114 | 114 | | |
---|
115 | 115 | | |
---|
116 | | - | func S (q) = (valueOrElse(getInteger(t(q)), d) == c) |
---|
| 116 | + | func S (o) = (valueOrElse(getInteger(r(o)), d) == c) |
---|
117 | 117 | | |
---|
118 | 118 | | |
---|
119 | 119 | | func T () = { |
---|
120 | | - | let M = getString(E()) |
---|
| 120 | + | let M = getString(C()) |
---|
121 | 121 | | if ($isInstanceOf(M, "String")) |
---|
122 | 122 | | then { |
---|
123 | 123 | | let U = M |
---|
|
129 | 129 | | } |
---|
130 | 130 | | |
---|
131 | 131 | | |
---|
132 | | - | func V (q) = { |
---|
133 | | - | let M = getString(D(q)) |
---|
| 132 | + | func V (o) = { |
---|
| 133 | + | let M = getString(B(o)) |
---|
134 | 134 | | if ($isInstanceOf(M, "String")) |
---|
135 | 135 | | then { |
---|
136 | 136 | | let U = M |
---|
|
142 | 142 | | } |
---|
143 | 143 | | |
---|
144 | 144 | | |
---|
145 | | - | func W () = { |
---|
146 | | - | let M = getString(k()) |
---|
| 145 | + | func W () = addressFromStringValue(getStringValue(E())) |
---|
| 146 | + | |
---|
| 147 | + | |
---|
| 148 | + | func X () = { |
---|
| 149 | + | let Y = W() |
---|
| 150 | + | let M = getString(Y, F()) |
---|
147 | 151 | | if ($isInstanceOf(M, "String")) |
---|
148 | 152 | | then { |
---|
149 | 153 | | let U = M |
---|
|
155 | 159 | | } |
---|
156 | 160 | | |
---|
157 | 161 | | |
---|
158 | | - | func X () = { |
---|
159 | | - | let M = getString(l()) |
---|
160 | | - | if ($isInstanceOf(M, "String")) |
---|
| 162 | + | func Z (aa) = { |
---|
| 163 | + | let M = X() |
---|
| 164 | + | if ($isInstanceOf(M, "ByteVector")) |
---|
161 | 165 | | then { |
---|
162 | | - | let U = M |
---|
163 | | - | fromBase58String(U) |
---|
| 166 | + | let ab = M |
---|
| 167 | + | (aa.callerPublicKey == ab) |
---|
164 | 168 | | } |
---|
165 | 169 | | else if ($isInstanceOf(M, "Unit")) |
---|
166 | | - | then unit |
---|
| 170 | + | then (aa.caller == this) |
---|
167 | 171 | | else throw("Match error") |
---|
168 | 172 | | } |
---|
169 | 173 | | |
---|
170 | 174 | | |
---|
171 | | - | func Y (Z) = { |
---|
172 | | - | let M = W() |
---|
173 | | - | if ($isInstanceOf(M, "ByteVector")) |
---|
174 | | - | then { |
---|
175 | | - | let aa = M |
---|
176 | | - | if ((Z.callerPublicKey == aa)) |
---|
177 | | - | then true |
---|
178 | | - | else h() |
---|
179 | | - | } |
---|
180 | | - | else if ($isInstanceOf(M, "Unit")) |
---|
181 | | - | then if ((Z.caller == this)) |
---|
182 | | - | then true |
---|
183 | | - | else h() |
---|
184 | | - | else throw("Match error") |
---|
| 175 | + | func ac (aa) = if (Z(aa)) |
---|
| 176 | + | then true |
---|
| 177 | + | else throw("permission denied") |
---|
| 178 | + | |
---|
| 179 | + | |
---|
| 180 | + | func ad (aa) = { |
---|
| 181 | + | let ae = split(valueOrElse(getString(k()), b), a) |
---|
| 182 | + | if (containsElement(ae, toBase58String(aa.callerPublicKey))) |
---|
| 183 | + | then true |
---|
| 184 | + | else ac(aa) |
---|
185 | 185 | | } |
---|
186 | 186 | | |
---|
187 | 187 | | |
---|
188 | | - | func ab (Z) = { |
---|
189 | | - | let ac = split(valueOrElse(getString(m()), b), a) |
---|
190 | | - | if (containsElement(ac, toBase58String(Z.callerPublicKey))) |
---|
191 | | - | then true |
---|
192 | | - | else { |
---|
193 | | - | let ad = Y(Z) |
---|
194 | | - | if ((ad == ad)) |
---|
195 | | - | then true |
---|
196 | | - | else throw("Strict value is not equal to itself.") |
---|
197 | | - | } |
---|
198 | | - | } |
---|
| 188 | + | func af (o) = valueOrElse(getBoolean(n(o)), false) |
---|
199 | 189 | | |
---|
200 | 190 | | |
---|
201 | | - | func ae (q) = valueOrElse(getBoolean(p(q)), false) |
---|
202 | | - | |
---|
203 | | - | |
---|
204 | | - | func af (ag) = if (ag) |
---|
| 191 | + | func ag (ah) = if (ah) |
---|
205 | 192 | | then c |
---|
206 | 193 | | else d |
---|
207 | 194 | | |
---|
208 | 195 | | |
---|
209 | | - | func ah (q,ai,aj) = { |
---|
210 | | - | let ak = T() |
---|
211 | | - | let al = V(q) |
---|
212 | | - | let am = if (containsElement(ak, ai)) |
---|
| 196 | + | func ai (o,aj,ak) = { |
---|
| 197 | + | let al = T() |
---|
| 198 | + | let am = V(o) |
---|
| 199 | + | let an = if (containsElement(al, aj)) |
---|
213 | 200 | | then true |
---|
214 | 201 | | else throw("Label doesn't exist") |
---|
215 | | - | if ((am == am)) |
---|
| 202 | + | if ((an == an)) |
---|
216 | 203 | | then { |
---|
217 | | - | let an = if (containsElement(al, ai)) |
---|
218 | | - | then if (aj) |
---|
| 204 | + | let ao = if (containsElement(am, aj)) |
---|
| 205 | + | then if (ak) |
---|
219 | 206 | | then throw("Label has already been added") |
---|
220 | | - | else al |
---|
221 | | - | else (al :+ ai) |
---|
222 | | - | [StringEntry(D(q), makeString(an, a))] |
---|
| 207 | + | else am |
---|
| 208 | + | else (am :+ aj) |
---|
| 209 | + | [StringEntry(B(o), makeString(ao, a))] |
---|
223 | 210 | | } |
---|
224 | 211 | | else throw("Strict value is not equal to itself.") |
---|
225 | 212 | | } |
---|
226 | 213 | | |
---|
227 | 214 | | |
---|
228 | | - | func ao (q,ai,aj) = { |
---|
229 | | - | let al = V(q) |
---|
230 | | - | let an = if (containsElement(al, ai)) |
---|
231 | | - | then removeByIndex(al, value(indexOf(al, ai))) |
---|
232 | | - | else if (aj) |
---|
| 215 | + | func ap (o,aj,ak) = { |
---|
| 216 | + | let am = V(o) |
---|
| 217 | + | let ao = if (containsElement(am, aj)) |
---|
| 218 | + | then removeByIndex(am, value(indexOf(am, aj))) |
---|
| 219 | + | else if (ak) |
---|
233 | 220 | | then throw("Label wasn't added") |
---|
234 | | - | else al |
---|
235 | | - | [StringEntry(D(q), makeString(an, a))] |
---|
| 221 | + | else am |
---|
| 222 | + | [StringEntry(B(o), makeString(ao, a))] |
---|
236 | 223 | | } |
---|
237 | 224 | | |
---|
238 | 225 | | |
---|
239 | | - | func ap (q,ag) = { |
---|
240 | | - | let aq = if (ag) |
---|
241 | | - | then ah(q, e, false) |
---|
242 | | - | else ao(q, e, false) |
---|
243 | | - | ([IntegerEntry(t(q), af(ag))] ++ aq) |
---|
| 226 | + | func aq (o,ah) = { |
---|
| 227 | + | let ar = if (ah) |
---|
| 228 | + | then ai(o, e, false) |
---|
| 229 | + | else ap(o, e, false) |
---|
| 230 | + | ([IntegerEntry(r(o), ag(ah))] ++ ar) |
---|
244 | 231 | | } |
---|
245 | 232 | | |
---|
246 | 233 | | |
---|
247 | | - | @Callable(Z) |
---|
248 | | - | func setAssetName (ar,as) = { |
---|
249 | | - | let at = ab(Z) |
---|
250 | | - | if ((at == at)) |
---|
251 | | - | then [StringEntry(F(ar), as)] |
---|
| 234 | + | @Callable(aa) |
---|
| 235 | + | func setAssetName (as,at) = { |
---|
| 236 | + | let au = ad(aa) |
---|
| 237 | + | if ((au == au)) |
---|
| 238 | + | then [StringEntry(D(as), at)] |
---|
252 | 239 | | else throw("Strict value is not equal to itself.") |
---|
253 | 240 | | } |
---|
254 | 241 | | |
---|
255 | 242 | | |
---|
256 | 243 | | |
---|
257 | | - | @Callable(Z) |
---|
258 | | - | func setAssetDescription (ar,au) = { |
---|
259 | | - | let at = ab(Z) |
---|
260 | | - | if ((at == at)) |
---|
261 | | - | then [StringEntry(G(ar), au)] |
---|
| 244 | + | @Callable(aa) |
---|
| 245 | + | func setAssetDescription (as,av) = { |
---|
| 246 | + | let au = ad(aa) |
---|
| 247 | + | if ((au == au)) |
---|
| 248 | + | then [StringEntry(G(as), av)] |
---|
262 | 249 | | else throw("Strict value is not equal to itself.") |
---|
263 | 250 | | } |
---|
264 | 251 | | |
---|
265 | 252 | | |
---|
266 | 253 | | |
---|
267 | | - | @Callable(Z) |
---|
268 | | - | func constructor (av,ak) = { |
---|
269 | | - | let at = Y(Z) |
---|
270 | | - | if ((at == at)) |
---|
| 254 | + | @Callable(aa) |
---|
| 255 | + | func constructor (aw,al) = { |
---|
| 256 | + | let au = ac(aa) |
---|
| 257 | + | if ((au == au)) |
---|
271 | 258 | | then { |
---|
272 | | - | let aw = valueOrErrorMessage(addressFromString(av), "Invalid address") |
---|
273 | | - | if ((aw == aw)) |
---|
274 | | - | then [StringEntry(n(), av), StringEntry(E(), makeString((g ++ ak), a))] |
---|
| 259 | + | let ax = valueOrErrorMessage(addressFromString(aw), "Invalid address") |
---|
| 260 | + | if ((ax == ax)) |
---|
| 261 | + | then [StringEntry(l(), aw), StringEntry(C(), makeString((g ++ al), a))] |
---|
275 | 262 | | else throw("Strict value is not equal to itself.") |
---|
276 | 263 | | } |
---|
277 | 264 | | else throw("Strict value is not equal to itself.") |
---|
|
279 | 266 | | |
---|
280 | 267 | | |
---|
281 | 268 | | |
---|
282 | | - | @Callable(Z) |
---|
283 | | - | func constructorV2 (ax) = { |
---|
284 | | - | let at = Y(Z) |
---|
285 | | - | if ((at == at)) |
---|
| 269 | + | @Callable(aa) |
---|
| 270 | + | func constructorV2 (ay) = { |
---|
| 271 | + | let au = ac(aa) |
---|
| 272 | + | if ((au == au)) |
---|
286 | 273 | | then { |
---|
287 | | - | let ay = valueOrErrorMessage(addressFromString(ax), "invalid factory contract address") |
---|
288 | | - | if ((ay == ay)) |
---|
289 | | - | then [StringEntry(o(), ax)] |
---|
| 274 | + | let az = valueOrErrorMessage(addressFromString(ay), "invalid factory contract address") |
---|
| 275 | + | if ((az == az)) |
---|
| 276 | + | then [StringEntry(m(), ay)] |
---|
290 | 277 | | else throw("Strict value is not equal to itself.") |
---|
291 | 278 | | } |
---|
292 | 279 | | else throw("Strict value is not equal to itself.") |
---|
|
294 | 281 | | |
---|
295 | 282 | | |
---|
296 | 283 | | |
---|
297 | | - | @Callable(Z) |
---|
298 | | - | func addAssetsLink (z,A,C) = { |
---|
299 | | - | let at = ab(Z) |
---|
300 | | - | if ((at == at)) |
---|
301 | | - | then [StringEntry(y(z, A), C), StringEntry(B(C), makeString([z, A], a))] |
---|
| 284 | + | @Callable(aa) |
---|
| 285 | + | func addAssetsLink (x,y,A) = { |
---|
| 286 | + | let au = ad(aa) |
---|
| 287 | + | if ((au == au)) |
---|
| 288 | + | then [StringEntry(w(x, y), A), StringEntry(z(A), makeString([x, y], a))] |
---|
302 | 289 | | else throw("Strict value is not equal to itself.") |
---|
303 | 290 | | } |
---|
304 | 291 | | |
---|
305 | 292 | | |
---|
306 | 293 | | |
---|
307 | | - | @Callable(Z) |
---|
308 | | - | func increaseAssetPoolsNumber (q) = { |
---|
309 | | - | let at = ab(Z) |
---|
310 | | - | if ((at == at)) |
---|
| 294 | + | @Callable(aa) |
---|
| 295 | + | func increaseAssetPoolsNumber (o) = { |
---|
| 296 | + | let au = ad(aa) |
---|
| 297 | + | if ((au == au)) |
---|
311 | 298 | | then { |
---|
312 | | - | let az = u(q) |
---|
313 | | - | let aA = valueOrElse(getInteger(az), 0) |
---|
314 | | - | [IntegerEntry(az, (aA + 1))] |
---|
| 299 | + | let aA = s(o) |
---|
| 300 | + | let aB = valueOrElse(getInteger(aA), 0) |
---|
| 301 | + | [IntegerEntry(aA, (aB + 1))] |
---|
315 | 302 | | } |
---|
316 | 303 | | else throw("Strict value is not equal to itself.") |
---|
317 | 304 | | } |
---|
318 | 305 | | |
---|
319 | 306 | | |
---|
320 | 307 | | |
---|
321 | | - | @Callable(Z) |
---|
322 | | - | func createLabel (ai) = { |
---|
323 | | - | let ak = T() |
---|
324 | | - | let at = ab(Z) |
---|
325 | | - | if ((at == at)) |
---|
| 308 | + | @Callable(aa) |
---|
| 309 | + | func createLabel (aj) = { |
---|
| 310 | + | let al = T() |
---|
| 311 | + | let au = ad(aa) |
---|
| 312 | + | if ((au == au)) |
---|
326 | 313 | | then { |
---|
327 | | - | let am = [if (!(contains(ai, a))) |
---|
| 314 | + | let an = [if (!(contains(aj, a))) |
---|
328 | 315 | | then true |
---|
329 | | - | else throw("Invalid label name"), if (!(containsElement(ak, ai))) |
---|
| 316 | + | else throw("Invalid label name"), if (!(containsElement(al, aj))) |
---|
330 | 317 | | then true |
---|
331 | 318 | | else throw("Label exists")] |
---|
332 | | - | if ((am == am)) |
---|
333 | | - | then [StringEntry(E(), makeString((ak :+ ai), a))] |
---|
| 319 | + | if ((an == an)) |
---|
| 320 | + | then [StringEntry(C(), makeString((al :+ aj), a))] |
---|
334 | 321 | | else throw("Strict value is not equal to itself.") |
---|
335 | 322 | | } |
---|
336 | 323 | | else throw("Strict value is not equal to itself.") |
---|
|
338 | 325 | | |
---|
339 | 326 | | |
---|
340 | 327 | | |
---|
341 | | - | @Callable(Z) |
---|
342 | | - | func dropLabel (ai) = { |
---|
343 | | - | let ak = T() |
---|
344 | | - | let at = Y(Z) |
---|
345 | | - | if ((at == at)) |
---|
| 328 | + | @Callable(aa) |
---|
| 329 | + | func dropLabel (aj) = { |
---|
| 330 | + | let al = T() |
---|
| 331 | + | let au = ac(aa) |
---|
| 332 | + | if ((au == au)) |
---|
346 | 333 | | then { |
---|
347 | | - | let am = if (containsElement(ak, ai)) |
---|
| 334 | + | let an = if (containsElement(al, aj)) |
---|
348 | 335 | | then true |
---|
349 | 336 | | else throw("Label doesn't exist") |
---|
350 | | - | if ((am == am)) |
---|
351 | | - | then [StringEntry(E(), makeString(removeByIndex(ak, value(indexOf(ak, ai))), a))] |
---|
| 337 | + | if ((an == an)) |
---|
| 338 | + | then [StringEntry(C(), makeString(removeByIndex(al, value(indexOf(al, aj))), a))] |
---|
352 | 339 | | else throw("Strict value is not equal to itself.") |
---|
353 | 340 | | } |
---|
354 | 341 | | else throw("Strict value is not equal to itself.") |
---|
|
356 | 343 | | |
---|
357 | 344 | | |
---|
358 | 345 | | |
---|
359 | | - | @Callable(Z) |
---|
360 | | - | func addLabel (q,ai) = { |
---|
361 | | - | let at = ab(Z) |
---|
362 | | - | if ((at == at)) |
---|
363 | | - | then ah(q, ai, true) |
---|
| 346 | + | @Callable(aa) |
---|
| 347 | + | func addLabel (o,aj) = { |
---|
| 348 | + | let au = ad(aa) |
---|
| 349 | + | if ((au == au)) |
---|
| 350 | + | then ai(o, aj, true) |
---|
364 | 351 | | else throw("Strict value is not equal to itself.") |
---|
365 | 352 | | } |
---|
366 | 353 | | |
---|
367 | 354 | | |
---|
368 | 355 | | |
---|
369 | | - | @Callable(Z) |
---|
370 | | - | func deleteLabel (q,ai) = { |
---|
371 | | - | let at = ab(Z) |
---|
372 | | - | if ((at == at)) |
---|
373 | | - | then ao(q, ai, true) |
---|
| 356 | + | @Callable(aa) |
---|
| 357 | + | func deleteLabel (o,aj) = { |
---|
| 358 | + | let au = ad(aa) |
---|
| 359 | + | if ((au == au)) |
---|
| 360 | + | then ap(o, aj, true) |
---|
374 | 361 | | else throw("Strict value is not equal to itself.") |
---|
375 | 362 | | } |
---|
376 | 363 | | |
---|
377 | 364 | | |
---|
378 | 365 | | |
---|
379 | | - | @Callable(Z) |
---|
380 | | - | func updateTicker (q,w) = { |
---|
381 | | - | let at = ab(Z) |
---|
382 | | - | if ((at == at)) |
---|
| 366 | + | @Callable(aa) |
---|
| 367 | + | func updateTicker (o,u) = { |
---|
| 368 | + | let au = ad(aa) |
---|
| 369 | + | if ((au == au)) |
---|
383 | 370 | | then { |
---|
384 | | - | let aB = if (ae(q)) |
---|
| 371 | + | let aC = if (af(o)) |
---|
385 | 372 | | then true |
---|
386 | 373 | | else i() |
---|
387 | | - | if ((aB == aB)) |
---|
| 374 | + | if ((aC == aC)) |
---|
388 | 375 | | then { |
---|
389 | | - | let aC = if ((w != "")) |
---|
| 376 | + | let aD = if ((u != "")) |
---|
390 | 377 | | then true |
---|
391 | 378 | | else j() |
---|
392 | | - | if ((aC == aC)) |
---|
| 379 | + | if ((aD == aD)) |
---|
393 | 380 | | then { |
---|
394 | | - | let aD = ({ |
---|
395 | | - | let M = getString(v(w)) |
---|
396 | | - | if ($isInstanceOf(M, "String")) |
---|
397 | | - | then { |
---|
398 | | - | let aE = M |
---|
399 | | - | [DeleteEntry(x(aE))] |
---|
400 | | - | } |
---|
401 | | - | else if ($isInstanceOf(M, "Unit")) |
---|
402 | | - | then nil |
---|
403 | | - | else throw("Match error") |
---|
404 | | - | } ++ { |
---|
405 | | - | let M = getString(x(q)) |
---|
| 381 | + | let aE = ({ |
---|
| 382 | + | let M = getString(t(u)) |
---|
406 | 383 | | if ($isInstanceOf(M, "String")) |
---|
407 | 384 | | then { |
---|
408 | 385 | | let aF = M |
---|
|
411 | 388 | | else if ($isInstanceOf(M, "Unit")) |
---|
412 | 389 | | then nil |
---|
413 | 390 | | else throw("Match error") |
---|
| 391 | + | } ++ { |
---|
| 392 | + | let M = getString(v(o)) |
---|
| 393 | + | if ($isInstanceOf(M, "String")) |
---|
| 394 | + | then { |
---|
| 395 | + | let aG = M |
---|
| 396 | + | [DeleteEntry(t(aG))] |
---|
| 397 | + | } |
---|
| 398 | + | else if ($isInstanceOf(M, "Unit")) |
---|
| 399 | + | then nil |
---|
| 400 | + | else throw("Match error") |
---|
414 | 401 | | }) |
---|
415 | | - | let aG = [StringEntry(x(q), w), StringEntry(v(w), q)] |
---|
416 | | - | (aD ++ aG) |
---|
| 402 | + | let aH = [StringEntry(v(o), u), StringEntry(t(u), o)] |
---|
| 403 | + | (aE ++ aH) |
---|
417 | 404 | | } |
---|
418 | 405 | | else throw("Strict value is not equal to itself.") |
---|
419 | 406 | | } |
---|
|
424 | 411 | | |
---|
425 | 412 | | |
---|
426 | 413 | | |
---|
427 | | - | @Callable(Z) |
---|
428 | | - | func deleteTicker (q) = { |
---|
429 | | - | let at = ab(Z) |
---|
430 | | - | if ((at == at)) |
---|
| 414 | + | @Callable(aa) |
---|
| 415 | + | func deleteTicker (o) = { |
---|
| 416 | + | let au = ad(aa) |
---|
| 417 | + | if ((au == au)) |
---|
431 | 418 | | then { |
---|
432 | | - | let w = valueOrErrorMessage(getString(x(q)), "Invalid asset") |
---|
433 | | - | [DeleteEntry(x(q)), DeleteEntry(v(w))] |
---|
| 419 | + | let u = valueOrErrorMessage(getString(v(o)), "Invalid asset") |
---|
| 420 | + | [DeleteEntry(v(o)), DeleteEntry(t(u))] |
---|
434 | 421 | | } |
---|
435 | 422 | | else throw("Strict value is not equal to itself.") |
---|
436 | 423 | | } |
---|
437 | 424 | | |
---|
438 | 425 | | |
---|
439 | 426 | | |
---|
440 | | - | @Callable(Z) |
---|
441 | | - | func createOrUpdate (q,aH,ag) = { |
---|
442 | | - | let at = ab(Z) |
---|
443 | | - | if ((at == at)) |
---|
| 427 | + | @Callable(aa) |
---|
| 428 | + | func createOrUpdate (o,aI,ah) = { |
---|
| 429 | + | let au = ad(aa) |
---|
| 430 | + | if ((au == au)) |
---|
444 | 431 | | then { |
---|
445 | | - | let aI = !(ae(q)) |
---|
446 | | - | if ((aI == aI)) |
---|
| 432 | + | let aJ = !(af(o)) |
---|
| 433 | + | if ((aJ == aJ)) |
---|
447 | 434 | | then { |
---|
448 | | - | let aJ = if ((aH == "")) |
---|
| 435 | + | let aK = if ((aI == "")) |
---|
449 | 436 | | then nil |
---|
450 | | - | else [StringEntry(r(q), aH)] |
---|
451 | | - | $Tuple2((([BooleanEntry(p(q), true)] ++ aJ) ++ ap(q, ag)), aI) |
---|
| 437 | + | else [StringEntry(p(o), aI)] |
---|
| 438 | + | $Tuple2((([BooleanEntry(n(o), true)] ++ aK) ++ aq(o, ah)), aJ) |
---|
452 | 439 | | } |
---|
453 | 440 | | else throw("Strict value is not equal to itself.") |
---|
454 | 441 | | } |
---|
|
457 | 444 | | |
---|
458 | 445 | | |
---|
459 | 446 | | |
---|
460 | | - | @Callable(Z) |
---|
461 | | - | func setLogo (q,aH) = { |
---|
462 | | - | let aK = [ab(Z), if (ae(q)) |
---|
| 447 | + | @Callable(aa) |
---|
| 448 | + | func setLogo (o,aI) = { |
---|
| 449 | + | let aL = [ad(aa), if (af(o)) |
---|
463 | 450 | | then true |
---|
464 | 451 | | else i()] |
---|
465 | | - | if ((aK == aK)) |
---|
| 452 | + | if ((aL == aL)) |
---|
466 | 453 | | then { |
---|
467 | | - | let aL = if ((aH == "")) |
---|
468 | | - | then DeleteEntry(r(q)) |
---|
469 | | - | else StringEntry(r(q), aH) |
---|
470 | | - | [aL] |
---|
| 454 | + | let aM = if ((aI == "")) |
---|
| 455 | + | then DeleteEntry(p(o)) |
---|
| 456 | + | else StringEntry(p(o), aI) |
---|
| 457 | + | [aM] |
---|
471 | 458 | | } |
---|
472 | 459 | | else throw("Strict value is not equal to itself.") |
---|
473 | 460 | | } |
---|
474 | 461 | | |
---|
475 | 462 | | |
---|
476 | 463 | | |
---|
477 | | - | @Callable(Z) |
---|
478 | | - | func setVerified (q,ag) = { |
---|
479 | | - | let aK = [ab(Z), if (ae(q)) |
---|
| 464 | + | @Callable(aa) |
---|
| 465 | + | func setVerified (o,ah) = { |
---|
| 466 | + | let aL = [ad(aa), if (af(o)) |
---|
480 | 467 | | then true |
---|
481 | 468 | | else i()] |
---|
482 | | - | if ((aK == aK)) |
---|
| 469 | + | if ((aL == aL)) |
---|
483 | 470 | | then { |
---|
484 | | - | let aM = if (!(ag)) |
---|
| 471 | + | let aN = if (!(ah)) |
---|
485 | 472 | | then { |
---|
486 | | - | let ax = valueOrErrorMessage(addressFromString(P(this, o())), "invalid factory contract address") |
---|
487 | | - | invoke(ax, "onVerificationLoss", [q], nil) |
---|
| 473 | + | let ay = valueOrErrorMessage(addressFromString(P(this, m())), "invalid factory contract address") |
---|
| 474 | + | invoke(ay, "onVerificationLoss", [o], nil) |
---|
488 | 475 | | } |
---|
489 | 476 | | else unit |
---|
490 | | - | if ((aM == aM)) |
---|
491 | | - | then $Tuple2(ap(q, ag), unit) |
---|
| 477 | + | if ((aN == aN)) |
---|
| 478 | + | then $Tuple2(aq(o, ah), unit) |
---|
492 | 479 | | else throw("Strict value is not equal to itself.") |
---|
493 | 480 | | } |
---|
494 | 481 | | else throw("Strict value is not equal to itself.") |
---|
|
496 | 483 | | |
---|
497 | 484 | | |
---|
498 | 485 | | |
---|
499 | | - | @Callable(Z) |
---|
500 | | - | func onEliminate (q) = { |
---|
501 | | - | let aN = valueOrElse(getInteger(u(q)), 0) |
---|
502 | | - | let aO = if ((aN > 0)) |
---|
| 486 | + | @Callable(aa) |
---|
| 487 | + | func onEliminate (o) = { |
---|
| 488 | + | let aO = valueOrElse(getInteger(s(o)), 0) |
---|
| 489 | + | let aP = if ((aO > 0)) |
---|
503 | 490 | | then nil |
---|
504 | | - | else [DeleteEntry(r(q))] |
---|
505 | | - | $Tuple2(aO, unit) |
---|
| 491 | + | else [DeleteEntry(p(o))] |
---|
| 492 | + | $Tuple2(aP, unit) |
---|
506 | 493 | | } |
---|
507 | 494 | | |
---|
508 | 495 | | |
---|
509 | 496 | | |
---|
510 | | - | @Callable(Z) |
---|
511 | | - | func setAdmins (aP) = { |
---|
512 | | - | let at = Y(Z) |
---|
513 | | - | if ((at == at)) |
---|
514 | | - | then [StringEntry(m(), makeString(aP, a))] |
---|
| 497 | + | @Callable(aa) |
---|
| 498 | + | func setAdmins (aQ) = { |
---|
| 499 | + | let au = ac(aa) |
---|
| 500 | + | if ((au == au)) |
---|
| 501 | + | then [StringEntry(k(), makeString(aQ, a))] |
---|
515 | 502 | | else throw("Strict value is not equal to itself.") |
---|
516 | 503 | | } |
---|
517 | 504 | | |
---|
518 | 505 | | |
---|
519 | 506 | | |
---|
520 | | - | @Callable(Z) |
---|
521 | | - | func setManager (aQ) = { |
---|
522 | | - | let at = Y(Z) |
---|
523 | | - | if ((at == at)) |
---|
524 | | - | then { |
---|
525 | | - | let aR = fromBase58String(aQ) |
---|
526 | | - | if ((aR == aR)) |
---|
527 | | - | then [StringEntry(l(), aQ)] |
---|
528 | | - | else throw("Strict value is not equal to itself.") |
---|
529 | | - | } |
---|
530 | | - | else throw("Strict value is not equal to itself.") |
---|
531 | | - | } |
---|
| 507 | + | @Callable(aa) |
---|
| 508 | + | func isVerifiedREADONLY (o) = $Tuple2(nil, S(o)) |
---|
532 | 509 | | |
---|
533 | 510 | | |
---|
534 | | - | |
---|
535 | | - | @Callable(Z) |
---|
536 | | - | func confirmManager () = { |
---|
537 | | - | let aS = X() |
---|
538 | | - | let aT = if (isDefined(aS)) |
---|
539 | | - | then true |
---|
540 | | - | else throw("No pending manager") |
---|
541 | | - | if ((aT == aT)) |
---|
542 | | - | then { |
---|
543 | | - | let aU = if ((Z.callerPublicKey == value(aS))) |
---|
544 | | - | then true |
---|
545 | | - | else throw("You are not pending manager") |
---|
546 | | - | if ((aU == aU)) |
---|
547 | | - | then [StringEntry(k(), toBase58String(value(aS))), DeleteEntry(l())] |
---|
548 | | - | else throw("Strict value is not equal to itself.") |
---|
549 | | - | } |
---|
550 | | - | else throw("Strict value is not equal to itself.") |
---|
551 | | - | } |
---|
552 | | - | |
---|
553 | | - | |
---|
554 | | - | |
---|
555 | | - | @Callable(Z) |
---|
556 | | - | func isVerifiedREADONLY (q) = $Tuple2(nil, S(q)) |
---|
557 | | - | |
---|
558 | | - | |
---|
559 | | - | @Verifier(aV) |
---|
560 | | - | func aW () = { |
---|
561 | | - | let aX = { |
---|
562 | | - | let M = W() |
---|
| 511 | + | @Verifier(aR) |
---|
| 512 | + | func aS () = { |
---|
| 513 | + | let aT = { |
---|
| 514 | + | let M = X() |
---|
563 | 515 | | if ($isInstanceOf(M, "ByteVector")) |
---|
564 | 516 | | then { |
---|
565 | | - | let aa = M |
---|
566 | | - | aa |
---|
| 517 | + | let ab = M |
---|
| 518 | + | ab |
---|
567 | 519 | | } |
---|
568 | 520 | | else if ($isInstanceOf(M, "Unit")) |
---|
569 | | - | then aV.senderPublicKey |
---|
| 521 | + | then aR.senderPublicKey |
---|
570 | 522 | | else throw("Match error") |
---|
571 | 523 | | } |
---|
572 | | - | sigVerify(aV.bodyBytes, aV.proofs[0], aX) |
---|
| 524 | + | sigVerify(aR.bodyBytes, aR.proofs[0], aT) |
---|
573 | 525 | | } |
---|
574 | 526 | | |
---|
Full:
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 = 2 |
---|
9 | 9 | | |
---|
10 | 10 | | let d = 0 |
---|
11 | 11 | | |
---|
12 | 12 | | let e = "COMMUNITY_VERIFIED" |
---|
13 | 13 | | |
---|
14 | 14 | | let f = "POOLS_LP" |
---|
15 | 15 | | |
---|
16 | 16 | | let g = [e, f] |
---|
17 | 17 | | |
---|
18 | 18 | | func h () = throw("Permission denied") |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|
21 | 21 | | func i () = throw("Asset doesn't exists") |
---|
22 | 22 | | |
---|
23 | 23 | | |
---|
24 | 24 | | func j () = throw("Invalid ticker") |
---|
25 | 25 | | |
---|
26 | 26 | | |
---|
27 | | - | func k () = "%s__managerPublicKey" |
---|
| 27 | + | func k () = "%s__adminPubKeys" |
---|
28 | 28 | | |
---|
29 | 29 | | |
---|
30 | | - | func l () = "%s__pendingManagerPublicKey" |
---|
| 30 | + | func l () = "%s__userPoolsContract" |
---|
31 | 31 | | |
---|
32 | 32 | | |
---|
33 | | - | func m () = "%s__adminPubKeys" |
---|
| 33 | + | func m () = "%s__factoryContract" |
---|
34 | 34 | | |
---|
35 | 35 | | |
---|
36 | | - | func n () = "%s__userPoolsContract" |
---|
| 36 | + | func n (o) = (("created_<" + o) + ">") |
---|
37 | 37 | | |
---|
38 | 38 | | |
---|
39 | | - | func o () = "%s__factoryContract" |
---|
| 39 | + | func p (o) = (("logo_<" + o) + ">") |
---|
40 | 40 | | |
---|
41 | 41 | | |
---|
42 | | - | func p (q) = (("created_<" + q) + ">") |
---|
| 42 | + | func q (o) = (("ticker_<" + o) + ">") |
---|
43 | 43 | | |
---|
44 | 44 | | |
---|
45 | | - | func r (q) = (("logo_<" + q) + ">") |
---|
| 45 | + | func r (o) = (("status_<" + o) + ">") |
---|
46 | 46 | | |
---|
47 | 47 | | |
---|
48 | | - | func s (q) = (("ticker_<" + q) + ">") |
---|
| 48 | + | func s (o) = makeString(["%s%s", "pools", o], a) |
---|
49 | 49 | | |
---|
50 | 50 | | |
---|
51 | | - | func t (q) = (("status_<" + q) + ">") |
---|
| 51 | + | func t (u) = makeString(["%s%s", "ticker2assetId", u], a) |
---|
52 | 52 | | |
---|
53 | 53 | | |
---|
54 | | - | func u (q) = makeString(["%s%s", "pools", q], a) |
---|
| 54 | + | func v (o) = makeString(["%s%s", "assetId2ticker", o], a) |
---|
55 | 55 | | |
---|
56 | 56 | | |
---|
57 | | - | func v (w) = makeString(["%s%s", "ticker2assetId", w], a) |
---|
| 57 | + | func w (x,y) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", x, y], a) |
---|
58 | 58 | | |
---|
59 | 59 | | |
---|
60 | | - | func x (q) = makeString(["%s%s", "assetId2ticker", q], a) |
---|
| 60 | + | func z (A) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", A], a) |
---|
61 | 61 | | |
---|
62 | 62 | | |
---|
63 | | - | func y (z,A) = makeString(["%s%s%s", "amountAndPriceAssetsToLpAsset", z, A], a) |
---|
| 63 | + | func B (o) = makeString(["%s%s", "labels", o], a) |
---|
64 | 64 | | |
---|
65 | 65 | | |
---|
66 | | - | func B (C) = makeString(["%s%s", "lpAssetToAmountAndPriceAssets", C], a) |
---|
| 66 | + | func C () = makeString(["%s", "labels"], a) |
---|
67 | 67 | | |
---|
68 | 68 | | |
---|
69 | | - | func D (q) = makeString(["%s%s", "labels", q], a) |
---|
| 69 | + | func D (o) = makeString(["%s%s", "assetName", o], a) |
---|
70 | 70 | | |
---|
71 | 71 | | |
---|
72 | | - | func E () = makeString(["%s", "labels"], a) |
---|
| 72 | + | func E () = "%s__managerVaultAddress" |
---|
73 | 73 | | |
---|
74 | 74 | | |
---|
75 | | - | func F (q) = makeString(["%s%s", "assetName", q], a) |
---|
| 75 | + | func F () = "%s__managerPublicKey" |
---|
76 | 76 | | |
---|
77 | 77 | | |
---|
78 | | - | func G (q) = makeString(["%s%s", "assetDescription", q], a) |
---|
| 78 | + | func G (o) = makeString(["%s%s", "assetDescription", o], a) |
---|
79 | 79 | | |
---|
80 | 80 | | |
---|
81 | 81 | | func H (I,J,K) = { |
---|
82 | 82 | | let L = makeString(["mandatory ", toString(I), ".", J, " is not defined"], "") |
---|
83 | 83 | | valueOrErrorMessage({ |
---|
84 | 84 | | let M = K |
---|
85 | 85 | | if ($isInstanceOf(M, "String")) |
---|
86 | 86 | | then { |
---|
87 | 87 | | let N = M |
---|
88 | 88 | | getString(I, J) |
---|
89 | 89 | | } |
---|
90 | 90 | | else if ($isInstanceOf(M, "Int")) |
---|
91 | 91 | | then { |
---|
92 | 92 | | let O = M |
---|
93 | 93 | | getInteger(I, J) |
---|
94 | 94 | | } |
---|
95 | 95 | | else throw("invalid entry type") |
---|
96 | 96 | | }, L) |
---|
97 | 97 | | } |
---|
98 | 98 | | |
---|
99 | 99 | | |
---|
100 | 100 | | func P (I,J) = { |
---|
101 | 101 | | let Q = H(I, J, "") |
---|
102 | 102 | | if ($isInstanceOf(Q, "String")) |
---|
103 | 103 | | then Q |
---|
104 | 104 | | else throw("Couldn't cast Int|String to String") |
---|
105 | 105 | | } |
---|
106 | 106 | | |
---|
107 | 107 | | |
---|
108 | 108 | | func R (I,J) = { |
---|
109 | 109 | | let Q = H(I, J, 0) |
---|
110 | 110 | | if ($isInstanceOf(Q, "Int")) |
---|
111 | 111 | | then Q |
---|
112 | 112 | | else throw("Couldn't cast Int|String to Int") |
---|
113 | 113 | | } |
---|
114 | 114 | | |
---|
115 | 115 | | |
---|
116 | | - | func S (q) = (valueOrElse(getInteger(t(q)), d) == c) |
---|
| 116 | + | func S (o) = (valueOrElse(getInteger(r(o)), d) == c) |
---|
117 | 117 | | |
---|
118 | 118 | | |
---|
119 | 119 | | func T () = { |
---|
120 | | - | let M = getString(E()) |
---|
| 120 | + | let M = getString(C()) |
---|
121 | 121 | | if ($isInstanceOf(M, "String")) |
---|
122 | 122 | | then { |
---|
123 | 123 | | let U = M |
---|
124 | 124 | | if ((size(U) == 0)) |
---|
125 | 125 | | then nil |
---|
126 | 126 | | else split(U, a) |
---|
127 | 127 | | } |
---|
128 | 128 | | else nil |
---|
129 | 129 | | } |
---|
130 | 130 | | |
---|
131 | 131 | | |
---|
132 | | - | func V (q) = { |
---|
133 | | - | let M = getString(D(q)) |
---|
| 132 | + | func V (o) = { |
---|
| 133 | + | let M = getString(B(o)) |
---|
134 | 134 | | if ($isInstanceOf(M, "String")) |
---|
135 | 135 | | then { |
---|
136 | 136 | | let U = M |
---|
137 | 137 | | if ((size(U) == 0)) |
---|
138 | 138 | | then nil |
---|
139 | 139 | | else split(U, a) |
---|
140 | 140 | | } |
---|
141 | 141 | | else nil |
---|
142 | 142 | | } |
---|
143 | 143 | | |
---|
144 | 144 | | |
---|
145 | | - | func W () = { |
---|
146 | | - | let M = getString(k()) |
---|
| 145 | + | func W () = addressFromStringValue(getStringValue(E())) |
---|
| 146 | + | |
---|
| 147 | + | |
---|
| 148 | + | func X () = { |
---|
| 149 | + | let Y = W() |
---|
| 150 | + | let M = getString(Y, F()) |
---|
147 | 151 | | if ($isInstanceOf(M, "String")) |
---|
148 | 152 | | then { |
---|
149 | 153 | | let U = M |
---|
150 | 154 | | fromBase58String(U) |
---|
151 | 155 | | } |
---|
152 | 156 | | else if ($isInstanceOf(M, "Unit")) |
---|
153 | 157 | | then unit |
---|
154 | 158 | | else throw("Match error") |
---|
155 | 159 | | } |
---|
156 | 160 | | |
---|
157 | 161 | | |
---|
158 | | - | func X () = { |
---|
159 | | - | let M = getString(l()) |
---|
160 | | - | if ($isInstanceOf(M, "String")) |
---|
| 162 | + | func Z (aa) = { |
---|
| 163 | + | let M = X() |
---|
| 164 | + | if ($isInstanceOf(M, "ByteVector")) |
---|
161 | 165 | | then { |
---|
162 | | - | let U = M |
---|
163 | | - | fromBase58String(U) |
---|
| 166 | + | let ab = M |
---|
| 167 | + | (aa.callerPublicKey == ab) |
---|
164 | 168 | | } |
---|
165 | 169 | | else if ($isInstanceOf(M, "Unit")) |
---|
166 | | - | then unit |
---|
| 170 | + | then (aa.caller == this) |
---|
167 | 171 | | else throw("Match error") |
---|
168 | 172 | | } |
---|
169 | 173 | | |
---|
170 | 174 | | |
---|
171 | | - | func Y (Z) = { |
---|
172 | | - | let M = W() |
---|
173 | | - | if ($isInstanceOf(M, "ByteVector")) |
---|
174 | | - | then { |
---|
175 | | - | let aa = M |
---|
176 | | - | if ((Z.callerPublicKey == aa)) |
---|
177 | | - | then true |
---|
178 | | - | else h() |
---|
179 | | - | } |
---|
180 | | - | else if ($isInstanceOf(M, "Unit")) |
---|
181 | | - | then if ((Z.caller == this)) |
---|
182 | | - | then true |
---|
183 | | - | else h() |
---|
184 | | - | else throw("Match error") |
---|
| 175 | + | func ac (aa) = if (Z(aa)) |
---|
| 176 | + | then true |
---|
| 177 | + | else throw("permission denied") |
---|
| 178 | + | |
---|
| 179 | + | |
---|
| 180 | + | func ad (aa) = { |
---|
| 181 | + | let ae = split(valueOrElse(getString(k()), b), a) |
---|
| 182 | + | if (containsElement(ae, toBase58String(aa.callerPublicKey))) |
---|
| 183 | + | then true |
---|
| 184 | + | else ac(aa) |
---|
185 | 185 | | } |
---|
186 | 186 | | |
---|
187 | 187 | | |
---|
188 | | - | func ab (Z) = { |
---|
189 | | - | let ac = split(valueOrElse(getString(m()), b), a) |
---|
190 | | - | if (containsElement(ac, toBase58String(Z.callerPublicKey))) |
---|
191 | | - | then true |
---|
192 | | - | else { |
---|
193 | | - | let ad = Y(Z) |
---|
194 | | - | if ((ad == ad)) |
---|
195 | | - | then true |
---|
196 | | - | else throw("Strict value is not equal to itself.") |
---|
197 | | - | } |
---|
198 | | - | } |
---|
| 188 | + | func af (o) = valueOrElse(getBoolean(n(o)), false) |
---|
199 | 189 | | |
---|
200 | 190 | | |
---|
201 | | - | func ae (q) = valueOrElse(getBoolean(p(q)), false) |
---|
202 | | - | |
---|
203 | | - | |
---|
204 | | - | func af (ag) = if (ag) |
---|
| 191 | + | func ag (ah) = if (ah) |
---|
205 | 192 | | then c |
---|
206 | 193 | | else d |
---|
207 | 194 | | |
---|
208 | 195 | | |
---|
209 | | - | func ah (q,ai,aj) = { |
---|
210 | | - | let ak = T() |
---|
211 | | - | let al = V(q) |
---|
212 | | - | let am = if (containsElement(ak, ai)) |
---|
| 196 | + | func ai (o,aj,ak) = { |
---|
| 197 | + | let al = T() |
---|
| 198 | + | let am = V(o) |
---|
| 199 | + | let an = if (containsElement(al, aj)) |
---|
213 | 200 | | then true |
---|
214 | 201 | | else throw("Label doesn't exist") |
---|
215 | | - | if ((am == am)) |
---|
| 202 | + | if ((an == an)) |
---|
216 | 203 | | then { |
---|
217 | | - | let an = if (containsElement(al, ai)) |
---|
218 | | - | then if (aj) |
---|
| 204 | + | let ao = if (containsElement(am, aj)) |
---|
| 205 | + | then if (ak) |
---|
219 | 206 | | then throw("Label has already been added") |
---|
220 | | - | else al |
---|
221 | | - | else (al :+ ai) |
---|
222 | | - | [StringEntry(D(q), makeString(an, a))] |
---|
| 207 | + | else am |
---|
| 208 | + | else (am :+ aj) |
---|
| 209 | + | [StringEntry(B(o), makeString(ao, a))] |
---|
223 | 210 | | } |
---|
224 | 211 | | else throw("Strict value is not equal to itself.") |
---|
225 | 212 | | } |
---|
226 | 213 | | |
---|
227 | 214 | | |
---|
228 | | - | func ao (q,ai,aj) = { |
---|
229 | | - | let al = V(q) |
---|
230 | | - | let an = if (containsElement(al, ai)) |
---|
231 | | - | then removeByIndex(al, value(indexOf(al, ai))) |
---|
232 | | - | else if (aj) |
---|
| 215 | + | func ap (o,aj,ak) = { |
---|
| 216 | + | let am = V(o) |
---|
| 217 | + | let ao = if (containsElement(am, aj)) |
---|
| 218 | + | then removeByIndex(am, value(indexOf(am, aj))) |
---|
| 219 | + | else if (ak) |
---|
233 | 220 | | then throw("Label wasn't added") |
---|
234 | | - | else al |
---|
235 | | - | [StringEntry(D(q), makeString(an, a))] |
---|
| 221 | + | else am |
---|
| 222 | + | [StringEntry(B(o), makeString(ao, a))] |
---|
236 | 223 | | } |
---|
237 | 224 | | |
---|
238 | 225 | | |
---|
239 | | - | func ap (q,ag) = { |
---|
240 | | - | let aq = if (ag) |
---|
241 | | - | then ah(q, e, false) |
---|
242 | | - | else ao(q, e, false) |
---|
243 | | - | ([IntegerEntry(t(q), af(ag))] ++ aq) |
---|
| 226 | + | func aq (o,ah) = { |
---|
| 227 | + | let ar = if (ah) |
---|
| 228 | + | then ai(o, e, false) |
---|
| 229 | + | else ap(o, e, false) |
---|
| 230 | + | ([IntegerEntry(r(o), ag(ah))] ++ ar) |
---|
244 | 231 | | } |
---|
245 | 232 | | |
---|
246 | 233 | | |
---|
247 | | - | @Callable(Z) |
---|
248 | | - | func setAssetName (ar,as) = { |
---|
249 | | - | let at = ab(Z) |
---|
250 | | - | if ((at == at)) |
---|
251 | | - | then [StringEntry(F(ar), as)] |
---|
| 234 | + | @Callable(aa) |
---|
| 235 | + | func setAssetName (as,at) = { |
---|
| 236 | + | let au = ad(aa) |
---|
| 237 | + | if ((au == au)) |
---|
| 238 | + | then [StringEntry(D(as), at)] |
---|
252 | 239 | | else throw("Strict value is not equal to itself.") |
---|
253 | 240 | | } |
---|
254 | 241 | | |
---|
255 | 242 | | |
---|
256 | 243 | | |
---|
257 | | - | @Callable(Z) |
---|
258 | | - | func setAssetDescription (ar,au) = { |
---|
259 | | - | let at = ab(Z) |
---|
260 | | - | if ((at == at)) |
---|
261 | | - | then [StringEntry(G(ar), au)] |
---|
| 244 | + | @Callable(aa) |
---|
| 245 | + | func setAssetDescription (as,av) = { |
---|
| 246 | + | let au = ad(aa) |
---|
| 247 | + | if ((au == au)) |
---|
| 248 | + | then [StringEntry(G(as), av)] |
---|
262 | 249 | | else throw("Strict value is not equal to itself.") |
---|
263 | 250 | | } |
---|
264 | 251 | | |
---|
265 | 252 | | |
---|
266 | 253 | | |
---|
267 | | - | @Callable(Z) |
---|
268 | | - | func constructor (av,ak) = { |
---|
269 | | - | let at = Y(Z) |
---|
270 | | - | if ((at == at)) |
---|
| 254 | + | @Callable(aa) |
---|
| 255 | + | func constructor (aw,al) = { |
---|
| 256 | + | let au = ac(aa) |
---|
| 257 | + | if ((au == au)) |
---|
271 | 258 | | then { |
---|
272 | | - | let aw = valueOrErrorMessage(addressFromString(av), "Invalid address") |
---|
273 | | - | if ((aw == aw)) |
---|
274 | | - | then [StringEntry(n(), av), StringEntry(E(), makeString((g ++ ak), a))] |
---|
| 259 | + | let ax = valueOrErrorMessage(addressFromString(aw), "Invalid address") |
---|
| 260 | + | if ((ax == ax)) |
---|
| 261 | + | then [StringEntry(l(), aw), StringEntry(C(), makeString((g ++ al), a))] |
---|
275 | 262 | | else throw("Strict value is not equal to itself.") |
---|
276 | 263 | | } |
---|
277 | 264 | | else throw("Strict value is not equal to itself.") |
---|
278 | 265 | | } |
---|
279 | 266 | | |
---|
280 | 267 | | |
---|
281 | 268 | | |
---|
282 | | - | @Callable(Z) |
---|
283 | | - | func constructorV2 (ax) = { |
---|
284 | | - | let at = Y(Z) |
---|
285 | | - | if ((at == at)) |
---|
| 269 | + | @Callable(aa) |
---|
| 270 | + | func constructorV2 (ay) = { |
---|
| 271 | + | let au = ac(aa) |
---|
| 272 | + | if ((au == au)) |
---|
286 | 273 | | then { |
---|
287 | | - | let ay = valueOrErrorMessage(addressFromString(ax), "invalid factory contract address") |
---|
288 | | - | if ((ay == ay)) |
---|
289 | | - | then [StringEntry(o(), ax)] |
---|
| 274 | + | let az = valueOrErrorMessage(addressFromString(ay), "invalid factory contract address") |
---|
| 275 | + | if ((az == az)) |
---|
| 276 | + | then [StringEntry(m(), ay)] |
---|
290 | 277 | | else throw("Strict value is not equal to itself.") |
---|
291 | 278 | | } |
---|
292 | 279 | | else throw("Strict value is not equal to itself.") |
---|
293 | 280 | | } |
---|
294 | 281 | | |
---|
295 | 282 | | |
---|
296 | 283 | | |
---|
297 | | - | @Callable(Z) |
---|
298 | | - | func addAssetsLink (z,A,C) = { |
---|
299 | | - | let at = ab(Z) |
---|
300 | | - | if ((at == at)) |
---|
301 | | - | then [StringEntry(y(z, A), C), StringEntry(B(C), makeString([z, A], a))] |
---|
| 284 | + | @Callable(aa) |
---|
| 285 | + | func addAssetsLink (x,y,A) = { |
---|
| 286 | + | let au = ad(aa) |
---|
| 287 | + | if ((au == au)) |
---|
| 288 | + | then [StringEntry(w(x, y), A), StringEntry(z(A), makeString([x, y], a))] |
---|
302 | 289 | | else throw("Strict value is not equal to itself.") |
---|
303 | 290 | | } |
---|
304 | 291 | | |
---|
305 | 292 | | |
---|
306 | 293 | | |
---|
307 | | - | @Callable(Z) |
---|
308 | | - | func increaseAssetPoolsNumber (q) = { |
---|
309 | | - | let at = ab(Z) |
---|
310 | | - | if ((at == at)) |
---|
| 294 | + | @Callable(aa) |
---|
| 295 | + | func increaseAssetPoolsNumber (o) = { |
---|
| 296 | + | let au = ad(aa) |
---|
| 297 | + | if ((au == au)) |
---|
311 | 298 | | then { |
---|
312 | | - | let az = u(q) |
---|
313 | | - | let aA = valueOrElse(getInteger(az), 0) |
---|
314 | | - | [IntegerEntry(az, (aA + 1))] |
---|
| 299 | + | let aA = s(o) |
---|
| 300 | + | let aB = valueOrElse(getInteger(aA), 0) |
---|
| 301 | + | [IntegerEntry(aA, (aB + 1))] |
---|
315 | 302 | | } |
---|
316 | 303 | | else throw("Strict value is not equal to itself.") |
---|
317 | 304 | | } |
---|
318 | 305 | | |
---|
319 | 306 | | |
---|
320 | 307 | | |
---|
321 | | - | @Callable(Z) |
---|
322 | | - | func createLabel (ai) = { |
---|
323 | | - | let ak = T() |
---|
324 | | - | let at = ab(Z) |
---|
325 | | - | if ((at == at)) |
---|
| 308 | + | @Callable(aa) |
---|
| 309 | + | func createLabel (aj) = { |
---|
| 310 | + | let al = T() |
---|
| 311 | + | let au = ad(aa) |
---|
| 312 | + | if ((au == au)) |
---|
326 | 313 | | then { |
---|
327 | | - | let am = [if (!(contains(ai, a))) |
---|
| 314 | + | let an = [if (!(contains(aj, a))) |
---|
328 | 315 | | then true |
---|
329 | | - | else throw("Invalid label name"), if (!(containsElement(ak, ai))) |
---|
| 316 | + | else throw("Invalid label name"), if (!(containsElement(al, aj))) |
---|
330 | 317 | | then true |
---|
331 | 318 | | else throw("Label exists")] |
---|
332 | | - | if ((am == am)) |
---|
333 | | - | then [StringEntry(E(), makeString((ak :+ ai), a))] |
---|
| 319 | + | if ((an == an)) |
---|
| 320 | + | then [StringEntry(C(), makeString((al :+ aj), a))] |
---|
334 | 321 | | else throw("Strict value is not equal to itself.") |
---|
335 | 322 | | } |
---|
336 | 323 | | else throw("Strict value is not equal to itself.") |
---|
337 | 324 | | } |
---|
338 | 325 | | |
---|
339 | 326 | | |
---|
340 | 327 | | |
---|
341 | | - | @Callable(Z) |
---|
342 | | - | func dropLabel (ai) = { |
---|
343 | | - | let ak = T() |
---|
344 | | - | let at = Y(Z) |
---|
345 | | - | if ((at == at)) |
---|
| 328 | + | @Callable(aa) |
---|
| 329 | + | func dropLabel (aj) = { |
---|
| 330 | + | let al = T() |
---|
| 331 | + | let au = ac(aa) |
---|
| 332 | + | if ((au == au)) |
---|
346 | 333 | | then { |
---|
347 | | - | let am = if (containsElement(ak, ai)) |
---|
| 334 | + | let an = if (containsElement(al, aj)) |
---|
348 | 335 | | then true |
---|
349 | 336 | | else throw("Label doesn't exist") |
---|
350 | | - | if ((am == am)) |
---|
351 | | - | then [StringEntry(E(), makeString(removeByIndex(ak, value(indexOf(ak, ai))), a))] |
---|
| 337 | + | if ((an == an)) |
---|
| 338 | + | then [StringEntry(C(), makeString(removeByIndex(al, value(indexOf(al, aj))), a))] |
---|
352 | 339 | | else throw("Strict value is not equal to itself.") |
---|
353 | 340 | | } |
---|
354 | 341 | | else throw("Strict value is not equal to itself.") |
---|
355 | 342 | | } |
---|
356 | 343 | | |
---|
357 | 344 | | |
---|
358 | 345 | | |
---|
359 | | - | @Callable(Z) |
---|
360 | | - | func addLabel (q,ai) = { |
---|
361 | | - | let at = ab(Z) |
---|
362 | | - | if ((at == at)) |
---|
363 | | - | then ah(q, ai, true) |
---|
| 346 | + | @Callable(aa) |
---|
| 347 | + | func addLabel (o,aj) = { |
---|
| 348 | + | let au = ad(aa) |
---|
| 349 | + | if ((au == au)) |
---|
| 350 | + | then ai(o, aj, true) |
---|
364 | 351 | | else throw("Strict value is not equal to itself.") |
---|
365 | 352 | | } |
---|
366 | 353 | | |
---|
367 | 354 | | |
---|
368 | 355 | | |
---|
369 | | - | @Callable(Z) |
---|
370 | | - | func deleteLabel (q,ai) = { |
---|
371 | | - | let at = ab(Z) |
---|
372 | | - | if ((at == at)) |
---|
373 | | - | then ao(q, ai, true) |
---|
| 356 | + | @Callable(aa) |
---|
| 357 | + | func deleteLabel (o,aj) = { |
---|
| 358 | + | let au = ad(aa) |
---|
| 359 | + | if ((au == au)) |
---|
| 360 | + | then ap(o, aj, true) |
---|
374 | 361 | | else throw("Strict value is not equal to itself.") |
---|
375 | 362 | | } |
---|
376 | 363 | | |
---|
377 | 364 | | |
---|
378 | 365 | | |
---|
379 | | - | @Callable(Z) |
---|
380 | | - | func updateTicker (q,w) = { |
---|
381 | | - | let at = ab(Z) |
---|
382 | | - | if ((at == at)) |
---|
| 366 | + | @Callable(aa) |
---|
| 367 | + | func updateTicker (o,u) = { |
---|
| 368 | + | let au = ad(aa) |
---|
| 369 | + | if ((au == au)) |
---|
383 | 370 | | then { |
---|
384 | | - | let aB = if (ae(q)) |
---|
| 371 | + | let aC = if (af(o)) |
---|
385 | 372 | | then true |
---|
386 | 373 | | else i() |
---|
387 | | - | if ((aB == aB)) |
---|
| 374 | + | if ((aC == aC)) |
---|
388 | 375 | | then { |
---|
389 | | - | let aC = if ((w != "")) |
---|
| 376 | + | let aD = if ((u != "")) |
---|
390 | 377 | | then true |
---|
391 | 378 | | else j() |
---|
392 | | - | if ((aC == aC)) |
---|
| 379 | + | if ((aD == aD)) |
---|
393 | 380 | | then { |
---|
394 | | - | let aD = ({ |
---|
395 | | - | let M = getString(v(w)) |
---|
396 | | - | if ($isInstanceOf(M, "String")) |
---|
397 | | - | then { |
---|
398 | | - | let aE = M |
---|
399 | | - | [DeleteEntry(x(aE))] |
---|
400 | | - | } |
---|
401 | | - | else if ($isInstanceOf(M, "Unit")) |
---|
402 | | - | then nil |
---|
403 | | - | else throw("Match error") |
---|
404 | | - | } ++ { |
---|
405 | | - | let M = getString(x(q)) |
---|
| 381 | + | let aE = ({ |
---|
| 382 | + | let M = getString(t(u)) |
---|
406 | 383 | | if ($isInstanceOf(M, "String")) |
---|
407 | 384 | | then { |
---|
408 | 385 | | let aF = M |
---|
409 | 386 | | [DeleteEntry(v(aF))] |
---|
410 | 387 | | } |
---|
411 | 388 | | else if ($isInstanceOf(M, "Unit")) |
---|
412 | 389 | | then nil |
---|
413 | 390 | | else throw("Match error") |
---|
| 391 | + | } ++ { |
---|
| 392 | + | let M = getString(v(o)) |
---|
| 393 | + | if ($isInstanceOf(M, "String")) |
---|
| 394 | + | then { |
---|
| 395 | + | let aG = M |
---|
| 396 | + | [DeleteEntry(t(aG))] |
---|
| 397 | + | } |
---|
| 398 | + | else if ($isInstanceOf(M, "Unit")) |
---|
| 399 | + | then nil |
---|
| 400 | + | else throw("Match error") |
---|
414 | 401 | | }) |
---|
415 | | - | let aG = [StringEntry(x(q), w), StringEntry(v(w), q)] |
---|
416 | | - | (aD ++ aG) |
---|
| 402 | + | let aH = [StringEntry(v(o), u), StringEntry(t(u), o)] |
---|
| 403 | + | (aE ++ aH) |
---|
417 | 404 | | } |
---|
418 | 405 | | else throw("Strict value is not equal to itself.") |
---|
419 | 406 | | } |
---|
420 | 407 | | else throw("Strict value is not equal to itself.") |
---|
421 | 408 | | } |
---|
422 | 409 | | else throw("Strict value is not equal to itself.") |
---|
423 | 410 | | } |
---|
424 | 411 | | |
---|
425 | 412 | | |
---|
426 | 413 | | |
---|
427 | | - | @Callable(Z) |
---|
428 | | - | func deleteTicker (q) = { |
---|
429 | | - | let at = ab(Z) |
---|
430 | | - | if ((at == at)) |
---|
| 414 | + | @Callable(aa) |
---|
| 415 | + | func deleteTicker (o) = { |
---|
| 416 | + | let au = ad(aa) |
---|
| 417 | + | if ((au == au)) |
---|
431 | 418 | | then { |
---|
432 | | - | let w = valueOrErrorMessage(getString(x(q)), "Invalid asset") |
---|
433 | | - | [DeleteEntry(x(q)), DeleteEntry(v(w))] |
---|
| 419 | + | let u = valueOrErrorMessage(getString(v(o)), "Invalid asset") |
---|
| 420 | + | [DeleteEntry(v(o)), DeleteEntry(t(u))] |
---|
434 | 421 | | } |
---|
435 | 422 | | else throw("Strict value is not equal to itself.") |
---|
436 | 423 | | } |
---|
437 | 424 | | |
---|
438 | 425 | | |
---|
439 | 426 | | |
---|
440 | | - | @Callable(Z) |
---|
441 | | - | func createOrUpdate (q,aH,ag) = { |
---|
442 | | - | let at = ab(Z) |
---|
443 | | - | if ((at == at)) |
---|
| 427 | + | @Callable(aa) |
---|
| 428 | + | func createOrUpdate (o,aI,ah) = { |
---|
| 429 | + | let au = ad(aa) |
---|
| 430 | + | if ((au == au)) |
---|
444 | 431 | | then { |
---|
445 | | - | let aI = !(ae(q)) |
---|
446 | | - | if ((aI == aI)) |
---|
| 432 | + | let aJ = !(af(o)) |
---|
| 433 | + | if ((aJ == aJ)) |
---|
447 | 434 | | then { |
---|
448 | | - | let aJ = if ((aH == "")) |
---|
| 435 | + | let aK = if ((aI == "")) |
---|
449 | 436 | | then nil |
---|
450 | | - | else [StringEntry(r(q), aH)] |
---|
451 | | - | $Tuple2((([BooleanEntry(p(q), true)] ++ aJ) ++ ap(q, ag)), aI) |
---|
| 437 | + | else [StringEntry(p(o), aI)] |
---|
| 438 | + | $Tuple2((([BooleanEntry(n(o), true)] ++ aK) ++ aq(o, ah)), aJ) |
---|
452 | 439 | | } |
---|
453 | 440 | | else throw("Strict value is not equal to itself.") |
---|
454 | 441 | | } |
---|
455 | 442 | | else throw("Strict value is not equal to itself.") |
---|
456 | 443 | | } |
---|
457 | 444 | | |
---|
458 | 445 | | |
---|
459 | 446 | | |
---|
460 | | - | @Callable(Z) |
---|
461 | | - | func setLogo (q,aH) = { |
---|
462 | | - | let aK = [ab(Z), if (ae(q)) |
---|
| 447 | + | @Callable(aa) |
---|
| 448 | + | func setLogo (o,aI) = { |
---|
| 449 | + | let aL = [ad(aa), if (af(o)) |
---|
463 | 450 | | then true |
---|
464 | 451 | | else i()] |
---|
465 | | - | if ((aK == aK)) |
---|
| 452 | + | if ((aL == aL)) |
---|
466 | 453 | | then { |
---|
467 | | - | let aL = if ((aH == "")) |
---|
468 | | - | then DeleteEntry(r(q)) |
---|
469 | | - | else StringEntry(r(q), aH) |
---|
470 | | - | [aL] |
---|
| 454 | + | let aM = if ((aI == "")) |
---|
| 455 | + | then DeleteEntry(p(o)) |
---|
| 456 | + | else StringEntry(p(o), aI) |
---|
| 457 | + | [aM] |
---|
471 | 458 | | } |
---|
472 | 459 | | else throw("Strict value is not equal to itself.") |
---|
473 | 460 | | } |
---|
474 | 461 | | |
---|
475 | 462 | | |
---|
476 | 463 | | |
---|
477 | | - | @Callable(Z) |
---|
478 | | - | func setVerified (q,ag) = { |
---|
479 | | - | let aK = [ab(Z), if (ae(q)) |
---|
| 464 | + | @Callable(aa) |
---|
| 465 | + | func setVerified (o,ah) = { |
---|
| 466 | + | let aL = [ad(aa), if (af(o)) |
---|
480 | 467 | | then true |
---|
481 | 468 | | else i()] |
---|
482 | | - | if ((aK == aK)) |
---|
| 469 | + | if ((aL == aL)) |
---|
483 | 470 | | then { |
---|
484 | | - | let aM = if (!(ag)) |
---|
| 471 | + | let aN = if (!(ah)) |
---|
485 | 472 | | then { |
---|
486 | | - | let ax = valueOrErrorMessage(addressFromString(P(this, o())), "invalid factory contract address") |
---|
487 | | - | invoke(ax, "onVerificationLoss", [q], nil) |
---|
| 473 | + | let ay = valueOrErrorMessage(addressFromString(P(this, m())), "invalid factory contract address") |
---|
| 474 | + | invoke(ay, "onVerificationLoss", [o], nil) |
---|
488 | 475 | | } |
---|
489 | 476 | | else unit |
---|
490 | | - | if ((aM == aM)) |
---|
491 | | - | then $Tuple2(ap(q, ag), unit) |
---|
| 477 | + | if ((aN == aN)) |
---|
| 478 | + | then $Tuple2(aq(o, ah), unit) |
---|
492 | 479 | | else throw("Strict value is not equal to itself.") |
---|
493 | 480 | | } |
---|
494 | 481 | | else throw("Strict value is not equal to itself.") |
---|
495 | 482 | | } |
---|
496 | 483 | | |
---|
497 | 484 | | |
---|
498 | 485 | | |
---|
499 | | - | @Callable(Z) |
---|
500 | | - | func onEliminate (q) = { |
---|
501 | | - | let aN = valueOrElse(getInteger(u(q)), 0) |
---|
502 | | - | let aO = if ((aN > 0)) |
---|
| 486 | + | @Callable(aa) |
---|
| 487 | + | func onEliminate (o) = { |
---|
| 488 | + | let aO = valueOrElse(getInteger(s(o)), 0) |
---|
| 489 | + | let aP = if ((aO > 0)) |
---|
503 | 490 | | then nil |
---|
504 | | - | else [DeleteEntry(r(q))] |
---|
505 | | - | $Tuple2(aO, unit) |
---|
| 491 | + | else [DeleteEntry(p(o))] |
---|
| 492 | + | $Tuple2(aP, unit) |
---|
506 | 493 | | } |
---|
507 | 494 | | |
---|
508 | 495 | | |
---|
509 | 496 | | |
---|
510 | | - | @Callable(Z) |
---|
511 | | - | func setAdmins (aP) = { |
---|
512 | | - | let at = Y(Z) |
---|
513 | | - | if ((at == at)) |
---|
514 | | - | then [StringEntry(m(), makeString(aP, a))] |
---|
| 497 | + | @Callable(aa) |
---|
| 498 | + | func setAdmins (aQ) = { |
---|
| 499 | + | let au = ac(aa) |
---|
| 500 | + | if ((au == au)) |
---|
| 501 | + | then [StringEntry(k(), makeString(aQ, a))] |
---|
515 | 502 | | else throw("Strict value is not equal to itself.") |
---|
516 | 503 | | } |
---|
517 | 504 | | |
---|
518 | 505 | | |
---|
519 | 506 | | |
---|
520 | | - | @Callable(Z) |
---|
521 | | - | func setManager (aQ) = { |
---|
522 | | - | let at = Y(Z) |
---|
523 | | - | if ((at == at)) |
---|
524 | | - | then { |
---|
525 | | - | let aR = fromBase58String(aQ) |
---|
526 | | - | if ((aR == aR)) |
---|
527 | | - | then [StringEntry(l(), aQ)] |
---|
528 | | - | else throw("Strict value is not equal to itself.") |
---|
529 | | - | } |
---|
530 | | - | else throw("Strict value is not equal to itself.") |
---|
531 | | - | } |
---|
| 507 | + | @Callable(aa) |
---|
| 508 | + | func isVerifiedREADONLY (o) = $Tuple2(nil, S(o)) |
---|
532 | 509 | | |
---|
533 | 510 | | |
---|
534 | | - | |
---|
535 | | - | @Callable(Z) |
---|
536 | | - | func confirmManager () = { |
---|
537 | | - | let aS = X() |
---|
538 | | - | let aT = if (isDefined(aS)) |
---|
539 | | - | then true |
---|
540 | | - | else throw("No pending manager") |
---|
541 | | - | if ((aT == aT)) |
---|
542 | | - | then { |
---|
543 | | - | let aU = if ((Z.callerPublicKey == value(aS))) |
---|
544 | | - | then true |
---|
545 | | - | else throw("You are not pending manager") |
---|
546 | | - | if ((aU == aU)) |
---|
547 | | - | then [StringEntry(k(), toBase58String(value(aS))), DeleteEntry(l())] |
---|
548 | | - | else throw("Strict value is not equal to itself.") |
---|
549 | | - | } |
---|
550 | | - | else throw("Strict value is not equal to itself.") |
---|
551 | | - | } |
---|
552 | | - | |
---|
553 | | - | |
---|
554 | | - | |
---|
555 | | - | @Callable(Z) |
---|
556 | | - | func isVerifiedREADONLY (q) = $Tuple2(nil, S(q)) |
---|
557 | | - | |
---|
558 | | - | |
---|
559 | | - | @Verifier(aV) |
---|
560 | | - | func aW () = { |
---|
561 | | - | let aX = { |
---|
562 | | - | let M = W() |
---|
| 511 | + | @Verifier(aR) |
---|
| 512 | + | func aS () = { |
---|
| 513 | + | let aT = { |
---|
| 514 | + | let M = X() |
---|
563 | 515 | | if ($isInstanceOf(M, "ByteVector")) |
---|
564 | 516 | | then { |
---|
565 | | - | let aa = M |
---|
566 | | - | aa |
---|
| 517 | + | let ab = M |
---|
| 518 | + | ab |
---|
567 | 519 | | } |
---|
568 | 520 | | else if ($isInstanceOf(M, "Unit")) |
---|
569 | | - | then aV.senderPublicKey |
---|
| 521 | + | then aR.senderPublicKey |
---|
570 | 522 | | else throw("Match error") |
---|
571 | 523 | | } |
---|
572 | | - | sigVerify(aV.bodyBytes, aV.proofs[0], aX) |
---|
| 524 | + | sigVerify(aR.bodyBytes, aR.proofs[0], aT) |
---|
573 | 525 | | } |
---|
574 | 526 | | |
---|