paradigmxyz / cryo

cryo is the easiest way to extract blockchain data to parquet, csv, json, or python dataframes
Apache License 2.0
1.05k stars 90 forks source link

use --to-address and --from-address for filtering #97

Open sslivkoff opened 9 months ago

sslivkoff commented 9 months ago

currently --to-address and --from-address only are used for eth_calls and trace_calls datasets

but they should also be usable for filtering

relevant datasets

cool-mestorf commented 9 months ago

Hi. If you don't mind can I take this task?

sslivkoff commented 8 months ago

that would be great

I think this is probably the best solution path

cool-mestorf commented 8 months ago

I struggled a while to take from_address arg into new Dim... but found it quite tricky. I will try to stick on implementing easier filters first, to_address and maybe erc transfers first.

sslivkoff commented 8 months ago

oh right, I forgot that from_address was removed from the Dim. yea to_address would be a good start

where are the difficulties with from_address coming from?

cool-mestorf commented 8 months ago

Even I define dim and optional args for from_address the supplied argument does not seem to be passed to query. If debugging takes too long I will try to open a draft PR and ask for comments.

cool-mestorf commented 8 months ago

Maybe this issue can be closed now?