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:AAIEAAAAAAAAADwIAhIDCgEIEgYKBAgBCAESBwoFCAgBCAESAwoBCBIDCgEIEgMKAQgSBAoCCAgSABIECgIICBIFCgMICAgAAAA8AAAAAAROT05FAgAAAAROT05FAAAAAAZWT1RFUlMAAAAAAAAAAAMAAAAABlFVT1JVTQAAAAAAAAAAAgAAAAAIRkVBVFVSRUQCAAAACGZlYXR1cmVkAAAAAAhERUxJU1RFRAIAAAAIZGVsaXN0ZWQAAAAABlZPVElORwIAAAAGdm90aW5nAAAAAAZSRVZFQUwCAAAABnJldmVhbAAAAAAIQVBQUk9WQUwCAAAACGFwcHJvdmFsAAAAAAhSRUpFQ1RFRAIAAAAIcmVqZWN0ZWQAAAAACEFDQ0VQVEVEAgAAAAhhY2NlcHRlZAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQUAAAAETk9ORQEAAAAPZ2V0SW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AAAgkBAAAAEGdldEtleVZvdGVzQ291bnQAAAACBQAAAARpdGVtBQAAAAR1c2VyBQAAAA1uZXdWb3Rlc0NvdW50CQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAQAAABBnZXRLZXlJdGVtU3RhdHVzAAAAAQUAAAAEaXRlbQUAAAAJbmV3U3RhdHVzBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABBJc3N1ZVRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkHK0JeEA==", "height": 1641505, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EVuzr7zjLCEckjE9DyT9dWqSYTfXLt7VfjeEENB7Q1CP Next: FPXzQ3tBxQwn7o7VenCya73YBcSJnYRjCZJvu7nE1mCQ Diff:
OldNewDifferences
8585 func getKeySupplierBalance (supplier) = (supplier + "_balance")
8686
8787
88+func getKeySupplierAvailableBalance (supplier) = (supplier + "_available")
89+
90+
8891 func getKeyUserItemCounter (user,item) = (((user + "_") + item) + "_counter")
8992
9093
119122
120123
121124 func getValueSupplierBalance (supplier) = getIntegerByKey(getKeySupplierBalance(supplier))
125+
126+
127+func getValueSupplierAvailableBalance (supplier) = getIntegerByKey(getKeySupplierAvailableBalance(supplier))
122128
123129
124130 func getValueUserItemCounter (user,item) = getIntegerByKey(getKeyUserItemCounter(user, item))
158164
159165
160166 func getValueItemSoldCounter (item) = getIntegerByKey(getKeyItemSoldCounter(item))
167+
168+
169+func getValueCouponPurchase (assetId) = getStringByKey(getKeyCouponPurchase(assetId))
161170
162171
163172 func getValueCommit (item,user) = getStringByKey(getKeyCommit(item, user))
337346
338347
339348 @Callable(i)
349+func burn () = {
350+ let caller = toBase58String(i.caller.bytes)
351+ let pmt = i.payments[0]
352+ if ((isDefined(pmt.assetId) == false))
353+ then throw("Need a coupon to burn")
354+ else {
355+ let assetId = match pmt.assetId {
356+ case e: ByteVector =>
357+ e
358+ case _ =>
359+ throw("Need a coupon to burn")
360+ }
361+ let asset = toBase58String(assetId)
362+ let purchase = getValueCouponPurchase(asset)
363+ let supplier = getValuePurchaseSupplier(purchase)
364+ if ((caller != supplier))
365+ then throw("Your are not the supplier for this coupon")
366+ else {
367+ let amount = getValuePurchaseAmount(purchase)
368+ let keySupplierAvailableBalance = getKeySupplierAvailableBalance(supplier)
369+ let availableBalance = (getValueSupplierAvailableBalance(supplier) + amount)
370+[Burn(assetId, 1), IntegerEntry(keySupplierAvailableBalance, availableBalance)]
371+ }
372+ }
373+ }
374+
375+
376+
377+@Callable(i)
340378 func voteCommit (item,hash) = {
341379 let user = toBase58String(i.caller.bytes)
342380 let commitsCount = getValueCommitsCount(item)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let NONE = "NONE"
55
66 let VOTERS = 3
77
88 let QUORUM = 2
99
1010 let FEATURED = "featured"
1111
1212 let DELISTED = "delisted"
1313
1414 let VOTING = "voting"
1515
1616 let REVEAL = "reveal"
1717
1818 let APPROVAL = "approval"
1919
2020 let REJECTED = "rejected"
2121
2222 let ACCEPTED = "accepted"
2323
2424 func getStringByKey (key) = match getString(this, key) {
2525 case a: String =>
2626 a
2727 case _ =>
2828 NONE
2929 }
3030
3131
3232 func getIntegerByKey (key) = match getInteger(this, key) {
3333 case a: Int =>
3434 a
3535 case _ =>
3636 0
3737 }
3838
3939
4040 func getKeySupplierAccount (account) = (account + "_account")
4141
4242
4343 func getSupplierAccount (account) = getStringByKey(getKeySupplierAccount(account))
4444
4545
4646 func getKeyItem (supplier,title) = {
4747 let supplierTitle = (supplier + title)
4848 ("item_" + toBase58String(sha256(toBytes(supplierTitle))))
4949 }
5050
5151
5252 func getKeyItemSupplier (item) = (item + "_owner")
5353
5454
5555 func getKeyItemTitle (item) = (item + "_title")
5656
5757
5858 func getKeyItemPrice (item) = (item + "_price")
5959
6060
6161 func getKeyItemData (item) = (item + "_data")
6262
6363
6464 func getKeyItemExpireDate (item) = (item + "_expiredate")
6565
6666
6767 func getKeyItemSoldCounter (item) = (item + "_sold")
6868
6969
7070 func getKeyCommit (item,user) = (((item + "_") + user) + "_commit")
7171
7272
7373 func getKeyCommitsCount (item) = (item + "_cmtcnt")
7474
7575
7676 func getKeyReveal (item,user) = (((item + "_") + user) + "_reveal")
7777
7878
7979 func getKeyItemStatus (item) = (item + "_status")
8080
8181
8282 func getKeyVotesCount (item,vote) = ((item + "_res:") + vote)
8383
8484
8585 func getKeySupplierBalance (supplier) = (supplier + "_balance")
8686
8787
88+func getKeySupplierAvailableBalance (supplier) = (supplier + "_available")
89+
90+
8891 func getKeyUserItemCounter (user,item) = (((user + "_") + item) + "_counter")
8992
9093
9194 func genPurchaseKey (supplier,item,user,counter) = ("purchase_" + toBase58String(sha256(toBytes(((((((supplier + "_") + item) + "_") + user) + "_") + toString(counter))))))
9295
9396
9497 func getKeyPurchaseStatus (purchase) = (purchase + "_status")
9598
9699
97100 func getKeyPurchaseItem (purchase) = (purchase + "_item")
98101
99102
100103 func getKeyPurchaseSupplier (purchase) = (purchase + "_supplier")
101104
102105
103106 func getKeyPurchaseUser (purchase) = (purchase + "_user")
104107
105108
106109 func getKeyPurchaseAmount (purchase) = (purchase + "_amount")
107110
108111
109112 func getKeyPurchaseTimestamp (purchase) = (purchase + "_timestamp")
110113
111114
112115 func getKeyPurchaseAssetId (purchase) = (purchase + "_assetId")
113116
114117
115118 func getKeyCouponPurchase (assetId) = (("coupon_" + assetId) + "_purchase")
116119
117120
118121 func getKeyCouponItem (assetId) = (("coupon_" + assetId) + "_item")
119122
120123
121124 func getValueSupplierBalance (supplier) = getIntegerByKey(getKeySupplierBalance(supplier))
125+
126+
127+func getValueSupplierAvailableBalance (supplier) = getIntegerByKey(getKeySupplierAvailableBalance(supplier))
122128
123129
124130 func getValueUserItemCounter (user,item) = getIntegerByKey(getKeyUserItemCounter(user, item))
125131
126132
127133 func getValuePurchaseStatus (purchase) = getStringByKey(getKeyPurchaseStatus(purchase))
128134
129135
130136 func getValuePurchaseItem (purchase) = getStringValue(this, getKeyPurchaseItem(purchase))
131137
132138
133139 func getValuePurchaseSupplier (purchase) = getStringValue(this, getKeyPurchaseSupplier(purchase))
134140
135141
136142 func getValuePurchaseUser (purchase) = getStringValue(this, getKeyPurchaseUser(purchase))
137143
138144
139145 func getValuePurchaseAmount (purchase) = getIntegerValue(this, getKeyPurchaseAmount(purchase))
140146
141147
142148 func getValuePurchaseTimestamp (purchase) = getIntegerByKey(getKeyPurchaseTimestamp(purchase))
143149
144150
145151 func getValuePurchaseAssetId (purchase) = getStringByKey(getKeyPurchaseAssetId(purchase))
146152
147153
148154 func getValueItemPrice (item) = getIntegerValue(this, getKeyItemPrice(item))
149155
150156
151157 func getValueItemSupplier (item) = getStringByKey(getKeyItemSupplier(item))
152158
153159
154160 func getValueItemExpireTime (item) = getIntegerByKey(getKeyItemExpireDate(item))
155161
156162
157163 func getValueItemTitle (item) = getStringByKey(getKeyItemTitle(item))
158164
159165
160166 func getValueItemSoldCounter (item) = getIntegerByKey(getKeyItemSoldCounter(item))
167+
168+
169+func getValueCouponPurchase (assetId) = getStringByKey(getKeyCouponPurchase(assetId))
161170
162171
163172 func getValueCommit (item,user) = getStringByKey(getKeyCommit(item, user))
164173
165174
166175 func getValueCommitsCount (item) = getIntegerByKey(getKeyCommitsCount(item))
167176
168177
169178 func getValueReveal (item,user) = getStringByKey(getKeyReveal(item, user))
170179
171180
172181 func getValueItemStatus (item) = getStringByKey(getKeyItemStatus(item))
173182
174183
175184 func getValueVotesCount (item,vote) = getIntegerByKey(getKeyVotesCount(item, vote))
176185
177186
178187 @Callable(i)
179188 func registerSupplier (data) = {
180189 let supplier = toBase58String(i.caller.bytes)
181190 let account = getSupplierAccount(supplier)
182191 if ((account != NONE))
183192 then throw("This address has already registred as supplier")
184193 else [StringEntry(getKeySupplierAccount(supplier), data)]
185194 }
186195
187196
188197
189198 @Callable(i)
190199 func addItem (title,price,data,expire) = {
191200 let supplier = toBase58String(i.caller.bytes)
192201 let account = getSupplierAccount(supplier)
193202 let item = getKeyItem(supplier, title)
194203 if ((account == NONE))
195204 then throw("You should register as supplier to add an item")
196205 else if ((0 >= price))
197206 then throw("Purchase amount cannot be less than item price")
198207 else if ((getValueItemSupplier(item) != NONE))
199208 then throw("An item already exists")
200209 else [StringEntry(getKeyItemSupplier(item), supplier), StringEntry(getKeyItemTitle(item), title), IntegerEntry(getKeyItemPrice(item), price), StringEntry(getKeyItemData(item), data), IntegerEntry(getKeyItemExpireDate(item), expire)]
201210 }
202211
203212
204213
205214 @Callable(i)
206215 func updateItem (item,title,price,data,expire) = {
207216 let supplier = toBase58String(i.caller.bytes)
208217 let account = getSupplierAccount(supplier)
209218 let itemSupplier = getValueItemSupplier(item)
210219 if ((account == NONE))
211220 then throw("You should register as supplier to remove an item")
212221 else if (if ((item == NONE))
213222 then true
214223 else (supplier != itemSupplier))
215224 then throw(("You don't owned item " + item))
216225 else [StringEntry(getKeyItemTitle(item), title), IntegerEntry(getKeyItemPrice(item), price), StringEntry(getKeyItemData(item), data), IntegerEntry(getKeyItemExpireDate(item), expire)]
217226 }
218227
219228
220229
221230 @Callable(i)
222231 func removeItem (item) = {
223232 let supplier = toBase58String(i.caller.bytes)
224233 let account = getSupplierAccount(supplier)
225234 let itemSupplier = getValueItemSupplier(item)
226235 if ((account == NONE))
227236 then throw("You should register as supplier to remove an item")
228237 else if (if ((item == NONE))
229238 then true
230239 else (supplier != itemSupplier))
231240 then throw(("You don't owned item " + item))
232241 else [DeleteEntry(getKeyItemSupplier(item)), DeleteEntry(getKeyItemTitle(item)), DeleteEntry(getKeyItemPrice(item)), DeleteEntry(getKeyItemData(item)), DeleteEntry(getKeyItemExpireDate(item))]
233242 }
234243
235244
236245
237246 @Callable(i)
238247 func purchase (item) = {
239248 let pmt = i.payments[0]
240249 if (isDefined(pmt.assetId))
241250 then throw("You can buy tokens only with Waves tokens")
242251 else {
243252 let user = toBase58String(i.caller.bytes)
244253 let price = getValueItemPrice(item)
245254 let supplier = getValueItemSupplier(item)
246255 let expire = getValueItemExpireTime(item)
247256 if (if ((expire > 0))
248257 then (lastBlock.timestamp >= expire)
249258 else false)
250259 then throw("Coupon expired")
251260 else if ((price > pmt.amount))
252261 then throw("Purchase amount cannot be less than item price")
253262 else if ((pmt.amount > price))
254263 then throw("Purchase amount cannot be higher than item price")
255264 else if ((supplier == NONE))
256265 then throw("Supplier does not exists")
257266 else {
258267 let keyUserItemCounter = getKeyUserItemCounter(user, item)
259268 let userItemCounter = (getValueUserItemCounter(user, item) + 1)
260269 let purchase = genPurchaseKey(supplier, item, user, userItemCounter)
261270 let keyPurchaseStatus = getKeyPurchaseStatus(purchase)
262271 let keyPurchaseItem = getKeyPurchaseItem(purchase)
263272 let keyPurchaseSupplier = getKeyPurchaseSupplier(purchase)
264273 let keyPurchaseUser = getKeyPurchaseUser(purchase)
265274 let keyPurchaseAmount = getKeyPurchaseAmount(purchase)
266275 let keyPurchaseTimestamp = getKeyPurchaseTimestamp(purchase)
267276 [IntegerEntry(keyUserItemCounter, userItemCounter), StringEntry(keyPurchaseStatus, APPROVAL), StringEntry(keyPurchaseItem, item), StringEntry(keyPurchaseSupplier, supplier), StringEntry(keyPurchaseUser, user), IntegerEntry(keyPurchaseAmount, pmt.amount), IntegerEntry(keyPurchaseTimestamp, lastBlock.timestamp)]
268277 }
269278 }
270279 }
271280
272281
273282
274283 @Callable(i)
275284 func rejectPurchase (purchase) = {
276285 let caller = toBase58String(i.caller.bytes)
277286 let status = getValuePurchaseStatus(purchase)
278287 let supplier = getValuePurchaseSupplier(purchase)
279288 let item = getValuePurchaseItem(purchase)
280289 if (if ((supplier == NONE))
281290 then true
282291 else (caller != supplier))
283292 then throw("Your are not the owner of this item")
284293 else if ((status != APPROVAL))
285294 then throw("You cannot reject this purchased")
286295 else {
287296 let keyPurchaseStatus = getKeyPurchaseStatus(purchase)
288297 let keyPurchaseAmount = getKeyPurchaseAmount(purchase)
289298 let keySupplierBalance = getKeySupplierBalance(supplier)
290299 let keyItemSoldCounter = getKeyItemSoldCounter(item)
291300 let user = getValuePurchaseUser(purchase)
292301 let amount = getValuePurchaseAmount(purchase)
293302 let supplierBalance = (getValueSupplierBalance(supplier) - amount)
294303 let itemSoldCounter = (getValueItemSoldCounter(item) - 1)
295304 let address = addressFromStringValue(user)
296305 [StringEntry(keyPurchaseStatus, REJECTED), IntegerEntry(keyPurchaseAmount, 0), ScriptTransfer(address, amount, unit)]
297306 }
298307 }
299308
300309
301310
302311 @Callable(i)
303312 func acceptPurchase (purchase,couponAssetId) = {
304313 let caller = toBase58String(i.caller.bytes)
305314 let status = getValuePurchaseStatus(purchase)
306315 let supplier = getValuePurchaseSupplier(purchase)
307316 let item = getValuePurchaseItem(purchase)
308317 let expire = getValueItemExpireTime(item)
309318 if (if ((supplier == NONE))
310319 then true
311320 else (caller != supplier))
312321 then throw("Your are not the owner of this item")
313322 else if ((status != APPROVAL))
314323 then throw("You cannot reject this purchased")
315324 else if ((item == NONE))
316325 then throw("Unexpected error [ tem not found ]")
317326 else if (if ((expire > 0))
318327 then (lastBlock.timestamp >= expire)
319328 else false)
320329 then throw("Coupon expired")
321330 else {
322331 let keyPurchaseStatus = getKeyPurchaseStatus(purchase)
323332 let keyPurchaseAssetId = getKeyPurchaseAssetId(purchase)
324333 let keySupplierBalance = getKeySupplierBalance(supplier)
325334 let keyItemSoldCounter = getKeyItemSoldCounter(item)
326335 let keyCouponPurchase = getKeyCouponPurchase(couponAssetId)
327336 let keyCouponItem = getKeyCouponItem(couponAssetId)
328337 let amount = getValuePurchaseAmount(purchase)
329338 let supplierBalance = (getValueSupplierBalance(supplier) + amount)
330339 let itemSoldCounter = (getValueItemSoldCounter(item) + 1)
331340 let user = getValuePurchaseUser(purchase)
332341 let address = addressFromStringValue(user)
333342 [StringEntry(keyPurchaseStatus, ACCEPTED), StringEntry(keyCouponPurchase, purchase), StringEntry(keyCouponItem, item), StringEntry(keyPurchaseAssetId, couponAssetId), IntegerEntry(keySupplierBalance, supplierBalance), IntegerEntry(keyItemSoldCounter, itemSoldCounter)]
334343 }
335344 }
336345
337346
338347
339348 @Callable(i)
349+func burn () = {
350+ let caller = toBase58String(i.caller.bytes)
351+ let pmt = i.payments[0]
352+ if ((isDefined(pmt.assetId) == false))
353+ then throw("Need a coupon to burn")
354+ else {
355+ let assetId = match pmt.assetId {
356+ case e: ByteVector =>
357+ e
358+ case _ =>
359+ throw("Need a coupon to burn")
360+ }
361+ let asset = toBase58String(assetId)
362+ let purchase = getValueCouponPurchase(asset)
363+ let supplier = getValuePurchaseSupplier(purchase)
364+ if ((caller != supplier))
365+ then throw("Your are not the supplier for this coupon")
366+ else {
367+ let amount = getValuePurchaseAmount(purchase)
368+ let keySupplierAvailableBalance = getKeySupplierAvailableBalance(supplier)
369+ let availableBalance = (getValueSupplierAvailableBalance(supplier) + amount)
370+[Burn(assetId, 1), IntegerEntry(keySupplierAvailableBalance, availableBalance)]
371+ }
372+ }
373+ }
374+
375+
376+
377+@Callable(i)
340378 func voteCommit (item,hash) = {
341379 let user = toBase58String(i.caller.bytes)
342380 let commitsCount = getValueCommitsCount(item)
343381 let status = getValueItemStatus(item)
344382 if ((commitsCount >= VOTERS))
345383 then throw("Reached max number of voters")
346384 else if ((getValueCommit(item, user) != NONE))
347385 then throw("You voted already")
348386 else if ((getKeyItemSupplier(item) == NONE))
349387 then throw("Item does not exists")
350388 else if (if ((status != NONE))
351389 then (status != VOTING)
352390 else false)
353391 then throw("Voting is not active for this item now")
354392 else {
355393 let newStatus = if ((commitsCount == VOTERS))
356394 then REVEAL
357395 else VOTING
358396 [StringEntry(getKeyCommit(item, user), hash), IntegerEntry(getKeyCommitsCount(item), (commitsCount + 1)), StringEntry(getKeyItemStatus(item), newStatus)]
359397 }
360398 }
361399
362400
363401
364402 @Callable(i)
365403 func voteReveal (item,vote,salt) = {
366404 let user = toBase58String(i.caller.bytes)
367405 let status = getValueItemStatus(item)
368406 let newVotesCount = (getValueVotesCount(item, vote) + 1)
369407 let saltedVote = toBase58String(sha256(toBytes(((item + vote) + salt))))
370408 if ((saltedVote != getValueCommit(item, user)))
371409 then throw("Reveal data is not valid")
372410 else if ((VOTERS > getValueCommitsCount(item)))
373411 then throw("Max number of voters not reached")
374412 else if ((getValueReveal(item, user) != NONE))
375413 then throw("You voted already")
376414 else if (if ((status != VOTING))
377415 then (status != REVEAL)
378416 else false)
379417 then throw("Voting is not active for this item now")
380418 else if (if ((vote != FEATURED))
381419 then (vote != DELISTED)
382420 else false)
383421 then throw("Provided voting option is incorrect")
384422 else {
385423 let newStatus = if ((newVotesCount >= QUORUM))
386424 then vote
387425 else REVEAL
388426 [StringEntry(getKeyReveal(item, user), vote), IntegerEntry(getKeyVotesCount(item, user), newVotesCount), StringEntry(getKeyItemStatus(item), newStatus)]
389427 }
390428 }
391429
392430
393431 @Verifier(tx)
394432 func verify () = match tx {
395433 case t: SetScriptTransaction =>
396434 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
397435 case t: IssueTransaction =>
398436 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
399437 case t: TransferTransaction =>
400438 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
401439 case _ =>
402440 false
403441 }
404442

github/deemru/w8io/169f3d6 
75.80 ms