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