tx · HUsTDdFrowB4GfHmDpr76324fn9d3DqZdRCGp4jMy2o6

3N3mGfzEZRpBgriK6rWYSTcYBrTkKXvp2Dg:  -0.04000000 Waves

2019.12.20 00:04 [816328] smart account 3N3mGfzEZRpBgriK6rWYSTcYBrTkKXvp2Dg > SELF 0.00000000 Waves

{ "type": 13, "id": "HUsTDdFrowB4GfHmDpr76324fn9d3DqZdRCGp4jMy2o6", "fee": 4000000, "feeAssetId": null, "timestamp": 1576789378258, "version": 1, "sender": "3N3mGfzEZRpBgriK6rWYSTcYBrTkKXvp2Dg", "senderPublicKey": "F7bawANKyaihuQGk4ymySirxkmPhrdZNeFif6P82X38X", "proofs": [ "2ymnHBfbFDk1cbocncsfGzhndgCgoZeGGsz5eGEabsMrwMctSoW9UV78pjYWgXQwSoaMocZncbcmxFQjncRt9xRg" ], "script": "base64:AAIDAAAAAAAAAAQIARIAAAAAAQAAAAAOb3duZXJQdWJsaWNLZXkBAAAAING0NRBvBSU/08cFFPln+nD/tEw6oS+wKuoM9ah4ji8cAAAAAQAAAAFpAQAAAAhwdXJjaGFzZQAAAAAEAAAAA3BtdAkBAAAAB2V4dHJhY3QAAAABCAUAAAABaQAAAAdwYXltZW50AwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAANwbXQAAAAHYXNzZXRJZAkAAAIAAAABAgAAACBDYW4gdXNlIFdBVkVTIG9ubHkgYXQgdGhlIG1vbWVudAQAAAAPY3VzdG9tZXJBZGRyZXNzCQACWAAAAAEICAUAAAABaQAAAAZjYWxsZXIAAAAFYnl0ZXMEAAAABXByaWNlBAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMCAAAAE2l0ZW1fQV9jb3Vwb25fcHJpY2UDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAMJAABmAAAAAgUAAAAFcHJpY2UIBQAAAANwbXQAAAAGYW1vdW50CQAAAgAAAAECAAAAL3B1cmNoYXNlIGFtb3VudCBjYW4gbm90IGJlIGxlc3MgdGhlbiBpdGVtIHByaWNlAwkAAGYAAAACCAUAAAADcG10AAAABmFtb3VudAUAAAAFcHJpY2UJAAACAAAAAQIAAAAxcHVyY2hhc2UgYW1vdW50IGNhbiBub3QgYmUgaGlnaGVyIHRoZW4gaXRlbSBwcmljZQkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACAgAAACBzdGF0dXM6cHVyY2hhc2VfaXRlbV9BX2N1c3RvbWVyXwUAAAAPY3VzdG9tZXJBZGRyZXNzAgAAAAljb25maXJtZWQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgIAAAAgcHJpY2U6IHB1cmNoYXNlX2l0ZW1fQV9jdXN0b21lcl8FAAAAD2N1c3RvbWVyQWRkcmVzcwUAAAAFcHJpY2UFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGB/mERsU=", "chainId": 84, "height": 816328, "spentComplexity": 0 } View: original | compacted Prev: 975vcv2pVJqDGFJV7ifG6uGFXXdDMFgrHEWJ9mtVVrCb Next: none Diff:
OldNewDifferences
2727
2828 @Verifier(tx)
2929 func verify () = match tx {
30- case t: SetScriptTransaction =>
31- sigVerify(tx.bodyBytes, tx.proofs[0], ownerPublicKey)
3230 case d: DataTransaction =>
3331 true
3432 case _ =>
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let ownerPublicKey = base58'F7bawANKyaihuQGk4ymySirxkmPhrdZNeFif6P82X38X'
55
66 @Callable(i)
77 func purchase () = {
88 let pmt = extract(i.payment)
99 if (isDefined(pmt.assetId))
1010 then throw("Can use WAVES only at the moment")
1111 else {
1212 let customerAddress = toBase58String(i.caller.bytes)
1313 let price = match getInteger(this, "item_A_coupon_price") {
1414 case a: Int =>
1515 a
1616 case _ =>
1717 0
1818 }
1919 if ((price > pmt.amount))
2020 then throw("purchase amount can not be less then item price")
2121 else if ((pmt.amount > price))
2222 then throw("purchase amount can not be higher then item price")
2323 else WriteSet([DataEntry(("status:purchase_item_A_customer_" + customerAddress), "confirmed"), DataEntry(("price: purchase_item_A_customer_" + customerAddress), price)])
2424 }
2525 }
2626
2727
2828 @Verifier(tx)
2929 func verify () = match tx {
30- case t: SetScriptTransaction =>
31- sigVerify(tx.bodyBytes, tx.proofs[0], ownerPublicKey)
3230 case d: DataTransaction =>
3331 true
3432 case _ =>
3533 false
3634 }
3735

github/deemru/w8io/169f3d6 
31.50 ms