tx · HWni1rFqC78gvVgc876h4X4Dwb8e9JzDbCDzdJtT2ake

3N1p4LEmbVeJqPTsdWYw3xHUpLHz7gYQncL:  -0.01400000 Waves

2019.08.27 00:04 [648655] smart account 3N1p4LEmbVeJqPTsdWYw3xHUpLHz7gYQncL > SELF 0.00000000 Waves

{ "type": 13, "id": "HWni1rFqC78gvVgc876h4X4Dwb8e9JzDbCDzdJtT2ake", "fee": 1400000, "feeAssetId": null, "timestamp": 1566853482699, "version": 1, "sender": "3N1p4LEmbVeJqPTsdWYw3xHUpLHz7gYQncL", "senderPublicKey": "Bkgwt2aKyFdF5sdbTvPhvZkefrs3bpx9htsdCjmWh9LS", "proofs": [ "5FbQbMBftW9Ah1nwZ7ZMAeYsNDNp2iiV2CG5gkG3ByoexmBXF6nggQSni5fE3nxy6FMxdHdt1qnAHCNJTgMU4WYB" ], "script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAQAAAAFpAQAAAAhwdXJjaGFzZQAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACBjYW4gdXNlIFdBVkVTIG9ubHkgYXQgdGhlIG1vbWVudAQAAAAPY3VzdG9tZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXByaWNlBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAAE2l0ZW1fQV9jb3Vwb25fcHJpY2UDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAMJAABmAAAAAgUAAAAFcHJpY2UIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAALnB1cmNoYXNlIGFtb3VudCBjYW5ub3QgYmUgbGVzcyB0aGFuIGl0ZW0gcHJpY2UDCQAAZgAAAAIIBQAAAANwbXQAAAAGYW1vdW50BQAAAAVwcmljZQkAAAIAAAABAgAAADBwdXJjaGFzZSBhbW91bnQgY2Fubm90IGJlIGhpZ2hlciB0aGFuIGl0ZW0gcHJpY2UJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAgc3RhdHVzOnB1cmNoYXNlX2l0ZW1fQV9jdXN0b21lcl8FAAAAD2N1c3RvbWVyQWRkcmVzcwIAAAAJY29uZmlybWVkCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAICAAAAH3ByaWNlOnB1cmNoYXNlX2l0ZW1fQV9jdXN0b21lcl8FAAAAD2N1c3RvbWVyQWRkcmVzcwUAAAAFcHJpY2UFAAAAA25pbAAAAAAGjBPW", "chainId": 84, "height": 648655, "spentComplexity": 0 } View: original | compacted Prev: Exw2XWh49REaC6nbPjiN7vcnFM7nitp2sGHEdeNVafYZ Next: 5PWMZNsbL8Aro6A6i1TzKueFgkVBdFdCHHTZMQR4gJJu Diff:
OldNewDifferences
1111 else {
1212 let c = toBase58String(a.caller.bytes)
1313 let d = {
14- let e = getInteger(this, "item_A_coupon_price")
14+ let e = getInteger(this, "item_A_coupon_price")
1515 if ($isInstanceOf(e, "Int"))
1616 then {
1717 let f = e
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func purchase () = {
88 let b = extract(a.payment)
99 if (isDefined(b.assetId))
1010 then throw("can use WAVES only at the moment")
1111 else {
1212 let c = toBase58String(a.caller.bytes)
1313 let d = {
14- let e = getInteger(this, "item_A_coupon_price")
14+ let e = getInteger(this, "item_A_coupon_price")
1515 if ($isInstanceOf(e, "Int"))
1616 then {
1717 let f = e
1818 f
1919 }
2020 else 0
2121 }
2222 if ((d > b.amount))
2323 then throw("purchase amount cannot be less than item price")
2424 else if ((b.amount > d))
2525 then throw("purchase amount cannot be higher than item price")
2626 else WriteSet([DataEntry(("status:purchase_item_A_customer_" + c), "confirmed"), DataEntry(("price:purchase_item_A_customer_" + c), d)])
2727 }
2828 }
2929
3030

github/deemru/w8io/169f3d6 
70.44 ms