tx · HeTR599L8udrhk5b8TnUnF39oU2LLJgkoPnh4sujoNht
3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE: -1.00400000 Waves
2019.07.04 11:38 [570447] smart asset 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000 PASS
{
"type": 15,
"id": "HeTR599L8udrhk5b8TnUnF39oU2LLJgkoPnh4sujoNht",
"fee": 100400000,
"feeAssetId": null,
"timestamp": 1562229499247,
"version": 1,
"sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE",
"senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES",
"proofs": [
"4EA599NaWJE4VdMSs7C3etSmrqMcjygp1mbD5e9ha4x4dXUS1nuAH5hwsWx1rK4boFxuGdQTuxmjXJsxe8TVrRrX"
],
"assetId": "7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29",
"script": "base64:AwQAAAAOb3duZXJQdWJsaWNLZXkBAAAAIEWL9bYTPmjYp+f8WUAtz6DaJ6KrIAyb2bOoFYKH1nAPBAAAAANLWUMJAQAAAAdBZGRyZXNzAAAAAQEAAAAaAVTWNCDJr/AdVJ/HdBovhu37oPuYKPc8PVMEAAAAC1Bhc3NBc3NldElkAQAAACBg/bKkSalvO39oSPndnvUn1DFYSTpsagMRseVLRWFZYgoBAAAABWNoZWNrAAAAAQAAAAdhZGRyZXNzCQEAAAARQGV4dHJOYXRpdmUoMTA1MSkAAAACBQAAAANLWUMJAAJYAAAAAQgFAAAAB2FkZHJlc3MAAAAFYnl0ZXMEAAAAByRtYXRjaDAFAAAAAnR4AwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAZU2V0QXNzZXRTY3JpcHRUcmFuc2FjdGlvbgYJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAASUmVpc3N1ZVRyYW5zYWN0aW9uBAAAAAFzBQAAAAckbWF0Y2gwBgMDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF01hc3NUcmFuc2ZlclRyYW5zYWN0aW9uBgkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAF0BQAAAAckbWF0Y2gwBAAAAANrZXkJAAJYAAAAAQgIBQAAAAJ0eAAAAAZzZW5kZXIAAAAFYnl0ZXMJAQAAABFAZXh0ck5hdGl2ZSgxMDUxKQAAAAIFAAAAA0tZQwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwBAAAAAthbW91bnRBc3NldAgICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAJYXNzZXRQYWlyAAAAC2Ftb3VudEFzc2V0AwkAAAAAAAACBQAAAAthbW91bnRBc3NldAUAAAALUGFzc0Fzc2V0SWQJAQAAAAVjaGVjawAAAAEICAUAAAABZQAAAAlzZWxsT3JkZXIAAAAGc2VuZGVyBgfUb2NR",
"chainId": 84,
"height": 570447,
"spentComplexity": 0
}
View: original | compacted
Prev: FYMWDZXTWXDLoVJdB7o6f7vP2e8NnP2ix6y3Fs3ZsPsY
Next: 9tUJV3gbgLWGXUtYB6R5DDStB8wjN2ab3JwEkLFxnLMw
Diff:
Old | New | | Differences |
---|
3 | 3 | | let ownerPublicKey = base58'5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES' |
---|
4 | 4 | | let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE') |
---|
5 | 5 | | let PassAssetId = base58'7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29' |
---|
| 6 | + | func check (address) = getBooleanValue(KYC, toBase58String(address.bytes)) |
---|
| 7 | + | |
---|
6 | 8 | | match tx { |
---|
7 | 9 | | case s: SetAssetScriptTransaction|ReissueTransaction => |
---|
8 | 10 | | true |
---|
|
12 | 14 | | case e: ExchangeTransaction => |
---|
13 | 15 | | let amountAsset = e.sellOrder.assetPair.amountAsset |
---|
14 | 16 | | if ((amountAsset == PassAssetId)) |
---|
15 | | - | then getBooleanValue(KYC, toBase58String(e.sellOrder.sender.bytes)) |
---|
| 17 | + | then check(e.sellOrder.sender) |
---|
16 | 18 | | else true |
---|
17 | 19 | | case _ => |
---|
18 | 20 | | false |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let ownerPublicKey = base58'5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES' |
---|
4 | 4 | | let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE') |
---|
5 | 5 | | let PassAssetId = base58'7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29' |
---|
| 6 | + | func check (address) = getBooleanValue(KYC, toBase58String(address.bytes)) |
---|
| 7 | + | |
---|
6 | 8 | | match tx { |
---|
7 | 9 | | case s: SetAssetScriptTransaction|ReissueTransaction => |
---|
8 | 10 | | true |
---|
9 | 11 | | case t: MassTransferTransaction|TransferTransaction => |
---|
10 | 12 | | let key = toBase58String(tx.sender.bytes) |
---|
11 | 13 | | getBooleanValue(KYC, key) |
---|
12 | 14 | | case e: ExchangeTransaction => |
---|
13 | 15 | | let amountAsset = e.sellOrder.assetPair.amountAsset |
---|
14 | 16 | | if ((amountAsset == PassAssetId)) |
---|
15 | | - | then getBooleanValue(KYC, toBase58String(e.sellOrder.sender.bytes)) |
---|
| 17 | + | then check(e.sellOrder.sender) |
---|
16 | 18 | | else true |
---|
17 | 19 | | case _ => |
---|
18 | 20 | | false |
---|
19 | 21 | | } |
---|