tx · HaXcQ5JmkxMeqK6LTmBoTC9A6pPv2NCKucuppV6KG1ov 3N7p1uKge7W5zLZc8enj4DKWyzXUnRFLAWE: -0.20000000 Waves 2019.03.15 01:53 [536431] smart account 3N7p1uKge7W5zLZc8enj4DKWyzXUnRFLAWE > SELF 0.00000000 Waves
{ "type": 13, "id": "HaXcQ5JmkxMeqK6LTmBoTC9A6pPv2NCKucuppV6KG1ov", "fee": 20000000, "feeAssetId": null, "timestamp": 1552604074401, "version": 1, "sender": "3N7p1uKge7W5zLZc8enj4DKWyzXUnRFLAWE", "senderPublicKey": "345kDgJnyi8JbGr2pGfuuZbpMYt87otCR1ymL7FjfxTe", "proofs": [ "VhtNaTwpWi8nBjo5xkr5YAYnEj5ev2aq5g5fA2Je7SkvmF4Uy7Knk5NLvbgrZDoUrjJMzmd22aeVNr3vate5Xjw" ], "script": "base64:AQQAAAANV2hpdGVsaXN0QWRkcgkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM043VG1QRkUxUVJLRXRLTkJjUXZQaUhxR2R2bTdSS2E2VjkEAAAACnZhbGlkU3RhdGUAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAJdXNlclN0YXRlCQAEGgAAAAIJAQAAAAdleHRyYWN0AAAAAQUAAAANV2hpdGVsaXN0QWRkcgkAAlgAAAABCAgFAAAAAnR4AAAABnNlbmRlcgAAAAVieXRlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEFAAAACXVzZXJTdGF0ZQkAAAIAAAABAgAAABhBZGRyZXNzIG5vdCBpbiB3aGl0ZWxpc3QDCQEAAAACIT0AAAACBQAAAAl1c2VyU3RhdGUFAAAACnZhbGlkU3RhdGUJAAACAAAAAQIAAAAPTm90IHZhbGlkIHN0YXRlAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAnR4AAAAB2Fzc2V0SWQEAAAADXNlbmRlckFkZHJlc3MJAQAAAAdleHRyYWN0AAAAAQgFAAAAAnR4AAAABnNlbmRlcgQAAAADa2V5CQABLAAAAAIJAAJYAAAAAQgFAAAADXNlbmRlckFkZHJlc3MAAAAFYnl0ZXMJAAJYAAAAAQkAAZsAAAABAgAAAAZfV0FWRVMEAAAACW1pbkFtb3VudAkABBoAAAACCQEAAAAHZXh0cmFjdAAAAAEFAAAADVdoaXRlbGlzdEFkZHIFAAAAA2tleQMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAltaW5BbW91bnQEAAAACmN1ckJhbGFuY2UJAQAAAAx3YXZlc0JhbGFuY2UAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAJ0eAAAAAZzZW5kZXIDCQAAZgAAAAIJAQAAAAdleHRyYWN0AAAAAQUAAAAJbWluQW1vdW50CQAAZQAAAAIFAAAACmN1ckJhbGFuY2UIBQAAAAJ0eAAAAAZhbW91bnQJAAACAAAAAQIAAAAWVHJhbnNmZXIgaXMgcHJvaGliaXRlZAYGBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlhajdF", "chainId": 84, "height": 536431, "spentComplexity": 0 } View: original | compacted Prev: 2pg5XvbdbC99HLShm6UraH1G86DN4oAwenCJsG1Wc9wA Next: EVsB9WSE6kB7MWFc9uNwx7KAQzuLubhnaf2BUEYUpXsy Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let WhitelistAddr = addressFromString("3N7TmPFE1QRKEtKNBcQvPiHqGdvm7RKa6V9") | |
4 | 4 | let validState = 1000 | |
5 | 5 | match tx { | |
6 | 6 | case tx: MassTransferTransaction => | |
7 | 7 | false | |
8 | 8 | case tx: TransferTransaction => | |
9 | 9 | let userState = getInteger(extract(WhitelistAddr), toBase58String(tx.sender.bytes)) | |
10 | 10 | if (!(isDefined(userState))) | |
11 | 11 | then throw("Address not in whitelist") | |
12 | 12 | else if ((userState != validState)) | |
13 | 13 | then throw("Not valid state") | |
14 | 14 | else if (!(isDefined(tx.assetId))) | |
15 | 15 | then { | |
16 | 16 | let senderAddress = extract(tx.sender) | |
17 | 17 | let key = (toBase58String(senderAddress.bytes) + toBase58String(toBytes("_WAVES"))) | |
18 | 18 | let minAmount = getInteger(extract(WhitelistAddr), key) | |
19 | 19 | if (isDefined(minAmount)) | |
20 | 20 | then { | |
21 | 21 | let curBalance = wavesBalance(extract(tx.sender)) | |
22 | 22 | if ((extract(minAmount) > (curBalance - tx.amount))) | |
23 | 23 | then throw("Transfer is prohibited") | |
24 | 24 | else true | |
25 | 25 | } | |
26 | 26 | else true | |
27 | 27 | } | |
28 | 28 | else true | |
29 | 29 | case _ => | |
30 | 30 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
31 | 31 | } |
github/deemru/w8io/026f985 16.53 ms ◑