kopia lustrzana https://github.com/bugout-dev/moonstream
Block and tx crawlers works with new fields
rodzic
205b223447
commit
7cf1ef411f
|
@ -61,6 +61,7 @@ def add_block(db_session, block: Any) -> None:
|
||||||
extra_data=block.extraData.hex(),
|
extra_data=block.extraData.hex(),
|
||||||
gas_limit=block.gasLimit,
|
gas_limit=block.gasLimit,
|
||||||
gas_used=block.gasUsed,
|
gas_used=block.gasUsed,
|
||||||
|
base_fee_per_gas=block.get("baseFeePerGas", None),
|
||||||
hash=block.hash.hex(),
|
hash=block.hash.hex(),
|
||||||
logs_bloom=block.logsBloom.hex(),
|
logs_bloom=block.logsBloom.hex(),
|
||||||
miner=block.miner,
|
miner=block.miner,
|
||||||
|
@ -91,6 +92,8 @@ def add_block_transactions(db_session, block: Any) -> None:
|
||||||
to_address=tx.to,
|
to_address=tx.to,
|
||||||
gas=tx.gas,
|
gas=tx.gas,
|
||||||
gas_price=tx.gasPrice,
|
gas_price=tx.gasPrice,
|
||||||
|
max_fee_per_gas=tx.get("maxFeePerGas", None),
|
||||||
|
max_priority_fee_per_gas=tx.get("maxPriorityFeePerGas", None),
|
||||||
input=tx.input,
|
input=tx.input,
|
||||||
nonce=tx.nonce,
|
nonce=tx.nonce,
|
||||||
transaction_index=tx.transactionIndex,
|
transaction_index=tx.transactionIndex,
|
||||||
|
|
|
@ -12,7 +12,7 @@ chardet==4.0.0
|
||||||
charset-normalizer==2.0.4
|
charset-normalizer==2.0.4
|
||||||
click==8.0.1
|
click==8.0.1
|
||||||
cytoolz==0.11.0
|
cytoolz==0.11.0
|
||||||
-e git+https://git@github.com/bugout-dev/moonstream.git@6b5b6049b58b1edf0e5de261614c616e8e034b6e#egg=moonstreamdb&subdirectory=db
|
-e git+https://git@github.com/bugout-dev/moonstream.git@205b2234477f217bf4dca1913b4ca1d055c85f9a#egg=moonstreamdb&subdirectory=db
|
||||||
eth-abi==2.1.1
|
eth-abi==2.1.1
|
||||||
eth-account==0.5.5
|
eth-account==0.5.5
|
||||||
eth-hash==0.3.2
|
eth-hash==0.3.2
|
||||||
|
|
|
@ -34,7 +34,7 @@ setup(
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"boto3",
|
"boto3",
|
||||||
"bugout >= 0.1.17",
|
"bugout >= 0.1.17",
|
||||||
"moonstreamdb @ git+https://git@github.com/bugout-dev/moonstream.git@6b5b6049b58b1edf0e5de261614c616e8e034b6e#egg=moonstreamdb&subdirectory=db",
|
"moonstreamdb @ git+https://git@github.com/bugout-dev/moonstream.git@205b2234477f217bf4dca1913b4ca1d055c85f9a#egg=moonstreamdb&subdirectory=db",
|
||||||
"humbug",
|
"humbug",
|
||||||
"python-dateutil",
|
"python-dateutil",
|
||||||
"requests",
|
"requests",
|
||||||
|
|
Ładowanie…
Reference in New Issue