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

Unblock EVM RPC emulation #411

Open
7 of 9 tasks
SebastienGllmt opened this issue Aug 7, 2024 · 0 comments
Open
7 of 9 tasks

Unblock EVM RPC emulation #411

SebastienGllmt opened this issue Aug 7, 2024 · 0 comments

Comments

@SebastienGllmt
Copy link
Contributor

SebastienGllmt commented Aug 7, 2024

  • add tx hash to the database (see add txHash to the submittedData passed to the stf #392 which calculates them, but doesn't store them. See scheduled_data_tx_hash)
  • create a block header standard and a block hash based off of it. Notably, we need to make sure it has the following properties:
  • ensure that a timestamp field is present in block headers
  • fetch logs for a transaction (see add event logs to stf and db #409)
  • a way to fetch the transaction nonce (low priority I think)
  • A definition of "tx index" in a block. The natural definition for this is to sort by the database ID for values that have the same block, but this is tricky because there are 2 tables (historical_game_inputs and scheduled_data). The order of these IDs is also funnel-dependent which makes breaking changes frequent because of the way funnel fetch ordering works, but I don't think we can get around that. Right now we process the scheduled data in the STF before the historical data, so we can keep the same order
  • Right now we delete scheduled data after it gets processed, but this breaks these historical queries
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

No branches or pull requests

1 participant