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