tx · 5yra17RUu7iNXDC6DeBRvKEHCE1i8Xsdx7JD7FrKWaGo

3NCHkdhkeBBP1gfHpckmb2yPoYJ2CH7fxPN:  -0.20000000 Waves

2019.03.17 11:53 [539979] smart account 3NCHkdhkeBBP1gfHpckmb2yPoYJ2CH7fxPN > SELF 0.00000000 Waves

{ "type": 13, "id": "5yra17RUu7iNXDC6DeBRvKEHCE1i8Xsdx7JD7FrKWaGo", "fee": 20000000, "feeAssetId": null, "timestamp": 1552812832453, "version": 1, "sender": "3NCHkdhkeBBP1gfHpckmb2yPoYJ2CH7fxPN", "senderPublicKey": "si2dSJdZCsTdJWYDXE6WbT5coL1B3jbUuKsBRG3hYUm", "proofs": [ "5JaManc685gj5APssGeMYNXjbzJKHcLFy15kyNFijT1L3r2aaG9u7spsLzb3NHXJ773Asutbqo8B6N9JpybcFtpK", "3HeQ6wTDngJ6PazNbHb7BbGgmH1sf3voURPhSoW5cdPSJN7RxkiPMGMmvS2efYyxu8vUhSUpYJonaTWZejSopCAV", "3ZK8ByLnfLQHndVRHVFeGjjKwzfqvnjhrWvVwRJh8m1RCw8UG1YUDTDerixCSzLGus5e1mURZFdfVQqA26nx9VLu" ], "script": "base64:AQQAAAANV2hpdGVsaXN0QWRkcgkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM043VG1QRkUxUVJLRXRLTkJjUXZQaUhxR2R2bTdSS2E2VjkEAAAACnZhbGlkU3RhdGUAAAAAAAAAA+gEAAAACnByb3RlY3RvcjEBAAAAIEsrHsqTbcDh9o7MyWEe8ZnH4ZcJJ2JKvnQlgjBcVqhGBAAAAApwcm90ZWN0b3IyAQAAACDuShUap7FLVAGsh+ULX9wbwT9+COcW2u8Z2z0HsoyzJgQAAAAKcHJvdGVjdG9yMwEAAAAg8OQWBfiA7fQMx+pB8DVMLroM7Lb9BDfGnZHXbDKxF24EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNz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AAAAnR4BQAAAAckbWF0Y2gwBAAAAAhwMXNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAApwcm90ZWN0b3IxAAAAAAAAAAABAAAAAAAAAAAABAAAAAhwMnNpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAApwcm90ZWN0b3IyAAAAAAAAAAABAAAAAAAAAAAABAAAAAhwM3NpZ25lZAMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBQAAAApwcm90ZWN0b3IzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAAAhwMXNpZ25lZAUAAAAIcDJzaWduZWQFAAAACHAzc2lnbmVkAAAAAAAAAAACAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABBMZWFzZVRyYW5zYWN0aW9uBAAAAAJ0eAUAAAAHJG1hdGNoMAcDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAFVNwb25zb3JGZWVUcmFuc2FjdGlvbgQAAAACdHgFAAAAByRtYXRjaDAHCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleRSwJqc=", "chainId": 84, "height": 539979, "spentComplexity": 0 } View: original | compacted Prev: FgvpSXWEGxbNF1DP1FViiukFnfRnwWZRY63q1Ej1LVxj Next: F8gGqBbKLZaAzsKyxCE9g8ZbEnbwJGghirfB6oxnACwQ Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let WhitelistAddr = addressFromString("3N7TmPFE1QRKEtKNBcQvPiHqGdvm7RKa6V9")
44 let validState = 1000
55 let protector1 = base58'64RiMxFkTamG4znZQBhi4oxs43nNrHiHdUYYwdYQhdPj'
66 let protector2 = base58'H3BYxQ8MPzosmxYf3uj5ZLNDovW1XpbooD5K11K3vwkh'
77 let protector3 = base58'HDLZwRd7786Tk7p7Bu4ziX7dzL24yNSkVzXctJPgPTLR'
88 match tx {
99 case tx: MassTransferTransaction =>
1010 false
1111 case tx: TransferTransaction =>
1212 let userState = getInteger(extract(WhitelistAddr), toBase58String(tx.sender.bytes))
1313 if (!(isDefined(userState)))
1414 then throw("Address not in whitelist")
1515 else if ((userState != validState))
1616 then throw("Not valid state")
1717 else if (!(isDefined(tx.assetId)))
1818 then {
1919 let key = (toBase58String(tx.sender.bytes) + "_WAVES")
2020 let minAmount = getInteger(extract(WhitelistAddr), key)
2121 if (isDefined(minAmount))
2222 then {
2323 let curBalance = wavesBalance(extract(tx.sender))
2424 if ((extract(minAmount) > (curBalance - tx.amount)))
2525 then throw("Transfer is prohibited")
2626 else true
2727 }
2828 else true
2929 }
3030 else true
3131 case tx: SetScriptTransaction =>
3232 let p1signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], protector1))
3333 then 1
3434 else 0
3535 let p2signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], protector2))
3636 then 1
3737 else 0
3838 let p3signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], protector3))
3939 then 1
4040 else 0
4141 (((p1signed + p2signed) + p3signed) >= 2)
4242 case tx: LeaseTransaction =>
4343 false
4444 case tx: SponsorFeeTransaction =>
4545 false
4646 case _ =>
4747 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4848 }

github/deemru/w8io/169f3d6 
50.42 ms