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.
17 lines
510 B
17 lines
510 B
import { shell } from 'electron'
|
|
|
|
const showTransaction = (network, txid) => shell.openExternal(`${network.explorerUrl}/tx/${txid}`)
|
|
|
|
const showBlock = (network, blockHash) =>
|
|
shell.openExternal(`${network.explorerUrl}/block/${blockHash}`)
|
|
|
|
const showChannelClosing = channel => showTransaction(channel.closing_txid)
|
|
|
|
const showChannelPoint = channel => showTransaction(channel.channel.channel_point.split(':')[0])
|
|
|
|
export default {
|
|
showTransaction,
|
|
showBlock,
|
|
showChannelClosing,
|
|
showChannelPoint
|
|
}
|
|
|