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
3131 @Verifier(h)
3232 func i () = {
3333 let f = h
34- if ($isInstanceOf(f, "SetScriptTransaction"))
34+ if ($isInstanceOf(f, "DataTransaction"))
3535 then {
3636 let j = f
37- sigVerify(h.bodyBytes, h.proofs[0], a)
37+ true
3838 }
39- else if ($isInstanceOf(f, "DataTransaction"))
40- then {
41- let k = f
42- true
43- }
44- else false
39+ else false
4540 }
4641
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'F7bawANKyaihuQGk4ymySirxkmPhrdZNeFif6P82X38X'
55
66 @Callable(b)
77 func purchase () = {
88 let c = extract(b.payment)
99 if (isDefined(c.assetId))
1010 then throw("Can use WAVES only at the moment")
1111 else {
1212 let d = toBase58String(b.caller.bytes)
1313 let e = {
1414 let f = getInteger(this, "item_A_coupon_price")
1515 if ($isInstanceOf(f, "Int"))
1616 then {
1717 let g = f
1818 g
1919 }
2020 else 0
2121 }
2222 if ((e > c.amount))
2323 then throw("purchase amount can not be less then item price")
2424 else if ((c.amount > e))
2525 then throw("purchase amount can not be higher then item price")
2626 else WriteSet([DataEntry(("status:purchase_item_A_customer_" + d), "confirmed"), DataEntry(("price: purchase_item_A_customer_" + d), e)])
2727 }
2828 }
2929
3030
3131 @Verifier(h)
3232 func i () = {
3333 let f = h
34- if ($isInstanceOf(f, "SetScriptTransaction"))
34+ if ($isInstanceOf(f, "DataTransaction"))
3535 then {
3636 let j = f
37- sigVerify(h.bodyBytes, h.proofs[0], a)
37+ true
3838 }
39- else if ($isInstanceOf(f, "DataTransaction"))
40- then {
41- let k = f
42- true
43- }
44- else false
39+ else false
4540 }
4641

github/deemru/w8io/169f3d6 
60.89 ms