tx · 2fEZ5s67oyAhBEHT9Y7j5hwPeEokFSqKpYJurHHWjLHj
3MpX7t1abP9D1VzmLeeL3KkcBCMXto4nFre: -1.00000000 Waves
2019.02.06 21:22 [483553] smart asset 3MpX7t1abP9D1VzmLeeL3KkcBCMXto4nFre > SELF 0 new ticket
{
"type": 15,
"id": "2fEZ5s67oyAhBEHT9Y7j5hwPeEokFSqKpYJurHHWjLHj",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1549477372658,
"version": 1,
"sender": "3MpX7t1abP9D1VzmLeeL3KkcBCMXto4nFre",
"senderPublicKey": "3bBumwZNWnpwe76xAmfQXajtZZkhat6aDt8jx75daZq6",
"proofs": [
"3N8og6SXyiqKs3LQC1M2nFrc3TrpC4jG2GdsFuTS57wMALENEYSnaT36pkyxNnp3rwE973JnXZkHKtRqgAP6r9wy"
],
"assetId": "DtGnffe1SHzkLXajEF3Ky2tNeNyqo3on7rZ9o7gxhVjk",
"script": "base64:AQQAAAAOYWRtaW5QdWJsaWNLZXkBAAAAICZ5dQ17ZQeL5xaZHTh3TXVgnRWnLJiQ8wEdPY5cEF5NBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAMJAAH0AAAAAwgIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAPc2VuZGVyUHVibGljS2V5AwkBAAAAASEAAAABCQAB9AAAAAMICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA5hZG1pblB1YmxpY0tleQkAAAIAAAABAgAAABFZb3UgY2FuJ3Qgc2VsbCBpdAYGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBgkAAAIAAAABAgAAACJZb3UgY2FuIG9ubHkgYnV5IG9yIGJ1cm4gdGhlIHRva2VuSppu6A==",
"chainId": 84,
"height": 483553,
"spentComplexity": 0
}
View: original | compacted
Prev: C5vDCn3tWSD3CEUZ4zy38DNqmMNZV8EeBcDFUAR5EJKE
Next: none
Diff:
Old | New | | Differences |
---|
3 | 3 | | let adminPublicKey = base58'3bBumwZNWnpwe76xAmfQXajtZZkhat6aDt8jx75daZq6' |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case e: ExchangeTransaction => |
---|
6 | | - | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) |
---|
7 | | - | if (sell) |
---|
8 | | - | then sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey) |
---|
| 6 | + | if (sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)) |
---|
| 7 | + | then if (!(sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey))) |
---|
| 8 | + | then throw("You can't sell it") |
---|
| 9 | + | else true |
---|
9 | 10 | | else true |
---|
10 | 11 | | case tx: BurnTransaction => |
---|
11 | 12 | | true |
---|
12 | 13 | | case _ => |
---|
13 | | - | true |
---|
| 14 | + | throw("You can only buy or burn the token") |
---|
14 | 15 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let adminPublicKey = base58'3bBumwZNWnpwe76xAmfQXajtZZkhat6aDt8jx75daZq6' |
---|
4 | 4 | | match tx { |
---|
5 | 5 | | case e: ExchangeTransaction => |
---|
6 | | - | let sell = sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey) |
---|
7 | | - | if (sell) |
---|
8 | | - | then sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey) |
---|
| 6 | + | if (sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], e.sellOrder.senderPublicKey)) |
---|
| 7 | + | then if (!(sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], adminPublicKey))) |
---|
| 8 | + | then throw("You can't sell it") |
---|
| 9 | + | else true |
---|
9 | 10 | | else true |
---|
10 | 11 | | case tx: BurnTransaction => |
---|
11 | 12 | | true |
---|
12 | 13 | | case _ => |
---|
13 | | - | true |
---|
| 14 | + | throw("You can only buy or burn the token") |
---|
14 | 15 | | } |
---|