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

standardize transaction decoding #2

Open
Evan-Kim2028 opened this issue Jul 26, 2024 · 0 comments
Open

standardize transaction decoding #2

Evan-Kim2028 opened this issue Jul 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Evan-Kim2028
Copy link
Collaborator

Currently the transactions are polars hstacked with the decoded logs in the query construction function with a config pass through parameter. However this leads to a lot of duplicate code

                    TransactionField.GAS_USED: DataType.FLOAT64,
                    TransactionField.MAX_FEE_PER_BLOB_GAS: DataType.FLOAT64,
                    TransactionField.MAX_PRIORITY_FEE_PER_GAS: DataType.FLOAT64,
                    TransactionField.GAS_PRICE: DataType.FLOAT64,
                    TransactionField.CUMULATIVE_GAS_USED: DataType.FLOAT64,
                    TransactionField.EFFECTIVE_GAS_PRICE: DataType.FLOAT64,
                    TransactionField.NONCE: DataType.INT64,
                    TransactionField.GAS: DataType.FLOAT64,
                    TransactionField.MAX_FEE_PER_GAS: DataType.FLOAT64,
                    TransactionField.VALUE: DataType.FLOAT64,
                    TransactionField.CHAIN_ID: DataType.INT64,
                }```


Morever this pass through doesn't even work for all columns. Need to come up with a better way to ensure the transaction fields are being decoded properly and hstack is working
@Evan-Kim2028 Evan-Kim2028 added the enhancement New feature or request label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant