tx · UBBBTCY1ZPVXyxpn12VjXXTjk48yYV4pUNvhMe7ArtK

3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o:  -0.01000000 Waves

2022.04.27 14:41 [2026841] smart account 3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o > SELF 0.00000000 Waves

{ "type": 13, "id": "UBBBTCY1ZPVXyxpn12VjXXTjk48yYV4pUNvhMe7ArtK", "fee": 1000000, "feeAssetId": null, "timestamp": 1651059697775, "version": 2, "chainId": 84, "sender": "3MqQhA21mw1UHWmdGMV9M9xQL1cpC93LF8o", "senderPublicKey": "E3TwKTkJRoqHq8mpKDYP1GvftP8ECfnCUT5atXuMXq53", "proofs": [ "35Vf4dJ1cmear8vWtWe9uTG3QpWS9oWbZ3XMspeX79Ukh5xkbG2FKpzqqZUkcLXqZc4R2R6TdLwJRtarM1M5GgLX" ], "script": "base64:AAIFAAAAAAAAAAgIAhIECgIICAAAAAEBAAAAC2lzUGF5bWVudE9rAAAAAQAAAAFpBAAAABFhY2NlcHRhYmxlQXNzZXRJZAEAAAAgrZ1IFoWReWfvw0p6hpnR3VDpBUk85P5AREeM4YPEwvQDCQAAAAAAAAIJAAGQAAAAAQgFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAJAAACAAAAAQIAAAAUUGF5bWVudCBub3QgYXR0YWNoZWQEAAAAAXAJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAEAAAAByRtYXRjaDAIBQAAAAFwAAAAB2Fzc2V0SWQDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAACkJ5dGVWZWN0b3IEAAAAB2Fzc2V0SWQFAAAAByRtYXRjaDADCQAAAAAAAAIFAAAAB2Fzc2V0SWQFAAAAEWFjY2VwdGFibGVBc3NldElkCQAAZwAAAAIIBQAAAAFwAAAABmFtb3VudAAAAAAAAA9CQAcJAABnAAAAAggFAAAAAXAAAAAGYW1vdW50AAAAAAAAD0JAAAAAAQAAAAFpAQAAAAtjb29yZGluYXRlcwAAAAIAAAAEdmVyaQAAAAJ4eQQAAAAKY3VycmVudEtleQkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAZ3YWxsZXQJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAACmN1cnJlbnRLZXkCAAAAAV8FAAAAAnh5AgAAAAJfYwQAAAAHaXNFbXB0eQkABB0AAAACBQAAAAR0aGlzBQAAAAZ3YWxsZXQDCQEAAAALaXNQYXltZW50T2sAAAABBQAAAAFpCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIFAAAABndhbGxldAUAAAAEdmVyaQUAAAADbmlsCQAAAgAAAAECAAAAHVdyb25nIHBheW1lbnQgYW1vdW50IG9yIGFzc2V0AAAAAJiWoG0=", "height": 2026841, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DiW3TagaiMbx7c1wnTqADunUQThscKpmdF9e1Hu2ny5F Next: BfKbS41w38YRajfgCS3H7qkrjkeUzqM1DAkj9jYDRkZf Diff:
OldNewDifferences
33 {-# CONTENT_TYPE DAPP #-}
44 func isPaymentOk (i) = {
55 let acceptableAssetId = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh'
6- if ((1000000 > size(i.payments)))
6+ if ((size(i.payments) == 0))
77 then throw("Payment not attached")
88 else {
99 let p = i.payments[0]
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func isPaymentOk (i) = {
55 let acceptableAssetId = base58'CgidgEMbCKXXErgJXVyZCFRaK8SBNA73Jg8mNXALtVKh'
6- if ((1000000 > size(i.payments)))
6+ if ((size(i.payments) == 0))
77 then throw("Payment not attached")
88 else {
99 let p = i.payments[0]
1010 match p.assetId {
1111 case assetId: ByteVector =>
1212 if ((assetId == acceptableAssetId))
1313 then (p.amount >= 1000000)
1414 else false
1515 case _ =>
1616 (p.amount >= 1000000)
1717 }
1818 }
1919 }
2020
2121
2222 @Callable(i)
2323 func coordinates (veri,xy) = {
2424 let currentKey = toBase58String(i.caller.bytes)
2525 let wallet = (((currentKey + "_") + xy) + "_c")
2626 let isEmpty = getString(this, wallet)
2727 if (isPaymentOk(i))
2828 then [StringEntry(wallet, veri)]
2929 else throw("Wrong payment amount or asset")
3030 }
3131
3232

github/deemru/w8io/169f3d6 
28.39 ms