|
|
|
@ -585,13 +585,9 @@ defmodule EthereumJSONRPC.Block do |
|
|
|
|
# double check that no new keys are being missed by requiring explicit match for passthrough |
|
|
|
|
# `t:EthereumJSONRPC.address/0` and `t:EthereumJSONRPC.hash/0` pass through as `Explorer.Chain` can verify correct |
|
|
|
|
# hash format |
|
|
|
|
# bitcoinMergedMiningCoinbaseTransaction bitcoinMergedMiningHeader bitcoinMergedMiningMerkleProof hashForMergedMining - RSK https://github.com/blockscout/blockscout/pull/2934 |
|
|
|
|
# committedSeals committee pastCommittedSeals proposerSeal round - Autonity network https://github.com/blockscout/blockscout/pull/3480 |
|
|
|
|
# blockGasCost extDataGasUsed - sgb/ava https://github.com/blockscout/blockscout/pull/5301 |
|
|
|
|
# blockExtraData extDataHash - Avalanche https://github.com/blockscout/blockscout/pull/5348 |
|
|
|
|
defp entry_to_elixir({key, _} = entry) |
|
|
|
|
when key in ~w(author extraData hash logsBloom miner mixHash nonce parentHash receiptsRoot sealFields sha3Uncles |
|
|
|
|
signature stateRoot step transactionsRoot uncles bitcoinMergedMiningCoinbaseTransaction bitcoinMergedMiningHeader bitcoinMergedMiningMerkleProof hashForMergedMining committedSeals committee pastCommittedSeals proposerSeal round blockGasCost extDataGasUsed blockExtraData extDataHash), |
|
|
|
|
signature stateRoot step transactionsRoot uncles), |
|
|
|
|
do: entry |
|
|
|
|
|
|
|
|
|
defp entry_to_elixir({"timestamp" = key, timestamp}) do |
|
|
|
@ -606,4 +602,14 @@ defmodule EthereumJSONRPC.Block do |
|
|
|
|
defp entry_to_elixir({"l1BlockNumber", _}) do |
|
|
|
|
{:ignore, :ignore} |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
# bitcoinMergedMiningCoinbaseTransaction bitcoinMergedMiningHeader bitcoinMergedMiningMerkleProof hashForMergedMining - RSK https://github.com/blockscout/blockscout/pull/2934 |
|
|
|
|
# committedSeals committee pastCommittedSeals proposerSeal round - Autonity network https://github.com/blockscout/blockscout/pull/3480 |
|
|
|
|
# blockGasCost extDataGasUsed - sgb/ava https://github.com/blockscout/blockscout/pull/5301 |
|
|
|
|
# blockExtraData extDataHash - Avalanche https://github.com/blockscout/blockscout/pull/5348 |
|
|
|
|
# vrf vrfProof - Harmony |
|
|
|
|
# ... |
|
|
|
|
defp entry_to_elixir({_, _}) do |
|
|
|
|
{:ignore, :ignore} |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|