tx · 6ufmP5RMMxW3rVNkZsrigp22Mnx2QtAE6Mzr6XPNJWkU 3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1: -0.01700000 Waves 2024.01.15 10:23 [2932331] smart account 3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1 > SELF 0.00000000 Waves
{ "type": 13, "id": "6ufmP5RMMxW3rVNkZsrigp22Mnx2QtAE6Mzr6XPNJWkU", "fee": 1700000, "feeAssetId": null, "timestamp": 1705303375687, "version": 2, "chainId": 84, "sender": "3MwyBKGZcdChEK9Z55HwLn3A2EgwEJJpqC1", "senderPublicKey": "7c3qLtcJ7EaPS2JDjXv8MBbd4kpyc6R27wcn5GgvZhur", "proofs": [ "4Zj848RHooHheDK3Erp5cyRYUZqXc4soEMALuxMquTPK5ds1YEQfg72mmaqp1N2HMiWM7de14AAAFKqWAzqtdMKQ" ], "script": "base64:BgIdCAISBgoECAEBARIDCgEIEgMKAQgSABIDCgEIEgAhAAxjb250cmFjdEZpbGUCEHZlc3RpbmdfbmVvLnJpZGUAA1NFUAICX18ACElEU19MSVNUCQDMCAIAAAkAzAgCAAEJAMwIAgACCQDMCAIAAwkAzAgCAAQJAMwIAgAFCQDMCAIABgkAzAgCAAcJAMwIAgAICQDMCAIACQkAzAgCAAoJAMwIAgALCQDMCAIADAkAzAgCAA0JAMwIAgAOCQDMCAIADwkAzAgCABAJAMwIAgARCQDMCAIAEgkAzAgCABMJAMwIAgAUCQDMCAIAFQkAzAgCABYJAMwIAgAXCQDMCAIAGAkAzAgCABkJAMwIAgAaCQDMCAIAGwkAzAgCABwJAMwIAgAdBQNuaWwAEU1BWF9WRVNUSU5HX0NPVU5UCQCQAwEFCElEU19MSVNUAQh0aHJvd0VycgEDbXNnCQACAQkArAICCQCsAgIFDGNvbnRyYWN0RmlsZQICOiAFA21zZwETa2V5TWFuYWdlclB1YmxpY0tleQACFCVzX19tYW5hZ2VyUHVibGljS2V5ARZrZXlNYW5hZ2VyVmF1bHRBZGRy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luZm9SRUFET05MWQELdXNlckFkZHJlc3MEDSR0MDExMTUwMTEyMDUJARJnZXRDbGFpbUFsbEFjdGlvbnMBBQt1c2VyQWRkcmVzcwQCX2EIBQ0kdDAxMTE1MDExMjA1Al8xBAt0b3RhbEFtb3VudAgFDSR0MDExMTUwMTEyMDUCXzIEEWFjY3VtdWxhdGVkQW1vdW50CQELdmFsdWVPckVsc2UCCQCaCAIFBHRoaXMJARJrZXlVc2VyQWNjdW11bGF0ZWQBBQt1c2VyQWRkcmVzcwAACQCUCgIFA25pbAkAlQoDBQt0b3RhbEFtb3VudAURYWNjdW11bGF0ZWRBbW91bnQJARJnZXRWZXN0aW5nVXNlckluZm8BBQt1c2VyQWRkcmVzcwFpAQNmb28ABAJjaAkAAgECA2VycgMJAAACBQJjaAUCY2gFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAED3RhcmdldFB1YmxpY0tleQQHJG1hdGNoMAkBFm1hbmFnZXJQdWJsaWNLZXlPclVuaXQAAwkAAQIFByRtYXRjaDACCkJ5dGVWZWN0b3IEAnBrBQckbWF0Y2gwBQJwawMJAAECBQckbWF0Y2gwAgRVbml0CAUCdHgPc2VuZGVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFD3RhcmdldFB1YmxpY0tleRB8DAc=", "height": 2932331, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3ugbYTTe5RSAEHKaUcink3srFrtFXse1o2mpQfX4Mp6R Next: FZs5VPGcTnyv84LpHrPYQaKe9kY136SgpvE4rAZqP7xZ Diff:
Old | New | Differences | |
---|---|---|---|
440 | 440 | } | |
441 | 441 | ||
442 | 442 | ||
443 | - | @Verifier(bc) | |
444 | - | func bd () = { | |
445 | - | let be = { | |
443 | + | ||
444 | + | @Callable(aR) | |
445 | + | func foo () = { | |
446 | + | let bc = throw("err") | |
447 | + | if ((bc == bc)) | |
448 | + | then nil | |
449 | + | else throw("Strict value is not equal to itself.") | |
450 | + | } | |
451 | + | ||
452 | + | ||
453 | + | @Verifier(bd) | |
454 | + | func be () = { | |
455 | + | let bf = { | |
446 | 456 | let j = l() | |
447 | 457 | if ($isInstanceOf(j, "ByteVector")) | |
448 | 458 | then { | |
449 | - | let | |
450 | - | | |
459 | + | let bg = j | |
460 | + | bg | |
451 | 461 | } | |
452 | 462 | else if ($isInstanceOf(j, "Unit")) | |
453 | - | then | |
463 | + | then bd.senderPublicKey | |
454 | 464 | else throw("Match error") | |
455 | 465 | } | |
456 | - | sigVerify( | |
466 | + | sigVerify(bd.bodyBytes, bd.proofs[0], bf) | |
457 | 467 | } | |
458 | 468 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "vesting_neo.ride" | |
5 | 5 | ||
6 | 6 | let b = "__" | |
7 | 7 | ||
8 | 8 | let c = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29] | |
9 | 9 | ||
10 | 10 | let d = size(c) | |
11 | 11 | ||
12 | 12 | func e (f) = throw(((a + ": ") + f)) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func g () = "%s__managerPublicKey" | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func h () = "%s__managerVaultAddress" | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func i () = { | |
22 | 22 | let j = getString(h()) | |
23 | 23 | if ($isInstanceOf(j, "String")) | |
24 | 24 | then { | |
25 | 25 | let k = j | |
26 | 26 | addressFromStringValue(k) | |
27 | 27 | } | |
28 | 28 | else this | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | func l () = { | |
33 | 33 | let m = i() | |
34 | 34 | let j = getString(m, g()) | |
35 | 35 | if ($isInstanceOf(j, "String")) | |
36 | 36 | then { | |
37 | 37 | let k = j | |
38 | 38 | fromBase58String(k) | |
39 | 39 | } | |
40 | 40 | else if ($isInstanceOf(j, "Unit")) | |
41 | 41 | then unit | |
42 | 42 | else throw("Match error") | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | let n = makeString(["%s", "assetId"], b) | |
47 | 47 | ||
48 | 48 | let o = valueOrElse(getString(this, n), "WAVES") | |
49 | 49 | ||
50 | 50 | let p = if ((o == "WAVES")) | |
51 | 51 | then unit | |
52 | 52 | else fromBase58String(o) | |
53 | 53 | ||
54 | 54 | let q = makeString(["%s", "adminAddressList"], b) | |
55 | 55 | ||
56 | 56 | let r = makeString(["%s", "banList"], b) | |
57 | 57 | ||
58 | 58 | let s = { | |
59 | 59 | let j = getString(this, q) | |
60 | 60 | if ($isInstanceOf(j, "String")) | |
61 | 61 | then { | |
62 | 62 | let k = j | |
63 | 63 | split(k, b) | |
64 | 64 | } | |
65 | 65 | else nil | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | let t = { | |
69 | 69 | let u = valueOrElse(getString(this, r), "") | |
70 | 70 | if ((u == "")) | |
71 | 71 | then nil | |
72 | 72 | else split_51C(u, b) | |
73 | 73 | } | |
74 | 74 | ||
75 | 75 | func v (w) = { | |
76 | 76 | let j = addressFromString(w) | |
77 | 77 | if ($isInstanceOf(j, "Address")) | |
78 | 78 | then { | |
79 | 79 | let x = j | |
80 | 80 | true | |
81 | 81 | } | |
82 | 82 | else false | |
83 | 83 | } | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func y (z,A) = { | |
87 | 87 | let B = [if (v(z)) | |
88 | 88 | then true | |
89 | 89 | else e(makeString(["address is not valid:", z], " ")), if (if ((A >= 0)) | |
90 | 90 | then (d > A) | |
91 | 91 | else false) | |
92 | 92 | then true | |
93 | 93 | else e(makeString(["id should be less than", toString(d), "got:", toString(A)], " "))] | |
94 | 94 | if ((B == B)) | |
95 | 95 | then makeString(["%s%s%d", "vesting", z, toString(A)], b) | |
96 | 96 | else throw("Strict value is not equal to itself.") | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func C (z) = { | |
101 | 101 | let B = [if (v(z)) | |
102 | 102 | then true | |
103 | 103 | else e(makeString(["address is not valid:", z], " "))] | |
104 | 104 | if ((B == B)) | |
105 | 105 | then makeString(["%s%s", "accumulated", z], b) | |
106 | 106 | else throw("Strict value is not equal to itself.") | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func D (E,F,G) = { | |
111 | 111 | let B = [if ((E >= 0)) | |
112 | 112 | then true | |
113 | 113 | else e("vesting amount cannot be negative"), if ((F >= 0)) | |
114 | 114 | then true | |
115 | 115 | else e("start block cannot be negative"), if ((G >= 0)) | |
116 | 116 | then true | |
117 | 117 | else e("lock length cannot be negative")] | |
118 | 118 | if ((B == B)) | |
119 | 119 | then makeString(["%d%d%d", toString(E), toString(F), toString(G)], b) | |
120 | 120 | else throw("Strict value is not equal to itself.") | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func H (z,A) = { | |
125 | 125 | let j = getString(this, y(z, A)) | |
126 | 126 | if ($isInstanceOf(j, "String")) | |
127 | 127 | then { | |
128 | 128 | let I = j | |
129 | 129 | let J = split(I, b) | |
130 | 130 | let E = parseIntValue(J[1]) | |
131 | 131 | let F = parseIntValue(J[2]) | |
132 | 132 | let G = parseIntValue(J[3]) | |
133 | 133 | $Tuple3(E, F, G) | |
134 | 134 | } | |
135 | 135 | else $Tuple3(0, 0, 0) | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func K (L,z,M) = makeString(["%s%s%s%s", "history", z, L, M], b) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func N (O,F,G) = { | |
143 | 143 | let P = (height - F) | |
144 | 144 | let Q = if (if ((G != 0)) | |
145 | 145 | then (P > 0) | |
146 | 146 | else false) | |
147 | 147 | then min([fraction(O, P, G), O]) | |
148 | 148 | else 0 | |
149 | 149 | $Tuple2(Q, (O - Q)) | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func R (z,A) = { | |
154 | 154 | let S = H(z, A) | |
155 | 155 | let E = S._1 | |
156 | 156 | let F = S._2 | |
157 | 157 | let G = S._3 | |
158 | 158 | let T = N(E, F, G) | |
159 | 159 | let Q = T._1 | |
160 | 160 | let U = T._2 | |
161 | 161 | $Tuple2(Q, U) | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func V (z,A) = { | |
166 | 166 | let W = H(z, A) | |
167 | 167 | let E = W._1 | |
168 | 168 | let F = W._2 | |
169 | 169 | let G = W._3 | |
170 | 170 | let X = R(z, A) | |
171 | 171 | let Q = X._1 | |
172 | 172 | let U = X._2 | |
173 | 173 | let Y = max([((F + G) - height), 0]) | |
174 | 174 | let Z = if ((Q != 0)) | |
175 | 175 | then if ((Y != 0)) | |
176 | 176 | then [StringEntry(y(z, A), D(U, height, Y))] | |
177 | 177 | else [DeleteEntry(y(z, A))] | |
178 | 178 | else nil | |
179 | 179 | $Tuple2(Z, Q) | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func aa (z,A) = { | |
184 | 184 | let ab = V(z, A) | |
185 | 185 | let Z = ab._1 | |
186 | 186 | let Q = ab._2 | |
187 | 187 | let ac = if ((Q != 0)) | |
188 | 188 | then [ScriptTransfer(addressFromStringValue(z), Q, p)] | |
189 | 189 | else nil | |
190 | 190 | $Tuple2((Z ++ ac), Q) | |
191 | 191 | } | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func ad (z) = { | |
195 | 195 | func ae (af,A) = { | |
196 | 196 | let ag = af | |
197 | 197 | let ah = ag._1 | |
198 | 198 | let ai = ag._2 | |
199 | 199 | let aj = aa(z, A) | |
200 | 200 | let ak = aj._1 | |
201 | 201 | let al = aj._2 | |
202 | 202 | $Tuple2((ah ++ ak), (ai + al)) | |
203 | 203 | } | |
204 | 204 | ||
205 | 205 | let am = c | |
206 | 206 | let an = size(am) | |
207 | 207 | let ao = $Tuple2(nil, 0) | |
208 | 208 | func ap (aq,ar) = if ((ar >= an)) | |
209 | 209 | then aq | |
210 | 210 | else ae(aq, am[ar]) | |
211 | 211 | ||
212 | 212 | func as (aq,ar) = if ((ar >= an)) | |
213 | 213 | then aq | |
214 | 214 | else throw("List size exceeds 30") | |
215 | 215 | ||
216 | 216 | as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30) | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func at (z) = { | |
221 | 221 | func ae (af,A) = { | |
222 | 222 | let au = af | |
223 | 223 | let av = au._1 | |
224 | 224 | let ai = au._2 | |
225 | 225 | let aw = V(z, A) | |
226 | 226 | let Z = aw._1 | |
227 | 227 | let Q = aw._2 | |
228 | 228 | $Tuple2((av ++ Z), (ai + Q)) | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | let ax = { | |
232 | 232 | let am = c | |
233 | 233 | let an = size(am) | |
234 | 234 | let ao = $Tuple2(nil, 0) | |
235 | 235 | func ap (aq,ar) = if ((ar >= an)) | |
236 | 236 | then aq | |
237 | 237 | else ae(aq, am[ar]) | |
238 | 238 | ||
239 | 239 | func as (aq,ar) = if ((ar >= an)) | |
240 | 240 | then aq | |
241 | 241 | else throw("List size exceeds 30") | |
242 | 242 | ||
243 | 243 | as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30) | |
244 | 244 | } | |
245 | 245 | let av = ax._1 | |
246 | 246 | let ay = ax._2 | |
247 | 247 | let az = valueOrElse(getInteger(this, C(z)), 0) | |
248 | 248 | let aA = if ((ay != 0)) | |
249 | 249 | then [IntegerEntry(C(z), (az + ay))] | |
250 | 250 | else nil | |
251 | 251 | $Tuple2((av ++ aA), ay) | |
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func aB (z) = { | |
256 | 256 | let az = valueOrElse(getInteger(this, C(z)), 0) | |
257 | 257 | if ((az != 0)) | |
258 | 258 | then $Tuple2([ScriptTransfer(addressFromStringValue(z), az, p), DeleteEntry(C(z))], az) | |
259 | 259 | else $Tuple2(nil, 0) | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func aC (z) = { | |
264 | 264 | let aD = if (!(containsElement(t, z))) | |
265 | 265 | then ad(z) | |
266 | 266 | else $Tuple2(nil, 0) | |
267 | 267 | let aE = aD._1 | |
268 | 268 | let Q = aD._2 | |
269 | 269 | let aF = aB(z) | |
270 | 270 | let aG = aF._1 | |
271 | 271 | let aH = aF._2 | |
272 | 272 | let aI = (Q + aH) | |
273 | 273 | $Tuple2((aE ++ aG), aI) | |
274 | 274 | } | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func aJ (z) = { | |
278 | 278 | func aK (af,A) = { | |
279 | 279 | let aL = H(z, A) | |
280 | 280 | let E = aL._1 | |
281 | 281 | let F = aL._2 | |
282 | 282 | let G = aL._3 | |
283 | 283 | let aM = R(z, A) | |
284 | 284 | let Q = aM._1 | |
285 | 285 | let U = aM._2 | |
286 | 286 | if (if ((E == 0)) | |
287 | 287 | then true | |
288 | 288 | else containsElement(t, z)) | |
289 | 289 | then af | |
290 | 290 | else (af :+ [E, (F + G), Q, U]) | |
291 | 291 | } | |
292 | 292 | ||
293 | 293 | let am = c | |
294 | 294 | let an = size(am) | |
295 | 295 | let ao = nil | |
296 | 296 | func ap (aq,ar) = if ((ar >= an)) | |
297 | 297 | then aq | |
298 | 298 | else aK(aq, am[ar]) | |
299 | 299 | ||
300 | 300 | func as (aq,ar) = if ((ar >= an)) | |
301 | 301 | then aq | |
302 | 302 | else throw("List size exceeds 30") | |
303 | 303 | ||
304 | 304 | as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30) | |
305 | 305 | } | |
306 | 306 | ||
307 | 307 | ||
308 | 308 | func aN (z) = { | |
309 | 309 | func aK (aO,A) = { | |
310 | 310 | let aP = H(z, A) | |
311 | 311 | let E = aP._1 | |
312 | 312 | let F = aP._2 | |
313 | 313 | let G = aP._3 | |
314 | 314 | if ((E > 0)) | |
315 | 315 | then aO | |
316 | 316 | else if ((aO == -1)) | |
317 | 317 | then A | |
318 | 318 | else min([aO, A]) | |
319 | 319 | } | |
320 | 320 | ||
321 | 321 | let aO = { | |
322 | 322 | let am = c | |
323 | 323 | let an = size(am) | |
324 | 324 | let ao = -1 | |
325 | 325 | func ap (aq,ar) = if ((ar >= an)) | |
326 | 326 | then aq | |
327 | 327 | else aK(aq, am[ar]) | |
328 | 328 | ||
329 | 329 | func as (aq,ar) = if ((ar >= an)) | |
330 | 330 | then aq | |
331 | 331 | else throw("List size exceeds 30") | |
332 | 332 | ||
333 | 333 | as(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ap(ao, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30) | |
334 | 334 | } | |
335 | 335 | if ((aO == -1)) | |
336 | 336 | then e(makeString(["user exceeded max active vesting count: ", z], " ")) | |
337 | 337 | else aO | |
338 | 338 | } | |
339 | 339 | ||
340 | 340 | ||
341 | 341 | func aQ (z,A,E,F,G) = [StringEntry(y(z, A), D(E, F, G))] | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | @Callable(aR) | |
345 | 345 | func vestingForUser (z,E,F,G) = { | |
346 | 346 | let aS = [if ((size(aR.payments) == 1)) | |
347 | 347 | then true | |
348 | 348 | else e("should be with exactly 1 payment"), if ((aR.payments[0].assetId == p)) | |
349 | 349 | then true | |
350 | 350 | else e(makeString(["payment assetId should be: ", o], " ")), if ((aR.payments[0].amount == E)) | |
351 | 351 | then true | |
352 | 352 | else e("payment amount should be equal to vestingAmount"), if (if ((s == nil)) | |
353 | 353 | then true | |
354 | 354 | else containsElement(s, toString(aR.caller))) | |
355 | 355 | then true | |
356 | 356 | else e("you must be admin")] | |
357 | 357 | if ((aS == aS)) | |
358 | 358 | then { | |
359 | 359 | let A = aN(z) | |
360 | 360 | let aT = [StringEntry(K("vested", z, toBase58String(aR.transactionId)), makeString([toString(E), toString(F), toString(G)], b))] | |
361 | 361 | (aQ(z, A, E, F, G) ++ aT) | |
362 | 362 | } | |
363 | 363 | else throw("Strict value is not equal to itself.") | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | ||
367 | 367 | ||
368 | 368 | @Callable(aR) | |
369 | 369 | func ban (z) = { | |
370 | 370 | let B = [if (if ((s == nil)) | |
371 | 371 | then true | |
372 | 372 | else containsElement(s, toString(aR.caller))) | |
373 | 373 | then true | |
374 | 374 | else e("you must be admin"), if (!(containsElement(t, z))) | |
375 | 375 | then true | |
376 | 376 | else e(makeString(["user already in a ban list:", z], " "))] | |
377 | 377 | if ((B == B)) | |
378 | 378 | then { | |
379 | 379 | let aU = at(z) | |
380 | 380 | let aV = aU._1 | |
381 | 381 | let aW = aU._2 | |
382 | 382 | let aX = [StringEntry(r, makeString_11C((t :+ z), "__"))] | |
383 | 383 | (aV ++ aX) | |
384 | 384 | } | |
385 | 385 | else throw("Strict value is not equal to itself.") | |
386 | 386 | } | |
387 | 387 | ||
388 | 388 | ||
389 | 389 | ||
390 | 390 | @Callable(aR) | |
391 | 391 | func unban (z) = { | |
392 | 392 | let B = [if (if ((s == nil)) | |
393 | 393 | then true | |
394 | 394 | else containsElement(s, toString(aR.caller))) | |
395 | 395 | then true | |
396 | 396 | else e("you must be admin"), if (containsElement(t, z)) | |
397 | 397 | then true | |
398 | 398 | else e(makeString(["user not in a ban list:", z], " "))] | |
399 | 399 | if ((B == B)) | |
400 | 400 | then { | |
401 | 401 | let aY = { | |
402 | 402 | let j = indexOf(t, z) | |
403 | 403 | if ($isInstanceOf(j, "Int")) | |
404 | 404 | then { | |
405 | 405 | let aZ = j | |
406 | 406 | removeByIndex(t, aZ) | |
407 | 407 | } | |
408 | 408 | else e("user address index in ban list is not found") | |
409 | 409 | } | |
410 | 410 | if ((aY == nil)) | |
411 | 411 | then [DeleteEntry(r)] | |
412 | 412 | else [StringEntry(r, makeString_11C(aY, "__"))] | |
413 | 413 | } | |
414 | 414 | else throw("Strict value is not equal to itself.") | |
415 | 415 | } | |
416 | 416 | ||
417 | 417 | ||
418 | 418 | ||
419 | 419 | @Callable(aR) | |
420 | 420 | func claimAll () = { | |
421 | 421 | let z = toString(aR.caller) | |
422 | 422 | let ba = aC(z) | |
423 | 423 | let aE = ba._1 | |
424 | 424 | let aI = ba._2 | |
425 | 425 | let aT = [StringEntry(K("claimed", z, toBase58String(aR.transactionId)), toString(aI))] | |
426 | 426 | if ((aI > 0)) | |
427 | 427 | then (aE ++ aT) | |
428 | 428 | else e("nothing to claim") | |
429 | 429 | } | |
430 | 430 | ||
431 | 431 | ||
432 | 432 | ||
433 | 433 | @Callable(aR) | |
434 | 434 | func userInfoREADONLY (z) = { | |
435 | 435 | let bb = aC(z) | |
436 | 436 | let aW = bb._1 | |
437 | 437 | let aI = bb._2 | |
438 | 438 | let aH = valueOrElse(getInteger(this, C(z)), 0) | |
439 | 439 | $Tuple2(nil, $Tuple3(aI, aH, aJ(z))) | |
440 | 440 | } | |
441 | 441 | ||
442 | 442 | ||
443 | - | @Verifier(bc) | |
444 | - | func bd () = { | |
445 | - | let be = { | |
443 | + | ||
444 | + | @Callable(aR) | |
445 | + | func foo () = { | |
446 | + | let bc = throw("err") | |
447 | + | if ((bc == bc)) | |
448 | + | then nil | |
449 | + | else throw("Strict value is not equal to itself.") | |
450 | + | } | |
451 | + | ||
452 | + | ||
453 | + | @Verifier(bd) | |
454 | + | func be () = { | |
455 | + | let bf = { | |
446 | 456 | let j = l() | |
447 | 457 | if ($isInstanceOf(j, "ByteVector")) | |
448 | 458 | then { | |
449 | - | let | |
450 | - | | |
459 | + | let bg = j | |
460 | + | bg | |
451 | 461 | } | |
452 | 462 | else if ($isInstanceOf(j, "Unit")) | |
453 | - | then | |
463 | + | then bd.senderPublicKey | |
454 | 464 | else throw("Match error") | |
455 | 465 | } | |
456 | - | sigVerify( | |
466 | + | sigVerify(bd.bodyBytes, bd.proofs[0], bf) | |
457 | 467 | } | |
458 | 468 |
github/deemru/w8io/169f3d6 55.90 ms ◑