import createIpc from 'redux-electron-ipc' import { lndSyncing, lndSynced, lndStdout, grpcDisconnected, grpcConnected } from './lnd' import { receiveInfo } from './info' import { receiveAddress } from './address' import { receiveCryptocurrency } from './ticker' import { receivePeers, connectSuccess, disconnectSuccess, connectFailure } from './peers' import { receiveChannels, channelSuccessful, pushchannelupdated, pushchannelend, pushchannelerror, pushchannelstatus, closeChannelSuccessful, pushclosechannelupdated, pushclosechannelend, pushclosechannelerror, pushclosechannelstatus, channelGraphData, channelGraphStatus } from './channels' import { lightningPaymentUri } from './payform' import { receivePayments, paymentSuccessful, paymentFailed } from './payment' import { receiveInvoices, createdInvoice, receiveFormInvoice, invoiceUpdate, invoiceFailed } from './invoice' import { receiveBalance } from './balance' import { receiveTransactions, transactionSuccessful, transactionError, newTransaction } from './transaction' import { receiveDescribeNetwork, receiveQueryRoutes, receiveInvoiceAndQueryRoutes } from './network' import { startOnboarding, walletUnlockerStarted, receiveSeed, receiveSeedError, successfullyCreatedWallet, walletUnlocked, unlockWalletError } from './onboarding' // Import all receiving IPC event handlers and pass them into createIpc const ipc = createIpc({ lndSyncing, lndSynced, lndStdout, grpcDisconnected, grpcConnected, receiveInfo, receivePeers, receiveChannels, receivePayments, receiveInvoices, receiveInvoice: receiveFormInvoice, createdInvoice, invoiceFailed, invoiceUpdate, receiveBalance, lightningPaymentUri, paymentSuccessful, paymentFailed, channelSuccessful, pushchannelupdated, pushchannelend, pushchannelerror, pushchannelstatus, closeChannelSuccessful, pushclosechannelupdated, pushclosechannelend, pushclosechannelerror, pushclosechannelstatus, channelGraphData, channelGraphStatus, connectSuccess, connectFailure, disconnectSuccess, receiveAddress, receiveCryptocurrency, receiveTransactions, transactionSuccessful, transactionError, newTransaction, receiveDescribeNetwork, receiveQueryRoutes, receiveInvoiceAndQueryRoutes, startOnboarding, walletUnlockerStarted, receiveSeed, receiveSeedError, successfullyCreatedWallet, walletUnlocked, unlockWalletError }) export default ipc