You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
798 B
22 lines
798 B
import createIpc from 'redux-electron-ipc'
|
|
import { receiveInfo } from './info'
|
|
import { receivePeers } from './peers'
|
|
import { receiveChannels } from './channels'
|
|
import { receivePayments, paymentSuccessful } from './payment'
|
|
import { receiveInvoices, createdInvoice, receiveFormInvoice } from './invoice'
|
|
import { receiveBalance } from './balance'
|
|
|
|
// Import all receiving IPC event handlers and pass them into createIpc
|
|
const ipc = createIpc({
|
|
'receiveInfo': receiveInfo,
|
|
'receivePeers': receivePeers,
|
|
'receiveChannels': receiveChannels,
|
|
'receivePayments': receivePayments,
|
|
'receiveInvoices': receiveInvoices,
|
|
'receiveInvoice': receiveFormInvoice,
|
|
'receiveBalance': receiveBalance,
|
|
'createdInvoice': createdInvoice,
|
|
'paymentSuccessful': paymentSuccessful
|
|
})
|
|
|
|
export default ipc
|