|
- |
- - {Formatter.formatValue(value)} - | -
|
+ |
+ + {Formatter.formatValue(value)} + | +
|
- |
- - {Formatter.formatValueSuffix(value, 2)} - | -
|
+ |
+ + {Formatter.formatValueSuffix(value, 2)} + | +
|
- |
-
- |
-
- |
- - {TimeConverter.convertUnixTimestamp(block.timestamp, "hour")} - | -||
| + {block.hash} + | +
+ |
+
+ |
+
+ |
+
+ |
+ + {TimeConverter.convertUnixTimestamp(block.timestamp, "hour")} + | +
|
- |
- - {TimeConverter.convertUnixTimestamp(transaction.timestamp, "hour")} - | -
- {
- transaction.confirmed
- ? |
-
| + {transaction.hash} + | ++ {TimeConverter.convertUnixTimestamp(transaction.timestamp, "hour")} + | +
+ {transaction.confirmed ? (
+ |
+
| - {"Addresses " + (row_start + 1) + " to " + row_stop} - | -- {"Reputation"} - | -- {"Eligibility"} - | -
|---|
|
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
|---|---|---|---|---|---|
| + {icon}{stake.hash} + | ++ {TimeConverter.convertUnixTimestamp(stake.timestamp, "full")} + | ++ {stake.validator} + | ++ {stake.withdrawer} + | ++ {Formatter.formatWitValue(stake.stake_value)} + | +
+ {
+ stake.locked
+ ? |
+
|
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
+ |
+
|---|---|---|---|---|---|
| + {icon}{unstake.hash} + | ++ {TimeConverter.convertUnixTimestamp(unstake.timestamp, "full")} + | ++ {unstake.validator} + | ++ {unstake.withdrawer} + | ++ {Formatter.formatWitValue(unstake.unstake_value)} + | +
+ {
+ unstake.locked
+ ? |
+
| - { - data_request.input_addresses.length === 1 - ? {data_request.input_addresses[0]} - : "(multiple requesters)" - } + {data_request.requester} |
{Formatter.formatWitValue(data_request.collateral, 2)}
@@ -489,6 +481,10 @@ export default class BlockPanel extends Component {
? "1 tally"
: data.transactions.tally.length + " tallies";
+ var default_tab = data.transactions.mint.output_values.length !== 0
+ ? "mint"
+ : "value_transfer";
+
return (
| ||||||||||||||||||||||||||
|
- |
- - {data.script} - | -||||||||||||||||||||||||||
|
+ |
+ + {data.script} + | +
|
+ |
+ + {transaction.hash} + | +
|
+ |
+ + {transaction.block} + | +
|
+ |
+ + { + this.state.showNanoWitValues + ? Formatter.formatValue(transaction.fee) + " nWIT" + : Formatter.formatWitValue(transaction.fee, 2) + } + | +
|
+ |
+ + {Formatter.formatValue(transaction.weight, 0)} + | +
|
+ |
+ + {Formatter.formatValue(transaction.priority, 0)} + | +
|
+ |
+ + {transaction_time} + | +
|
+ |
+ + { + transaction.confirmed + ? "Confirmed" + : "Mined" + } + | +
| + {address} + | ++ { + showNanoWitValues + ? Formatter.formatValue(summed_inputs[address]) + " nWIT" + : Formatter.formatWitValue(summed_inputs[address], 2) + } + | +
+ {
+ idx === 0
+ ? |
+ + { + idx === 0 + ? "Staking " + stake_value + " on" + : idx === 1 + ? {data.validator} + : idx === 2 + ? {data.withdrawer} + : "" + } + | ++ { + idx === 0 + ? "" + : idx === 1 + ? " (validator)" + : idx === 2 + ? " (withdrawer)" + : "" + } + | +
| + | + | + | + { + idx === 1 + ? {data.validator} + : idx === 2 + ? {data.withdrawer} + : "" + } + | ++ { + idx === 1 + ? " (validator)" + : idx === 2 + ? " (withdrawer)" + : "" + } + | +
|
+ |
+ + {transaction.hash} + | +
|
+ |
+ + {transaction.block} + | +
|
+ |
+ + { + {transaction.validator} + } + | +
|
+ |
+ + { + {transaction.withdrawer} + } + | +
|
+ |
+ + { + this.state.showNanoWitValues + ? Formatter.formatValue(transaction.unstake_value) + " nWIT" + : Formatter.formatWitValue(transaction.unstake_value, 2) + } + | +
|
+ |
+ + { + this.state.showNanoWitValues + ? Formatter.formatValue(transaction.fee) + " nWIT" + : Formatter.formatWitValue(transaction.fee, 2) + } + | +
|
+ |
+ + {Formatter.formatValue(transaction.weight, 0)} + | +
|
+ |
+ + {Formatter.formatValue(transaction.priority, 0)} + | +
|
+ |
+ + {transaction_time} + | +
|
+ |
+ + { + transaction.confirmed + ? "Confirmed" + : "Mined" + } + | +
-
+ {output_value}
+ |
+
+ {output_timelocked}
+ {output_timelock}
+ |
+
+ );
+ });
+
+ return ([
+
+ {output_address_link}
+ |
+
+ |
+ | |
+
| this.sortTable("validator")} + > + {"Validator"} + {this.state.sort_field === "validator" ? sort_direction_icon : sort_icon} + | +this.sortTable("genesis")} + > + {"Genesis"} + {this.state.sort_field === "genesis" ? sort_direction_icon : sort_icon} + | +this.sortTable("last_active")} + > + {"Last active"} + {this.state.sort_field === "last_active" ? sort_direction_icon : sort_icon} + | +this.sortTable("current_stake")} + > + {"Current stake"} + {this.state.sort_field === "current_stake" ? sort_direction_icon : sort_icon} + | +this.sortTable("rewards")} + > + {"Rewards"} + {this.state.sort_field === "rewards" ? sort_direction_icon : sort_icon} + | +this.sortTable("blocks")} + > + {"Blocks"} + {this.state.sort_field === "blocks" ? sort_direction_icon : sort_icon} + | +this.sortTable("data_requests")} + > + {"Data requests"} + {this.state.sort_field === "data_requests" ? sort_direction_icon : sort_icon} + | +this.sortTable("lies")} + > + {"Slashes"} + {this.state.sort_field === "lies" ? sort_direction_icon : sort_icon} + | +this.sortTable("score")} + > + {"Score"} + {this.state.sort_field === "score" ? sort_direction_icon : sort_icon} + | +
|---|---|---|---|---|---|---|---|---|
| + {validator_link} + | ++ {TimeConverter.convertUnixTimestamp(data.genesis, "full")} + | ++ {data.last_active === 0 + ? "never" + : TimeConverter.convertUnixTimestamp(data.last_active, "full")} + | ++ {Formatter.formatWitValue(data.current_stake, 0)} + | ++ {Formatter.formatWitValue(data.rewards, 0)} + | ++ {Formatter.formatValue(data.blocks)} + | ++ {Formatter.formatValue(data.data_requests)} + | ++ {Formatter.formatValue(data.lies)} + | ++ {Formatter.formatValueRound(data.score, 2) + "%"} + | +