tx · FMKGavJLCX449bp2MBL5gnZEKXEAvD6vYKD7fvsdbroq

3MsbhuESLvMyybjDBGRhLHZX9p2rq1dBen7:  -0.20000000 Waves

2019.03.15 01:42 [536421] smart account 3MsbhuESLvMyybjDBGRhLHZX9p2rq1dBen7 > SELF 0.00000000 Waves

{ "type": 13, "id": "FMKGavJLCX449bp2MBL5gnZEKXEAvD6vYKD7fvsdbroq", "fee": 20000000, "feeAssetId": null, "timestamp": 1552603326378, "version": 1, "sender": "3MsbhuESLvMyybjDBGRhLHZX9p2rq1dBen7", "senderPublicKey": "6BPy1V7mRGY8ZTvgJ3Dj7N6DhDf3dmgxRoePoSUuYvQw", "proofs": [ "4sJzW4yWDLm83S3qyTnmGKteUrK7GMaZhYdYgV3qwC2Ma2Gnin67MdRvv9YY9P7YL3Wzpf3joZ4ndUPHfNef2cfR" ], "script": "base64:AQQAAAANV2hpdGVsaXN0QWRkcgkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM043VG1QRkUxUVJLRXRLTkJjUXZQaUhxR2R2bTdSS2E2VjkEAAAACnZhbGlkU3RhdGUAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAJdXNlclN0YXRlCQAEGgAAAAIJAQAAAAdleHRyYWN0AAAAAQUAAAANV2hpdGVsaXN0QWRkcgkAAlgAAAABCAgFAAAAAnR4AAAABnNlbmRlcgAAAAVieXRlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEFAAAACXVzZXJTdGF0ZQkAAAIAAAABAgAAABhBZGRyZXNzIG5vdCBpbiB3aGl0ZWxpc3QDCQEAAAACIT0AAAACBQAAAAl1c2VyU3RhdGUFAAAACnZhbGlkU3RhdGUJAAACAAAAAQIAAAAPTm90IHZhbGlkIHN0YXRlAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAnR4AAAAB2Fzc2V0SWQEAAAADXNlbmRlckFkZHJlc3MJAQAAAAdleHRyYWN0AAAAAQgFAAAAAnR4AAAABnNlbmRlcgQAAAADa2V5CQABLAAAAAIJAAJYAAAAAQgFAAAADXNlbmRlckFkZHJlc3MAAAAFYnl0ZXMJAAJYAAAAAQkAAZsAAAABAgAAAAZfV0FWRVMEAAAACW1pbkFtb3VudAkABBoAAAACCQEAAAAHZXh0cmFjdAAAAAEFAAAADVdoaXRlbGlzdEFkZHIFAAAAA2tleQMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAltaW5BbW91bnQEAAAACmN1ckJhbGFuY2UJAQAAAAx3YXZlc0JhbGFuY2UAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAJ0eAAAAAZzZW5kZXIDCQAAZgAAAAIJAQAAAAdleHRyYWN0AAAAAQUAAAAJbWluQW1vdW50CQAAZQAAAAIFAAAACmN1ckJhbGFuY2UIBQAAAAJ0eAAAAAZhbW91bnQJAAACAAAAAQIAAAAWVHJhbnNmZXIgaXMgcHJvaGliaXRlZAYGBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXlhajdF", "chainId": 84, "height": 536421, "spentComplexity": 0 } View: original | compacted Prev: BUxrvuADqhNCPSNetfEzA89UTotBp7RcM5Yq6oiaQDTe Next: 7ADVhbduMBa62j6ZRg5FtunCfAyZaY5KMqEXQdCt6o5a Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let WhitelistAddr = addressFromString("3N7TmPFE1QRKEtKNBcQvPiHqGdvm7RKa6V9")
44 let validState = 1000
55 match tx {
66 case tx: MassTransferTransaction =>
77 false
88 case tx: TransferTransaction =>
99 let userState = getInteger(extract(WhitelistAddr), toBase58String(tx.sender.bytes))
1010 if (!(isDefined(userState)))
1111 then throw("Address not in whitelist")
1212 else if ((userState != validState))
1313 then throw("Not valid state")
1414 else if (!(isDefined(tx.assetId)))
1515 then {
1616 let senderAddress = extract(tx.sender)
1717 let key = (toBase58String(senderAddress.bytes) + toBase58String(toBytes("_WAVES")))
1818 let minAmount = getInteger(extract(WhitelistAddr), key)
1919 if (isDefined(minAmount))
2020 then {
2121 let curBalance = wavesBalance(extract(tx.sender))
2222 if ((extract(minAmount) > (curBalance - tx.amount)))
2323 then throw("Transfer is prohibited")
2424 else true
2525 }
2626 else true
2727 }
2828 else true
2929 case _ =>
3030 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3131 }

github/deemru/w8io/026f985 
25.35 ms