tx · Fx3rPdqrGRhiEJdbcKCthMMXi3cZF2FwNDFEdx9VKqDQ

3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o:  -0.01000000 Waves

2021.07.06 12:47 [1601587] smart account 3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o > SELF 0.00000000 Waves

{ "type": 13, "id": "Fx3rPdqrGRhiEJdbcKCthMMXi3cZF2FwNDFEdx9VKqDQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1625564851169, "version": 2, "chainId": 84, "sender": "3N7dNNWmv5578H8E2uvi5iCcfrL5LdiHd3o", "senderPublicKey": "Fm5T6aisXqgF7W3uEcDftbjgAc73pLjgSLfrd8kVQPp", "proofs": [ "2ZFYedDTNxBz4JVnNLKePJTMkNSzrv6SG81XWhDubJqHPbdUczwxXUGTVn15i2WWSWmcxJyszKGgQAk73oK8dxa1" ], "script": "base64:AAIFAAAAAAAAAFQIAhIAGgcKAmExEgFpGgkKAmEyEgNwbXQaFQoCYTMSD2N1c3RvbWVyQWRkcmVzcxoLCgJhNBIFcHJpY2UaDQoCYTUSByRtYXRjaDAaBwoCYTYSAWEAAAAAAAAAAQAAAAJhMQEAAAAHZGVwb3NpdAAAAAAEAAAAAmEyCQABkQAAAAIIBQAAAAJhMQAAAAhwYXltZW50cwAAAAAAAAAAAAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAACYTIAAAAHYXNzZXRJZAkAAAIAAAABAgAAABV3b3JrcyB3aXRoIHdhdmVzIG9ubHkEAAAAAmEzCQACWAAAAAEICAUAAAACYTEAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAJhNAQAAAACYTUJAAQaAAAAAgUAAAAEdGhpcwIAAAATaXRlbV9BX2NvdXBvbl9wcmljZQMJAAABAAAAAgUAAAACYTUCAAAAA0ludAQAAAACYTYFAAAAAmE1BQAAAAJhNgAAAAAAAAAAAAMJAABmAAAAAgUAAAACYTQIBQAAAAJhMgAAAAZhbW91bnQJAAACAAAAAQIAAAAEYmxhZAMJAABmAAAAAggFAAAAAmEyAAAABmFtb3VudAUAAAACYTQJAAACAAAAAQIAAAAFYmxhZDIJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAACBzdGF0dXM6cHVyY2hhc2VfaXRlbV9BX2N1c3RvbWVyXwUAAAACYTMCAAAACWNvbmZpcm1lZAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACAgAAAB9wcmljZTpwdXJjaGFzZV9pdGVtX0FfY3VzdG9tZXJfBQAAAAJhMwUAAAACYTQFAAAAA25pbAAAAABczcpR", "height": 1601587, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HpVGg2w1KqtKn1KSbd43HC7gFChtBJ5DpbZLdDGUZhLr Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func deposit () = {
8+ let pmt = i.payments[0]
9+ if (isDefined(pmt.assetId))
10+ then throw("works with waves only")
11+ else {
12+ let customerAddress = toBase58String(i.caller.bytes)
13+ let price = match getInteger(this, "item_A_coupon_price") {
14+ case a: Int =>
15+ a
16+ case _ =>
17+ 0
18+ }
19+ if ((price > pmt.amount))
20+ then throw("blad")
21+ else if ((pmt.amount > price))
22+ then throw("blad2")
23+ else [StringEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + customerAddress), price)]
24+ }
25+ }
26+
27+

github/deemru/w8io/026f985 
14.66 ms