tx · B1g7v6XYDfGU4JU99zRgr4DRJguw7yNjQJhGQANVPugQ

3N8WebKP587AquW9wMuVpvY3uWJu3PvaSvi:  -0.20000000 Waves

2019.03.16 21:37 [539096] smart account 3N8WebKP587AquW9wMuVpvY3uWJu3PvaSvi > SELF 0.00000000 Waves

{ "type": 13, "id": "B1g7v6XYDfGU4JU99zRgr4DRJguw7yNjQJhGQANVPugQ", "fee": 20000000, "feeAssetId": null, "timestamp": 1552761471077, "version": 1, "sender": "3N8WebKP587AquW9wMuVpvY3uWJu3PvaSvi", "senderPublicKey": "3cxPyUPthF5tZXaM1gDPfeEsxfADEmufo9omveGxatPw", "proofs": [ "5oxL2HVjrdSMmEWWbT9p3HJpcKoRHj6mGZr4gP5RaHs688AbeFE7pTXnzPezFinENERdQnVDTeGKpzw5R57evd5t" ], "script": "base64:AQQAAAANV2hpdGVsaXN0QWRkcgkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM043VG1QRkUxUVJLRXRLTkJjUXZQaUhxR2R2bTdSS2E2VjkEAAAACnZhbGlkU3RhdGUAAAAAAAAAA+gEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAQAAAAJdXNlclN0YXRlCQAEGgAAAAIJAQAAAAdleHRyYWN0AAAAAQUAAAANV2hpdGVsaXN0QWRkcgkAAlgAAAABCAgFAAAAAnR4AAAABnNlbmRlcgAAAAVieXRlcwMJAQAAAAEhAAAAAQkBAAAACWlzRGVmaW5lZAAAAAEFAAAACXVzZXJTdGF0ZQkAAAIAAAABAgAAABhBZGRyZXNzIG5vdCBpbiB3aGl0ZWxpc3QDCQEAAAACIT0AAAACBQAAAAl1c2VyU3RhdGUFAAAACnZhbGlkU3RhdGUJAAACAAAAAQIAAAAPTm90IHZhbGlkIHN0YXRlAwkBAAAAASEAAAABCQEAAAAJaXNEZWZpbmVkAAAAAQgFAAAAAnR4AAAAB2Fzc2V0SWQEAAAAA2tleQkAASwAAAACCQACWAAAAAEICAUAAAACdHgAAAAGc2VuZGVyAAAABWJ5dGVzAgAAAAZfV0FWRVMEAAAACW1pbkFtb3VudAkABBoAAAACCQEAAAAHZXh0cmFjdAAAAAEFAAAADVdoaXRlbGlzdEFkZHIFAAAAA2tleQMJAQAAAAlpc0RlZmluZWQAAAABBQAAAAltaW5BbW91bnQEAAAACmN1ckJhbGFuY2UJAQAAAAx3YXZlc0JhbGFuY2UAAAABCQEAAAAHZXh0cmFjdAAAAAEIBQAAAAJ0eAAAAAZzZW5kZXIDCQAAZgAAAAIJAQAAAAdleHRyYWN0AAAAAQUAAAAJbWluQW1vdW50CQAAZQAAAAIFAAAACmN1ckJhbGFuY2UIBQAAAAJ0eAAAAAZhbW91bnQJAAACAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAICAAAAF1RyYW5zZmVyIGlzIHByb2hpYml0ZWQgCQABpAAAAAEFAAAACmN1ckJhbGFuY2UCAAAAASAJAAGkAAAAAQgFAAAAAnR4AAAABmFtb3VudAIAAAABIAkAAaQAAAABCQEAAAAHZXh0cmFjdAAAAAEFAAAACW1pbkFtb3VudAYGBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl0JlMe", "chainId": 84, "height": 539096, "spentComplexity": 0 } View: original | compacted Prev: HZjJjWbZFkFXfKmsRZ2eym2QVP7kFytQxrZGxEuEy7ps Next: 5XRF2dNUJXhV55DjyMu7iowPpv5hyicggYqQLky38nQb 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 key = (toBase58String(tx.sender.bytes) + "_WAVES")
1717 let minAmount = getInteger(extract(WhitelistAddr), key)
1818 if (isDefined(minAmount))
1919 then {
2020 let curBalance = wavesBalance(extract(tx.sender))
2121 if ((extract(minAmount) > (curBalance - tx.amount)))
2222 then throw(((((("Transfer is prohibited " + toString(curBalance)) + " ") + toString(tx.amount)) + " ") + toString(extract(minAmount))))
2323 else true
2424 }
2525 else true
2626 }
2727 else true
2828 case _ =>
2929 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3030 }

github/deemru/w8io/026f985 
23.37 ms