Skip to content

Conversation

@clouds56
Copy link

  • update alloy to 1.0.23, polars to 0.50.0, syn to 2.0
    • now we have to add -j1 to cargo test --workspace -j1 in workflow, otherwise it would out of memory when linking
    • BREAKING: rename with_series! to with_column to match the type
  • fix schema output of cryo logs --event-signature to match the real output of parquet
    • also we could use --include-columns and --exclude-columns to control which column should not be included like --exclude-columns event__value
    • we could use --include-columns to add topic1, topic2, topic3 and data
    • signature without name like Transfer(address indexed, address indexed, uint256) would automatically generate event names, i.e. behaves like Transfer(address indexed arg0, address indexed arg1, uint256 arg2)
  • use #[derive(ToDataFrames)] instead of #[to_df(...)]
  • BREAKING: for --u256-types binary the add original type in column name, pre: col_binary, after col_u256binary, the old behavior could be enabled by --u256-types plain_binary
  • add RawBytes which is alias to Vec<u8>
  • rewrite column generating code (add helper types DynValues and OptionVec)
  • BREAKING: the binary types generated by log_decoder would have 0x prefix when column_encoding is HEX, to be consisted with binary types generated by with_column

If you have idea about any feature or naming, I'd like to improve my PR.
If you strongly against some patches, I'd like to revert them.

mattsse and others added 20 commits June 15, 2025 21:42
This migration updates the codebase to use alloy 1.0.9, which includes several breaking API changes:

- Provider architecture changes: BoxTransport replaced with DynProvider
- Transaction field access: tx.from replaced with tx.inner.signer()
- Trace API methods now use builder pattern with .trace_types()
- Updated deprecated methods (on_http -> connect_http, etc.)
- Removed boolean parameters from log decoding methods
- Fixed type parameters and imports throughout the codebase

All tests pass after migration.
- Use is_empty() instead of len() == 0 checks
- Remove unnecessary cast to u64
- Remove unneeded return statements
- Use if-let pattern to avoid unwrap after is_some() check
- Fix format string interpolation warnings
- Use std::io::Error::other() instead of new()

All clippy warnings resolved.
…aryVec trait for U256/I256 binary parsing (#12)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: clouds56 <730813+clouds56@users.noreply.github.com>
Co-authored-by: Clouds Flowing <clouds.flowing@gmail.com>
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