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:
OldNewDifferences
33 let ownerPublicKey = base58'5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES'
44 let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE')
55 let PassAssetId = base58'7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29'
6+func check (address) = getBooleanValue(KYC, toBase58String(address.bytes))
7+
68 match tx {
79 case s: SetAssetScriptTransaction|ReissueTransaction =>
810 true
1214 case e: ExchangeTransaction =>
1315 let amountAsset = e.sellOrder.assetPair.amountAsset
1416 if ((amountAsset == PassAssetId))
15- then getBooleanValue(KYC, toBase58String(e.sellOrder.sender.bytes))
17+ then check(e.sellOrder.sender)
1618 else true
1719 case _ =>
1820 false
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let ownerPublicKey = base58'5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES'
44 let KYC = Address(base58'3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE')
55 let PassAssetId = base58'7XcWcjbUJuD5Xrc7bhEwVvA7VoDFraH6TXSnFqd6Py29'
6+func check (address) = getBooleanValue(KYC, toBase58String(address.bytes))
7+
68 match tx {
79 case s: SetAssetScriptTransaction|ReissueTransaction =>
810 true
911 case t: MassTransferTransaction|TransferTransaction =>
1012 let key = toBase58String(tx.sender.bytes)
1113 getBooleanValue(KYC, key)
1214 case e: ExchangeTransaction =>
1315 let amountAsset = e.sellOrder.assetPair.amountAsset
1416 if ((amountAsset == PassAssetId))
15- then getBooleanValue(KYC, toBase58String(e.sellOrder.sender.bytes))
17+ then check(e.sellOrder.sender)
1618 else true
1719 case _ =>
1820 false
1921 }

github/deemru/w8io/026f985 
34.52 ms