Commit graph

288 commits

Author SHA1 Message Date
sslivkoff
5c45c1703c update cryo_python to cryo 2024-01-08 11:52:00 -08:00
sslivkoff
07d30f14cd add __version__ to python 2024-01-08 11:51:43 -08:00
sslivkoff
806d7fcbed
Add ipc support (#162)
* support multiple provider types

* add websocket support

* add ipc support
2023-12-31 12:18:53 -08:00
sslivkoff
b2221f9dfb
support websocket ws:// and wss:// rpc providers (#161)
* support multiple provider types

* add websocket support
2023-12-31 01:14:03 -08:00
sslivkoff
c34e1a7337 specify readme in pyproject.toml 2023-12-29 20:55:32 -08:00
sslivkoff
fa070d4822 add description to pyproject.toml 2023-12-29 20:51:34 -08:00
sslivkoff
60da99dd90 add python-specific README 2023-12-29 20:06:31 -08:00
sslivkoff
24181bbaba
update parse url and timestamp tests (#157)
* update parse url and timestamp tests

* format
2023-12-27 11:50:20 -08:00
PhilippLgh
17d25d7eda
fix: parquet column parsing (#127)
* fix: parquet column parsing

* avoid use of unwrap()

---------

Co-authored-by: sslivkoff <stormslivkoff@gmail.com>
2023-12-26 16:23:16 -08:00
codeesura
ae8d152595
refactor: streamlining DimIsNone trait and optimizing parse_u256_types (#153)
* refactor: simplify dim_is_none implementation in args for DimIsNone trait

* fix clippy

* optimize parse_u256_types func in args with streamlined logc
2023-12-26 15:33:32 -08:00
sslivkoff
041f38b5c2
add block hash columns where possible (#146) 2023-12-05 17:29:35 -08:00
sslivkoff
4d1031980e
0.3.0 (#142)
* apply clippy linter suggestions

* update to 0.3.0

* add full to syn

* add description to cryo_to_df

* add cryo_python metadata
2023-12-01 07:23:02 -08:00
sslivkoff
8764f62f0d
improve usability as a library (#141) 2023-12-01 06:09:15 -08:00
Fahim Ahmed
c5e44905b3
feat: add timestamps parameter (#126)
* add incomplete --timestamp parameter

* create interface for timestamp_to_block function

* add get_latest_block_number() function

* Add timestamp_to_block_number() function

* Use Strings for timestamp

* change timestamp argument to Vec<String> part 2

* use reference, fix get_latest_block_number()

* add parse_timestamp() functions

* make some block processing functions public

* cargo fmt

* add docs

* add support for "every nth value" syntax

* implement parse_timestamp_range_to_block_number_range()

* remove unused array in timestamp_to_block_numbers()

* fix binary search in timestamp_to_block_number()

* cargo fmt

* initial test for timestamp_to_block_number()

* cargo fmt

* Add additional timestamp_to_block_number tests

* return lower block number if edge case

* cargo fmt

* Test before genesis block and after latest block

* update commenting

* Test latest timestamp to latest block number

* refactor timestamp test cases

* add rate limit to timestamp test setup

* remove unneeded test case

* update testing rpc

* cargo fmt

* remove redundant timestamp test

* reduce value in timestamp extrema test case

* Add tests for timestamp ending with a unit

* Fix timestamp range to blocknumber range and add tests

* Refactor parse timestamp functions and fix tests

* cargo fmt

* Refactor get_latest_block_number() into blocks.rs

* remove unneeded test case

* optimize latest timestamp testcase

* cargo fmt

* use parse_timestamps, and rename file

* update docs, use timestamps instead of timestamp

* fix typo in timestamp specification syntax

* update timestamp scaling units

* remove debug print

* update docs to incorporate timestamp scales

* update tests

* Remove test case that overloads RPC
2023-11-28 11:16:21 -08:00
sslivkoff
ebfc97b358
Skip noncompliant logs (#136)
* fix log datasets aliases and null calls

* skip noncompliant logs when decoding
2023-11-22 12:16:57 -06:00
sslivkoff
b41ffa517b
fix log datasets aliases and null calls (#134) 2023-11-20 21:17:56 -06:00
cool-mestorf
6e9ec88a35
filter erc transfers and traces by from/to addresses (#123)
* filter erc transfers and traces by from/to addresses

* review: move reward address to proper filter

* review: filter by rpc parameter

* fmt
2023-11-15 12:19:29 -08:00
Fahim Ahmed
fd8a752ee4
remove NumberChunk's numbers() function (#124) 2023-11-14 19:45:46 -08:00
sslivkoff
2b4e8b2bc2
remove raw data after decode (#122) 2023-11-13 20:06:07 -08:00
sslivkoff
9408ae02b0 add event__ prefix to decoded event columns 2023-11-13 19:38:50 -08:00
sslivkoff
f0966ee278
fix improper sort of decoded columns (#121) 2023-11-13 18:57:30 -08:00
sslivkoff
d577fef047
maintain order of decoded columns (#120)
* maintain order of decoded columns

* fix test
2023-11-13 18:13:38 -08:00
sslivkoff
0b04b4a867
fix event decoding to binary (#119) 2023-11-13 17:13:46 -08:00
sslivkoff
83c06ecc7f
fix hex encoding of empty event decoding (#118) 2023-11-13 16:44:54 -08:00
sslivkoff
15b570da5a
fix case where decoding an empty dataframe of events with u256 (#117) 2023-11-13 16:22:29 -08:00
sslivkoff
cd1f3a42e4
add suffix to datatype subdir (#116) 2023-11-13 12:16:56 -08:00
sslivkoff
0733f705e5
fix event decoding and add u256 / i256 support (#115) 2023-11-13 09:41:58 -08:00
Fahim Ahmed
27fc374b06
Fix typo in error handling comment (#114) 2023-11-12 23:13:14 -08:00
cool-mestorf
7da85e8f7a
add FromAddres dimension & take it from cli parameter, filter txs by from_address & to_address (#111)
* add FromAddress dimension and add corresponding implementations

* implement from_address & to_address filter for txs

* take from_address from cli params, filter tx and receipts by from & to address

* remove unnecessary vec definition

* fmt

* remove timestamp param

* review: fetch less receipts if transaction filter is applied
2023-11-12 13:57:54 -08:00
sslivkoff
2c803b6128
add --label argument (#112)
* add --label argument

* fix typo in docstring
2023-11-11 13:49:30 -08:00
sslivkoff
aa946d3c51
add noop result to fourbyte traces (#110) 2023-11-09 22:38:06 -08:00
Jiri Andras
6d5dd0d13e
Add block_timestamp, block_hash as optional columns to transactions (#109)
Co-authored-by: jiri.andras <jiri.andras@tatum.io>
2023-11-08 12:28:44 -08:00
sslivkoff
8f9b48458d
rename rust python dir (#107) 2023-11-07 23:47:33 -08:00
sslivkoff
8d956c9a32
allow erc20 metadata reverts (#105)
* allow erc20 metadata reverts

* formatting
2023-11-06 17:47:42 -08:00
sslivkoff
63dc679bd5 add storage dataset aliases 2023-11-05 20:43:36 -08:00
sslivkoff
f0a0aa7d50
maintain datatype order (#104) 2023-11-05 19:39:24 -08:00
sslivkoff
b8f7826415
maintain column order (#103) 2023-11-05 18:31:11 -08:00
sslivkoff
bf68de0568
add --chunk-order (#102) 2023-11-05 16:51:31 -08:00
sslivkoff
64ed5720ff rename 4byte_traces -> 4byte_counts 2023-11-05 16:09:37 -08:00
sslivkoff
18e4642147
add geth_opcodes dataset (#101) 2023-11-05 10:40:03 -08:00
sslivkoff
fa1816b2ed
add javascript tracer (#100) 2023-11-04 10:31:08 -07:00
sslivkoff
95cae6d75f add aliases to dataset help output 2023-11-04 09:14:30 -07:00
sslivkoff
bddf2bab31
add 4byte_traces (#99) 2023-11-04 09:06:07 -07:00
sslivkoff
116a7129c1
add state reads datasets (#98) 2023-11-03 12:20:42 -07:00
sslivkoff
df114b5847
add storage reads dataset (#96) 2023-11-03 10:51:00 -07:00
cool-mestorf
be8078b1e4
fallback to multiple eth_getTransactionReceipt calls if eth_getBlockReceipts is not present (#94)
* fallback to multiple `eth_getTransactionReceipt` calls if `eth_getBlockReceipts` is not present

* remove unnecessary comment

* edit methods used by command

* move implementation from separate trait to source impl
2023-11-02 21:12:54 -07:00
sslivkoff
b66ba9b961 use u32 for block_number in txs 2023-11-02 19:30:55 +00:00
sslivkoff
322d665c42 fix chunk accounting in summary messages 2023-10-21 14:48:34 -07:00
sslivkoff
0bfc2fa768
fix option binary hex convert (#91)
* fix option binary hex convert

* apply formatter
2023-10-21 14:12:49 -07:00
sslivkoff
155987a00c make error outputs cleaner 2023-10-21 13:54:56 -07:00