tx · uB44RXKFqm3HwYRnSXDQ11gzmRX9ka4q1ZVhhK7KBwW 3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2: -0.01400000 Waves 2024.02.16 10:30 [2978461] smart account 3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2 > SELF 0.00000000 Waves
{ "type": 13, "id": "uB44RXKFqm3HwYRnSXDQ11gzmRX9ka4q1ZVhhK7KBwW", "fee": 1400000, "feeAssetId": null, "timestamp": 1708068618668, "version": 2, "chainId": 84, "sender": "3NC9dyrMheMhHXcaeCXkuKqaTkLFa5Ahzd2", "senderPublicKey": "8fS13zFL61wF3maPyR7vTayhasoH9StToqd7wGuecHXN", "proofs": [ "bjNxamwVaJdzFA9nGrd2AJug9HMuucpVNtFTTnjqRfAags9LLm46LGvF9omn82CgYxdCQfNJJpQ56u9Pjjxw2HX" ], "script": "base64:BwJkCAISBAoCCAgSBAoCCAESBAoCCAQSBAoCCAISAwoBCBIFCgMCAQQSBAoCAgESBQoDAgECEgUKAwISERIECgICARINCgsICAgICAgIAQEBGBIICgYICAgBAgESBAoCCBgSAwoBCDAAA1NFUAICX18ABVdBVkVTAgVXQVZFUwAQY29udHJhY3RGaWxlbmFtZQISd3hkYW9fZmFjdG9yeS5yaWRlAQd3cmFwRXJyAQFzCQCsAgIJAKwCAgUQY29udHJhY3RGaWxlbmFtZQICOiAFAXMBCHRocm93RXJyAQFzCQACAQkBB3dyYXBFcnIBBQFzAQ9zdHJpbmdUb0Fzc2V0SWQBAXMDCQAAAgUBcwUFV0FWRVMFBHVuaXQJANkEAQUBcwAPQURNSU5fTElTVF9TSVpFAAUABlFVT1JVTQADABFUWElEX0JZVEVTX0xFTkdUSAAgARhrZXlBbGxvd2VkVHhJZFZvdGVQcmVmaXgBBHR4SWQJALkJAgkAzAgCAgYlcyVzJXMJAMwIAgIJYWxsb3dUeElkCQDMCAIFBHR4SWQFA25pbAUDU0VQARBrZXlGdWxsQWRtaW5Wb3RlAgZwcmVmaXg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tleUFsbG93ZWRUeElkAAIABAdieU93bmVyAwkAZwIJAJADAQkBDWdldEFkbWluc0xpc3QABQZRVU9SVU0HCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5AwMFCmJ5UHJvcG9zYWwGBQhieUFkbWlucwYFB2J5T3duZXLlX9U6", "height": 2978461, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8obEV2TDj7P5fE1bhzEkQioMWRqSkP3wpgMJbp2aQRru Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | - | let b = | |
6 | + | let b = "WAVES" | |
7 | 7 | ||
8 | - | let c = | |
8 | + | let c = "wxdao_factory.ride" | |
9 | 9 | ||
10 | - | let d = base58'2W' | |
11 | - | ||
12 | - | func e (f,g) = if ((f.caller == g)) | |
13 | - | then true | |
14 | - | else throw("permission denied") | |
10 | + | func d (e) = ((c + ": ") + e) | |
15 | 11 | ||
16 | 12 | ||
17 | - | func | |
13 | + | func f (e) = throw(d(e)) | |
18 | 14 | ||
19 | 15 | ||
20 | - | let i = "__" | |
21 | - | ||
22 | - | let j = "WAVES" | |
23 | - | ||
24 | - | let k = "wxdao_factory.ride" | |
25 | - | ||
26 | - | func l (m) = ((k + ": ") + m) | |
16 | + | func g (e) = if ((e == b)) | |
17 | + | then unit | |
18 | + | else fromBase58String(e) | |
27 | 19 | ||
28 | 20 | ||
29 | - | func n (m) = throw(l(m)) | |
21 | + | let h = 5 | |
22 | + | ||
23 | + | let i = 3 | |
24 | + | ||
25 | + | let j = 32 | |
26 | + | ||
27 | + | func k (l) = makeString(["%s%s%s", "allowTxId", l], a) | |
30 | 28 | ||
31 | 29 | ||
32 | - | func o (m) = if ((m == j)) | |
33 | - | then unit | |
34 | - | else fromBase58String(m) | |
30 | + | func m (n,o) = makeString([n, o], a) | |
35 | 31 | ||
36 | 32 | ||
37 | - | let p = 5 | |
38 | - | ||
39 | - | let q = 3 | |
40 | - | ||
41 | - | let r = 32 | |
42 | - | ||
43 | - | func s (t) = makeString(["%s%s%s", "allowTxId", t], i) | |
33 | + | func p () = makeString(["%s", "adminAddressList"], a) | |
44 | 34 | ||
45 | 35 | ||
46 | - | func | |
36 | + | func q () = makeString(["%s", "txId"], a) | |
47 | 37 | ||
48 | 38 | ||
49 | - | func x () = makeString(["%s", "adminAddressList"], i) | |
50 | - | ||
51 | - | ||
52 | - | func y () = makeString(["%s", "txId"], i) | |
53 | - | ||
54 | - | ||
55 | - | func z (v,A) = { | |
56 | - | let B = u(v, A) | |
57 | - | valueOrElse(getInteger(B), 0) | |
39 | + | func r (n,s) = { | |
40 | + | let t = m(n, s) | |
41 | + | valueOrElse(getInteger(t), 0) | |
58 | 42 | } | |
59 | 43 | ||
60 | 44 | ||
61 | - | func | |
62 | - | let | |
63 | - | if ($isInstanceOf( | |
45 | + | func u () = { | |
46 | + | let v = getString(this, p()) | |
47 | + | if ($isInstanceOf(v, "String")) | |
64 | 48 | then { | |
65 | - | let | |
66 | - | split( | |
49 | + | let e = v | |
50 | + | split(e, a) | |
67 | 51 | } | |
68 | 52 | else nil | |
69 | 53 | } | |
70 | 54 | ||
71 | 55 | ||
72 | - | func | |
56 | + | func w (x) = containsElement(u(), x) | |
73 | 57 | ||
74 | 58 | ||
75 | - | func | |
76 | - | let | |
77 | - | let | |
78 | - | let | |
79 | - | $Tuple2(( | |
59 | + | func y (z,o) = { | |
60 | + | let A = z | |
61 | + | let B = A._1 | |
62 | + | let n = A._2 | |
63 | + | $Tuple2((B :+ m(n, o)), n) | |
80 | 64 | } | |
81 | 65 | ||
82 | 66 | ||
83 | - | func | |
84 | - | let | |
85 | - | let | |
86 | - | let | |
87 | - | let | |
88 | - | let | |
89 | - | func | |
90 | - | then | |
91 | - | else | |
67 | + | func C (D) = { | |
68 | + | let E = p() | |
69 | + | let F = { | |
70 | + | let G = u() | |
71 | + | let H = size(G) | |
72 | + | let I = $Tuple2(nil, D) | |
73 | + | func J (K,L) = if ((L >= H)) | |
74 | + | then K | |
75 | + | else y(K, G[L]) | |
92 | 76 | ||
93 | - | func | |
94 | - | then | |
77 | + | func M (K,L) = if ((L >= H)) | |
78 | + | then K | |
95 | 79 | else throw("List size exceeds 5") | |
96 | 80 | ||
97 | - | | |
81 | + | M(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5) | |
98 | 82 | } | |
99 | - | let | |
100 | - | let | |
101 | - | | |
83 | + | let B = F._1 | |
84 | + | let n = F._2 | |
85 | + | B | |
102 | 86 | } | |
103 | 87 | ||
104 | 88 | ||
105 | - | func | |
89 | + | func N (B,t) = (B + valueOrElse(getInteger(t), 0)) | |
106 | 90 | ||
107 | 91 | ||
108 | - | func | |
109 | - | let | |
110 | - | let | |
111 | - | let | |
112 | - | let | |
113 | - | func | |
114 | - | then | |
115 | - | else | |
92 | + | func O (n) = { | |
93 | + | let P = C(n) | |
94 | + | let G = P | |
95 | + | let H = size(G) | |
96 | + | let I = 0 | |
97 | + | func J (K,L) = if ((L >= H)) | |
98 | + | then K | |
99 | + | else N(K, G[L]) | |
116 | 100 | ||
117 | - | func | |
118 | - | then | |
101 | + | func M (K,L) = if ((L >= H)) | |
102 | + | then K | |
119 | 103 | else throw("List size exceeds 5") | |
120 | 104 | ||
121 | - | | |
105 | + | M(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5) | |
122 | 106 | } | |
123 | 107 | ||
124 | 108 | ||
125 | - | func | |
109 | + | func Q (B,R) = (B :+ DeleteEntry(R)) | |
126 | 110 | ||
127 | 111 | ||
128 | - | func | |
129 | - | let | |
130 | - | let | |
131 | - | let | |
132 | - | let | |
133 | - | func | |
134 | - | then | |
135 | - | else | |
112 | + | func S (n) = { | |
113 | + | let P = C(n) | |
114 | + | let G = P | |
115 | + | let H = size(G) | |
116 | + | let I = nil | |
117 | + | func J (K,L) = if ((L >= H)) | |
118 | + | then K | |
119 | + | else Q(K, G[L]) | |
136 | 120 | ||
137 | - | func | |
138 | - | then | |
121 | + | func M (K,L) = if ((L >= H)) | |
122 | + | then K | |
139 | 123 | else throw("List size exceeds 5") | |
140 | 124 | ||
141 | - | | |
125 | + | M(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5) | |
142 | 126 | } | |
143 | 127 | ||
144 | 128 | ||
145 | - | func | |
146 | - | let | |
147 | - | let | |
148 | - | let | |
149 | - | then | |
150 | - | else if (( | |
151 | - | then | |
129 | + | func T (U,D,V,W) = { | |
130 | + | let t = m(D, U) | |
131 | + | let X = r(D, U) | |
132 | + | let Y = if (!(w(U))) | |
133 | + | then f((("Address: " + U) + " not in Admin list")) | |
134 | + | else if ((X == 1)) | |
135 | + | then f((t + " you already voted")) | |
152 | 136 | else unit | |
153 | - | if (( | |
137 | + | if ((Y == Y)) | |
154 | 138 | then { | |
155 | - | let | |
156 | - | if ((( | |
139 | + | let P = O(D) | |
140 | + | if (((P + 1) >= V)) | |
157 | 141 | then { | |
158 | - | let | |
159 | - | ( | |
142 | + | let Z = S(D) | |
143 | + | (Z ++ W) | |
160 | 144 | } | |
161 | - | else [IntegerEntry( | |
145 | + | else [IntegerEntry(t, 1)] | |
162 | 146 | } | |
163 | 147 | else throw("Strict value is not equal to itself.") | |
164 | 148 | } | |
165 | 149 | ||
166 | 150 | ||
167 | - | func | |
151 | + | func aa () = "%s__calculatorAddress" | |
168 | 152 | ||
169 | 153 | ||
170 | - | func | |
154 | + | func ab () = "%s__lockAddress" | |
171 | 155 | ||
172 | 156 | ||
173 | - | func | |
157 | + | func ac () = "%s__poolsFactoryAddress" | |
174 | 158 | ||
175 | 159 | ||
176 | - | func | |
160 | + | func ad () = "%s__treasuryAddress" | |
177 | 161 | ||
178 | 162 | ||
179 | - | func | |
163 | + | func ae () = "%s__lpAssetId" | |
180 | 164 | ||
181 | 165 | ||
182 | - | func | |
166 | + | func af () = makeString(["%s", "currentPeriod"], a) | |
183 | 167 | ||
184 | 168 | ||
185 | - | func | |
169 | + | func ag (ah) = makeString(["%s%d", "startHeight", toString(ah)], a) | |
186 | 170 | ||
187 | 171 | ||
188 | - | func | |
172 | + | func ai () = makeString(["%s", "periodLength"], a) | |
189 | 173 | ||
190 | 174 | ||
191 | - | let aq = { | |
192 | - | let D = getString(this, ah()) | |
193 | - | if ($isInstanceOf(D, "String")) | |
175 | + | func aj (ah) = makeString(["%s%d", "treasuryValue", toString(ah)], a) | |
176 | + | ||
177 | + | ||
178 | + | func ak () = makeString(["%s", "lockDuration"], a) | |
179 | + | ||
180 | + | ||
181 | + | let al = { | |
182 | + | let v = getString(this, aa()) | |
183 | + | if ($isInstanceOf(v, "String")) | |
194 | 184 | then { | |
195 | - | let | |
196 | - | addressFromString( | |
185 | + | let e = v | |
186 | + | addressFromString(e) | |
197 | 187 | } | |
198 | - | else if ($isInstanceOf( | |
188 | + | else if ($isInstanceOf(v, "Unit")) | |
199 | 189 | then unit | |
200 | 190 | else throw("Match error") | |
201 | 191 | } | |
202 | 192 | ||
203 | - | let | |
193 | + | let am = valueOrErrorMessage(al, d("invalid calculator address")) | |
204 | 194 | ||
205 | - | func | |
195 | + | func an () = "%s__powerConfigAddress" | |
206 | 196 | ||
207 | 197 | ||
208 | - | func | |
198 | + | func ao () = "%s__powerContractAddress" | |
209 | 199 | ||
210 | 200 | ||
211 | - | func | |
201 | + | func ap () = "%s__assets" | |
212 | 202 | ||
213 | 203 | ||
214 | - | func | |
204 | + | func aq () = "contract_voting_result" | |
215 | 205 | ||
216 | 206 | ||
217 | - | func | |
207 | + | func ar (x,l) = ((("proposal_allow_broadcast_" + toString(x)) + "_") + toBase58String(l)) | |
218 | 208 | ||
219 | 209 | ||
220 | - | let | |
221 | - | let | |
222 | - | if ($isInstanceOf( | |
210 | + | let as = { | |
211 | + | let v = getString(this, an()) | |
212 | + | if ($isInstanceOf(v, "String")) | |
223 | 213 | then { | |
224 | - | let | |
225 | - | addressFromString( | |
214 | + | let e = v | |
215 | + | addressFromString(e) | |
226 | 216 | } | |
227 | - | else if ($isInstanceOf( | |
217 | + | else if ($isInstanceOf(v, "Unit")) | |
228 | 218 | then unit | |
229 | 219 | else throw("Match error") | |
230 | 220 | } | |
231 | 221 | ||
232 | - | let | |
233 | - | let | |
234 | - | if ($isInstanceOf( | |
222 | + | let at = { | |
223 | + | let v = as | |
224 | + | if ($isInstanceOf(v, "Address")) | |
235 | 225 | then { | |
236 | - | let | |
237 | - | let | |
238 | - | if ($isInstanceOf( | |
226 | + | let z = v | |
227 | + | let au = getString(z, aq()) | |
228 | + | if ($isInstanceOf(au, "String")) | |
239 | 229 | then { | |
240 | - | let | |
241 | - | addressFromString( | |
230 | + | let e = au | |
231 | + | addressFromString(e) | |
242 | 232 | } | |
243 | - | else if ($isInstanceOf( | |
233 | + | else if ($isInstanceOf(au, "Unit")) | |
244 | 234 | then unit | |
245 | 235 | else throw("Match error") | |
246 | 236 | } | |
247 | - | else if ($isInstanceOf( | |
237 | + | else if ($isInstanceOf(v, "Unit")) | |
248 | 238 | then unit | |
249 | 239 | else throw("Match error") | |
250 | 240 | } | |
251 | 241 | ||
252 | - | let | |
242 | + | let av = valueOrErrorMessage(at, d("invalid voting result address")) | |
253 | 243 | ||
254 | - | let | |
255 | - | let | |
256 | - | if ($isInstanceOf( | |
244 | + | let aw = { | |
245 | + | let v = getString(this, ae()) | |
246 | + | if ($isInstanceOf(v, "String")) | |
257 | 247 | then { | |
258 | - | let | |
259 | - | fromBase58String( | |
248 | + | let e = v | |
249 | + | fromBase58String(e) | |
260 | 250 | } | |
261 | - | else if ($isInstanceOf( | |
251 | + | else if ($isInstanceOf(v, "Unit")) | |
262 | 252 | then unit | |
263 | 253 | else throw("Match error") | |
264 | 254 | } | |
265 | 255 | ||
266 | - | let | |
256 | + | let ax = valueOrErrorMessage(aw, d("invalid lpAssetId")) | |
267 | 257 | ||
268 | - | func | |
258 | + | func ay (az,x) = if ((az.caller == x)) | |
269 | 259 | then true | |
270 | - | else | |
260 | + | else f("permission denied") | |
271 | 261 | ||
272 | 262 | ||
273 | - | func | |
263 | + | func aA (az) = ay(az, this) | |
274 | 264 | ||
275 | 265 | ||
276 | - | func | |
266 | + | func aB (az) = ay(az, am) | |
277 | 267 | ||
278 | 268 | ||
279 | - | @Callable( | |
280 | - | func stringEntry ( | |
281 | - | then $Tuple2([StringEntry( | |
269 | + | @Callable(az) | |
270 | + | func stringEntry (R,aC) = if (aB(az)) | |
271 | + | then $Tuple2([StringEntry(R, aC)], R) | |
282 | 272 | else $Tuple2(nil, unit) | |
283 | 273 | ||
284 | 274 | ||
285 | 275 | ||
286 | - | @Callable( | |
287 | - | func integerEntry ( | |
288 | - | then $Tuple2([IntegerEntry( | |
276 | + | @Callable(az) | |
277 | + | func integerEntry (R,aC) = if (aB(az)) | |
278 | + | then $Tuple2([IntegerEntry(R, aC)], R) | |
289 | 279 | else $Tuple2(nil, unit) | |
290 | 280 | ||
291 | 281 | ||
292 | 282 | ||
293 | - | @Callable( | |
294 | - | func booleanEntry ( | |
295 | - | then $Tuple2([BooleanEntry( | |
283 | + | @Callable(az) | |
284 | + | func booleanEntry (R,aC) = if (aB(az)) | |
285 | + | then $Tuple2([BooleanEntry(R, aC)], R) | |
296 | 286 | else $Tuple2(nil, unit) | |
297 | 287 | ||
298 | 288 | ||
299 | 289 | ||
300 | - | @Callable( | |
301 | - | func binaryEntry ( | |
302 | - | then $Tuple2([BinaryEntry( | |
290 | + | @Callable(az) | |
291 | + | func binaryEntry (R,aC) = if (aB(az)) | |
292 | + | then $Tuple2([BinaryEntry(R, aC)], R) | |
303 | 293 | else $Tuple2(nil, unit) | |
304 | 294 | ||
305 | 295 | ||
306 | 296 | ||
307 | - | @Callable( | |
308 | - | func deleteEntry ( | |
309 | - | then $Tuple2([DeleteEntry( | |
297 | + | @Callable(az) | |
298 | + | func deleteEntry (R) = if (aB(az)) | |
299 | + | then $Tuple2([DeleteEntry(R)], R) | |
310 | 300 | else $Tuple2(nil, unit) | |
311 | 301 | ||
312 | 302 | ||
313 | 303 | ||
314 | - | @Callable( | |
315 | - | func reissue ( | |
316 | - | then $Tuple2([Reissue( | |
304 | + | @Callable(az) | |
305 | + | func reissue (aD,aE,aF) = if (aB(az)) | |
306 | + | then $Tuple2([Reissue(aD, aE, aF)], aE) | |
317 | 307 | else $Tuple2(nil, unit) | |
318 | 308 | ||
319 | 309 | ||
320 | 310 | ||
321 | - | @Callable( | |
322 | - | func burn ( | |
323 | - | then $Tuple2([Burn( | |
311 | + | @Callable(az) | |
312 | + | func burn (aD,aE) = if (aB(az)) | |
313 | + | then $Tuple2([Burn(aD, aE)], aE) | |
324 | 314 | else $Tuple2(nil, unit) | |
325 | 315 | ||
326 | 316 | ||
327 | 317 | ||
328 | - | @Callable( | |
329 | - | func transferAsset ( | |
330 | - | then $Tuple2([ScriptTransfer(Address( | |
318 | + | @Callable(az) | |
319 | + | func transferAsset (aG,aE,aD) = if (aB(az)) | |
320 | + | then $Tuple2([ScriptTransfer(Address(aG), aE, aD)], aE) | |
331 | 321 | else $Tuple2(nil, unit) | |
332 | 322 | ||
333 | 323 | ||
334 | 324 | ||
335 | - | @Callable( | |
336 | - | func transferAssets ( | |
325 | + | @Callable(az) | |
326 | + | func transferAssets (aG,aH,aI) = if (aB(az)) | |
337 | 327 | then { | |
338 | - | func | |
339 | - | let | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | $Tuple2( | |
328 | + | func aJ (aK,aL) = { | |
329 | + | let aM = aK | |
330 | + | let aN = aM._1 | |
331 | + | let aO = aM._2 | |
332 | + | let aP = ScriptTransfer(Address(aG), aI[aO], aH[aO]) | |
333 | + | let aQ = (aN :+ aP) | |
334 | + | $Tuple2(aQ, (aO + 1)) | |
345 | 335 | } | |
346 | 336 | ||
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | func | |
352 | - | then | |
353 | - | else | |
337 | + | let aR = { | |
338 | + | let G = aH | |
339 | + | let H = size(G) | |
340 | + | let I = $Tuple2(nil, 0) | |
341 | + | func J (K,L) = if ((L >= H)) | |
342 | + | then K | |
343 | + | else aJ(K, G[L]) | |
354 | 344 | ||
355 | - | func | |
356 | - | then | |
345 | + | func M (K,L) = if ((L >= H)) | |
346 | + | then K | |
357 | 347 | else throw("List size exceeds 10") | |
358 | 348 | ||
359 | - | | |
349 | + | M(J(J(J(J(J(J(J(J(J(J(I, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
360 | 350 | } | |
361 | - | let | |
362 | - | let | |
363 | - | $Tuple2( | |
351 | + | let aS = aR._1 | |
352 | + | let aT = aR._2 | |
353 | + | $Tuple2(aS, unit) | |
364 | 354 | } | |
365 | 355 | else $Tuple2(nil, unit) | |
366 | 356 | ||
367 | 357 | ||
368 | 358 | ||
369 | - | @Callable( | |
370 | - | func transferWaves ( | |
371 | - | then $Tuple2([ScriptTransfer(Address( | |
359 | + | @Callable(az) | |
360 | + | func transferWaves (aG,aE) = if (aB(az)) | |
361 | + | then $Tuple2([ScriptTransfer(Address(aG), aE, unit)], aE) | |
372 | 362 | else $Tuple2(nil, unit) | |
373 | 363 | ||
374 | 364 | ||
375 | 365 | ||
376 | - | @Callable( | |
377 | - | func init (aY,aZ,ba,bb,bc,bd,be | |
378 | - | let | |
379 | - | if (( | |
380 | - | then $Tuple2([StringEntry( | |
366 | + | @Callable(az) | |
367 | + | func init (aU,aV,aW,aX,aY,aZ,ba,bb,bc,bd,be) = { | |
368 | + | let bf = aA(az) | |
369 | + | if ((bf == bf)) | |
370 | + | then $Tuple2([StringEntry(ae(), aU), StringEntry(ad(), aV), StringEntry(aa(), aW), StringEntry(ab(), aX), StringEntry(an(), aY), StringEntry(ao(), aZ), StringEntry(ac(), ba), IntegerEntry(ai(), bb), IntegerEntry(ak(), bc), IntegerEntry(aj(0), bd), IntegerEntry(af(), 0), IntegerEntry(ag(0), height), StringEntry(ap(), makeString(be, a))], unit) | |
381 | 371 | else throw("Strict value is not equal to itself.") | |
382 | 372 | } | |
383 | 373 | ||
384 | 374 | ||
385 | 375 | ||
386 | - | @Callable(f) | |
387 | - | func commitAfterStartWithLockRoundFor (bi,bj,g,bk,bl,bm) = $Tuple2(nil, invoke(addressFromStringValue(bi), "commitAfterStartWithLockRoundFor", [bj, g, bk], [AttachedPayment(bl, bm)])) | |
376 | + | @Callable(az) | |
377 | + | func commitAfterStartWithLockRoundFor (bg,bh,x,bi,bj,bk) = if (aB(az)) | |
378 | + | then $Tuple2(nil, invoke(addressFromStringValue(bg), "commitAfterStartWithLockRoundFor", [bh, x, bi], [AttachedPayment(bj, bk)])) | |
379 | + | else $Tuple2(nil, unit) | |
388 | 380 | ||
389 | 381 | ||
390 | 382 | ||
391 | - | @Callable( | |
392 | - | func call ( | |
393 | - | let | |
394 | - | $Tuple2(nil, | |
383 | + | @Callable(az) | |
384 | + | func call (bl,bm) = { | |
385 | + | let B = reentrantInvoke(am, bl, [az.callerPublicKey, bm], az.payments) | |
386 | + | $Tuple2(nil, B) | |
395 | 387 | } | |
396 | 388 | ||
397 | 389 | ||
398 | 390 | ||
399 | - | @Callable( | |
400 | - | func voteForTxId ( | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
391 | + | @Callable(az) | |
392 | + | func voteForTxId (l) = { | |
393 | + | let U = toBase58String(az.caller.bytes) | |
394 | + | let D = k(l) | |
395 | + | let B = [StringEntry(q(), l)] | |
396 | + | let bn = getString(this, q()) | |
397 | + | let Y = [if ((size(fromBase58String(l)) == j)) | |
406 | 398 | then true | |
407 | - | else | |
399 | + | else f((l + " is not valid txId")), if (if ((bn == unit)) | |
408 | 400 | then true | |
409 | - | else (value( | |
401 | + | else (value(bn) != l)) | |
410 | 402 | then true | |
411 | - | else | |
412 | - | if (( | |
413 | - | then | |
403 | + | else f((l + " is already allowed"))] | |
404 | + | if ((Y == Y)) | |
405 | + | then T(U, D, i, B) | |
414 | 406 | else throw("Strict value is not equal to itself.") | |
415 | 407 | } | |
416 | 408 | ||
417 | 409 | ||
418 | - | @Verifier( | |
419 | - | func | |
420 | - | let | |
421 | - | let | |
422 | - | if ($isInstanceOf( | |
410 | + | @Verifier(bo) | |
411 | + | func bp () = { | |
412 | + | let bq = { | |
413 | + | let v = at | |
414 | + | if ($isInstanceOf(v, "Address")) | |
423 | 415 | then { | |
424 | - | let | |
425 | - | valueOrElse(getBoolean( | |
416 | + | let br = v | |
417 | + | valueOrElse(getBoolean(br, ar(this, bo.id)), false) | |
426 | 418 | } | |
427 | 419 | else false | |
428 | 420 | } | |
429 | - | let | |
430 | - | let | |
421 | + | let bs = (bo.id == fromBase58String(valueOrElse(getString(this, q()), ""))) | |
422 | + | let bt = if ((size(u()) >= i)) | |
431 | 423 | then false | |
432 | - | else sigVerify( | |
433 | - | if (if ( | |
424 | + | else sigVerify(bo.bodyBytes, bo.proofs[0], bo.senderPublicKey) | |
425 | + | if (if (bq) | |
434 | 426 | then true | |
435 | - | else | |
427 | + | else bs) | |
436 | 428 | then true | |
437 | - | else | |
429 | + | else bt | |
438 | 430 | } | |
439 | 431 |
github/deemru/w8io/026f985 127.32 ms ◑