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