tx · B1EpEemJ2uPWHsAihkrpgUGcruvJvphbio75UCZLPj3H 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7: -0.01400000 Waves 2021.08.03 04:37 [1641505] smart account 3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7 > SELF 0.00000000 Waves
{ "type": 13, "id": "B1EpEemJ2uPWHsAihkrpgUGcruvJvphbio75UCZLPj3H", "fee": 1400000, "feeAssetId": null, "timestamp": 1627954633900, "version": 2, "chainId": 84, "sender": "3MovmZoJtqutkf49oGXHzABSMUQ7HU5Dcg7", "senderPublicKey": "3tp5fNYyPi4jMnkf6s1k4kBqvJ7nm57SxzvLyi8RkxT2", "proofs": [ "KkXkBxbomCVfxMGD4qDz5dVA6r3Qd3Vm5xJ7QbXAvA567468oMEtpb5d8ZTQJkXUgbpxQBtaCk9zeEDbFRtaRBK" ], "script": "base64:AAIEAAAAAAAAADwIAhIDCgEIEgYKBAgBCAESBwoFCAgBCAESAwoBCBIDCgEIEgMKAQgSBAoCCAgSABIECgIICBIFCgMICAgAAAA8AAAAAAROT05FAgAAAAROT05FAAAAAAZWT1RFUlMAAAAAAAAAAAMAAAAABlFVT1JVTQAAAAAAAAAAAgAAAAAIRkVBVFVSRUQCAAAACGZlYXR1cmVkAAAAAAhERUxJU1RFRAIAAAAIZGVsaXN0ZWQAAAAABlZPVElORwIAAAAGdm90aW5nAAAAAAZSRVZFQUwCAAAABnJldmVhbAAAAAAIQVBQUk9WQUwCAAAACGFwcHJvdmFsAAAAAAhSRUpFQ1RFRAIAAAAIcmVqZWN0ZWQAAAAACEFDQ0VQVEVEAgAAAAhhY2NlcHRlZAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW50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AAgkBAAAAEGdldEtleVZvdGVzQ291bnQAAAACBQAAAARpdGVtBQAAAAR1c2VyBQAAAA1uZXdWb3Rlc0NvdW50CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAABBnZXRLZXlJdGVtU3RhdHVzAAAAAQUAAAAEaXRlbQUAAAAJbmV3U3RhdHVzBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHK0JeEA==", "height": 1641505, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EVuzr7zjLCEckjE9DyT9dWqSYTfXLt7VfjeEENB7Q1CP Next: FPXzQ3tBxQwn7o7VenCya73YBcSJnYRjCZJvu7nE1mCQ Diff:
Old | New | Differences | |
---|---|---|---|
91 | 91 | func K (t) = (t + "_balance") | |
92 | 92 | ||
93 | 93 | ||
94 | - | func L ( | |
94 | + | func L (t) = (t + "_available") | |
95 | 95 | ||
96 | 96 | ||
97 | - | func M ( | |
97 | + | func M (E,x) = (((E + "_") + x) + "_counter") | |
98 | 98 | ||
99 | 99 | ||
100 | - | func | |
100 | + | func N (t,x,E,O) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(O)))))) | |
101 | 101 | ||
102 | 102 | ||
103 | - | func | |
103 | + | func P (Q) = (Q + "_status") | |
104 | 104 | ||
105 | 105 | ||
106 | - | func R ( | |
106 | + | func R (Q) = (Q + "_item") | |
107 | 107 | ||
108 | 108 | ||
109 | - | func S ( | |
109 | + | func S (Q) = (Q + "_supplier") | |
110 | 110 | ||
111 | 111 | ||
112 | - | func T ( | |
112 | + | func T (Q) = (Q + "_user") | |
113 | 113 | ||
114 | 114 | ||
115 | - | func U ( | |
115 | + | func U (Q) = (Q + "_amount") | |
116 | 116 | ||
117 | 117 | ||
118 | - | func V ( | |
118 | + | func V (Q) = (Q + "_timestamp") | |
119 | 119 | ||
120 | 120 | ||
121 | - | func W ( | |
121 | + | func W (Q) = (Q + "_assetId") | |
122 | 122 | ||
123 | 123 | ||
124 | - | func | |
124 | + | func X (Y) = (("coupon_" + Y) + "_purchase") | |
125 | 125 | ||
126 | 126 | ||
127 | - | func Z ( | |
127 | + | func Z (Y) = (("coupon_" + Y) + "_item") | |
128 | 128 | ||
129 | 129 | ||
130 | - | func aa ( | |
130 | + | func aa (t) = o(K(t)) | |
131 | 131 | ||
132 | 132 | ||
133 | - | func ab ( | |
133 | + | func ab (t) = o(L(t)) | |
134 | 134 | ||
135 | 135 | ||
136 | - | func ac ( | |
136 | + | func ac (E,x) = o(M(E, x)) | |
137 | 137 | ||
138 | 138 | ||
139 | - | func ad ( | |
139 | + | func ad (Q) = k(P(Q)) | |
140 | 140 | ||
141 | 141 | ||
142 | - | func ae ( | |
142 | + | func ae (Q) = getStringValue(this, R(Q)) | |
143 | 143 | ||
144 | 144 | ||
145 | - | func af ( | |
145 | + | func af (Q) = getStringValue(this, S(Q)) | |
146 | 146 | ||
147 | 147 | ||
148 | - | func ag ( | |
148 | + | func ag (Q) = getStringValue(this, T(Q)) | |
149 | 149 | ||
150 | 150 | ||
151 | - | func ah ( | |
151 | + | func ah (Q) = getIntegerValue(this, U(Q)) | |
152 | 152 | ||
153 | 153 | ||
154 | - | func ai ( | |
154 | + | func ai (Q) = o(V(Q)) | |
155 | 155 | ||
156 | 156 | ||
157 | - | func aj ( | |
157 | + | func aj (Q) = k(W(Q)) | |
158 | 158 | ||
159 | 159 | ||
160 | - | func ak (x) = | |
160 | + | func ak (x) = getIntegerValue(this, z(x)) | |
161 | 161 | ||
162 | 162 | ||
163 | - | func al (x) = k( | |
163 | + | func al (x) = k(w(x)) | |
164 | 164 | ||
165 | 165 | ||
166 | - | func am (x) = o( | |
166 | + | func am (x) = o(B(x)) | |
167 | 167 | ||
168 | 168 | ||
169 | - | func an (x | |
169 | + | func an (x) = k(y(x)) | |
170 | 170 | ||
171 | 171 | ||
172 | - | func ao (x) = o( | |
172 | + | func ao (x) = o(C(x)) | |
173 | 173 | ||
174 | 174 | ||
175 | - | func ap ( | |
175 | + | func ap (Y) = k(X(Y)) | |
176 | 176 | ||
177 | 177 | ||
178 | - | func aq (x) = k( | |
178 | + | func aq (x,E) = k(D(x, E)) | |
179 | 179 | ||
180 | 180 | ||
181 | - | func ar (x | |
181 | + | func ar (x) = o(F(x)) | |
182 | 182 | ||
183 | 183 | ||
184 | - | @Callable(as) | |
185 | - | func registerSupplier (at) = { | |
186 | - | let t = toBase58String(as.caller.bytes) | |
184 | + | func as (x,E) = k(G(x, E)) | |
185 | + | ||
186 | + | ||
187 | + | func at (x) = k(H(x)) | |
188 | + | ||
189 | + | ||
190 | + | func au (x,J) = o(I(x, J)) | |
191 | + | ||
192 | + | ||
193 | + | @Callable(av) | |
194 | + | func registerSupplier (aw) = { | |
195 | + | let t = toBase58String(av.caller.bytes) | |
187 | 196 | let q = r(t) | |
188 | 197 | if ((q != a)) | |
189 | 198 | then throw("This address has already registred as supplier") | |
190 | - | else [StringEntry(p(t), | |
199 | + | else [StringEntry(p(t), aw)] | |
191 | 200 | } | |
192 | 201 | ||
193 | 202 | ||
194 | 203 | ||
195 | - | @Callable( | |
196 | - | func addItem (u, | |
197 | - | let t = toBase58String( | |
204 | + | @Callable(av) | |
205 | + | func addItem (u,ax,aw,ay) = { | |
206 | + | let t = toBase58String(av.caller.bytes) | |
198 | 207 | let q = r(t) | |
199 | 208 | let x = s(t, u) | |
200 | 209 | if ((q == a)) | |
201 | 210 | then throw("You should register as supplier to add an item") | |
202 | - | else if ((0 >= | |
211 | + | else if ((0 >= ax)) | |
203 | 212 | then throw("Purchase amount cannot be less than item price") | |
204 | - | else if (( | |
213 | + | else if ((al(x) != a)) | |
205 | 214 | then throw("An item already exists") | |
206 | - | else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), | |
215 | + | else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), ax), StringEntry(A(x), aw), IntegerEntry(B(x), ay)] | |
207 | 216 | } | |
208 | 217 | ||
209 | 218 | ||
210 | 219 | ||
211 | - | @Callable( | |
212 | - | func updateItem (x,u, | |
213 | - | let t = toBase58String( | |
220 | + | @Callable(av) | |
221 | + | func updateItem (x,u,ax,aw,ay) = { | |
222 | + | let t = toBase58String(av.caller.bytes) | |
214 | 223 | let q = r(t) | |
215 | - | let | |
224 | + | let az = al(x) | |
216 | 225 | if ((q == a)) | |
217 | 226 | then throw("You should register as supplier to remove an item") | |
218 | 227 | else if (if ((x == a)) | |
219 | 228 | then true | |
220 | - | else (t != | |
229 | + | else (t != az)) | |
221 | 230 | then throw(("You don't owned item " + x)) | |
222 | - | else [StringEntry(y(x), u), IntegerEntry(z(x), | |
231 | + | else [StringEntry(y(x), u), IntegerEntry(z(x), ax), StringEntry(A(x), aw), IntegerEntry(B(x), ay)] | |
223 | 232 | } | |
224 | 233 | ||
225 | 234 | ||
226 | 235 | ||
227 | - | @Callable( | |
236 | + | @Callable(av) | |
228 | 237 | func removeItem (x) = { | |
229 | - | let t = toBase58String( | |
238 | + | let t = toBase58String(av.caller.bytes) | |
230 | 239 | let q = r(t) | |
231 | - | let | |
240 | + | let az = al(x) | |
232 | 241 | if ((q == a)) | |
233 | 242 | then throw("You should register as supplier to remove an item") | |
234 | 243 | else if (if ((x == a)) | |
235 | 244 | then true | |
236 | - | else (t != | |
245 | + | else (t != az)) | |
237 | 246 | then throw(("You don't owned item " + x)) | |
238 | 247 | else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))] | |
239 | 248 | } | |
240 | 249 | ||
241 | 250 | ||
242 | 251 | ||
243 | - | @Callable( | |
252 | + | @Callable(av) | |
244 | 253 | func purchase (x) = { | |
245 | - | let | |
246 | - | if (isDefined( | |
254 | + | let aA = av.payments[0] | |
255 | + | if (isDefined(aA.assetId)) | |
247 | 256 | then throw("You can buy tokens only with Waves tokens") | |
248 | 257 | else { | |
249 | - | let E = toBase58String( | |
250 | - | let | |
251 | - | let t = | |
252 | - | let | |
253 | - | if (if (( | |
254 | - | then (lastBlock.timestamp >= | |
258 | + | let E = toBase58String(av.caller.bytes) | |
259 | + | let ax = ak(x) | |
260 | + | let t = al(x) | |
261 | + | let ay = am(x) | |
262 | + | if (if ((ay > 0)) | |
263 | + | then (lastBlock.timestamp >= ay) | |
255 | 264 | else false) | |
256 | 265 | then throw("Coupon expired") | |
257 | - | else if (( | |
266 | + | else if ((ax > aA.amount)) | |
258 | 267 | then throw("Purchase amount cannot be less than item price") | |
259 | - | else if (( | |
268 | + | else if ((aA.amount > ax)) | |
260 | 269 | then throw("Purchase amount cannot be higher than item price") | |
261 | 270 | else if ((t == a)) | |
262 | 271 | then throw("Supplier does not exists") | |
263 | 272 | else { | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | [IntegerEntry( | |
273 | + | let aB = M(E, x) | |
274 | + | let aC = (ac(E, x) + 1) | |
275 | + | let Q = N(t, x, E, aC) | |
276 | + | let aD = P(Q) | |
277 | + | let aE = R(Q) | |
278 | + | let aF = S(Q) | |
279 | + | let aG = T(Q) | |
280 | + | let aH = U(Q) | |
281 | + | let aI = V(Q) | |
282 | + | [IntegerEntry(aB, aC), StringEntry(aD, h), StringEntry(aE, x), StringEntry(aF, t), StringEntry(aG, E), IntegerEntry(aH, aA.amount), IntegerEntry(aI, lastBlock.timestamp)] | |
274 | 283 | } | |
275 | 284 | } | |
276 | 285 | } | |
277 | 286 | ||
278 | 287 | ||
279 | 288 | ||
280 | - | @Callable( | |
281 | - | func rejectPurchase ( | |
282 | - | let | |
283 | - | let | |
284 | - | let t = | |
285 | - | let x = | |
289 | + | @Callable(av) | |
290 | + | func rejectPurchase (Q) = { | |
291 | + | let aJ = toBase58String(av.caller.bytes) | |
292 | + | let aK = ad(Q) | |
293 | + | let t = af(Q) | |
294 | + | let x = ae(Q) | |
286 | 295 | if (if ((t == a)) | |
287 | 296 | then true | |
288 | - | else ( | |
297 | + | else (aJ != t)) | |
289 | 298 | then throw("Your are not the owner of this item") | |
290 | - | else if (( | |
299 | + | else if ((aK != h)) | |
291 | 300 | then throw("You cannot reject this purchased") | |
292 | 301 | else { | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let E = | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | [StringEntry( | |
302 | + | let aD = P(Q) | |
303 | + | let aH = U(Q) | |
304 | + | let aL = K(t) | |
305 | + | let aM = C(x) | |
306 | + | let E = ag(Q) | |
307 | + | let aN = ah(Q) | |
308 | + | let aO = (aa(t) - aN) | |
309 | + | let aP = (ao(x) - 1) | |
310 | + | let aQ = addressFromStringValue(E) | |
311 | + | [StringEntry(aD, i), IntegerEntry(aH, 0), ScriptTransfer(aQ, aN, unit)] | |
303 | 312 | } | |
304 | 313 | } | |
305 | 314 | ||
306 | 315 | ||
307 | 316 | ||
308 | - | @Callable( | |
309 | - | func acceptPurchase ( | |
310 | - | let | |
311 | - | let | |
312 | - | let t = | |
313 | - | let x = | |
314 | - | let | |
317 | + | @Callable(av) | |
318 | + | func acceptPurchase (Q,aR) = { | |
319 | + | let aJ = toBase58String(av.caller.bytes) | |
320 | + | let aK = ad(Q) | |
321 | + | let t = af(Q) | |
322 | + | let x = ae(Q) | |
323 | + | let ay = am(x) | |
315 | 324 | if (if ((t == a)) | |
316 | 325 | then true | |
317 | - | else ( | |
326 | + | else (aJ != t)) | |
318 | 327 | then throw("Your are not the owner of this item") | |
319 | - | else if (( | |
328 | + | else if ((aK != h)) | |
320 | 329 | then throw("You cannot reject this purchased") | |
321 | 330 | else if ((x == a)) | |
322 | 331 | then throw("Unexpected error [ tem not found ]") | |
323 | - | else if (if (( | |
324 | - | then (lastBlock.timestamp >= | |
332 | + | else if (if ((ay > 0)) | |
333 | + | then (lastBlock.timestamp >= ay) | |
325 | 334 | else false) | |
326 | 335 | then throw("Coupon expired") | |
327 | 336 | else { | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let E = | |
338 | - | let | |
339 | - | [StringEntry( | |
337 | + | let aD = P(Q) | |
338 | + | let aS = W(Q) | |
339 | + | let aL = K(t) | |
340 | + | let aM = C(x) | |
341 | + | let aT = X(aR) | |
342 | + | let aU = Z(aR) | |
343 | + | let aN = ah(Q) | |
344 | + | let aO = (aa(t) + aN) | |
345 | + | let aP = (ao(x) + 1) | |
346 | + | let E = ag(Q) | |
347 | + | let aQ = addressFromStringValue(E) | |
348 | + | [StringEntry(aD, j), StringEntry(aT, Q), StringEntry(aU, x), StringEntry(aS, aR), IntegerEntry(aL, aO), IntegerEntry(aM, aP)] | |
340 | 349 | } | |
341 | 350 | } | |
342 | 351 | ||
343 | 352 | ||
344 | 353 | ||
345 | - | @Callable(as) | |
346 | - | func voteCommit (x,aS) = { | |
347 | - | let E = toBase58String(as.caller.bytes) | |
348 | - | let aT = ao(x) | |
349 | - | let aH = aq(x) | |
350 | - | if ((aT >= b)) | |
354 | + | @Callable(av) | |
355 | + | func burn () = { | |
356 | + | let aJ = toBase58String(av.caller.bytes) | |
357 | + | let aA = av.payments[0] | |
358 | + | if ((isDefined(aA.assetId) == false)) | |
359 | + | then throw("Need a coupon to burn") | |
360 | + | else { | |
361 | + | let Y = { | |
362 | + | let m = aA.assetId | |
363 | + | if ($isInstanceOf(m, "ByteVector")) | |
364 | + | then { | |
365 | + | let aV = m | |
366 | + | aV | |
367 | + | } | |
368 | + | else throw("Need a coupon to burn") | |
369 | + | } | |
370 | + | let aW = toBase58String(Y) | |
371 | + | let Q = ap(aW) | |
372 | + | let t = af(Q) | |
373 | + | if ((aJ != t)) | |
374 | + | then throw("Your are not the supplier for this coupon") | |
375 | + | else { | |
376 | + | let aN = ah(Q) | |
377 | + | let aX = L(t) | |
378 | + | let aY = (ab(t) + aN) | |
379 | + | [Burn(Y, 1), IntegerEntry(aX, aY)] | |
380 | + | } | |
381 | + | } | |
382 | + | } | |
383 | + | ||
384 | + | ||
385 | + | ||
386 | + | @Callable(av) | |
387 | + | func voteCommit (x,aZ) = { | |
388 | + | let E = toBase58String(av.caller.bytes) | |
389 | + | let ba = ar(x) | |
390 | + | let aK = at(x) | |
391 | + | if ((ba >= b)) | |
351 | 392 | then throw("Reached max number of voters") | |
352 | - | else if (( | |
393 | + | else if ((aq(x, E) != a)) | |
353 | 394 | then throw("You voted already") | |
354 | 395 | else if ((w(x) == a)) | |
355 | 396 | then throw("Item does not exists") | |
356 | - | else if (if (( | |
357 | - | then ( | |
397 | + | else if (if ((aK != a)) | |
398 | + | then (aK != f) | |
358 | 399 | else false) | |
359 | 400 | then throw("Voting is not active for this item now") | |
360 | 401 | else { | |
361 | - | let | |
402 | + | let bb = if ((ba == b)) | |
362 | 403 | then g | |
363 | 404 | else f | |
364 | - | [StringEntry(D(x, E), | |
405 | + | [StringEntry(D(x, E), aZ), IntegerEntry(F(x), (ba + 1)), StringEntry(H(x), bb)] | |
365 | 406 | } | |
366 | 407 | } | |
367 | 408 | ||
368 | 409 | ||
369 | 410 | ||
370 | - | @Callable( | |
371 | - | func voteReveal (x,J, | |
372 | - | let E = toBase58String( | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | if (( | |
411 | + | @Callable(av) | |
412 | + | func voteReveal (x,J,bc) = { | |
413 | + | let E = toBase58String(av.caller.bytes) | |
414 | + | let aK = at(x) | |
415 | + | let bd = (au(x, J) + 1) | |
416 | + | let be = toBase58String(sha256(toBytes(((x + J) + bc)))) | |
417 | + | if ((be != aq(x, E))) | |
377 | 418 | then throw("Reveal data is not valid") | |
378 | - | else if ((b > | |
419 | + | else if ((b > ar(x))) | |
379 | 420 | then throw("Max number of voters not reached") | |
380 | - | else if (( | |
421 | + | else if ((as(x, E) != a)) | |
381 | 422 | then throw("You voted already") | |
382 | - | else if (if (( | |
383 | - | then ( | |
423 | + | else if (if ((aK != f)) | |
424 | + | then (aK != g) | |
384 | 425 | else false) | |
385 | 426 | then throw("Voting is not active for this item now") | |
386 | 427 | else if (if ((J != d)) | |
388 | 429 | else false) | |
389 | 430 | then throw("Provided voting option is incorrect") | |
390 | 431 | else { | |
391 | - | let | |
432 | + | let bb = if ((bd >= c)) | |
392 | 433 | then J | |
393 | 434 | else g | |
394 | - | [StringEntry(G(x, E), J), IntegerEntry(I(x, E), | |
435 | + | [StringEntry(G(x, E), J), IntegerEntry(I(x, E), bd), StringEntry(H(x), bb)] | |
395 | 436 | } | |
396 | 437 | } | |
397 | 438 | ||
398 | 439 | ||
399 | - | @Verifier( | |
400 | - | func | |
401 | - | let m = | |
440 | + | @Verifier(bf) | |
441 | + | func bg () = { | |
442 | + | let m = bf | |
402 | 443 | if ($isInstanceOf(m, "SetScriptTransaction")) | |
403 | 444 | then { | |
404 | - | let | |
405 | - | sigVerify( | |
445 | + | let bh = m | |
446 | + | sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey) | |
406 | 447 | } | |
407 | 448 | else if ($isInstanceOf(m, "IssueTransaction")) | |
408 | 449 | then { | |
409 | - | let | |
410 | - | sigVerify( | |
450 | + | let bh = m | |
451 | + | sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey) | |
411 | 452 | } | |
412 | 453 | else if ($isInstanceOf(m, "TransferTransaction")) | |
413 | 454 | then { | |
414 | - | let | |
415 | - | sigVerify( | |
455 | + | let bh = m | |
456 | + | sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey) | |
416 | 457 | } | |
417 | 458 | else false | |
418 | 459 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "NONE" | |
5 | 5 | ||
6 | 6 | let b = 3 | |
7 | 7 | ||
8 | 8 | let c = 2 | |
9 | 9 | ||
10 | 10 | let d = "featured" | |
11 | 11 | ||
12 | 12 | let e = "delisted" | |
13 | 13 | ||
14 | 14 | let f = "voting" | |
15 | 15 | ||
16 | 16 | let g = "reveal" | |
17 | 17 | ||
18 | 18 | let h = "approval" | |
19 | 19 | ||
20 | 20 | let i = "rejected" | |
21 | 21 | ||
22 | 22 | let j = "accepted" | |
23 | 23 | ||
24 | 24 | func k (l) = { | |
25 | 25 | let m = getString(this, l) | |
26 | 26 | if ($isInstanceOf(m, "String")) | |
27 | 27 | then { | |
28 | 28 | let n = m | |
29 | 29 | n | |
30 | 30 | } | |
31 | 31 | else a | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func o (l) = { | |
36 | 36 | let m = getInteger(this, l) | |
37 | 37 | if ($isInstanceOf(m, "Int")) | |
38 | 38 | then { | |
39 | 39 | let n = m | |
40 | 40 | n | |
41 | 41 | } | |
42 | 42 | else 0 | |
43 | 43 | } | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func p (q) = (q + "_account") | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func r (q) = k(p(q)) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func s (t,u) = { | |
53 | 53 | let v = (t + u) | |
54 | 54 | ("item_" + toBase58String(sha256(toBytes(v)))) | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func w (x) = (x + "_owner") | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func y (x) = (x + "_title") | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func z (x) = (x + "_price") | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func A (x) = (x + "_data") | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func B (x) = (x + "_expiredate") | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func C (x) = (x + "_sold") | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func D (x,E) = (((x + "_") + E) + "_commit") | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func F (x) = (x + "_cmtcnt") | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func G (x,E) = (((x + "_") + E) + "_reveal") | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func H (x) = (x + "_status") | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func I (x,J) = ((x + "_res:") + J) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func K (t) = (t + "_balance") | |
92 | 92 | ||
93 | 93 | ||
94 | - | func L ( | |
94 | + | func L (t) = (t + "_available") | |
95 | 95 | ||
96 | 96 | ||
97 | - | func M ( | |
97 | + | func M (E,x) = (((E + "_") + x) + "_counter") | |
98 | 98 | ||
99 | 99 | ||
100 | - | func | |
100 | + | func N (t,x,E,O) = ("purchase_" + toBase58String(sha256(toBytes(((((((t + "_") + x) + "_") + E) + "_") + toString(O)))))) | |
101 | 101 | ||
102 | 102 | ||
103 | - | func | |
103 | + | func P (Q) = (Q + "_status") | |
104 | 104 | ||
105 | 105 | ||
106 | - | func R ( | |
106 | + | func R (Q) = (Q + "_item") | |
107 | 107 | ||
108 | 108 | ||
109 | - | func S ( | |
109 | + | func S (Q) = (Q + "_supplier") | |
110 | 110 | ||
111 | 111 | ||
112 | - | func T ( | |
112 | + | func T (Q) = (Q + "_user") | |
113 | 113 | ||
114 | 114 | ||
115 | - | func U ( | |
115 | + | func U (Q) = (Q + "_amount") | |
116 | 116 | ||
117 | 117 | ||
118 | - | func V ( | |
118 | + | func V (Q) = (Q + "_timestamp") | |
119 | 119 | ||
120 | 120 | ||
121 | - | func W ( | |
121 | + | func W (Q) = (Q + "_assetId") | |
122 | 122 | ||
123 | 123 | ||
124 | - | func | |
124 | + | func X (Y) = (("coupon_" + Y) + "_purchase") | |
125 | 125 | ||
126 | 126 | ||
127 | - | func Z ( | |
127 | + | func Z (Y) = (("coupon_" + Y) + "_item") | |
128 | 128 | ||
129 | 129 | ||
130 | - | func aa ( | |
130 | + | func aa (t) = o(K(t)) | |
131 | 131 | ||
132 | 132 | ||
133 | - | func ab ( | |
133 | + | func ab (t) = o(L(t)) | |
134 | 134 | ||
135 | 135 | ||
136 | - | func ac ( | |
136 | + | func ac (E,x) = o(M(E, x)) | |
137 | 137 | ||
138 | 138 | ||
139 | - | func ad ( | |
139 | + | func ad (Q) = k(P(Q)) | |
140 | 140 | ||
141 | 141 | ||
142 | - | func ae ( | |
142 | + | func ae (Q) = getStringValue(this, R(Q)) | |
143 | 143 | ||
144 | 144 | ||
145 | - | func af ( | |
145 | + | func af (Q) = getStringValue(this, S(Q)) | |
146 | 146 | ||
147 | 147 | ||
148 | - | func ag ( | |
148 | + | func ag (Q) = getStringValue(this, T(Q)) | |
149 | 149 | ||
150 | 150 | ||
151 | - | func ah ( | |
151 | + | func ah (Q) = getIntegerValue(this, U(Q)) | |
152 | 152 | ||
153 | 153 | ||
154 | - | func ai ( | |
154 | + | func ai (Q) = o(V(Q)) | |
155 | 155 | ||
156 | 156 | ||
157 | - | func aj ( | |
157 | + | func aj (Q) = k(W(Q)) | |
158 | 158 | ||
159 | 159 | ||
160 | - | func ak (x) = | |
160 | + | func ak (x) = getIntegerValue(this, z(x)) | |
161 | 161 | ||
162 | 162 | ||
163 | - | func al (x) = k( | |
163 | + | func al (x) = k(w(x)) | |
164 | 164 | ||
165 | 165 | ||
166 | - | func am (x) = o( | |
166 | + | func am (x) = o(B(x)) | |
167 | 167 | ||
168 | 168 | ||
169 | - | func an (x | |
169 | + | func an (x) = k(y(x)) | |
170 | 170 | ||
171 | 171 | ||
172 | - | func ao (x) = o( | |
172 | + | func ao (x) = o(C(x)) | |
173 | 173 | ||
174 | 174 | ||
175 | - | func ap ( | |
175 | + | func ap (Y) = k(X(Y)) | |
176 | 176 | ||
177 | 177 | ||
178 | - | func aq (x) = k( | |
178 | + | func aq (x,E) = k(D(x, E)) | |
179 | 179 | ||
180 | 180 | ||
181 | - | func ar (x | |
181 | + | func ar (x) = o(F(x)) | |
182 | 182 | ||
183 | 183 | ||
184 | - | @Callable(as) | |
185 | - | func registerSupplier (at) = { | |
186 | - | let t = toBase58String(as.caller.bytes) | |
184 | + | func as (x,E) = k(G(x, E)) | |
185 | + | ||
186 | + | ||
187 | + | func at (x) = k(H(x)) | |
188 | + | ||
189 | + | ||
190 | + | func au (x,J) = o(I(x, J)) | |
191 | + | ||
192 | + | ||
193 | + | @Callable(av) | |
194 | + | func registerSupplier (aw) = { | |
195 | + | let t = toBase58String(av.caller.bytes) | |
187 | 196 | let q = r(t) | |
188 | 197 | if ((q != a)) | |
189 | 198 | then throw("This address has already registred as supplier") | |
190 | - | else [StringEntry(p(t), | |
199 | + | else [StringEntry(p(t), aw)] | |
191 | 200 | } | |
192 | 201 | ||
193 | 202 | ||
194 | 203 | ||
195 | - | @Callable( | |
196 | - | func addItem (u, | |
197 | - | let t = toBase58String( | |
204 | + | @Callable(av) | |
205 | + | func addItem (u,ax,aw,ay) = { | |
206 | + | let t = toBase58String(av.caller.bytes) | |
198 | 207 | let q = r(t) | |
199 | 208 | let x = s(t, u) | |
200 | 209 | if ((q == a)) | |
201 | 210 | then throw("You should register as supplier to add an item") | |
202 | - | else if ((0 >= | |
211 | + | else if ((0 >= ax)) | |
203 | 212 | then throw("Purchase amount cannot be less than item price") | |
204 | - | else if (( | |
213 | + | else if ((al(x) != a)) | |
205 | 214 | then throw("An item already exists") | |
206 | - | else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), | |
215 | + | else [StringEntry(w(x), t), StringEntry(y(x), u), IntegerEntry(z(x), ax), StringEntry(A(x), aw), IntegerEntry(B(x), ay)] | |
207 | 216 | } | |
208 | 217 | ||
209 | 218 | ||
210 | 219 | ||
211 | - | @Callable( | |
212 | - | func updateItem (x,u, | |
213 | - | let t = toBase58String( | |
220 | + | @Callable(av) | |
221 | + | func updateItem (x,u,ax,aw,ay) = { | |
222 | + | let t = toBase58String(av.caller.bytes) | |
214 | 223 | let q = r(t) | |
215 | - | let | |
224 | + | let az = al(x) | |
216 | 225 | if ((q == a)) | |
217 | 226 | then throw("You should register as supplier to remove an item") | |
218 | 227 | else if (if ((x == a)) | |
219 | 228 | then true | |
220 | - | else (t != | |
229 | + | else (t != az)) | |
221 | 230 | then throw(("You don't owned item " + x)) | |
222 | - | else [StringEntry(y(x), u), IntegerEntry(z(x), | |
231 | + | else [StringEntry(y(x), u), IntegerEntry(z(x), ax), StringEntry(A(x), aw), IntegerEntry(B(x), ay)] | |
223 | 232 | } | |
224 | 233 | ||
225 | 234 | ||
226 | 235 | ||
227 | - | @Callable( | |
236 | + | @Callable(av) | |
228 | 237 | func removeItem (x) = { | |
229 | - | let t = toBase58String( | |
238 | + | let t = toBase58String(av.caller.bytes) | |
230 | 239 | let q = r(t) | |
231 | - | let | |
240 | + | let az = al(x) | |
232 | 241 | if ((q == a)) | |
233 | 242 | then throw("You should register as supplier to remove an item") | |
234 | 243 | else if (if ((x == a)) | |
235 | 244 | then true | |
236 | - | else (t != | |
245 | + | else (t != az)) | |
237 | 246 | then throw(("You don't owned item " + x)) | |
238 | 247 | else [DeleteEntry(w(x)), DeleteEntry(y(x)), DeleteEntry(z(x)), DeleteEntry(A(x)), DeleteEntry(B(x))] | |
239 | 248 | } | |
240 | 249 | ||
241 | 250 | ||
242 | 251 | ||
243 | - | @Callable( | |
252 | + | @Callable(av) | |
244 | 253 | func purchase (x) = { | |
245 | - | let | |
246 | - | if (isDefined( | |
254 | + | let aA = av.payments[0] | |
255 | + | if (isDefined(aA.assetId)) | |
247 | 256 | then throw("You can buy tokens only with Waves tokens") | |
248 | 257 | else { | |
249 | - | let E = toBase58String( | |
250 | - | let | |
251 | - | let t = | |
252 | - | let | |
253 | - | if (if (( | |
254 | - | then (lastBlock.timestamp >= | |
258 | + | let E = toBase58String(av.caller.bytes) | |
259 | + | let ax = ak(x) | |
260 | + | let t = al(x) | |
261 | + | let ay = am(x) | |
262 | + | if (if ((ay > 0)) | |
263 | + | then (lastBlock.timestamp >= ay) | |
255 | 264 | else false) | |
256 | 265 | then throw("Coupon expired") | |
257 | - | else if (( | |
266 | + | else if ((ax > aA.amount)) | |
258 | 267 | then throw("Purchase amount cannot be less than item price") | |
259 | - | else if (( | |
268 | + | else if ((aA.amount > ax)) | |
260 | 269 | then throw("Purchase amount cannot be higher than item price") | |
261 | 270 | else if ((t == a)) | |
262 | 271 | then throw("Supplier does not exists") | |
263 | 272 | else { | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | let | |
273 | - | [IntegerEntry( | |
273 | + | let aB = M(E, x) | |
274 | + | let aC = (ac(E, x) + 1) | |
275 | + | let Q = N(t, x, E, aC) | |
276 | + | let aD = P(Q) | |
277 | + | let aE = R(Q) | |
278 | + | let aF = S(Q) | |
279 | + | let aG = T(Q) | |
280 | + | let aH = U(Q) | |
281 | + | let aI = V(Q) | |
282 | + | [IntegerEntry(aB, aC), StringEntry(aD, h), StringEntry(aE, x), StringEntry(aF, t), StringEntry(aG, E), IntegerEntry(aH, aA.amount), IntegerEntry(aI, lastBlock.timestamp)] | |
274 | 283 | } | |
275 | 284 | } | |
276 | 285 | } | |
277 | 286 | ||
278 | 287 | ||
279 | 288 | ||
280 | - | @Callable( | |
281 | - | func rejectPurchase ( | |
282 | - | let | |
283 | - | let | |
284 | - | let t = | |
285 | - | let x = | |
289 | + | @Callable(av) | |
290 | + | func rejectPurchase (Q) = { | |
291 | + | let aJ = toBase58String(av.caller.bytes) | |
292 | + | let aK = ad(Q) | |
293 | + | let t = af(Q) | |
294 | + | let x = ae(Q) | |
286 | 295 | if (if ((t == a)) | |
287 | 296 | then true | |
288 | - | else ( | |
297 | + | else (aJ != t)) | |
289 | 298 | then throw("Your are not the owner of this item") | |
290 | - | else if (( | |
299 | + | else if ((aK != h)) | |
291 | 300 | then throw("You cannot reject this purchased") | |
292 | 301 | else { | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let E = | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | [StringEntry( | |
302 | + | let aD = P(Q) | |
303 | + | let aH = U(Q) | |
304 | + | let aL = K(t) | |
305 | + | let aM = C(x) | |
306 | + | let E = ag(Q) | |
307 | + | let aN = ah(Q) | |
308 | + | let aO = (aa(t) - aN) | |
309 | + | let aP = (ao(x) - 1) | |
310 | + | let aQ = addressFromStringValue(E) | |
311 | + | [StringEntry(aD, i), IntegerEntry(aH, 0), ScriptTransfer(aQ, aN, unit)] | |
303 | 312 | } | |
304 | 313 | } | |
305 | 314 | ||
306 | 315 | ||
307 | 316 | ||
308 | - | @Callable( | |
309 | - | func acceptPurchase ( | |
310 | - | let | |
311 | - | let | |
312 | - | let t = | |
313 | - | let x = | |
314 | - | let | |
317 | + | @Callable(av) | |
318 | + | func acceptPurchase (Q,aR) = { | |
319 | + | let aJ = toBase58String(av.caller.bytes) | |
320 | + | let aK = ad(Q) | |
321 | + | let t = af(Q) | |
322 | + | let x = ae(Q) | |
323 | + | let ay = am(x) | |
315 | 324 | if (if ((t == a)) | |
316 | 325 | then true | |
317 | - | else ( | |
326 | + | else (aJ != t)) | |
318 | 327 | then throw("Your are not the owner of this item") | |
319 | - | else if (( | |
328 | + | else if ((aK != h)) | |
320 | 329 | then throw("You cannot reject this purchased") | |
321 | 330 | else if ((x == a)) | |
322 | 331 | then throw("Unexpected error [ tem not found ]") | |
323 | - | else if (if (( | |
324 | - | then (lastBlock.timestamp >= | |
332 | + | else if (if ((ay > 0)) | |
333 | + | then (lastBlock.timestamp >= ay) | |
325 | 334 | else false) | |
326 | 335 | then throw("Coupon expired") | |
327 | 336 | else { | |
328 | - | let | |
329 | - | let | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | let | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let E = | |
338 | - | let | |
339 | - | [StringEntry( | |
337 | + | let aD = P(Q) | |
338 | + | let aS = W(Q) | |
339 | + | let aL = K(t) | |
340 | + | let aM = C(x) | |
341 | + | let aT = X(aR) | |
342 | + | let aU = Z(aR) | |
343 | + | let aN = ah(Q) | |
344 | + | let aO = (aa(t) + aN) | |
345 | + | let aP = (ao(x) + 1) | |
346 | + | let E = ag(Q) | |
347 | + | let aQ = addressFromStringValue(E) | |
348 | + | [StringEntry(aD, j), StringEntry(aT, Q), StringEntry(aU, x), StringEntry(aS, aR), IntegerEntry(aL, aO), IntegerEntry(aM, aP)] | |
340 | 349 | } | |
341 | 350 | } | |
342 | 351 | ||
343 | 352 | ||
344 | 353 | ||
345 | - | @Callable(as) | |
346 | - | func voteCommit (x,aS) = { | |
347 | - | let E = toBase58String(as.caller.bytes) | |
348 | - | let aT = ao(x) | |
349 | - | let aH = aq(x) | |
350 | - | if ((aT >= b)) | |
354 | + | @Callable(av) | |
355 | + | func burn () = { | |
356 | + | let aJ = toBase58String(av.caller.bytes) | |
357 | + | let aA = av.payments[0] | |
358 | + | if ((isDefined(aA.assetId) == false)) | |
359 | + | then throw("Need a coupon to burn") | |
360 | + | else { | |
361 | + | let Y = { | |
362 | + | let m = aA.assetId | |
363 | + | if ($isInstanceOf(m, "ByteVector")) | |
364 | + | then { | |
365 | + | let aV = m | |
366 | + | aV | |
367 | + | } | |
368 | + | else throw("Need a coupon to burn") | |
369 | + | } | |
370 | + | let aW = toBase58String(Y) | |
371 | + | let Q = ap(aW) | |
372 | + | let t = af(Q) | |
373 | + | if ((aJ != t)) | |
374 | + | then throw("Your are not the supplier for this coupon") | |
375 | + | else { | |
376 | + | let aN = ah(Q) | |
377 | + | let aX = L(t) | |
378 | + | let aY = (ab(t) + aN) | |
379 | + | [Burn(Y, 1), IntegerEntry(aX, aY)] | |
380 | + | } | |
381 | + | } | |
382 | + | } | |
383 | + | ||
384 | + | ||
385 | + | ||
386 | + | @Callable(av) | |
387 | + | func voteCommit (x,aZ) = { | |
388 | + | let E = toBase58String(av.caller.bytes) | |
389 | + | let ba = ar(x) | |
390 | + | let aK = at(x) | |
391 | + | if ((ba >= b)) | |
351 | 392 | then throw("Reached max number of voters") | |
352 | - | else if (( | |
393 | + | else if ((aq(x, E) != a)) | |
353 | 394 | then throw("You voted already") | |
354 | 395 | else if ((w(x) == a)) | |
355 | 396 | then throw("Item does not exists") | |
356 | - | else if (if (( | |
357 | - | then ( | |
397 | + | else if (if ((aK != a)) | |
398 | + | then (aK != f) | |
358 | 399 | else false) | |
359 | 400 | then throw("Voting is not active for this item now") | |
360 | 401 | else { | |
361 | - | let | |
402 | + | let bb = if ((ba == b)) | |
362 | 403 | then g | |
363 | 404 | else f | |
364 | - | [StringEntry(D(x, E), | |
405 | + | [StringEntry(D(x, E), aZ), IntegerEntry(F(x), (ba + 1)), StringEntry(H(x), bb)] | |
365 | 406 | } | |
366 | 407 | } | |
367 | 408 | ||
368 | 409 | ||
369 | 410 | ||
370 | - | @Callable( | |
371 | - | func voteReveal (x,J, | |
372 | - | let E = toBase58String( | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | if (( | |
411 | + | @Callable(av) | |
412 | + | func voteReveal (x,J,bc) = { | |
413 | + | let E = toBase58String(av.caller.bytes) | |
414 | + | let aK = at(x) | |
415 | + | let bd = (au(x, J) + 1) | |
416 | + | let be = toBase58String(sha256(toBytes(((x + J) + bc)))) | |
417 | + | if ((be != aq(x, E))) | |
377 | 418 | then throw("Reveal data is not valid") | |
378 | - | else if ((b > | |
419 | + | else if ((b > ar(x))) | |
379 | 420 | then throw("Max number of voters not reached") | |
380 | - | else if (( | |
421 | + | else if ((as(x, E) != a)) | |
381 | 422 | then throw("You voted already") | |
382 | - | else if (if (( | |
383 | - | then ( | |
423 | + | else if (if ((aK != f)) | |
424 | + | then (aK != g) | |
384 | 425 | else false) | |
385 | 426 | then throw("Voting is not active for this item now") | |
386 | 427 | else if (if ((J != d)) | |
387 | 428 | then (J != e) | |
388 | 429 | else false) | |
389 | 430 | then throw("Provided voting option is incorrect") | |
390 | 431 | else { | |
391 | - | let | |
432 | + | let bb = if ((bd >= c)) | |
392 | 433 | then J | |
393 | 434 | else g | |
394 | - | [StringEntry(G(x, E), J), IntegerEntry(I(x, E), | |
435 | + | [StringEntry(G(x, E), J), IntegerEntry(I(x, E), bd), StringEntry(H(x), bb)] | |
395 | 436 | } | |
396 | 437 | } | |
397 | 438 | ||
398 | 439 | ||
399 | - | @Verifier( | |
400 | - | func | |
401 | - | let m = | |
440 | + | @Verifier(bf) | |
441 | + | func bg () = { | |
442 | + | let m = bf | |
402 | 443 | if ($isInstanceOf(m, "SetScriptTransaction")) | |
403 | 444 | then { | |
404 | - | let | |
405 | - | sigVerify( | |
445 | + | let bh = m | |
446 | + | sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey) | |
406 | 447 | } | |
407 | 448 | else if ($isInstanceOf(m, "IssueTransaction")) | |
408 | 449 | then { | |
409 | - | let | |
410 | - | sigVerify( | |
450 | + | let bh = m | |
451 | + | sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey) | |
411 | 452 | } | |
412 | 453 | else if ($isInstanceOf(m, "TransferTransaction")) | |
413 | 454 | then { | |
414 | - | let | |
415 | - | sigVerify( | |
455 | + | let bh = m | |
456 | + | sigVerify(bf.bodyBytes, bf.proofs[0], bf.senderPublicKey) | |
416 | 457 | } | |
417 | 458 | else false | |
418 | 459 | } | |
419 | 460 |
github/deemru/w8io/169f3d6 133.97 ms ◑