|
@ -3,13 +3,11 @@ import { shell } from 'electron' |
|
|
const testnetUrl = 'https://testnet.smartbit.com.au' |
|
|
const testnetUrl = 'https://testnet.smartbit.com.au' |
|
|
const mainnetUrl = 'https://smartbit.com.au' |
|
|
const mainnetUrl = 'https://smartbit.com.au' |
|
|
|
|
|
|
|
|
const showTransaction = (isTestnet, txid) => { |
|
|
const showTransaction = (isTestnet, txid) => |
|
|
console.log('isTestnet: ', isTestnet) |
|
|
(isTestnet ? shell.openExternal(`${testnetUrl}/tx/${txid}`) : shell.openExternal(`${mainnetUrl}/tx/${txid}`)) |
|
|
console.log('txid: ', txid) |
|
|
|
|
|
isTestnet ? shell.openExternal(`${testnetUrl}/tx/${txid}`) : shell.openExternal(`${mainnetUrl}/tx/${txid}`) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const showBlock = (isTestnet, blockHash) => isTestnet ? shell.openExternal(`${testnetUrl}/block/${blockHash}`) : shell.openExternal(`${mainnetUrl}/block/${blockHash}`) |
|
|
const showBlock = (isTestnet, blockHash) => |
|
|
|
|
|
(isTestnet ? shell.openExternal(`${testnetUrl}/block/${blockHash}`) : shell.openExternal(`${mainnetUrl}/block/${blockHash}`)) |
|
|
|
|
|
|
|
|
const showChannelClosing = channel => |
|
|
const showChannelClosing = channel => |
|
|
showTransaction(channel.closing_txid) |
|
|
showTransaction(channel.closing_txid) |
|
|