tx · 2zhLDdgkUJedH3EUp11sSv7VXQDMvWErLDjTFbpkpkjt 3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T: -0.00800000 Waves 2024.11.18 11:58 [3376685] smart account 3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T > SELF 0.00000000 Waves
{ "type": 13, "id": "2zhLDdgkUJedH3EUp11sSv7VXQDMvWErLDjTFbpkpkjt", "fee": 800000, "feeAssetId": null, "timestamp": 1731920310972, "version": 2, "chainId": 84, "sender": "3MsgzbtRg8NEkbTcHBywtwTdCe9BRxMQo5T", "senderPublicKey": "iTiQR3Kvxn7i8PFgEbZn36n5iFLxFwkTA6M3wi846Vx", "proofs": [ "3oUUtkjb3RcGFccutqu6Fg8x5KD2RME5kWKFrPnLEm9nbYcTLUPSC95f2SkKkHE3ZqYk1LbswVGqz78N82t3LE8" ], "script": "base64:BwJbCAISAwoBCBIECgIICBIECgIIARIECgIIBBIECgIIAhIDCgEIEgUKAwIBBBIECgICARIFCgMCAQISBQoDAhIREgQKAgIBEgQKAggYEgQKAggYEgMKAQESAwoBCCMAA1NFUAICX18AC3dhdmVzU3RyaW5nAgVXQVZFUwAQY29udHJhY3RGaWxlbmFtZQIUbWVtZV9pbV9mYWN0b3J5LnJpZGUAC2tQcmljZUFzc2V0AgxwcmljZV9fYXNzZXQACWtTaHV0ZG93bgIOc2h1dGRvd25fX2ZsYWcACHNodXRkb3duCQELdmFsdWVPckVsc2UCCQCgCAEFCWtTaHV0ZG93bgcBB3dyYXBFcnIBAXMJAKwCAgkArAICBRBjb250cmFjdEZpbGVuYW1lAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMAD0FETUlOX0xJU1RfU0laRQAKAAZRVU9SVU0AAwARVFhJRF9CWVRFU19MRU5HVEgAIAEYa2V5QWxsb3dlZFR4SWRWb3RlUHJlZml4AQR0eElkCQC5CQIJAMwIAgIGJXMlcyVzCQDMCAICCWFsbG93VHhJZAkAzAg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GVGb3JUeElkAQR0eElkBBNjYWxsZXJBZGRyZXNzU3RyaW5nCQDYBAEICAUBaQZjYWxsZXIFYnl0ZXMECWtleVByZWZpeAkBGGtleUFsbG93ZWRUeElkVm90ZVByZWZpeAEFBHR4SWQEBnJlc3VsdAkAzAgCCQELU3RyaW5nRW50cnkCCQEOa2V5QWxsb3dlZFR4SWQABQR0eElkBQNuaWwEEWFsbG93ZWRUeElkT3B0aW9uCQCdCAIFBHRoaXMJAQ5rZXlBbGxvd2VkVHhJZAAEA2VycgkAzAgCAwkAAAIJAMgBAQkA2QQBBQR0eElkBRFUWElEX0JZVEVTX0xFTkdUSAYJAQh0aHJvd0VycgEJAKwCAgUEdHhJZAISIGlzIG5vdCB2YWxpZCB0eElkCQDMCAIDAwkAAAIFEWFsbG93ZWRUeElkT3B0aW9uBQR1bml0BgkBAiE9AgkBBXZhbHVlAQURYWxsb3dlZFR4SWRPcHRpb24FBHR4SWQGCQEIdGhyb3dFcnIBCQCsAgIFBHR4SWQCEyBpcyBhbHJlYWR5IGFsbG93ZWQFA25pbAMJAAACBQNlcnIFA2VycgkBDHZvdGVJTlRFUk5BTAQFE2NhbGxlckFkZHJlc3NTdHJpbmcFCWtleVByZWZpeAUGUVVPUlVNBQZyZXN1bHQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4A5Nmu7g==", "height": 3376685, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FH2e5hPUf8o7CfbdQuY44NEafiWXezNwYUQfsnmsaUa4 Next: 4QTuVspwQvaP834z8rbWSSMf1pkmhnzSauW6EFpiJKW2 Diff:
Old | New | Differences | |
---|---|---|---|
19 | 19 | func i (h) = throw(g(h)) | |
20 | 20 | ||
21 | 21 | ||
22 | - | func j (k) = isDefined(addressFromString(k)) | |
22 | + | let j = 10 | |
23 | + | ||
24 | + | let k = 3 | |
25 | + | ||
26 | + | let l = 32 | |
27 | + | ||
28 | + | func m (n) = makeString(["%s%s%s", "allowTxId", n], a) | |
23 | 29 | ||
24 | 30 | ||
25 | - | ||
31 | + | func o (p,q) = makeString([p, q], a) | |
26 | 32 | ||
27 | - | let m = { | |
28 | - | let n = getString(this, l) | |
29 | - | if ($isInstanceOf(n, "String")) | |
33 | + | ||
34 | + | func r () = makeString(["%s", "adminAddressList"], a) | |
35 | + | ||
36 | + | ||
37 | + | func s () = makeString(["%s", "txId"], a) | |
38 | + | ||
39 | + | ||
40 | + | func t (p,u) = { | |
41 | + | let v = o(p, u) | |
42 | + | valueOrElse(getInteger(v), 0) | |
43 | + | } | |
44 | + | ||
45 | + | ||
46 | + | func w () = { | |
47 | + | let x = getString(this, r()) | |
48 | + | if ($isInstanceOf(x, "String")) | |
30 | 49 | then { | |
31 | - | let h = n | |
50 | + | let h = x | |
51 | + | split(h, a) | |
52 | + | } | |
53 | + | else nil | |
54 | + | } | |
55 | + | ||
56 | + | ||
57 | + | let y = w() | |
58 | + | ||
59 | + | func z (A) = containsElement(y, A) | |
60 | + | ||
61 | + | ||
62 | + | func B (C,q) = { | |
63 | + | let D = C | |
64 | + | let E = D._1 | |
65 | + | let p = D._2 | |
66 | + | $Tuple2((E :+ o(p, q)), p) | |
67 | + | } | |
68 | + | ||
69 | + | ||
70 | + | func F (G) = { | |
71 | + | let H = { | |
72 | + | let I = y | |
73 | + | let J = size(I) | |
74 | + | let K = $Tuple2(nil, G) | |
75 | + | func L (M,N) = if ((N >= J)) | |
76 | + | then M | |
77 | + | else B(M, I[N]) | |
78 | + | ||
79 | + | func O (M,N) = if ((N >= J)) | |
80 | + | then M | |
81 | + | else throw("List size exceeds 10") | |
82 | + | ||
83 | + | O(L(L(L(L(L(L(L(L(L(L(K, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
84 | + | } | |
85 | + | let E = H._1 | |
86 | + | let p = H._2 | |
87 | + | E | |
88 | + | } | |
89 | + | ||
90 | + | ||
91 | + | func P (E,v) = (E + valueOrElse(getInteger(v), 0)) | |
92 | + | ||
93 | + | ||
94 | + | func Q (p) = { | |
95 | + | let R = F(p) | |
96 | + | let I = R | |
97 | + | let J = size(I) | |
98 | + | let K = 0 | |
99 | + | func L (M,N) = if ((N >= J)) | |
100 | + | then M | |
101 | + | else P(M, I[N]) | |
102 | + | ||
103 | + | func O (M,N) = if ((N >= J)) | |
104 | + | then M | |
105 | + | else throw("List size exceeds 10") | |
106 | + | ||
107 | + | O(L(L(L(L(L(L(L(L(L(L(K, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
108 | + | } | |
109 | + | ||
110 | + | ||
111 | + | func S (E,T) = (E :+ DeleteEntry(T)) | |
112 | + | ||
113 | + | ||
114 | + | func U (p) = { | |
115 | + | let R = F(p) | |
116 | + | let I = R | |
117 | + | let J = size(I) | |
118 | + | let K = nil | |
119 | + | func L (M,N) = if ((N >= J)) | |
120 | + | then M | |
121 | + | else S(M, I[N]) | |
122 | + | ||
123 | + | func O (M,N) = if ((N >= J)) | |
124 | + | then M | |
125 | + | else throw("List size exceeds 10") | |
126 | + | ||
127 | + | O(L(L(L(L(L(L(L(L(L(L(K, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
128 | + | } | |
129 | + | ||
130 | + | ||
131 | + | func V (W,G,X,Y) = { | |
132 | + | let v = o(G, W) | |
133 | + | let Z = t(G, W) | |
134 | + | let aa = if (!(z(W))) | |
135 | + | then i((("Address: " + W) + " not in Admin list")) | |
136 | + | else if ((Z == 1)) | |
137 | + | then i((v + " you already voted")) | |
138 | + | else unit | |
139 | + | if ((aa == aa)) | |
140 | + | then { | |
141 | + | let R = Q(G) | |
142 | + | if (((R + 1) >= X)) | |
143 | + | then { | |
144 | + | let ab = U(G) | |
145 | + | (ab ++ Y) | |
146 | + | } | |
147 | + | else [IntegerEntry(v, 1)] | |
148 | + | } | |
149 | + | else throw("Strict value is not equal to itself.") | |
150 | + | } | |
151 | + | ||
152 | + | ||
153 | + | func ac (A) = isDefined(addressFromString(A)) | |
154 | + | ||
155 | + | ||
156 | + | let ad = "calculator__address" | |
157 | + | ||
158 | + | let ae = { | |
159 | + | let x = getString(this, ad) | |
160 | + | if ($isInstanceOf(x, "String")) | |
161 | + | then { | |
162 | + | let h = x | |
32 | 163 | addressFromString(h) | |
33 | 164 | } | |
34 | - | else if ($isInstanceOf( | |
165 | + | else if ($isInstanceOf(x, "Unit")) | |
35 | 166 | then unit | |
36 | 167 | else throw("Match error") | |
37 | 168 | } | |
38 | 169 | ||
39 | - | let | |
170 | + | let af = valueOrErrorMessage(ae, g("invalid calculator address")) | |
40 | 171 | ||
41 | - | func | |
172 | + | func ag (ah,A) = if ((ah.caller == A)) | |
42 | 173 | then true | |
43 | 174 | else i("permission denied") | |
44 | 175 | ||
45 | 176 | ||
46 | - | func | |
177 | + | func ai (ah) = ag(ah, this) | |
47 | 178 | ||
48 | 179 | ||
49 | - | func | |
180 | + | func aj (ah) = ag(ah, af) | |
50 | 181 | ||
51 | 182 | ||
52 | - | func | |
183 | + | func ak (al) = if ((al == b)) | |
53 | 184 | then unit | |
54 | - | else fromBase58String( | |
185 | + | else fromBase58String(al) | |
55 | 186 | ||
56 | 187 | ||
57 | - | func | |
188 | + | func am (al) = if ((al == unit)) | |
58 | 189 | then b | |
59 | - | else toBase58String(value( | |
190 | + | else toBase58String(value(al)) | |
60 | 191 | ||
61 | 192 | ||
62 | - | @Callable( | |
63 | - | func init ( | |
64 | - | let | |
65 | - | if (( | |
66 | - | then $Tuple2([StringEntry( | |
193 | + | @Callable(ah) | |
194 | + | func init (an) = { | |
195 | + | let ao = ai(ah) | |
196 | + | if ((ao == ao)) | |
197 | + | then $Tuple2([StringEntry(ad, an), StringEntry(d, b)], unit) | |
67 | 198 | else throw("Strict value is not equal to itself.") | |
68 | 199 | } | |
69 | 200 | ||
70 | 201 | ||
71 | 202 | ||
72 | - | @Callable( | |
73 | - | func stringEntry ( | |
74 | - | then | |
203 | + | @Callable(ah) | |
204 | + | func stringEntry (T,ap) = if (if (!(f)) | |
205 | + | then aj(ah) | |
75 | 206 | else false) | |
76 | - | then $Tuple2([StringEntry( | |
207 | + | then $Tuple2([StringEntry(T, ap)], T) | |
77 | 208 | else i("not allowed") | |
78 | 209 | ||
79 | 210 | ||
80 | 211 | ||
81 | - | @Callable( | |
82 | - | func integerEntry ( | |
83 | - | then | |
212 | + | @Callable(ah) | |
213 | + | func integerEntry (T,ap) = if (if (!(f)) | |
214 | + | then aj(ah) | |
84 | 215 | else false) | |
85 | - | then $Tuple2([IntegerEntry( | |
216 | + | then $Tuple2([IntegerEntry(T, ap)], T) | |
86 | 217 | else i("not allowed") | |
87 | 218 | ||
88 | 219 | ||
89 | 220 | ||
90 | - | @Callable( | |
91 | - | func booleanEntry ( | |
92 | - | then | |
221 | + | @Callable(ah) | |
222 | + | func booleanEntry (T,ap) = if (if (!(f)) | |
223 | + | then aj(ah) | |
93 | 224 | else false) | |
94 | - | then $Tuple2([BooleanEntry( | |
225 | + | then $Tuple2([BooleanEntry(T, ap)], T) | |
95 | 226 | else i("not allowed") | |
96 | 227 | ||
97 | 228 | ||
98 | 229 | ||
99 | - | @Callable( | |
100 | - | func binaryEntry ( | |
101 | - | then | |
230 | + | @Callable(ah) | |
231 | + | func binaryEntry (T,ap) = if (if (!(f)) | |
232 | + | then aj(ah) | |
102 | 233 | else false) | |
103 | - | then $Tuple2([BinaryEntry( | |
234 | + | then $Tuple2([BinaryEntry(T, ap)], T) | |
104 | 235 | else i("not allowed") | |
105 | 236 | ||
106 | 237 | ||
107 | 238 | ||
108 | - | @Callable( | |
109 | - | func deleteEntry ( | |
110 | - | then | |
239 | + | @Callable(ah) | |
240 | + | func deleteEntry (T) = if (if (!(f)) | |
241 | + | then aj(ah) | |
111 | 242 | else false) | |
112 | - | then $Tuple2([DeleteEntry( | |
243 | + | then $Tuple2([DeleteEntry(T)], T) | |
113 | 244 | else i("not allowed") | |
114 | 245 | ||
115 | 246 | ||
116 | 247 | ||
117 | - | @Callable( | |
118 | - | func reissue ( | |
119 | - | then | |
248 | + | @Callable(ah) | |
249 | + | func reissue (aq,ar,as) = if (if (!(f)) | |
250 | + | then aj(ah) | |
120 | 251 | else false) | |
121 | - | then $Tuple2([Reissue( | |
252 | + | then $Tuple2([Reissue(aq, ar, as)], ar) | |
122 | 253 | else i("not allowed") | |
123 | 254 | ||
124 | 255 | ||
125 | 256 | ||
126 | - | @Callable( | |
127 | - | func burn ( | |
128 | - | then | |
257 | + | @Callable(ah) | |
258 | + | func burn (aq,ar) = if (if (!(f)) | |
259 | + | then aj(ah) | |
129 | 260 | else false) | |
130 | - | then $Tuple2([Burn( | |
261 | + | then $Tuple2([Burn(aq, ar)], ar) | |
131 | 262 | else i("not allowed") | |
132 | 263 | ||
133 | 264 | ||
134 | 265 | ||
135 | - | @Callable( | |
136 | - | func transferAsset ( | |
137 | - | then | |
266 | + | @Callable(ah) | |
267 | + | func transferAsset (at,ar,aq) = if (if (!(f)) | |
268 | + | then aj(ah) | |
138 | 269 | else false) | |
139 | - | then $Tuple2([ScriptTransfer(Address( | |
270 | + | then $Tuple2([ScriptTransfer(Address(at), ar, aq)], ar) | |
140 | 271 | else i("not allowed") | |
141 | 272 | ||
142 | 273 | ||
143 | 274 | ||
144 | - | @Callable( | |
145 | - | func transferAssets ( | |
146 | - | then | |
275 | + | @Callable(ah) | |
276 | + | func transferAssets (at,au,av) = if (if (!(f)) | |
277 | + | then aj(ah) | |
147 | 278 | else false) | |
148 | 279 | then { | |
149 | - | func | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | $Tuple2( | |
280 | + | func aw (ax,ay) = { | |
281 | + | let az = ax | |
282 | + | let aA = az._1 | |
283 | + | let aB = az._2 | |
284 | + | let aC = ScriptTransfer(Address(at), av[aB], au[aB]) | |
285 | + | let aD = (aA :+ aC) | |
286 | + | $Tuple2(aD, (aB + 1)) | |
156 | 287 | } | |
157 | 288 | ||
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | func | |
163 | - | then | |
164 | - | else | |
289 | + | let aE = { | |
290 | + | let I = au | |
291 | + | let J = size(I) | |
292 | + | let K = $Tuple2(nil, 0) | |
293 | + | func L (M,N) = if ((N >= J)) | |
294 | + | then M | |
295 | + | else aw(M, I[N]) | |
165 | 296 | ||
166 | - | func | |
167 | - | then | |
297 | + | func O (M,N) = if ((N >= J)) | |
298 | + | then M | |
168 | 299 | else throw("List size exceeds 10") | |
169 | 300 | ||
170 | - | | |
301 | + | O(L(L(L(L(L(L(L(L(L(L(K, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
171 | 302 | } | |
172 | - | let | |
173 | - | let | |
174 | - | $Tuple2( | |
303 | + | let aF = aE._1 | |
304 | + | let aG = aE._2 | |
305 | + | $Tuple2(aF, unit) | |
175 | 306 | } | |
176 | 307 | else i("not allowed") | |
177 | 308 | ||
178 | 309 | ||
179 | 310 | ||
180 | - | @Callable( | |
181 | - | func transferWaves ( | |
182 | - | then | |
311 | + | @Callable(ah) | |
312 | + | func transferWaves (at,ar) = if (if (!(f)) | |
313 | + | then aj(ah) | |
183 | 314 | else false) | |
184 | - | then $Tuple2([ScriptTransfer(Address( | |
315 | + | then $Tuple2([ScriptTransfer(Address(at), ar, unit)], ar) | |
185 | 316 | else i("not allowed") | |
186 | 317 | ||
187 | 318 | ||
188 | 319 | ||
189 | - | @Callable( | |
190 | - | func call ( | |
191 | - | let | |
320 | + | @Callable(ah) | |
321 | + | func call (aH,aI) = { | |
322 | + | let aJ = if ((ah.callerPublicKey == base58'11111111111111111111111111111111')) | |
192 | 323 | then nil | |
193 | - | else | |
194 | - | let | |
195 | - | $Tuple2(nil, | |
324 | + | else ah.payments | |
325 | + | let E = reentrantInvoke(af, aH, [ah.callerPublicKey, aI], aJ) | |
326 | + | $Tuple2(nil, E) | |
196 | 327 | } | |
197 | 328 | ||
198 | 329 | ||
199 | 330 | ||
200 | - | @Callable( | |
201 | - | func initPoolInvoke ( | |
202 | - | then | |
331 | + | @Callable(ah) | |
332 | + | func initPoolInvoke (aK,aI) = if (if (!(f)) | |
333 | + | then aj(ah) | |
203 | 334 | else false) | |
204 | 335 | then { | |
205 | - | let | |
206 | - | $Tuple2(nil, invoke(addressFromStringValue( | |
336 | + | let aL = [aI[0], aI[1], aI[2], aI[3], parseIntValue(aI[4])] | |
337 | + | $Tuple2(nil, invoke(addressFromStringValue(aK), "init", aL, ah.payments)) | |
207 | 338 | } | |
208 | 339 | else i("not allowed") | |
209 | 340 | ||
210 | 341 | ||
211 | 342 | ||
212 | - | @Callable(q) | |
213 | - | func notifyStatusUpdate (ae) = { | |
214 | - | let ab = reentrantInvoke(o, "notifyStatusUpdate", [q.callerPublicKey, [toString(ae)]], nil) | |
215 | - | $Tuple2(nil, ab) | |
343 | + | @Callable(ah) | |
344 | + | func notifyStatusUpdate (aM) = { | |
345 | + | let E = reentrantInvoke(af, "notifyStatusUpdate", [ah.callerPublicKey, [toString(aM)]], nil) | |
346 | + | $Tuple2(nil, E) | |
347 | + | } | |
348 | + | ||
349 | + | ||
350 | + | ||
351 | + | @Callable(ah) | |
352 | + | func voteForTxId (n) = { | |
353 | + | let W = toBase58String(ah.caller.bytes) | |
354 | + | let G = m(n) | |
355 | + | let E = [StringEntry(s(), n)] | |
356 | + | let aN = getString(this, s()) | |
357 | + | let aa = [if ((size(fromBase58String(n)) == l)) | |
358 | + | then true | |
359 | + | else i((n + " is not valid txId")), if (if ((aN == unit)) | |
360 | + | then true | |
361 | + | else (value(aN) != n)) | |
362 | + | then true | |
363 | + | else i((n + " is already allowed"))] | |
364 | + | if ((aa == aa)) | |
365 | + | then V(W, G, k, E) | |
366 | + | else throw("Strict value is not equal to itself.") | |
216 | 367 | } | |
217 | 368 | ||
218 | 369 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "WAVES" | |
7 | 7 | ||
8 | 8 | let c = "meme_im_factory.ride" | |
9 | 9 | ||
10 | 10 | let d = "price__asset" | |
11 | 11 | ||
12 | 12 | let e = "shutdown__flag" | |
13 | 13 | ||
14 | 14 | let f = valueOrElse(getBoolean(e), false) | |
15 | 15 | ||
16 | 16 | func g (h) = ((c + ": ") + h) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (h) = throw(g(h)) | |
20 | 20 | ||
21 | 21 | ||
22 | - | func j (k) = isDefined(addressFromString(k)) | |
22 | + | let j = 10 | |
23 | + | ||
24 | + | let k = 3 | |
25 | + | ||
26 | + | let l = 32 | |
27 | + | ||
28 | + | func m (n) = makeString(["%s%s%s", "allowTxId", n], a) | |
23 | 29 | ||
24 | 30 | ||
25 | - | ||
31 | + | func o (p,q) = makeString([p, q], a) | |
26 | 32 | ||
27 | - | let m = { | |
28 | - | let n = getString(this, l) | |
29 | - | if ($isInstanceOf(n, "String")) | |
33 | + | ||
34 | + | func r () = makeString(["%s", "adminAddressList"], a) | |
35 | + | ||
36 | + | ||
37 | + | func s () = makeString(["%s", "txId"], a) | |
38 | + | ||
39 | + | ||
40 | + | func t (p,u) = { | |
41 | + | let v = o(p, u) | |
42 | + | valueOrElse(getInteger(v), 0) | |
43 | + | } | |
44 | + | ||
45 | + | ||
46 | + | func w () = { | |
47 | + | let x = getString(this, r()) | |
48 | + | if ($isInstanceOf(x, "String")) | |
30 | 49 | then { | |
31 | - | let h = n | |
50 | + | let h = x | |
51 | + | split(h, a) | |
52 | + | } | |
53 | + | else nil | |
54 | + | } | |
55 | + | ||
56 | + | ||
57 | + | let y = w() | |
58 | + | ||
59 | + | func z (A) = containsElement(y, A) | |
60 | + | ||
61 | + | ||
62 | + | func B (C,q) = { | |
63 | + | let D = C | |
64 | + | let E = D._1 | |
65 | + | let p = D._2 | |
66 | + | $Tuple2((E :+ o(p, q)), p) | |
67 | + | } | |
68 | + | ||
69 | + | ||
70 | + | func F (G) = { | |
71 | + | let H = { | |
72 | + | let I = y | |
73 | + | let J = size(I) | |
74 | + | let K = $Tuple2(nil, G) | |
75 | + | func L (M,N) = if ((N >= J)) | |
76 | + | then M | |
77 | + | else B(M, I[N]) | |
78 | + | ||
79 | + | func O (M,N) = if ((N >= J)) | |
80 | + | then M | |
81 | + | else throw("List size exceeds 10") | |
82 | + | ||
83 | + | O(L(L(L(L(L(L(L(L(L(L(K, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
84 | + | } | |
85 | + | let E = H._1 | |
86 | + | let p = H._2 | |
87 | + | E | |
88 | + | } | |
89 | + | ||
90 | + | ||
91 | + | func P (E,v) = (E + valueOrElse(getInteger(v), 0)) | |
92 | + | ||
93 | + | ||
94 | + | func Q (p) = { | |
95 | + | let R = F(p) | |
96 | + | let I = R | |
97 | + | let J = size(I) | |
98 | + | let K = 0 | |
99 | + | func L (M,N) = if ((N >= J)) | |
100 | + | then M | |
101 | + | else P(M, I[N]) | |
102 | + | ||
103 | + | func O (M,N) = if ((N >= J)) | |
104 | + | then M | |
105 | + | else throw("List size exceeds 10") | |
106 | + | ||
107 | + | O(L(L(L(L(L(L(L(L(L(L(K, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
108 | + | } | |
109 | + | ||
110 | + | ||
111 | + | func S (E,T) = (E :+ DeleteEntry(T)) | |
112 | + | ||
113 | + | ||
114 | + | func U (p) = { | |
115 | + | let R = F(p) | |
116 | + | let I = R | |
117 | + | let J = size(I) | |
118 | + | let K = nil | |
119 | + | func L (M,N) = if ((N >= J)) | |
120 | + | then M | |
121 | + | else S(M, I[N]) | |
122 | + | ||
123 | + | func O (M,N) = if ((N >= J)) | |
124 | + | then M | |
125 | + | else throw("List size exceeds 10") | |
126 | + | ||
127 | + | O(L(L(L(L(L(L(L(L(L(L(K, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
128 | + | } | |
129 | + | ||
130 | + | ||
131 | + | func V (W,G,X,Y) = { | |
132 | + | let v = o(G, W) | |
133 | + | let Z = t(G, W) | |
134 | + | let aa = if (!(z(W))) | |
135 | + | then i((("Address: " + W) + " not in Admin list")) | |
136 | + | else if ((Z == 1)) | |
137 | + | then i((v + " you already voted")) | |
138 | + | else unit | |
139 | + | if ((aa == aa)) | |
140 | + | then { | |
141 | + | let R = Q(G) | |
142 | + | if (((R + 1) >= X)) | |
143 | + | then { | |
144 | + | let ab = U(G) | |
145 | + | (ab ++ Y) | |
146 | + | } | |
147 | + | else [IntegerEntry(v, 1)] | |
148 | + | } | |
149 | + | else throw("Strict value is not equal to itself.") | |
150 | + | } | |
151 | + | ||
152 | + | ||
153 | + | func ac (A) = isDefined(addressFromString(A)) | |
154 | + | ||
155 | + | ||
156 | + | let ad = "calculator__address" | |
157 | + | ||
158 | + | let ae = { | |
159 | + | let x = getString(this, ad) | |
160 | + | if ($isInstanceOf(x, "String")) | |
161 | + | then { | |
162 | + | let h = x | |
32 | 163 | addressFromString(h) | |
33 | 164 | } | |
34 | - | else if ($isInstanceOf( | |
165 | + | else if ($isInstanceOf(x, "Unit")) | |
35 | 166 | then unit | |
36 | 167 | else throw("Match error") | |
37 | 168 | } | |
38 | 169 | ||
39 | - | let | |
170 | + | let af = valueOrErrorMessage(ae, g("invalid calculator address")) | |
40 | 171 | ||
41 | - | func | |
172 | + | func ag (ah,A) = if ((ah.caller == A)) | |
42 | 173 | then true | |
43 | 174 | else i("permission denied") | |
44 | 175 | ||
45 | 176 | ||
46 | - | func | |
177 | + | func ai (ah) = ag(ah, this) | |
47 | 178 | ||
48 | 179 | ||
49 | - | func | |
180 | + | func aj (ah) = ag(ah, af) | |
50 | 181 | ||
51 | 182 | ||
52 | - | func | |
183 | + | func ak (al) = if ((al == b)) | |
53 | 184 | then unit | |
54 | - | else fromBase58String( | |
185 | + | else fromBase58String(al) | |
55 | 186 | ||
56 | 187 | ||
57 | - | func | |
188 | + | func am (al) = if ((al == unit)) | |
58 | 189 | then b | |
59 | - | else toBase58String(value( | |
190 | + | else toBase58String(value(al)) | |
60 | 191 | ||
61 | 192 | ||
62 | - | @Callable( | |
63 | - | func init ( | |
64 | - | let | |
65 | - | if (( | |
66 | - | then $Tuple2([StringEntry( | |
193 | + | @Callable(ah) | |
194 | + | func init (an) = { | |
195 | + | let ao = ai(ah) | |
196 | + | if ((ao == ao)) | |
197 | + | then $Tuple2([StringEntry(ad, an), StringEntry(d, b)], unit) | |
67 | 198 | else throw("Strict value is not equal to itself.") | |
68 | 199 | } | |
69 | 200 | ||
70 | 201 | ||
71 | 202 | ||
72 | - | @Callable( | |
73 | - | func stringEntry ( | |
74 | - | then | |
203 | + | @Callable(ah) | |
204 | + | func stringEntry (T,ap) = if (if (!(f)) | |
205 | + | then aj(ah) | |
75 | 206 | else false) | |
76 | - | then $Tuple2([StringEntry( | |
207 | + | then $Tuple2([StringEntry(T, ap)], T) | |
77 | 208 | else i("not allowed") | |
78 | 209 | ||
79 | 210 | ||
80 | 211 | ||
81 | - | @Callable( | |
82 | - | func integerEntry ( | |
83 | - | then | |
212 | + | @Callable(ah) | |
213 | + | func integerEntry (T,ap) = if (if (!(f)) | |
214 | + | then aj(ah) | |
84 | 215 | else false) | |
85 | - | then $Tuple2([IntegerEntry( | |
216 | + | then $Tuple2([IntegerEntry(T, ap)], T) | |
86 | 217 | else i("not allowed") | |
87 | 218 | ||
88 | 219 | ||
89 | 220 | ||
90 | - | @Callable( | |
91 | - | func booleanEntry ( | |
92 | - | then | |
221 | + | @Callable(ah) | |
222 | + | func booleanEntry (T,ap) = if (if (!(f)) | |
223 | + | then aj(ah) | |
93 | 224 | else false) | |
94 | - | then $Tuple2([BooleanEntry( | |
225 | + | then $Tuple2([BooleanEntry(T, ap)], T) | |
95 | 226 | else i("not allowed") | |
96 | 227 | ||
97 | 228 | ||
98 | 229 | ||
99 | - | @Callable( | |
100 | - | func binaryEntry ( | |
101 | - | then | |
230 | + | @Callable(ah) | |
231 | + | func binaryEntry (T,ap) = if (if (!(f)) | |
232 | + | then aj(ah) | |
102 | 233 | else false) | |
103 | - | then $Tuple2([BinaryEntry( | |
234 | + | then $Tuple2([BinaryEntry(T, ap)], T) | |
104 | 235 | else i("not allowed") | |
105 | 236 | ||
106 | 237 | ||
107 | 238 | ||
108 | - | @Callable( | |
109 | - | func deleteEntry ( | |
110 | - | then | |
239 | + | @Callable(ah) | |
240 | + | func deleteEntry (T) = if (if (!(f)) | |
241 | + | then aj(ah) | |
111 | 242 | else false) | |
112 | - | then $Tuple2([DeleteEntry( | |
243 | + | then $Tuple2([DeleteEntry(T)], T) | |
113 | 244 | else i("not allowed") | |
114 | 245 | ||
115 | 246 | ||
116 | 247 | ||
117 | - | @Callable( | |
118 | - | func reissue ( | |
119 | - | then | |
248 | + | @Callable(ah) | |
249 | + | func reissue (aq,ar,as) = if (if (!(f)) | |
250 | + | then aj(ah) | |
120 | 251 | else false) | |
121 | - | then $Tuple2([Reissue( | |
252 | + | then $Tuple2([Reissue(aq, ar, as)], ar) | |
122 | 253 | else i("not allowed") | |
123 | 254 | ||
124 | 255 | ||
125 | 256 | ||
126 | - | @Callable( | |
127 | - | func burn ( | |
128 | - | then | |
257 | + | @Callable(ah) | |
258 | + | func burn (aq,ar) = if (if (!(f)) | |
259 | + | then aj(ah) | |
129 | 260 | else false) | |
130 | - | then $Tuple2([Burn( | |
261 | + | then $Tuple2([Burn(aq, ar)], ar) | |
131 | 262 | else i("not allowed") | |
132 | 263 | ||
133 | 264 | ||
134 | 265 | ||
135 | - | @Callable( | |
136 | - | func transferAsset ( | |
137 | - | then | |
266 | + | @Callable(ah) | |
267 | + | func transferAsset (at,ar,aq) = if (if (!(f)) | |
268 | + | then aj(ah) | |
138 | 269 | else false) | |
139 | - | then $Tuple2([ScriptTransfer(Address( | |
270 | + | then $Tuple2([ScriptTransfer(Address(at), ar, aq)], ar) | |
140 | 271 | else i("not allowed") | |
141 | 272 | ||
142 | 273 | ||
143 | 274 | ||
144 | - | @Callable( | |
145 | - | func transferAssets ( | |
146 | - | then | |
275 | + | @Callable(ah) | |
276 | + | func transferAssets (at,au,av) = if (if (!(f)) | |
277 | + | then aj(ah) | |
147 | 278 | else false) | |
148 | 279 | then { | |
149 | - | func | |
150 | - | let | |
151 | - | let | |
152 | - | let | |
153 | - | let | |
154 | - | let | |
155 | - | $Tuple2( | |
280 | + | func aw (ax,ay) = { | |
281 | + | let az = ax | |
282 | + | let aA = az._1 | |
283 | + | let aB = az._2 | |
284 | + | let aC = ScriptTransfer(Address(at), av[aB], au[aB]) | |
285 | + | let aD = (aA :+ aC) | |
286 | + | $Tuple2(aD, (aB + 1)) | |
156 | 287 | } | |
157 | 288 | ||
158 | - | let | |
159 | - | let | |
160 | - | let | |
161 | - | let | |
162 | - | func | |
163 | - | then | |
164 | - | else | |
289 | + | let aE = { | |
290 | + | let I = au | |
291 | + | let J = size(I) | |
292 | + | let K = $Tuple2(nil, 0) | |
293 | + | func L (M,N) = if ((N >= J)) | |
294 | + | then M | |
295 | + | else aw(M, I[N]) | |
165 | 296 | ||
166 | - | func | |
167 | - | then | |
297 | + | func O (M,N) = if ((N >= J)) | |
298 | + | then M | |
168 | 299 | else throw("List size exceeds 10") | |
169 | 300 | ||
170 | - | | |
301 | + | O(L(L(L(L(L(L(L(L(L(L(K, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
171 | 302 | } | |
172 | - | let | |
173 | - | let | |
174 | - | $Tuple2( | |
303 | + | let aF = aE._1 | |
304 | + | let aG = aE._2 | |
305 | + | $Tuple2(aF, unit) | |
175 | 306 | } | |
176 | 307 | else i("not allowed") | |
177 | 308 | ||
178 | 309 | ||
179 | 310 | ||
180 | - | @Callable( | |
181 | - | func transferWaves ( | |
182 | - | then | |
311 | + | @Callable(ah) | |
312 | + | func transferWaves (at,ar) = if (if (!(f)) | |
313 | + | then aj(ah) | |
183 | 314 | else false) | |
184 | - | then $Tuple2([ScriptTransfer(Address( | |
315 | + | then $Tuple2([ScriptTransfer(Address(at), ar, unit)], ar) | |
185 | 316 | else i("not allowed") | |
186 | 317 | ||
187 | 318 | ||
188 | 319 | ||
189 | - | @Callable( | |
190 | - | func call ( | |
191 | - | let | |
320 | + | @Callable(ah) | |
321 | + | func call (aH,aI) = { | |
322 | + | let aJ = if ((ah.callerPublicKey == base58'11111111111111111111111111111111')) | |
192 | 323 | then nil | |
193 | - | else | |
194 | - | let | |
195 | - | $Tuple2(nil, | |
324 | + | else ah.payments | |
325 | + | let E = reentrantInvoke(af, aH, [ah.callerPublicKey, aI], aJ) | |
326 | + | $Tuple2(nil, E) | |
196 | 327 | } | |
197 | 328 | ||
198 | 329 | ||
199 | 330 | ||
200 | - | @Callable( | |
201 | - | func initPoolInvoke ( | |
202 | - | then | |
331 | + | @Callable(ah) | |
332 | + | func initPoolInvoke (aK,aI) = if (if (!(f)) | |
333 | + | then aj(ah) | |
203 | 334 | else false) | |
204 | 335 | then { | |
205 | - | let | |
206 | - | $Tuple2(nil, invoke(addressFromStringValue( | |
336 | + | let aL = [aI[0], aI[1], aI[2], aI[3], parseIntValue(aI[4])] | |
337 | + | $Tuple2(nil, invoke(addressFromStringValue(aK), "init", aL, ah.payments)) | |
207 | 338 | } | |
208 | 339 | else i("not allowed") | |
209 | 340 | ||
210 | 341 | ||
211 | 342 | ||
212 | - | @Callable(q) | |
213 | - | func notifyStatusUpdate (ae) = { | |
214 | - | let ab = reentrantInvoke(o, "notifyStatusUpdate", [q.callerPublicKey, [toString(ae)]], nil) | |
215 | - | $Tuple2(nil, ab) | |
343 | + | @Callable(ah) | |
344 | + | func notifyStatusUpdate (aM) = { | |
345 | + | let E = reentrantInvoke(af, "notifyStatusUpdate", [ah.callerPublicKey, [toString(aM)]], nil) | |
346 | + | $Tuple2(nil, E) | |
347 | + | } | |
348 | + | ||
349 | + | ||
350 | + | ||
351 | + | @Callable(ah) | |
352 | + | func voteForTxId (n) = { | |
353 | + | let W = toBase58String(ah.caller.bytes) | |
354 | + | let G = m(n) | |
355 | + | let E = [StringEntry(s(), n)] | |
356 | + | let aN = getString(this, s()) | |
357 | + | let aa = [if ((size(fromBase58String(n)) == l)) | |
358 | + | then true | |
359 | + | else i((n + " is not valid txId")), if (if ((aN == unit)) | |
360 | + | then true | |
361 | + | else (value(aN) != n)) | |
362 | + | then true | |
363 | + | else i((n + " is already allowed"))] | |
364 | + | if ((aa == aa)) | |
365 | + | then V(W, G, k, E) | |
366 | + | else throw("Strict value is not equal to itself.") | |
216 | 367 | } | |
217 | 368 | ||
218 | 369 |
github/deemru/w8io/169f3d6 69.20 ms ◑