Commit graph

397 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
063c34d7d5
Initialize book (#160)
* initialize book

* finish initial toc
2023-12-30 14:05:20 -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
4c0c73c43f simplify workflow inputs 2023-12-29 19:41:38 -08:00
sslivkoff
2658d6c637
select commit in workflow (#159) 2023-12-29 19:26:22 -08:00
sslivkoff
b6371e3413 fix cryo python url in build flow 0.3.1 2023-12-29 18:14:42 -08:00
sslivkoff
ddca8c6cbb
default maturin pipeline (#158)
* default maturin pipeline

* set manifest path

* use common architectures

* remove aarch64 linux

* remove 32 bit arch

* add multiple python versions

* quote python versions

* explicitly set python version in maturin cmd for linux build

* use same version specification for mac and windows

* combine python build files
2023-12-29 17:16:14 -08:00
sslivkoff
41adfa54c6 convert from sequence to single entry 2023-12-27 17:49:25 -08:00
sslivkoff
b61f109de7 downgrade manylinux build version 2023-12-27 17:46:55 -08:00
sslivkoff
a7580abafc revert to latest ubuntu due to github deprecation 2023-12-27 17:28:36 -08:00
sslivkoff
18c9263364 use ubuntu 18 for glib cross compile version 2023-12-27 13:11:38 -08:00
sslivkoff
bf98ada1d9 downgrade maturin ubuntu build image 2023-12-27 12:50:08 -08:00
sslivkoff
5b503a1173 remove 32 bit windows build 2023-12-27 12:31:01 -08:00
sslivkoff
74cc0df969 limit maturin action targets 2023-12-27 12:16:38 -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
sslivkoff
50d4dfc955 remove pytest from maturin workflow 2023-12-27 01:28:44 -08:00
sslivkoff
d256743bb0 update polars version 2023-12-26 23:41:25 -08:00
sslivkoff
d29780c2fc update maturin pipeline path 2023-12-26 23:03:24 -08:00
sslivkoff
f0fa902b5f
add maturin pipeline 2023-12-26 22:45:53 -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
c9c07aa7b8 add erc20 balances example script 2023-12-23 19:37:40 -08:00
sslivkoff
041f38b5c2
add block hash columns where possible (#146) 2023-12-05 17:29:35 -08:00
sslivkoff
7a6cab03f2
add all.sh example script (#144) 2023-12-02 21:28:53 -08:00
sslivkoff
7129d08504
update lock file (#143) 2023-12-02 20:52:12 -08:00
sslivkoff
4d1031980e
0.3.0 (#142) 0.3.0
* 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
Fahim Ahmed
5aecaec478
docs: fix typo in block number ranges (#139)
* fix doc for block number ranges

* one-off typo
2023-11-28 09:03:23 -08:00
sslivkoff
b6c7f1df97
update to latest polars and related libs (#138) 2023-11-24 21:58:24 -06: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
PA
a03dc649db
fix: readme help update (#129) 2023-11-20 21:08:36 -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
accb8de727 add uniswap example 2023-11-13 19:09:42 -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