Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key schemas #1

Closed
10 of 12 tasks
DenisCarriere opened this issue Aug 12, 2024 · 0 comments
Closed
10 of 12 tasks

Key schemas #1

DenisCarriere opened this issue Aug 12, 2024 · 0 comments
Assignees
Labels

Comments

@DenisCarriere
Copy link
Contributor

DenisCarriere commented Aug 12, 2024

Transactions

  • gas_used or gas?

StreamingFast & Dune uses gas_used

  • input or data?

Quicknode & Dune uses data https://www.quicknode.com/guides/ethereum-development/smart-contracts/a-dive-into-evm-architecture-and-opcodes#understanding-evm-transaction-execution

Erigon uses GetData type https://github.com/erigontech/erigon/blob/820abe5b7928cf487e7e44dfd0b18d985979e008/core/types/transaction.go#L79C2-L79C9

  • when input is empty, 0x or "" (blank)?

provide 0x if data is stored as binary, "" if type is String

Traces (calls)

  • index or subtraces?
  • suicide or selfdestruct?
  • address or trace_address?
  • gas_consumed or gas_used?
  • index or sub_traces

System Traces

  • Do we include extra tables(e.g. logs, balance_changes, storage_changes, code_changes, account_creations, nonce_changes, gas_changes)?

    would require to drop transaction from those tables

Balance Changes

  • delta_value or amount?
  • old_value or old_balance?
  • new_value or new_balance?
new_value:    6113231490000000000
old_value:    6101024403000000000
delta_value:  12207087000000000
@DenisCarriere DenisCarriere self-assigned this Aug 12, 2024
@DenisCarriere DenisCarriere changed the title Transactions field naming Transactions key schema Aug 12, 2024
@DenisCarriere DenisCarriere changed the title Transactions key schema Key schemas Aug 12, 2024
DenisCarriere added a commit that referenced this issue Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant