import createIpc from 'redux-electron-ipc' import { lndSyncing, lndSynced, lndStdout } from './lnd' import { receiveInfo } from './info' import { receiveAddress } from './address' import { receiveCryptocurrency } from './ticker' import { receivePeers, connectSuccess, disconnectSuccess } from './peers' import { receiveChannels, channelSuccessful, pushchannelupdated, pushchannelend, pushchannelerror, pushchannelstatus, closeChannelSuccessful, pushclosechannelupdated, pushclosechannelend, pushclosechannelerror, pushclosechannelstatus } from './channels' import { receivePayments, paymentSuccessful } from './payment' import { receiveInvoices, createdInvoice, receiveFormInvoice, invoiceUpdate } from './invoice' import { receiveBalance } from './balance' import { receiveTransactions, transactionSuccessful, transactionError, newTransaction } from './transaction' // Import all receiving IPC event handlers and pass them into createIpc const ipc = createIpc({ lndSyncing, lndSynced, lndStdout, receiveInfo, receivePeers, receiveChannels, receivePayments, receiveInvoices, receiveInvoice: receiveFormInvoice, createdInvoice, invoiceUpdate, receiveBalance, paymentSuccessful, channelSuccessful, pushchannelupdated, pushchannelend, pushchannelerror, pushchannelstatus, closeChannelSuccessful, pushclosechannelupdated, pushclosechannelend, pushclosechannelerror, pushclosechannelstatus, connectSuccess, disconnectSuccess, receiveAddress, receiveCryptocurrency, receiveTransactions, transactionSuccessful, transactionError, newTransaction }) export default ipc