|
|
@ -154,6 +154,7 @@ const elements = { |
|
|
|
if (chart && !(oldState.availableSupply === state.availableSupply && oldState.marketHistoryData === state.marketHistoryData) && state.availableSupply) { |
|
|
|
if (chart && !(oldState.availableSupply === state.availableSupply && oldState.marketHistoryData === state.marketHistoryData) && state.availableSupply) { |
|
|
|
chart.updateMarketHistory(state.availableSupply, state.marketHistoryData) |
|
|
|
chart.updateMarketHistory(state.availableSupply, state.marketHistoryData) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (chart && !(JSON.stringify(oldState.transactionStats) === JSON.stringify(state.transactionStats))) { |
|
|
|
if (chart && !(JSON.stringify(oldState.transactionStats) === JSON.stringify(state.transactionStats))) { |
|
|
|
chart.updateTransactionHistory(state.transactionStats) |
|
|
|
chart.updateTransactionHistory(state.transactionStats) |
|
|
|
} |
|
|
|
} |
|
|
@ -195,6 +196,13 @@ const elements = { |
|
|
|
$el.empty().append(formatUsdValue(state.usdMarketCap)) |
|
|
|
$el.empty().append(formatUsdValue(state.usdMarketCap)) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
'[data-selector="tx_per_day"]': { |
|
|
|
|
|
|
|
render ($el, state, oldState) { |
|
|
|
|
|
|
|
if (!(JSON.stringify(oldState.transactionStats) === JSON.stringify(state.transactionStats))) { |
|
|
|
|
|
|
|
$el.empty().append(state.transactionStats[0].number_of_transactions) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
'[data-selector="chain-block-list"]': { |
|
|
|
'[data-selector="chain-block-list"]': { |
|
|
|
load ($el) { |
|
|
|
load ($el) { |
|
|
|
return { |
|
|
|
return { |
|
|
|