tx · AvT16XRz5LeDDDYmFhfPZnVEeeoA3VgVrB8wgrF8BCW1 3MxRqURevjNgwbz8kneeUwGPzCtszagdsx4: -0.01400000 Waves 2020.11.18 17:01 [1270875] smart account 3MxRqURevjNgwbz8kneeUwGPzCtszagdsx4 > SELF 0.00000000 Waves
{ "type": 13, "id": "AvT16XRz5LeDDDYmFhfPZnVEeeoA3VgVrB8wgrF8BCW1", "fee": 1400000, "feeAssetId": null, "timestamp": 1605708109302, "version": 2, "chainId": 84, "sender": "3MxRqURevjNgwbz8kneeUwGPzCtszagdsx4", "senderPublicKey": "2qjcWuL7QitmuhkSTM7CnNxurCYXuqJ9ubswLBGmXfDv", "proofs": [ "44A2KAYY28qW138Qz3tnCD9qrqfp1dkWfixVtifuNqeyEA9AChvnWCQCYzShHYt7FvPfMX5ab3Cijwjj9MFWMTAd" ], "script": "base64:AAIEAAAAAAAAAAQIAhIAAAAAAwAAAAARYWNjb3VudDFQdWJsaWNLZXkBAAAAIPeNeDDs4TWVhR1bzOk94lFsHOraL9B/FRj0XfVMj0hOAAAAABFhY2NvdW50MlB1YmxpY0tleQEAAAAgG1e/aEwKrtMkcq9WyiLLAHtKPJgLd/oAoUXcKuUDIhUAAAAADm90aGVyUHVibGljS2V5AQAAACDnblGJprjxGAm9jEz8V5M0TOEG6bhNvbMQquBNrx0dWgAAAAEAAAABaQEAAAAIcHVyY2hhc2UAAAAABAAAAANwbXQJAQAAAAV2YWx1ZQAAAAEIBQAAAAFpAAAACHBheW1lbnRzAwkBAAAACWlzRGVmaW5lZAAAAAEICQABkQAAAAIFAAAAA3BtdAAAAAAAAAAAAAAAAAdhc3NldElkCQAAAgAAAAECAAAACG9ubHkgd3dzBAAAAA9jdXN0b21lckFkZHJlc3MJAAJYAAAAAQgIBQAAAAFpAAAABmNhbGxlcgAAAAVieXRlcwQAAAAFcHJpY2UEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwIAAAATaXRlbV9BX2NvdXBvbl9wcmljZQMJ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hdGNoMAYDAwUAAAAQYWNjb3VudDFhY2NvdW50MgYFAAAADWFjY291bnQxb3RoZXIGBQAAAA1hY2NvdW50Mm90aGVy7XVrYw==", "height": 1270875, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Buapt4Y8hQds49duX211UexFvSLzeYP4FquMfoDYFzt8 Next: BTT2t6sVT8BKhZmi7qZUTWYJvyUk3kqBvqyXu53uxLjD Diff:
Old | New | Differences | |
---|---|---|---|
26 | 26 | if ((g > e[0].amount)) | |
27 | 27 | then throw("moar moeny") | |
28 | 28 | else if ((e[0].amount > g)) | |
29 | - | then throw( | |
29 | + | then throw(toString(g)) | |
30 | 30 | else if ((size(e) > 1)) | |
31 | 31 | then throw("single item only") | |
32 | 32 | else [StringEntry(("status:purchase_item_A_customer_" + f), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + f), g)] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'HfLpRhXtnuCabRyNT6z7soaXcbUpwLUhjyBCVQ4szwzd' | |
5 | 5 | ||
6 | 6 | let b = base58'2qjcWuL7QitmuhkSTM7CnNxurCYXuqJ9ubswLBGmXfDv' | |
7 | 7 | ||
8 | 8 | let c = base58'GaQkBG6yLLAarb8wvPrEKnQhFqWomD2ZGT1T4vVx24qw' | |
9 | 9 | ||
10 | 10 | @Callable(d) | |
11 | 11 | func purchase () = { | |
12 | 12 | let e = value(d.payments) | |
13 | 13 | if (isDefined(e[0].assetId)) | |
14 | 14 | then throw("only wws") | |
15 | 15 | else { | |
16 | 16 | let f = toBase58String(d.caller.bytes) | |
17 | 17 | let g = { | |
18 | 18 | let h = getInteger(this, "item_A_coupon_price") | |
19 | 19 | if ($isInstanceOf(h, "Int")) | |
20 | 20 | then { | |
21 | 21 | let i = h | |
22 | 22 | i | |
23 | 23 | } | |
24 | 24 | else 0 | |
25 | 25 | } | |
26 | 26 | if ((g > e[0].amount)) | |
27 | 27 | then throw("moar moeny") | |
28 | 28 | else if ((e[0].amount > g)) | |
29 | - | then throw( | |
29 | + | then throw(toString(g)) | |
30 | 30 | else if ((size(e) > 1)) | |
31 | 31 | then throw("single item only") | |
32 | 32 | else [StringEntry(("status:purchase_item_A_customer_" + f), "confirmed"), IntegerEntry(("price:purchase_item_A_customer_" + f), g)] | |
33 | 33 | } | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | @Verifier(j) | |
38 | 38 | func k () = { | |
39 | 39 | let l = if (if (sigVerify(j.bodyBytes, j.proofs[0], a)) | |
40 | 40 | then true | |
41 | 41 | else sigVerify(j.bodyBytes, j.proofs[1], a)) | |
42 | 42 | then true | |
43 | 43 | else sigVerify(j.bodyBytes, j.proofs[2], a) | |
44 | 44 | let m = if (if (sigVerify(j.bodyBytes, j.proofs[0], b)) | |
45 | 45 | then true | |
46 | 46 | else sigVerify(j.bodyBytes, j.proofs[1], b)) | |
47 | 47 | then true | |
48 | 48 | else sigVerify(j.bodyBytes, j.proofs[2], b) | |
49 | 49 | let n = if (if (sigVerify(j.bodyBytes, j.proofs[0], c)) | |
50 | 50 | then true | |
51 | 51 | else sigVerify(j.bodyBytes, j.proofs[1], c)) | |
52 | 52 | then true | |
53 | 53 | else sigVerify(j.bodyBytes, j.proofs[2], c) | |
54 | 54 | let o = if (l) | |
55 | 55 | then m | |
56 | 56 | else false | |
57 | 57 | let p = if (l) | |
58 | 58 | then n | |
59 | 59 | else false | |
60 | 60 | let q = if (n) | |
61 | 61 | then m | |
62 | 62 | else false | |
63 | 63 | let h = j | |
64 | 64 | if ($isInstanceOf(h, "SetScriptTransaction")) | |
65 | 65 | then { | |
66 | 66 | let r = h | |
67 | 67 | true | |
68 | 68 | } | |
69 | 69 | else if ($isInstanceOf(h, "DataTransaction")) | |
70 | 70 | then { | |
71 | 71 | let r = h | |
72 | 72 | true | |
73 | 73 | } | |
74 | 74 | else if (if (o) | |
75 | 75 | then true | |
76 | 76 | else p) | |
77 | 77 | then true | |
78 | 78 | else q | |
79 | 79 | } | |
80 | 80 |
github/deemru/w8io/169f3d6 49.86 ms ◑