tx · AwuEvFxdGEVjX75gWQU9XJJKsrbUfo2Z74ueWmcFyExd 3Mx2t9258RiyKYYJQh96yQECD29H69w6XVK: -0.01400000 Waves 2019.02.13 22:50 [493760] smart account 3Mx2t9258RiyKYYJQh96yQECD29H69w6XVK > SELF 0.00000000 Waves
{ "type": 13, "id": "AwuEvFxdGEVjX75gWQU9XJJKsrbUfo2Z74ueWmcFyExd", "fee": 1400000, "feeAssetId": null, "timestamp": 1550087410003, "version": 1, "sender": "3Mx2t9258RiyKYYJQh96yQECD29H69w6XVK", "senderPublicKey": "4GJouUoWuGCDa5ZepUVSkvRfrGoBmAu6z7KC6jzDXiKi", "proofs": [ "5myfbMXkBUzcqSzzEEznSyV7eGH1VvtS9xji1g6c62MxZxztrsDksw2TVnrmcmMnyfNpZs3rUrRGkQwZX9gHPvKv" ], "script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBAAAAA9zZW5kZXJLWUNTdGF0dXMJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFXHYb9TokmhMqqDzJjOeGP63QK/cIdtFbxCQACWAAAAAEICAUAAAACdHgAAAAGc2VuZGVyAAAABWJ5dGVzBAAAABJyZWNpcGllbnRLWUNTdGF0dXMJAQAAAAdleHRyYWN0AAAAAQkABBoAAAACCQEAAAAHQWRkcmVzcwAAAAEBAAAAGgFXHYb9TokmhMqqDzJjOeGP63QK/cIdtFbxCQACWAAAAAEICQAEJAAAAAEIBQAAAAJ0eAAAAAlyZWNpcGllbnQAAAAFYnl0ZXMEAAAAFWlzQ2hhaW5pZnlUcmFuc2FjdGlvbgkAAAAAAAACCAUAAAACdHgAAAAKZmVlQXNzZXRJZAEAAAAgWrIaHM7zmBqohKhK3cebn6AjmkpuAfGkhw6kd9h7TJkDAwMDBQAAABVpc0NoYWluaWZ5VHJhbnNhY3Rpb24JAQAAAAlpc0RlZmluZWQAAAABBQAAAA9zZW5kZXJLWUNTdGF0dXMHCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAScmVjaXBpZW50S1lDU3RhdHVzBwkAAGYAAAACBQAAAA9zZW5kZXJLWUNTdGF0dXMA//////////8HCQAAZgAAAAIFAAAAEnJlY2lwaWVudEtZQ1N0YXR1cwD//////////wcGHDG+YA==", "chainId": 84, "height": 493760, "spentComplexity": 0 } View: original | compacted Prev: 36QvqkxiQREohr1bqnnrhEB59vdKC7KmUQuzYmD8gGFx Next: A6oog8DMByj2gp27iJbeshUwfVSy2tpFbDtbzjo7u1X9 Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | - | let KYCPublicKey = base58'C5aYVoG8RsbtH8dkss86vvFqJHkFnT7juFBZ4k2LfrxC' | |
4 | 3 | match tx { | |
5 | - | case tx: DataTransaction => | |
6 | - | if (sigVerify(tx.bodyBytes, tx.proofs[0], KYCPublicKey)) | |
7 | - | then true | |
8 | - | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
4 | + | case tx: TransferTransaction => | |
5 | + | let senderKYCStatus = extract(getInteger(Address(base58'3P4d233SRskDnHmCNGbCS9wFuttRHd87cYY'), toBase58String(tx.sender.bytes))) | |
6 | + | let recipientKYCStatus = extract(getInteger(Address(base58'3P4d233SRskDnHmCNGbCS9wFuttRHd87cYY'), toBase58String(addressFromRecipient(tx.recipient).bytes))) | |
7 | + | let isChainifyTransaction = (tx.feeAssetId == base58'773D1j3LwCZSBEJLLbz9ym57SD5kPhXQpjeNPmBNkqRa') | |
8 | + | if (if (if (if (isChainifyTransaction) | |
9 | + | then isDefined(senderKYCStatus) | |
10 | + | else false) | |
11 | + | then isDefined(recipientKYCStatus) | |
12 | + | else false) | |
13 | + | then (senderKYCStatus > -1) | |
14 | + | else false) | |
15 | + | then (recipientKYCStatus > -1) | |
16 | + | else false | |
9 | 17 | case _ => | |
10 | - | | |
18 | + | true | |
11 | 19 | } |
github/deemru/w8io/169f3d6 25.58 ms ◑