import createIpc from 'redux-electron-ipc' 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 } from './invoice' import { receiveBalance } from './balance' import { receiveTransactions, transactionSuccessful, transactionError } from './transaction' // Import all receiving IPC event handlers and pass them into createIpc const ipc = createIpc({ receiveInfo, receivePeers, receiveChannels, receivePayments, receiveInvoices, receiveInvoice: receiveFormInvoice, createdInvoice, receiveBalance, paymentSuccessful, channelSuccessful, pushchannelupdated, pushchannelend, pushchannelerror, pushchannelstatus, closeChannelSuccessful, pushclosechannelupdated, pushclosechannelend, pushclosechannelerror, pushclosechannelstatus, connectSuccess, disconnectSuccess, receiveAddress, receiveCryptocurrency, receiveTransactions, transactionSuccessful, transactionError }) export default ipc