Skip to content

Conversation

@ninjascant
Copy link
Contributor

@ninjascant ninjascant commented Jul 1, 2021

Add new transaction and block fields related to EIP-1559:

  • base_fee_per_gas (block) - base fee per gas in protocol, which can move up or down each block according to a formula which is a function of gas used in parent block and gas target (block gas limit divided by elasticity multiplier) of parent block.
  • max_fee_per_gas (tx) - total fee which covers both the priority fee and the block's network fee per gas
  • max_priority_fee_per_gas (tx) - maximum fee per gas tx senders are willing to give to miners to incentivize them to include their transaction
  • transaction_type (tx) - an envelope for future transaction types
  • effective_gas_price (receipt) - a replacement for gasUsed field

@ninjascant ninjascant changed the title Feature/eip1559 fields EIP1559 fields Jul 1, 2021
@medvedev1088 medvedev1088 changed the base branch from develop to eip1559-fields July 19, 2021 12:37
@medvedev1088 medvedev1088 merged commit 53fa461 into blockchain-etl:eip1559-fields Jul 19, 2021
@medvedev1088
Copy link
Member

@ninjascant could you please check unit tests here, it seems they were broken because of the new fields

cffls added a commit to cffls/polygon-etl that referenced this pull request Mar 25, 2022
This commit is similar to the EIP-1559 pull request for ethereum-etl: blockchain-etl/ethereum-etl#256

Fields added:

 - base_fee_per_gas (block) - base fee per gas in protocol, which can move up or down each block according to a formula which is a function of gas used in parent block and gas target (block gas limit divided by elasticity multiplier) of parent block.
 - max_fee_per_gas (tx) - total fee which covers both the priority fee and the block's network fee per gas
 - max_priority_fee_per_gas (tx) - maximum fee per gas tx senders are willing to give to miners to incentivize them to include their transaction
 - transaction_type (tx) - an envelope for future transaction types
 - effective_gas_price (receipt) - a replacement for gasUsed field
charlielewisme added a commit to blockchain-etl/polygon-etl that referenced this pull request Dec 19, 2022
* Add fields introduced by EIP-1559

This commit is similar to the EIP-1559 pull request for ethereum-etl: blockchain-etl/ethereum-etl#256

Fields added:

 - base_fee_per_gas (block) - base fee per gas in protocol, which can move up or down each block according to a formula which is a function of gas used in parent block and gas target (block gas limit divided by elasticity multiplier) of parent block.
 - max_fee_per_gas (tx) - total fee which covers both the priority fee and the block's network fee per gas
 - max_priority_fee_per_gas (tx) - maximum fee per gas tx senders are willing to give to miners to incentivize them to include their transaction
 - transaction_type (tx) - an envelope for future transaction types
 - effective_gas_price (receipt) - a replacement for gasUsed field

* update 'miner' field in web3_response

* update existing test data for EIP-1559 fields

* add cli tests for EIP-1559 block

* Airflow changes for EIP-1559

* Dataflow changes for EIP-1559

* update balances calculation to match ethereum-etl

* bump package version

* fix effective_gas_price -> receipt_effective_gas_price

* delete unused folder `dags/resources/stages/load/`

* fix missing `pytz` dependency error

* add `block_timestamp` to raw transactions schema

* Fix/add ds suffix

Based on nansen-ai/evmchain-etl/pull/55

Add ds postfix for load and enrich tasks
Add expiration for temp raw tables
Remove unused enrichment sql
Support load_all_partitions for export files missing EIP-1559 fields

Co-authored-by: Jerry <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants