tx · 6dgALPHgf66UhFWXBEZCe2u2RZaW2Grp5mcyNvwy55Yw

3NDCgZmXqKv3LuXDW5H3jNEKCkbvAczctWm:  -0.01000000 Waves

2019.07.30 23:07 [609289] smart account 3NDCgZmXqKv3LuXDW5H3jNEKCkbvAczctWm > SELF 0.00000000 Waves

{ "type": 13, "id": "6dgALPHgf66UhFWXBEZCe2u2RZaW2Grp5mcyNvwy55Yw", "fee": 1000000, "feeAssetId": null, "timestamp": 1564517278663, "version": 1, "sender": "3NDCgZmXqKv3LuXDW5H3jNEKCkbvAczctWm", "senderPublicKey": "DJtYQDZV7mABQiMvq96EFG6DbSYRMQBVgcPKRXoAnocj", "proofs": [ "2GA7azTAPCM4vLagRUJLa7CjBZ6hAusqWprs11EmDNQaJhW9aV2kMvWry85UoraGXQtqUGU8J1jpkc2jY9hQcdjC" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAAtFTVRQWVNUUklORwIAAAAAAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAA3N0cgUAAAAHJG1hdGNoMAUAAAADc3RyBQAAAAtFTVRQWVNUUklORwEAAAANaXNWYWxpZFNlbmRlcgAAAAEAAAAPZGF0YVRyYW5zYWN0aW9uBAAAAAZzZW5kZXIIBQAAAA9kYXRhVHJhbnNhY3Rpb24AAAAGc2VuZGVyBAAAABhnZXRFbnRyeUZvclNlbmRlckFkZHJlc3MJAQAAABBnZXRTdHJpbmdGcm9tS2V5AAAAAQkAAlgAAAABCAUAAAAGc2VuZGVyAAAABWJ5dGVzAwkAAAAAAAACBQAAABhnZXRFbnRyeUZvclNlbmRlckFkZHJlc3MFAAAAC0VNVFBZU1RSSU5HBwYAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkBAAAADWlzVmFsaWRTZW5kZXIAAAABBQAAAAFkBunWsW4=", "chainId": 84, "height": 609289, "spentComplexity": 0 } View: original | compacted Prev: none Next: BtWAkZ5yviZughZd1NkRfzEucD8JBuQ7fmHw6ZFuLJvq Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 3 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let EMTPYSTRING = ""
5+
6+func getStringFromKey (key) = match getString(this, key) {
7+ case str: String =>
8+ str
9+ case _ =>
10+ EMTPYSTRING
11+}
12+
13+
14+func isValidSender (dataTransaction) = {
15+ let sender = dataTransaction.sender
16+ let getEntryForSenderAddress = getStringFromKey(toBase58String(sender.bytes))
17+ if ((getEntryForSenderAddress == EMTPYSTRING))
18+ then false
19+ else true
20+ }
21+
22+
23+
24+@Verifier(tx)
25+func verify () = match tx {
26+ case d: DataTransaction =>
27+ isValidSender(d)
28+ case _ =>
29+ true
30+}
31+

github/deemru/w8io/169f3d6 
28.67 ms