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