|
|
@ -4,17 +4,20 @@ import PropTypes from 'prop-types' |
|
|
|
import { btc } from 'utils' |
|
|
|
import styles from './OpenPendingChannel.scss' |
|
|
|
|
|
|
|
const OpenPendingChannel = ({ ticker, channel: { channel }, currentTicker, explorerLinkBase }) => ( |
|
|
|
<li className={styles.channel} onClick={() => shell.openExternal(`${explorerLinkBase}/tx/${channel.channel_point.split(':')[0]}`)}> |
|
|
|
<h1 className={styles.pending}>Opening Channel...</h1> |
|
|
|
const OpenPendingChannel = ({ ticker, channel, currentTicker, explorerLinkBase }) => ( |
|
|
|
<li className={styles.channel} onClick={() => shell.openExternal(`${explorerLinkBase}/tx/${channel.channel.channel_point.split(':')[0]}`)}> |
|
|
|
<div className={styles.pending}> |
|
|
|
<h1>Opening Channel...</h1> |
|
|
|
<span>Blocks till open: {channel.blocks_till_open}</span> |
|
|
|
</div> |
|
|
|
<div className={styles.left}> |
|
|
|
<section className={styles.remotePubkey}> |
|
|
|
<span>Remote Pubkey</span> |
|
|
|
<h4>{channel.remote_node_pub}</h4> |
|
|
|
<h4>{channel.channel.remote_node_pub}</h4> |
|
|
|
</section> |
|
|
|
<section className={styles.channelPoint}> |
|
|
|
<span>Channel Point</span> |
|
|
|
<h4>{channel.channel_point}</h4> |
|
|
|
<h4>{channel.channel.channel_point}</h4> |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
<div className={styles.right}> |
|
|
@ -23,9 +26,9 @@ const OpenPendingChannel = ({ ticker, channel: { channel }, currentTicker, explo |
|
|
|
<h2> |
|
|
|
{ |
|
|
|
ticker.currency === 'btc' ? |
|
|
|
btc.satoshisToBtc(channel.capacity) |
|
|
|
btc.satoshisToBtc(channel.channel.capacity) |
|
|
|
: |
|
|
|
btc.satoshisToUsd(channel.capacity, currentTicker.price_usd) |
|
|
|
btc.satoshisToUsd(channel.channel.capacity, currentTicker.price_usd) |
|
|
|
} |
|
|
|
</h2> |
|
|
|
</section> |
|
|
@ -34,9 +37,9 @@ const OpenPendingChannel = ({ ticker, channel: { channel }, currentTicker, explo |
|
|
|
<h4> |
|
|
|
{ |
|
|
|
ticker.currency === 'btc' ? |
|
|
|
btc.satoshisToBtc(channel.local_balance) |
|
|
|
btc.satoshisToBtc(channel.channel.local_balance) |
|
|
|
: |
|
|
|
btc.satoshisToUsd(channel.local_balance, currentTicker.price_usd) |
|
|
|
btc.satoshisToUsd(channel.channel.local_balance, currentTicker.price_usd) |
|
|
|
} |
|
|
|
</h4> |
|
|
|
<span>Local</span> |
|
|
@ -45,9 +48,9 @@ const OpenPendingChannel = ({ ticker, channel: { channel }, currentTicker, explo |
|
|
|
<h4> |
|
|
|
{ |
|
|
|
ticker.currency === 'btc' ? |
|
|
|
btc.satoshisToBtc(channel.remote_balance) |
|
|
|
btc.satoshisToBtc(channel.channel.remote_balance) |
|
|
|
: |
|
|
|
btc.satoshisToUsd(channel.remote_balance, currentTicker.price_usd) |
|
|
|
btc.satoshisToUsd(channel.channel.remote_balance, currentTicker.price_usd) |
|
|
|
} |
|
|
|
</h4> |
|
|
|
<span>Remote</span> |
|
|
|