diff --git a/airflow/dags/polygonetl_airflow/build_load_dag.py b/airflow/dags/polygonetl_airflow/build_load_dag.py index 5fe6b3fc..4153003e 100644 --- a/airflow/dags/polygonetl_airflow/build_load_dag.py +++ b/airflow/dags/polygonetl_airflow/build_load_dag.py @@ -106,7 +106,7 @@ def add_load_tasks(task, file_format, allow_quoted_newlines=False): dag=dag ) - def load_task(): + def load_task(ds, **kwargs): client = bigquery.Client() job_config = bigquery.LoadJobConfig() schema_path = os.path.join(dags_folder, 'resources/stages/raw/schemas/{task}.json'.format(task=task)) @@ -119,13 +119,35 @@ def load_task(): job_config.ignore_unknown_values = True export_location_uri = 'gs://{bucket}/export'.format(bucket=output_bucket) - uri = '{export_location_uri}/{task}/*.{file_format}'.format( - export_location_uri=export_location_uri, task=task, file_format=file_format) - table_ref = client.dataset(dataset_name_raw).table(task) + if load_all_partitions: + # Support export files that are missing EIP-1559 fields (exported before EIP-1559 upgrade) + job_config.allow_jagged_rows = True + + uri = "{export_location_uri}/{task}/*.{file_format}".format( + export_location_uri=export_location_uri, + task=task, + file_format=file_format, + ) + table_ref = client.dataset(dataset_name_raw).table(task) + else: + uri = "{export_location_uri}/{task}/block_date={ds}/*.{file_format}".format( + export_location_uri=export_location_uri, + task=task, + ds=ds, + file_format=file_format, + ) + table_name = f'{task}_{ds.replace("-", "_")}' + table_ref = client.dataset(dataset_name_raw).table(table_name) + load_job = client.load_table_from_uri(uri, table_ref, job_config=job_config) submit_bigquery_job(load_job, job_config) assert load_job.state == 'DONE' + if not load_all_partitions: + table = client.get_table(table_ref) + table.expires = datetime.now() + timedelta(days=3) + client.update_table(table, ["expires"]) + load_operator = PythonOperator( task_id='load_{task}'.format(task=task), python_callable=load_task, @@ -142,6 +164,11 @@ def enrich_task(ds, **kwargs): template_context['ds'] = ds template_context['params'] = environment + if load_all_partitions or always_load_all_partitions: + template_context["params"]["ds_postfix"] = "" + else: + template_context["params"]["ds_postfix"] = "_" + ds.replace("-", "_") + client = bigquery.Client() # Need to use a temporary table because bq query sets field modes to NULLABLE and descriptions to null diff --git a/airflow/dags/resources/stages/enrich/schemas/blocks.json b/airflow/dags/resources/stages/enrich/schemas/blocks.json index 2375a236..4eedb509 100644 --- a/airflow/dags/resources/stages/enrich/schemas/blocks.json +++ b/airflow/dags/resources/stages/enrich/schemas/blocks.json @@ -92,5 +92,10 @@ "name": "transaction_count", "type": "INT64", "description": "The number of transactions in the block" + }, + { + "name": "base_fee_per_gas", + "type": "INT64", + "description": "Protocol base fee per gas, which can move up or down" } -] \ No newline at end of file +] diff --git a/airflow/dags/resources/stages/enrich/schemas/transactions.json b/airflow/dags/resources/stages/enrich/schemas/transactions.json index 1a41a454..947fc660 100644 --- a/airflow/dags/resources/stages/enrich/schemas/transactions.json +++ b/airflow/dags/resources/stages/enrich/schemas/transactions.json @@ -90,5 +90,25 @@ "type": "STRING", "mode": "REQUIRED", "description": "Hash of the block where this transaction was in" + }, + { + "name": "max_fee_per_gas", + "type": "INT64", + "description": "Total fee that covers both base and priority fees" + }, + { + "name": "max_priority_fee_per_gas", + "type": "INT64", + "description": "Fee given to miners to incentivize them to include the transaction" + }, + { + "name": "transaction_type", + "type": "INT64", + "description": "Transaction type. One of 0 (Legacy), 1 (Legacy), 2 (EIP-1559)" + }, + { + "name": "receipt_effective_gas_price", + "type": "INT64", + "description": "The actual value per gas deducted from the senders account. Replacement of gas_price after EIP-1559" } -] \ No newline at end of file +] diff --git a/airflow/dags/resources/stages/enrich/sqls/amended_tokens.sql b/airflow/dags/resources/stages/enrich/sqls/amended_tokens.sql deleted file mode 100644 index 48e3fb99..00000000 --- a/airflow/dags/resources/stages/enrich/sqls/amended_tokens.sql +++ /dev/null @@ -1,30 +0,0 @@ -WITH tokens AS ( - -- Deduplicate first since the tokens table might have duplicate entries due to CREATE2 https://medium.com/@jason.carver/defend-against-wild-magic-in-the-next-ethereum-upgrade-b008247839d2 - SELECT - address, - ANY_VALUE(symbol) AS symbol, - ANY_VALUE(name) AS name, - ANY_VALUE(decimals) AS decimals, - FROM `bigquery-public-data.crypto_ethereum.tokens` - GROUP BY address -), -deduplicated_token_amendments AS ( - -- Deduplicate first since token_amendments can have human errors - SELECT - address, - ANY_VALUE(symbol) AS symbol, - ANY_VALUE(name) AS name, - ANY_VALUE(decimals) AS decimals, - FROM `blockchain-etl-internal.common.token_amendments` - GROUP BY address -) -SELECT - LOWER(address) AS address, - COALESCE(am.symbol, tokens.symbol) AS symbol, - COALESCE(am.name, tokens.name) AS name, - COALESCE(am.decimals, tokens.decimals) AS decimals, -FROM - deduplicated_token_amendments AS am -FULL OUTER JOIN - tokens -USING(address) diff --git a/airflow/dags/resources/stages/enrich/sqls/balances.sql b/airflow/dags/resources/stages/enrich/sqls/balances.sql index 77a1f946..5946e205 100644 --- a/airflow/dags/resources/stages/enrich/sqls/balances.sql +++ b/airflow/dags/resources/stages/enrich/sqls/balances.sql @@ -1,7 +1,7 @@ with double_entry_book as ( -- debits select to_address as address, CAST(value AS FLOAT64) as value - from `{{params.destination_dataset_project_id}}.{{params.dataset_name}}.traces` + from `{{params.destination_dataset_project_id}}.{{params.dataset_name}}.traces{{params.ds_postfix}}` where true and date(block_timestamp) <= '{{ds}}' and to_address is not null @@ -10,7 +10,7 @@ with double_entry_book as ( union all -- credits select from_address as address, -CAST(value AS FLOAT64) as value - from `{{params.destination_dataset_project_id}}.{{params.dataset_name}}.traces` + from `{{params.destination_dataset_project_id}}.{{params.dataset_name}}.traces{{params.ds_postfix}}` where true and date(block_timestamp) <= '{{ds}}' and from_address is not null @@ -18,19 +18,23 @@ with double_entry_book as ( and (call_type not in ('delegatecall', 'callcode', 'staticcall') or call_type is null) union all -- transaction fees debits - select miner as address, sum(cast(receipt_gas_used as numeric) * cast(gas_price as numeric)) as value - from `{{params.destination_dataset_project_id}}.{{params.dataset_name}}.transactions` as transactions - join `{{params.destination_dataset_project_id}}.{{params.dataset_name}}.blocks` as blocks on blocks.number = transactions.block_number + select + miner as address, + sum(cast(receipt_gas_used as numeric) * cast((receipt_effective_gas_price - coalesce(base_fee_per_gas, 0)) as numeric)) as value + from `{{params.destination_dataset_project_id}}.{{params.dataset_name}}.transactions{{params.ds_postfix}}` as transactions + join `{{params.destination_dataset_project_id}}.{{params.dataset_name}}.blocks{{params.ds_postfix}}` as blocks on blocks.number = transactions.block_number where true and date(transactions.block_timestamp) <= '{{ds}}' - group by blocks.miner + group by blocks.number, blocks.miner union all -- transaction fees credits - select from_address as address, -(cast(receipt_gas_used as numeric) * cast(gas_price as numeric)) as value - from `{{params.destination_dataset_project_id}}.{{params.dataset_name}}.transactions` + select + from_address as address, + -(cast(receipt_gas_used as numeric) * cast(receipt_effective_gas_price as numeric)) as value + from `{{params.destination_dataset_project_id}}.{{params.dataset_name}}.transactions{{params.ds_postfix}}` where true and date(block_timestamp) <= '{{ds}}' ) select address, sum(value) as eth_balance from double_entry_book -group by address \ No newline at end of file +group by address diff --git a/airflow/dags/resources/stages/enrich/sqls/blocks.sql b/airflow/dags/resources/stages/enrich/sqls/blocks.sql index de6ae423..dd94284c 100644 --- a/airflow/dags/resources/stages/enrich/sqls/blocks.sql +++ b/airflow/dags/resources/stages/enrich/sqls/blocks.sql @@ -16,8 +16,9 @@ SELECT blocks.extra_data, blocks.gas_limit, blocks.gas_used, - blocks.transaction_count -FROM {{params.dataset_name_raw}}.blocks AS blocks + blocks.transaction_count, + blocks.base_fee_per_gas +FROM {{params.dataset_name_raw}}.blocks{{params.ds_postfix}} AS blocks where true {% if not params.load_all_partitions %} and date(timestamp_seconds(blocks.timestamp)) = '{{ds}}' diff --git a/airflow/dags/resources/stages/enrich/sqls/contracts.sql b/airflow/dags/resources/stages/enrich/sqls/contracts.sql index ddaacc12..545d1313 100644 --- a/airflow/dags/resources/stages/enrich/sqls/contracts.sql +++ b/airflow/dags/resources/stages/enrich/sqls/contracts.sql @@ -7,8 +7,8 @@ SELECT TIMESTAMP_SECONDS(blocks.timestamp) AS block_timestamp, blocks.number AS block_number, blocks.hash AS block_hash -FROM {{params.dataset_name_raw}}.contracts AS contracts - JOIN {{params.dataset_name_raw}}.blocks AS blocks ON contracts.block_number = blocks.number +FROM {{params.dataset_name_raw}}.contracts{{params.ds_postfix}} AS contracts + JOIN {{params.dataset_name_raw}}.blocks{{params.ds_postfix}} AS blocks ON contracts.block_number = blocks.number where true {% if not params.load_all_partitions %} and date(timestamp_seconds(blocks.timestamp)) = '{{ds}}' diff --git a/airflow/dags/resources/stages/enrich/sqls/logs.sql b/airflow/dags/resources/stages/enrich/sqls/logs.sql index 7ab02d46..5f120feb 100644 --- a/airflow/dags/resources/stages/enrich/sqls/logs.sql +++ b/airflow/dags/resources/stages/enrich/sqls/logs.sql @@ -8,9 +8,9 @@ SELECT TIMESTAMP_SECONDS(blocks.timestamp) AS block_timestamp, blocks.number AS block_number, blocks.hash AS block_hash -FROM {{params.dataset_name_raw}}.blocks AS blocks - JOIN {{params.dataset_name_raw}}.logs AS logs ON blocks.number = logs.block_number +FROM {{params.dataset_name_raw}}.blocks{{params.ds_postfix}} AS blocks + JOIN {{params.dataset_name_raw}}.logs{{params.ds_postfix}} AS logs ON blocks.number = logs.block_number where true {% if not params.load_all_partitions %} and date(timestamp_seconds(blocks.timestamp)) = '{{ds}}' - {% endif %} \ No newline at end of file + {% endif %} diff --git a/airflow/dags/resources/stages/enrich/sqls/merge/merge_blocks.sql b/airflow/dags/resources/stages/enrich/sqls/merge/merge_blocks.sql index 85089b38..992f3d75 100644 --- a/airflow/dags/resources/stages/enrich/sqls/merge/merge_blocks.sql +++ b/airflow/dags/resources/stages/enrich/sqls/merge/merge_blocks.sql @@ -20,7 +20,8 @@ insert ( extra_data, gas_limit, gas_used, - transaction_count + transaction_count, + base_fee_per_gas ) values ( timestamp, number, @@ -39,7 +40,8 @@ insert ( extra_data, gas_limit, gas_used, - transaction_count + transaction_count, + base_fee_per_gas ) when not matched by source and date(timestamp) = '{{ds}}' then delete diff --git a/airflow/dags/resources/stages/enrich/sqls/merge/merge_transactions.sql b/airflow/dags/resources/stages/enrich/sqls/merge/merge_transactions.sql index fc7811da..44a19a89 100644 --- a/airflow/dags/resources/stages/enrich/sqls/merge/merge_transactions.sql +++ b/airflow/dags/resources/stages/enrich/sqls/merge/merge_transactions.sql @@ -19,7 +19,11 @@ insert ( receipt_status, block_timestamp, block_number, - block_hash + block_hash, + max_fee_per_gas, + max_priority_fee_per_gas, + transaction_type, + receipt_effective_gas_price ) values ( `hash`, nonce, @@ -37,7 +41,11 @@ insert ( receipt_status, block_timestamp, block_number, - block_hash + block_hash, + max_fee_per_gas, + max_priority_fee_per_gas, + transaction_type, + receipt_effective_gas_price ) when not matched by source and date(block_timestamp) = '{{ds}}' then delete diff --git a/airflow/dags/resources/stages/enrich/sqls/token_transfers.sql b/airflow/dags/resources/stages/enrich/sqls/token_transfers.sql index fff52608..d85d39a1 100644 --- a/airflow/dags/resources/stages/enrich/sqls/token_transfers.sql +++ b/airflow/dags/resources/stages/enrich/sqls/token_transfers.sql @@ -8,8 +8,8 @@ SELECT TIMESTAMP_SECONDS(blocks.timestamp) AS block_timestamp, blocks.number AS block_number, blocks.hash AS block_hash -FROM {{params.dataset_name_raw}}.blocks AS blocks - JOIN {{params.dataset_name_raw}}.token_transfers AS token_transfers ON blocks.number = token_transfers.block_number +FROM {{params.dataset_name_raw}}.blocks{{params.ds_postfix}} AS blocks + JOIN {{params.dataset_name_raw}}.token_transfers{{params.ds_postfix}} AS token_transfers ON blocks.number = token_transfers.block_number where true {% if not params.load_all_partitions %} and date(timestamp_seconds(blocks.timestamp)) = '{{ds}}' diff --git a/airflow/dags/resources/stages/enrich/sqls/tokens.sql b/airflow/dags/resources/stages/enrich/sqls/tokens.sql index e15520f9..2ac2b767 100644 --- a/airflow/dags/resources/stages/enrich/sqls/tokens.sql +++ b/airflow/dags/resources/stages/enrich/sqls/tokens.sql @@ -7,8 +7,8 @@ SELECT TIMESTAMP_SECONDS(blocks.timestamp) AS block_timestamp, blocks.number AS block_number, blocks.hash AS block_hash -FROM {{params.dataset_name_raw}}.blocks AS blocks - JOIN {{params.dataset_name_raw}}.tokens AS tokens ON blocks.number = tokens.block_number +FROM {{params.dataset_name_raw}}.blocks{{params.ds_postfix}} AS blocks + JOIN {{params.dataset_name_raw}}.tokens{{params.ds_postfix}} AS tokens ON blocks.number = tokens.block_number where true {% if not params.load_all_partitions %} and date(timestamp_seconds(blocks.timestamp)) = '{{ds}}' diff --git a/airflow/dags/resources/stages/enrich/sqls/traces.sql b/airflow/dags/resources/stages/enrich/sqls/traces.sql index e416c5d0..ffeed6c4 100644 --- a/airflow/dags/resources/stages/enrich/sqls/traces.sql +++ b/airflow/dags/resources/stages/enrich/sqls/traces.sql @@ -19,9 +19,9 @@ SELECT TIMESTAMP_SECONDS(blocks.timestamp) AS block_timestamp, blocks.number AS block_number, blocks.hash AS block_hash -FROM {{params.dataset_name_raw}}.blocks AS blocks - JOIN {{params.dataset_name_raw}}.traces AS traces ON blocks.number = traces.block_number - JOIN {{params.dataset_name_raw}}.transactions AS transactions +FROM {{params.dataset_name_raw}}.blocks{{params.ds_postfix}} AS blocks + JOIN {{params.dataset_name_raw}}.traces{{params.ds_postfix}} AS traces ON blocks.number = traces.block_number + JOIN {{params.dataset_name_raw}}.transactions{{params.ds_postfix}} AS transactions ON traces.transaction_index = transactions.transaction_index and traces.block_number = transactions.block_number where true diff --git a/airflow/dags/resources/stages/enrich/sqls/transactions.sql b/airflow/dags/resources/stages/enrich/sqls/transactions.sql index 2b973b04..b74cf451 100644 --- a/airflow/dags/resources/stages/enrich/sqls/transactions.sql +++ b/airflow/dags/resources/stages/enrich/sqls/transactions.sql @@ -15,10 +15,14 @@ SELECT receipts.status AS receipt_status, TIMESTAMP_SECONDS(blocks.timestamp) AS block_timestamp, blocks.number AS block_number, - blocks.hash AS block_hash -FROM {{params.dataset_name_raw}}.blocks AS blocks - JOIN {{params.dataset_name_raw}}.transactions AS transactions ON blocks.number = transactions.block_number - JOIN {{params.dataset_name_raw}}.receipts AS receipts ON transactions.hash = receipts.transaction_hash + blocks.hash AS block_hash, + transactions.max_fee_per_gas, + transactions.max_priority_fee_per_gas, + transactions.transaction_type, + receipts.effective_gas_price as receipt_effective_gas_price +FROM {{params.dataset_name_raw}}.blocks{{params.ds_postfix}} AS blocks + JOIN {{params.dataset_name_raw}}.transactions{{params.ds_postfix}} AS transactions ON blocks.number = transactions.block_number + JOIN {{params.dataset_name_raw}}.receipts{{params.ds_postfix}} AS receipts ON transactions.hash = receipts.transaction_hash where true {% if not params.load_all_partitions %} and date(timestamp_seconds(blocks.timestamp)) = '{{ds}}' diff --git a/airflow/dags/resources/stages/load/schemas/blocks.json b/airflow/dags/resources/stages/load/schemas/blocks.json deleted file mode 100644 index 13e46077..00000000 --- a/airflow/dags/resources/stages/load/schemas/blocks.json +++ /dev/null @@ -1,96 +0,0 @@ -[ - { - "name": "number", - "type": "INT64", - "mode": "REQUIRED", - "description": "The block number" - }, - { - "name": "hash", - "type": "STRING", - "mode": "REQUIRED", - "description": "Hash of the block" - }, - { - "name": "parent_hash", - "type": "STRING", - "description": "Hash of the parent block" - }, - { - "name": "nonce", - "type": "STRING", - "mode": "REQUIRED", - "description": "Hash of the generated proof-of-work" - }, - { - "name": "sha3_uncles", - "type": "STRING", - "description": "SHA3 of the uncles data in the block" - }, - { - "name": "logs_bloom", - "type": "STRING", - "description": "The bloom filter for the logs of the block" - }, - { - "name": "transactions_root", - "type": "STRING", - "description": "The root of the transaction trie of the block" - }, - { - "name": "state_root", - "type": "STRING", - "description": "The root of the final state trie of the block" - }, - { - "name": "receipts_root", - "type": "STRING", - "description": "The root of the receipts trie of the block" - }, - { - "name": "miner", - "type": "STRING", - "description": "The address of the beneficiary to whom the mining rewards were given" - }, - { - "name": "difficulty", - "type": "NUMERIC", - "description": "Integer of the difficulty for this block" - }, - { - "name": "total_difficulty", - "type": "NUMERIC", - "description": "Integer of the total difficulty of the chain until this block" - }, - { - "name": "size", - "type": "INT64", - "description": "The size of this block in bytes" - }, - { - "name": "extra_data", - "type": "STRING", - "description": "The extra data field of this block" - }, - { - "name": "gas_limit", - "type": "INT64", - "description": "The maximum gas allowed in this block" - }, - { - "name": "gas_used", - "type": "INT64", - "description": "The total used gas by all transactions in this block" - }, - { - "name": "timestamp", - "type": "INT64", - "mode": "REQUIRED", - "description": "The unix timestamp for when the block was collated" - }, - { - "name": "transaction_count", - "type": "INT64", - "description": "The number of transactions in the block" - } -] \ No newline at end of file diff --git a/airflow/dags/resources/stages/load/schemas/contracts.json b/airflow/dags/resources/stages/load/schemas/contracts.json deleted file mode 100644 index 156ad9d7..00000000 --- a/airflow/dags/resources/stages/load/schemas/contracts.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "name": "address", - "type": "STRING", - "mode": "REQUIRED", - "description": "Address of the contract" - }, - { - "name": "bytecode", - "type": "STRING", - "description": "Bytecode of the contract" - }, - { - "name": "function_sighashes", - "type": "STRING", - "mode": "REPEATED", - "description": "4-byte function signature hashes" - }, - { - "name": "is_erc20", - "type": "BOOLEAN", - "description": "Whether this contract is an ERC20 contract" - }, - { - "name": "is_erc721", - "type": "BOOLEAN", - "description": "Whether this contract is an ERC721 contract" - }, - { - "name": "block_number", - "type": "INT64", - "mode": "REQUIRED", - "description": "Block number where this contract was created" - } -] \ No newline at end of file diff --git a/airflow/dags/resources/stages/load/schemas/logs.json b/airflow/dags/resources/stages/load/schemas/logs.json deleted file mode 100644 index 29858a2f..00000000 --- a/airflow/dags/resources/stages/load/schemas/logs.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "name": "log_index", - "type": "INT64", - "mode": "REQUIRED", - "description": "Integer of the log index position in the block" - }, - { - "name": "transaction_hash", - "type": "STRING", - "mode": "REQUIRED", - "description": "Hash of the transactions this log was created from" - }, - { - "name": "transaction_index", - "type": "INT64", - "mode": "REQUIRED", - "description": "Integer of the transactions index position log was created from" - }, - { - "name": "block_hash", - "type": "STRING", - "description": "Hash of the block where this log was in" - }, - { - "name": "block_number", - "type": "INT64", - "description": "The block number where this log was in" - }, - { - "name": "address", - "type": "STRING", - "description": "Address from which this log originated" - }, - { - "name": "data", - "type": "STRING", - "description": "Contains one or more 32 Bytes non-indexed arguments of the log" - }, - { - "name": "topics", - "type": "STRING", - "mode": "REPEATED", - "description": "Indexed log arguments (0 to 4 32-byte hex strings). (In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256)), except you declared the event with the anonymous specifier.)" - } -] \ No newline at end of file diff --git a/airflow/dags/resources/stages/load/schemas/receipts.json b/airflow/dags/resources/stages/load/schemas/receipts.json deleted file mode 100644 index 92f6ac01..00000000 --- a/airflow/dags/resources/stages/load/schemas/receipts.json +++ /dev/null @@ -1,49 +0,0 @@ -[ - { - "name": "transaction_hash", - "type": "STRING", - "mode": "REQUIRED", - "description": "Hash of the transaction" - }, - { - "name": "transaction_index", - "type": "INT64", - "mode": "REQUIRED", - "description": "Integer of the transactions index position in the block" - }, - { - "name": "block_hash", - "type": "STRING", - "description": "Hash of the block where this transaction was in" - }, - { - "name": "block_number", - "type": "INT64", - "description": "Block number where this transaction was in" - }, - { - "name": "cumulative_gas_used", - "type": "INT64", - "description": "The total amount of gas used when this transaction was executed in the block" - }, - { - "name": "gas_used", - "type": "INT64", - "description": "The amount of gas used by this specific transaction alone" - }, - { - "name": "contract_address", - "type": "STRING", - "description": "The contract address created, if the transaction was a contract creation, otherwise null" - }, - { - "name": "root", - "type": "STRING", - "description": "32 bytes of post-transaction stateroot (pre Byzantium)" - }, - { - "name": "status", - "type": "INT64", - "description": "Either 1 (success) or 0 (failure) (post Byzantium)" - } -] \ No newline at end of file diff --git a/airflow/dags/resources/stages/load/schemas/token_transfers.json b/airflow/dags/resources/stages/load/schemas/token_transfers.json deleted file mode 100644 index ac094222..00000000 --- a/airflow/dags/resources/stages/load/schemas/token_transfers.json +++ /dev/null @@ -1,40 +0,0 @@ -[ - { - "name": "token_address", - "type": "STRING", - "mode": "REQUIRED", - "description": "ERC20 token address" - }, - { - "name": "from_address", - "type": "STRING", - "description": "Address of the sender" - }, - { - "name": "to_address", - "type": "STRING", - "description": "Address of the receiver" - }, - { - "name": "value", - "type": "STRING", - "description": "Amount of tokens transferred (ERC20) / id of the token transferred (ERC721). Use safe_cast for casting to NUMERIC or FLOAT64" - }, - { - "name": "transaction_hash", - "type": "STRING", - "mode": "REQUIRED", - "description": "Transaction hash" - }, - { - "name": "log_index", - "type": "INT64", - "mode": "REQUIRED", - "description": "Log index in the transaction receipt" - }, - { - "name": "block_number", - "type": "INT64", - "description": "The block number" - } -] \ No newline at end of file diff --git a/airflow/dags/resources/stages/load/schemas/tokens.json b/airflow/dags/resources/stages/load/schemas/tokens.json deleted file mode 100644 index eb9fa5dc..00000000 --- a/airflow/dags/resources/stages/load/schemas/tokens.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "name": "address", - "type": "STRING", - "mode": "REQUIRED", - "description": "The address of the ERC20 token" - }, - { - "name": "symbol", - "type": "STRING", - "description": "The symbol of the ERC20 token" - }, - { - "name": "name", - "type": "STRING", - "description": "The name of the ERC20 token" - }, - { - "name": "decimals", - "type": "STRING", - "description": "The number of decimals the token uses. Use safe_cast for casting to NUMERIC or FLOAT64" - }, - { - "name": "total_supply", - "type": "STRING", - "description": "The total token supply. Use safe_cast for casting to NUMERIC or FLOAT64" - }, - { - "name": "block_number", - "type": "INT64", - "mode": "REQUIRED", - "description": "Block number where this token was created" - } -] \ No newline at end of file diff --git a/airflow/dags/resources/stages/load/schemas/traces.json b/airflow/dags/resources/stages/load/schemas/traces.json deleted file mode 100644 index b4cc0919..00000000 --- a/airflow/dags/resources/stages/load/schemas/traces.json +++ /dev/null @@ -1,94 +0,0 @@ -[ - { - "name": "block_number", - "type": "INT64", - "mode": "REQUIRED", - "description": "Block number where this trace was in" - }, - { - "name": "transaction_hash", - "type": "STRING", - "description": "Transaction hash where this trace was in" - }, - { - "name": "transaction_index", - "type": "INT64", - "description": "Integer of the transactions index position in the block" - }, - { - "name": "from_address", - "type": "STRING", - "description": "Address of the sender, null when trace_type is genesis or reward" - }, - { - "name": "to_address", - "type": "STRING", - "description": "Address of the receiver if trace_type is call, address of new contract or null if trace_type is create, beneficiary address if trace_type is suicide, miner address if trace_type is reward, shareholder address if trace_type is genesis, WithdrawDAO address if trace_type is daofork" - }, - { - "name": "value", - "type": "NUMERIC", - "description": "Value transferred in Wei" - }, - { - "name": "input", - "type": "STRING", - "description": "The data sent along with the message call" - }, - { - "name": "output", - "type": "STRING", - "description": "The output of the message call, bytecode of contract when trace_type is create" - }, - { - "name": "trace_type", - "type": "STRING", - "mode": "REQUIRED", - "description": "One of call, create, suicide, reward, genesis, daofork" - }, - { - "name": "call_type", - "type": "STRING", - "description": "One of call, callcode, delegatecall, staticcall" - }, - { - "name": "reward_type", - "type": "STRING", - "description": "One of block, uncle" - }, - { - "name": "gas", - "type": "INT64", - "description": "Gas provided with the message call" - }, - { - "name": "gas_used", - "type": "INT64", - "description": "Gas used by the message call" - }, - { - "name": "subtraces", - "type": "INT64", - "description": "Number of subtraces" - }, - { - "name": "trace_address", - "type": "STRING", - "description": "Comma separated list of trace address in call tree" - }, - { - "name": "error", - "type": "STRING", - "description": "Error if message call failed" - }, - { - "name": "status", - "type": "INT64", - "description": "Either 1 (success) or 0 (failure, due to any operation that can cause the call itself or any top-level call to revert)" - }, - { - "name": "trace_id", - "type": "STRING", - "description": "Unique string that identifies the trace. For transaction-scoped traces it is {trace_type}_{transaction_hash}_{trace_address}. For block-scoped traces it is {trace_type}_{block_number}_{index_within_block}" - } -] \ No newline at end of file diff --git a/airflow/dags/resources/stages/load/schemas/transactions.json b/airflow/dags/resources/stages/load/schemas/transactions.json deleted file mode 100644 index d2485c13..00000000 --- a/airflow/dags/resources/stages/load/schemas/transactions.json +++ /dev/null @@ -1,63 +0,0 @@ -[ - { - "name": "hash", - "type": "STRING", - "mode": "REQUIRED", - "description": "Hash of the transaction" - }, - { - "name": "nonce", - "type": "INT64", - "mode": "REQUIRED", - "description": "The number of transactions made by the sender prior to this one" - }, - { - "name": "block_hash", - "type": "STRING", - "mode": "REQUIRED", - "description": "Hash of the block where this transaction was in" - }, - { - "name": "block_number", - "type": "INT64", - "mode": "REQUIRED", - "description": "Block number where this transaction was in" - }, - { - "name": "transaction_index", - "type": "INT64", - "mode": "REQUIRED", - "description": "Integer of the transactions index position in the block" - }, - { - "name": "from_address", - "type": "STRING", - "mode": "REQUIRED", - "description": "Address of the sender" - }, - { - "name": "to_address", - "type": "STRING", - "description": "Address of the receiver. null when its a contract creation transaction" - }, - { - "name": "value", - "type": "NUMERIC", - "description": "Value transferred in Wei" - }, - { - "name": "gas", - "type": "INT64", - "description": "Gas provided by the sender" - }, - { - "name": "gas_price", - "type": "INT64", - "description": "Gas price provided by the sender in Wei" - }, - { - "name": "input", - "type": "STRING", - "description": "The data sent along with the transaction" - } -] \ No newline at end of file diff --git a/airflow/dags/resources/stages/load/sqls/merge.sql b/airflow/dags/resources/stages/load/sqls/merge.sql deleted file mode 100644 index 285f1b2f..00000000 --- a/airflow/dags/resources/stages/load/sqls/merge.sql +++ /dev/null @@ -1,15 +0,0 @@ -merge `{{destination_dataset_project_id}}.{{destination_dataset_name}}.{{table}}` dest -using {{dataset_name_temp}}.{{table}} source -on false -when not matched and date(timestamp) = '{{ds}}' then -insert ( - {% for column in table_schema %} - {% if loop.index0 > 0 %},{% endif %}`{{ column.name }}` - {% endfor %} -) values ( - {% for column in table_schema %} - {% if loop.index0 > 0 %},{% endif %}`{{ column.name }}` - {% endfor %} -) -when not matched by source and date(timestamp) = '{{ds}}' then -delete diff --git a/airflow/dags/resources/stages/raw/schemas/blocks.json b/airflow/dags/resources/stages/raw/schemas/blocks.json index 13e46077..8a81ae46 100644 --- a/airflow/dags/resources/stages/raw/schemas/blocks.json +++ b/airflow/dags/resources/stages/raw/schemas/blocks.json @@ -92,5 +92,10 @@ "name": "transaction_count", "type": "INT64", "description": "The number of transactions in the block" + }, + { + "name": "base_fee_per_gas", + "type": "INT64", + "description": "Protocol base fee per gas, which can move up or down" } -] \ No newline at end of file +] diff --git a/airflow/dags/resources/stages/raw/schemas/receipts.json b/airflow/dags/resources/stages/raw/schemas/receipts.json index 92f6ac01..ca5e1be7 100644 --- a/airflow/dags/resources/stages/raw/schemas/receipts.json +++ b/airflow/dags/resources/stages/raw/schemas/receipts.json @@ -45,5 +45,11 @@ "name": "status", "type": "INT64", "description": "Either 1 (success) or 0 (failure) (post Byzantium)" + }, + { + + "name": "effective_gas_price", + "type": "INT64", + "description": "The amount of gas used by this specific transaction alone (a replacement for gasUsed field)" } -] \ No newline at end of file +] diff --git a/airflow/dags/resources/stages/raw/schemas/transactions.json b/airflow/dags/resources/stages/raw/schemas/transactions.json index d2485c13..a485f660 100644 --- a/airflow/dags/resources/stages/raw/schemas/transactions.json +++ b/airflow/dags/resources/stages/raw/schemas/transactions.json @@ -59,5 +59,26 @@ "name": "input", "type": "STRING", "description": "The data sent along with the transaction" + }, + { + "name": "block_timestamp", + "type": "TIMESTAMP", + "mode": "REQUIRED", + "description": "Timestamp of the block where this transaction was in" + }, + { + "name": "max_fee_per_gas", + "type": "INT64", + "description": "Total fee that covers both base and priority fees" + }, + { + "name": "max_priority_fee_per_gas", + "type": "INT64", + "description": "Fee given to miners to incentivize them to include the transaction" + }, + { + "name": "transaction_type", + "type": "INT64", + "description": "An envelope for future transaction types" } -] \ No newline at end of file +] diff --git a/airflow/requirements_airflow.txt b/airflow/requirements_airflow.txt index b2855fb0..e93bd0af 100644 --- a/airflow/requirements_airflow.txt +++ b/airflow/requirements_airflow.txt @@ -5,4 +5,4 @@ discord-webhook==0.14.0 eth-rlp==0.2.1 # Fixes install conflicts issue in Composer eth-utils==1.8.4 # Fixes install conflicts issue in Composer -polygon-etl==0.2.2 +polygon-etl==0.3.0 diff --git a/cli/polygonetl/cli/__init__.py b/cli/polygonetl/cli/__init__.py index c4d2850b..454ea4d9 100644 --- a/cli/polygonetl/cli/__init__.py +++ b/cli/polygonetl/cli/__init__.py @@ -43,7 +43,7 @@ @click.group() -@click.version_option(version='0.2.1') +@click.version_option(version='0.3.0') @click.pass_context def cli(ctx): pass diff --git a/cli/polygonetl/domain/block.py b/cli/polygonetl/domain/block.py index 982447ff..2dcbe3de 100644 --- a/cli/polygonetl/domain/block.py +++ b/cli/polygonetl/domain/block.py @@ -43,6 +43,7 @@ def __init__(self): self.transactions = [] self.transaction_count = 0 + self.base_fee_per_gas = 0 def __repr__(self): return f"EthBlock number {self.number}, hash {self.hash}" diff --git a/cli/polygonetl/domain/receipt.py b/cli/polygonetl/domain/receipt.py index ee56a6e9..c81e807b 100644 --- a/cli/polygonetl/domain/receipt.py +++ b/cli/polygonetl/domain/receipt.py @@ -33,10 +33,11 @@ def __init__(self): self.logs = [] self.root = None self.status = None + self.effective_gas_price = None def __repr__(self): return ( f"EthReceipt block_number {self.block_number}, " f"block_hash {self.block_hash}, " f"transaction_hash {self.transaction_hash}" - ) \ No newline at end of file + ) diff --git a/cli/polygonetl/domain/transaction.py b/cli/polygonetl/domain/transaction.py index d285a5a3..1331adce 100644 --- a/cli/polygonetl/domain/transaction.py +++ b/cli/polygonetl/domain/transaction.py @@ -34,6 +34,9 @@ def __init__(self): self.gas = None self.gas_price = None self.input = None + self.max_fee_per_gas = None + self.max_priority_fee_per_gas = None + self.transaction_type = None def __repr__(self): return ( diff --git a/cli/polygonetl/jobs/exporters/blocks_and_transactions_item_exporter.py b/cli/polygonetl/jobs/exporters/blocks_and_transactions_item_exporter.py index 53d83689..1e94042f 100644 --- a/cli/polygonetl/jobs/exporters/blocks_and_transactions_item_exporter.py +++ b/cli/polygonetl/jobs/exporters/blocks_and_transactions_item_exporter.py @@ -41,7 +41,8 @@ 'gas_limit', 'gas_used', 'timestamp', - 'transaction_count' + 'transaction_count', + 'base_fee_per_gas' ] TRANSACTION_FIELDS_TO_EXPORT = [ @@ -56,7 +57,10 @@ 'gas', 'gas_price', 'input', - 'block_timestamp' + 'block_timestamp', + 'max_fee_per_gas', + 'max_priority_fee_per_gas', + 'transaction_type' ] diff --git a/cli/polygonetl/jobs/exporters/receipts_and_logs_item_exporter.py b/cli/polygonetl/jobs/exporters/receipts_and_logs_item_exporter.py index 7f4ad954..3e6cc6e4 100644 --- a/cli/polygonetl/jobs/exporters/receipts_and_logs_item_exporter.py +++ b/cli/polygonetl/jobs/exporters/receipts_and_logs_item_exporter.py @@ -32,7 +32,8 @@ 'gas_used', 'contract_address', 'root', - 'status' + 'status', + 'effective_gas_price' ] LOG_FIELDS_TO_EXPORT = [ diff --git a/cli/polygonetl/mappers/block_mapper.py b/cli/polygonetl/mappers/block_mapper.py index 1935f2ba..46b4a003 100644 --- a/cli/polygonetl/mappers/block_mapper.py +++ b/cli/polygonetl/mappers/block_mapper.py @@ -52,6 +52,7 @@ def json_dict_to_block(self, json_dict): block.gas_limit = hex_to_dec(json_dict.get('gasLimit')) block.gas_used = hex_to_dec(json_dict.get('gasUsed')) block.timestamp = hex_to_dec(json_dict.get('timestamp')) + block.base_fee_per_gas = hex_to_dec(json_dict.get('baseFeePerGas')) if 'transactions' in json_dict: block.transactions = [ @@ -85,4 +86,5 @@ def block_to_dict(self, block): 'gas_used': block.gas_used, 'timestamp': block.timestamp, 'transaction_count': block.transaction_count, + 'base_fee_per_gas': block.base_fee_per_gas } diff --git a/cli/polygonetl/mappers/receipt_mapper.py b/cli/polygonetl/mappers/receipt_mapper.py index 6b5f4bc9..74775921 100644 --- a/cli/polygonetl/mappers/receipt_mapper.py +++ b/cli/polygonetl/mappers/receipt_mapper.py @@ -47,6 +47,7 @@ def json_dict_to_receipt(self, json_dict): receipt.root = json_dict.get('root') receipt.status = hex_to_dec(json_dict.get('status')) + receipt.effective_gas_price = hex_to_dec(json_dict.get('effectiveGasPrice')) if 'logs' in json_dict: receipt.logs = [ @@ -66,5 +67,6 @@ def receipt_to_dict(self, receipt): 'gas_used': receipt.gas_used, 'contract_address': receipt.contract_address, 'root': receipt.root, - 'status': receipt.status + 'status': receipt.status, + 'effective_gas_price': receipt.effective_gas_price } diff --git a/cli/polygonetl/mappers/transaction_mapper.py b/cli/polygonetl/mappers/transaction_mapper.py index 7ccfa005..595574ff 100644 --- a/cli/polygonetl/mappers/transaction_mapper.py +++ b/cli/polygonetl/mappers/transaction_mapper.py @@ -40,6 +40,9 @@ def json_dict_to_transaction(self, json_dict, **kwargs): transaction.gas = hex_to_dec(json_dict.get('gas')) transaction.gas_price = hex_to_dec(json_dict.get('gasPrice')) transaction.input = json_dict.get('input') + transaction.max_fee_per_gas = hex_to_dec(json_dict.get('maxFeePerGas')) + transaction.max_priority_fee_per_gas = hex_to_dec(json_dict.get('maxPriorityFeePerGas')) + transaction.transaction_type = hex_to_dec(json_dict.get('type')) return transaction def transaction_to_dict(self, transaction): @@ -57,4 +60,7 @@ def transaction_to_dict(self, transaction): 'gas': transaction.gas, 'gas_price': transaction.gas_price, 'input': transaction.input, + 'max_fee_per_gas': transaction.max_fee_per_gas, + 'max_priority_fee_per_gas': transaction.max_priority_fee_per_gas, + 'transaction_type': transaction.transaction_type } diff --git a/cli/polygonetl/streaming/enrich.py b/cli/polygonetl/streaming/enrich.py index 6119b7b8..21206797 100644 --- a/cli/polygonetl/streaming/enrich.py +++ b/cli/polygonetl/streaming/enrich.py @@ -73,14 +73,18 @@ def enrich_transactions(transactions, receipts): 'input', 'block_timestamp', 'block_number', - 'block_hash' + 'block_hash', + 'max_fee_per_gas', + 'max_priority_fee_per_gas', + 'transaction_type' ], right_fields=[ ('cumulative_gas_used', 'receipt_cumulative_gas_used'), ('gas_used', 'receipt_gas_used'), ('contract_address', 'receipt_contract_address'), ('root', 'receipt_root'), - ('status', 'receipt_status') + ('status', 'receipt_status'), + ('effective_gas_price', 'receipt_effective_gas_price') ])) if len(result) != len(transactions): diff --git a/cli/polygonetl/streaming/postgres_tables.py b/cli/polygonetl/streaming/postgres_tables.py index c488cb3a..420cd495 100644 --- a/cli/polygonetl/streaming/postgres_tables.py +++ b/cli/polygonetl/streaming/postgres_tables.py @@ -46,6 +46,7 @@ Column('gas_limit', BigInteger), Column('gas_used', BigInteger), Column('transaction_count', BigInteger), + Column('base_fee_per_gas', BigInteger), ) TRANSACTIONS = Table( @@ -67,6 +68,10 @@ Column('block_timestamp', TIMESTAMP), Column('block_number', BigInteger), Column('block_hash', String), + Column('max_fee_per_gas', BigInteger), + Column('max_priority_fee_per_gas', BigInteger), + Column('transaction_type', BigInteger), + Column('receipt_effective_gas_price', BigInteger), ) LOGS = Table( diff --git a/cli/setup.py b/cli/setup.py index 14fb95c1..8c7b86e4 100644 --- a/cli/setup.py +++ b/cli/setup.py @@ -11,7 +11,7 @@ def read(fname): setup( name="polygon-etl", - version="0.2.2", + version="0.3.0", author="Evgeny Medvedev", author_email="evge.medvedev@gmail.com", description="Tools for exporting Polygon blockchain data to CSV or JSON", @@ -49,6 +49,7 @@ def read(fname): "pytz", # See https://github.com/googleapis/python-pubsub/issues/468 "google-cloud-storage==1.33.0", "pg8000==1.13.2", + "pytz==2022.1", "sqlalchemy==1.3.13", "timeout-decorator==0.4.1", ], diff --git a/cli/tests/polygonetl/job/test_export_blocks_job.py b/cli/tests/polygonetl/job/test_export_blocks_job.py index 0a06ce19..5b1ffa5b 100644 --- a/cli/tests/polygonetl/job/test_export_blocks_job.py +++ b/cli/tests/polygonetl/job/test_export_blocks_job.py @@ -49,6 +49,7 @@ def read_resource(resource_group, file_name): (9013760, 9013761, 1, "blocks_with_transactions", "mock"), (9013760, 9013761, 2, "blocks_with_transactions", "mock"), (0, 0, 1, "block_without_transactions", "mock"), + (23887160, 23887160, 1, "block_with_transaction_eip_1559", "mock"), skip_if_slow_tests_disabled( (13572468, 13572468, 1, "block_with_logs", "online") ), @@ -59,6 +60,7 @@ def read_resource(resource_group, file_name): (9013760, 9013761, 2, "blocks_with_transactions", "online") ), skip_if_slow_tests_disabled((0, 0, 1, "block_without_transactions", "online")), + skip_if_slow_tests_disabled((23887160, 23887160, 1, "block_with_transaction_eip_1559", "mock")), ], ) def test_export_blocks_job( diff --git a/cli/tests/polygonetl/job/test_export_receipts_job.py b/cli/tests/polygonetl/job/test_export_receipts_job.py index dad40131..8aeaf823 100644 --- a/cli/tests/polygonetl/job/test_export_receipts_job.py +++ b/cli/tests/polygonetl/job/test_export_receipts_job.py @@ -49,19 +49,25 @@ def read_resource(resource_group, file_name): "0x7ef447a3a37326c3033480b39956f88ab281744032eb430bfc5595fb23009ddb", "0x01a776a4ed599573efdd5caf4a97debf42a9363d754a90c1bf29307831e613a1", ] - +EIP_1559_TX_HASHES = [ + "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d" +] @pytest.mark.parametrize( "batch_size,transaction_hashes,output_format,resource_group,web3_provider_type", [ (1, DEFAULT_TX_HASHES, "csv", "receipts_with_logs", "mock"), (2, DEFAULT_TX_HASHES, "json", "receipts_with_logs", "mock"), + (1, EIP_1559_TX_HASHES, "json", "receipts_with_logs_eip_1559", "mock"), skip_if_slow_tests_disabled( (1, DEFAULT_TX_HASHES, "csv", "receipts_with_logs", "online") ), skip_if_slow_tests_disabled( (2, DEFAULT_TX_HASHES, "json", "receipts_with_logs", "online") ), + skip_if_slow_tests_disabled( + (1, EIP_1559_TX_HASHES, "json", "receipts_with_logs_eip_1559", "mock") + ), ], ) def test_export_receipts_job( diff --git a/cli/tests/polygonetl/streaming/test_stream.py b/cli/tests/polygonetl/streaming/test_stream.py index 17aa097d..b4380102 100644 --- a/cli/tests/polygonetl/streaming/test_stream.py +++ b/cli/tests/polygonetl/streaming/test_stream.py @@ -74,6 +74,19 @@ def read_resource(resource_group, file_name): ], "mock", ), + ( + 23887160, + 23887160, + 1, + "block_eip_1559", + [ + "block", + "transaction", + "log", + "token_transfer", + ], + "mock", + ), skip_if_slow_tests_disabled( ( 2233682, @@ -110,6 +123,24 @@ def read_resource(resource_group, file_name): "online", ) ), + skip_if_slow_tests_disabled( + ( + 23887160, + 23887160, + 1, + "block_eip_1559", + [ + "block", + "transaction", + "log", + "token_transfer", + "trace", + "contract", + "token", + ], + "online", + ) + ), ], ) def test_stream( diff --git a/cli/tests/resources/test_export_blocks_job/block_with_logs/expected_blocks.csv b/cli/tests/resources/test_export_blocks_job/block_with_logs/expected_blocks.csv index 5d6775b0..172920ac 100644 --- a/cli/tests/resources/test_export_blocks_job/block_with_logs/expected_blocks.csv +++ b/cli/tests/resources/test_export_blocks_job/block_with_logs/expected_blocks.csv @@ -1,2 +1,2 @@ -number,hash,parent_hash,nonce,sha3_uncles,logs_bloom,transactions_root,state_root,receipts_root,miner,difficulty,total_difficulty,size,extra_data,gas_limit,gas_used,timestamp,transaction_count -13572468,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,0x766d41881adecc5a9ce7b500ff6b45fd765db1be676cba3bc76e3202578f1ec3,0x0000000000000000,0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,0x02200000010000000840040480008004001000008140001010004010010001400010000004100000100000002040040000108080480000042004010408201000000010000001400080600808040000a01100400000400000000300108000000000000008020080001000180000000c0440400000000a00018000401800200080000149000082002000a002000001040000050000040100080008004008040a00224000010000000000000080100000004000000000010000000080080000414090000002000002404101002000060000000800000002801010100000000020040811008150001000001400000104400086000000000800000000010000100800,0xd869e1a0421e72c659d6cdf35f1d31046b2d2d206f35e66fdcc7fc68625ea7a9,0x1d8d7ee6ac0952a469c9a4c2123d5df49240e8b20f3dc5927e909844eac09452,0x9dd5adcb170c94c62fd66df3de34594768040ed296d3b469f31af41bf41667a3,0x7c7379531b2aee82e4ca06d4175d13b9cbeafd49,15,126732986,2392,0xd78301091883626f7288676f312e31352e35856c696e7578000000000000000047c5438d63b353379c31cb581d0c35d2936dee1f80f0038a2bfb0c190cf7685334bc4949b042d52a2723e6f10d89db27d1ddb9184be021ad7a8a73fab1f2f43a01,20000000,1113305,1619057458,5 +number,hash,parent_hash,nonce,sha3_uncles,logs_bloom,transactions_root,state_root,receipts_root,miner,difficulty,total_difficulty,size,extra_data,gas_limit,gas_used,timestamp,transaction_count,base_fee_per_gas +13572468,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,0x766d41881adecc5a9ce7b500ff6b45fd765db1be676cba3bc76e3202578f1ec3,0x0000000000000000,0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,0x02200000010000000840040480008004001000008140001010004010010001400010000004100000100000002040040000108080480000042004010408201000000010000001400080600808040000a01100400000400000000300108000000000000008020080001000180000000c0440400000000a00018000401800200080000149000082002000a002000001040000050000040100080008004008040a00224000010000000000000080100000004000000000010000000080080000414090000002000002404101002000060000000800000002801010100000000020040811008150001000001400000104400086000000000800000000010000100800,0xd869e1a0421e72c659d6cdf35f1d31046b2d2d206f35e66fdcc7fc68625ea7a9,0x1d8d7ee6ac0952a469c9a4c2123d5df49240e8b20f3dc5927e909844eac09452,0x9dd5adcb170c94c62fd66df3de34594768040ed296d3b469f31af41bf41667a3,0x7c7379531b2aee82e4ca06d4175d13b9cbeafd49,15,126732986,2392,0xd78301091883626f7288676f312e31352e35856c696e7578000000000000000047c5438d63b353379c31cb581d0c35d2936dee1f80f0038a2bfb0c190cf7685334bc4949b042d52a2723e6f10d89db27d1ddb9184be021ad7a8a73fab1f2f43a01,20000000,1113305,1619057458,5, diff --git a/cli/tests/resources/test_export_blocks_job/block_with_logs/expected_transactions.csv b/cli/tests/resources/test_export_blocks_job/block_with_logs/expected_transactions.csv index 1417cfa6..88e4d5af 100644 --- a/cli/tests/resources/test_export_blocks_job/block_with_logs/expected_transactions.csv +++ b/cli/tests/resources/test_export_blocks_job/block_with_logs/expected_transactions.csv @@ -1,6 +1,6 @@ -hash,nonce,block_hash,block_number,transaction_index,from_address,to_address,value,gas,gas_price,input,block_timestamp -0x686b2220306fa44cd9e2d6ad067d20d91a7a6fd92f5c13ff6fb565d7e531c941,140694,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,13572468,0,0x6de000d797d3a7eab345d6cfa18e3d5d834d6d10,0xa5e0829caced8ffdd4de3c43696c57f7d7a678ff,0,289000,3460207612456,0x38ed1739000000000000000000000000000000000000000000000000000000005015daa5000000000000000000000000000000000000000000000048f818bff12354000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000006de000d797d3a7eab345d6cfa18e3d5d834d6d1000000000000000000000000000000000000000000000000000000000fc27294f00000000000000000000000000000000000000000000000000000000000000030000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000831753dd7087cac61ab5644b308642cc1c33dc13000000000000000000000000104592a158490a9228070e0a8e5343b499e125d0,1619057458 -0x517278a6c5af1192d4600f78a32b1bb6523efb705f0620f61d35f4432f32ad86,2821,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,13572468,1,0x6436b8efadcf9de6fba945f7ca9955565a51d2db,0x8221735b9d7c2a1e9b2d76b214ab39466750872e,0,306201,5000000000,0x0c53c51c0000000000000000000000002cdbf64c0327a731b53bdd6ce715c3ad6ba099c700000000000000000000000000000000000000000000000000000000000000a0c0df2aa68b728743bbda828f603cad343f7c1f9956e749921ce88a41918c2c631457fa631a836de53236eb9411d9e8442eca0e29b72eef9ffbcd2532023fdf67000000000000000000000000000000000000000000000000000000000000001b0000000000000000000000000000000000000000000000000000000000000064a2b0c8616f4153617569574500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043ac000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000,1619057458 -0x93f6ca02e42ddb0fe80cf1aa2ca1a3327a7f185a60651def0de461a76f4dcf04,5471,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,13572468,2,0x0d1ea5b02981c5ceacd0954bdf6f3fb17b0c8170,0xeffad382fae0086b799a5556ee2be17c1b45889a,0,1000000,3000000000,0xa78f088b00000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000402674558348af47ab000000000000000000000000000000000000000000000000000000006080db39,1619057458 -0xd65d4a4b3f9cfb80ca9ae77f5156ac7b20e1a71b847035b3449e49f35dca24ec,43,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,13572468,3,0x639ade8805c0081ea5da9495bb50751003e827cc,0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf,0,1000000,1000000000,0xe8eda9df0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000000000000000000000000000003782dace9d900000000000000000000000000000639ade8805c0081ea5da9495bb50751003e827cc0000000000000000000000000000000000000000000000000000000000000000,1619057458 -0x783b705b08d4ad0236fff8be8b19fa30b29f995a33e380a7ae6f0a061f9fb59a,1039,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,13572468,4,0x162e1b66bae84629573997ab8d4f4e87c3fb45af,0x7dd75252cc324fd181fc4e79335b7d78a11a8019,0,900000,1000000000,0x94cf94ba000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000020e0bce0f90000000000000000000000000000000000000000000000000000000000000003000000000000000000000000adbf1854e5883eb8aa7baf50705338739e558e5b0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f61900000000000000000000000000000000000000000000000000000000000026f200000000000000000000000029aaea573bb492ffa63ff2c0f009b6fd440f545b0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000000000000000000000000000000000026f20000000000000000000000001bd06b96dd42ada85fdd0795f3b4a79db914add5000000000000000000000000831753dd7087cac61ab5644b308642cc1c33dc1300000000000000000000000000000000000000000000000000000000000026f2,1619057458 +hash,nonce,block_hash,block_number,transaction_index,from_address,to_address,value,gas,gas_price,input,block_timestamp,max_fee_per_gas,max_priority_fee_per_gas,transaction_type +0x686b2220306fa44cd9e2d6ad067d20d91a7a6fd92f5c13ff6fb565d7e531c941,140694,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,13572468,0,0x6de000d797d3a7eab345d6cfa18e3d5d834d6d10,0xa5e0829caced8ffdd4de3c43696c57f7d7a678ff,0,289000,3460207612456,0x38ed1739000000000000000000000000000000000000000000000000000000005015daa5000000000000000000000000000000000000000000000048f818bff12354000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000006de000d797d3a7eab345d6cfa18e3d5d834d6d1000000000000000000000000000000000000000000000000000000000fc27294f00000000000000000000000000000000000000000000000000000000000000030000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa84174000000000000000000000000831753dd7087cac61ab5644b308642cc1c33dc13000000000000000000000000104592a158490a9228070e0a8e5343b499e125d0,1619057458,,,0 +0x517278a6c5af1192d4600f78a32b1bb6523efb705f0620f61d35f4432f32ad86,2821,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,13572468,1,0x6436b8efadcf9de6fba945f7ca9955565a51d2db,0x8221735b9d7c2a1e9b2d76b214ab39466750872e,0,306201,5000000000,0x0c53c51c0000000000000000000000002cdbf64c0327a731b53bdd6ce715c3ad6ba099c700000000000000000000000000000000000000000000000000000000000000a0c0df2aa68b728743bbda828f603cad343f7c1f9956e749921ce88a41918c2c631457fa631a836de53236eb9411d9e8442eca0e29b72eef9ffbcd2532023fdf67000000000000000000000000000000000000000000000000000000000000001b0000000000000000000000000000000000000000000000000000000000000064a2b0c8616f4153617569574500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043ac000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000,1619057458,,,0 +0x93f6ca02e42ddb0fe80cf1aa2ca1a3327a7f185a60651def0de461a76f4dcf04,5471,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,13572468,2,0x0d1ea5b02981c5ceacd0954bdf6f3fb17b0c8170,0xeffad382fae0086b799a5556ee2be17c1b45889a,0,1000000,3000000000,0xa78f088b00000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000402674558348af47ab000000000000000000000000000000000000000000000000000000006080db39,1619057458,,,0 +0xd65d4a4b3f9cfb80ca9ae77f5156ac7b20e1a71b847035b3449e49f35dca24ec,43,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,13572468,3,0x639ade8805c0081ea5da9495bb50751003e827cc,0x8dff5e27ea6b7ac08ebfdf9eb090f32ee9a30fcf,0,1000000,1000000000,0xe8eda9df0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000000000000000000000000000003782dace9d900000000000000000000000000000639ade8805c0081ea5da9495bb50751003e827cc0000000000000000000000000000000000000000000000000000000000000000,1619057458,,,0 +0x783b705b08d4ad0236fff8be8b19fa30b29f995a33e380a7ae6f0a061f9fb59a,1039,0xe19f9e05a7ed4dda068239910f0ad14508140cc58c2c17e875b2486fb0313c91,13572468,4,0x162e1b66bae84629573997ab8d4f4e87c3fb45af,0x7dd75252cc324fd181fc4e79335b7d78a11a8019,0,900000,1000000000,0x94cf94ba000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000020e0bce0f90000000000000000000000000000000000000000000000000000000000000003000000000000000000000000adbf1854e5883eb8aa7baf50705338739e558e5b0000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f61900000000000000000000000000000000000000000000000000000000000026f200000000000000000000000029aaea573bb492ffa63ff2c0f009b6fd440f545b0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf127000000000000000000000000000000000000000000000000000000000000026f20000000000000000000000001bd06b96dd42ada85fdd0795f3b4a79db914add5000000000000000000000000831753dd7087cac61ab5644b308642cc1c33dc1300000000000000000000000000000000000000000000000000000000000026f2,1619057458,,,0 diff --git a/cli/tests/resources/test_export_blocks_job/block_with_transaction_eip_1559/expected_blocks.csv b/cli/tests/resources/test_export_blocks_job/block_with_transaction_eip_1559/expected_blocks.csv new file mode 100644 index 00000000..6b9667c8 --- /dev/null +++ b/cli/tests/resources/test_export_blocks_job/block_with_transaction_eip_1559/expected_blocks.csv @@ -0,0 +1,2 @@ +number,hash,parent_hash,nonce,sha3_uncles,logs_bloom,transactions_root,state_root,receipts_root,miner,difficulty,total_difficulty,size,extra_data,gas_limit,gas_used,timestamp,transaction_count,base_fee_per_gas +23887160,0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501,0xe5d7ef86c4f4eb4f69c4d4244d3b1a24f6b382b29d4e0c32d1c98fc1708599eb,0x0000000000000000,0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,0x000000000000000000002000000000000000002000000000000000000000004000000000000000000000001000000000000080004000200000000000002000000000000000004008000000080000008000000400004000000001000000000a0000000000000000000000000000000000000000000000040084008010000800000000000000000000000800000000000000000008000000000000000000000000220000000000000000000000000000004040000000000000000000000000004000000002000008000001020000000000000000000000800000108102000000000014000000000000000000000000080000000000000008000000000000140800,0x5d1d9b1667af357f640922eee2572d245c7b21119245857f2fd3417db08cfbc9,0x1bd61f25728368a8c683e937aef04317335fea4217969bc9964ffa69023c38f6,0x36db9b43783a097169649f8a340e6f5752d41e8608a9d0e31bf6d69ba7bf221a,0x7c7379531b2aee82e4ca06d4175d13b9cbeafd49,19,298798125,1310,0xd682020d83626f7288676f312e31372e36856c696e7578000000000000000000b8c51f235d0d1b3c9b51820e08d00af191104073e494f7e6307e6e118eaeb9725abe770dd9771a224cf1e448ac2fa35184c7126ad8968e016d94e0464e0738df01,16880268,128554,1642553866,1,19601875943 diff --git a/cli/tests/resources/test_export_blocks_job/block_with_transaction_eip_1559/expected_transactions.csv b/cli/tests/resources/test_export_blocks_job/block_with_transaction_eip_1559/expected_transactions.csv new file mode 100644 index 00000000..65f39726 --- /dev/null +++ b/cli/tests/resources/test_export_blocks_job/block_with_transaction_eip_1559/expected_transactions.csv @@ -0,0 +1,2 @@ +hash,nonce,block_hash,block_number,transaction_index,from_address,to_address,value,gas,gas_price,input,block_timestamp,max_fee_per_gas,max_priority_fee_per_gas,transaction_type +0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d,36,0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501,23887160,0,0x94b09601b04269b4329ca9c011e71a8105ba8e3f,0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45,0,185619,53310194115,0x5ae401dc0000000000000000000000000000000000000000000000000000000061e768e8000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000a247b0476c11dab0be132e91fe63b2b7085d7c0e0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000015bf26d45d535e38a00000000000000000000000000000000000000000000000047691972872455c9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000047691972872455c900000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f00000000000000000000000000000000000000000000000000000000,1642553866,,,0 diff --git a/cli/tests/resources/test_export_blocks_job/block_with_transaction_eip_1559/web3_response.eth_getBlockByNumber_0x16c7d38_true.json b/cli/tests/resources/test_export_blocks_job/block_with_transaction_eip_1559/web3_response.eth_getBlockByNumber_0x16c7d38_true.json new file mode 100644 index 00000000..751a7dc9 --- /dev/null +++ b/cli/tests/resources/test_export_blocks_job/block_with_transaction_eip_1559/web3_response.eth_getBlockByNumber_0x16c7d38_true.json @@ -0,0 +1,45 @@ +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "baseFeePerGas": "0x4905ce3e7", + "difficulty": "0x13", + "extraData": "0xd682020d83626f7288676f312e31372e36856c696e7578000000000000000000b8c51f235d0d1b3c9b51820e08d00af191104073e494f7e6307e6e118eaeb9725abe770dd9771a224cf1e448ac2fa35184c7126ad8968e016d94e0464e0738df01", + "gasLimit": "0x101928c", + "gasUsed": "0x1f62a", + "hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logsBloom": "0x000000000000000000002000000000000000002000000000000000000000004000000000000000000000001000000000000080004000200000000000002000000000000000004008000000080000008000000400004000000001000000000a0000000000000000000000000000000000000000000000040084008010000800000000000000000000000800000000000000000008000000000000000000000000220000000000000000000000000000004040000000000000000000000000004000000002000008000001020000000000000000000000800000108102000000000014000000000000000000000000080000000000000008000000000000140800", + "miner": "0x7c7379531b2aee82e4ca06d4175d13b9cbeafd49", + "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x0000000000000000", + "number": "0x16c7d38", + "parentHash": "0xe5d7ef86c4f4eb4f69c4d4244d3b1a24f6b382b29d4e0c32d1c98fc1708599eb", + "receiptsRoot": "0x36db9b43783a097169649f8a340e6f5752d41e8608a9d0e31bf6d69ba7bf221a", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x51e", + "stateRoot": "0x1bd61f25728368a8c683e937aef04317335fea4217969bc9964ffa69023c38f6", + "timestamp": "0x61e7620a", + "totalDifficulty": "0x11cf4c2d", + "transactions": [ + { + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "blockNumber": "0x16c7d38", + "from": "0x94b09601b04269b4329ca9c011e71a8105ba8e3f", + "gas": "0x2d513", + "gasPrice": "0xc698901c3", + "hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "input": "0x5ae401dc0000000000000000000000000000000000000000000000000000000061e768e8000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000a247b0476c11dab0be132e91fe63b2b7085d7c0e0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000015bf26d45d535e38a00000000000000000000000000000000000000000000000047691972872455c9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000047691972872455c900000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f00000000000000000000000000000000000000000000000000000000", + "nonce": "0x24", + "to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", + "transactionIndex": "0x0", + "value": "0x0", + "type": "0x0", + "v": "0x135", + "r": "0x5f7956f58100f50301379fbc5c70401334d6c82054ae408928f0ef8e23dad458", + "s": "0x2e9f7c3db30fb1d0fa68b9e5dacee2bb570c6b02e2d43a4e779308b0ba81ecb" + } + ], + "transactionsRoot": "0x5d1d9b1667af357f640922eee2572d245c7b21119245857f2fd3417db08cfbc9", + "uncles": [] + } +} diff --git a/cli/tests/resources/test_export_blocks_job/block_without_transactions/expected_blocks.csv b/cli/tests/resources/test_export_blocks_job/block_without_transactions/expected_blocks.csv index 4a2140eb..da51072f 100644 --- a/cli/tests/resources/test_export_blocks_job/block_without_transactions/expected_blocks.csv +++ b/cli/tests/resources/test_export_blocks_job/block_without_transactions/expected_blocks.csv @@ -1,2 +1,2 @@ -number,hash,parent_hash,nonce,sha3_uncles,logs_bloom,transactions_root,state_root,receipts_root,miner,difficulty,total_difficulty,size,extra_data,gas_limit,gas_used,timestamp,transaction_count -0,0xa9c28ce2141b56c474f1dc504bee9b01eb1bd7d1a507580d5519d4437a97de1b,0x0000000000000000000000000000000000000000000000000000000000000000,0x0000000000000000,0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,0x654f28d19b44239d1012f27038f1f71b3d4465dc415a382fb2b7009cba1527c8,0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,0x0000000000000000000000000000000000000000,1,1,508,0x,10000000,0,1590824836,0 +number,hash,parent_hash,nonce,sha3_uncles,logs_bloom,transactions_root,state_root,receipts_root,miner,difficulty,total_difficulty,size,extra_data,gas_limit,gas_used,timestamp,transaction_count,base_fee_per_gas +0,0xa9c28ce2141b56c474f1dc504bee9b01eb1bd7d1a507580d5519d4437a97de1b,0x0000000000000000000000000000000000000000000000000000000000000000,0x0000000000000000,0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,0x654f28d19b44239d1012f27038f1f71b3d4465dc415a382fb2b7009cba1527c8,0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,0x0000000000000000000000000000000000000000,1,1,508,0x,10000000,0,1590824836,0, diff --git a/cli/tests/resources/test_export_blocks_job/blocks_with_transactions/expected_blocks.csv b/cli/tests/resources/test_export_blocks_job/blocks_with_transactions/expected_blocks.csv index 5e876c10..db810b2c 100644 --- a/cli/tests/resources/test_export_blocks_job/blocks_with_transactions/expected_blocks.csv +++ b/cli/tests/resources/test_export_blocks_job/blocks_with_transactions/expected_blocks.csv @@ -1,3 +1,3 @@ -number,hash,parent_hash,nonce,sha3_uncles,logs_bloom,transactions_root,state_root,receipts_root,miner,difficulty,total_difficulty,size,extra_data,gas_limit,gas_used,timestamp,transaction_count -9013760,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,0x4e6cc4e865bda361e1455821262d6b0ee3fd0e6bd7c1d8d0bee9baec6af389ff,0x0000000000000000,0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,0x00000000002000000000000000000000000800001000000000000000000000000000000000000000000000000100000200008000000000000800000000000080200000000000040000000000104000800000000080000000800100000000000000000000000000002000000010400000000000000000000080000000000000000000000000000000000004000000008000000000000000000100000000004020200000000000000000040000000000000000000000000001020000010040004000000000400000000001000010000202000000000000000400140000000008000100200000000000010080000000000000004000000008002000022000100000,0x1399fa6c07b180b7699a351f9f5675c3aa501c7fb09e06e835b2c361fe41e13a,0x1fa46dc9a19023732357e90d70d666fed4e0681e6b123dd9ac5357c9de5b8159,0x53fc5b9886a127c38d3e4618f7f39a1e6ff0b988311005d9734baf3d1b0064b9,0x5973918275c01f50555d44e92c9d9b353cadad54,5,59437845,1475,0xd78301091883626f7288676f312e31352e35856c696e7578000000000000000005ec5cb5f7d0e56c2e8e6a78934e3b806c45b5b6eb426ee48162eabf198d92994978217e13c458d15ed6d509c51f96429c215d930a075988d50804a549cbe51201,20000000,523816,1609459206,4 -9013761,0x90ee8c4ac53cbe2b36ef65560e257ad619a313afe6730b1fa8e7bbe93c23646e,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,0x0000000000000000,0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,0x00000008000000000000000000000000000800001000000000000000000000000000000000000000000000000100000000008000000000000800000000000000000000000000040000000000000000800000000000000000000100000000000000000000004000000000000000000000000000000000000080000000000000000000000000000000000000000000008000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000004000000000000100000001000010000200000000000000004002100000000008000100000004000000000000000000000000000000000008000000020000100000,0x55a0d79a245fe747b5085bf8ab4af004d85dcd6228ad06858a5c24462e08da96,0xcb88a6af7b4da4f4df23d777684c2e9afedf3b85245f7dc226b04350ed6f7cb1,0x74a0bf3633bc4c11707a02679682b7196aab26bd48a6ec1abcf0dad5c98282bb,0x5973918275c01f50555d44e92c9d9b353cadad54,5,59437850,1225,0xd78301091883626f7288676f312e31352e35856c696e757800000000000000005adb9d0705d61a3a5953ff61109a6f8e116f523caae25b6635424e7707196acb08b2ab7c10db2e4b36546da374db61f42e3fc3cfed5a9a3d260df265d91775d901,20000000,262740,1609459208,2 +number,hash,parent_hash,nonce,sha3_uncles,logs_bloom,transactions_root,state_root,receipts_root,miner,difficulty,total_difficulty,size,extra_data,gas_limit,gas_used,timestamp,transaction_count,base_fee_per_gas +9013760,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,0x4e6cc4e865bda361e1455821262d6b0ee3fd0e6bd7c1d8d0bee9baec6af389ff,0x0000000000000000,0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,0x00000000002000000000000000000000000800001000000000000000000000000000000000000000000000000100000200008000000000000800000000000080200000000000040000000000104000800000000080000000800100000000000000000000000000002000000010400000000000000000000080000000000000000000000000000000000004000000008000000000000000000100000000004020200000000000000000040000000000000000000000000001020000010040004000000000400000000001000010000202000000000000000400140000000008000100200000000000010080000000000000004000000008002000022000100000,0x1399fa6c07b180b7699a351f9f5675c3aa501c7fb09e06e835b2c361fe41e13a,0x1fa46dc9a19023732357e90d70d666fed4e0681e6b123dd9ac5357c9de5b8159,0x53fc5b9886a127c38d3e4618f7f39a1e6ff0b988311005d9734baf3d1b0064b9,0x5973918275c01f50555d44e92c9d9b353cadad54,5,59437845,1475,0xd78301091883626f7288676f312e31352e35856c696e7578000000000000000005ec5cb5f7d0e56c2e8e6a78934e3b806c45b5b6eb426ee48162eabf198d92994978217e13c458d15ed6d509c51f96429c215d930a075988d50804a549cbe51201,20000000,523816,1609459206,4, +9013761,0x90ee8c4ac53cbe2b36ef65560e257ad619a313afe6730b1fa8e7bbe93c23646e,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,0x0000000000000000,0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,0x00000008000000000000000000000000000800001000000000000000000000000000000000000000000000000100000000008000000000000800000000000000000000000000040000000000000000800000000000000000000100000000000000000000004000000000000000000000000000000000000080000000000000000000000000000000000000000000008000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000004000000000000100000001000010000200000000000000004002100000000008000100000004000000000000000000000000000000000008000000020000100000,0x55a0d79a245fe747b5085bf8ab4af004d85dcd6228ad06858a5c24462e08da96,0xcb88a6af7b4da4f4df23d777684c2e9afedf3b85245f7dc226b04350ed6f7cb1,0x74a0bf3633bc4c11707a02679682b7196aab26bd48a6ec1abcf0dad5c98282bb,0x5973918275c01f50555d44e92c9d9b353cadad54,5,59437850,1225,0xd78301091883626f7288676f312e31352e35856c696e757800000000000000005adb9d0705d61a3a5953ff61109a6f8e116f523caae25b6635424e7707196acb08b2ab7c10db2e4b36546da374db61f42e3fc3cfed5a9a3d260df265d91775d901,20000000,262740,1609459208,2, diff --git a/cli/tests/resources/test_export_blocks_job/blocks_with_transactions/expected_transactions.csv b/cli/tests/resources/test_export_blocks_job/blocks_with_transactions/expected_transactions.csv index f306f4bd..1c48c6da 100644 --- a/cli/tests/resources/test_export_blocks_job/blocks_with_transactions/expected_transactions.csv +++ b/cli/tests/resources/test_export_blocks_job/blocks_with_transactions/expected_transactions.csv @@ -1,7 +1,7 @@ -hash,nonce,block_hash,block_number,transaction_index,from_address,to_address,value,gas,gas_price,input,block_timestamp -0xe82597905c3a0ddc3377affa286038fd56d68878a1cc22b1f8a549ad4ad61003,693880,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,0,0xa3f36a33e66adeb98e08fe1bd96b4c58517c64c4,0x2b2180a92a686cfc03599b9e5027e35b9448e9f3,0,146316,1000000000,0x4a698cce00000000000000000000000000000000000000000000000000000000000000407c92ec46d584d8d65fd1c8a54626ef0fe51563abe148e924570999dd644341f8000000000000000000000000000000000000000000000000000000000000002e516d56666a615558515a3137795671544334524742334a7a5a62724165695771344a756d38525346793333745152000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd,1609459206 -0xb7ef38d1a0da9bfcf362c9f02e60f5977cdb0f40fe4343ee3e655c185c4dbda3,20398,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,1,0x8a1b884ad651c2eed0ca2c31bcf506191fc46c95,0x673263909d0f08e983a62974c1fbf91e9f645044,0,4000000,1000000000,0x4d8e5037,1609459206 -0x7ef447a3a37326c3033480b39956f88ab281744032eb430bfc5595fb23009ddb,695687,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,2,0x281048bf4d3bbbbd38abe184f6b306216b2e06ae,0x2b2180a92a686cfc03599b9e5027e35b9448e9f3,0,146303,1000000000,0x4a698cce0000000000000000000000000000000000000000000000000000000000000040ce8079d851977be51eb09275a5298b5a93c0a1a049d70075707d0b9536be6cfd000000000000000000000000000000000000000000000000000000000000002e516d523544466171784578326f32464d7378487338786e50734d534674396f6e64464c71536b65744d3561554646000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd,1609459206 -0x01a776a4ed599573efdd5caf4a97debf42a9363d754a90c1bf29307831e613a1,280,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,3,0x78575349911fd7a2399d1106937ceb41ccfe3717,0x2aa4b16664f760d3b213a8cf2e1b5de7bddc44e7,0,350000,1000000000,0xad17a0b30000000000000000000000000000000000000000000000000000000000000001,1609459206 -0xf3745e093ad6f77ecdca5386409b5e769f7f3d07ef13a4a024f58ab36ed0e1cf,694268,0x90ee8c4ac53cbe2b36ef65560e257ad619a313afe6730b1fa8e7bbe93c23646e,9013761,0,0x8a8c076ad2e974b12223fa5a09f62275cfa0c2c0,0x2b2180a92a686cfc03599b9e5027e35b9448e9f3,0,146316,1000000000,0x4a698cce00000000000000000000000000000000000000000000000000000000000000402ab1a54439841792e1fd41f8ceb5e6c2536daa1ad2433eba656a7704b4e5fac8000000000000000000000000000000000000000000000000000000000000002e516d53536654634764384c72644d31516e506a584766774e375548414442587a42315077526f564e525742575956000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd,1609459208 -0x7bf4ab39fae67f5e9f130adeaea5f0423c7b68b032391933970d96fc203b44b7,693881,0x90ee8c4ac53cbe2b36ef65560e257ad619a313afe6730b1fa8e7bbe93c23646e,9013761,1,0xa3f36a33e66adeb98e08fe1bd96b4c58517c64c4,0x2b2180a92a686cfc03599b9e5027e35b9448e9f3,0,146316,1000000000,0x4a698cce0000000000000000000000000000000000000000000000000000000000000040e5b77517c229eb0699f73aa6887b648a8605e7281b591637d4fe76c5f367cbbb000000000000000000000000000000000000000000000000000000000000002e516d6568527942425473354773655561414c457659394c4456366150794165367a75564147343768665a72746534000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd,1609459208 +hash,nonce,block_hash,block_number,transaction_index,from_address,to_address,value,gas,gas_price,input,block_timestamp,max_fee_per_gas,max_priority_fee_per_gas,transaction_type +0xe82597905c3a0ddc3377affa286038fd56d68878a1cc22b1f8a549ad4ad61003,693880,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,0,0xa3f36a33e66adeb98e08fe1bd96b4c58517c64c4,0x2b2180a92a686cfc03599b9e5027e35b9448e9f3,0,146316,1000000000,0x4a698cce00000000000000000000000000000000000000000000000000000000000000407c92ec46d584d8d65fd1c8a54626ef0fe51563abe148e924570999dd644341f8000000000000000000000000000000000000000000000000000000000000002e516d56666a615558515a3137795671544334524742334a7a5a62724165695771344a756d38525346793333745152000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd,1609459206,,,0 +0xb7ef38d1a0da9bfcf362c9f02e60f5977cdb0f40fe4343ee3e655c185c4dbda3,20398,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,1,0x8a1b884ad651c2eed0ca2c31bcf506191fc46c95,0x673263909d0f08e983a62974c1fbf91e9f645044,0,4000000,1000000000,0x4d8e5037,1609459206,,,0 +0x7ef447a3a37326c3033480b39956f88ab281744032eb430bfc5595fb23009ddb,695687,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,2,0x281048bf4d3bbbbd38abe184f6b306216b2e06ae,0x2b2180a92a686cfc03599b9e5027e35b9448e9f3,0,146303,1000000000,0x4a698cce0000000000000000000000000000000000000000000000000000000000000040ce8079d851977be51eb09275a5298b5a93c0a1a049d70075707d0b9536be6cfd000000000000000000000000000000000000000000000000000000000000002e516d523544466171784578326f32464d7378487338786e50734d534674396f6e64464c71536b65744d3561554646000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd,1609459206,,,0 +0x01a776a4ed599573efdd5caf4a97debf42a9363d754a90c1bf29307831e613a1,280,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,3,0x78575349911fd7a2399d1106937ceb41ccfe3717,0x2aa4b16664f760d3b213a8cf2e1b5de7bddc44e7,0,350000,1000000000,0xad17a0b30000000000000000000000000000000000000000000000000000000000000001,1609459206,,,0 +0xf3745e093ad6f77ecdca5386409b5e769f7f3d07ef13a4a024f58ab36ed0e1cf,694268,0x90ee8c4ac53cbe2b36ef65560e257ad619a313afe6730b1fa8e7bbe93c23646e,9013761,0,0x8a8c076ad2e974b12223fa5a09f62275cfa0c2c0,0x2b2180a92a686cfc03599b9e5027e35b9448e9f3,0,146316,1000000000,0x4a698cce00000000000000000000000000000000000000000000000000000000000000402ab1a54439841792e1fd41f8ceb5e6c2536daa1ad2433eba656a7704b4e5fac8000000000000000000000000000000000000000000000000000000000000002e516d53536654634764384c72644d31516e506a584766774e375548414442587a42315077526f564e525742575956000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd,1609459208,,,0 +0x7bf4ab39fae67f5e9f130adeaea5f0423c7b68b032391933970d96fc203b44b7,693881,0x90ee8c4ac53cbe2b36ef65560e257ad619a313afe6730b1fa8e7bbe93c23646e,9013761,1,0xa3f36a33e66adeb98e08fe1bd96b4c58517c64c4,0x2b2180a92a686cfc03599b9e5027e35b9448e9f3,0,146316,1000000000,0x4a698cce0000000000000000000000000000000000000000000000000000000000000040e5b77517c229eb0699f73aa6887b648a8605e7281b591637d4fe76c5f367cbbb000000000000000000000000000000000000000000000000000000000000002e516d6568527942425473354773655561414c457659394c4456366150794165367a75564147343768665a72746534000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd,1609459208,,,0 diff --git a/cli/tests/resources/test_export_receipts_job/receipts_with_logs/expected_receipts.csv b/cli/tests/resources/test_export_receipts_job/receipts_with_logs/expected_receipts.csv index fe379ba1..858ee726 100644 --- a/cli/tests/resources/test_export_receipts_job/receipts_with_logs/expected_receipts.csv +++ b/cli/tests/resources/test_export_receipts_job/receipts_with_logs/expected_receipts.csv @@ -1,5 +1,5 @@ -transaction_hash,transaction_index,block_hash,block_number,cumulative_gas_used,gas_used,contract_address,root,status -0xe82597905c3a0ddc3377affa286038fd56d68878a1cc22b1f8a549ad4ad61003,0,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,131370,131370,,,1 -0x01a776a4ed599573efdd5caf4a97debf42a9363d754a90c1bf29307831e613a1,3,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,523816,23100,,,1 -0x7ef447a3a37326c3033480b39956f88ab281744032eb430bfc5595fb23009ddb,2,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,500716,131358,,,1 -0xb7ef38d1a0da9bfcf362c9f02e60f5977cdb0f40fe4343ee3e655c185c4dbda3,1,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,369358,237988,,,1 +transaction_hash,transaction_index,block_hash,block_number,cumulative_gas_used,gas_used,contract_address,root,status,effective_gas_price +0xe82597905c3a0ddc3377affa286038fd56d68878a1cc22b1f8a549ad4ad61003,0,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,131370,131370,,,1,1000000000 +0x01a776a4ed599573efdd5caf4a97debf42a9363d754a90c1bf29307831e613a1,3,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,523816,23100,,,1,1000000000 +0x7ef447a3a37326c3033480b39956f88ab281744032eb430bfc5595fb23009ddb,2,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,500716,131358,,,1,1000000000 +0xb7ef38d1a0da9bfcf362c9f02e60f5977cdb0f40fe4343ee3e655c185c4dbda3,1,0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7,9013760,369358,237988,,,1,1000000000 diff --git a/cli/tests/resources/test_export_receipts_job/receipts_with_logs/expected_receipts.json b/cli/tests/resources/test_export_receipts_job/receipts_with_logs/expected_receipts.json index 19d5899c..41f5d27b 100644 --- a/cli/tests/resources/test_export_receipts_job/receipts_with_logs/expected_receipts.json +++ b/cli/tests/resources/test_export_receipts_job/receipts_with_logs/expected_receipts.json @@ -1,4 +1,4 @@ -{"transaction_hash": "0x7ef447a3a37326c3033480b39956f88ab281744032eb430bfc5595fb23009ddb", "transaction_index": 2, "block_hash": "0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7", "block_number": 9013760, "cumulative_gas_used": 500716, "gas_used": 131358, "contract_address": null, "root": null, "status": 1} -{"transaction_hash": "0x01a776a4ed599573efdd5caf4a97debf42a9363d754a90c1bf29307831e613a1", "transaction_index": 3, "block_hash": "0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7", "block_number": 9013760, "cumulative_gas_used": 523816, "gas_used": 23100, "contract_address": null, "root": null, "status": 1} -{"transaction_hash": "0xe82597905c3a0ddc3377affa286038fd56d68878a1cc22b1f8a549ad4ad61003", "transaction_index": 0, "block_hash": "0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7", "block_number": 9013760, "cumulative_gas_used": 131370, "gas_used": 131370, "contract_address": null, "root": null, "status": 1} -{"transaction_hash": "0xb7ef38d1a0da9bfcf362c9f02e60f5977cdb0f40fe4343ee3e655c185c4dbda3", "transaction_index": 1, "block_hash": "0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7", "block_number": 9013760, "cumulative_gas_used": 369358, "gas_used": 237988, "contract_address": null, "root": null, "status": 1} +{"transaction_hash": "0x7ef447a3a37326c3033480b39956f88ab281744032eb430bfc5595fb23009ddb", "transaction_index": 2, "block_hash": "0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7", "block_number": 9013760, "cumulative_gas_used": 500716, "gas_used": 131358, "contract_address": null, "root": null, "status": 1, "effective_gas_price": 1000000000} +{"transaction_hash": "0x01a776a4ed599573efdd5caf4a97debf42a9363d754a90c1bf29307831e613a1", "transaction_index": 3, "block_hash": "0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7", "block_number": 9013760, "cumulative_gas_used": 523816, "gas_used": 23100, "contract_address": null, "root": null, "status": 1, "effective_gas_price": 1000000000} +{"transaction_hash": "0xe82597905c3a0ddc3377affa286038fd56d68878a1cc22b1f8a549ad4ad61003", "transaction_index": 0, "block_hash": "0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7", "block_number": 9013760, "cumulative_gas_used": 131370, "gas_used": 131370, "contract_address": null, "root": null, "status": 1, "effective_gas_price": 1000000000} +{"transaction_hash": "0xb7ef38d1a0da9bfcf362c9f02e60f5977cdb0f40fe4343ee3e655c185c4dbda3", "transaction_index": 1, "block_hash": "0x34032490c875e14a38b754852b26436c6ae13f6e9ca12d00ad78c18e1d949be7", "block_number": 9013760, "cumulative_gas_used": 369358, "gas_used": 237988, "contract_address": null, "root": null, "status": 1, "effective_gas_price": 1000000000} diff --git a/cli/tests/resources/test_export_receipts_job/receipts_with_logs_eip_1559/expected_logs.json b/cli/tests/resources/test_export_receipts_job/receipts_with_logs_eip_1559/expected_logs.json new file mode 100644 index 00000000..fb7ed803 --- /dev/null +++ b/cli/tests/resources/test_export_receipts_job/receipts_with_logs_eip_1559/expected_logs.json @@ -0,0 +1,8 @@ +{"log_index": 0, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "block_number": 23887160, "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"]} +{"log_index": 1, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "block_number": 23887160, "address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", "data": "0x0000000000000000000000000000000000000000000000015bf26d45d535e38a", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", "0x000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc"]} +{"log_index": 2, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "block_number": 23887160, "address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", "data": "0xffffffffffffffffffffffffffffffffffffffffffffffd8997d28711c1c5ca1", "topics": ["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"]} +{"log_index": 3, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "block_number": 23887160, "address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffb83b7ebed1c848810000000000000000000000000000000000000000000000015bf26d45d535e38a000000000000000000000000000000000000000232d7376df340793b141192d1000000000000000000000000000000000000000000005d32c9ed61c49e9379380000000000000000000000000000000000000000000000000000000000003d8d", "topics": ["0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"]} +{"log_index": 4, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "block_number": 23887160, "address": "0x0000000000000000000000000000000000001010", "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f000000000000000000000000000000000000000001299781497e2e93e73d0808000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000129978101b9ad52b905508900000000000000000000000000000000000000000000000047c481412e37b77f", "topics": ["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"]} +{"log_index": 5, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "block_number": 23887160, "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f", "topics": ["0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"]} +{"log_index": 6, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "block_number": 23887160, "address": "0x0000000000000000000000000000000000001010", "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f00000000000000000000000000000000000000000000000047c481412e37b77f0000000000000000000000000000000000000000000000166f78385cc16f23980000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016b73cb99defa6db17", "topics": ["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45", "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f"]} +{"log_index": 7, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "block_number": 23887160, "address": "0x0000000000000000000000000000000000001010", "data": "0x000000000000000000000000000000000000000000000000000f652623ca4e180000000000000000000000000000000000000000000000166f9b6029989784110000000000000000000000000000000000000000000091eec6fa37c6978f33c70000000000000000000000000000000000000000000000166f8bfb0374cd35f90000000000000000000000000000000000000000000091eec7099cecbb5981df", "topics": ["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", "0x0000000000000000000000007c7379531b2aee82e4ca06d4175d13b9cbeafd49"]} diff --git a/cli/tests/resources/test_export_receipts_job/receipts_with_logs_eip_1559/expected_receipts.json b/cli/tests/resources/test_export_receipts_job/receipts_with_logs_eip_1559/expected_receipts.json new file mode 100644 index 00000000..fb98f89d --- /dev/null +++ b/cli/tests/resources/test_export_receipts_job/receipts_with_logs_eip_1559/expected_receipts.json @@ -0,0 +1 @@ +{"transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "block_number": 23887160, "cumulative_gas_used": 128554, "gas_used": 128554, "contract_address": null, "root": null, "status": 1, "effective_gas_price": 53310194115} diff --git a/cli/tests/resources/test_export_receipts_job/receipts_with_logs_eip_1559/web3_response.eth_getTransactionReceipt_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d.json b/cli/tests/resources/test_export_receipts_job/receipts_with_logs_eip_1559/web3_response.eth_getTransactionReceipt_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d.json new file mode 100644 index 00000000..e6f7c8a8 --- /dev/null +++ b/cli/tests/resources/test_export_receipts_job/receipts_with_logs_eip_1559/web3_response.eth_getTransactionReceipt_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d.json @@ -0,0 +1,143 @@ +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "blockNumber": "0x16c7d38", + "contractAddress": null, + "cumulativeGasUsed": "0x1f62a", + "effectiveGasPrice": "0xc698901c3", + "from": "0x94b09601b04269b4329ca9c011e71a8105ba8e3f", + "gasUsed": "0x1f62a", + "logs": [ + { + "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45" + ], + "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x0", + "removed": false + }, + { + "address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", + "0x000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc" + ], + "data": "0x0000000000000000000000000000000000000000000000015bf26d45d535e38a", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x1", + "removed": false + }, + { + "address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", + "topics": [ + "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", + "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45" + ], + "data": "0xffffffffffffffffffffffffffffffffffffffffffffffd8997d28711c1c5ca1", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x2", + "removed": false + }, + { + "address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", + "topics": [ + "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45" + ], + "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffb83b7ebed1c848810000000000000000000000000000000000000000000000015bf26d45d535e38a000000000000000000000000000000000000000232d7376df340793b141192d1000000000000000000000000000000000000000000005d32c9ed61c49e9379380000000000000000000000000000000000000000000000000000000000003d8d", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x3", + "removed": false + }, + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45" + ], + "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f000000000000000000000000000000000000000001299781497e2e93e73d0808000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000129978101b9ad52b905508900000000000000000000000000000000000000000000000047c481412e37b77f", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x4", + "removed": false + }, + { + "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", + "topics": [ + "0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45" + ], + "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x5", + "removed": false + }, + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45", + "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f" + ], + "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f00000000000000000000000000000000000000000000000047c481412e37b77f0000000000000000000000000000000000000000000000166f78385cc16f23980000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016b73cb99defa6db17", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x6", + "removed": false + }, + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", + "0x0000000000000000000000007c7379531b2aee82e4ca06d4175d13b9cbeafd49" + ], + "data": "0x000000000000000000000000000000000000000000000000000f652623ca4e180000000000000000000000000000000000000000000000166f9b6029989784110000000000000000000000000000000000000000000091eec6fa37c6978f33c70000000000000000000000000000000000000000000000166f8bfb0374cd35f90000000000000000000000000000000000000000000091eec7099cecbb5981df", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x7", + "removed": false + } + ], + "logsBloom": "0x000000000000000000002000000000000000002000000000000000000000004000000000000000000000001000000000000080004000200000000000002000000000000000004008000000080000008000000400004000000001000000000a0000000000000000000000000000000000000000000000040084008010000800000000000000000000000800000000000000000008000000000000000000000000220000000000000000000000000000004040000000000000000000000000004000000002000008000001020000000000000000000000800000108102000000000014000000000000000000000000080000000000000008000000000000140800", + "status": "0x1", + "to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "type": "0x0" + } +} diff --git a/cli/tests/resources/test_stream/block_eip_1559/expected_blocks.json b/cli/tests/resources/test_stream/block_eip_1559/expected_blocks.json new file mode 100644 index 00000000..196008b8 --- /dev/null +++ b/cli/tests/resources/test_stream/block_eip_1559/expected_blocks.json @@ -0,0 +1 @@ +{"type": "block", "number": 23887160, "hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "parent_hash": "0xe5d7ef86c4f4eb4f69c4d4244d3b1a24f6b382b29d4e0c32d1c98fc1708599eb", "nonce": "0x0000000000000000", "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "logs_bloom": "0x000000000000000000002000000000000000002000000000000000000000004000000000000000000000001000000000000080004000200000000000002000000000000000004008000000080000008000000400004000000001000000000a0000000000000000000000000000000000000000000000040084008010000800000000000000000000000800000000000000000008000000000000000000000000220000000000000000000000000000004040000000000000000000000000004000000002000008000001020000000000000000000000800000108102000000000014000000000000000000000000080000000000000008000000000000140800", "transactions_root": "0x5d1d9b1667af357f640922eee2572d245c7b21119245857f2fd3417db08cfbc9", "state_root": "0x1bd61f25728368a8c683e937aef04317335fea4217969bc9964ffa69023c38f6", "receipts_root": "0x36db9b43783a097169649f8a340e6f5752d41e8608a9d0e31bf6d69ba7bf221a", "miner": "0x7c7379531b2aee82e4ca06d4175d13b9cbeafd49", "difficulty": 19, "total_difficulty": 298798125, "size": 1310, "extra_data": "0xd682020d83626f7288676f312e31372e36856c696e7578000000000000000000b8c51f235d0d1b3c9b51820e08d00af191104073e494f7e6307e6e118eaeb9725abe770dd9771a224cf1e448ac2fa35184c7126ad8968e016d94e0464e0738df01", "gas_limit": 16880268, "gas_used": 128554, "timestamp": 1642553866, "transaction_count": 1, "base_fee_per_gas": 19601875943, "item_id": "block_0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_timestamp": "2022-01-19T00:57:46Z"} diff --git a/cli/tests/resources/test_stream/block_eip_1559/expected_contracts.json b/cli/tests/resources/test_stream/block_eip_1559/expected_contracts.json new file mode 100644 index 00000000..e69de29b diff --git a/cli/tests/resources/test_stream/block_eip_1559/expected_logs.json b/cli/tests/resources/test_stream/block_eip_1559/expected_logs.json new file mode 100644 index 00000000..0114cbeb --- /dev/null +++ b/cli/tests/resources/test_stream/block_eip_1559/expected_logs.json @@ -0,0 +1,8 @@ +{"type": "log", "log_index": 0, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"], "block_number": 23887160, "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_id": "log_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d_0", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "log", "log_index": 1, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", "data": "0x0000000000000000000000000000000000000000000000015bf26d45d535e38a", "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", "0x000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc"], "block_number": 23887160, "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_id": "log_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d_1", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "log", "log_index": 2, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", "data": "0xffffffffffffffffffffffffffffffffffffffffffffffd8997d28711c1c5ca1", "topics": ["0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"], "block_number": 23887160, "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_id": "log_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d_2", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "log", "log_index": 3, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffb83b7ebed1c848810000000000000000000000000000000000000000000000015bf26d45d535e38a000000000000000000000000000000000000000232d7376df340793b141192d1000000000000000000000000000000000000000000005d32c9ed61c49e9379380000000000000000000000000000000000000000000000000000000000003d8d", "topics": ["0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"], "block_number": 23887160, "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_id": "log_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d_3", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "log", "log_index": 4, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "address": "0x0000000000000000000000000000000000001010", "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f000000000000000000000000000000000000000001299781497e2e93e73d0808000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000129978101b9ad52b905508900000000000000000000000000000000000000000000000047c481412e37b77f", "topics": ["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"], "block_number": 23887160, "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_id": "log_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d_4", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "log", "log_index": 5, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f", "topics": ["0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45"], "block_number": 23887160, "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_id": "log_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d_5", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "log", "log_index": 6, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "address": "0x0000000000000000000000000000000000001010", "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f00000000000000000000000000000000000000000000000047c481412e37b77f0000000000000000000000000000000000000000000000166f78385cc16f23980000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016b73cb99defa6db17", "topics": ["0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45", "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f"], "block_number": 23887160, "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_id": "log_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d_6", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "log", "log_index": 7, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "transaction_index": 0, "address": "0x0000000000000000000000000000000000001010", "data": "0x000000000000000000000000000000000000000000000000000f652623ca4e180000000000000000000000000000000000000000000000166f9b6029989784110000000000000000000000000000000000000000000091eec6fa37c6978f33c70000000000000000000000000000000000000000000000166f8bfb0374cd35f90000000000000000000000000000000000000000000091eec7099cecbb5981df", "topics": ["0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", "0x0000000000000000000000007c7379531b2aee82e4ca06d4175d13b9cbeafd49"], "block_number": 23887160, "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_id": "log_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d_7", "item_timestamp": "2022-01-19T00:57:46Z"} diff --git a/cli/tests/resources/test_stream/block_eip_1559/expected_token_transfers.json b/cli/tests/resources/test_stream/block_eip_1559/expected_token_transfers.json new file mode 100644 index 00000000..fd90ebf0 --- /dev/null +++ b/cli/tests/resources/test_stream/block_eip_1559/expected_token_transfers.json @@ -0,0 +1,2 @@ +{"type": "token_transfer", "token_address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "from_address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "to_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "value": 5171400389076432767, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "log_index": 0, "block_number": 23887160, "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_id": "token_transfer_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d_0", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "token_transfer", "token_address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", "from_address": "0x94b09601b04269b4329ca9c011e71a8105ba8e3f", "to_address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "value": 25072222222222222218, "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "log_index": 1, "block_number": 23887160, "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "item_id": "token_transfer_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d_1", "item_timestamp": "2022-01-19T00:57:46Z"} diff --git a/cli/tests/resources/test_stream/block_eip_1559/expected_tokens.json b/cli/tests/resources/test_stream/block_eip_1559/expected_tokens.json new file mode 100644 index 00000000..e69de29b diff --git a/cli/tests/resources/test_stream/block_eip_1559/expected_traces.json b/cli/tests/resources/test_stream/block_eip_1559/expected_traces.json new file mode 100644 index 00000000..0ff3b419 --- /dev/null +++ b/cli/tests/resources/test_stream/block_eip_1559/expected_traces.json @@ -0,0 +1,13 @@ +{"type": "trace", "transaction_index": 0, "from_address": "0x94b09601b04269b4329ca9c011e71a8105ba8e3f", "to_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "value": 0, "input": "0x5ae401dc0000000000000000000000000000000000000000000000000000000061e768e8000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000a247b0476c11dab0be132e91fe63b2b7085d7c0e0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000015bf26d45d535e38a00000000000000000000000000000000000000000000000047691972872455c9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000047691972872455c900000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f00000000000000000000000000000000000000000000000000000000", "output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000047c481412e37b77f0000000000000000000000000000000000000000000000000000000000000000", "trace_type": "call", "call_type": "call", "reward_type": null, "gas": 160967, "gas_used": 128602, "subtraces": 2, "trace_address": [], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "to_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "value": null, "input": "0x04e45aaf000000000000000000000000a247b0476c11dab0be132e91fe63b2b7085d7c0e0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000015bf26d45d535e38a00000000000000000000000000000000000000000000000047691972872455c90000000000000000000000000000000000000000000000000000000000000000", "output": "0x00000000000000000000000000000000000000000000000047c481412e37b77f", "trace_type": "call", "call_type": "delegatecall", "reward_type": null, "gas": 157116, "gas_used": 107204, "subtraces": 1, "trace_address": [0], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_0", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_0", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "to_address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "value": 0, "input": "0x128acb0800000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015bf26d45d535e38a000000000000000000000000fffd8963efd1fc6a506488495d951d5263988d2500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f000000000000000000000000000000000000000000000000000000000000002ba247b0476c11dab0be132e91fe63b2b7085d7c0e000bb80d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000000000000000000000", "output": "0xffffffffffffffffffffffffffffffffffffffffffffffffb83b7ebed1c848810000000000000000000000000000000000000000000000015bf26d45d535e38a", "trace_type": "call", "call_type": "call", "reward_type": null, "gas": 147744, "gas_used": 99772, "subtraces": 4, "trace_address": [0, 0], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_0_0", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_0_0", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "to_address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "value": 0, "input": "0xa9059cbb00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc4500000000000000000000000000000000000000000000000047c481412e37b77f", "output": "0x0000000000000000000000000000000000000000000000000000000000000001", "trace_type": "call", "call_type": "call", "reward_type": null, "gas": 110471, "gas_used": 29995, "subtraces": 0, "trace_address": [0, 0, 0], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_0_0_0", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_0_0_0", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "to_address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", "value": null, "input": "0x70a08231000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "output": "0x000000000000000000000000000000000000000000005505f6a916b39eb69518", "trace_type": "call", "call_type": "staticcall", "reward_type": null, "gas": 77614, "gas_used": 2629, "subtraces": 0, "trace_address": [0, 0, 1], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_0_0_1", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_0_0_1", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "to_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "value": 0, "input": "0xfa461e33ffffffffffffffffffffffffffffffffffffffffffffffffb83b7ebed1c848810000000000000000000000000000000000000000000000015bf26d45d535e38a000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004000000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f000000000000000000000000000000000000000000000000000000000000002ba247b0476c11dab0be132e91fe63b2b7085d7c0e000bb80d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000000000000000000000", "output": "0x", "trace_type": "call", "call_type": "call", "reward_type": null, "gas": 74235, "gas_used": 22476, "subtraces": 1, "trace_address": [0, 0, 2], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_0_0_2", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_0_0_2", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "to_address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", "value": 0, "input": "0x23b872dd00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc0000000000000000000000000000000000000000000000015bf26d45d535e38a", "output": "0x0000000000000000000000000000000000000000000000000000000000000001", "trace_type": "call", "call_type": "call", "reward_type": null, "gas": 69348, "gas_used": 18369, "subtraces": 0, "trace_address": [0, 0, 2, 0], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_0_0_2_0", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_0_0_2_0", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "to_address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", "value": null, "input": "0x70a08231000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc", "output": "0x000000000000000000000000000000000000000000005507529b83f973ec78a2", "trace_type": "call", "call_type": "staticcall", "reward_type": null, "gas": 51478, "gas_used": 629, "subtraces": 0, "trace_address": [0, 0, 3], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_0_0_3", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_0_0_3", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "to_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "value": null, "input": "0x49404b7c00000000000000000000000000000000000000000000000047691972872455c900000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", "output": "0x", "trace_type": "call", "call_type": "delegatecall", "reward_type": null, "gas": 50890, "gas_used": 18239, "subtraces": 3, "trace_address": [1], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_1", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_1", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "to_address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "value": null, "input": "0x70a0823100000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45", "output": "0x00000000000000000000000000000000000000000000000047c481412e37b77f", "trace_type": "call", "call_type": "staticcall", "reward_type": null, "gas": 49390, "gas_used": 564, "subtraces": 0, "trace_address": [1, 0], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_1_0", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_1_0", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "to_address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "value": 0, "input": "0x2e1a7d4d00000000000000000000000000000000000000000000000047c481412e37b77f", "output": "0x", "trace_type": "call", "call_type": "call", "reward_type": null, "gas": 48391, "gas_used": 9258, "subtraces": 1, "trace_address": [1, 1], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_1_1", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_1_1", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", "to_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "value": 5171400389076432767, "input": "0x", "output": "0x", "trace_type": "call", "call_type": "call", "reward_type": null, "gas": 2300, "gas_used": 83, "subtraces": 0, "trace_address": [1, 1, 0], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_1_1_0", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_1_1_0", "item_timestamp": "2022-01-19T00:57:46Z"} +{"type": "trace", "transaction_index": 0, "from_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "to_address": "0x94b09601b04269b4329ca9c011e71a8105ba8e3f", "value": 5171400389076432767, "input": "0x", "output": "0x", "trace_type": "call", "call_type": "call", "reward_type": null, "gas": 32278, "gas_used": 0, "subtraces": 0, "trace_address": [1, 2], "error": null, "status": 1, "block_number": 23887160, "trace_id": "call_23887160_0_1_2", "block_timestamp": 1642553866, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "transaction_hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_id": "trace_call_23887160_0_1_2", "item_timestamp": "2022-01-19T00:57:46Z"} diff --git a/cli/tests/resources/test_stream/block_eip_1559/expected_transactions.json b/cli/tests/resources/test_stream/block_eip_1559/expected_transactions.json new file mode 100644 index 00000000..56d0abc5 --- /dev/null +++ b/cli/tests/resources/test_stream/block_eip_1559/expected_transactions.json @@ -0,0 +1 @@ +{"type": "transaction", "hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "nonce": 36, "transaction_index": 0, "from_address": "0x94b09601b04269b4329ca9c011e71a8105ba8e3f", "to_address": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", "value": 0, "gas": 185619, "gas_price": 53310194115, "input": "0x5ae401dc0000000000000000000000000000000000000000000000000000000061e768e8000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000a247b0476c11dab0be132e91fe63b2b7085d7c0e0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000015bf26d45d535e38a00000000000000000000000000000000000000000000000047691972872455c9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000047691972872455c900000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f00000000000000000000000000000000000000000000000000000000", "block_timestamp": 1642553866, "block_number": 23887160, "block_hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", "max_fee_per_gas": null, "max_priority_fee_per_gas": null, "transaction_type": 0, "receipt_cumulative_gas_used": 128554, "receipt_gas_used": 128554, "receipt_contract_address": null, "receipt_root": null, "receipt_status": 1, "receipt_effective_gas_price": 53310194115, "item_id": "transaction_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", "item_timestamp": "2022-01-19T00:57:46Z"} diff --git a/cli/tests/resources/test_stream/block_eip_1559/web3_response.eth_getBlockByNumber_0x16c7d38_true.json b/cli/tests/resources/test_stream/block_eip_1559/web3_response.eth_getBlockByNumber_0x16c7d38_true.json new file mode 100644 index 00000000..751a7dc9 --- /dev/null +++ b/cli/tests/resources/test_stream/block_eip_1559/web3_response.eth_getBlockByNumber_0x16c7d38_true.json @@ -0,0 +1,45 @@ +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "baseFeePerGas": "0x4905ce3e7", + "difficulty": "0x13", + "extraData": "0xd682020d83626f7288676f312e31372e36856c696e7578000000000000000000b8c51f235d0d1b3c9b51820e08d00af191104073e494f7e6307e6e118eaeb9725abe770dd9771a224cf1e448ac2fa35184c7126ad8968e016d94e0464e0738df01", + "gasLimit": "0x101928c", + "gasUsed": "0x1f62a", + "hash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logsBloom": "0x000000000000000000002000000000000000002000000000000000000000004000000000000000000000001000000000000080004000200000000000002000000000000000004008000000080000008000000400004000000001000000000a0000000000000000000000000000000000000000000000040084008010000800000000000000000000000800000000000000000008000000000000000000000000220000000000000000000000000000004040000000000000000000000000004000000002000008000001020000000000000000000000800000108102000000000014000000000000000000000000080000000000000008000000000000140800", + "miner": "0x7c7379531b2aee82e4ca06d4175d13b9cbeafd49", + "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x0000000000000000", + "number": "0x16c7d38", + "parentHash": "0xe5d7ef86c4f4eb4f69c4d4244d3b1a24f6b382b29d4e0c32d1c98fc1708599eb", + "receiptsRoot": "0x36db9b43783a097169649f8a340e6f5752d41e8608a9d0e31bf6d69ba7bf221a", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0x51e", + "stateRoot": "0x1bd61f25728368a8c683e937aef04317335fea4217969bc9964ffa69023c38f6", + "timestamp": "0x61e7620a", + "totalDifficulty": "0x11cf4c2d", + "transactions": [ + { + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "blockNumber": "0x16c7d38", + "from": "0x94b09601b04269b4329ca9c011e71a8105ba8e3f", + "gas": "0x2d513", + "gasPrice": "0xc698901c3", + "hash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "input": "0x5ae401dc0000000000000000000000000000000000000000000000000000000061e768e8000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000e404e45aaf000000000000000000000000a247b0476c11dab0be132e91fe63b2b7085d7c0e0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf12700000000000000000000000000000000000000000000000000000000000000bb800000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000015bf26d45d535e38a00000000000000000000000000000000000000000000000047691972872455c9000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004449404b7c00000000000000000000000000000000000000000000000047691972872455c900000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f00000000000000000000000000000000000000000000000000000000", + "nonce": "0x24", + "to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", + "transactionIndex": "0x0", + "value": "0x0", + "type": "0x0", + "v": "0x135", + "r": "0x5f7956f58100f50301379fbc5c70401334d6c82054ae408928f0ef8e23dad458", + "s": "0x2e9f7c3db30fb1d0fa68b9e5dacee2bb570c6b02e2d43a4e779308b0ba81ecb" + } + ], + "transactionsRoot": "0x5d1d9b1667af357f640922eee2572d245c7b21119245857f2fd3417db08cfbc9", + "uncles": [] + } +} diff --git a/cli/tests/resources/test_stream/block_eip_1559/web3_response.eth_getBlockByNumber_latest_false.json b/cli/tests/resources/test_stream/block_eip_1559/web3_response.eth_getBlockByNumber_latest_false.json new file mode 100644 index 00000000..529d7f46 --- /dev/null +++ b/cli/tests/resources/test_stream/block_eip_1559/web3_response.eth_getBlockByNumber_latest_false.json @@ -0,0 +1,78 @@ +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "baseFeePerGas": "0x1d7f3b0af", + "difficulty": "0x1b", + "extraData": "0xd682021083626f7288676f312e31392e32856c696e7578000000000000000000325bbd952ce4fad21be21054a82fa8b0d416f7c35728f7d44aa2495cd114d0dd22385a77cac130b8a5124a0a6f8a0dca1c2ec8068e36f7379db62cf5c41123cb01", + "gasLimit": "0x1b3838b", + "gasUsed": "0xc39370", + "hash": "0x5782ae7d42266a1378c1769eeeba441793ebd53a4c4591802c397f22e56017a5", + "logsBloom": "0x85a861820086509040ca1d688438154284555740a9017e40424302be2384014d4854194d7545127016642571f7f4510195b7bf918e06ae06623b8316982eb160319e308d9adf41d98ea5811ba42ea4f4f54ced6ecd6c35a0751ba61e820022525bd400c15781c4ba312179064642b9604b0450fd4f1406c5a34561b016ce10d75d91691518589e45952c714376061f56007b7d8d44a18a0b123a0a7e854228582378091213364080024d99e9d08b60cbf3d451ae28c2ac16953a283968827144eb198f67928a3a290a0fc2a778d1d508d2e52301c079ee3466f3b7828e7471a2c0d02dea81903c68022d19f71d347e02d34001cb81b416dd89625c00defeee10", + "miner": "0x7c7379531b2aee82e4ca06d4175d13b9cbeafd49", + "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce": "0x0000000000000000", + "number": "0x2206a32", + "parentHash": "0x02a6e0d908e6895a85a90059832d487f34141889f0eead31e59027a57bf2d827", + "receiptsRoot": "0x69915f35894f8bb5e385e92a5eefe1fa9b0a247729901352fbf943e92dc8a8fe", + "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "size": "0xcd02", + "stateRoot": "0xbdea306061233a073ef02e2d9c45d7e68a31f19830ec26198fa204a2b09203a7", + "timestamp": "0x6374daf0", + "totalDifficulty": "0x21234a2a", + "transactions": [ + "0x516814b332e7991dd01a1dc441515181f9e462138d465b187c935b95a5757e4b", + "0x37864b71462f229c2aa05323e4cd2138bc6abff59affef860c9867373d7287b8", + "0x778d5fde9f1c6d4466f4bfc084e45d4261bdb68cdc1e4a909584229ce66ecc58", + "0xa2a758a8f5bb1c440337505760ef88531433796f716641e1d0ec032ecb46c345", + "0x892cf917ff42e40cc5dacc369270447622d1d1ff34c3d253b1afb30897f2185a", + "0x5bdba0026254c5dba722d9519961a5627cb531dbab3adb79bf1d455e29dc0229", + "0x2ad260aece2cda8dccbdf7856153362c1d10d10951c8d0842baf726dc7333e2b", + "0xac70aa361fbae235461dcf6b8138da13e748ea1154820b05923ab9ee018a803a", + "0x63b2c40f1258bd7e2d69b9e6bd8422a6c9376f4f6175ef960666706e8d0e168a", + "0xc7a7dc21ccb935d6e3d36f4d4c0fc5cc17c412c3e990f0c8f3dcc004b3143058", + "0x4240a3a5e17deededc45f411b21e5ad8c7474f129562a2cd8676ef12f025ec73", + "0xc669062fd7599f0d64a994b3ad19d0cc3d58bc2151779706c9921b3123a29b46", + "0x3896760e6cba50814d0c1755bbe57271a0fc15f1355edd740854e5ad60f2e9a9", + "0xfb6ad221056e77b42c1727f2e255bc56e7a8a5be9d48507f8d75a36fbb2dd87a", + "0x4c622ba96b05d1d772f23b5cf608b8cfd762bc5036c5e83e7eafb388e5bac8ee", + "0x5a1854ee11089f1c6d763e445159dc98b4587c94cc3d49bf2383845a457cae33", + "0x93341274bbb2884e988fdaed431d8419e841b931d5930c01f386abce31f34444", + "0xe1a84080030069e58d7e65105a62c356bb10786c0b64f4c1c0a46697eb3161a3", + "0xf485aa3b38fb15489c31974d2078b006691328f4e92403e8755c443302492482", + "0xe8aaae151df774bc6f2e1ec1259b6197b917d806f1a8c54d3dec364156394e1e", + "0x5055a515dfe19e5b67e4690c39bf854de352b13b3d80e1c22b6612102055250f", + "0x8a5e7de9d2cae607f687de49e50b9e036e2586ad19d648951b9f4685bd362429", + "0xab580eb56841954739a50765e9ca74bb6fe02b60bb4653142e345aeeb61d95c9", + "0xa8a151f628f96184814d778bfb25af76eb15e18922310e03fb6b1cab427fc80b", + "0x09293935b14074a2625294f6e02263de0884d4c0b4caed3e39893189744fd49e", + "0x4e91c87decb4518f7bd0103df139ecb631e4fb8913ecaf0b8987fb2967d48c1e", + "0x943aacccd4cd0209905ff4c5419a20a9696d11dfaa6653fafe85fa74a433c7aa", + "0x82bdf33263b2273233600394288ff1a29be4a7e6e0fb2b9cab551ded6d082cca", + "0x3488a79585acb8a11715a792b324268007479d9079c1817e69738955620278ba", + "0x1a044792af72c91cadd525ff153fa1aa4529301ab3596432cdf128508a5320ad", + "0x302a2b4a07735891bc621c6bfa4c916ed980de4e809ede64d1875ecf31bc847c", + "0x177117fc21b8fb1264d534890e468ccc74ba6cf00f0e59f821c4e093561be32e", + "0xcdfeb0b1a4021aa5c6b8d15cd721ba86bad616fce51cb1967efc5990d31dc832", + "0xebfe0fc6752d074328dc46efbfec1f3af46dff339bbb74d18b25472eb3e9e4a0", + "0xd0c09f8d1e6abcb93ec7a5732b92c2fcf40aa4810e78e147b371c88f92949c4a", + "0x935abf454084ef6aa6d8a235bb07f7e51e495c9e54a436dfe66bd984632173f3", + "0x0064234c6bad3c407eadfb87a26580500a3a58955cdb3f46788ce1baf10fbe92", + "0xf94b4022f33698a2dd06db6020a6118028c52bd00526d787e65020cb51087ed3", + "0x70977d777b1128539876be196c2419d28cd365dde03131b5e365ab9b3a944243", + "0x04228786153569057c9c2c462981eb7a45891c9509a6d703f64aea0e3ede9de6", + "0x196ca24b322bf0b9a0ff02f644b9f9d60f291d5a56ddd11d179d91c6a7e8bd09", + "0xd4f31f2d4c5d55b0a4a7ade52eadf1a61ad49c6bac228c7ff1620388329640e2", + "0x347f3f396b77a600481de852198c17f8c979fe5c9c04ea3d3f6882392cd09a93", + "0xf929cf1ced4fe8cd2c5cdb3c101e73334c9746bf4e9429c9e077cea2a49c6c37", + "0x7fe3e2a5264b4957ea84a06a6700fb8a6ec522633d1a66aaea7865e6715fd655", + "0xef9e54f4493d0cc376322e3227cd09a52cb26ff8908342c8a712cf6143b4195d", + "0xaa024a2c5706ee9fbfdb752ec83d30fdba9ea7a0855c7c968a405309599acee6", + "0xf69498d070d91306e1c15bf57149fcb770ca4666be451e9ce3dda0e6cd7d4a44", + "0xfb6a1d869b5023890985f91411276689ae4ed6673974c88cfc2e7d4767e1cc2b", + "0x10d08a6184c655a4f763dfc08b3acdb0a857cf00de7857c91bf5c42fea3217aa" + ], + "transactionsRoot": "0xde857cd1075a7ea7dad26bac1de2bbd64e6a2582cfd41ef90c306c138ca3e91d", + "uncles": [] + } +} diff --git a/cli/tests/resources/test_stream/block_eip_1559/web3_response.eth_getTransactionReceipt_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d.json b/cli/tests/resources/test_stream/block_eip_1559/web3_response.eth_getTransactionReceipt_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d.json new file mode 100644 index 00000000..e6f7c8a8 --- /dev/null +++ b/cli/tests/resources/test_stream/block_eip_1559/web3_response.eth_getTransactionReceipt_0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d.json @@ -0,0 +1,143 @@ +{ + "jsonrpc": "2.0", + "id": 1, + "result": { + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "blockNumber": "0x16c7d38", + "contractAddress": null, + "cumulativeGasUsed": "0x1f62a", + "effectiveGasPrice": "0xc698901c3", + "from": "0x94b09601b04269b4329ca9c011e71a8105ba8e3f", + "gasUsed": "0x1f62a", + "logs": [ + { + "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45" + ], + "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x0", + "removed": false + }, + { + "address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", + "topics": [ + "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", + "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", + "0x000000000000000000000000b1f30b7df529845ab92dfd39e3eefeadc37f9fcc" + ], + "data": "0x0000000000000000000000000000000000000000000000015bf26d45d535e38a", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x1", + "removed": false + }, + { + "address": "0xa247b0476c11dab0be132e91fe63b2b7085d7c0e", + "topics": [ + "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925", + "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45" + ], + "data": "0xffffffffffffffffffffffffffffffffffffffffffffffd8997d28711c1c5ca1", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x2", + "removed": false + }, + { + "address": "0xb1f30b7df529845ab92dfd39e3eefeadc37f9fcc", + "topics": [ + "0xc42079f94a6350d7e6235f29174924f928cc2ac818eb64fed8004e115fbcca67", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45" + ], + "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffb83b7ebed1c848810000000000000000000000000000000000000000000000015bf26d45d535e38a000000000000000000000000000000000000000232d7376df340793b141192d1000000000000000000000000000000000000000000005d32c9ed61c49e9379380000000000000000000000000000000000000000000000000000000000003d8d", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x3", + "removed": false + }, + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45" + ], + "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f000000000000000000000000000000000000000001299781497e2e93e73d0808000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000129978101b9ad52b905508900000000000000000000000000000000000000000000000047c481412e37b77f", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x4", + "removed": false + }, + { + "address": "0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270", + "topics": [ + "0x7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45" + ], + "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x5", + "removed": false + }, + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x00000000000000000000000068b3465833fb72a70ecdf485e0e4c7bd8665fc45", + "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f" + ], + "data": "0x00000000000000000000000000000000000000000000000047c481412e37b77f00000000000000000000000000000000000000000000000047c481412e37b77f0000000000000000000000000000000000000000000000166f78385cc16f23980000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016b73cb99defa6db17", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x6", + "removed": false + }, + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x00000000000000000000000094b09601b04269b4329ca9c011e71a8105ba8e3f", + "0x0000000000000000000000007c7379531b2aee82e4ca06d4175d13b9cbeafd49" + ], + "data": "0x000000000000000000000000000000000000000000000000000f652623ca4e180000000000000000000000000000000000000000000000166f9b6029989784110000000000000000000000000000000000000000000091eec6fa37c6978f33c70000000000000000000000000000000000000000000000166f8bfb0374cd35f90000000000000000000000000000000000000000000091eec7099cecbb5981df", + "blockNumber": "0x16c7d38", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "blockHash": "0x19e20a4e6be2c6df62cb862bceed53bea424fdcabf654383c3f57fbbf1bf6501", + "logIndex": "0x7", + "removed": false + } + ], + "logsBloom": "0x000000000000000000002000000000000000002000000000000000000000004000000000000000000000001000000000000080004000200000000000002000000000000000004008000000080000008000000400004000000001000000000a0000000000000000000000000000000000000000000000040084008010000800000000000000000000000800000000000000000008000000000000000000000000220000000000000000000000000000004040000000000000000000000000004000000002000008000001020000000000000000000000800000108102000000000014000000000000000000000000080000000000000008000000000000140800", + "status": "0x1", + "to": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45", + "transactionHash": "0xcc6321f62e241e512bdbf7f466adfd2bd78543ee4a8efb69c2d58a5451ddb25d", + "transactionIndex": "0x0", + "type": "0x0" + } +} diff --git a/cli/tests/resources/test_stream/block_with_contracts/expected_blocks.json b/cli/tests/resources/test_stream/block_with_contracts/expected_blocks.json index 22057175..739dd2a5 100644 --- a/cli/tests/resources/test_stream/block_with_contracts/expected_blocks.json +++ b/cli/tests/resources/test_stream/block_with_contracts/expected_blocks.json @@ -1 +1 @@ -{"type": "block", "number": 2233682, "hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "parent_hash": "0x6290636d2d291e2d0639062419736ba11729c1375fbbe9a365d2692f85b267c5", "nonce": "0x0000000000000000", "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "logs_bloom": "0x00000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000040000000000000000800001000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000800000000000000001000000000000000000004000000000000000000001000000000200000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000100000", "transactions_root": "0x1d11a1b48b55ce6068d32b30a108739f816c291d4512610d1a908151f642d16b", "state_root": "0xe9d35ad8e72437df06852b95a34a4c6eef9cda537fd2b8fd3fa2a802fea33964", "receipts_root": "0x52fbd2710e715fba77b70a75048de8afcb2831d30b2214a1b5e60e6a6add1967", "miner": "0x5973918275c01f50555d44e92c9d9b353cadad54", "difficulty": 8, "total_difficulty": 15725200, "size": 40456, "extra_data": "0xd58301090083626f7286676f312e3133856c696e7578000000000000000000001abd89b51906d8d5dd5399a87132822b093176c67babae82e5863ee915b22530680d545e7fef8cebbe3058e35641cb5900829f90e90350ab70c2f1216958a07d00", "gas_limit": 20000000, "gas_used": 10735866, "timestamp": 1595463170, "transaction_count": 5, "item_id": "block_0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "item_timestamp": "2020-07-23T00:12:50Z"} +{"type": "block", "number": 2233682, "hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "parent_hash": "0x6290636d2d291e2d0639062419736ba11729c1375fbbe9a365d2692f85b267c5", "nonce": "0x0000000000000000", "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "logs_bloom": "0x00000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000040000000000000000800001000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000800000000000000001000000000000000000004000000000000000000001000000000200000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000100000", "transactions_root": "0x1d11a1b48b55ce6068d32b30a108739f816c291d4512610d1a908151f642d16b", "state_root": "0xe9d35ad8e72437df06852b95a34a4c6eef9cda537fd2b8fd3fa2a802fea33964", "receipts_root": "0x52fbd2710e715fba77b70a75048de8afcb2831d30b2214a1b5e60e6a6add1967", "miner": "0x5973918275c01f50555d44e92c9d9b353cadad54", "difficulty": 8, "total_difficulty": 15725200, "size": 40456, "extra_data": "0xd58301090083626f7286676f312e3133856c696e7578000000000000000000001abd89b51906d8d5dd5399a87132822b093176c67babae82e5863ee915b22530680d545e7fef8cebbe3058e35641cb5900829f90e90350ab70c2f1216958a07d00", "gas_limit": 20000000, "gas_used": 10735866, "timestamp": 1595463170, "transaction_count": 5, "base_fee_per_gas": null, "item_id": "block_0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "item_timestamp": "2020-07-23T00:12:50Z"} diff --git a/cli/tests/resources/test_stream/block_with_contracts/expected_transactions.json b/cli/tests/resources/test_stream/block_with_contracts/expected_transactions.json index 71924788..b6c84b7c 100644 --- a/cli/tests/resources/test_stream/block_with_contracts/expected_transactions.json +++ b/cli/tests/resources/test_stream/block_with_contracts/expected_transactions.json @@ -1,5 +1,5 @@ -{"type": "transaction", "hash": "0xbdf0c6164c3ec02ba22b9966c9dc38525cded727a0f2e3dc936462cdd8d9129c", "nonce": 168, "transaction_index": 0, "from_address": "0x2f26d1ddabcdd88aeca3d4f527d4366c37e15c78", "to_address": null, "value": 0, "gas": 7500000, "gas_price": 1000000000, "input": "0x60e0604052602360808190527f68747470733a2f2f626c6f636b636861696e6375746965732e636f6d2f746f6b60a09081527f656e2f000000000000000000000000000000000000000000000000000000000060c052620000649160029190620000a6565b506040805160208101918290526000908190526200008591600391620000a6565b50336000908152602081905260409020805460ff191660011790556200014b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000e957805160ff191683800117855562000119565b8280016001018555821562000119579182015b8281111562000119578251825591602001919060010190620000fc565b50620001279291506200012b565b5090565b6200014891905b8082111562000127576000815560010162000132565b90565b611137806200015b6000396000f3006080604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166313af403581146100df578063173825d9146101025780632f54bf6e1461012357806346195c12146101585780636d70f7ae146101795780637065cb481461019a57806379edfa7d146101bb5780639870d7fe146101e7578063a0ef91df14610208578063ac8a584a1461021d578063c6b72a1f14610158578063c7047fa71461023e578063c87b56dd146102c8578063d4d6d366146102e0578063f4f3b200146102f5575b600080fd5b3480156100eb57600080fd5b50610100600160a060020a0360043516610316565b005b34801561010e57600080fd5b50610100600160a060020a0360043516610401565b34801561012f57600080fd5b50610144600160a060020a0360043516610479565b604080519115158252519081900360200190f35b34801561016457600080fd5b50610100600160a060020a0360043516610497565b34801561018557600080fd5b50610144600160a060020a0360043516610570565b3480156101a657600080fd5b50610100600160a060020a03600435166105b5565b3480156101c757600080fd5b506101006024600480358281019290820135918135918201910135610690565b3480156101f357600080fd5b50610100600160a060020a0360043516610700565b34801561021457600080fd5b506101006107de565b34801561022957600080fd5b50610100600160a060020a0360043516610870565b34801561024a57600080fd5b506102536108e8565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028d578181015183820152602001610275565b50505050905090810190601f1680156102ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102d457600080fd5b50610253600435610973565b3480156102ec57600080fd5b50610253610a88565b34801561030157600080fd5b50610100600160a060020a0360043516610ae3565b3360009081526020819052604090205460ff16151561036d576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b600160a060020a03811615156103cd576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0316600090815260208190526040808220805460ff19908116600117909155338352912080549091169055565b3360009081526020819052604090205460ff161515610458576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19169055565b600160a060020a031660009081526020819052604090205460ff1690565b3360009081526020819052604090205460ff1615156104ee576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b604080517fa22cb465000000000000000000000000000000000000000000000000000000008152336004820152600160248201529051600160a060020a0383169163a22cb46591604480830192600092919082900301818387803b15801561055557600080fd5b505af1158015610569573d6000803e3d6000fd5b5050505050565b600160a060020a03811660009081526001602052604081205460ff16806105af5750600160a060020a03821660009081526020819052604090205460ff165b92915050565b3360009081526020819052604090205460ff16151561060c576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b600160a060020a038116151561066c576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19166001179055565b3360009081526020819052604090205460ff1615156106e7576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b6106f360028585611039565b5061056960038383611039565b3360009081526020819052604090205460ff161515610757576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b600160a060020a03811615156107b7576040805160e560020a62461bcd02815260206004820152601560248201527f4e6577206f70657261746f7220697320656d7074790000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b3360009081526020819052604090205460ff161515610835576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b60003031111561086e576040513390303180156108fc02916000818181858888f1935050505015801561086c573d6000803e3d6000fd5b505b565b3360009081526020819052604090205460ff1615156108c7576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561096b5780601f106109405761010080835404028352916020019161096b565b820191906000526020600020905b81548152906001019060200180831161094e57829003601f168201915b505050505081565b60028054604080516020601f600019610100600187161502019094168590049384018190048102820181019092528281526060936105af93610a0a93830182828015610a005780601f106109d557610100808354040283529160200191610a00565b820191906000526020600020905b8154815290600101906020018083116109e357829003601f168201915b5050505050610c63565b610a83610a1c610a21610a1c87610c89565b610c63565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152610a839390929091830182828015610a005780601f106109d557610100808354040283529160200191610a00565b610f7e565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561096b5780601f106109405761010080835404028352916020019161096b565b3360009081526020819052604081205460ff161515610b3a576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038416916370a082319160248083019260209291908290030181600087803b158015610b9b57600080fd5b505af1158015610baf573d6000803e3d6000fd5b505050506040513d6020811015610bc557600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a0384169163a9059cbb916044808201926020929091908290030181600087803b158015610c3357600080fd5b505af1158015610c47573d6000803e3d6000fd5b505050506040513d6020811015610c5d57600080fd5b50505050565b610c6b6110b7565b50604080518082019091528151815260209182019181019190915290565b6040805160208101909152600080825260609190825b5050604080516020810190915260008152600a808504940690811515610cf9575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160011415610d3c575060408051808201909152600181527f31000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160021415610d7f575060408051808201909152600181527f32000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160031415610dc2575060408051808201909152600181527f33000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160041415610e05575060408051808201909152600181527f34000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160051415610e48575060408051808201909152600181527f35000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160061415610e8b575060408051808201909152600181527f36000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160071415610ece575060408051808201909152600181527f37000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160081415610f11575060408051808201909152600181527f38000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160091415610f50575060408051808201909152600181527f390000000000000000000000000000000000000000000000000000000000000060208201525b610f65610f5c82610c63565b610a8385610c63565b92506000851115610f7557610c9f565b50909392505050565b606080600083600001518560000151016040519080825280601f01601f191660200182016040528015610fbb578160200160208202803883390190505b509150602082019050610fd78186602001518760000151610ff5565b845160208501518551610fed9284019190610ff5565b509392505050565b60005b6020821061101a578251845260209384019390920191601f1990910190610ff8565b50905182516020929092036101000a6000190180199091169116179052565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061107a5782800160ff198235161785556110a7565b828001600101855582156110a7579182015b828111156110a757823582559160200191906001019061108c565b506110b39291506110ce565b5090565b604080518082019091526000808252602082015290565b6110e891905b808211156110b357600081556001016110d4565b9056004163636573732064656e69656400000000000000000000000000000000000000a165627a7a723058208ecfd0139dc847e5853d9a8989c26497c24ab7a8aabc2c2d7b97c1c42fb005d60029", "block_timestamp": 1595463170, "block_number": 2233682, "block_hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "receipt_cumulative_gas_used": 1303308, "receipt_gas_used": 1303308, "receipt_contract_address": "0x3afd673cd8406ef33812abd669b6f7d0f9ba2957", "receipt_root": null, "receipt_status": 1, "item_id": "transaction_0xbdf0c6164c3ec02ba22b9966c9dc38525cded727a0f2e3dc936462cdd8d9129c", "item_timestamp": "2020-07-23T00:12:50Z"} -{"type": "transaction", "hash": "0x3c3b7096f9a474d378eb065045f403e0d4b3effc37e43d9b52a5b7f00f0455de", "nonce": 169, "transaction_index": 1, "from_address": "0x2f26d1ddabcdd88aeca3d4f527d4366c37e15c78", "to_address": null, "value": 0, "gas": 7500000, "gas_price": 1000000000, "input": "0x60806040908152336000908152602081905220805460ff19166001179055610c3b8061002c6000396000f3006080604052600436106100cf5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630e89341c81146100d457806312180ee21461016157806313af403514610176578063173825d9146101995780632f54bf6e146101ba57806346195c12146101ef5780636d70f7ae146102105780637065cb48146102315780639870d7fe146102525780639b642de114610273578063a0ef91df14610293578063ac8a584a146102a8578063c6b72a1f146101ef578063f4f3b200146102c9575b600080fd5b3480156100e057600080fd5b506100ec6004356102ea565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012657818101518382015260200161010e565b50505050905090810190601f1680156101535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016d57600080fd5b506100ec61037f565b34801561018257600080fd5b50610197600160a060020a036004351661040a565b005b3480156101a557600080fd5b50610197600160a060020a03600435166104f5565b3480156101c657600080fd5b506101db600160a060020a036004351661056d565b604080519115158252519081900360200190f35b3480156101fb57600080fd5b50610197600160a060020a036004351661058b565b34801561021c57600080fd5b506101db600160a060020a0360043516610664565b34801561023d57600080fd5b50610197600160a060020a03600435166106a9565b34801561025e57600080fd5b50610197600160a060020a0360043516610784565b34801561027f57600080fd5b506101976004803560248101910135610862565b34801561029f57600080fd5b506101976108ca565b3480156102b457600080fd5b50610197600160a060020a036004351661095c565b3480156102d557600080fd5b50610197600160a060020a03600435166109d4565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156103735780601f1061034857610100808354040283529160200191610373565b820191906000526020600020905b81548152906001019060200180831161035657829003601f168201915b50505050509050919050565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104025780601f106103d757610100808354040283529160200191610402565b820191906000526020600020905b8154815290600101906020018083116103e557829003601f168201915b505050505081565b3360009081526020819052604090205460ff161515610461576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b600160a060020a03811615156104c1576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0316600090815260208190526040808220805460ff19908116600117909155338352912080549091169055565b3360009081526020819052604090205460ff16151561054c576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19169055565b600160a060020a031660009081526020819052604090205460ff1690565b3360009081526020819052604090205460ff1615156105e2576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b604080517fa22cb465000000000000000000000000000000000000000000000000000000008152336004820152600160248201529051600160a060020a0383169163a22cb46591604480830192600092919082900301818387803b15801561064957600080fd5b505af115801561065d573d6000803e3d6000fd5b5050505050565b600160a060020a03811660009081526001602052604081205460ff16806106a35750600160a060020a03821660009081526020819052604090205460ff165b92915050565b3360009081526020819052604090205460ff161515610700576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b600160a060020a0381161515610760576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19166001179055565b3360009081526020819052604090205460ff1615156107db576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b600160a060020a038116151561083b576040805160e560020a62461bcd02815260206004820152601560248201527f4e6577206f70657261746f7220697320656d7074790000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b3360009081526020819052604090205460ff1615156108b9576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b6108c560028383610b54565b505050565b3360009081526020819052604090205460ff161515610921576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b60003031111561095a576040513390303180156108fc02916000818181858888f19350505050158015610958573d6000803e3d6000fd5b505b565b3360009081526020819052604090205460ff1615156109b3576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b3360009081526020819052604081205460ff161515610a2b576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038416916370a082319160248083019260209291908290030181600087803b158015610a8c57600080fd5b505af1158015610aa0573d6000803e3d6000fd5b505050506040513d6020811015610ab657600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a0384169163a9059cbb916044808201926020929091908290030181600087803b158015610b2457600080fd5b505af1158015610b38573d6000803e3d6000fd5b505050506040513d6020811015610b4e57600080fd5b50505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610b955782800160ff19823516178555610bc2565b82800160010185558215610bc2579182015b82811115610bc2578235825591602001919060010190610ba7565b50610bce929150610bd2565b5090565b610bec91905b80821115610bce5760008155600101610bd8565b9056004163636573732064656e69656400000000000000000000000000000000000000a165627a7a72305820b616fac70ff0e2fbd9a27497ca014332d02ddb3662909dc2030bd3e624567cb20029", "block_timestamp": 1595463170, "block_number": 2233682, "block_hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "receipt_cumulative_gas_used": 2202696, "receipt_gas_used": 899388, "receipt_contract_address": "0x9ba360663bffc6acc3fce382c288fb5f687f5c2c", "receipt_root": null, "receipt_status": 1, "item_id": "transaction_0x3c3b7096f9a474d378eb065045f403e0d4b3effc37e43d9b52a5b7f00f0455de", "item_timestamp": "2020-07-23T00:12:50Z"} -{"type": "transaction", "hash": "0xdf6876c902061d138de4afaca39fff4d760f358ead9a18d19e9e675586cbc29e", "nonce": 170, "transaction_index": 2, "from_address": "0x2f26d1ddabcdd88aeca3d4f527d4366c37e15c78", "to_address": null, "value": 0, "gas": 7500000, "gas_price": 1000000000, "input": "0x608060409081526007805460ff1990811660019081179092553360009081526020819052929092208054909216179055611a848061003e6000396000f3006080604052600436106101bd5763ffffffff60e060020a6000350416628bfb0081146101c257806301ffc9a71461024c57806306fdde0314610282578063081812fc14610297578063095ea7b3146102cb57806312c0f3d3146102f157806313af403514610306578063151809d514610327578063173825d91461036c57806318160ddd1461038d57806323b872dd146103b45780632f54bf6e146103de5780632f745c59146103ff57806342842e0e146103b457806346195c12146104235780634a393149146104445780634f6ccce71461046e5780635cc852fd146104865780636352211e1461049b5780636b613c8c146104b35780636d70f7ae146104c85780636fac889b146104e95780637065cb48146104fe57806370a082311461051f57806395d89b41146105405780639870d7fe14610555578063a0ef91df14610576578063a22cb4651461058b578063a9059cbb146105b1578063a9b9cd1e146105d5578063ac8a584a146105ea578063b88d4fde1461060b578063c6b72a1f14610423578063c87b56dd14610644578063d56022d71461065c578063d905af5514610671578063e985e9c514610686578063f4f3b200146106ad575b600080fd5b3480156101ce57600080fd5b506101d76106ce565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102115781810151838201526020016101f9565b50505050905090810190601f16801561023e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025857600080fd5b5061026e600160e060020a03196004351661075c565b604080519115158252519081900360200190f35b34801561028e57600080fd5b506101d761098f565b3480156102a357600080fd5b506102af600435610a26565b60408051600160a060020a039092168252519081900360200190f35b3480156102d757600080fd5b506102ef600160a060020a03600435166024356101bd565b005b3480156102fd57600080fd5b506101d7610a2c565b34801561031257600080fd5b506102ef600160a060020a0360043516610a87565b34801561033357600080fd5b506102ef600160a060020a0360048035821691602480359091169160443591606435808201929081013591608435908101910135610b72565b34801561037857600080fd5b506102ef600160a060020a0360043516610c92565b34801561039957600080fd5b506103a2610d0a565b60408051918252519081900360200190f35b3480156103c057600080fd5b506102ef600160a060020a0360043581169060243516604435610d19565b3480156103ea57600080fd5b5061026e600160a060020a0360043516610d3a565b34801561040b57600080fd5b506103a2600160a060020a0360043516602435610d58565b34801561042f57600080fd5b506102ef600160a060020a0360043516610dec565b34801561045057600080fd5b506102ef600160a060020a0360043581169060243516604435610ec5565b34801561047a57600080fd5b506103a2600435610f2c565b34801561049257600080fd5b506102af610f49565b3480156104a757600080fd5b506102af600435610f58565b3480156104bf57600080fd5b5061026e610f63565b3480156104d457600080fd5b5061026e600160a060020a0360043516610f6c565b3480156104f557600080fd5b506103a2610fad565b34801561050a57600080fd5b506102ef600160a060020a0360043516610fb3565b34801561052b57600080fd5b506103a2600160a060020a036004351661108e565b34801561054c57600080fd5b506101d7611186565b34801561056157600080fd5b506102ef600160a060020a03600435166111e7565b34801561058257600080fd5b506102ef6112c5565b34801561059757600080fd5b506102ef600160a060020a036004351660243515156101bd565b3480156105bd57600080fd5b506102ef600160a060020a0360043516602435611357565b3480156105e157600080fd5b506102ef611377565b3480156105f657600080fd5b506102ef600160a060020a03600435166113da565b34801561061757600080fd5b506102ef600160a060020a0360048035821691602480359091169160443591606435908101910135611452565b34801561065057600080fd5b506101d760043561148e565b34801561066857600080fd5b506102af6115a3565b34801561067d57600080fd5b506103a26115b2565b34801561069257600080fd5b5061026e600160a060020a03600435811690602435166115d6565b3480156106b957600080fd5b506102ef600160a060020a03600435166115de565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107545780601f1061072957610100808354040283529160200191610754565b820191906000526020600020905b81548152906001019060200180831161073757829003601f168201915b505050505081565b60007f6466353c00000000000000000000000000000000000000000000000000000000600160e060020a0319831614806107bf57507f80ac58cd00000000000000000000000000000000000000000000000000000000600160e060020a03198316145b8061086d5750604080517f746f6b656e5552492875696e7432353629000000000000000000000000000000815281519081900360110181207f73796d626f6c2829000000000000000000000000000000000000000000000000825282519182900360080182207f6e616d65282900000000000000000000000000000000000000000000000000008352925191829003600601909120600160e060020a03198581169190931890911891909116145b806109415750604080517f746f6b656e4f664f776e65724279496e64657828616464726573732c2075696e81527f7432353629000000000000000000000000000000000000000000000000000000602082015281519081900360250181207f746f6b656e4279496e6465782875696e74323536290000000000000000000000825282519182900360150182207f746f74616c537570706c792829000000000000000000000000000000000000008352925191829003600d01909120600160e060020a03198581169190931890911891909116145b806109895750604080517f737570706f727473496e7465726661636528627974657334290000000000000081529051908190036019019020600160e060020a03198381169116145b92915050565b60058054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a1b5780601f106109f057610100808354040283529160200191610a1b565b820191906000526020600020905b8154815290600101906020018083116109fe57829003601f168201915b505050505090505b90565b50600090565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107545780601f1061072957610100808354040283529160200191610754565b3360009081526020819052604090205460ff161515610ade576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600160a060020a0381161515610b3e576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0316600090815260208190526040808220805460ff19908116600117909155338352912080549091169055565b3360009081526020819052604090205460ff161515610bc9576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b846fffffffffffffffffffffffffffffffff811115610be757600080fd5b60075460ff161515610bf857600080fd5b60028054600160a060020a03808b1673ffffffffffffffffffffffffffffffffffffffff199283161790925560038054928a169290911691909117905570010000000000000000000000000000000086027f800000000000000000000000000000000000000000000000000000000000000017600455610c7a600686866119a0565b50610c87600584846119a0565b505050505050505050565b3360009081526020819052604090205460ff161515610ce9576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19169055565b6000610d1461175e565b905090565b610d3583838360206040519081016040528060008152506117f8565b505050565b600160a060020a031660009081526020819052604090205460ff1690565b60008080600160a060020a0385161515610d7157600080fd5b506000905060015b610d8161175e565b64ffffffffff8216116101bd5784600160a060020a0316610da88264ffffffffff166118ef565b600160a060020a03161415610ddc57838264ffffffffff161415610dd5578064ffffffffff169250610de4565b6001909101905b600101610d79565b505092915050565b3360009081526020819052604090205460ff161515610e43576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b604080517fa22cb465000000000000000000000000000000000000000000000000000000008152336004820152600160248201529051600160a060020a0383169163a22cb46591604480830192600092919082900301818387803b158015610eaa57600080fd5b505af1158015610ebe573d6000803e3d6000fd5b5050505050565b600254600160a060020a03163314610edc57600080fd5b81600160a060020a031683600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000610f3661175e565b8210610f4157600080fd5b506000190190565b600354600160a060020a031681565b6000610989826118ef565b60075460ff1681565b600160a060020a03811660009081526001602052604081205460ff1680610989575050600160a060020a031660009081526020819052604090205460ff1690565b60045481565b3360009081526020819052604090205460ff16151561100a576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600160a060020a038116151561106a576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19166001179055565b60008080600160a060020a03841615156110a757600080fd5b60025460048054604080517f083e9db8000000000000000000000000000000000000000000000000000000008152928301919091525160009550600160a060020a039092169163083e9db89160248082019260209290919082900301818987803b15801561111457600080fd5b505af1158015611128573d6000803e3d6000fd5b505050506040513d602081101561113e57600080fd5b50519150600190505b81811161117f5783600160a060020a0316611161826118ef565b600160a060020a03161415611177576001909201915b600101611147565b5050919050565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a1b5780601f106109f057610100808354040283529160200191610a1b565b3360009081526020819052604090205460ff16151561123e576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600160a060020a038116151561129e576040805160e560020a62461bcd02815260206004820152601560248201527f4e6577206f70657261746f7220697320656d7074790000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b3360009081526020819052604090205460ff16151561131c576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600030311115611355576040513390303180156108fc02916000818181858888f19350505050158015611353573d6000803e3d6000fd5b505b565b61137333838360206040519081016040528060008152506117f8565b5050565b3360009081526020819052604090205460ff1615156113ce576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b6007805460ff19169055565b3360009081526020819052604090205460ff161515611431576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b610ebe85858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437506117f8945050505050565b6060816fffffffffffffffffffffffffffffffff8111156114ae57600080fd5b600354604080517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018690529051600160a060020a039092169163c87b56dd9160248082019260009290919082900301818387803b15801561151457600080fd5b505af1158015611528573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561155157600080fd5b81019080805164010000000081111561156957600080fd5b8201602081018481111561157c57600080fd5b815164010000000081118282018710171561159657600080fd5b5090979650505050505050565b600254600160a060020a031681565b7f800000000000000000000000000000000000000000000000000000000000000081565b600092915050565b3360009081526020819052604081205460ff161515611635576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038416916370a082319160248083019260209291908290030181600087803b15801561169657600080fd5b505af11580156116aa573d6000803e3d6000fd5b505050506040513d60208110156116c057600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a0384169163a9059cbb916044808201926020929091908290030181600087803b15801561172e57600080fd5b505af1158015611742573d6000803e3d6000fd5b505050506040513d602081101561175857600080fd5b50505050565b60025460048054604080517f083e9db80000000000000000000000000000000000000000000000000000000081529283019190915251600092600160a060020a03169163083e9db891602480830192602092919082900301818787803b1580156117c757600080fd5b505af11580156117db573d6000803e3d6000fd5b505050506040513d60208110156117f157600080fd5b5051905090565b600254600160a060020a031663e67403bd858561181486611977565b60405160e060020a63ffffffff8616028152600160a060020a0380851660048301908152908416602483015260448201839052608060648301908152885160848401528851899360a40190602085019080838360005b8381101561188257818101518382015260200161186a565b50505050905090810190601f1680156118af5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156118d157600080fd5b505af11580156118e5573d6000803e3d6000fd5b5050505050505050565b600254600090600160a060020a0316636352211e61190c84611977565b6040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b15801561194557600080fd5b505af1158015611959573d6000803e3d6000fd5b505050506040513d602081101561196f57600080fd5b505192915050565b6000816fffffffffffffffffffffffffffffffff81111561199757600080fd5b50506004541790565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106119e15782800160ff19823516178555611a0e565b82800160010185558215611a0e579182015b82811115611a0e5782358255916020019190600101906119f3565b50611a1a929150611a1e565b5090565b610a2391905b80821115611a1a5760008155600101611a2456004163636573732064656e69656400000000000000000000000000000000000000a165627a7a723058202f1e351db0be1b6bf98387927dfdab79d107c58160e6baaf6290dc9ce6ffbd5d0029", "block_timestamp": 1595463170, "block_number": 2233682, "block_hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "receipt_cumulative_gas_used": 4078405, "receipt_gas_used": 1875709, "receipt_contract_address": "0x1312dd389b08a8a5a60b0b058921386a13699267", "receipt_root": null, "receipt_status": 1, "item_id": "transaction_0xdf6876c902061d138de4afaca39fff4d760f358ead9a18d19e9e675586cbc29e", "item_timestamp": "2020-07-23T00:12:50Z"} -{"type": "transaction", "hash": "0x9b1f198199c164322a0cf74554b2cf9f4454627788ffa770612f25bdec811f71", "nonce": 171, "transaction_index": 3, "from_address": "0x2f26d1ddabcdd88aeca3d4f527d4366c37e15c78", "to_address": null, "value": 0, "gas": 7500000, "gas_price": 1000000000, "input": "0x608060409081526006805460ff199081166001908117909255600060078190553381526020819052929092208054909216179055611256806100426000396000f30060806040526004361061015e5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610163578063095ea7b3146101ed57806313af403514610225578063173825d91461024857806317d70f7c1461026957806318160ddd1461029057806323b872dd146102a55780632f54bf6e146102cf57806346195c12146102f05780634a3931491461031157806362aa38e71461033b5780636b613c8c146103785780636c02a9311461038d5780636d70f7ae146103a25780637065cb48146103c357806370a08231146103e45780637b61c3201461040557806395d89b411461041a5780639870d7fe1461042f578063a0ef91df14610450578063a9059cbb14610465578063a9b9cd1e14610489578063ac8a584a1461049e578063c6b72a1f146102f0578063d56022d7146104bf578063dd62ed3e146104f0578063f4f3b20014610517575b600080fd5b34801561016f57600080fd5b50610178610538565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b257818101518382015260200161019a565b50505050905090810190601f1680156101df5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101f957600080fd5b50610211600160a060020a03600435166024356105cf565b604080519115158252519081900360200190f35b34801561023157600080fd5b50610246600160a060020a03600435166105d6565b005b34801561025457600080fd5b50610246600160a060020a03600435166106c1565b34801561027557600080fd5b5061027e610739565b60408051918252519081900360200190f35b34801561029c57600080fd5b5061027e61073f565b3480156102b157600080fd5b50610211600160a060020a0360043581169060243516604435610745565b3480156102db57600080fd5b50610211600160a060020a036004351661075c565b3480156102fc57600080fd5b50610246600160a060020a036004351661077a565b34801561031d57600080fd5b50610246600160a060020a0360043581169060243516604435610853565b34801561034757600080fd5b5061024660048035600160a060020a03169060248035916044358083019290820135916064359182019101356108ed565b34801561038457600080fd5b506102116109c3565b34801561039957600080fd5b506101786109cc565b3480156103ae57600080fd5b50610211600160a060020a0360043516610a5a565b3480156103cf57600080fd5b50610246600160a060020a0360043516610a9f565b3480156103f057600080fd5b5061027e600160a060020a0360043516610b7a565b34801561041157600080fd5b50610178610c20565b34801561042657600080fd5b50610178610c7b565b34801561043b57600080fd5b50610246600160a060020a0360043516610cdc565b34801561045c57600080fd5b50610246610dba565b34801561047157600080fd5b50610211600160a060020a0360043516602435610e4c565b34801561049557600080fd5b50610246610e62565b3480156104aa57600080fd5b50610246600160a060020a0360043516610ec5565b3480156104cb57600080fd5b506104d4610f3d565b60408051600160a060020a039092168252519081900360200190f35b3480156104fc57600080fd5b5061027e600160a060020a0360043581169060243516610f4c565b34801561052357600080fd5b50610246600160a060020a0360043516610f54565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105c45780601f10610599576101008083540402835291602001916105c4565b820191906000526020600020905b8154815290600101906020018083116105a757829003601f168201915b505050505090505b90565b6000806000fd5b3360009081526020819052604090205460ff16151561062d576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600160a060020a038116151561068d576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0316600090815260208190526040808220805460ff19908116600117909155338352912080549091169055565b3360009081526020819052604090205460ff161515610718576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19169055565b60035481565b60075490565b60006107528484846110d4565b5060019392505050565b600160a060020a031660009081526020819052604090205460ff1690565b3360009081526020819052604090205460ff1615156107d1576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b604080517fa22cb465000000000000000000000000000000000000000000000000000000008152336004820152600160248201529051600160a060020a0383169163a22cb46591604480830192600092919082900301818387803b15801561083857600080fd5b505af115801561084c573d6000803e3d6000fd5b5050505050565b600254600160a060020a0316331461086a57600080fd5b81600160a060020a031683600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3600160a060020a03831615156108ce5760078054820190555b600160a060020a03821615156108e8576007805482900390555b505050565b3360009081526020819052604090205460ff161515610944576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b846fffffffffffffffffffffffffffffffff81111561096257600080fd5b60065460ff16151561097357600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03891617905560038690556109ac60058686611172565b506109b960048484611172565b5050505050505050565b60065460ff1681565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a525780601f10610a2757610100808354040283529160200191610a52565b820191906000526020600020905b815481529060010190602001808311610a3557829003601f168201915b505050505081565b600160a060020a03811660009081526001602052604081205460ff1680610a995750600160a060020a03821660009081526020819052604090205460ff165b92915050565b3360009081526020819052604090205460ff161515610af6576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600160a060020a0381161515610b56576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19166001179055565b600254600354604080517efdd58e000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015260248201939093529051600093929092169162fdd58e9160448082019260209290919082900301818787803b158015610bee57600080fd5b505af1158015610c02573d6000803e3d6000fd5b505050506040513d6020811015610c1857600080fd5b505192915050565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a525780601f10610a2757610100808354040283529160200191610a52565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105c45780601f10610599576101008083540402835291602001916105c4565b3360009081526020819052604090205460ff161515610d33576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600160a060020a0381161515610d93576040805160e560020a62461bcd02815260206004820152601560248201527f4e6577206f70657261746f7220697320656d7074790000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b3360009081526020819052604090205460ff161515610e11576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600030311115610e4a576040513390303180156108fc02916000818181858888f19350505050158015610e48573d6000803e3d6000fd5b505b565b6000610e593384846110d4565b50600192915050565b3360009081526020819052604090205460ff161515610eb9576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b6006805460ff19169055565b3360009081526020819052604090205460ff161515610f1c576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b600254600160a060020a031681565b600092915050565b3360009081526020819052604081205460ff161515610fab576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038416916370a082319160248083019260209291908290030181600087803b15801561100c57600080fd5b505af1158015611020573d6000803e3d6000fd5b505050506040513d602081101561103657600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a0384169163a9059cbb916044808201926020929091908290030181600087803b1580156110a457600080fd5b505af11580156110b8573d6000803e3d6000fd5b505050506040513d60208110156110ce57600080fd5b50505050565b600254600354604080517fb9b8763f000000000000000000000000000000000000000000000000000000008152600160a060020a03878116600483015286811660248301526044820193909352606481018590529051919092169163b9b8763f91608480830192600092919082900301818387803b15801561115557600080fd5b505af1158015611169573d6000803e3d6000fd5b50505050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111b35782800160ff198235161785556111e0565b828001600101855582156111e0579182015b828111156111e05782358255916020019190600101906111c5565b506111ec9291506111f0565b5090565b6105cc91905b808211156111ec57600081556001016111f656004163636573732064656e69656400000000000000000000000000000000000000a165627a7a72305820c95386bee0595589e673bebcdae176fe32c18e1b73a949a93d60185eba1954c30029", "block_timestamp": 1595463170, "block_number": 2233682, "block_hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "receipt_cumulative_gas_used": 5418110, "receipt_gas_used": 1339705, "receipt_contract_address": "0x5d71998541ae48387f3664768deaf7d74898b75b", "receipt_root": null, "receipt_status": 1, "item_id": "transaction_0x9b1f198199c164322a0cf74554b2cf9f4454627788ffa770612f25bdec811f71", "item_timestamp": "2020-07-23T00:12:50Z"} -{"type": "transaction", "hash": "0x84904397d57791700b0fe5dfc8a94fdec1143b257d80a089718d9c568b41b63f", "nonce": 172, "transaction_index": 4, "from_address": "0x2f26d1ddabcdd88aeca3d4f527d4366c37e15c78", "to_address": null, "value": 0, "gas": 7500000, "gas_price": 1000000000, "input": "0x608060409081526002805460ff1990811690915533600090815260208190529190912080549091166001179055614d658061003b6000396000f3006080604052600436106103845763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166303f123e78114610389578063092a5cce146103e05780630b53a1a6146103f75780630bd770001461042e5780630d9124421461045d5780630e49a92e146104a457806313af4035146104c75780631467cfae146104e8578063173825d9146105065780631eda80bd146105275780631fdb15491461056c578063221e2fbd1461059957806323b1a4ba146105cc5780632f54bf6e146105f057806331e5144c1461062557806335a5af92146106435780633667ae26146106645780633f4ba83a146106a75780633fabf52a146106bc5780633fbbaccb146106d957806343afb85d146106f757806346195c121461071b5780634a3b68cc1461073c57806351fa495e1461075d5780635b7633d0146107815780635ba3c4be146107965780635c975abb146107be578063626008f9146107d35780636c19e783146108255780636d70f7ae146108465780637065cb481461086757806372cf67521461088857806375ee8e50146108b857806377b8b1c7146108ef5780637a00e2e31461091c5780637c7feaff1461093d5780637e15e2481461096d5780637efa96ce1461098e578063823495f0146109b65780638456cb59146109d45780638f4ffcb1146109e9578063949bf27d14610a2157806396465d3914610a65578063976bf21914610a8f5780639870d7fe14610ab35780639929b3de14610ad45780639cebb2bd14610af55780639d23c4c714610b0a578063a0ef91df14610b1f578063a5eca68514610b34578063ac8a584a14610b5e578063b536b23514610b7f578063b5866d7e14610ba6578063bc197c8114610bbe578063bd190a2814610c0b578063bd5ec8f214610c32578063bdc1a3a614610c7b578063c337036a14610c96578063c6b72a1f1461071b578063ca5946f714610cb7578063ca77d45414610d30578063ca901ca914610d60578063cda0387514610d84578063d4ae68f214610dae578063d5627d7014610dcf578063d582dd7714610e52578063d7a2996314610e70578063e200d03314610ec5578063e41a7e9d14610ee9578063ea6d4ea914611047578063edbe195414611065578063f000738a1461108f578063f1c92c6f146110a4578063f23a6e61146110c2578063f4c2ff51146110ff578063f4f3b2001461111d578063f9eaee0d1461113e575b600080fd5b34801561039557600080fd5b506103a763ffffffff6004351661115f565b604051808261014080838360005b838110156103cd5781810151838201526020016103b5565b5050505090500191505060405180910390f35b3480156103ec57600080fd5b506103f56111ee565b005b34801561040357600080fd5b506103f56004803563ffffffff1690602480356001608060020a031691604435918201910135611254565b6103f563ffffffff6004351660243560443560ff6064351660843560a435600160a060020a0360c4351661137b565b34801561046957600080fd5b506104726114e9565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff199092168252519081900360200190f35b6103f563ffffffff6004351660243560443560ff6064351660843560a43561151f565b3480156104d357600080fd5b506103f5600160a060020a0360043516611537565b3480156104f457600080fd5b506103f563ffffffff60043516611622565b34801561051257600080fd5b506103f5600160a060020a03600435166116f2565b34801561053357600080fd5b506103f563ffffffff60043516602435604435600160a060020a0360643581169060ff608435169060a4359060c4359060e4351661176a565b6103f563ffffffff60043516600160a060020a036024358116906044359060643581169060843516611b35565b3480156105a557600080fd5b506105ba63ffffffff60043516602435611b96565b60408051918252519081900360200190f35b3480156105d857600080fd5b506103f563ffffffff60043516602435604435611bea565b3480156105fc57600080fd5b50610611600160a060020a0360043516611cb8565b604080519115158252519081900360200190f35b34801561063157600080fd5b5061061163ffffffff60043516611cd6565b34801561064f57600080fd5b506103f5600160a060020a0360043516611d21565b34801561067057600080fd5b5061068b60043560243560ff60443516606435608435611da7565b60408051600160a060020a039092168252519081900360200190f35b3480156106b357600080fd5b506103f5611e26565b6103f563ffffffff60043516600160a060020a0360243516611ec3565b3480156106e557600080fd5b506103f563ffffffff6004351661202b565b34801561070357600080fd5b506103f563ffffffff6004358116906024351661211a565b34801561072757600080fd5b506103f5600160a060020a03600435166121b0565b34801561074857600080fd5b506105ba600160a060020a0360043516612282565b34801561076957600080fd5b506105ba600160a060020a0360043516602435612294565b34801561078d57600080fd5b5061068b61234a565b3480156107a257600080fd5b506103f563ffffffff6004351660243561ffff60443516612359565b3480156107ca57600080fd5b50610611612445565b3480156107df57600080fd5b506107f163ffffffff6004351661244e565b604080519586526020860194909452848401929092526060840152600160a060020a03166080830152519081900360a00190f35b34801561083157600080fd5b506103f5600160a060020a03600435166124ad565b34801561085257600080fd5b50610611600160a060020a0360043516612533565b34801561087357600080fd5b506103f5600160a060020a0360043516612578565b34801561089457600080fd5b506103f563ffffffff600435166001608060020a0360243581169060443516612653565b3480156108c457600080fd5b506108d663ffffffff6004351661275c565b6040805192835260208301919091528051918290030190f35b3480156108fb57600080fd5b506103f5600160a060020a03600435811690602435811690604435166127e7565b34801561092857600080fd5b506103f5600160a060020a0360043516612859565b34801561094957600080fd5b506103f563ffffffff60043516600160a060020a03602435811690604435166128ca565b34801561097957600080fd5b506103f5600160a060020a03600435166128d6565b34801561099a57600080fd5b506103f563ffffffff6004351660243561ffff6044351661295c565b3480156109c257600080fd5b506105ba63ffffffff600435166129a9565b3480156109e057600080fd5b506103f56129c5565b3480156109f557600080fd5b506103f560048035600160a060020a039081169160248035926044351691606435918201910135612a64565b348015610a2d57600080fd5b50610a3f63ffffffff60043516612aae565b604080519485526020850193909352838301919091526060830152519081900360800190f35b348015610a7157600080fd5b506103f563ffffffff600435166001608060020a0360243516612af6565b348015610a9b57600080fd5b506103f5600160a060020a0360043516602435612bd4565b348015610abf57600080fd5b506103f5600160a060020a0360043516612c54565b348015610ae057600080fd5b506108d663ffffffff60043516602435612d32565b348015610b0157600080fd5b5061068b612d99565b348015610b1657600080fd5b5061068b612da8565b348015610b2b57600080fd5b506103f5612db7565b348015610b4057600080fd5b506103f563ffffffff600435166001608060020a0360243516612e49565b348015610b6a57600080fd5b506103f5600160a060020a0360043516612e96565b6103f563ffffffff60043516600160a060020a036024358116906044359060643516612f0e565b348015610bb257600080fd5b506103f5600435612f6f565b348015610bca57600080fd5b50610472600160a060020a03600480358216916024803590911691604435808301929082013591606435808301929082013591608435918201910135613001565b348015610c1757600080fd5b5061061160043560243560ff60443516606435608435613065565b348015610c3e57600080fd5b506103f563ffffffff6004358116906001608060020a0360243581169160443582169160643582169160843582169160a435169060c43516613095565b348015610c8757600080fd5b506105ba600435602435613340565b348015610ca257600080fd5b506108d663ffffffff600435166024356133cc565b348015610cc357600080fd5b50610cd563ffffffff60043516613440565b604080516001608060020a03988916815296881660208801529487168686015292909516606085015263ffffffff90811660808501529390931660a0830152600160a060020a0390921660c082015290519081900360e00190f35b348015610d3c57600080fd5b506103f563ffffffff600435166001608060020a03602435811690604435166134ad565b348015610d6c57600080fd5b506103f563ffffffff600435166024356044356134fa565b348015610d9057600080fd5b506103f563ffffffff600435166001608060020a0360243516613547565b348015610dba57600080fd5b506103f5600160a060020a03600435166135e6565b348015610ddb57600080fd5b50610ded63ffffffff6004351661366c565b604051808361014080838360005b83811015610e13578181015183820152602001610dfb565b5050505090500182600a60200280838360005b83811015610e3e578181015183820152602001610e26565b505050509050019250505060405180910390f35b348015610e5e57600080fd5b50610ded63ffffffff60043516613726565b348015610e7c57600080fd5b506103f563ffffffff6004358116906001608060020a0360243581169160443582169160643582169160843582169160a435169060c43516600160a060020a0360e435166137ce565b348015610ed157600080fd5b506105ba600160a060020a0360043516602435613a79565b348015610ef557600080fd5b50610f0763ffffffff60043516613b1e565b604051808860a080838360005b83811015610f2c578181015183820152602001610f14565b5050505090500187600560200280838360005b83811015610f57578181015183820152602001610f3f565b5050505090500186600560200280838360005b83811015610f82578181015183820152602001610f6a565b5050505090500185600560200280838360005b83811015610fad578181015183820152602001610f95565b5050505090500184600560200280838360005b83811015610fd8578181015183820152602001610fc0565b5050505090500183600560200280838360005b83811015611003578181015183820152602001610feb565b5050505090500182600560200280838360005b8381101561102e578181015183820152602001611016565b5050505090500197505050505050505060405180910390f35b34801561105357600080fd5b506105ba63ffffffff60043516613d90565b34801561107157600080fd5b506103f563ffffffff600435166001608060020a0360243516613da8565b34801561109b57600080fd5b5061068b613e45565b3480156110b057600080fd5b506105ba63ffffffff60043516613e54565b3480156110ce57600080fd5b50610472600160a060020a036004803582169160248035909116916044359160643591608435918201910135613e6f565b34801561110b57600080fd5b506103f563ffffffff60043516613eab565b34801561112957600080fd5b506103f5600160a060020a0360043516613fad565b34801561114a57600080fd5b50610611600160a060020a0360043516614127565b611167614bac565b63ffffffff82166000908152600360205260408120905b60018201548110156111e757600a8110611197576111e7565b600182018054829081106111a757fe5b6000918252602090912060028204015460019091166010026101000a90046001608060020a03168382600a81106111da57fe5b602002015260010161117e565b5050919050565b3360009081526020819052604090205460ff161515611245576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b30311561125157600080fd5b33ff5b600061125f33612533565b15156112a3576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b5060005b818110156113555763ffffffff851660009081526003602090815260409182902082518084019093526001608060020a0387168352600201919081018585858181106112ef57fe5b6001608060020a036020918202939093013583169093525083546001818101865560009586529483902084519101805494909301518216608060020a029082166fffffffffffffffffffffffffffffffff199094169390931716919091179055016112a7565b60405163ffffffff861690600080516020614d1a83398151915290600090a25050505050565b63ffffffff80881660009081526003602052604081206006810154909264010000000090910416156113f7576040805160e560020a62461bcd02815260206004820152601c60248201527f4c6f74206b696e642073686f756c6420626520524154455f5349474e00000000604482015290519081900360640190fd5b6114048888888888613065565b151561140f57600080fd5b42871015611467576040805160e560020a62461bcd02815260206004820152601460248201527f52617465207369676e2069732065787069726564000000000000000000000000604482015290519081900360640190fd5b5060048101546001608060020a03168702348111156114d0576040805160e560020a62461bcd02815260206004820152601960248201527f4e6f7420656e6f7567682076616c75652070726f766964656400000000000000604482015290519081900360640190fd5b6114de89338360008761420e565b505050505050505050565b604080517f697345524331313535546f6b656e526563656976657228290000000000000000815290519081900360180190205b90565b61152f868686868686600061137b565b505050505050565b3360009081526020819052604090205460ff16151561158e576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a03811615156115ee576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0316600090815260208190526040808220805460ff19908116600117909155338352912080549091169055565b600061162d33612533565b1515611671576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b5063ffffffff8116600090815260036020526040812060048101549091608060020a9091046001608060020a031611156116cf576004810180546000196001608060020a03608060020a808404821692909201811690910291161790555b60405163ffffffff831690600080516020614d1a83398151915290600090a25050565b3360009081526020819052604090205460ff161515611749576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19169055565b63ffffffff8089166000908152600360205260408120600681015490928291829164010000000090910416156117ea576040805160e560020a62461bcd02815260206004820152601c60248201527f4c6f74206b696e642073686f756c6420626520524154455f5349474e00000000604482015290519081900360640190fd5b6117f78b8b8a8a8a613065565b151561184d576040805160e560020a62461bcd02815260206004820152601660248201527f5369676e6174757265206973206e6f742076616c696400000000000000000000604482015290519081900360640190fd5b428a10156118a5576040805160e560020a62461bcd02815260206004820152601460248201527f52617465207369676e2069732065787069726564000000000000000000000000604482015290519081900360640190fd5b6118ae89614127565b1515611904576040805160e560020a62461bcd02815260206004820152601460248201527f546f6b656e206973206e6f7420616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b6006840154600160a060020a038a81166801000000000000000090920416141561193d5760048401546001608060020a0316925061199d565b6006840154680100000000000000009004600160a060020a03161561197f5760048401546001608060020a03168b0291506119788983612294565b925061199d565b5060048301546001608060020a03168a0261199a8982612294565b92505b600754604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152600160a060020a039283166024820152604481018690529051918b16916323b872dd916064808201926020929091908290030181600087803b158015611a1257600080fd5b505af1158015611a26573d6000803e3d6000fd5b505050506040513d6020811015611a3c57600080fd5b50511515611a94576040805160e560020a62461bcd02815260206004820152601460248201527f43616e2774207265717565737420746f6b656e73000000000000000000000000604482015290519081900360640190fd5b600754604080517f4e82a391000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301526024820187905291519190921691634e82a39191604480830192600092919082900301818387803b158015611b0257600080fd5b505af1158015611b16573d6000803e3d6000fd5b50505050611b278c33858c8961420e565b505050505050505050505050565b611b3e33612533565b1515611b82576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b611b8f858585858561420e565b5050505050565b63ffffffff8216600090815260036020526040812060018101805484908110611bbb57fe5b6000918252602090912060028204015460019091166010026101000a90046001608060020a0316949350505050565b611bf333612533565b1515611c37576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff83166000908152600360205260408120611c5591614bcc565b63ffffffff8316600081815260036020908152604080832081518083018352878152808401878152825460018181018555938752948620915160029095029091019384555192019190915551600080516020614d1a8339815191529190a2505050565b600160a060020a031660009081526020819052604090205460ff1690565b63ffffffff811660009081526003602052604081206004810154608060020a90046001608060020a031682108015611d1a575060068101544263ffffffff90911610155b9392505050565b3360009081526020819052604090205460ff161515611d78576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b6007805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600080611db48787613340565b604080516000808252602080830180855285905260ff8a16838501526060830189905260808301889052925193945060019360a08084019493601f19830193908390039091019190865af1158015611e10573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b3360009081526020819052604090205460ff161515611e7d576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b60025460ff161515611e8e57600080fd5b6002805460ff191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b63ffffffff821660009081526003602052604090206004810154346001608060020a039091161115611f3f576040805160e560020a62461bcd02815260206004820152601960248201527f4e6f7420656e6f7567682076616c75652070726f766964656400000000000000604482015290519081900360640190fd5b6006810154640100000000900463ffffffff16600114611fa9576040805160e560020a62461bcd02815260206004820152601960248201527f4c6f74206b696e642073686f756c64206265204e415449564500000000000000604482015290519081900360640190fd5b6006810154680100000000000000009004600160a060020a031615612018576040805160e560020a62461bcd02815260206004820152601f60248201527f507269636520696e20746f6b656e206973206e6f7420737570706f7274656400604482015290519081900360640190fd5b61202683333460008661420e565b505050565b61203433612533565b1515612078576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff81166000908152600360205260408120906120988282614bcc565b6120a6600183016000614bed565b6120b4600283016000614c12565b6120c2600383016000614c30565b5060006004820181905560058201819055600690910180547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916905560405163ffffffff831691600080516020614d1a83398151915291a250565b600061212533612533565b1515612169576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b5063ffffffff82811660008181526003602052604080822060068101805463ffffffff19169587169590951790945551600080516020614d1a8339815191529190a2505050565b3360009081526020819052604090205460ff161515612207576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b604080517fa22cb465000000000000000000000000000000000000000000000000000000008152336004820152600160248201529051600160a060020a0383169163a22cb46591604480830192600092919082900301818387803b15801561226e57600080fd5b505af1158015611b8f573d6000803e3d6000fd5b60046020526000908152604090205481565b600754604080517fa01da7b2000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301526001608060020a03851660248301529151600093929092169163a01da7b29160448082019260209290919082900301818787803b15801561230e57600080fd5b505af1158015612322573d6000803e3d6000fd5b505050506040513d602081101561233857600080fd5b50516001608060020a03169392505050565b600854600160a060020a031681565b61236233612533565b15156123a6576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff8316600090815260036020819052604082206123c992910190614c30565b63ffffffff831660008181526003602081815260408084208151808301835288815261ffff888116828601908152929095018054600180820183559188529487209151600290950290910193845590519201805461ffff1916929093169190911790915551600080516020614d1a8339815191529190a2505050565b60025460ff1681565b63ffffffff908116600090815260036020526040902060048101546006909101546001608060020a0380831694608060020a909304169281811692640100000000830490911691680100000000000000009004600160a060020a031690565b3360009081526020819052604090205460ff161515612504576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b6008805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a03811660009081526001602052604081205460ff16806125725750600160a060020a03821660009081526020819052604090205460ff165b92915050565b3360009081526020819052604090205460ff1615156125cf576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a038116151561262f576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19166001179055565b61265c33612533565b15156126a0576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff831660009081526003602052604081206126c491600290910190614c12565b63ffffffff83166000818152600360209081526040808320815180830183526001608060020a03808916825287811682860190815260029093018054600181018255908752948620915191909401805492518516608060020a029185166fffffffffffffffffffffffffffffffff19909316929092179093169290921790915551600080516020614d1a8339815191529190a2505050565b63ffffffff8116600090815260036020526040812060028101548291908210156127e157600281018054600019810190811061279457fe5b6000918252602090912001546002820180546001608060020a0390921694509060001981019081106127c257fe5b600091825260209091200154608060020a90046001608060020a031691505b50915091565b3360009081526020819052604090205460ff16151561283e576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b612847836128d6565b612850826135e6565b61202681611d21565b3360009081526020819052604090205460ff1615156128b0576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a0316600090815260046020526040812055565b6120268383833361443b565b3360009081526020819052604090205460ff16151561292d576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b61296533612533565b15156123c9576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff166000908152600360208190526040909120015490565b3360009081526020819052604090205460ff161515612a1c576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b60025460ff1615612a2c57600080fd5b6002805460ff191660011790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b6000612a9f83838080601f01602080910402602001604051908101604052809392919081815260200183838082843750614761945050505050565b905061152f816000868961443b565b63ffffffff908116600090815260036020526040902060048101546006909101546001608060020a0380831694608060020a9093041692818116926401000000009092041690565b612aff33612533565b1515612b43576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff82166000908152600360205260408120612b6791600190910190614bed565b63ffffffff8216600081815260036020908152604080832060019081018054808301825590855292842060028404018054939091166010026101000a6001608060020a0381810219909416938716029290921790915551600080516020614d1a8339815191529190a25050565b3360009081526020819052604090205460ff161515612c2b576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b60648110612c3857600080fd5b600160a060020a03909116600090815260046020526040902055565b3360009081526020819052604090205460ff161515612cab576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a0381161515612d0b576040805160e560020a62461bcd02815260206004820152601560248201527f4e6577206f70657261746f7220697320656d7074790000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b63ffffffff821660009081526003602052604081208054829190819085908110612d5857fe5b90600052602060002090600202016000015492508060000184815481101515612d7d57fe5b9060005260206000209060020201600101549150509250929050565b600554600160a060020a031681565b600754600160a060020a031681565b3360009081526020819052604090205460ff161515612e0e576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600030311115612e47576040513390303180156108fc02916000818181858888f19350505050158015612e45573d6000803e3d6000fd5b505b565b612e5233612533565b1515612b67576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b3360009081526020819052604090205460ff161515612eed576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b612f1733612533565b1515612f5b576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b612f6984848484600061420e565b50505050565b3360009081526020819052604081205460ff161515612fc6576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b50303181811115612fd45750805b604051339082156108fc029083906000818181858888f19350505050158015612026573d6000803e3d6000fd5b604080517f616372657175636570745f62617463685f657263313135355f746f6b656e732881527f29000000000000000000000000000000000000000000000000000000000000006020820152905190819003602101902098975050505050505050565b600854600090600160a060020a03166130818787878787611da7565b600160a060020a0316149695505050505050565b60006130a033612533565b15156130e4576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff88166000908152600360205260408120906131048282614bcc565b613112600183016000614bed565b613120600283016000614c12565b61312e600383016000614c30565b6004820160006101000a8154906001608060020a0302191690556004820160106101000a8154906001608060020a0302191690556005820160006101000a8154906001608060020a0302191690556005820160106101000a8154906001608060020a0302191690556006820160006101000a81549063ffffffff02191690556006820160046101000a81549063ffffffff02191690556006820160086101000a815490600160a060020a0302191690555050600360008963ffffffff1663ffffffff1681526020019081526020016000209050868160040160006101000a8154816001608060020a0302191690836001608060020a03160217905550858160040160106101000a8154816001608060020a0302191690836001608060020a03160217905550848160060160006101000a81548163ffffffff021916908363ffffffff160217905550838160050160006101000a8154816001608060020a0302191690836001608060020a03160217905550828160050160106101000a8154816001608060020a0302191690836001608060020a03160217905550818160060160046101000a81548163ffffffff021916908363ffffffff16021790555060008160060160086101000a815481600160a060020a030219169083600160a060020a031602179055508763ffffffff16600080516020614d1a83398151915260405160405180910390a25050505050505050565b6000828260405160200180838152602001828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083106133995780518252601f19909201916020918201910161337a565b5181516020939093036101000a600019018019909116921691909117905260405192018290039091209695505050505050565b63ffffffff821660009081526003602081905260408220908101805483929190859081106133f657fe5b9060005260206000209060020201600001549250806003018481548110151561341b57fe5b6000918252602090912060016002909202010154929561ffff90931694509192505050565b6003602052600090815260409020600481015460058201546006909201546001608060020a0380831693608060020a938490048216938282169391049091169063ffffffff80821691640100000000810490911690680100000000000000009004600160a060020a031687565b6134b633612533565b15156126c4576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b61350333612533565b1515611c55576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b61355033612533565b1515613594576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff821660008181526003602052604080822060040180546fffffffffffffffffffffffffffffffff19166001608060020a03861617905551600080516020614d1a8339815191529190a25050565b3360009081526020819052604090205460ff16151561363d576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b613674614bac565b61367c614bac565b63ffffffff83166000908152600360205260408120905b600382015481101561371f57600a81106136ac5761371f565b600382018054829081106136bc57fe5b60009182526020909120600290910201548482600a81106136d957fe5b6020020152600382018054829081106136ee57fe5b600091825260209091206001600290920201015461ffff168382600a811061371257fe5b6020020152600101613693565b5050915091565b61372e614bac565b613736614bac565b63ffffffff83166000908152600360205260408120905b815481101561371f57600a81106137635761371f565b815482908290811061377157fe5b60009182526020909120600290910201548482600a811061378e57fe5b602002015281548290829081106137a157fe5b9060005260206000209060020201600101548382600a811015156137c157fe5b602002015260010161374d565b60006137d933612533565b151561381d576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff891660009081526003602052604081209061383d8282614bcc565b61384b600183016000614bed565b613859600283016000614c12565b613867600383016000614c30565b6004820160006101000a8154906001608060020a0302191690556004820160106101000a8154906001608060020a0302191690556005820160006101000a8154906001608060020a0302191690556005820160106101000a8154906001608060020a0302191690556006820160006101000a81549063ffffffff02191690556006820160046101000a81549063ffffffff02191690556006820160086101000a815490600160a060020a0302191690555050600360008a63ffffffff1663ffffffff1681526020019081526020016000209050878160040160006101000a8154816001608060020a0302191690836001608060020a03160217905550868160040160106101000a8154816001608060020a0302191690836001608060020a03160217905550858160060160006101000a81548163ffffffff021916908363ffffffff160217905550848160050160006101000a8154816001608060020a0302191690836001608060020a03160217905550838160050160106101000a8154816001608060020a0302191690836001608060020a03160217905550828160060160046101000a81548163ffffffff021916908363ffffffff160217905550818160060160086101000a815481600160a060020a030219169083600160a060020a031602179055508863ffffffff16600080516020614d1a83398151915260405160405180910390a2505050505050505050565b600754604080517fe200d033000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152602482018590529151600093929092169163e200d0339160448082019260209290919082900301818787803b158015613aeb57600080fd5b505af1158015613aff573d6000803e3d6000fd5b505050506040513d6020811015613b1557600080fd5b50519392505050565b613b26614c51565b613b2e614c51565b613b36614c51565b613b3e614c51565b613b46614c51565b613b4e614c51565b613b56614c51565b63ffffffff88166000908152600360205260408120905b8154811015613bee5760058110613b8357613bee565b8154829082908110613b9157fe5b6000918252602090912060029091020154898260058110613bae57fe5b60200201528154829082908110613bc157fe5b9060005260206000209060020201600101548882600581101515613be157fe5b6020020152600101613b6d565b5060005b6001820154811015613c5b5760058110613c0b57613c5b565b60018201805482908110613c1b57fe5b6000918252602090912060028204015460019091166010026101000a90046001608060020a0316878260058110613c4e57fe5b6020020152600101613bf2565b5060005b6002820154811015613cf35760058110613c7857613cf3565b60028201805482908110613c8857fe5b6000918252602090912001546001608060020a0316868260058110613ca957fe5b602002015260028201805482908110613cbe57fe5b600091825260209091200154608060020a90046001608060020a0316858260058110613ce657fe5b6020020152600101613c5f565b5060005b6003820154811015613d835760058110613d1057613d83565b60038201805482908110613d2057fe5b6000918252602090912060029091020154848260058110613d3d57fe5b602002015260038201805482908110613d5257fe5b600091825260209091206001600290920201015461ffff16838260058110613d7657fe5b6020020152600101613cf7565b5050919395979092949650565b63ffffffff1660009081526003602052604090205490565b6000613db333612533565b1515613df7576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b5063ffffffff82166000818152600360205260408082206004810180546001608060020a03808816608060020a0291161790559051909291600080516020614d1a83398151915291a2505050565b600654600160a060020a031681565b63ffffffff1660009081526003602052604090206001015490565b604080517f6163636570745f657263313135355f746f6b656e732829000000000000000000815290519081900360170190209695505050505050565b3360009081526020819052604090205460ff161515613f02576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff81166000908152600360205260408120613f2091614bcc565b63ffffffff81166000908152600360205260408120613f4491600190910190614bed565b63ffffffff81166000908152600360205260408120613f6891600290910190614c12565b63ffffffff811660009081526003602081905260408220613f8b92910190614c30565b60405163ffffffff821690600080516020614d1a83398151915290600090a250565b3360009081526020819052604081205460ff161515614004576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038416916370a082319160248083019260209291908290030181600087803b15801561406557600080fd5b505af1158015614079573d6000803e3d6000fd5b505050506040513d602081101561408f57600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a0384169163a9059cbb916044808201926020929091908290030181600087803b1580156140fd57600080fd5b505af1158015614111573d6000803e3d6000fd5b505050506040513d6020811015612f6957600080fd5b60408051600180825281830190925260009160609190602080830190803883390190505090508281600081518110151561415d57fe5b600160a060020a0392831660209182029092018101919091526007546040517f90a308a50000000000000000000000000000000000000000000000000000000081526004810183815285516024830152855192909416936390a308a593869391928392604490910191858101910280838360005b838110156141e95781810151838201526020016141d1565b5050505090500192505050602060405180830381600087803b158015613aeb57600080fd5b600254600090819060ff161561422357600080fd5b63ffffffff87166000908152600360205260409020915061424387611cd6565b1515614299576040805160e560020a62461bcd02815260206004820152601460248201527f4c6f74206973206e6f7420617661696c61626c65000000000000000000000000604482015290519081900360640190fd5b600160a060020a03831615156143025760408051868152600160a060020a03868116602083015282518187169363ffffffff8c1693928b16927ff19a620368d88a8241049ffd47e36ab3129111bee60de13892bcd2165ec02fa6929081900390910190a4614355565b83600160a060020a03168763ffffffff1687600160a060020a03167fea6da5723a77b4662879f2bd97620ea296eb01d106c59a101492b7a1f76ad1f3886040518082815260200191505060405180910390a45b60048201805460058401546fffffffffffffffffffffffffffffffff196001608060020a03808416608060020a948590048216600019018216850217828116620f42408386169284169283020490910182161791821693909204821690821601161790556143c38287614825565b600160a060020a03831660009081526004602052604081205411156144325750600160a060020a038216600081815260046020526040808220549051606491880291909104929183156108fc02918491818181858888f19350505050158015614430573d6000803e3d6000fd5b505b50505050505050565b63ffffffff80851660009081526003602052604081206006810154909282918291640100000000909104166001146144bd576040805160e560020a62461bcd02815260206004820152601960248201527f4c6f74206b696e642073686f756c64206265204e415449564500000000000000604482015290519081900360640190fd5b6144c686614127565b151561451c576040805160e560020a62461bcd02815260206004820152601460248201527f546f6b656e206973206e6f7420616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b6006840154600160a060020a03878116680100000000000000009092041614156145555760048401546001608060020a031692506145d5565b6006840154680100000000000000009004600160a060020a0316156145b957600684015460048501546145a691680100000000000000009004600160a060020a0316906001608060020a0316613a79565b91506145b28683612294565b92506145d5565b5060048301546001608060020a03166145d28682612294565b92505b600754604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a0388811660048301529283166024820152604481018690529051918816916323b872dd916064808201926020929091908290030181600087803b15801561464c57600080fd5b505af1158015614660573d6000803e3d6000fd5b505050506040513d602081101561467657600080fd5b505115156146ce576040805160e560020a62461bcd02815260206004820152601460248201527f43616e2774207265717565737420746f6b656e73000000000000000000000000604482015290519081900360640190fd5b600754604080517f4e82a391000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301526024820187905291519190921691634e82a39191604480830192600092919082900301818387803b15801561473c57600080fd5b505af1158015614750573d6000803e3d6000fd5b50505050614430888685898b61420e565b805160009060041461477257600080fd5b81600381518110151561478157fe5b90602001015160f860020a900460f860020a0260f860020a900462100000028260028151811015156147af57fe5b90602001015160f860020a900460f860020a0260f860020a900462010000028360018151811015156147dd57fe5b90602001015160f860020a900460f860020a0260f860020a90046101000284600081518110151561480a57fe5b016020015160f860020a908190048102040101019050919050565b60005b82548110156148615761485982846000018381548110151561484657fe5b9060005260206000209060020201614949565b600101614828565b6002830154600010156148ae57600283018054614897918491600019810190811061488857fe5b906000526020600020016149d9565b600283018054906148ac906000198301614c70565b505b5060005b6001830154811015614909576149018284600101838154811015156148d357fe5b90600052602060002090600291828204019190066010029054906101000a90046001608060020a0316614ab5565b6001016148b2565b5060005b60038301548110156120265761494182846003018381548110151561492e57fe5b9060005260206000209060020201614b2b565b60010161490d565b60055481546001830154604080517fa11acd330000000000000000000000000000000000000000000000000000000081526004810193909352600160a060020a03868116602485015260448401929092525192169163a11acd339160648082019260009290919082900301818387803b1580156149c557600080fd5b505af115801561152f573d6000803e3d6000fd5b8054600554604080517ff242432a000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a0386811660248301526001608060020a03808616608060020a908102960416949094177f800000000000000000000000000000000000000000000000000000000000000017604482018190526001606483015260a06084830152600060a48301819052925190949093169263f242432a9260e48084019391929182900301818387803b158015614aa157600080fd5b505af1158015614432573d6000803e3d6000fd5b600554604080517fab06b7780000000000000000000000000000000000000000000000000000000081526001608060020a0384166004820152600160a060020a0385811660248301529151919092169163ab06b77891604480830192600092919082900301818387803b1580156149c557600080fd5b60065481546001830154604080517f7895fe98000000000000000000000000000000000000000000000000000000008152600481019390935261ffff9091166024830152600160a060020a0385811660448401529051921691637895fe98916064808201926020929091908290030181600087803b1580156140fd57600080fd5b61014060405190810160405280600a906020820280388339509192915050565b5080546000825560020290600052602060002090810190612e459190614c94565b508054600082556001016002900490600052602060002090810190612e459190614cb8565b5080546000825590600052602060002090810190612e459190614cb8565b5080546000825560020290600052602060002090810190612e459190614cd2565b60a0604051908101604052806005906020820280388339509192915050565b81548183558181111561202657600083815260209020612026918101908301614cb8565b61151c91905b80821115614cb45760008082556001820155600201614c9a565b5090565b61151c91905b80821115614cb45760008155600101614cbe565b61151c91905b80821115614cb4576000815560018101805461ffff19169055600201614cd856004163636573732064656e6965640000000000000000000000000000000000000023648ba1cc05a0fef4ddba045c03a643ed516ad9bf7fb7db0c850f3c9a092967a165627a7a72305820c76ba0d01f746c5c7f0afcb32c562697b778019d3a5a3dbc1469070c4383ff650029", "block_timestamp": 1595463170, "block_number": 2233682, "block_hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "receipt_cumulative_gas_used": 10735866, "receipt_gas_used": 5317756, "receipt_contract_address": "0xe346cd49bc4ecb75cfd2452eb70f26ec29e43bbd", "receipt_root": null, "receipt_status": 1, "item_id": "transaction_0x84904397d57791700b0fe5dfc8a94fdec1143b257d80a089718d9c568b41b63f", "item_timestamp": "2020-07-23T00:12:50Z"} +{"type": "transaction", "hash": "0xbdf0c6164c3ec02ba22b9966c9dc38525cded727a0f2e3dc936462cdd8d9129c", "nonce": 168, "transaction_index": 0, "from_address": "0x2f26d1ddabcdd88aeca3d4f527d4366c37e15c78", "to_address": null, "value": 0, "gas": 7500000, "gas_price": 1000000000, "input": "0x60e0604052602360808190527f68747470733a2f2f626c6f636b636861696e6375746965732e636f6d2f746f6b60a09081527f656e2f000000000000000000000000000000000000000000000000000000000060c052620000649160029190620000a6565b506040805160208101918290526000908190526200008591600391620000a6565b50336000908152602081905260409020805460ff191660011790556200014b565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000e957805160ff191683800117855562000119565b8280016001018555821562000119579182015b8281111562000119578251825591602001919060010190620000fc565b50620001279291506200012b565b5090565b6200014891905b8082111562000127576000815560010162000132565b90565b611137806200015b6000396000f3006080604052600436106100da5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166313af403581146100df578063173825d9146101025780632f54bf6e1461012357806346195c12146101585780636d70f7ae146101795780637065cb481461019a57806379edfa7d146101bb5780639870d7fe146101e7578063a0ef91df14610208578063ac8a584a1461021d578063c6b72a1f14610158578063c7047fa71461023e578063c87b56dd146102c8578063d4d6d366146102e0578063f4f3b200146102f5575b600080fd5b3480156100eb57600080fd5b50610100600160a060020a0360043516610316565b005b34801561010e57600080fd5b50610100600160a060020a0360043516610401565b34801561012f57600080fd5b50610144600160a060020a0360043516610479565b604080519115158252519081900360200190f35b34801561016457600080fd5b50610100600160a060020a0360043516610497565b34801561018557600080fd5b50610144600160a060020a0360043516610570565b3480156101a657600080fd5b50610100600160a060020a03600435166105b5565b3480156101c757600080fd5b506101006024600480358281019290820135918135918201910135610690565b3480156101f357600080fd5b50610100600160a060020a0360043516610700565b34801561021457600080fd5b506101006107de565b34801561022957600080fd5b50610100600160a060020a0360043516610870565b34801561024a57600080fd5b506102536108e8565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561028d578181015183820152602001610275565b50505050905090810190601f1680156102ba5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156102d457600080fd5b50610253600435610973565b3480156102ec57600080fd5b50610253610a88565b34801561030157600080fd5b50610100600160a060020a0360043516610ae3565b3360009081526020819052604090205460ff16151561036d576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b600160a060020a03811615156103cd576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0316600090815260208190526040808220805460ff19908116600117909155338352912080549091169055565b3360009081526020819052604090205460ff161515610458576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19169055565b600160a060020a031660009081526020819052604090205460ff1690565b3360009081526020819052604090205460ff1615156104ee576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b604080517fa22cb465000000000000000000000000000000000000000000000000000000008152336004820152600160248201529051600160a060020a0383169163a22cb46591604480830192600092919082900301818387803b15801561055557600080fd5b505af1158015610569573d6000803e3d6000fd5b5050505050565b600160a060020a03811660009081526001602052604081205460ff16806105af5750600160a060020a03821660009081526020819052604090205460ff165b92915050565b3360009081526020819052604090205460ff16151561060c576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b600160a060020a038116151561066c576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19166001179055565b3360009081526020819052604090205460ff1615156106e7576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b6106f360028585611039565b5061056960038383611039565b3360009081526020819052604090205460ff161515610757576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b600160a060020a03811615156107b7576040805160e560020a62461bcd02815260206004820152601560248201527f4e6577206f70657261746f7220697320656d7074790000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b3360009081526020819052604090205460ff161515610835576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b60003031111561086e576040513390303180156108fc02916000818181858888f1935050505015801561086c573d6000803e3d6000fd5b505b565b3360009081526020819052604090205460ff1615156108c7576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b6002805460408051602060018416156101000260001901909316849004601f8101849004840282018401909252818152929183018282801561096b5780601f106109405761010080835404028352916020019161096b565b820191906000526020600020905b81548152906001019060200180831161094e57829003601f168201915b505050505081565b60028054604080516020601f600019610100600187161502019094168590049384018190048102820181019092528281526060936105af93610a0a93830182828015610a005780601f106109d557610100808354040283529160200191610a00565b820191906000526020600020905b8154815290600101906020018083116109e357829003601f168201915b5050505050610c63565b610a83610a1c610a21610a1c87610c89565b610c63565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152610a839390929091830182828015610a005780601f106109d557610100808354040283529160200191610a00565b610f7e565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561096b5780601f106109405761010080835404028352916020019161096b565b3360009081526020819052604081205460ff161515610b3a576040805160e560020a62461bcd02815260206004820152600d60248201526000805160206110ec833981519152604482015290519081900360640190fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038416916370a082319160248083019260209291908290030181600087803b158015610b9b57600080fd5b505af1158015610baf573d6000803e3d6000fd5b505050506040513d6020811015610bc557600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a0384169163a9059cbb916044808201926020929091908290030181600087803b158015610c3357600080fd5b505af1158015610c47573d6000803e3d6000fd5b505050506040513d6020811015610c5d57600080fd5b50505050565b610c6b6110b7565b50604080518082019091528151815260209182019181019190915290565b6040805160208101909152600080825260609190825b5050604080516020810190915260008152600a808504940690811515610cf9575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160011415610d3c575060408051808201909152600181527f31000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160021415610d7f575060408051808201909152600181527f32000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160031415610dc2575060408051808201909152600181527f33000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160041415610e05575060408051808201909152600181527f34000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160051415610e48575060408051808201909152600181527f35000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160061415610e8b575060408051808201909152600181527f36000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160071415610ece575060408051808201909152600181527f37000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160081415610f11575060408051808201909152600181527f38000000000000000000000000000000000000000000000000000000000000006020820152610f50565b8160091415610f50575060408051808201909152600181527f390000000000000000000000000000000000000000000000000000000000000060208201525b610f65610f5c82610c63565b610a8385610c63565b92506000851115610f7557610c9f565b50909392505050565b606080600083600001518560000151016040519080825280601f01601f191660200182016040528015610fbb578160200160208202803883390190505b509150602082019050610fd78186602001518760000151610ff5565b845160208501518551610fed9284019190610ff5565b509392505050565b60005b6020821061101a578251845260209384019390920191601f1990910190610ff8565b50905182516020929092036101000a6000190180199091169116179052565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061107a5782800160ff198235161785556110a7565b828001600101855582156110a7579182015b828111156110a757823582559160200191906001019061108c565b506110b39291506110ce565b5090565b604080518082019091526000808252602082015290565b6110e891905b808211156110b357600081556001016110d4565b9056004163636573732064656e69656400000000000000000000000000000000000000a165627a7a723058208ecfd0139dc847e5853d9a8989c26497c24ab7a8aabc2c2d7b97c1c42fb005d60029", "block_timestamp": 1595463170, "block_number": 2233682, "block_hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "max_fee_per_gas": null, "max_priority_fee_per_gas": null, "transaction_type": 0, "receipt_cumulative_gas_used": 1303308, "receipt_gas_used": 1303308, "receipt_contract_address": "0x3afd673cd8406ef33812abd669b6f7d0f9ba2957", "receipt_root": null, "receipt_status": 1, "receipt_effective_gas_price": 1000000000, "item_id": "transaction_0xbdf0c6164c3ec02ba22b9966c9dc38525cded727a0f2e3dc936462cdd8d9129c", "item_timestamp": "2020-07-23T00:12:50Z"} +{"type": "transaction", "hash": "0x3c3b7096f9a474d378eb065045f403e0d4b3effc37e43d9b52a5b7f00f0455de", "nonce": 169, "transaction_index": 1, "from_address": "0x2f26d1ddabcdd88aeca3d4f527d4366c37e15c78", "to_address": null, "value": 0, "gas": 7500000, "gas_price": 1000000000, "input": "0x60806040908152336000908152602081905220805460ff19166001179055610c3b8061002c6000396000f3006080604052600436106100cf5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630e89341c81146100d457806312180ee21461016157806313af403514610176578063173825d9146101995780632f54bf6e146101ba57806346195c12146101ef5780636d70f7ae146102105780637065cb48146102315780639870d7fe146102525780639b642de114610273578063a0ef91df14610293578063ac8a584a146102a8578063c6b72a1f146101ef578063f4f3b200146102c9575b600080fd5b3480156100e057600080fd5b506100ec6004356102ea565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561012657818101518382015260200161010e565b50505050905090810190601f1680156101535780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561016d57600080fd5b506100ec61037f565b34801561018257600080fd5b50610197600160a060020a036004351661040a565b005b3480156101a557600080fd5b50610197600160a060020a03600435166104f5565b3480156101c657600080fd5b506101db600160a060020a036004351661056d565b604080519115158252519081900360200190f35b3480156101fb57600080fd5b50610197600160a060020a036004351661058b565b34801561021c57600080fd5b506101db600160a060020a0360043516610664565b34801561023d57600080fd5b50610197600160a060020a03600435166106a9565b34801561025e57600080fd5b50610197600160a060020a0360043516610784565b34801561027f57600080fd5b506101976004803560248101910135610862565b34801561029f57600080fd5b506101976108ca565b3480156102b457600080fd5b50610197600160a060020a036004351661095c565b3480156102d557600080fd5b50610197600160a060020a03600435166109d4565b60028054604080516020601f60001961010060018716150201909416859004938401819004810282018101909252828152606093909290918301828280156103735780601f1061034857610100808354040283529160200191610373565b820191906000526020600020905b81548152906001019060200180831161035657829003601f168201915b50505050509050919050565b6002805460408051602060018416156101000260001901909316849004601f810184900484028201840190925281815292918301828280156104025780601f106103d757610100808354040283529160200191610402565b820191906000526020600020905b8154815290600101906020018083116103e557829003601f168201915b505050505081565b3360009081526020819052604090205460ff161515610461576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b600160a060020a03811615156104c1576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0316600090815260208190526040808220805460ff19908116600117909155338352912080549091169055565b3360009081526020819052604090205460ff16151561054c576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19169055565b600160a060020a031660009081526020819052604090205460ff1690565b3360009081526020819052604090205460ff1615156105e2576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b604080517fa22cb465000000000000000000000000000000000000000000000000000000008152336004820152600160248201529051600160a060020a0383169163a22cb46591604480830192600092919082900301818387803b15801561064957600080fd5b505af115801561065d573d6000803e3d6000fd5b5050505050565b600160a060020a03811660009081526001602052604081205460ff16806106a35750600160a060020a03821660009081526020819052604090205460ff165b92915050565b3360009081526020819052604090205460ff161515610700576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b600160a060020a0381161515610760576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19166001179055565b3360009081526020819052604090205460ff1615156107db576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b600160a060020a038116151561083b576040805160e560020a62461bcd02815260206004820152601560248201527f4e6577206f70657261746f7220697320656d7074790000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b3360009081526020819052604090205460ff1615156108b9576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b6108c560028383610b54565b505050565b3360009081526020819052604090205460ff161515610921576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b60003031111561095a576040513390303180156108fc02916000818181858888f19350505050158015610958573d6000803e3d6000fd5b505b565b3360009081526020819052604090205460ff1615156109b3576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b3360009081526020819052604081205460ff161515610a2b576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020610bf0833981519152604482015290519081900360640190fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038416916370a082319160248083019260209291908290030181600087803b158015610a8c57600080fd5b505af1158015610aa0573d6000803e3d6000fd5b505050506040513d6020811015610ab657600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a0384169163a9059cbb916044808201926020929091908290030181600087803b158015610b2457600080fd5b505af1158015610b38573d6000803e3d6000fd5b505050506040513d6020811015610b4e57600080fd5b50505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610b955782800160ff19823516178555610bc2565b82800160010185558215610bc2579182015b82811115610bc2578235825591602001919060010190610ba7565b50610bce929150610bd2565b5090565b610bec91905b80821115610bce5760008155600101610bd8565b9056004163636573732064656e69656400000000000000000000000000000000000000a165627a7a72305820b616fac70ff0e2fbd9a27497ca014332d02ddb3662909dc2030bd3e624567cb20029", "block_timestamp": 1595463170, "block_number": 2233682, "block_hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "max_fee_per_gas": null, "max_priority_fee_per_gas": null, "transaction_type": 0, "receipt_cumulative_gas_used": 2202696, "receipt_gas_used": 899388, "receipt_contract_address": "0x9ba360663bffc6acc3fce382c288fb5f687f5c2c", "receipt_root": null, "receipt_status": 1, "receipt_effective_gas_price": 1000000000, "item_id": "transaction_0x3c3b7096f9a474d378eb065045f403e0d4b3effc37e43d9b52a5b7f00f0455de", "item_timestamp": "2020-07-23T00:12:50Z"} +{"type": "transaction", "hash": "0xdf6876c902061d138de4afaca39fff4d760f358ead9a18d19e9e675586cbc29e", "nonce": 170, "transaction_index": 2, "from_address": "0x2f26d1ddabcdd88aeca3d4f527d4366c37e15c78", "to_address": null, "value": 0, "gas": 7500000, "gas_price": 1000000000, "input": "0x608060409081526007805460ff1990811660019081179092553360009081526020819052929092208054909216179055611a848061003e6000396000f3006080604052600436106101bd5763ffffffff60e060020a6000350416628bfb0081146101c257806301ffc9a71461024c57806306fdde0314610282578063081812fc14610297578063095ea7b3146102cb57806312c0f3d3146102f157806313af403514610306578063151809d514610327578063173825d91461036c57806318160ddd1461038d57806323b872dd146103b45780632f54bf6e146103de5780632f745c59146103ff57806342842e0e146103b457806346195c12146104235780634a393149146104445780634f6ccce71461046e5780635cc852fd146104865780636352211e1461049b5780636b613c8c146104b35780636d70f7ae146104c85780636fac889b146104e95780637065cb48146104fe57806370a082311461051f57806395d89b41146105405780639870d7fe14610555578063a0ef91df14610576578063a22cb4651461058b578063a9059cbb146105b1578063a9b9cd1e146105d5578063ac8a584a146105ea578063b88d4fde1461060b578063c6b72a1f14610423578063c87b56dd14610644578063d56022d71461065c578063d905af5514610671578063e985e9c514610686578063f4f3b200146106ad575b600080fd5b3480156101ce57600080fd5b506101d76106ce565b6040805160208082528351818301528351919283929083019185019080838360005b838110156102115781810151838201526020016101f9565b50505050905090810190601f16801561023e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561025857600080fd5b5061026e600160e060020a03196004351661075c565b604080519115158252519081900360200190f35b34801561028e57600080fd5b506101d761098f565b3480156102a357600080fd5b506102af600435610a26565b60408051600160a060020a039092168252519081900360200190f35b3480156102d757600080fd5b506102ef600160a060020a03600435166024356101bd565b005b3480156102fd57600080fd5b506101d7610a2c565b34801561031257600080fd5b506102ef600160a060020a0360043516610a87565b34801561033357600080fd5b506102ef600160a060020a0360048035821691602480359091169160443591606435808201929081013591608435908101910135610b72565b34801561037857600080fd5b506102ef600160a060020a0360043516610c92565b34801561039957600080fd5b506103a2610d0a565b60408051918252519081900360200190f35b3480156103c057600080fd5b506102ef600160a060020a0360043581169060243516604435610d19565b3480156103ea57600080fd5b5061026e600160a060020a0360043516610d3a565b34801561040b57600080fd5b506103a2600160a060020a0360043516602435610d58565b34801561042f57600080fd5b506102ef600160a060020a0360043516610dec565b34801561045057600080fd5b506102ef600160a060020a0360043581169060243516604435610ec5565b34801561047a57600080fd5b506103a2600435610f2c565b34801561049257600080fd5b506102af610f49565b3480156104a757600080fd5b506102af600435610f58565b3480156104bf57600080fd5b5061026e610f63565b3480156104d457600080fd5b5061026e600160a060020a0360043516610f6c565b3480156104f557600080fd5b506103a2610fad565b34801561050a57600080fd5b506102ef600160a060020a0360043516610fb3565b34801561052b57600080fd5b506103a2600160a060020a036004351661108e565b34801561054c57600080fd5b506101d7611186565b34801561056157600080fd5b506102ef600160a060020a03600435166111e7565b34801561058257600080fd5b506102ef6112c5565b34801561059757600080fd5b506102ef600160a060020a036004351660243515156101bd565b3480156105bd57600080fd5b506102ef600160a060020a0360043516602435611357565b3480156105e157600080fd5b506102ef611377565b3480156105f657600080fd5b506102ef600160a060020a03600435166113da565b34801561061757600080fd5b506102ef600160a060020a0360048035821691602480359091169160443591606435908101910135611452565b34801561065057600080fd5b506101d760043561148e565b34801561066857600080fd5b506102af6115a3565b34801561067d57600080fd5b506103a26115b2565b34801561069257600080fd5b5061026e600160a060020a03600435811690602435166115d6565b3480156106b957600080fd5b506102ef600160a060020a03600435166115de565b6005805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107545780601f1061072957610100808354040283529160200191610754565b820191906000526020600020905b81548152906001019060200180831161073757829003601f168201915b505050505081565b60007f6466353c00000000000000000000000000000000000000000000000000000000600160e060020a0319831614806107bf57507f80ac58cd00000000000000000000000000000000000000000000000000000000600160e060020a03198316145b8061086d5750604080517f746f6b656e5552492875696e7432353629000000000000000000000000000000815281519081900360110181207f73796d626f6c2829000000000000000000000000000000000000000000000000825282519182900360080182207f6e616d65282900000000000000000000000000000000000000000000000000008352925191829003600601909120600160e060020a03198581169190931890911891909116145b806109415750604080517f746f6b656e4f664f776e65724279496e64657828616464726573732c2075696e81527f7432353629000000000000000000000000000000000000000000000000000000602082015281519081900360250181207f746f6b656e4279496e6465782875696e74323536290000000000000000000000825282519182900360150182207f746f74616c537570706c792829000000000000000000000000000000000000008352925191829003600d01909120600160e060020a03198581169190931890911891909116145b806109895750604080517f737570706f727473496e7465726661636528627974657334290000000000000081529051908190036019019020600160e060020a03198381169116145b92915050565b60058054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a1b5780601f106109f057610100808354040283529160200191610a1b565b820191906000526020600020905b8154815290600101906020018083116109fe57829003601f168201915b505050505090505b90565b50600090565b6006805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107545780601f1061072957610100808354040283529160200191610754565b3360009081526020819052604090205460ff161515610ade576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600160a060020a0381161515610b3e576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0316600090815260208190526040808220805460ff19908116600117909155338352912080549091169055565b3360009081526020819052604090205460ff161515610bc9576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b846fffffffffffffffffffffffffffffffff811115610be757600080fd5b60075460ff161515610bf857600080fd5b60028054600160a060020a03808b1673ffffffffffffffffffffffffffffffffffffffff199283161790925560038054928a169290911691909117905570010000000000000000000000000000000086027f800000000000000000000000000000000000000000000000000000000000000017600455610c7a600686866119a0565b50610c87600584846119a0565b505050505050505050565b3360009081526020819052604090205460ff161515610ce9576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19169055565b6000610d1461175e565b905090565b610d3583838360206040519081016040528060008152506117f8565b505050565b600160a060020a031660009081526020819052604090205460ff1690565b60008080600160a060020a0385161515610d7157600080fd5b506000905060015b610d8161175e565b64ffffffffff8216116101bd5784600160a060020a0316610da88264ffffffffff166118ef565b600160a060020a03161415610ddc57838264ffffffffff161415610dd5578064ffffffffff169250610de4565b6001909101905b600101610d79565b505092915050565b3360009081526020819052604090205460ff161515610e43576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b604080517fa22cb465000000000000000000000000000000000000000000000000000000008152336004820152600160248201529051600160a060020a0383169163a22cb46591604480830192600092919082900301818387803b158015610eaa57600080fd5b505af1158015610ebe573d6000803e3d6000fd5b5050505050565b600254600160a060020a03163314610edc57600080fd5b81600160a060020a031683600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3505050565b6000610f3661175e565b8210610f4157600080fd5b506000190190565b600354600160a060020a031681565b6000610989826118ef565b60075460ff1681565b600160a060020a03811660009081526001602052604081205460ff1680610989575050600160a060020a031660009081526020819052604090205460ff1690565b60045481565b3360009081526020819052604090205460ff16151561100a576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600160a060020a038116151561106a576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19166001179055565b60008080600160a060020a03841615156110a757600080fd5b60025460048054604080517f083e9db8000000000000000000000000000000000000000000000000000000008152928301919091525160009550600160a060020a039092169163083e9db89160248082019260209290919082900301818987803b15801561111457600080fd5b505af1158015611128573d6000803e3d6000fd5b505050506040513d602081101561113e57600080fd5b50519150600190505b81811161117f5783600160a060020a0316611161826118ef565b600160a060020a03161415611177576001909201915b600101611147565b5050919050565b60068054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a1b5780601f106109f057610100808354040283529160200191610a1b565b3360009081526020819052604090205460ff16151561123e576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600160a060020a038116151561129e576040805160e560020a62461bcd02815260206004820152601560248201527f4e6577206f70657261746f7220697320656d7074790000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b3360009081526020819052604090205460ff16151561131c576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600030311115611355576040513390303180156108fc02916000818181858888f19350505050158015611353573d6000803e3d6000fd5b505b565b61137333838360206040519081016040528060008152506117f8565b5050565b3360009081526020819052604090205460ff1615156113ce576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b6007805460ff19169055565b3360009081526020819052604090205460ff161515611431576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b610ebe85858585858080601f016020809104026020016040519081016040528093929190818152602001838380828437506117f8945050505050565b6060816fffffffffffffffffffffffffffffffff8111156114ae57600080fd5b600354604080517fc87b56dd000000000000000000000000000000000000000000000000000000008152600481018690529051600160a060020a039092169163c87b56dd9160248082019260009290919082900301818387803b15801561151457600080fd5b505af1158015611528573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052602081101561155157600080fd5b81019080805164010000000081111561156957600080fd5b8201602081018481111561157c57600080fd5b815164010000000081118282018710171561159657600080fd5b5090979650505050505050565b600254600160a060020a031681565b7f800000000000000000000000000000000000000000000000000000000000000081565b600092915050565b3360009081526020819052604081205460ff161515611635576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020611a39833981519152604482015290519081900360640190fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038416916370a082319160248083019260209291908290030181600087803b15801561169657600080fd5b505af11580156116aa573d6000803e3d6000fd5b505050506040513d60208110156116c057600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a0384169163a9059cbb916044808201926020929091908290030181600087803b15801561172e57600080fd5b505af1158015611742573d6000803e3d6000fd5b505050506040513d602081101561175857600080fd5b50505050565b60025460048054604080517f083e9db80000000000000000000000000000000000000000000000000000000081529283019190915251600092600160a060020a03169163083e9db891602480830192602092919082900301818787803b1580156117c757600080fd5b505af11580156117db573d6000803e3d6000fd5b505050506040513d60208110156117f157600080fd5b5051905090565b600254600160a060020a031663e67403bd858561181486611977565b60405160e060020a63ffffffff8616028152600160a060020a0380851660048301908152908416602483015260448201839052608060648301908152885160848401528851899360a40190602085019080838360005b8381101561188257818101518382015260200161186a565b50505050905090810190601f1680156118af5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156118d157600080fd5b505af11580156118e5573d6000803e3d6000fd5b5050505050505050565b600254600090600160a060020a0316636352211e61190c84611977565b6040518263ffffffff1660e060020a02815260040180828152602001915050602060405180830381600087803b15801561194557600080fd5b505af1158015611959573d6000803e3d6000fd5b505050506040513d602081101561196f57600080fd5b505192915050565b6000816fffffffffffffffffffffffffffffffff81111561199757600080fd5b50506004541790565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106119e15782800160ff19823516178555611a0e565b82800160010185558215611a0e579182015b82811115611a0e5782358255916020019190600101906119f3565b50611a1a929150611a1e565b5090565b610a2391905b80821115611a1a5760008155600101611a2456004163636573732064656e69656400000000000000000000000000000000000000a165627a7a723058202f1e351db0be1b6bf98387927dfdab79d107c58160e6baaf6290dc9ce6ffbd5d0029", "block_timestamp": 1595463170, "block_number": 2233682, "block_hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "max_fee_per_gas": null, "max_priority_fee_per_gas": null, "transaction_type": 0, "receipt_cumulative_gas_used": 4078405, "receipt_gas_used": 1875709, "receipt_contract_address": "0x1312dd389b08a8a5a60b0b058921386a13699267", "receipt_root": null, "receipt_status": 1, "receipt_effective_gas_price": 1000000000, "item_id": "transaction_0xdf6876c902061d138de4afaca39fff4d760f358ead9a18d19e9e675586cbc29e", "item_timestamp": "2020-07-23T00:12:50Z"} +{"type": "transaction", "hash": "0x9b1f198199c164322a0cf74554b2cf9f4454627788ffa770612f25bdec811f71", "nonce": 171, "transaction_index": 3, "from_address": "0x2f26d1ddabcdd88aeca3d4f527d4366c37e15c78", "to_address": null, "value": 0, "gas": 7500000, "gas_price": 1000000000, "input": "0x608060409081526006805460ff199081166001908117909255600060078190553381526020819052929092208054909216179055611256806100426000396000f30060806040526004361061015e5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610163578063095ea7b3146101ed57806313af403514610225578063173825d91461024857806317d70f7c1461026957806318160ddd1461029057806323b872dd146102a55780632f54bf6e146102cf57806346195c12146102f05780634a3931491461031157806362aa38e71461033b5780636b613c8c146103785780636c02a9311461038d5780636d70f7ae146103a25780637065cb48146103c357806370a08231146103e45780637b61c3201461040557806395d89b411461041a5780639870d7fe1461042f578063a0ef91df14610450578063a9059cbb14610465578063a9b9cd1e14610489578063ac8a584a1461049e578063c6b72a1f146102f0578063d56022d7146104bf578063dd62ed3e146104f0578063f4f3b20014610517575b600080fd5b34801561016f57600080fd5b50610178610538565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101b257818101518382015260200161019a565b50505050905090810190601f1680156101df5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101f957600080fd5b50610211600160a060020a03600435166024356105cf565b604080519115158252519081900360200190f35b34801561023157600080fd5b50610246600160a060020a03600435166105d6565b005b34801561025457600080fd5b50610246600160a060020a03600435166106c1565b34801561027557600080fd5b5061027e610739565b60408051918252519081900360200190f35b34801561029c57600080fd5b5061027e61073f565b3480156102b157600080fd5b50610211600160a060020a0360043581169060243516604435610745565b3480156102db57600080fd5b50610211600160a060020a036004351661075c565b3480156102fc57600080fd5b50610246600160a060020a036004351661077a565b34801561031d57600080fd5b50610246600160a060020a0360043581169060243516604435610853565b34801561034757600080fd5b5061024660048035600160a060020a03169060248035916044358083019290820135916064359182019101356108ed565b34801561038457600080fd5b506102116109c3565b34801561039957600080fd5b506101786109cc565b3480156103ae57600080fd5b50610211600160a060020a0360043516610a5a565b3480156103cf57600080fd5b50610246600160a060020a0360043516610a9f565b3480156103f057600080fd5b5061027e600160a060020a0360043516610b7a565b34801561041157600080fd5b50610178610c20565b34801561042657600080fd5b50610178610c7b565b34801561043b57600080fd5b50610246600160a060020a0360043516610cdc565b34801561045c57600080fd5b50610246610dba565b34801561047157600080fd5b50610211600160a060020a0360043516602435610e4c565b34801561049557600080fd5b50610246610e62565b3480156104aa57600080fd5b50610246600160a060020a0360043516610ec5565b3480156104cb57600080fd5b506104d4610f3d565b60408051600160a060020a039092168252519081900360200190f35b3480156104fc57600080fd5b5061027e600160a060020a0360043581169060243516610f4c565b34801561052357600080fd5b50610246600160a060020a0360043516610f54565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105c45780601f10610599576101008083540402835291602001916105c4565b820191906000526020600020905b8154815290600101906020018083116105a757829003601f168201915b505050505090505b90565b6000806000fd5b3360009081526020819052604090205460ff16151561062d576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600160a060020a038116151561068d576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0316600090815260208190526040808220805460ff19908116600117909155338352912080549091169055565b3360009081526020819052604090205460ff161515610718576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19169055565b60035481565b60075490565b60006107528484846110d4565b5060019392505050565b600160a060020a031660009081526020819052604090205460ff1690565b3360009081526020819052604090205460ff1615156107d1576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b604080517fa22cb465000000000000000000000000000000000000000000000000000000008152336004820152600160248201529051600160a060020a0383169163a22cb46591604480830192600092919082900301818387803b15801561083857600080fd5b505af115801561084c573d6000803e3d6000fd5b5050505050565b600254600160a060020a0316331461086a57600080fd5b81600160a060020a031683600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a3600160a060020a03831615156108ce5760078054820190555b600160a060020a03821615156108e8576007805482900390555b505050565b3360009081526020819052604090205460ff161515610944576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b846fffffffffffffffffffffffffffffffff81111561096257600080fd5b60065460ff16151561097357600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03891617905560038690556109ac60058686611172565b506109b960048484611172565b5050505050505050565b60065460ff1681565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a525780601f10610a2757610100808354040283529160200191610a52565b820191906000526020600020905b815481529060010190602001808311610a3557829003601f168201915b505050505081565b600160a060020a03811660009081526001602052604081205460ff1680610a995750600160a060020a03821660009081526020819052604090205460ff165b92915050565b3360009081526020819052604090205460ff161515610af6576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600160a060020a0381161515610b56576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19166001179055565b600254600354604080517efdd58e000000000000000000000000000000000000000000000000000000008152600160a060020a03858116600483015260248201939093529051600093929092169162fdd58e9160448082019260209290919082900301818787803b158015610bee57600080fd5b505af1158015610c02573d6000803e3d6000fd5b505050506040513d6020811015610c1857600080fd5b505192915050565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a525780601f10610a2757610100808354040283529160200191610a52565b60058054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156105c45780601f10610599576101008083540402835291602001916105c4565b3360009081526020819052604090205460ff161515610d33576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600160a060020a0381161515610d93576040805160e560020a62461bcd02815260206004820152601560248201527f4e6577206f70657261746f7220697320656d7074790000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b3360009081526020819052604090205460ff161515610e11576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600030311115610e4a576040513390303180156108fc02916000818181858888f19350505050158015610e48573d6000803e3d6000fd5b505b565b6000610e593384846110d4565b50600192915050565b3360009081526020819052604090205460ff161515610eb9576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b6006805460ff19169055565b3360009081526020819052604090205460ff161515610f1c576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b600254600160a060020a031681565b600092915050565b3360009081526020819052604081205460ff161515610fab576040805160e560020a62461bcd02815260206004820152600d602482015260008051602061120b833981519152604482015290519081900360640190fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038416916370a082319160248083019260209291908290030181600087803b15801561100c57600080fd5b505af1158015611020573d6000803e3d6000fd5b505050506040513d602081101561103657600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a0384169163a9059cbb916044808201926020929091908290030181600087803b1580156110a457600080fd5b505af11580156110b8573d6000803e3d6000fd5b505050506040513d60208110156110ce57600080fd5b50505050565b600254600354604080517fb9b8763f000000000000000000000000000000000000000000000000000000008152600160a060020a03878116600483015286811660248301526044820193909352606481018590529051919092169163b9b8763f91608480830192600092919082900301818387803b15801561115557600080fd5b505af1158015611169573d6000803e3d6000fd5b50505050505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111b35782800160ff198235161785556111e0565b828001600101855582156111e0579182015b828111156111e05782358255916020019190600101906111c5565b506111ec9291506111f0565b5090565b6105cc91905b808211156111ec57600081556001016111f656004163636573732064656e69656400000000000000000000000000000000000000a165627a7a72305820c95386bee0595589e673bebcdae176fe32c18e1b73a949a93d60185eba1954c30029", "block_timestamp": 1595463170, "block_number": 2233682, "block_hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "max_fee_per_gas": null, "max_priority_fee_per_gas": null, "transaction_type": 0, "receipt_cumulative_gas_used": 5418110, "receipt_gas_used": 1339705, "receipt_contract_address": "0x5d71998541ae48387f3664768deaf7d74898b75b", "receipt_root": null, "receipt_status": 1, "receipt_effective_gas_price": 1000000000, "item_id": "transaction_0x9b1f198199c164322a0cf74554b2cf9f4454627788ffa770612f25bdec811f71", "item_timestamp": "2020-07-23T00:12:50Z"} +{"type": "transaction", "hash": "0x84904397d57791700b0fe5dfc8a94fdec1143b257d80a089718d9c568b41b63f", "nonce": 172, "transaction_index": 4, "from_address": "0x2f26d1ddabcdd88aeca3d4f527d4366c37e15c78", "to_address": null, "value": 0, "gas": 7500000, "gas_price": 1000000000, "input": "0x608060409081526002805460ff1990811690915533600090815260208190529190912080549091166001179055614d658061003b6000396000f3006080604052600436106103845763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166303f123e78114610389578063092a5cce146103e05780630b53a1a6146103f75780630bd770001461042e5780630d9124421461045d5780630e49a92e146104a457806313af4035146104c75780631467cfae146104e8578063173825d9146105065780631eda80bd146105275780631fdb15491461056c578063221e2fbd1461059957806323b1a4ba146105cc5780632f54bf6e146105f057806331e5144c1461062557806335a5af92146106435780633667ae26146106645780633f4ba83a146106a75780633fabf52a146106bc5780633fbbaccb146106d957806343afb85d146106f757806346195c121461071b5780634a3b68cc1461073c57806351fa495e1461075d5780635b7633d0146107815780635ba3c4be146107965780635c975abb146107be578063626008f9146107d35780636c19e783146108255780636d70f7ae146108465780637065cb481461086757806372cf67521461088857806375ee8e50146108b857806377b8b1c7146108ef5780637a00e2e31461091c5780637c7feaff1461093d5780637e15e2481461096d5780637efa96ce1461098e578063823495f0146109b65780638456cb59146109d45780638f4ffcb1146109e9578063949bf27d14610a2157806396465d3914610a65578063976bf21914610a8f5780639870d7fe14610ab35780639929b3de14610ad45780639cebb2bd14610af55780639d23c4c714610b0a578063a0ef91df14610b1f578063a5eca68514610b34578063ac8a584a14610b5e578063b536b23514610b7f578063b5866d7e14610ba6578063bc197c8114610bbe578063bd190a2814610c0b578063bd5ec8f214610c32578063bdc1a3a614610c7b578063c337036a14610c96578063c6b72a1f1461071b578063ca5946f714610cb7578063ca77d45414610d30578063ca901ca914610d60578063cda0387514610d84578063d4ae68f214610dae578063d5627d7014610dcf578063d582dd7714610e52578063d7a2996314610e70578063e200d03314610ec5578063e41a7e9d14610ee9578063ea6d4ea914611047578063edbe195414611065578063f000738a1461108f578063f1c92c6f146110a4578063f23a6e61146110c2578063f4c2ff51146110ff578063f4f3b2001461111d578063f9eaee0d1461113e575b600080fd5b34801561039557600080fd5b506103a763ffffffff6004351661115f565b604051808261014080838360005b838110156103cd5781810151838201526020016103b5565b5050505090500191505060405180910390f35b3480156103ec57600080fd5b506103f56111ee565b005b34801561040357600080fd5b506103f56004803563ffffffff1690602480356001608060020a031691604435918201910135611254565b6103f563ffffffff6004351660243560443560ff6064351660843560a435600160a060020a0360c4351661137b565b34801561046957600080fd5b506104726114e9565b604080517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff199092168252519081900360200190f35b6103f563ffffffff6004351660243560443560ff6064351660843560a43561151f565b3480156104d357600080fd5b506103f5600160a060020a0360043516611537565b3480156104f457600080fd5b506103f563ffffffff60043516611622565b34801561051257600080fd5b506103f5600160a060020a03600435166116f2565b34801561053357600080fd5b506103f563ffffffff60043516602435604435600160a060020a0360643581169060ff608435169060a4359060c4359060e4351661176a565b6103f563ffffffff60043516600160a060020a036024358116906044359060643581169060843516611b35565b3480156105a557600080fd5b506105ba63ffffffff60043516602435611b96565b60408051918252519081900360200190f35b3480156105d857600080fd5b506103f563ffffffff60043516602435604435611bea565b3480156105fc57600080fd5b50610611600160a060020a0360043516611cb8565b604080519115158252519081900360200190f35b34801561063157600080fd5b5061061163ffffffff60043516611cd6565b34801561064f57600080fd5b506103f5600160a060020a0360043516611d21565b34801561067057600080fd5b5061068b60043560243560ff60443516606435608435611da7565b60408051600160a060020a039092168252519081900360200190f35b3480156106b357600080fd5b506103f5611e26565b6103f563ffffffff60043516600160a060020a0360243516611ec3565b3480156106e557600080fd5b506103f563ffffffff6004351661202b565b34801561070357600080fd5b506103f563ffffffff6004358116906024351661211a565b34801561072757600080fd5b506103f5600160a060020a03600435166121b0565b34801561074857600080fd5b506105ba600160a060020a0360043516612282565b34801561076957600080fd5b506105ba600160a060020a0360043516602435612294565b34801561078d57600080fd5b5061068b61234a565b3480156107a257600080fd5b506103f563ffffffff6004351660243561ffff60443516612359565b3480156107ca57600080fd5b50610611612445565b3480156107df57600080fd5b506107f163ffffffff6004351661244e565b604080519586526020860194909452848401929092526060840152600160a060020a03166080830152519081900360a00190f35b34801561083157600080fd5b506103f5600160a060020a03600435166124ad565b34801561085257600080fd5b50610611600160a060020a0360043516612533565b34801561087357600080fd5b506103f5600160a060020a0360043516612578565b34801561089457600080fd5b506103f563ffffffff600435166001608060020a0360243581169060443516612653565b3480156108c457600080fd5b506108d663ffffffff6004351661275c565b6040805192835260208301919091528051918290030190f35b3480156108fb57600080fd5b506103f5600160a060020a03600435811690602435811690604435166127e7565b34801561092857600080fd5b506103f5600160a060020a0360043516612859565b34801561094957600080fd5b506103f563ffffffff60043516600160a060020a03602435811690604435166128ca565b34801561097957600080fd5b506103f5600160a060020a03600435166128d6565b34801561099a57600080fd5b506103f563ffffffff6004351660243561ffff6044351661295c565b3480156109c257600080fd5b506105ba63ffffffff600435166129a9565b3480156109e057600080fd5b506103f56129c5565b3480156109f557600080fd5b506103f560048035600160a060020a039081169160248035926044351691606435918201910135612a64565b348015610a2d57600080fd5b50610a3f63ffffffff60043516612aae565b604080519485526020850193909352838301919091526060830152519081900360800190f35b348015610a7157600080fd5b506103f563ffffffff600435166001608060020a0360243516612af6565b348015610a9b57600080fd5b506103f5600160a060020a0360043516602435612bd4565b348015610abf57600080fd5b506103f5600160a060020a0360043516612c54565b348015610ae057600080fd5b506108d663ffffffff60043516602435612d32565b348015610b0157600080fd5b5061068b612d99565b348015610b1657600080fd5b5061068b612da8565b348015610b2b57600080fd5b506103f5612db7565b348015610b4057600080fd5b506103f563ffffffff600435166001608060020a0360243516612e49565b348015610b6a57600080fd5b506103f5600160a060020a0360043516612e96565b6103f563ffffffff60043516600160a060020a036024358116906044359060643516612f0e565b348015610bb257600080fd5b506103f5600435612f6f565b348015610bca57600080fd5b50610472600160a060020a03600480358216916024803590911691604435808301929082013591606435808301929082013591608435918201910135613001565b348015610c1757600080fd5b5061061160043560243560ff60443516606435608435613065565b348015610c3e57600080fd5b506103f563ffffffff6004358116906001608060020a0360243581169160443582169160643582169160843582169160a435169060c43516613095565b348015610c8757600080fd5b506105ba600435602435613340565b348015610ca257600080fd5b506108d663ffffffff600435166024356133cc565b348015610cc357600080fd5b50610cd563ffffffff60043516613440565b604080516001608060020a03988916815296881660208801529487168686015292909516606085015263ffffffff90811660808501529390931660a0830152600160a060020a0390921660c082015290519081900360e00190f35b348015610d3c57600080fd5b506103f563ffffffff600435166001608060020a03602435811690604435166134ad565b348015610d6c57600080fd5b506103f563ffffffff600435166024356044356134fa565b348015610d9057600080fd5b506103f563ffffffff600435166001608060020a0360243516613547565b348015610dba57600080fd5b506103f5600160a060020a03600435166135e6565b348015610ddb57600080fd5b50610ded63ffffffff6004351661366c565b604051808361014080838360005b83811015610e13578181015183820152602001610dfb565b5050505090500182600a60200280838360005b83811015610e3e578181015183820152602001610e26565b505050509050019250505060405180910390f35b348015610e5e57600080fd5b50610ded63ffffffff60043516613726565b348015610e7c57600080fd5b506103f563ffffffff6004358116906001608060020a0360243581169160443582169160643582169160843582169160a435169060c43516600160a060020a0360e435166137ce565b348015610ed157600080fd5b506105ba600160a060020a0360043516602435613a79565b348015610ef557600080fd5b50610f0763ffffffff60043516613b1e565b604051808860a080838360005b83811015610f2c578181015183820152602001610f14565b5050505090500187600560200280838360005b83811015610f57578181015183820152602001610f3f565b5050505090500186600560200280838360005b83811015610f82578181015183820152602001610f6a565b5050505090500185600560200280838360005b83811015610fad578181015183820152602001610f95565b5050505090500184600560200280838360005b83811015610fd8578181015183820152602001610fc0565b5050505090500183600560200280838360005b83811015611003578181015183820152602001610feb565b5050505090500182600560200280838360005b8381101561102e578181015183820152602001611016565b5050505090500197505050505050505060405180910390f35b34801561105357600080fd5b506105ba63ffffffff60043516613d90565b34801561107157600080fd5b506103f563ffffffff600435166001608060020a0360243516613da8565b34801561109b57600080fd5b5061068b613e45565b3480156110b057600080fd5b506105ba63ffffffff60043516613e54565b3480156110ce57600080fd5b50610472600160a060020a036004803582169160248035909116916044359160643591608435918201910135613e6f565b34801561110b57600080fd5b506103f563ffffffff60043516613eab565b34801561112957600080fd5b506103f5600160a060020a0360043516613fad565b34801561114a57600080fd5b50610611600160a060020a0360043516614127565b611167614bac565b63ffffffff82166000908152600360205260408120905b60018201548110156111e757600a8110611197576111e7565b600182018054829081106111a757fe5b6000918252602090912060028204015460019091166010026101000a90046001608060020a03168382600a81106111da57fe5b602002015260010161117e565b5050919050565b3360009081526020819052604090205460ff161515611245576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b30311561125157600080fd5b33ff5b600061125f33612533565b15156112a3576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b5060005b818110156113555763ffffffff851660009081526003602090815260409182902082518084019093526001608060020a0387168352600201919081018585858181106112ef57fe5b6001608060020a036020918202939093013583169093525083546001818101865560009586529483902084519101805494909301518216608060020a029082166fffffffffffffffffffffffffffffffff199094169390931716919091179055016112a7565b60405163ffffffff861690600080516020614d1a83398151915290600090a25050505050565b63ffffffff80881660009081526003602052604081206006810154909264010000000090910416156113f7576040805160e560020a62461bcd02815260206004820152601c60248201527f4c6f74206b696e642073686f756c6420626520524154455f5349474e00000000604482015290519081900360640190fd5b6114048888888888613065565b151561140f57600080fd5b42871015611467576040805160e560020a62461bcd02815260206004820152601460248201527f52617465207369676e2069732065787069726564000000000000000000000000604482015290519081900360640190fd5b5060048101546001608060020a03168702348111156114d0576040805160e560020a62461bcd02815260206004820152601960248201527f4e6f7420656e6f7567682076616c75652070726f766964656400000000000000604482015290519081900360640190fd5b6114de89338360008761420e565b505050505050505050565b604080517f697345524331313535546f6b656e526563656976657228290000000000000000815290519081900360180190205b90565b61152f868686868686600061137b565b505050505050565b3360009081526020819052604090205460ff16151561158e576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a03811615156115ee576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a0316600090815260208190526040808220805460ff19908116600117909155338352912080549091169055565b600061162d33612533565b1515611671576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b5063ffffffff8116600090815260036020526040812060048101549091608060020a9091046001608060020a031611156116cf576004810180546000196001608060020a03608060020a808404821692909201811690910291161790555b60405163ffffffff831690600080516020614d1a83398151915290600090a25050565b3360009081526020819052604090205460ff161515611749576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19169055565b63ffffffff8089166000908152600360205260408120600681015490928291829164010000000090910416156117ea576040805160e560020a62461bcd02815260206004820152601c60248201527f4c6f74206b696e642073686f756c6420626520524154455f5349474e00000000604482015290519081900360640190fd5b6117f78b8b8a8a8a613065565b151561184d576040805160e560020a62461bcd02815260206004820152601660248201527f5369676e6174757265206973206e6f742076616c696400000000000000000000604482015290519081900360640190fd5b428a10156118a5576040805160e560020a62461bcd02815260206004820152601460248201527f52617465207369676e2069732065787069726564000000000000000000000000604482015290519081900360640190fd5b6118ae89614127565b1515611904576040805160e560020a62461bcd02815260206004820152601460248201527f546f6b656e206973206e6f7420616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b6006840154600160a060020a038a81166801000000000000000090920416141561193d5760048401546001608060020a0316925061199d565b6006840154680100000000000000009004600160a060020a03161561197f5760048401546001608060020a03168b0291506119788983612294565b925061199d565b5060048301546001608060020a03168a0261199a8982612294565b92505b600754604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152600160a060020a039283166024820152604481018690529051918b16916323b872dd916064808201926020929091908290030181600087803b158015611a1257600080fd5b505af1158015611a26573d6000803e3d6000fd5b505050506040513d6020811015611a3c57600080fd5b50511515611a94576040805160e560020a62461bcd02815260206004820152601460248201527f43616e2774207265717565737420746f6b656e73000000000000000000000000604482015290519081900360640190fd5b600754604080517f4e82a391000000000000000000000000000000000000000000000000000000008152600160a060020a038c811660048301526024820187905291519190921691634e82a39191604480830192600092919082900301818387803b158015611b0257600080fd5b505af1158015611b16573d6000803e3d6000fd5b50505050611b278c33858c8961420e565b505050505050505050505050565b611b3e33612533565b1515611b82576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b611b8f858585858561420e565b5050505050565b63ffffffff8216600090815260036020526040812060018101805484908110611bbb57fe5b6000918252602090912060028204015460019091166010026101000a90046001608060020a0316949350505050565b611bf333612533565b1515611c37576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff83166000908152600360205260408120611c5591614bcc565b63ffffffff8316600081815260036020908152604080832081518083018352878152808401878152825460018181018555938752948620915160029095029091019384555192019190915551600080516020614d1a8339815191529190a2505050565b600160a060020a031660009081526020819052604090205460ff1690565b63ffffffff811660009081526003602052604081206004810154608060020a90046001608060020a031682108015611d1a575060068101544263ffffffff90911610155b9392505050565b3360009081526020819052604090205460ff161515611d78576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b6007805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600080611db48787613340565b604080516000808252602080830180855285905260ff8a16838501526060830189905260808301889052925193945060019360a08084019493601f19830193908390039091019190865af1158015611e10573d6000803e3d6000fd5b5050604051601f19015198975050505050505050565b3360009081526020819052604090205460ff161515611e7d576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b60025460ff161515611e8e57600080fd5b6002805460ff191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b63ffffffff821660009081526003602052604090206004810154346001608060020a039091161115611f3f576040805160e560020a62461bcd02815260206004820152601960248201527f4e6f7420656e6f7567682076616c75652070726f766964656400000000000000604482015290519081900360640190fd5b6006810154640100000000900463ffffffff16600114611fa9576040805160e560020a62461bcd02815260206004820152601960248201527f4c6f74206b696e642073686f756c64206265204e415449564500000000000000604482015290519081900360640190fd5b6006810154680100000000000000009004600160a060020a031615612018576040805160e560020a62461bcd02815260206004820152601f60248201527f507269636520696e20746f6b656e206973206e6f7420737570706f7274656400604482015290519081900360640190fd5b61202683333460008661420e565b505050565b61203433612533565b1515612078576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff81166000908152600360205260408120906120988282614bcc565b6120a6600183016000614bed565b6120b4600283016000614c12565b6120c2600383016000614c30565b5060006004820181905560058201819055600690910180547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916905560405163ffffffff831691600080516020614d1a83398151915291a250565b600061212533612533565b1515612169576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b5063ffffffff82811660008181526003602052604080822060068101805463ffffffff19169587169590951790945551600080516020614d1a8339815191529190a2505050565b3360009081526020819052604090205460ff161515612207576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b604080517fa22cb465000000000000000000000000000000000000000000000000000000008152336004820152600160248201529051600160a060020a0383169163a22cb46591604480830192600092919082900301818387803b15801561226e57600080fd5b505af1158015611b8f573d6000803e3d6000fd5b60046020526000908152604090205481565b600754604080517fa01da7b2000000000000000000000000000000000000000000000000000000008152600160a060020a0385811660048301526001608060020a03851660248301529151600093929092169163a01da7b29160448082019260209290919082900301818787803b15801561230e57600080fd5b505af1158015612322573d6000803e3d6000fd5b505050506040513d602081101561233857600080fd5b50516001608060020a03169392505050565b600854600160a060020a031681565b61236233612533565b15156123a6576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff8316600090815260036020819052604082206123c992910190614c30565b63ffffffff831660008181526003602081815260408084208151808301835288815261ffff888116828601908152929095018054600180820183559188529487209151600290950290910193845590519201805461ffff1916929093169190911790915551600080516020614d1a8339815191529190a2505050565b60025460ff1681565b63ffffffff908116600090815260036020526040902060048101546006909101546001608060020a0380831694608060020a909304169281811692640100000000830490911691680100000000000000009004600160a060020a031690565b3360009081526020819052604090205460ff161515612504576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b6008805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600160a060020a03811660009081526001602052604081205460ff16806125725750600160a060020a03821660009081526020819052604090205460ff165b92915050565b3360009081526020819052604090205460ff1615156125cf576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a038116151561262f576040805160e560020a62461bcd02815260206004820152601260248201527f4e6577206f776e657220697320656d7074790000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152602081905260409020805460ff19166001179055565b61265c33612533565b15156126a0576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff831660009081526003602052604081206126c491600290910190614c12565b63ffffffff83166000818152600360209081526040808320815180830183526001608060020a03808916825287811682860190815260029093018054600181018255908752948620915191909401805492518516608060020a029185166fffffffffffffffffffffffffffffffff19909316929092179093169290921790915551600080516020614d1a8339815191529190a2505050565b63ffffffff8116600090815260036020526040812060028101548291908210156127e157600281018054600019810190811061279457fe5b6000918252602090912001546002820180546001608060020a0390921694509060001981019081106127c257fe5b600091825260209091200154608060020a90046001608060020a031691505b50915091565b3360009081526020819052604090205460ff16151561283e576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b612847836128d6565b612850826135e6565b61202681611d21565b3360009081526020819052604090205460ff1615156128b0576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a0316600090815260046020526040812055565b6120268383833361443b565b3360009081526020819052604090205460ff16151561292d576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b6005805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b61296533612533565b15156123c9576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff166000908152600360208190526040909120015490565b3360009081526020819052604090205460ff161515612a1c576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b60025460ff1615612a2c57600080fd5b6002805460ff191660011790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b6000612a9f83838080601f01602080910402602001604051908101604052809392919081815260200183838082843750614761945050505050565b905061152f816000868961443b565b63ffffffff908116600090815260036020526040902060048101546006909101546001608060020a0380831694608060020a9093041692818116926401000000009092041690565b612aff33612533565b1515612b43576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff82166000908152600360205260408120612b6791600190910190614bed565b63ffffffff8216600081815260036020908152604080832060019081018054808301825590855292842060028404018054939091166010026101000a6001608060020a0381810219909416938716029290921790915551600080516020614d1a8339815191529190a25050565b3360009081526020819052604090205460ff161515612c2b576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b60648110612c3857600080fd5b600160a060020a03909116600090815260046020526040902055565b3360009081526020819052604090205460ff161515612cab576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a0381161515612d0b576040805160e560020a62461bcd02815260206004820152601560248201527f4e6577206f70657261746f7220697320656d7074790000000000000000000000604482015290519081900360640190fd5b600160a060020a03166000908152600160208190526040909120805460ff19169091179055565b63ffffffff821660009081526003602052604081208054829190819085908110612d5857fe5b90600052602060002090600202016000015492508060000184815481101515612d7d57fe5b9060005260206000209060020201600101549150509250929050565b600554600160a060020a031681565b600754600160a060020a031681565b3360009081526020819052604090205460ff161515612e0e576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600030311115612e47576040513390303180156108fc02916000818181858888f19350505050158015612e45573d6000803e3d6000fd5b505b565b612e5233612533565b1515612b67576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b3360009081526020819052604090205460ff161515612eed576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b600160a060020a03166000908152600160205260409020805460ff19169055565b612f1733612533565b1515612f5b576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b612f6984848484600061420e565b50505050565b3360009081526020819052604081205460ff161515612fc6576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b50303181811115612fd45750805b604051339082156108fc029083906000818181858888f19350505050158015612026573d6000803e3d6000fd5b604080517f616372657175636570745f62617463685f657263313135355f746f6b656e732881527f29000000000000000000000000000000000000000000000000000000000000006020820152905190819003602101902098975050505050505050565b600854600090600160a060020a03166130818787878787611da7565b600160a060020a0316149695505050505050565b60006130a033612533565b15156130e4576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff88166000908152600360205260408120906131048282614bcc565b613112600183016000614bed565b613120600283016000614c12565b61312e600383016000614c30565b6004820160006101000a8154906001608060020a0302191690556004820160106101000a8154906001608060020a0302191690556005820160006101000a8154906001608060020a0302191690556005820160106101000a8154906001608060020a0302191690556006820160006101000a81549063ffffffff02191690556006820160046101000a81549063ffffffff02191690556006820160086101000a815490600160a060020a0302191690555050600360008963ffffffff1663ffffffff1681526020019081526020016000209050868160040160006101000a8154816001608060020a0302191690836001608060020a03160217905550858160040160106101000a8154816001608060020a0302191690836001608060020a03160217905550848160060160006101000a81548163ffffffff021916908363ffffffff160217905550838160050160006101000a8154816001608060020a0302191690836001608060020a03160217905550828160050160106101000a8154816001608060020a0302191690836001608060020a03160217905550818160060160046101000a81548163ffffffff021916908363ffffffff16021790555060008160060160086101000a815481600160a060020a030219169083600160a060020a031602179055508763ffffffff16600080516020614d1a83398151915260405160405180910390a25050505050505050565b6000828260405160200180838152602001828152602001925050506040516020818303038152906040526040518082805190602001908083835b602083106133995780518252601f19909201916020918201910161337a565b5181516020939093036101000a600019018019909116921691909117905260405192018290039091209695505050505050565b63ffffffff821660009081526003602081905260408220908101805483929190859081106133f657fe5b9060005260206000209060020201600001549250806003018481548110151561341b57fe5b6000918252602090912060016002909202010154929561ffff90931694509192505050565b6003602052600090815260409020600481015460058201546006909201546001608060020a0380831693608060020a938490048216938282169391049091169063ffffffff80821691640100000000810490911690680100000000000000009004600160a060020a031687565b6134b633612533565b15156126c4576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b61350333612533565b1515611c55576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b61355033612533565b1515613594576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff821660008181526003602052604080822060040180546fffffffffffffffffffffffffffffffff19166001608060020a03861617905551600080516020614d1a8339815191529190a25050565b3360009081526020819052604090205460ff16151561363d576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b6006805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b613674614bac565b61367c614bac565b63ffffffff83166000908152600360205260408120905b600382015481101561371f57600a81106136ac5761371f565b600382018054829081106136bc57fe5b60009182526020909120600290910201548482600a81106136d957fe5b6020020152600382018054829081106136ee57fe5b600091825260209091206001600290920201015461ffff168382600a811061371257fe5b6020020152600101613693565b5050915091565b61372e614bac565b613736614bac565b63ffffffff83166000908152600360205260408120905b815481101561371f57600a81106137635761371f565b815482908290811061377157fe5b60009182526020909120600290910201548482600a811061378e57fe5b602002015281548290829081106137a157fe5b9060005260206000209060020201600101548382600a811015156137c157fe5b602002015260010161374d565b60006137d933612533565b151561381d576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff891660009081526003602052604081209061383d8282614bcc565b61384b600183016000614bed565b613859600283016000614c12565b613867600383016000614c30565b6004820160006101000a8154906001608060020a0302191690556004820160106101000a8154906001608060020a0302191690556005820160006101000a8154906001608060020a0302191690556005820160106101000a8154906001608060020a0302191690556006820160006101000a81549063ffffffff02191690556006820160046101000a81549063ffffffff02191690556006820160086101000a815490600160a060020a0302191690555050600360008a63ffffffff1663ffffffff1681526020019081526020016000209050878160040160006101000a8154816001608060020a0302191690836001608060020a03160217905550868160040160106101000a8154816001608060020a0302191690836001608060020a03160217905550858160060160006101000a81548163ffffffff021916908363ffffffff160217905550848160050160006101000a8154816001608060020a0302191690836001608060020a03160217905550838160050160106101000a8154816001608060020a0302191690836001608060020a03160217905550828160060160046101000a81548163ffffffff021916908363ffffffff160217905550818160060160086101000a815481600160a060020a030219169083600160a060020a031602179055508863ffffffff16600080516020614d1a83398151915260405160405180910390a2505050505050505050565b600754604080517fe200d033000000000000000000000000000000000000000000000000000000008152600160a060020a038581166004830152602482018590529151600093929092169163e200d0339160448082019260209290919082900301818787803b158015613aeb57600080fd5b505af1158015613aff573d6000803e3d6000fd5b505050506040513d6020811015613b1557600080fd5b50519392505050565b613b26614c51565b613b2e614c51565b613b36614c51565b613b3e614c51565b613b46614c51565b613b4e614c51565b613b56614c51565b63ffffffff88166000908152600360205260408120905b8154811015613bee5760058110613b8357613bee565b8154829082908110613b9157fe5b6000918252602090912060029091020154898260058110613bae57fe5b60200201528154829082908110613bc157fe5b9060005260206000209060020201600101548882600581101515613be157fe5b6020020152600101613b6d565b5060005b6001820154811015613c5b5760058110613c0b57613c5b565b60018201805482908110613c1b57fe5b6000918252602090912060028204015460019091166010026101000a90046001608060020a0316878260058110613c4e57fe5b6020020152600101613bf2565b5060005b6002820154811015613cf35760058110613c7857613cf3565b60028201805482908110613c8857fe5b6000918252602090912001546001608060020a0316868260058110613ca957fe5b602002015260028201805482908110613cbe57fe5b600091825260209091200154608060020a90046001608060020a0316858260058110613ce657fe5b6020020152600101613c5f565b5060005b6003820154811015613d835760058110613d1057613d83565b60038201805482908110613d2057fe5b6000918252602090912060029091020154848260058110613d3d57fe5b602002015260038201805482908110613d5257fe5b600091825260209091206001600290920201015461ffff16838260058110613d7657fe5b6020020152600101613cf7565b5050919395979092949650565b63ffffffff1660009081526003602052604090205490565b6000613db333612533565b1515613df7576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b5063ffffffff82166000818152600360205260408082206004810180546001608060020a03808816608060020a0291161790559051909291600080516020614d1a83398151915291a2505050565b600654600160a060020a031681565b63ffffffff1660009081526003602052604090206001015490565b604080517f6163636570745f657263313135355f746f6b656e732829000000000000000000815290519081900360170190209695505050505050565b3360009081526020819052604090205460ff161515613f02576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b63ffffffff81166000908152600360205260408120613f2091614bcc565b63ffffffff81166000908152600360205260408120613f4491600190910190614bed565b63ffffffff81166000908152600360205260408120613f6891600290910190614c12565b63ffffffff811660009081526003602081905260408220613f8b92910190614c30565b60405163ffffffff821690600080516020614d1a83398151915290600090a250565b3360009081526020819052604081205460ff161515614004576040805160e560020a62461bcd02815260206004820152600d6024820152600080516020614cfa833981519152604482015290519081900360640190fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051600160a060020a038416916370a082319160248083019260209291908290030181600087803b15801561406557600080fd5b505af1158015614079573d6000803e3d6000fd5b505050506040513d602081101561408f57600080fd5b5051604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018390529051919250600160a060020a0384169163a9059cbb916044808201926020929091908290030181600087803b1580156140fd57600080fd5b505af1158015614111573d6000803e3d6000fd5b505050506040513d6020811015612f6957600080fd5b60408051600180825281830190925260009160609190602080830190803883390190505090508281600081518110151561415d57fe5b600160a060020a0392831660209182029092018101919091526007546040517f90a308a50000000000000000000000000000000000000000000000000000000081526004810183815285516024830152855192909416936390a308a593869391928392604490910191858101910280838360005b838110156141e95781810151838201526020016141d1565b5050505090500192505050602060405180830381600087803b158015613aeb57600080fd5b600254600090819060ff161561422357600080fd5b63ffffffff87166000908152600360205260409020915061424387611cd6565b1515614299576040805160e560020a62461bcd02815260206004820152601460248201527f4c6f74206973206e6f7420617661696c61626c65000000000000000000000000604482015290519081900360640190fd5b600160a060020a03831615156143025760408051868152600160a060020a03868116602083015282518187169363ffffffff8c1693928b16927ff19a620368d88a8241049ffd47e36ab3129111bee60de13892bcd2165ec02fa6929081900390910190a4614355565b83600160a060020a03168763ffffffff1687600160a060020a03167fea6da5723a77b4662879f2bd97620ea296eb01d106c59a101492b7a1f76ad1f3886040518082815260200191505060405180910390a45b60048201805460058401546fffffffffffffffffffffffffffffffff196001608060020a03808416608060020a948590048216600019018216850217828116620f42408386169284169283020490910182161791821693909204821690821601161790556143c38287614825565b600160a060020a03831660009081526004602052604081205411156144325750600160a060020a038216600081815260046020526040808220549051606491880291909104929183156108fc02918491818181858888f19350505050158015614430573d6000803e3d6000fd5b505b50505050505050565b63ffffffff80851660009081526003602052604081206006810154909282918291640100000000909104166001146144bd576040805160e560020a62461bcd02815260206004820152601960248201527f4c6f74206b696e642073686f756c64206265204e415449564500000000000000604482015290519081900360640190fd5b6144c686614127565b151561451c576040805160e560020a62461bcd02815260206004820152601460248201527f546f6b656e206973206e6f7420616c6c6f776564000000000000000000000000604482015290519081900360640190fd5b6006840154600160a060020a03878116680100000000000000009092041614156145555760048401546001608060020a031692506145d5565b6006840154680100000000000000009004600160a060020a0316156145b957600684015460048501546145a691680100000000000000009004600160a060020a0316906001608060020a0316613a79565b91506145b28683612294565b92506145d5565b5060048301546001608060020a03166145d28682612294565b92505b600754604080517f23b872dd000000000000000000000000000000000000000000000000000000008152600160a060020a0388811660048301529283166024820152604481018690529051918816916323b872dd916064808201926020929091908290030181600087803b15801561464c57600080fd5b505af1158015614660573d6000803e3d6000fd5b505050506040513d602081101561467657600080fd5b505115156146ce576040805160e560020a62461bcd02815260206004820152601460248201527f43616e2774207265717565737420746f6b656e73000000000000000000000000604482015290519081900360640190fd5b600754604080517f4e82a391000000000000000000000000000000000000000000000000000000008152600160a060020a0389811660048301526024820187905291519190921691634e82a39191604480830192600092919082900301818387803b15801561473c57600080fd5b505af1158015614750573d6000803e3d6000fd5b50505050614430888685898b61420e565b805160009060041461477257600080fd5b81600381518110151561478157fe5b90602001015160f860020a900460f860020a0260f860020a900462100000028260028151811015156147af57fe5b90602001015160f860020a900460f860020a0260f860020a900462010000028360018151811015156147dd57fe5b90602001015160f860020a900460f860020a0260f860020a90046101000284600081518110151561480a57fe5b016020015160f860020a908190048102040101019050919050565b60005b82548110156148615761485982846000018381548110151561484657fe5b9060005260206000209060020201614949565b600101614828565b6002830154600010156148ae57600283018054614897918491600019810190811061488857fe5b906000526020600020016149d9565b600283018054906148ac906000198301614c70565b505b5060005b6001830154811015614909576149018284600101838154811015156148d357fe5b90600052602060002090600291828204019190066010029054906101000a90046001608060020a0316614ab5565b6001016148b2565b5060005b60038301548110156120265761494182846003018381548110151561492e57fe5b9060005260206000209060020201614b2b565b60010161490d565b60055481546001830154604080517fa11acd330000000000000000000000000000000000000000000000000000000081526004810193909352600160a060020a03868116602485015260448401929092525192169163a11acd339160648082019260009290919082900301818387803b1580156149c557600080fd5b505af115801561152f573d6000803e3d6000fd5b8054600554604080517ff242432a000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a0386811660248301526001608060020a03808616608060020a908102960416949094177f800000000000000000000000000000000000000000000000000000000000000017604482018190526001606483015260a06084830152600060a48301819052925190949093169263f242432a9260e48084019391929182900301818387803b158015614aa157600080fd5b505af1158015614432573d6000803e3d6000fd5b600554604080517fab06b7780000000000000000000000000000000000000000000000000000000081526001608060020a0384166004820152600160a060020a0385811660248301529151919092169163ab06b77891604480830192600092919082900301818387803b1580156149c557600080fd5b60065481546001830154604080517f7895fe98000000000000000000000000000000000000000000000000000000008152600481019390935261ffff9091166024830152600160a060020a0385811660448401529051921691637895fe98916064808201926020929091908290030181600087803b1580156140fd57600080fd5b61014060405190810160405280600a906020820280388339509192915050565b5080546000825560020290600052602060002090810190612e459190614c94565b508054600082556001016002900490600052602060002090810190612e459190614cb8565b5080546000825590600052602060002090810190612e459190614cb8565b5080546000825560020290600052602060002090810190612e459190614cd2565b60a0604051908101604052806005906020820280388339509192915050565b81548183558181111561202657600083815260209020612026918101908301614cb8565b61151c91905b80821115614cb45760008082556001820155600201614c9a565b5090565b61151c91905b80821115614cb45760008155600101614cbe565b61151c91905b80821115614cb4576000815560018101805461ffff19169055600201614cd856004163636573732064656e6965640000000000000000000000000000000000000023648ba1cc05a0fef4ddba045c03a643ed516ad9bf7fb7db0c850f3c9a092967a165627a7a72305820c76ba0d01f746c5c7f0afcb32c562697b778019d3a5a3dbc1469070c4383ff650029", "block_timestamp": 1595463170, "block_number": 2233682, "block_hash": "0xf4d1f2c520fa7553400be2b198960d0f4ae9db082c69d0bcb321086ddd90fa9f", "max_fee_per_gas": null, "max_priority_fee_per_gas": null, "transaction_type": 0, "receipt_cumulative_gas_used": 10735866, "receipt_gas_used": 5317756, "receipt_contract_address": "0xe346cd49bc4ecb75cfd2452eb70f26ec29e43bbd", "receipt_root": null, "receipt_status": 1, "receipt_effective_gas_price": 1000000000, "item_id": "transaction_0x84904397d57791700b0fe5dfc8a94fdec1143b257d80a089718d9c568b41b63f", "item_timestamp": "2020-07-23T00:12:50Z"} diff --git a/cli/tests/resources/test_stream/block_with_contracts/web3_response.eth_getBlockByNumber_latest_false.json b/cli/tests/resources/test_stream/block_with_contracts/web3_response.eth_getBlockByNumber_latest_false.json index 3de02be3..5309d048 100644 --- a/cli/tests/resources/test_stream/block_with_contracts/web3_response.eth_getBlockByNumber_latest_false.json +++ b/cli/tests/resources/test_stream/block_with_contracts/web3_response.eth_getBlockByNumber_latest_false.json @@ -9,7 +9,7 @@ "gasUsed": "0xb74b9e", "hash": "0x1b6d2cfc43be86a789987c54a76db4d99618f550fe8d06b6f7eab7b955cd6a44", "logsBloom": "0x1421e8060d803b11911a2ea58003891204ac07001152182019c64b232082398880049149102082a120a2c214221305c122a4820241c77402cec025b00630e0e4b09aac04102660210c190eed647800f81c1027680107bc2152918497928b220608c2aa60aa0088400d2c2213080a9a4a5006d41fca084021914122361389b0c99f120b144c1840731d800c0031ca430608b714b18621a08800c0095c0688ac616290054cb813236441b0910581806059464018536205dc2a131a0b0a348061608001a4cba58294160631d9e406fe059470dc104200188f58511cc021a0a8e0501030116052b498e0467b02041563d00df3f0220d239488c1a4001804423008e0", - "miner": "0x0000000000000000000000000000000000000000", + "miner": "0xf0245f6251bef9447a08766b9da2b07b28ad80b0", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "nonce": "0x0000000000000000", "number": "0x1bfe5f1", diff --git a/cli/tests/resources/test_stream/blocks_with_transfers/expected_blocks.json b/cli/tests/resources/test_stream/blocks_with_transfers/expected_blocks.json index 411cc39e..f7fde695 100644 --- a/cli/tests/resources/test_stream/blocks_with_transfers/expected_blocks.json +++ b/cli/tests/resources/test_stream/blocks_with_transfers/expected_blocks.json @@ -1,3 +1,3 @@ -{"type": "block", "number": 9013765, "hash": "0x3dff694664641828171c11cc5130dd6213721b2be38a2e4c6a069c3e79f004e1", "parent_hash": "0x0a50d2d7e7384602a7cdc84474c23258e552ecfc7b308b7b2ed5a4d70c8cc97b", "nonce": "0x0000000000000000", "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "logs_bloom": "0x00000000000000000000000000000000000800001000000000000000000000000000000000000000000000000500000000008000000000000800000000000000000000000000040000000000000000800000000080000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000001000000000004000000008000000000000000000000000000000000200000000000000000000000000000000010000000000000000000000000004000000000000000000001000010000200000000000000000000100000000008000100000000000000000000000000000000004000000008000000020000100000", "transactions_root": "0xf917c84c2a330a8f1c80e0abea042e3d10d2124095665da4515a8b655c2a120b", "state_root": "0x02ecd8dcbcec30816d23186070f8448087d316949a78e2883f309e081ec22149", "receipts_root": "0x67e483a1a6e1332e411ef911c416c89a7a94245be8049214248a80e1b78c4942", "miner": "0x5973918275c01f50555d44e92c9d9b353cadad54", "difficulty": 5, "total_difficulty": 59437870, "size": 1225, "extra_data": "0xd78301091883626f7288676f312e31352e35856c696e757800000000000000004d5593833de6aca78ab048a9eb96c7ab68affa43988ccf59d91e044b39adfdef4a3ea86bd4e4d00dc75eba923fe33625183fc3df618cea6ae4cf1ea8392467dd01", "gas_limit": 20000000, "gas_used": 262740, "timestamp": 1609459216, "transaction_count": 2, "item_id": "block_0x3dff694664641828171c11cc5130dd6213721b2be38a2e4c6a069c3e79f004e1", "item_timestamp": "2021-01-01T00:00:16Z"} -{"type": "block", "number": 9013766, "hash": "0x4c21b534ecaac6750ac0bf863ab763a31980be9b944876df6ce5228719421b94", "parent_hash": "0x3dff694664641828171c11cc5130dd6213721b2be38a2e4c6a069c3e79f004e1", "nonce": "0x0000000000000000", "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "logs_bloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "transactions_root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "state_root": "0x02ecd8dcbcec30816d23186070f8448087d316949a78e2883f309e081ec22149", "receipts_root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "miner": "0x5973918275c01f50555d44e92c9d9b353cadad54", "difficulty": 5, "total_difficulty": 59437875, "size": 610, "extra_data": "0xd78301091883626f7288676f312e31352e35856c696e75780000000000000000193f5d00974ee45181ab55cb721885f30931e271f047ea4ed267e04b364071914a80e210599b78d5b8454b633d3e025c044bd5630a6238a00d9e6a6414d0153f00", "gas_limit": 20000000, "gas_used": 0, "timestamp": 1609459218, "transaction_count": 0, "item_id": "block_0x4c21b534ecaac6750ac0bf863ab763a31980be9b944876df6ce5228719421b94", "item_timestamp": "2021-01-01T00:00:18Z"} -{"type": "block", "number": 9013767, "hash": "0x5c0d7534ce598793f3deb4128daf06788b3b5ca1f799863f2ad669c38c0c33f2", "parent_hash": "0x4c21b534ecaac6750ac0bf863ab763a31980be9b944876df6ce5228719421b94", "nonce": "0x0000000000000000", "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "logs_bloom": "0x04000000020800000000000000000000100800001000000210000000000040000000000000000000000000200100000018008000000000000800000100000040000000000000040000000008000200800000000000000000002100000000000004000000024000000000000000000800000000000800000180000010200000000001000000000000000081000000000000100000020010008000000000000000200000000400000000000000000001000000000000000000000000000010004000000042004000000001000010000200000424000400004082100000000020000100008000000000040000000000000010000000000000000000020002100000", "transactions_root": "0xe3d9183490cb989694c33c6ea7424e96acf5c09f55df42d13163e434be1e9f9c", "state_root": "0x8813a944bee217e32cd25760fcf9185ce8bb295df3328491dd6eea11801ea01c", "receipts_root": "0x15ff08529c7c6b43d712e306b9057eb5378b1c7f07ba212d55c39e5a79811649", "miner": "0x5973918275c01f50555d44e92c9d9b353cadad54", "difficulty": 5, "total_difficulty": 59437880, "size": 2087, "extra_data": "0xd78301091883626f7288676f312e31352e35856c696e7578000000000000000047d5e4992e15f8f211ed66532186f2599fb1711f8b86d0f53f0a2afad2ae7bad4ba38af073c750a0c4af17a02c222e5ee52ef4532f5fb89b28e71419080a11ed01", "gas_limit": 20000000, "gas_used": 328636, "timestamp": 1609459220, "transaction_count": 2, "item_id": "block_0x5c0d7534ce598793f3deb4128daf06788b3b5ca1f799863f2ad669c38c0c33f2", "item_timestamp": "2021-01-01T00:00:20Z"} +{"type": "block", "number": 9013765, "hash": "0x3dff694664641828171c11cc5130dd6213721b2be38a2e4c6a069c3e79f004e1", "parent_hash": "0x0a50d2d7e7384602a7cdc84474c23258e552ecfc7b308b7b2ed5a4d70c8cc97b", "nonce": "0x0000000000000000", "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "logs_bloom": "0x00000000000000000000000000000000000800001000000000000000000000000000000000000000000000000500000000008000000000000800000000000000000000000000040000000000000000800000000080000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000001000000000004000000008000000000000000000000000000000000200000000000000000000000000000000010000000000000000000000000004000000000000000000001000010000200000000000000000000100000000008000100000000000000000000000000000000004000000008000000020000100000", "transactions_root": "0xf917c84c2a330a8f1c80e0abea042e3d10d2124095665da4515a8b655c2a120b", "state_root": "0x02ecd8dcbcec30816d23186070f8448087d316949a78e2883f309e081ec22149", "receipts_root": "0x67e483a1a6e1332e411ef911c416c89a7a94245be8049214248a80e1b78c4942", "miner": "0x5973918275c01f50555d44e92c9d9b353cadad54", "difficulty": 5, "total_difficulty": 59437870, "size": 1225, "extra_data": "0xd78301091883626f7288676f312e31352e35856c696e757800000000000000004d5593833de6aca78ab048a9eb96c7ab68affa43988ccf59d91e044b39adfdef4a3ea86bd4e4d00dc75eba923fe33625183fc3df618cea6ae4cf1ea8392467dd01", "gas_limit": 20000000, "gas_used": 262740, "timestamp": 1609459216, "transaction_count": 2, "base_fee_per_gas": null, "item_id": "block_0x3dff694664641828171c11cc5130dd6213721b2be38a2e4c6a069c3e79f004e1", "item_timestamp": "2021-01-01T00:00:16Z"} +{"type": "block", "number": 9013767, "hash": "0x5c0d7534ce598793f3deb4128daf06788b3b5ca1f799863f2ad669c38c0c33f2", "parent_hash": "0x4c21b534ecaac6750ac0bf863ab763a31980be9b944876df6ce5228719421b94", "nonce": "0x0000000000000000", "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "logs_bloom": "0x04000000020800000000000000000000100800001000000210000000000040000000000000000000000000200100000018008000000000000800000100000040000000000000040000000008000200800000000000000000002100000000000004000000024000000000000000000800000000000800000180000010200000000001000000000000000081000000000000100000020010008000000000000000200000000400000000000000000001000000000000000000000000000010004000000042004000000001000010000200000424000400004082100000000020000100008000000000040000000000000010000000000000000000020002100000", "transactions_root": "0xe3d9183490cb989694c33c6ea7424e96acf5c09f55df42d13163e434be1e9f9c", "state_root": "0x8813a944bee217e32cd25760fcf9185ce8bb295df3328491dd6eea11801ea01c", "receipts_root": "0x15ff08529c7c6b43d712e306b9057eb5378b1c7f07ba212d55c39e5a79811649", "miner": "0x5973918275c01f50555d44e92c9d9b353cadad54", "difficulty": 5, "total_difficulty": 59437880, "size": 2087, "extra_data": "0xd78301091883626f7288676f312e31352e35856c696e7578000000000000000047d5e4992e15f8f211ed66532186f2599fb1711f8b86d0f53f0a2afad2ae7bad4ba38af073c750a0c4af17a02c222e5ee52ef4532f5fb89b28e71419080a11ed01", "gas_limit": 20000000, "gas_used": 328636, "timestamp": 1609459220, "transaction_count": 2, "base_fee_per_gas": null, "item_id": "block_0x5c0d7534ce598793f3deb4128daf06788b3b5ca1f799863f2ad669c38c0c33f2", "item_timestamp": "2021-01-01T00:00:20Z"} +{"type": "block", "number": 9013766, "hash": "0x4c21b534ecaac6750ac0bf863ab763a31980be9b944876df6ce5228719421b94", "parent_hash": "0x3dff694664641828171c11cc5130dd6213721b2be38a2e4c6a069c3e79f004e1", "nonce": "0x0000000000000000", "sha3_uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "logs_bloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "transactions_root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "state_root": "0x02ecd8dcbcec30816d23186070f8448087d316949a78e2883f309e081ec22149", "receipts_root": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "miner": "0x5973918275c01f50555d44e92c9d9b353cadad54", "difficulty": 5, "total_difficulty": 59437875, "size": 610, "extra_data": "0xd78301091883626f7288676f312e31352e35856c696e75780000000000000000193f5d00974ee45181ab55cb721885f30931e271f047ea4ed267e04b364071914a80e210599b78d5b8454b633d3e025c044bd5630a6238a00d9e6a6414d0153f00", "gas_limit": 20000000, "gas_used": 0, "timestamp": 1609459218, "transaction_count": 0, "base_fee_per_gas": null, "item_id": "block_0x4c21b534ecaac6750ac0bf863ab763a31980be9b944876df6ce5228719421b94", "item_timestamp": "2021-01-01T00:00:18Z"} diff --git a/cli/tests/resources/test_stream/blocks_with_transfers/expected_transactions.json b/cli/tests/resources/test_stream/blocks_with_transfers/expected_transactions.json index 79be04b6..373e1933 100644 --- a/cli/tests/resources/test_stream/blocks_with_transfers/expected_transactions.json +++ b/cli/tests/resources/test_stream/blocks_with_transfers/expected_transactions.json @@ -1,4 +1,4 @@ -{"type": "transaction", "hash": "0x479778ca2e619d83288288b1e6504e37d35e66de72cf33a0cf4faa204368c784", "nonce": 693882, "transaction_index": 0, "from_address": "0xa3f36a33e66adeb98e08fe1bd96b4c58517c64c4", "to_address": "0x2b2180a92a686cfc03599b9e5027e35b9448e9f3", "value": 0, "gas": 146316, "gas_price": 1000000000, "input": "0x4a698cce000000000000000000000000000000000000000000000000000000000000004018e56c46305c5ef01129d9a990a1960d24beb21e3b5bbca08eae51a018f14e32000000000000000000000000000000000000000000000000000000000000002e516d5079314874656a45774c586141564c6d513137434733447556577a69715a484646435a6455354d4d66474248000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd", "block_timestamp": 1609459216, "block_number": 9013765, "block_hash": "0x3dff694664641828171c11cc5130dd6213721b2be38a2e4c6a069c3e79f004e1", "receipt_cumulative_gas_used": 131370, "receipt_gas_used": 131370, "receipt_contract_address": null, "receipt_root": null, "receipt_status": 1, "item_id": "transaction_0x479778ca2e619d83288288b1e6504e37d35e66de72cf33a0cf4faa204368c784", "item_timestamp": "2021-01-01T00:00:16Z"} -{"type": "transaction", "hash": "0xbd6eed3313d77b7d38b80b77eae720a0800634a6b2fc6f5c615dbb178088f077", "nonce": 695689, "transaction_index": 1, "from_address": "0x281048bf4d3bbbbd38abe184f6b306216b2e06ae", "to_address": "0x2b2180a92a686cfc03599b9e5027e35b9448e9f3", "value": 0, "gas": 146316, "gas_price": 1000000000, "input": "0x4a698cce00000000000000000000000000000000000000000000000000000000000000409ed02907d7ac23e7b51dff0e5a51ba3af5b7d0f8cfa3f666cc3e70b2357a9816000000000000000000000000000000000000000000000000000000000000002e516d505a7059344a7079535944546235485148504b4170346b3679595a34574c736e6e5a57704470585a4665796b000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd", "block_timestamp": 1609459216, "block_number": 9013765, "block_hash": "0x3dff694664641828171c11cc5130dd6213721b2be38a2e4c6a069c3e79f004e1", "receipt_cumulative_gas_used": 262740, "receipt_gas_used": 131370, "receipt_contract_address": null, "receipt_root": null, "receipt_status": 1, "item_id": "transaction_0xbd6eed3313d77b7d38b80b77eae720a0800634a6b2fc6f5c615dbb178088f077", "item_timestamp": "2021-01-01T00:00:16Z"} -{"type": "transaction", "hash": "0x4c4ff26c9a472f663dbd9ae3e94befa299e7f645702c04cd335e4e0578209665", "nonce": 61791, "transaction_index": 0, "from_address": "0x7b5fc677cf27a807adf2ebcef72db3b935df6c0a", "to_address": "0xd216153c06e857cd7f72665e0af1d7d82172f494", "value": 0, "gas": 546468, "gas_price": 2500000000, "input": "0x405cec67000000000000000000000000fff7d07752122f5539020c99626fa4654a91933d000000000000000000000000ab45c5a4b0c941a2f231c04c3f49182e1a25405200000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000009502f90000000000000000000000000000000000000000000000000000000000000222d8000000000000000000000000000000000000000000000000000000000000062200000000000000000000000000000000000000000000000000000000000003800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000022434ee979100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000004d97dcd97ec945f40cf65f87097ace5ea04760450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001049e7212ad0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000000000000000000000000000000000000003afe074f2b831c7a4b6817a2a0121e143db78b59f18c1e5ae5957ba53899c1aa00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000092e1942000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000413c61ecaa8cd31eae9b7b78319b1d03057d3db4b13739fde92e4545d6f08076e8174ecd6df96a8e821390608e8c176e8e21823fc63723e630ab67e9c6f4e3485b1c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "block_timestamp": 1609459220, "block_number": 9013767, "block_hash": "0x5c0d7534ce598793f3deb4128daf06788b3b5ca1f799863f2ad669c38c0c33f2", "receipt_cumulative_gas_used": 197266, "receipt_gas_used": 197266, "receipt_contract_address": null, "receipt_root": null, "receipt_status": 1, "item_id": "transaction_0x4c4ff26c9a472f663dbd9ae3e94befa299e7f645702c04cd335e4e0578209665", "item_timestamp": "2021-01-01T00:00:20Z"} -{"type": "transaction", "hash": "0x9a172892455a754d49fbc9b8c46b08acdc976e8c174163e94e0c0929fc157a1d", "nonce": 694270, "transaction_index": 1, "from_address": "0x8a8c076ad2e974b12223fa5a09f62275cfa0c2c0", "to_address": "0x2b2180a92a686cfc03599b9e5027e35b9448e9f3", "value": 0, "gas": 146316, "gas_price": 1000000000, "input": "0x4a698cce00000000000000000000000000000000000000000000000000000000000000409c6a3dabc332a6048bbed55569e11dc127dfdb36c2f951bef3b72ad36609e254000000000000000000000000000000000000000000000000000000000000002e516d58696774417644746f4844623637724e587353704c65576e48456d746e43697764386f565952476a67514444000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd", "block_timestamp": 1609459220, "block_number": 9013767, "block_hash": "0x5c0d7534ce598793f3deb4128daf06788b3b5ca1f799863f2ad669c38c0c33f2", "receipt_cumulative_gas_used": 328636, "receipt_gas_used": 131370, "receipt_contract_address": null, "receipt_root": null, "receipt_status": 1, "item_id": "transaction_0x9a172892455a754d49fbc9b8c46b08acdc976e8c174163e94e0c0929fc157a1d", "item_timestamp": "2021-01-01T00:00:20Z"} +{"type": "transaction", "hash": "0x479778ca2e619d83288288b1e6504e37d35e66de72cf33a0cf4faa204368c784", "nonce": 693882, "transaction_index": 0, "from_address": "0xa3f36a33e66adeb98e08fe1bd96b4c58517c64c4", "to_address": "0x2b2180a92a686cfc03599b9e5027e35b9448e9f3", "value": 0, "gas": 146316, "gas_price": 1000000000, "input": "0x4a698cce000000000000000000000000000000000000000000000000000000000000004018e56c46305c5ef01129d9a990a1960d24beb21e3b5bbca08eae51a018f14e32000000000000000000000000000000000000000000000000000000000000002e516d5079314874656a45774c586141564c6d513137434733447556577a69715a484646435a6455354d4d66474248000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd", "block_timestamp": 1609459216, "block_number": 9013765, "block_hash": "0x3dff694664641828171c11cc5130dd6213721b2be38a2e4c6a069c3e79f004e1", "max_fee_per_gas": null, "max_priority_fee_per_gas": null, "transaction_type": 0, "receipt_cumulative_gas_used": 131370, "receipt_gas_used": 131370, "receipt_contract_address": null, "receipt_root": null, "receipt_status": 1, "receipt_effective_gas_price": 1000000000, "item_id": "transaction_0x479778ca2e619d83288288b1e6504e37d35e66de72cf33a0cf4faa204368c784", "item_timestamp": "2021-01-01T00:00:16Z"} +{"type": "transaction", "hash": "0xbd6eed3313d77b7d38b80b77eae720a0800634a6b2fc6f5c615dbb178088f077", "nonce": 695689, "transaction_index": 1, "from_address": "0x281048bf4d3bbbbd38abe184f6b306216b2e06ae", "to_address": "0x2b2180a92a686cfc03599b9e5027e35b9448e9f3", "value": 0, "gas": 146316, "gas_price": 1000000000, "input": "0x4a698cce00000000000000000000000000000000000000000000000000000000000000409ed02907d7ac23e7b51dff0e5a51ba3af5b7d0f8cfa3f666cc3e70b2357a9816000000000000000000000000000000000000000000000000000000000000002e516d505a7059344a7079535944546235485148504b4170346b3679595a34574c736e6e5a57704470585a4665796b000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd", "block_timestamp": 1609459216, "block_number": 9013765, "block_hash": "0x3dff694664641828171c11cc5130dd6213721b2be38a2e4c6a069c3e79f004e1", "max_fee_per_gas": null, "max_priority_fee_per_gas": null, "transaction_type": 0, "receipt_cumulative_gas_used": 262740, "receipt_gas_used": 131370, "receipt_contract_address": null, "receipt_root": null, "receipt_status": 1, "receipt_effective_gas_price": 1000000000, "item_id": "transaction_0xbd6eed3313d77b7d38b80b77eae720a0800634a6b2fc6f5c615dbb178088f077", "item_timestamp": "2021-01-01T00:00:16Z"} +{"type": "transaction", "hash": "0x4c4ff26c9a472f663dbd9ae3e94befa299e7f645702c04cd335e4e0578209665", "nonce": 61791, "transaction_index": 0, "from_address": "0x7b5fc677cf27a807adf2ebcef72db3b935df6c0a", "to_address": "0xd216153c06e857cd7f72665e0af1d7d82172f494", "value": 0, "gas": 546468, "gas_price": 2500000000, "input": "0x405cec67000000000000000000000000fff7d07752122f5539020c99626fa4654a91933d000000000000000000000000ab45c5a4b0c941a2f231c04c3f49182e1a25405200000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000009502f90000000000000000000000000000000000000000000000000000000000000222d8000000000000000000000000000000000000000000000000000000000000062200000000000000000000000000000000000000000000000000000000000003800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000022434ee979100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000010000000000000000000000004d97dcd97ec945f40cf65f87097ace5ea04760450000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001049e7212ad0000000000000000000000002791bca1f2de4661ed88a30c99a7a9449aa8417400000000000000000000000000000000000000000000000000000000000000003afe074f2b831c7a4b6817a2a0121e143db78b59f18c1e5ae5957ba53899c1aa00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000092e1942000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000413c61ecaa8cd31eae9b7b78319b1d03057d3db4b13739fde92e4545d6f08076e8174ecd6df96a8e821390608e8c176e8e21823fc63723e630ab67e9c6f4e3485b1c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "block_timestamp": 1609459220, "block_number": 9013767, "block_hash": "0x5c0d7534ce598793f3deb4128daf06788b3b5ca1f799863f2ad669c38c0c33f2", "max_fee_per_gas": null, "max_priority_fee_per_gas": null, "transaction_type": 0, "receipt_cumulative_gas_used": 197266, "receipt_gas_used": 197266, "receipt_contract_address": null, "receipt_root": null, "receipt_status": 1, "receipt_effective_gas_price": 2500000000, "item_id": "transaction_0x4c4ff26c9a472f663dbd9ae3e94befa299e7f645702c04cd335e4e0578209665", "item_timestamp": "2021-01-01T00:00:20Z"} +{"type": "transaction", "hash": "0x9a172892455a754d49fbc9b8c46b08acdc976e8c174163e94e0c0929fc157a1d", "nonce": 694270, "transaction_index": 1, "from_address": "0x8a8c076ad2e974b12223fa5a09f62275cfa0c2c0", "to_address": "0x2b2180a92a686cfc03599b9e5027e35b9448e9f3", "value": 0, "gas": 146316, "gas_price": 1000000000, "input": "0x4a698cce00000000000000000000000000000000000000000000000000000000000000409c6a3dabc332a6048bbed55569e11dc127dfdb36c2f951bef3b72ad36609e254000000000000000000000000000000000000000000000000000000000000002e516d58696774417644746f4844623637724e587353704c65576e48456d746e43697764386f565952476a67514444000000000000000000000000000000000000000000000000000000000000904570f1a26422fe913fe1c2c8c47c8dbd9b5bbd", "block_timestamp": 1609459220, "block_number": 9013767, "block_hash": "0x5c0d7534ce598793f3deb4128daf06788b3b5ca1f799863f2ad669c38c0c33f2", "max_fee_per_gas": null, "max_priority_fee_per_gas": null, "transaction_type": 0, "receipt_cumulative_gas_used": 328636, "receipt_gas_used": 131370, "receipt_contract_address": null, "receipt_root": null, "receipt_status": 1, "receipt_effective_gas_price": 1000000000, "item_id": "transaction_0x9a172892455a754d49fbc9b8c46b08acdc976e8c174163e94e0c0929fc157a1d", "item_timestamp": "2021-01-01T00:00:20Z"} diff --git a/cli/tests/resources/test_stream/blocks_with_transfers/web3_response.eth_getBlockByNumber_latest_false.json b/cli/tests/resources/test_stream/blocks_with_transfers/web3_response.eth_getBlockByNumber_latest_false.json index df4a3edc..38b584d8 100644 --- a/cli/tests/resources/test_stream/blocks_with_transfers/web3_response.eth_getBlockByNumber_latest_false.json +++ b/cli/tests/resources/test_stream/blocks_with_transfers/web3_response.eth_getBlockByNumber_latest_false.json @@ -9,7 +9,7 @@ "gasUsed": "0xb74b9e", "hash": "0x1b6d2cfc43be86a789987c54a76db4d99618f550fe8d06b6f7eab7b955cd6a44", "logsBloom": "0x1421e8060d803b11911a2ea58003891204ac07001152182019c64b232082398880049149102082a120a2c214221305c122a4820241c77402cec025b00630e0e4b09aac04102660210c190eed647800f81c1027680107bc2152918497928b220608c2aa60aa0088400d2c2213080a9a4a5006d41fca084021914122361389b0c99f120b144c1840731d800c0031ca430608b714b18621a08800c0095c0688ac616290054cb813236441b0910581806059464018536205dc2a131a0b0a348061608001a4cba58294160631d9e406fe059470dc104200188f58511cc021a0a8e0501030116052b498e0467b02041563d00df3f0220d239488c1a4001804423008e0", - "miner": "0x0000000000000000000000000000000000000000", + "miner": "0xf0245f6251bef9447a08766b9da2b07b28ad80b0", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "nonce": "0x0000000000000000", "number": "0x1bfe5f1", diff --git a/dataflow/src/main/java/io/blockchainetl/polygon/domain/Block.java b/dataflow/src/main/java/io/blockchainetl/polygon/domain/Block.java index 56661c39..07bd8aad 100644 --- a/dataflow/src/main/java/io/blockchainetl/polygon/domain/Block.java +++ b/dataflow/src/main/java/io/blockchainetl/polygon/domain/Block.java @@ -83,6 +83,10 @@ public class Block { @JsonProperty("transaction_count") private Long transactionCount; + @Nullable + @JsonProperty("base_fee_per_gas") + private Long baseFeePerGas; + public Block() {} public String getType() { @@ -237,6 +241,14 @@ public void setTransactionCount(Long transactionCount) { this.transactionCount = transactionCount; } + public Long getBaseFeePerGas() { + return baseFeePerGas; + } + + public void setBaseFeePerGas(Long baseFeePerGas) { + this.baseFeePerGas = baseFeePerGas; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -264,7 +276,8 @@ public boolean equals(Object o) { Objects.equal(gasLimit, block.gasLimit) && Objects.equal(gasUsed, block.gasUsed) && Objects.equal(timestamp, block.timestamp) && - Objects.equal(transactionCount, block.transactionCount); + Objects.equal(transactionCount, block.transactionCount) && + Objects.equal(baseFeePerGas, block.baseFeePerGas); } @Override @@ -272,7 +285,7 @@ public int hashCode() { return Objects.hashCode(type, number, hash, parentHash, nonce, sha3Uncles, logsBloom, transactionsRoot, stateRoot, receiptsRoot, miner, difficulty, totalDifficulty, size, extraData, gasLimit, gasUsed, timestamp, - transactionCount); + transactionCount, baseFeePerGas); } @Override @@ -297,6 +310,7 @@ public String toString() { .add("gasUsed", gasUsed) .add("timestamp", timestamp) .add("transactionCount", transactionCount) + .add("baseFeePerGas", baseFeePerGas) .toString(); } } diff --git a/dataflow/src/main/java/io/blockchainetl/polygon/domain/Transaction.java b/dataflow/src/main/java/io/blockchainetl/polygon/domain/Transaction.java index 5329460c..8b395479 100644 --- a/dataflow/src/main/java/io/blockchainetl/polygon/domain/Transaction.java +++ b/dataflow/src/main/java/io/blockchainetl/polygon/domain/Transaction.java @@ -79,6 +79,22 @@ public class Transaction { @Nullable @JsonProperty("block_timestamp") private Long blockTimestamp; + + @Nullable + @JsonProperty("max_fee_per_gas") + private Long maxFeePerGas; + + @Nullable + @JsonProperty("max_priority_fee_per_gas") + private Long maxPriorityFeePerGas; + + @Nullable + @JsonProperty("transaction_type") + private Long transactionType; + + @Nullable + @JsonProperty("receipt_effective_gas_price") + private Long receiptEffectiveGasPrice; public Transaction() {} @@ -226,6 +242,38 @@ public void setBlockTimestamp(Long blockTimestamp) { this.blockTimestamp = blockTimestamp; } + public Long getMaxFeePerGas() { + return maxFeePerGas; + } + + public void setMaxFeePerGas(Long maxFeePerGas) { + this.maxFeePerGas = maxFeePerGas; + } + + public Long getMaxPriorityFeePerGas() { + return maxPriorityFeePerGas; + } + + public void setMaxPriorityFeePerGas(Long maxPriorityFeePerGas) { + this.maxPriorityFeePerGas = maxPriorityFeePerGas; + } + + public Long getTransactionType() { + return transactionType; + } + + public void setTransactionType(Long transactionType) { + this.transactionType = transactionType; + } + + public Long getReceiptEffectiveGasPrice() { + return receiptEffectiveGasPrice; + } + + public void setReceiptEffectiveGasPrice(Long receiptEffectiveGasPrice) { + this.receiptEffectiveGasPrice = receiptEffectiveGasPrice; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -252,7 +300,11 @@ public boolean equals(Object o) { Objects.equal(receiptStatus, that.receiptStatus) && Objects.equal(blockNumber, that.blockNumber) && Objects.equal(blockHash, that.blockHash) && - Objects.equal(blockTimestamp, that.blockTimestamp); + Objects.equal(blockTimestamp, that.blockTimestamp) && + Objects.equal(maxFeePerGas, that.maxFeePerGas) && + Objects.equal(maxPriorityFeePerGas, that.maxPriorityFeePerGas) && + Objects.equal(transactionType, that.transactionType) && + Objects.equal(receiptEffectiveGasPrice, that.receiptEffectiveGasPrice); } @Override @@ -260,7 +312,7 @@ public int hashCode() { return Objects.hashCode(type, hash, nonce, transactionIndex, fromAddress, toAddress, value, gas, gasPrice, input, receiptCumulativeGasUsed, receiptGasUsed, receiptContractAddress, receiptRoot, receiptStatus, blockNumber, - blockHash, blockTimestamp); + blockHash, blockTimestamp, maxFeePerGas, maxPriorityFeePerGas, transactionType, receiptEffectiveGasPrice); } @Override @@ -284,6 +336,10 @@ public String toString() { .add("blockNumber", blockNumber) .add("blockHash", blockHash) .add("blockTimestamp", blockTimestamp) + .add("maxFeePerGas", maxFeePerGas) + .add("maxPriorityFeePerGas", maxPriorityFeePerGas) + .add("transactionType", transactionType) + .add("receiptEffectiveGasPrice", receiptEffectiveGasPrice) .toString(); } } diff --git a/dataflow/src/main/java/io/blockchainetl/polygon/fns/ConvertBlocksToTableRowsFn.java b/dataflow/src/main/java/io/blockchainetl/polygon/fns/ConvertBlocksToTableRowsFn.java index ca92f521..aaa32705 100644 --- a/dataflow/src/main/java/io/blockchainetl/polygon/fns/ConvertBlocksToTableRowsFn.java +++ b/dataflow/src/main/java/io/blockchainetl/polygon/fns/ConvertBlocksToTableRowsFn.java @@ -38,5 +38,6 @@ protected void populateTableRowFields(TableRow row, String element) { row.set("gas_limit", block.getGasLimit()); row.set("gas_used", block.getGasUsed()); row.set("transaction_count", block.getTransactionCount()); + row.set("base_fee_per_gas", block.getBaseFeePerGas()); } } diff --git a/dataflow/src/main/java/io/blockchainetl/polygon/fns/ConvertTransactionsToTableRowsFn.java b/dataflow/src/main/java/io/blockchainetl/polygon/fns/ConvertTransactionsToTableRowsFn.java index 4ffc11fa..e2b5bbd1 100644 --- a/dataflow/src/main/java/io/blockchainetl/polygon/fns/ConvertTransactionsToTableRowsFn.java +++ b/dataflow/src/main/java/io/blockchainetl/polygon/fns/ConvertTransactionsToTableRowsFn.java @@ -35,5 +35,9 @@ protected void populateTableRowFields(TableRow row, String element) { row.set("receipt_status", transaction.getReceiptStatus()); row.set("block_number", transaction.getBlockNumber()); row.set("block_hash", transaction.getBlockHash()); + row.set("max_fee_per_gas", transaction.getMaxFeePerGas()); + row.set("max_priority_fee_per_gas", transaction.getMaxPriorityFeePerGas()); + row.set("transaction_type", transaction.getTransactionType()); + row.set("receipt_effective_gas_price", transaction.getReceiptEffectiveGasPrice()); } } diff --git a/docs/schema.md b/docs/schema.md index 962de203..985afb96 100644 --- a/docs/schema.md +++ b/docs/schema.md @@ -3,7 +3,7 @@ ## blocks.csv | Column | Type | -| ----------------- | ---------- | +|-------------------|------------| | number | bigint | | hash | hex_string | | parent_hash | hex_string | @@ -22,25 +22,29 @@ | gas_used | bigint | | timestamp | bigint | | transaction_count | bigint | +| base_fee_per_gas | bigint | --- ## transactions.csv -| Column | Type | -| ----------------- | ---------- | -| hash | hex_string | -| nonce | bigint | -| block_hash | hex_string | -| block_number | bigint | -| transaction_index | bigint | -| from_address | address | -| to_address | address | -| value | numeric | -| gas | bigint | -| gas_price | bigint | -| input | hex_string | -| block_timestamp | bigint | +| Column | Type | +|--------------------------|------------| +| hash | hex_string | +| nonce | bigint | +| block_hash | hex_string | +| block_number | bigint | +| transaction_index | bigint | +| from_address | address | +| to_address | address | +| value | numeric | +| gas | bigint | +| gas_price | bigint | +| input | hex_string | +| block_timestamp | bigint | +| max_fee_per_gas | bigint | +| max_priority_fee_per_gas | bigint | +| transaction_type | bigint | --- @@ -61,7 +65,7 @@ ## receipts.csv | Column | Type | -| ------------------- | ---------- | +|---------------------|------------| | transaction_hash | hex_string | | transaction_index | bigint | | block_hash | hex_string | @@ -71,6 +75,7 @@ | contract_address | address | | root | hex_string | | status | bigint | +| effective_gas_price | bigint | --- diff --git a/streaming/charts/polygon-etl-streaming/Chart.yaml b/streaming/charts/polygon-etl-streaming/Chart.yaml index 4478f588..2ea3755b 100644 --- a/streaming/charts/polygon-etl-streaming/Chart.yaml +++ b/streaming/charts/polygon-etl-streaming/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: "1.0" description: A Helm chart to deploy polygon ETL streaming apps name: polygon-etl-streaming -version: 0.1.9 +version: 0.3.0 diff --git a/streaming/charts/polygon-etl-streaming/values.yaml b/streaming/charts/polygon-etl-streaming/values.yaml index d4041792..5720de94 100644 --- a/streaming/charts/polygon-etl-streaming/values.yaml +++ b/streaming/charts/polygon-etl-streaming/values.yaml @@ -33,7 +33,7 @@ init: stream: image: repository: blockchainetl/polygon-etl - tag: 0.2.0 + tag: 0.3.0 pullPolicy: IfNotPresent resources: requests: diff --git a/streaming/example_values.yaml b/streaming/example_values.yaml index 31013d72..64e39263 100644 --- a/streaming/example_values.yaml +++ b/streaming/example_values.yaml @@ -1,7 +1,7 @@ stream: image: repository: blockchainetl/polygon-etl - tag: 0.1.9 + tag: 0.3.0 config: PROVIDER_URI: "grpcs://api.mainnet.polygon.one:443" STREAM_OUTPUT: "projects//topics/crypto_polygon"