tx · G481CT4A4N2EKS7trqz3Zv4AQYDaucLvEVQtDy6vAt3b

3NAj7owPjfmLoE3odgXC6cXfB1QzEhnpBtt:  -0.01400000 Waves

2020.11.17 18:40 [1269558] smart account 3NAj7owPjfmLoE3odgXC6cXfB1QzEhnpBtt > SELF 0.00000000 Waves

{ "type": 13, "id": "G481CT4A4N2EKS7trqz3Zv4AQYDaucLvEVQtDy6vAt3b", "fee": 1400000, "feeAssetId": null, "timestamp": 1605627601150, "version": 2, "chainId": 84, "sender": "3NAj7owPjfmLoE3odgXC6cXfB1QzEhnpBtt", "senderPublicKey": "iRqJrgq4rS2ndNGFJoZtKcoTfskkxr3zfTesPWqtKzp", "proofs": [ "2nfheob7QuNxhHa9gPKYAckTc7pva9jhF2aez961UvY9LugFiSs3xemeG6Cvqtqr6Y8xQezrwTqYE7fQ4wBKYrkk" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAIcHVyY2hhc2UAAAAABAAAAAdwYXltZW50CQEAAAAFdmFsdWUAAAABCQABkQAAAAIIBQAAAAFpAAAACHBheW1lbnRzAAAAAAAAAAAAAwkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAAdwYXltZW50AAAAB2Fzc2V0SWQJAAACAAAAAQIAAAAXT25seSBXYXZlcyBhcmUgYWNjZXB0ZWQEAAAAD2N1c3RvbWVyQWRkcmVzcwkAAlgAAAABCAgFAAAAAWkAAAAGY2FsbGVyAAAABWJ5dGVzBAAAAAVwcmljZQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzAgAAABNpdGVtX0FfY291cG9uX3ByaWNlAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAADCQAAAAAAAAIIBQAAAAdwYXltZW50AAAABmFtb3VudAAAAAAAAAAAAAkAAAIAAAABAgAAABRQdXJjaGFzZSBhbW91bnQgaXMgMAMJAABmAAAAAgUAAAAFcHJpY2UIBQAAAAdwYXltZW50AAAABmFtb3VudAkAAAIAAAABAgAAABpQdXJjaGFzZSBhbW91bnQgaXMgdG9vIGxvdwMJAABmAAAAAggFAAAAB3BheW1lbnQAAAAGYW1vdW50BQAAAAVwcmljZQkAAAIAAAABAgAAABtQdXJjaGFzZSBhbW91bnQgaXMgdG9vIGhpZ2gJAARMAAAAAgkBAAAAC1N0cmluZ0VudHJ5AAAAAgkAASwAAAACAgAAAB9zdGF0dXM6cHVyY2hhc2VfaXRlbV9BX2N1c3RvbWVyBQAAAA9jdXN0b21lckFkZHJlc3MCAAAABHRydWUJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgIAAAAecHJpY2U6cHVyY2hhc2VfaXRlbV9BX2N1c3RvbWVyBQAAAA9jdXN0b21lckFkZHJlc3MFAAAABXByaWNlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABjO0FBw=", "height": 1269558, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4uBePxkDqkXTes1di5hhCjAx6Bqby3ffbdRPw2j8xoH5 Next: EmGtU2LRskWcasWYwuwsPNiLh2gdr7CvW53BbhPfr7t4 Diff:
OldNewDifferences
3131
3232
3333 @Verifier(g)
34-func h () = {
35- let i = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey)
36- let e = g
37- if ($isInstanceOf(e, "SetScriptTransaction"))
38- then {
39- let j = e
40- true
41- }
42- else if ($isInstanceOf(e, "InvokeScriptTransaction"))
43- then {
44- let j = e
45- true
46- }
47- else i
48- }
34+func h () = true
4935
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(a)
77 func purchase () = {
88 let b = value(a.payments[0])
99 if (isDefined(b.assetId))
1010 then throw("Only Waves are accepted")
1111 else {
1212 let c = toBase58String(a.caller.bytes)
1313 let d = {
1414 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 ((b.amount == 0))
2323 then throw("Purchase amount is 0")
2424 else if ((d > b.amount))
2525 then throw("Purchase amount is too low")
2626 else if ((b.amount > d))
2727 then throw("Purchase amount is too high")
2828 else [StringEntry(("status:purchase_item_A_customer" + c), "true"), IntegerEntry(("price:purchase_item_A_customer" + c), d)]
2929 }
3030 }
3131
3232
3333 @Verifier(g)
34-func h () = {
35- let i = sigVerify(g.bodyBytes, g.proofs[0], g.senderPublicKey)
36- let e = g
37- if ($isInstanceOf(e, "SetScriptTransaction"))
38- then {
39- let j = e
40- true
41- }
42- else if ($isInstanceOf(e, "InvokeScriptTransaction"))
43- then {
44- let j = e
45- true
46- }
47- else i
48- }
34+func h () = true
4935

github/deemru/w8io/169f3d6 
40.10 ms