tx · GkNjMbdy7PXvtLfyvx4zEBshND2hBdLUvQzhC63jFFty
3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE: -1.00400000 Waves
2019.07.04 11:19 [570430] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS
{
"type": 15,
"id": "GkNjMbdy7PXvtLfyvx4zEBshND2hBdLUvQzhC63jFFty",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1562228392549,
"version": 1,
"sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE",
"senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES",
"proofs": [
"3nUvwUy3aKc4Ybj1dXKJQqeqN4hydoaNr8WP7w7LQ8cFdm1sKL1wxyKfWdCXxeDLRYn2Y4hi3Ds9uCkGN3XdyK1y"
],
"assetId": "7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29",
"script": "base64:AwQAAAAOb3duZXJQdWJsaWNLZXkBAAAAIEWL9bYTPmjYp+f8WUAtz6DaJ6KrIAyb2bOoFYKH1nAPBAAAAANLWUMJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTWNCDJr/AdVJ/HdBovhu37oPuYKPc8PVMEAAAAC1Bhc3NBc3NldElkAQAAACBg/bKkSalvO39oSPndnvUn1DFYSTpsagMRseVLRWFZYgQAAAAHJG1hdGNoMAUAAAACdHgDAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABlTZXRBc3NldFNjcmlwdFRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABJSZWlzc3VlVHJhbnNhY3Rpb24EAAAAAXMFAAAAByRtYXRjaDAGAwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24GCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAAA2tleQkAAlgAAAABCAgFAAAAAnR4AAAABnNlbmRlcgAAAAVieXRlcwkBAAAAEUBleHRyTmF0aXZlKDEwNTEpAAAAAgUAAAADS1lDBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE0V4Y2hhbmdlVHJhbnNhY3Rpb24EAAAAAWUFAAAAByRtYXRjaDAEAAAAE3NlbGxNYXRjaGVyRmVlQXNzZXQICAUAAAABZQAAAAlzZWxsT3JkZXIAAAARbWF0Y2hlckZlZUFzc2V0SWQDCQAAAAAAAAIFAAAAE3NlbGxNYXRjaGVyRmVlQXNzZXQFAAAAC1Bhc3NBc3NldElkCQEAAAARQGV4dHJOYXRpdmUoMTA1MSkAAAACBQAAAANLWUMJAAJYAAAAAQgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyAAAABWJ5dGVzBgdhYrnG",
"chainId": 84,
"height": 570430,
"spentComplexity": 0
}
View: original | compacted
Prev: As3DykV4q2DktVNnQMXoL1FutupFpu8bAMkaJaL3BaoM
Next: AYZqmAHo4WC3XUcXz6CwYwTKDUBdvC5wnfgm126F6Q92
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
| 3 | + | let ownerPublicKey = base58'5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES' |
---|
3 | 4 | | let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE') |
---|
4 | 5 | | let PassAssetId = base58'7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29' |
---|
5 | 6 | | match tx { |
---|
6 | | - | case t: SetAssetScriptTransaction|ReissueTransaction => |
---|
| 7 | + | case s: SetAssetScriptTransaction|ReissueTransaction => |
---|
7 | 8 | | true |
---|
8 | 9 | | case t: MassTransferTransaction|TransferTransaction => |
---|
9 | 10 | | let key = toBase58String(tx.sender.bytes) |
---|
10 | 11 | | getBooleanValue(KYC, key) |
---|
11 | 12 | | case e: ExchangeTransaction => |
---|
12 | 13 | | let sellMatcherFeeAsset = e.sellOrder.matcherFeeAssetId |
---|
13 | | - | let buyMatcherFeeAsset = e.buyOrder.matcherFeeAssetId |
---|
14 | | - | let amountAsset = e.sellOrder.assetPair.amountAsset |
---|
15 | | - | let priceAsset = e.sellOrder.assetPair.priceAsset |
---|
16 | | - | if (if (if (if ((sellMatcherFeeAsset == PassAssetId)) |
---|
| 14 | + | if ((sellMatcherFeeAsset == PassAssetId)) |
---|
17 | 15 | | then getBooleanValue(KYC, toBase58String(e.sellOrder.sender.bytes)) |
---|
18 | | - | else true) |
---|
19 | | - | then if ((buyMatcherFeeAsset == PassAssetId)) |
---|
20 | | - | then getBooleanValue(KYC, toBase58String(e.buyOrder.sender.bytes)) |
---|
21 | | - | else true |
---|
22 | | - | else false) |
---|
23 | | - | then if ((amountAsset == PassAssetId)) |
---|
24 | | - | then getBooleanValue(KYC, toBase58String(e.sellOrder.sender.bytes)) |
---|
25 | | - | else true |
---|
26 | | - | else false) |
---|
27 | | - | then if ((priceAsset == PassAssetId)) |
---|
28 | | - | then getBooleanValue(KYC, toBase58String(e.buyOrder.sender.bytes)) |
---|
29 | | - | else true |
---|
30 | | - | else false |
---|
| 16 | + | else true |
---|
31 | 17 | | case _ => |
---|
32 | 18 | | false |
---|
33 | 19 | | } |
---|