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.
128 lines
2.5 KiB
128 lines
2.5 KiB
import createIpc from 'redux-electron-ipc'
|
|
import {
|
|
lndSyncing,
|
|
lndSynced,
|
|
lndBlockHeightTarget,
|
|
lndBlockHeight,
|
|
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,
|
|
startLndError,
|
|
walletUnlockerStarted,
|
|
receiveSeed,
|
|
receiveSeedError,
|
|
successfullyCreatedWallet,
|
|
walletUnlocked,
|
|
unlockWalletError
|
|
} from './onboarding'
|
|
|
|
// Import all receiving IPC event handlers and pass them into createIpc
|
|
const ipc = createIpc({
|
|
lndSyncing,
|
|
lndSynced,
|
|
lndBlockHeightTarget,
|
|
lndBlockHeight,
|
|
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,
|
|
startLndError,
|
|
walletUnlockerStarted,
|
|
receiveSeed,
|
|
receiveSeedError,
|
|
successfullyCreatedWallet,
|
|
walletUnlocked,
|
|
unlockWalletError
|
|
})
|
|
|
|
export default ipc
|
|
|