-
-
{t`Asset id`}
-
{asset.asset_id}
-
-
- { is_native_asset
- // Native asset
- ? [
-
-
{t`Name`}
-
{nativeAssetName}
-
-
- ,
-
{t`Ticker`}
-
{nativeAssetLabel}
-
-
- ,
-
{t`Pegged in`}
-
{formatSat(chain_stats.peg_in_amount)}
-
-
- , mempool_stats.peg_in_amount > 0 &&
-
{t`Pegged in (unconfirmed)`}
-
{formatSat(mempool_stats.peg_in_amount)}
-
-
- ,
-
{t`Pegged out`}
-
{formatSat(chain_stats.peg_out_amount)}
-
-
- , mempool_stats.peg_out_amount > 0 &&
-
{t`Pegged out (unconfirmed)`}
-
{formatSat(mempool_stats.peg_out_amount)}
-
-
- ,
-
{t`Burned`}
-
{formatSat(chain_stats.burned_amount)}
-
- , mempool_stats.burned_amount > 0 &&
-
{t`Burned (unconfirmed)`}
-
{formatSat(mempool_stats.burned_amount)}
-
-
- ,
-
{t`Circulating amount`}
-
{formatSat(circulating)}
-
-
- ,
-
{t`Peg/burn transaction count`}
-
{formatNumber(chain_stats.tx_count)}
-
-
- , mempool_stats.peg_out_amount > 0 &&
-
{t`Peg/burn transaction count (unconfirmed)`}
-
{formatNumber(mempool_stats.tx_count)}
-
- ]
-
- // Issued assets
- : [
- asset.name &&
-
{t`Name`}
-
{asset.name}
-
-
- ,
-
{t`Precision - decimal places`}
-
{asset.precision || 0}
-
-
- , asset.ticker &&
-
{t`Ticker`}
-
{asset.ticker}
-
-
- , asset.entity &&
-
{t(`Issuer ${entity_type}`)}
-
{asset.entity[entity_type]}
-
-
- ,
-
{t`Issuance transaction`}
-
-
-
- ,
-
{t`Included in Block`}
-
-
-
- ,
-
{t`Number of issuances`}
-
{chain_stats.issuance_count}
-
-
- , mempool_stats.issuance_count > 0 &&
-
{t`Number of issuances (unconfirmed)`}
-
{mempool_stats.issuance_count}
-
-
- ,
-
{t`Issued amount`}
-
{chain_stats.has_blinded_issuances ? t`Confidential`
- : formatAssetAmount(chain_stats.issued_amount, asset.precision, t) }
-
-
- , mempool_stats.issued_amount > 0 &&
-
{t`Issued amount (unconfirmed)`}
-
{formatAssetAmount(mempool_stats.issued_amount, asset.precision, t)}
-
-
- , chain_stats.burned_amount > 0 &&
-
{t`Burned amount`}
-
{formatAssetAmount(chain_stats.burned_amount, asset.precision, t)}
-
-
- , mempool_stats.burned_amount > 0 &&
-
{t`Burned amount (unconfirmed)`}
-
{formatAssetAmount(mempool_stats.burned_amount, asset.precision, t)}
-
-
- ,
-
{t`Reissuance tokens created`}
-
{chain_stats.reissuance_tokens == null ? t`Confidential`
- : chain_stats.reissuance_tokens === 0 ? t`None`
- : formatNumber(chain_stats.reissuance_tokens) }
-
-
- , chain_stats.burned_reissuance_tokens > 0 &&
-
{t`Reissuance tokens burned`}
-
{formatNumber(chain_stats.burned_reissuance_tokens)}
-
-
- , mempool_stats.burned_reissuance_tokens > 0 &&
-
{t`Reissuance tokens burned (unconfirmed)`}
-
{formatNumber(mempool_stats.burned_reissuance_tokens)}
-
-
- ,
-
{t`Circulating amount`}
-
{ circulating == null ? t`Confidential`
- : formatAssetAmount(circulating, asset.precision, t) }
-
-
- ,
-
{t`Re-issuable`}
-
{ is_non_reissuable ? t`No` : t`Yes` }
-
+ { is_native_asset
+ // Hide Tabs if Asset is Native
+ ? null : [
+
+
+
+
+
+
+
+ {issuanceHistory(assetTxs, chain_stats, asset, t)}
+
+
+ {advancedDetails(asset, is_native_asset, mempool_stats, chain_stats, t)}
+
+
+
+ ]}
- , asset.contract_hash &&
-
{t`Contract hash`}
-
{asset.contract_hash}
+ {is_native_asset
+ // Show Transaction Box if Asset is Native
+ ? [
+
+
+
+
{(is_native_asset ? txsShownTextNative : txsShownTextIssued)(total_txs, est_prev_total_seen_count, shown_txs, t)}
+ { assetTxs ? assetTxs.map(tx => txBox(tx, { openTx, tipHeight, t, spends, ...S }))
+ :

}
- , asset.contract &&
-
{t`Contract JSON`}
-
{formatJson(asset.contract)}
+
+
+ { loading ?
+ : pagingNav(asset, last_seen_txid, est_curr_chain_seen_count, prev_paging_txids, next_paging_txids, prev_paging_est_count, t) }
+
- ]
- }
-
-
-
-
-
{(is_native_asset ? txsShownTextNative : txsShownTextIssued)(total_txs, est_prev_total_seen_count, shown_txs, t)}
- { assetTxs ? assetTxs.map(tx => txBox(tx, { openTx, tipHeight, t, spends, ...S }))
- :

}
-
-
-
-
- { loading ?
- : pagingNav(asset, last_seen_txid, est_curr_chain_seen_count, prev_paging_txids, next_paging_txids, prev_paging_est_count, t) }
+
-
-
-
-
+ ] : null }
, { t, ...S })
}
diff --git a/flavors/liquid-mainnet/config.env b/flavors/liquid-mainnet/config.env
index 750bcba9..0b3d8b38 100755
--- a/flavors/liquid-mainnet/config.env
+++ b/flavors/liquid-mainnet/config.env
@@ -9,6 +9,8 @@ export IS_ELEMENTS=1
export ASSET_MAP_URL=./_data/assets.minimal.json
+export ASSET_ICONS_URL=https://assets.blockstream.info/icons.json
+
export MENU_ACTIVE='Liquid'
export BASE_HREF=${BASE_HREF:-'/liquid/'}
diff --git a/flavors/liquid-mainnet/extras.css b/flavors/liquid-mainnet/extras.css
index c4419164..a5fc4483 100644
--- a/flavors/liquid-mainnet/extras.css
+++ b/flavors/liquid-mainnet/extras.css
@@ -21,6 +21,146 @@
background-image: linear-gradient(-90deg, rgba(13, 141, 119, 1) 0%, rgba(17, 103, 97, 1) 16%, rgba(25, 68, 74, 1) 35%, rgba(29, 42, 48, 1) 57%, rgba(14, 16, 17, 1) 100%);
}
+
+/* New Asset Summary Start*/
+.back-nav{
+ margin-top: 100px;
+ margin-bottom: 50px;
+}
+
+.back-nav a{
+ color: #78838e;
+}
+
+.back-nav a:hover{
+ color: #c2c2c3;
+}
+
+.back-nav span{
+ font-size: 20px;
+ margin-right: 10px;
+}
+
+.asset-summary{
+ color: white;
+ margin-bottom: 100px;
+}
+
+.asset-logo{
+ height:50px;
+ width:50px;
+ border-radius: 100%;
+ margin-right: 20px;
+}
+
+.asset-summary .asset-icon-placeholder{
+ width: 50px;
+ height: 50px;
+ float: left;
+ margin-right: 10px;
+ background: url(img/icons/asset_unknown.png);
+ background-size: cover;
+}
+
+.asset-summary .asset-icon{
+ width: 50px;
+ height: 50px;
+ float: left;
+ margin-right: 10px;
+}
+
+.asset-logo-name{
+ display: flex;
+ margin-bottom: 30px;
+}
+
+.asset-name{
+ font-size: 22px;
+}
+
+.asset-name span{
+ font-size: 16px;
+ font-weight: bold;
+ float: left;
+ margin-top: -5px;
+}
+
+
+
+.asset-label-text{
+ display: flex;
+ margin-bottom: 20px;
+ word-break: break-word;
+}
+
+.asset-label{
+ width: 30%;
+ color: #78838e;
+}
+
+/* Tab CSS Start *******/
+.tabs {
+ margin-top: 20px;
+ font-size: 20px;
+}
+
+.tabs input {
+ display: none;
+}
+
+.tabs label {
+ display: inline-block;
+ padding: 10px 0 ;
+ margin-right: 30px;
+ width: auto;
+ text-align: center;
+ color: #78838e;
+}
+
+.tabs label:hover {
+ cursor: pointer;
+}
+
+.tabs input:checked + label {
+ border-bottom: 2px solid #00ccff;
+ color: white;
+}
+
+.tabs #tab1:checked ~ .content #content1,
+.tabs #tab2:checked ~ .content #content2{
+ display: block;
+}
+
+.tabs .content > div {
+ display: none;
+ padding-top: 20px;
+ text-align: left;
+ overflow: auto;
+}
+/* New Asset Summary End*/
+
+
+/* Asset List Icons*/
+.assets-table-cell .asset-icon-placeholder{
+ width: 25px;
+ height: 25px;
+ float: left;
+ margin-right: 10px;
+ background: url(img/icons/asset_unknown.png);
+ background-size: cover;
+}
+
+.assets-table-cell .asset-icon{
+ width: 25px;
+ height: 25px;
+ float: left;
+ margin-right: 10px;
+}
+
+.assets-table-name span{
+ word-break: break-all;
+}
+
.assets-table .assets-table-row {
display: table;
table-layout: fixed;
@@ -68,6 +208,7 @@
.assets-table .assets-table-row > div:nth-child(1) {
padding-left: 12px;
+ padding-right: 15px;
}
.assets-table-row {
@@ -92,8 +233,16 @@
@media only screen and (max-width: 850px) {
- /* assets table */
+ .asset-label{
+ width: 40%;
+ }
+ .asset-text{
+ text-align: right;
+ width: 60%;
+ }
+
+ /* assets table */
div.assets-table-row.header {
display:none;
}
diff --git a/flavors/liquid-mainnet/www/img/icons/asset_unknown.png b/flavors/liquid-mainnet/www/img/icons/asset_unknown.png
new file mode 100644
index 00000000..12bda652
Binary files /dev/null and b/flavors/liquid-mainnet/www/img/icons/asset_unknown.png differ
diff --git a/www/light-theme_style.css b/www/light-theme_style.css
index c0ebff0f..dc473ab9 100644
--- a/www/light-theme_style.css
+++ b/www/light-theme_style.css
@@ -97,8 +97,21 @@ body.theme-light {
}
-@media only screen and (max-width: 850px) {
- .theme-light .assets-table-link-row:nth-child(odd) .assets-table-row {
- color: #fff !important;
+/* Asset Table Light Theme */
+.theme-light .assets-table-row{
+ color:rgba(21, 24, 28, 1) !important;
+}
+
+.theme-light .tabs input:checked + label{
+ color:rgba(21, 24, 28, 1);
+}
+
+.theme-light .asset-summary{
+ color:rgba(21, 24, 28, 1);
+}
+
+@media only screen and (max-width: 850px){
+ .theme-light .assets-table-link-row:nth-child(odd) .assets-table-row {
+ color: #fff !important;
}
-}
\ No newline at end of file
+}