tx · 9vZdKkv7xH78zqPDtEcCns1tB6rCwhb35TziLEsNa2Fx

3Mvw2j5xZWiX1eLpzJZkkzstsnm4dUHLL5g:  -0.01400000 Waves

2019.11.27 19:18 [783907] smart account 3Mvw2j5xZWiX1eLpzJZkkzstsnm4dUHLL5g > SELF 0.00000000 Waves

{ "type": 13, "id": "9vZdKkv7xH78zqPDtEcCns1tB6rCwhb35TziLEsNa2Fx", "fee": 1400000, "feeAssetId": null, "timestamp": 1574871695334, "version": 1, "sender": "3Mvw2j5xZWiX1eLpzJZkkzstsnm4dUHLL5g", "senderPublicKey": "6ckGNJnCuVoqeMFFcmjoJD2hZnVt6tsa7nyMUtckr23q", "proofs": [ "5HidzyARWySA2MoMhkT5iHBxKQUGXntxrZC2X4Z9HWcPJbCbVY9UaoopJQ8mV1inPYF6xvA93GXnraYvK7yM95TG", "4JeFNF11AQP9dkWiEcCwYpvcoGDN9iY5Au5tqyMCnKnDgQ9jAAKqmhk4LrUk49yWJhRHDePKuB5UorvVZpTcdySn" ], "script": "base64:AwQAAAAHYXNzZXRJZAEAAAAgB+ix+ct2rY67Li5myqCXhbvtYU+/Ua4qRDfSO102YokEAAAAEHdoaXRlTGlzdEFkZHJlc3MCAAAAIzNOQ1NFeHRkb3hNWHc4TUVBenNYNU1RZ2E1UlF5OXAzZVVTBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAATVHJhbnNmZXJUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMJAQAAAAIhPQAAAAIIBQAAAAF0AAAAB2Fzc2V0SWQFAAAAB2Fzc2V0SWQJAAH0AAAAAwgFAAAAAXQAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAF0AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAXQAAAAPc2VuZGVyUHVibGljS2V5BAAAABByZWNpcGllbnRBZGRyZXNzCQAEJQAAAAEJAAQkAAAAAQgFAAAAAXQAAAAJcmVjaX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B9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAUYXNzZXRJc3N1ZXJQdWJsaWNLZXkHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9CdXJuVHJhbnNhY3Rpb24EAAAAAWIFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABdJbnZva2VTY3JpcHRUcmFuc2FjdGlvbgQAAAABaQUAAAAHJG1hdGNoMAMJAAAAAAAAAgkABCUAAAABCQAEJAAAAAEIBQAAAAFpAAAABGRBcHAFAAAAEHdoaXRlTGlzdEFkZHJlc3MJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BwkAAAIAAAABAgAAABRCYWQgdHJhbnNhY3Rpb24gdHlwZZebZfw=", "chainId": 84, "height": 783907, "spentComplexity": 0 } View: original | compacted Prev: EAcH4buSm7m2QAU3KnGQnu5BTy16D75DKXMB8jKqnXV4 Next: none Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# CONTENT_TYPE EXPRESSION #-}
33 let assetId = base58'Xsek1E1FUWrv1pqvknTTktkbtVRRW4fuGpepYtzqpHW'
44 let whiteListAddress = "3NCSExtdoxMXw8MEAzsX5MQga5RQy9p3eUS"
55 match tx {
66 case t: TransferTransaction =>
77 if ((t.assetId != assetId))
88 then sigVerify(t.bodyBytes, t.proofs[0], t.senderPublicKey)
99 else {
1010 let recipientAddress = toString(addressFromRecipient(t.recipient))
1111 let whiteListAddressValue = addressFromStringValue(whiteListAddress)
1212 let addressIsAllowed = getBoolean(whiteListAddressValue, recipientAddress)
1313 let addressInWhiteList = match addressIsAllowed {
1414 case b: Boolean =>
1515 (b == true)
1616 case _ =>
1717 false
1818 }
1919 if (if (addressInWhiteList)
2020 then true
2121 else (recipientAddress == whiteListAddress))
2222 then if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
2323 then true
2424 else throw("Signature is required")
2525 else throw("You can send this token only to white-listed addresses")
2626 }
2727 case s: SetScriptTransaction =>
2828 let assetIssuerPublicKey = extract(assetInfo(assetId)).issuerPublicKey
2929 if (sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey))
3030 then sigVerify(tx.bodyBytes, tx.proofs[1], assetIssuerPublicKey)
3131 else false
3232 case b: BurnTransaction =>
3333 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3434 case i: InvokeScriptTransaction =>
3535 if ((toString(addressFromRecipient(i.dApp)) == whiteListAddress))
3636 then sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
3737 else false
3838 case _ =>
3939 throw("Bad transaction type")
4040 }

github/deemru/w8io/026f985 
55.80 ms