tx · e7aD8VxeDQUKugjvfAZsaqfBKci7oxzsweEEr4Uq2db 3N6mVEULck7uViUaDo1wi98wch9XzYNXriv: -1.00000000 Waves 2019.02.22 07:04 [505967] smart asset 3N6mVEULck7uViUaDo1wi98wch9XzYNXriv > SELF 0.00000000 test exchange
{ "type": 15, "id": "e7aD8VxeDQUKugjvfAZsaqfBKci7oxzsweEEr4Uq2db", "fee": 100000000, "feeAssetId": null, "timestamp": 1550808267390, "version": 1, "sender": "3N6mVEULck7uViUaDo1wi98wch9XzYNXriv", "senderPublicKey": "GMCkL2F7fYotQtrpQq5sjNm5cjpR7CSfawr9kMSKLHVs", "proofs": [ "5Xiyspeo7fcLsnH6To7s2VSmBvrpLnYxTuwAe77uozJTQjN99kQcG5bg5f9cv4wDrbwD5pfof94q4YA3f5YaQnEs" ], "assetId": "AykeKGsut1Qdg5khPSYPBZj3iNorAVjJBm7bn7zahUMq", "script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDADCQAAZgAAAAIJAABlAAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAApleHBpcmF0aW9uCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACXRpbWVzdGFtcAkAAGgAAAACCQAAaAAAAAIJAABoAAAAAgAAAAAAAAAAGAAAAAAAAAAAPAAAAAAAAAAAPAAAAAAAAAAD6AkAAAIAAAABAgAAAApleHBpcmF0aW9uBAAAAARzZWxsCQAB9AAAAAMICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAACAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQQAAAADYnV5CQAB9AAAAAMICAUAAAABZQAAAAhidXlPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAABnByb29mcwAAAAAAAAAAAAgIBQAAAAFlAAAACGJ1eU9yZGVyAAAAD3NlbmRlclB1YmxpY0tleQMFAAAABHNlbGwDCQAAZgAAAAIAAAAAAAABhqAICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGYW1vdW50CQAAAgAAAAECAAAAC3NlbGwgYW1vdW50AwMJAABmAAAAAgAAAAAAAJiWgAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAVwcmljZQYJAQAAAAlpc0RlZmluZWQAAAABCAgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIAAAAKcHJpY2VBc3NldAkAAAIAAAABAgAAAApzZWxsIHByaWNlBgMFAAAAA2J1eQMJAABmAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAABmFtb3VudAAAAAAAO5rKAAkAAAIAAAABAgAAAApidXkgYW1vdW50AwMJAABmAAAAAggIBQAAAAFlAAAACGJ1eU9yZGVyAAAABXByaWNlAAAAAAAAmJaABgkBAAAACWlzRGVmaW5lZAAAAAEICAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyAAAACnByaWNlQXNzZXQJAAACAAAAAQIAAAAJYnV5IHByaWNlBgcDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0J1cm5UcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYGJAO7OQ==", "chainId": 84, "height": 505967, "spentComplexity": 0 } View: original | compacted Prev: none Next: 3Q2KWr3DkdbTpjDvfbHvvusfFs2pteJRB2cSgKvqLaSD Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 1 #-} | |
2 | + | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | + | match tx { | |
4 | + | case e: ExchangeTransaction => | |
5 | + | if (((e.sellOrder.expiration - e.sellOrder.timestamp) > (((24 * 60) * 60) * 1000))) | |
6 | + | then throw("expiration") | |
7 | + | else { | |
8 | + | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) | |
9 | + | let buy = sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], e.buyOrder.senderPublicKey) | |
10 | + | if (sell) | |
11 | + | then if ((100000 > e.sellOrder.amount)) | |
12 | + | then throw("sell amount") | |
13 | + | else if (if ((10000000 > e.sellOrder.price)) | |
14 | + | then true | |
15 | + | else isDefined(e.sellOrder.assetPair.priceAsset)) | |
16 | + | then throw("sell price") | |
17 | + | else true | |
18 | + | else if (buy) | |
19 | + | then if ((e.buyOrder.amount > 1000000000)) | |
20 | + | then throw("buy amount") | |
21 | + | else if (if ((e.buyOrder.price > 10000000)) | |
22 | + | then true | |
23 | + | else isDefined(e.buyOrder.assetPair.priceAsset)) | |
24 | + | then throw("buy price") | |
25 | + | else true | |
26 | + | else false | |
27 | + | } | |
28 | + | case t: MassTransferTransaction|BurnTransaction|TransferTransaction => | |
29 | + | true | |
30 | + | case _ => | |
31 | + | true | |
32 | + | } |
github/deemru/w8io/169f3d6 24.18 ms ◑