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