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