tx · Fid8P3kLDbcXk9jAmfP9JtXotJhhZbw7vqFrTh4mhcsv

3N8WebKP587AquW9wMuVpvY3uWJu3PvaSvi:  -0.20000000 Waves

2019.03.17 15:55 [540219] smart account 3N8WebKP587AquW9wMuVpvY3uWJu3PvaSvi > SELF 0.00000000 Waves

{ "type": 13, "id": "Fid8P3kLDbcXk9jAmfP9JtXotJhhZbw7vqFrTh4mhcsv", "fee": 20000000, "feeAssetId": null, "timestamp": 1552827336141, "version": 1, "sender": "3N8WebKP587AquW9wMuVpvY3uWJu3PvaSvi", "senderPublicKey": "3cxPyUPthF5tZXaM1gDPfeEsxfADEmufo9omveGxatPw", "proofs": [ "5mM6LFadELQaa7fKSAVjLgTZ98AV3KBed3GQ9apqwVVmqXoj5Dfz676cp4TzWf7Yg2aXqGMMoNwUxQ3wbwrKc5k6", "7yRvosbFKouQT7Vyf8bRX8qPBJPKJeyUWtutmRsRDgkQpJrCQbQU9WBTv9jLZZ2o6EuYWRjVb4nzgDJCTg1Ys2A", "2kM1AzaspEfgByqvF99PutLJG9JRvKuZke1ayoBkhphuenxB48Dk8LJHZGwT71KRjMruvx1UehAyB75Ti2SUNN4D" ], "script": "base64:AQQAAAANV2hpdGVsaXN0QWRkcgkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM043VG1QRkUxUVJLRXRLTkJjUXZQaUhxR2R2bTdSS2E2VjkEAAAACnZhbGlkU3RhdGUAAAAAAAAAA+gEAAAACnByb3RlY3RvcjABAAAAIEsrHsqTbcDh9o7MyWEe8ZnH4ZcJJ2JKvnQlgjBcVqhGBAAAAApwcm90ZWN0b3IxAQAAACDuShUap7FLVAGsh+ULX9wbwT9+COcW2u8Z2z0HsoyzJgQAAAAKcHJvdGVjdG9yMgEAAAAg8OQWBfiA7fQMx+pB8DVMLroM7Lb9BDfGnZHXbDKxF24EAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdNYXNzVHJhbnN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JsaWNLZXlEphsG", "chainId": 84, "height": 540219, "spentComplexity": 0 } View: original | compacted Prev: 5gaQ4FmUsCkGjt3mdoXVD9du2NPnXYF19QR4wWPTuhDF Next: FJMyCgBkDVpYa1xgQeKhCcDTSZza57T1rptuknUzLofj Full:
OldNewDifferences
11 {-# STDLIB_VERSION 1 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let WhitelistAddr = addressFromString("3N7TmPFE1QRKEtKNBcQvPiHqGdvm7RKa6V9")
44 let validState = 1000
55 let protector0 = base58'64RiMxFkTamG4znZQBhi4oxs43nNrHiHdUYYwdYQhdPj'
66 let protector1 = base58'H3BYxQ8MPzosmxYf3uj5ZLNDovW1XpbooD5K11K3vwkh'
77 let protector2 = base58'HDLZwRd7786Tk7p7Bu4ziX7dzL24yNSkVzXctJPgPTLR'
88 match tx {
99 case tx: MassTransferTransaction =>
1010 false
1111 case tx: TransferTransaction =>
1212 if (!(sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)))
1313 then throw("Transaction must be signed by owner")
1414 else {
1515 let userState = getInteger(extract(WhitelistAddr), toBase58String(tx.sender.bytes))
1616 if (!(isDefined(userState)))
1717 then throw("Address not in whitelist")
1818 else if ((userState != validState))
1919 then throw("Not valid state")
2020 else if (!(isDefined(tx.assetId)))
2121 then {
2222 let key = (toBase58String(tx.sender.bytes) + "_WAVES")
2323 let minAmount = getInteger(extract(WhitelistAddr), key)
2424 if (isDefined(minAmount))
2525 then {
2626 let curBalance = wavesBalance(extract(tx.sender))
2727 if ((extract(minAmount) > (curBalance - tx.amount)))
2828 then throw("Transfer is prohibited")
2929 else true
3030 }
3131 else true
3232 }
3333 else true
3434 }
3535 case tx: SetScriptTransaction =>
3636 let p0signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], protector0))
3737 then 1
3838 else 0
3939 let p1signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], protector1))
4040 then 1
4141 else 0
4242 let p2signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], protector2))
4343 then 1
4444 else 0
4545 (((p0signed + p1signed) + p2signed) >= 2)
4646 case tx: LeaseTransaction =>
4747 false
4848 case tx: SponsorFeeTransaction =>
4949 false
5050 case _ =>
5151 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
5252 }

github/deemru/w8io/169f3d6 
62.69 ms