tx · GpWBv9XRP3ZUknCpH5dJchRxFBzU9YVPwWK7txmPCT8e

3MzFjVphaDKp1oZjd5KmCYou3wCzCzTmEFe:  -0.00100000 Waves

2022.09.18 22:34 [2234977] smart account 3MzFjVphaDKp1oZjd5KmCYou3wCzCzTmEFe > SELF 0.00000000 Waves

{ "type": 13, "id": "GpWBv9XRP3ZUknCpH5dJchRxFBzU9YVPwWK7txmPCT8e", "fee": 100000, "feeAssetId": null, "timestamp": 1663529632018, "version": 2, "chainId": 84, "sender": "3MzFjVphaDKp1oZjd5KmCYou3wCzCzTmEFe", "senderPublicKey": "FFVf3kC6HkjRMmf8W6Zr2bNKhJ5EN5W1vG44GbgvHd9Z", "proofs": [ "2ZW3tpYW11gxVmW1BqshdejJenHkTDzpV4xdG31RaSe7DCHMwrSsVXJhETJ3MPXueQiekpPvwsq6QmDY8qbr3rJr" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAAAAAAEAAAABaQEAAAAIcHVyY2hhc2UAAAAABAAAAANwbXQJAQAAAAdleHRyYWN0AAAAAQgFAAAAAWkAAAAHcGF5bWVudAMJAQAAAAlpc0RlZmluZWQAAAABCAUAAAADcG10AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAASQ2FuIHVzZSBXQVZFUyBvbmx5BAAAAA9jdXN0b21lckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFcHJpY2UEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwIAAAATSXRlbV9BX0NvdXBvbl9QcmljZQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAwkBAAAAAiE9AAAAAggFAAAAA3BtdAAAAAZhbW91bnQFAAAABXByaWNlCQAAAgAAAAECAAAAIkFtb3VudCBpcyBsZXNzIG9yIG1vcmUgdGhhbiBwcmljZSAJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAgc3RhdHVzOiBwdXJjaGFzZV9pdGVtQV9jdXN0b21lcl8FAAAAD2N1c3RvbWVyQWRkcmVzcwIAAAAJY29uZmlybWVkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAH3ByaWNlOiBwdXJjaGFzZV9pdGVtQV9jdXN0b21lcl8FAAAAD2N1c3RvbWVyQWRkcmVzcwUAAAAFcHJpY2UFAAAAA25pbAAAAABjtLQk", "height": 2234977, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: 9TfShDSzDmUQTcJwaXsueTnXaTmFAafgsLVziag7TuPv Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+
5+
6+@Callable(i)
7+func purchase () = {
8+ let pmt = extract(i.payment)
9+ if (isDefined(pmt.assetId))
10+ then throw("Can use 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 ((pmt.amount != price))
20+ then throw("Amount is less or more than price ")
21+ else WriteSet([DataEntry(("status: purchase_itemA_customer_" + customerAddress), "confirmed"), DataEntry(("price: purchase_itemA_customer_" + customerAddress), price)])
22+ }
23+ }
24+
25+

github/deemru/w8io/169f3d6 
24.37 ms