tx · AS21FHojCnJNcmwuQvLzY6Zqs1SxbtcpC9zVW5BDU2oe
3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx: -1.00000000 Waves
2019.02.20 20:32 [503848] smart asset 3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx > SELF 0.00000000 WTFG
{
"type": 15,
"id": "AS21FHojCnJNcmwuQvLzY6Zqs1SxbtcpC9zVW5BDU2oe",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1550684030791,
"version": 1,
"sender": "3Mv1Nj83z4ZQjraVppPBuXGL9csBM4DRqQx",
"senderPublicKey": "2hBxjELYxmCKQXARcQYckmzypjNkRLnL4tZSQp6XHhWg",
"proofs": [
"JHcEdsvZkQYqXgPiHm7xCBacGGsoepAGgTh3bFdxP8t7t3zq5iuyH53qp9tbJNdSkPwY6VrDQCVa776KSDA25P5"
],
"assetId": "EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg",
"script": "base64:AQQAAAAGcHJpY2V2AAAAAAAF9eEBBAAAAAhwcmljZW1pbgAAAAAAC+vCAQQAAAAEUGFpcgkBAAAACUFzc2V0UGFpcgAAAAIFAAAABHVuaXQBAAAAIM2MeFvSXndO3rFdGs9f2vkJp1+jY/rXzNkl+WiQ+gpnBAAAABNtaW5pbXVtV2F2ZXNCYWxhbmNlAAAAAAA7msoABAAAAAlJc3NldG5hbWUBAAAAIM2MeFvSXndO3rFdGs9f2vkJp1+jY/rXzNkl+WiQ+gpnBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATRXhjaGFuZ2VUcmFuc2FjdGlvbgQAAAABZQUAAAAHJG1hdGNoMAQAAAAEcGFpcggIBQAAAAFlAAAACXNlbGxPcmRlcgAAAAlhc3NldFBhaXIEAAAABXBhaXJzCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYXNzZXRQYWlyAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAABHBhaXIAAAAKcHJpY2VBc3NldAcDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABCAUAAAAEcGFpcgAAAApwcmljZUFzc2V0BgYDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAAEbWFzcwUAAAAHJG1hdGNoMAQAAAALdHJhbnNhY3Rpb24JAAPoAAAAAQkBAAAAB2V4dHJhY3QAAAABCAUAAAAEbWFzcwAAAAdhc3NldElkBAAAAAckbWF0Y2gxBQAAAAt0cmFuc2FjdGlvbgMJAAABAAAAAgUAAAAHJG1hdGNoMQIAAAAQSXNzdWVUcmFuc2FjdGlvbgQAAAAHaXNzdWVUeAUAAAAHJG1hdGNoMQkAAAAAAAACCAUAAAAEbWFzcwAAAA9zZW5kZXJQdWJsaWNLZXkIBQAAAAdpc3N1ZVR4AAAAD3NlbmRlclB1YmxpY0tleQkAAAIAAAABAgAAABFCYWQgaXNzdWUgdHggdHlwZQkAAAIAAAABAgAAACBZb3Ugb25seSBjYW4gdHJhbnNmZXIgdGhpcyB0b2tlbjxfMTM=",
"chainId": 84,
"height": 503848,
"spentComplexity": 0
}
View: original | compacted
Prev: GVCLVkfkcRn4Y4KxBazoMCHXLJuMRPXpZC8KXfFCeUxG
Next: HfwoB7n57uUGGyVAmEcaU57bWJ94krzwdanxR1tdmrXB
Diff:
Old | New | | Differences |
---|
9 | 9 | | case e: ExchangeTransaction => |
---|
10 | 10 | | let pair = e.sellOrder.assetPair |
---|
11 | 11 | | let pairs = e.buyOrder.assetPair |
---|
12 | | - | if (isDefined(pair.amountAsset)) |
---|
| 12 | + | if (!(isDefined(pair.priceAsset))) |
---|
13 | 13 | | then false |
---|
14 | | - | else if (isDefined(pair.priceAsset)) |
---|
| 14 | + | else if (!(isDefined(pair.priceAsset))) |
---|
15 | 15 | | then true |
---|
16 | 16 | | else true |
---|
17 | 17 | | case mass: SetAssetScriptTransaction|MassTransferTransaction => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let pricev = 100000001 |
---|
4 | 4 | | let pricemin = 200000001 |
---|
5 | 5 | | let Pair = AssetPair(unit, base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg') |
---|
6 | 6 | | let minimumWavesBalance = 1000000000 |
---|
7 | 7 | | let Issetname = base58'EqNp1hxse9c13P9cqxCxvGagkAAENhJy8P615U5rwUbg' |
---|
8 | 8 | | match tx { |
---|
9 | 9 | | case e: ExchangeTransaction => |
---|
10 | 10 | | let pair = e.sellOrder.assetPair |
---|
11 | 11 | | let pairs = e.buyOrder.assetPair |
---|
12 | | - | if (isDefined(pair.amountAsset)) |
---|
| 12 | + | if (!(isDefined(pair.priceAsset))) |
---|
13 | 13 | | then false |
---|
14 | | - | else if (isDefined(pair.priceAsset)) |
---|
| 14 | + | else if (!(isDefined(pair.priceAsset))) |
---|
15 | 15 | | then true |
---|
16 | 16 | | else true |
---|
17 | 17 | | case mass: SetAssetScriptTransaction|MassTransferTransaction => |
---|
18 | 18 | | let transaction = transactionById(extract(mass.assetId)) |
---|
19 | 19 | | match transaction { |
---|
20 | 20 | | case issueTx: IssueTransaction => |
---|
21 | 21 | | (mass.senderPublicKey == issueTx.senderPublicKey) |
---|
22 | 22 | | case _ => |
---|
23 | 23 | | throw("Bad issue tx type") |
---|
24 | 24 | | } |
---|
25 | 25 | | case _ => |
---|
26 | 26 | | throw("You only can transfer this token") |
---|
27 | 27 | | } |
---|