tx · 9KzfG75ngprpxty8cnL5P4ZN1aMnD7sVTDPK6rBsGrc2

3N7p1uKge7W5zLZc8enj4DKWyzXUnRFLAWE:  -0.20000000 Waves

2019.03.15 02:00 [536436] smart account 3N7p1uKge7W5zLZc8enj4DKWyzXUnRFLAWE > SELF 0.00000000 Waves

{ "type": 13, "id": "9KzfG75ngprpxty8cnL5P4ZN1aMnD7sVTDPK6rBsGrc2", "fee": 20000000, "feeAssetId": null, "timestamp": 1552604469080, "version": 1, "sender": "3N7p1uKge7W5zLZc8enj4DKWyzXUnRFLAWE", "senderPublicKey": "345kDgJnyi8JbGr2pGfuuZbpMYt87otCR1ymL7FjfxTe", "proofs": [ "4EdvfV6YZ8QTErnvVcxt1h9KdSCJ9tAHWwdGHRmjqz9mMnbMkTfi3hQpyVzoTDNuarZzbJKUXaeDA5jkCYiquEb8" ], "script": "base64:AQQAAAANV2hpdGVsaXN0QWRkcgkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM043VG1QRkUxUVJLRXRLTkJjUXZQaUhxR2R2bTdSS2E2VjkEAAAACnZhbGlkU3RhdGUAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAJAAACAAAAAQIAAAAfSXQncyBub3QgYWxsb3dlZCB0byBjaGFuZ2UgVFNBUwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAXTWFzc1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAnR4BQAAAAckbWF0Y2gwBwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAEAAAACXVzZXJTdGF0ZQkABBoAAAACCQEAAAAHZXh0cmFjdAAAAAEFAAAADVdoaXRlbGlzdEFkZHIJAAJYAAAAAQgIBQAAAAJ0eAAAAAZzZW5kZXIAAAAFYnl0ZXMDCQEAAAABIQAAAAEJAQAAAAlpc0RlZmluZWQAAAABBQAAAAl1c2VyU3RhdGUJAAACAAAAAQIAAAAYQWRkcmVzcyBub3QgaW4gd2hpdGVsaXN0AwkBAAAAAiE9AAAAAgUAAAAJdXNlclN0YXRlBQAAAAp2YWxpZFN0YXRlCQAAAgAAAAECAAAAD05vdCB2YWxpZCBzdGF0ZQMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEIBQAAAAJ0eAAAAAdhc3NldElkBAAAAANrZXkJAAEsAAAAAgkAAlgAAAABCAgFAAAAAnR4AAAABnNlbmRlcgAAAAVieXRlcwIAAAAGX1dBVkVTBAAAAAltaW5BbW91bnQJAAQaAAAAAgkBAAAAB2V4dHJhY3QAAAABBQAAAA1XaGl0ZWxpc3RBZGRyBQAAAANrZXkDCQEAAAAJaXNEZWZpbmVkAAAAAQUAAAAJbWluQW1vdW50BAAAAApjdXJCYWxhbmNlCQEAAAAMd2F2ZXNCYWxhbmNlAAAAAQkBAAAAB2V4dHJhY3QAAAABCAUAAAACdHgAAAAGc2VuZGVyAwkAAGYAAAACCQEAAAAHZXh0cmFjdAAAAAEFAAAACW1pbkFtb3VudAkAAGUAAAACBQAAAApjdXJCYWxhbmNlCAUAAAACdHgAAAAGYW1vdW50CQAAAgAAAAECAAAAFlRyYW5zZmVyIGlzIHByb2hpYml0ZWQGBgYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V566x0fg==", "chainId": 84, "height": 536436, "spentComplexity": 0 } View: original | compacted Prev: Pry1tQ71wb7gZ3FR74j1ooU1PDoEw2JkgCMvaeVt3PZ Next: none Diff:
OldNewDifferences
33 let WhitelistAddr = addressFromString("3N7TmPFE1QRKEtKNBcQvPiHqGdvm7RKa6V9")
44 let validState = 1000
55 match tx {
6+ case tx: SetScriptTransaction =>
7+ throw("It's not allowed to change TSAS")
68 case tx: MassTransferTransaction =>
79 false
810 case tx: TransferTransaction =>
1315 then throw("Not valid state")
1416 else if (!(isDefined(tx.assetId)))
1517 then {
16- let senderAddress = extract(tx.sender)
17- let key = (toBase58String(senderAddress.bytes) + toBase58String(toBytes("_WAVES")))
18+ let key = (toBase58String(tx.sender.bytes) + "_WAVES")
1819 let minAmount = getInteger(extract(WhitelistAddr), key)
1920 if (isDefined(minAmount))
2021 then {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let WhitelistAddr = addressFromString("3N7TmPFE1QRKEtKNBcQvPiHqGdvm7RKa6V9")
44 let validState = 1000
55 match tx {
6+ case tx: SetScriptTransaction =>
7+ throw("It's not allowed to change TSAS")
68 case tx: MassTransferTransaction =>
79 false
810 case tx: TransferTransaction =>
911 let userState = getInteger(extract(WhitelistAddr), toBase58String(tx.sender.bytes))
1012 if (!(isDefined(userState)))
1113 then throw("Address not in whitelist")
1214 else if ((userState != validState))
1315 then throw("Not valid state")
1416 else if (!(isDefined(tx.assetId)))
1517 then {
16- let senderAddress = extract(tx.sender)
17- let key = (toBase58String(senderAddress.bytes) + toBase58String(toBytes("_WAVES")))
18+ let key = (toBase58String(tx.sender.bytes) + "_WAVES")
1819 let minAmount = getInteger(extract(WhitelistAddr), key)
1920 if (isDefined(minAmount))
2021 then {
2122 let curBalance = wavesBalance(extract(tx.sender))
2223 if ((extract(minAmount) > (curBalance - tx.amount)))
2324 then throw("Transfer is prohibited")
2425 else true
2526 }
2627 else true
2728 }
2829 else true
2930 case _ =>
3031 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3132 }

github/deemru/w8io/026f985 
28.70 ms