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:
Old | New | Differences | |
---|---|---|---|
31 | 31 | @Verifier(h) | |
32 | 32 | func i () = { | |
33 | 33 | let f = h | |
34 | - | if ($isInstanceOf(f, " | |
34 | + | if ($isInstanceOf(f, "DataTransaction")) | |
35 | 35 | then { | |
36 | 36 | let j = f | |
37 | - | | |
37 | + | true | |
38 | 38 | } | |
39 | - | else if ($isInstanceOf(f, "DataTransaction")) | |
40 | - | then { | |
41 | - | let k = f | |
42 | - | true | |
43 | - | } | |
44 | - | else false | |
39 | + | else false | |
45 | 40 | } | |
46 | 41 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'F7bawANKyaihuQGk4ymySirxkmPhrdZNeFif6P82X38X' | |
5 | 5 | ||
6 | 6 | @Callable(b) | |
7 | 7 | func purchase () = { | |
8 | 8 | let c = extract(b.payment) | |
9 | 9 | if (isDefined(c.assetId)) | |
10 | 10 | then throw("Can use WAVES only at the moment") | |
11 | 11 | else { | |
12 | 12 | let d = toBase58String(b.caller.bytes) | |
13 | 13 | let e = { | |
14 | 14 | let f = getInteger(this, "item_A_coupon_price") | |
15 | 15 | if ($isInstanceOf(f, "Int")) | |
16 | 16 | then { | |
17 | 17 | let g = f | |
18 | 18 | g | |
19 | 19 | } | |
20 | 20 | else 0 | |
21 | 21 | } | |
22 | 22 | if ((e > c.amount)) | |
23 | 23 | then throw("purchase amount can not be less then item price") | |
24 | 24 | else if ((c.amount > e)) | |
25 | 25 | then throw("purchase amount can not be higher then item price") | |
26 | 26 | else WriteSet([DataEntry(("status:purchase_item_A_customer_" + d), "confirmed"), DataEntry(("price: purchase_item_A_customer_" + d), e)]) | |
27 | 27 | } | |
28 | 28 | } | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | @Verifier(h) | |
32 | 32 | func i () = { | |
33 | 33 | let f = h | |
34 | - | if ($isInstanceOf(f, " | |
34 | + | if ($isInstanceOf(f, "DataTransaction")) | |
35 | 35 | then { | |
36 | 36 | let j = f | |
37 | - | | |
37 | + | true | |
38 | 38 | } | |
39 | - | else if ($isInstanceOf(f, "DataTransaction")) | |
40 | - | then { | |
41 | - | let k = f | |
42 | - | true | |
43 | - | } | |
44 | - | else false | |
39 | + | else false | |
45 | 40 | } | |
46 | 41 |
github/deemru/w8io/169f3d6 60.89 ms ◑