tx · 7ZQzeVMRcwQp5WDoRv5FYibQeQntscW6SxTAN7DZbD9u 3N8WebKP587AquW9wMuVpvY3uWJu3PvaSvi: -0.20000000 Waves 2019.03.15 23:52 [537761] smart account 3N8WebKP587AquW9wMuVpvY3uWJu3PvaSvi > SELF 0.00000000 Waves
{ "type": 13, "id": "7ZQzeVMRcwQp5WDoRv5FYibQeQntscW6SxTAN7DZbD9u", "fee": 20000000, "feeAssetId": null, "timestamp": 1552683161756, "version": 1, "sender": "3N8WebKP587AquW9wMuVpvY3uWJu3PvaSvi", "senderPublicKey": "3cxPyUPthF5tZXaM1gDPfeEsxfADEmufo9omveGxatPw", "proofs": [ "2RxwnYr494Mwcz3ZnZvsrEvsjo4RGED9B55GAPm4dA3TaJmXJLFUMAU5FXkzovuGj7FFxJ54XXueNPGhe3kcej8o" ], "script": "base64:AQQAAAANV2hpdGVsaXN0QWRkcgkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM043VG1QRkUxUVJLRXRLTkJjUXZQaUhxR2R2bTdSS2E2VjkEAAAACnZhbGlkU3RhdGUAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAJdXNlclN0YXRlCQAEGgAAAAIJAQAAAAdleHRyYWN0AAAAAQUAAAANV2hpdGVsaXN0QWRkcgkAAlgAAAABCAgFAAAAAnR4AAAABnNlbmRlcgAAAAVieXRlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEFAAAACXVzZXJTdGF0ZQkAAAIAAAABAgAAABhBZGRyZXNzIG5vdCBpbiB3aGl0ZWxpc3QDCQEAAAACIT0AAAACBQAAAAl1c2VyU3RhdGUFAAAACnZhbGlkU3RhdGUJAAACAAAAAQIAAAAPTm90IHZhbGlkIHN0YXRlAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAnR4AAAAB2Fzc2V0SWQEAAAAA2tleQkAASwAAAACCQACWAAAAAEICAUAAAACdHgAAAAGc2VuZGVyAAAABWJ5dGVzAgAAAAZfV0FWRVMEAAAACW1pbkFtb3VudAkABBoAAAACCQEAAAAHZXh0cmFjdAAAAAEFAAAADVdoaXRlbGlzdEFkZHIFAAAAA2tleQMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAltaW5BbW91bnQEAAAACmN1ckJhbGFuY2UJAQAAAAx3YXZlc0JhbGFuY2UAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAJ0eAAAAAZzZW5kZXIDCQAAZgAAAAIJAQAAAAdleHRyYWN0AAAAAQUAAAAJbWluQW1vdW50CQAAZQAAAAIFAAAACmN1ckJhbGFuY2UIBQAAAAJ0eAAAAAZhbW91bnQJAAACAAAAAQIAAAAWVHJhbnNmZXIgaXMgcHJvaGliaXRlZAYGBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlHwz0J", "chainId": 84, "height": 537761, "spentComplexity": 0 } View: original | compacted Prev: 4L4nx6m9mQYP8TSBzo8pZeozc9S2jWXnFjYpRV3Aigqz Next: HV3puVnLEjWynt34AtSpwiYYzcQwQjvgnCCeXSRZz2eH 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 key = (toBase58String(tx.sender.bytes) + "_WAVES") | |
17 | 17 | let minAmount = getInteger(extract(WhitelistAddr), key) | |
18 | 18 | if (isDefined(minAmount)) | |
19 | 19 | then { | |
20 | 20 | let curBalance = wavesBalance(extract(tx.sender)) | |
21 | 21 | if ((extract(minAmount) > (curBalance - tx.amount))) | |
22 | 22 | then throw("Transfer is prohibited") | |
23 | 23 | else true | |
24 | 24 | } | |
25 | 25 | else true | |
26 | 26 | } | |
27 | 27 | else true | |
28 | 28 | case _ => | |
29 | 29 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
30 | 30 | } |
github/deemru/w8io/026f985 20.53 ms ◑