In #769 we discovered that bdk_wallet currently doesn't support retrieving WalletEvents when applying mempool transactions. We therefore had to resort to copy over the wallet_events utility method. Once this is resolved (cf. bitcoindevkit/bdk_wallet#374), we should drop that copied code again.